@quesmed/types 1.4.17 → 1.4.21
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/index.d.ts +3 -0
- package/index.js +40 -1
- package/index.mjs +17 -0
- package/package.json +1 -1
- package/resolvers/fragments/index.d.ts +7 -0
- package/resolvers/fragments/index.js +19 -0
- package/resolvers/fragments/index.mjs +7 -0
- package/resolvers/fragments/osce.d.ts +0 -3
- package/resolvers/fragments/osce.js +23 -42
- package/resolvers/fragments/osce.mjs +22 -41
- package/resolvers/fragments/video.js +15 -7
- package/resolvers/fragments/video.mjs +15 -7
- package/resolvers/index.d.ts +12 -0
- package/resolvers/index.js +38 -0
- package/resolvers/index.mjs +13 -0
- package/resolvers/query/blog.d.ts +4 -1
- package/resolvers/query/blog.js +10 -1
- package/resolvers/query/blog.mjs +9 -0
- package/resolvers/query/restricted/osce.js +5 -4
- package/resolvers/query/restricted/osce.mjs +6 -5
- package/utils/index.d.ts +2 -1
- package/utils/index.js +6 -1
- package/utils/index.mjs +2 -1
package/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './resolvers';
|
|
2
|
+
export * as utils from './utils';
|
|
1
3
|
export declare const ERRORS: {
|
|
2
4
|
TOKEN_INVALID: string;
|
|
3
5
|
TOKEN_MISSING: string;
|
|
@@ -14,3 +16,4 @@ export declare enum EPlatformId {
|
|
|
14
16
|
QBANK = 0,
|
|
15
17
|
OSCE = 1
|
|
16
18
|
}
|
|
19
|
+
export declare const termsAndConditions = "# Group Study Conduct Policy\n\nAs future clinicians, we expect that you treat your colleagues fairly and with respect.\nAs a result, we will not tolerate the following actions during use of the Quesmed platform:\n\n- Violent threats\n- Wishing, hoping or calling for serious harm on a person or group of people\n- Incitement against individuals or groups\n- Slurs, racist and sexist tropes\n- Degrading others\n- Unwanted sexual advances\n\nWhen determining the penalty for violating our conduct policy, we consider a number of factors including the severity of the violation and the individual's record of violations. We reserve the right to immediately de-activate any account that violates our conduct policy. We may also consider raising concerns to the individual's licensing body (e.g. GMC) on a case-by-case basis.\n\nBy using the platform, you agree to be bound by our conduct policy as described above.";
|
package/index.js
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
+
if (mod && mod.__esModule) return mod;
|
|
19
|
+
var result = {};
|
|
20
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
+
__setModuleDefault(result, mod);
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
2
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = void 0;
|
|
25
|
+
exports.termsAndConditions = exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = exports.utils = void 0;
|
|
26
|
+
__exportStar(require("./resolvers"), exports);
|
|
27
|
+
exports.utils = __importStar(require("./utils"));
|
|
4
28
|
exports.ERRORS = {
|
|
5
29
|
TOKEN_INVALID: 'Invalid token.',
|
|
6
30
|
TOKEN_MISSING: 'Missing token.',
|
|
@@ -18,3 +42,18 @@ var EPlatformId;
|
|
|
18
42
|
EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
|
|
19
43
|
EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
|
|
20
44
|
})(EPlatformId = exports.EPlatformId || (exports.EPlatformId = {}));
|
|
45
|
+
exports.termsAndConditions = `# Group Study Conduct Policy
|
|
46
|
+
|
|
47
|
+
As future clinicians, we expect that you treat your colleagues fairly and with respect.
|
|
48
|
+
As a result, we will not tolerate the following actions during use of the Quesmed platform:
|
|
49
|
+
|
|
50
|
+
- Violent threats
|
|
51
|
+
- Wishing, hoping or calling for serious harm on a person or group of people
|
|
52
|
+
- Incitement against individuals or groups
|
|
53
|
+
- Slurs, racist and sexist tropes
|
|
54
|
+
- Degrading others
|
|
55
|
+
- Unwanted sexual advances
|
|
56
|
+
|
|
57
|
+
When determining the penalty for violating our conduct policy, we consider a number of factors including the severity of the violation and the individual's record of violations. We reserve the right to immediately de-activate any account that violates our conduct policy. We may also consider raising concerns to the individual's licensing body (e.g. GMC) on a case-by-case basis.
|
|
58
|
+
|
|
59
|
+
By using the platform, you agree to be bound by our conduct policy as described above.`;
|
package/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './resolvers';
|
|
2
|
+
export * as utils from './utils';
|
|
1
3
|
export const ERRORS = {
|
|
2
4
|
TOKEN_INVALID: 'Invalid token.',
|
|
3
5
|
TOKEN_MISSING: 'Missing token.',
|
|
@@ -15,3 +17,18 @@ export var EPlatformId;
|
|
|
15
17
|
EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
|
|
16
18
|
EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
|
|
17
19
|
})(EPlatformId || (EPlatformId = {}));
|
|
20
|
+
export const termsAndConditions = `# Group Study Conduct Policy
|
|
21
|
+
|
|
22
|
+
As future clinicians, we expect that you treat your colleagues fairly and with respect.
|
|
23
|
+
As a result, we will not tolerate the following actions during use of the Quesmed platform:
|
|
24
|
+
|
|
25
|
+
- Violent threats
|
|
26
|
+
- Wishing, hoping or calling for serious harm on a person or group of people
|
|
27
|
+
- Incitement against individuals or groups
|
|
28
|
+
- Slurs, racist and sexist tropes
|
|
29
|
+
- Degrading others
|
|
30
|
+
- Unwanted sexual advances
|
|
31
|
+
|
|
32
|
+
When determining the penalty for violating our conduct policy, we consider a number of factors including the severity of the violation and the individual's record of violations. We reserve the right to immediately de-activate any account that violates our conduct policy. We may also consider raising concerns to the individual's licensing body (e.g. GMC) on a case-by-case basis.
|
|
33
|
+
|
|
34
|
+
By using the platform, you agree to be bound by our conduct policy as described above.`;
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./blog"), exports);
|
|
14
|
+
__exportStar(require("./chapter"), exports);
|
|
15
|
+
__exportStar(require("./concept"), exports);
|
|
16
|
+
__exportStar(require("./osce"), exports);
|
|
17
|
+
__exportStar(require("./picture"), exports);
|
|
18
|
+
__exportStar(require("./user"), exports);
|
|
19
|
+
__exportStar(require("./video"), exports);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export declare const OSCE_STATION_TOPIC_FIELDS: import("@apollo/client").DocumentNode;
|
|
2
|
-
export declare const OSCE_TYPE_FIELDS: import("@apollo/client").DocumentNode;
|
|
3
1
|
export declare const OSCE_STATION_MARK_FIELDS: import("@apollo/client").DocumentNode;
|
|
4
2
|
export declare const OSCE_STATION_FIELDS: import("@apollo/client").DocumentNode;
|
|
5
|
-
export declare const OSCE_MARKSHEET_USER_FIELDS: import("@apollo/client").DocumentNode;
|
|
6
3
|
export declare const OSCE_MARKSHEET_MARK_FIELDS: import("@apollo/client").DocumentNode;
|
|
7
4
|
export declare const OSCE_MARKSHEET_FIELDS: import("@apollo/client").DocumentNode;
|
|
8
5
|
export declare const OSCE_GROUP_FIELDS: import("@apollo/client").DocumentNode;
|
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_ACTION_FIELDS = exports.OSCE_GROUP_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.
|
|
3
|
+
exports.OSCE_MATCHMAKING_ACTION_FIELDS = exports.OSCE_MARKSHEET_ACTION_FIELDS = exports.OSCE_GROUP_FIELDS = exports.OSCE_MARKSHEET_FIELDS = exports.OSCE_MARKSHEET_MARK_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const picture_1 = require("./picture");
|
|
6
|
-
const user_1 = require("./user");
|
|
7
|
-
exports.OSCE_STATION_TOPIC_FIELDS = (0, client_1.gql) `
|
|
8
|
-
fragment OsceStationTopicFields on Topic {
|
|
9
|
-
id
|
|
10
|
-
name
|
|
11
|
-
typeId
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
exports.OSCE_TYPE_FIELDS = (0, client_1.gql) `
|
|
15
|
-
fragment OsceTypeFields on OsceType {
|
|
16
|
-
id
|
|
17
|
-
name
|
|
18
|
-
# user-specific keys
|
|
19
|
-
# completed
|
|
20
|
-
# total
|
|
21
|
-
# avgScore
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
6
|
exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
|
|
25
7
|
fragment OsceStationMarkFields on OsceStationMark {
|
|
26
8
|
id
|
|
@@ -31,8 +13,6 @@ exports.OSCE_STATION_MARK_FIELDS = (0, client_1.gql) `
|
|
|
31
13
|
}
|
|
32
14
|
`;
|
|
33
15
|
exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
|
|
34
|
-
${exports.OSCE_TYPE_FIELDS}
|
|
35
|
-
${exports.OSCE_STATION_TOPIC_FIELDS}
|
|
36
16
|
${picture_1.OSCE_PICTURE_FIELDS}
|
|
37
17
|
${exports.OSCE_STATION_MARK_FIELDS}
|
|
38
18
|
fragment OsceStationFields on OsceStation {
|
|
@@ -41,7 +21,8 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
|
|
|
41
21
|
deleted
|
|
42
22
|
name
|
|
43
23
|
osceType {
|
|
44
|
-
|
|
24
|
+
id
|
|
25
|
+
name
|
|
45
26
|
}
|
|
46
27
|
difficulty
|
|
47
28
|
candidateBrief
|
|
@@ -52,7 +33,8 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
|
|
|
52
33
|
...OsceStationMarkFields
|
|
53
34
|
}
|
|
54
35
|
topics {
|
|
55
|
-
|
|
36
|
+
id
|
|
37
|
+
name
|
|
56
38
|
}
|
|
57
39
|
candidatePictures {
|
|
58
40
|
...OscePictureFields
|
|
@@ -72,19 +54,6 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
|
|
|
72
54
|
# score
|
|
73
55
|
}
|
|
74
56
|
`;
|
|
75
|
-
exports.OSCE_MARKSHEET_USER_FIELDS = (0, client_1.gql) `
|
|
76
|
-
${user_1.USER_FIELDS}
|
|
77
|
-
fragment OsceMarksheetUserFields on OsceMarksheetUser {
|
|
78
|
-
# id - do not pass otherwise all unassigned roles = candidate
|
|
79
|
-
osceMarksheetId
|
|
80
|
-
userId
|
|
81
|
-
user {
|
|
82
|
-
id
|
|
83
|
-
displayName
|
|
84
|
-
}
|
|
85
|
-
role
|
|
86
|
-
}
|
|
87
|
-
`;
|
|
88
57
|
exports.OSCE_MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
|
|
89
58
|
${exports.OSCE_STATION_MARK_FIELDS}
|
|
90
59
|
fragment OsceMarksheetMarkFields on OsceMarksheetMark {
|
|
@@ -100,7 +69,6 @@ exports.OSCE_MARKSHEET_MARK_FIELDS = (0, client_1.gql) `
|
|
|
100
69
|
`;
|
|
101
70
|
exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
102
71
|
${exports.OSCE_MARKSHEET_MARK_FIELDS}
|
|
103
|
-
${exports.OSCE_MARKSHEET_USER_FIELDS}
|
|
104
72
|
fragment OsceMarksheetFields on OsceMarksheet {
|
|
105
73
|
id
|
|
106
74
|
createdAt
|
|
@@ -124,7 +92,14 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
124
92
|
...OsceMarksheetMarkFields
|
|
125
93
|
}
|
|
126
94
|
users {
|
|
127
|
-
|
|
95
|
+
# id - do not pass otherwise all unassigned roles = candidate
|
|
96
|
+
osceMarksheetId
|
|
97
|
+
userId
|
|
98
|
+
user {
|
|
99
|
+
id
|
|
100
|
+
displayName
|
|
101
|
+
}
|
|
102
|
+
role
|
|
128
103
|
}
|
|
129
104
|
members {
|
|
130
105
|
id
|
|
@@ -134,23 +109,29 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
134
109
|
}
|
|
135
110
|
`;
|
|
136
111
|
exports.OSCE_GROUP_FIELDS = (0, client_1.gql) `
|
|
137
|
-
${exports.OSCE_MARKSHEET_USER_FIELDS}
|
|
138
112
|
fragment OsceGroupFields on OsceGroup {
|
|
139
113
|
osceMarksheetId
|
|
140
114
|
agoraId
|
|
141
115
|
members {
|
|
142
|
-
|
|
116
|
+
osceMarksheetId
|
|
117
|
+
userId
|
|
118
|
+
user {
|
|
119
|
+
id
|
|
120
|
+
displayName
|
|
121
|
+
}
|
|
122
|
+
role
|
|
143
123
|
}
|
|
144
124
|
}
|
|
145
125
|
`;
|
|
146
126
|
exports.OSCE_MARKSHEET_ACTION_FIELDS = (0, client_1.gql) `
|
|
147
|
-
${user_1.USER_FIELDS}
|
|
148
127
|
fragment OsceMarksheetActionFields on OsceMarksheetAction {
|
|
149
128
|
osceMarksheetId
|
|
150
129
|
agoraId
|
|
151
130
|
userId
|
|
152
131
|
user {
|
|
153
|
-
|
|
132
|
+
id
|
|
133
|
+
displayName
|
|
134
|
+
universityId
|
|
154
135
|
}
|
|
155
136
|
startedAt
|
|
156
137
|
endedAt
|
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
import { OSCE_PICTURE_FIELDS } from './picture';
|
|
3
|
-
import { USER_FIELDS } from './user';
|
|
4
|
-
export const OSCE_STATION_TOPIC_FIELDS = gql `
|
|
5
|
-
fragment OsceStationTopicFields on Topic {
|
|
6
|
-
id
|
|
7
|
-
name
|
|
8
|
-
typeId
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
export const OSCE_TYPE_FIELDS = gql `
|
|
12
|
-
fragment OsceTypeFields on OsceType {
|
|
13
|
-
id
|
|
14
|
-
name
|
|
15
|
-
# user-specific keys
|
|
16
|
-
# completed
|
|
17
|
-
# total
|
|
18
|
-
# avgScore
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
3
|
export const OSCE_STATION_MARK_FIELDS = gql `
|
|
22
4
|
fragment OsceStationMarkFields on OsceStationMark {
|
|
23
5
|
id
|
|
@@ -28,8 +10,6 @@ export const OSCE_STATION_MARK_FIELDS = gql `
|
|
|
28
10
|
}
|
|
29
11
|
`;
|
|
30
12
|
export const OSCE_STATION_FIELDS = gql `
|
|
31
|
-
${OSCE_TYPE_FIELDS}
|
|
32
|
-
${OSCE_STATION_TOPIC_FIELDS}
|
|
33
13
|
${OSCE_PICTURE_FIELDS}
|
|
34
14
|
${OSCE_STATION_MARK_FIELDS}
|
|
35
15
|
fragment OsceStationFields on OsceStation {
|
|
@@ -38,7 +18,8 @@ export const OSCE_STATION_FIELDS = gql `
|
|
|
38
18
|
deleted
|
|
39
19
|
name
|
|
40
20
|
osceType {
|
|
41
|
-
|
|
21
|
+
id
|
|
22
|
+
name
|
|
42
23
|
}
|
|
43
24
|
difficulty
|
|
44
25
|
candidateBrief
|
|
@@ -49,7 +30,8 @@ export const OSCE_STATION_FIELDS = gql `
|
|
|
49
30
|
...OsceStationMarkFields
|
|
50
31
|
}
|
|
51
32
|
topics {
|
|
52
|
-
|
|
33
|
+
id
|
|
34
|
+
name
|
|
53
35
|
}
|
|
54
36
|
candidatePictures {
|
|
55
37
|
...OscePictureFields
|
|
@@ -69,19 +51,6 @@ export const OSCE_STATION_FIELDS = gql `
|
|
|
69
51
|
# score
|
|
70
52
|
}
|
|
71
53
|
`;
|
|
72
|
-
export const OSCE_MARKSHEET_USER_FIELDS = gql `
|
|
73
|
-
${USER_FIELDS}
|
|
74
|
-
fragment OsceMarksheetUserFields on OsceMarksheetUser {
|
|
75
|
-
# id - do not pass otherwise all unassigned roles = candidate
|
|
76
|
-
osceMarksheetId
|
|
77
|
-
userId
|
|
78
|
-
user {
|
|
79
|
-
id
|
|
80
|
-
displayName
|
|
81
|
-
}
|
|
82
|
-
role
|
|
83
|
-
}
|
|
84
|
-
`;
|
|
85
54
|
export const OSCE_MARKSHEET_MARK_FIELDS = gql `
|
|
86
55
|
${OSCE_STATION_MARK_FIELDS}
|
|
87
56
|
fragment OsceMarksheetMarkFields on OsceMarksheetMark {
|
|
@@ -97,7 +66,6 @@ export const OSCE_MARKSHEET_MARK_FIELDS = gql `
|
|
|
97
66
|
`;
|
|
98
67
|
export const OSCE_MARKSHEET_FIELDS = gql `
|
|
99
68
|
${OSCE_MARKSHEET_MARK_FIELDS}
|
|
100
|
-
${OSCE_MARKSHEET_USER_FIELDS}
|
|
101
69
|
fragment OsceMarksheetFields on OsceMarksheet {
|
|
102
70
|
id
|
|
103
71
|
createdAt
|
|
@@ -121,7 +89,14 @@ export const OSCE_MARKSHEET_FIELDS = gql `
|
|
|
121
89
|
...OsceMarksheetMarkFields
|
|
122
90
|
}
|
|
123
91
|
users {
|
|
124
|
-
|
|
92
|
+
# id - do not pass otherwise all unassigned roles = candidate
|
|
93
|
+
osceMarksheetId
|
|
94
|
+
userId
|
|
95
|
+
user {
|
|
96
|
+
id
|
|
97
|
+
displayName
|
|
98
|
+
}
|
|
99
|
+
role
|
|
125
100
|
}
|
|
126
101
|
members {
|
|
127
102
|
id
|
|
@@ -131,23 +106,29 @@ export const OSCE_MARKSHEET_FIELDS = gql `
|
|
|
131
106
|
}
|
|
132
107
|
`;
|
|
133
108
|
export const OSCE_GROUP_FIELDS = gql `
|
|
134
|
-
${OSCE_MARKSHEET_USER_FIELDS}
|
|
135
109
|
fragment OsceGroupFields on OsceGroup {
|
|
136
110
|
osceMarksheetId
|
|
137
111
|
agoraId
|
|
138
112
|
members {
|
|
139
|
-
|
|
113
|
+
osceMarksheetId
|
|
114
|
+
userId
|
|
115
|
+
user {
|
|
116
|
+
id
|
|
117
|
+
displayName
|
|
118
|
+
}
|
|
119
|
+
role
|
|
140
120
|
}
|
|
141
121
|
}
|
|
142
122
|
`;
|
|
143
123
|
export const OSCE_MARKSHEET_ACTION_FIELDS = gql `
|
|
144
|
-
${USER_FIELDS}
|
|
145
124
|
fragment OsceMarksheetActionFields on OsceMarksheetAction {
|
|
146
125
|
osceMarksheetId
|
|
147
126
|
agoraId
|
|
148
127
|
userId
|
|
149
128
|
user {
|
|
150
|
-
|
|
129
|
+
id
|
|
130
|
+
displayName
|
|
131
|
+
universityId
|
|
151
132
|
}
|
|
152
133
|
startedAt
|
|
153
134
|
endedAt
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VIDEO_FIELDS = exports.VIDEO_FILE_FIELDS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
|
-
const
|
|
6
|
-
const concept_1 = require("./concept");
|
|
5
|
+
const picture_1 = require("./picture");
|
|
7
6
|
exports.VIDEO_FILE_FIELDS = (0, client_1.gql) `
|
|
8
7
|
fragment VideoFileFields on File {
|
|
9
8
|
id
|
|
@@ -14,9 +13,7 @@ exports.VIDEO_FILE_FIELDS = (0, client_1.gql) `
|
|
|
14
13
|
}
|
|
15
14
|
`;
|
|
16
15
|
exports.VIDEO_FIELDS = (0, client_1.gql) `
|
|
17
|
-
${
|
|
18
|
-
${chapter_1.CHAPTER_FIELDS}
|
|
19
|
-
${concept_1.CONCEPT_TOPIC_FIELDS}
|
|
16
|
+
${picture_1.CHAPTER_PICTURE_FIELDS}
|
|
20
17
|
fragment VideoFields on Video {
|
|
21
18
|
id
|
|
22
19
|
title
|
|
@@ -30,11 +27,22 @@ exports.VIDEO_FIELDS = (0, client_1.gql) `
|
|
|
30
27
|
name
|
|
31
28
|
chapterId
|
|
32
29
|
chapter {
|
|
33
|
-
|
|
30
|
+
id
|
|
31
|
+
createdAt
|
|
32
|
+
updatedAt
|
|
33
|
+
explanation
|
|
34
|
+
typeId
|
|
35
|
+
pictures {
|
|
36
|
+
...ChapterPictureFields
|
|
37
|
+
}
|
|
38
|
+
files {
|
|
39
|
+
...VideoFileFields
|
|
40
|
+
}
|
|
34
41
|
}
|
|
35
42
|
topicId
|
|
36
43
|
topic {
|
|
37
|
-
|
|
44
|
+
id
|
|
45
|
+
name
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
live
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import {
|
|
3
|
-
import { CONCEPT_TOPIC_FIELDS } from './concept';
|
|
2
|
+
import { CHAPTER_PICTURE_FIELDS } from './picture';
|
|
4
3
|
export const VIDEO_FILE_FIELDS = gql `
|
|
5
4
|
fragment VideoFileFields on File {
|
|
6
5
|
id
|
|
@@ -11,9 +10,7 @@ export const VIDEO_FILE_FIELDS = gql `
|
|
|
11
10
|
}
|
|
12
11
|
`;
|
|
13
12
|
export const VIDEO_FIELDS = gql `
|
|
14
|
-
${
|
|
15
|
-
${CHAPTER_FIELDS}
|
|
16
|
-
${CONCEPT_TOPIC_FIELDS}
|
|
13
|
+
${CHAPTER_PICTURE_FIELDS}
|
|
17
14
|
fragment VideoFields on Video {
|
|
18
15
|
id
|
|
19
16
|
title
|
|
@@ -27,11 +24,22 @@ export const VIDEO_FIELDS = gql `
|
|
|
27
24
|
name
|
|
28
25
|
chapterId
|
|
29
26
|
chapter {
|
|
30
|
-
|
|
27
|
+
id
|
|
28
|
+
createdAt
|
|
29
|
+
updatedAt
|
|
30
|
+
explanation
|
|
31
|
+
typeId
|
|
32
|
+
pictures {
|
|
33
|
+
...ChapterPictureFields
|
|
34
|
+
}
|
|
35
|
+
files {
|
|
36
|
+
...VideoFileFields
|
|
37
|
+
}
|
|
31
38
|
}
|
|
32
39
|
topicId
|
|
33
40
|
topic {
|
|
34
|
-
|
|
41
|
+
id
|
|
42
|
+
name
|
|
35
43
|
}
|
|
36
44
|
}
|
|
37
45
|
live
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as fragment from './fragments';
|
|
2
|
+
import * as mutation from './mutation';
|
|
3
|
+
import * as query from './query';
|
|
4
|
+
import * as subscription from './subscription';
|
|
5
|
+
export * from './apollo';
|
|
6
|
+
export * from './types';
|
|
7
|
+
export declare namespace Resolvers {
|
|
8
|
+
export import Fragment = fragment;
|
|
9
|
+
export import Muation = mutation;
|
|
10
|
+
export import Query = query;
|
|
11
|
+
export import Subscription = subscription;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.Resolvers = void 0;
|
|
26
|
+
const fragment = __importStar(require("./fragments"));
|
|
27
|
+
const mutation = __importStar(require("./mutation"));
|
|
28
|
+
const query = __importStar(require("./query"));
|
|
29
|
+
const subscription = __importStar(require("./subscription"));
|
|
30
|
+
__exportStar(require("./apollo"), exports);
|
|
31
|
+
__exportStar(require("./types"), exports);
|
|
32
|
+
var Resolvers;
|
|
33
|
+
(function (Resolvers) {
|
|
34
|
+
Resolvers.Fragment = fragment;
|
|
35
|
+
Resolvers.Muation = mutation;
|
|
36
|
+
Resolvers.Query = query;
|
|
37
|
+
Resolvers.Subscription = subscription;
|
|
38
|
+
})(Resolvers = exports.Resolvers || (exports.Resolvers = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as fragment from './fragments';
|
|
2
|
+
import * as mutation from './mutation';
|
|
3
|
+
import * as query from './query';
|
|
4
|
+
import * as subscription from './subscription';
|
|
5
|
+
export * from './apollo';
|
|
6
|
+
export * from './types';
|
|
7
|
+
export var Resolvers;
|
|
8
|
+
(function (Resolvers) {
|
|
9
|
+
Resolvers.Fragment = fragment;
|
|
10
|
+
Resolvers.Muation = mutation;
|
|
11
|
+
Resolvers.Query = query;
|
|
12
|
+
Resolvers.Subscription = subscription;
|
|
13
|
+
})(Resolvers || (Resolvers = {}));
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { IBlogPost } from '../../models';
|
|
1
|
+
import { IBlogPost, IBlogTag } from '../../models';
|
|
2
2
|
import { graphqlNormalize, RootData } from '../types';
|
|
3
|
+
export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare type IBlogTagsVar = null;
|
|
5
|
+
export declare type IBlogTagsData = RootData<(graphqlNormalize & IBlogTag)[], 'blogTags'>;
|
|
3
6
|
export declare const BLOG_POST: import("@apollo/client").DocumentNode;
|
|
4
7
|
export interface IBlogPostVar {
|
|
5
8
|
id: number;
|
package/resolvers/query/blog.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BLOG_POSTS = exports.BLOG_POST = void 0;
|
|
3
|
+
exports.BLOG_POSTS = exports.BLOG_POST = exports.BLOG_TAGS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const blog_1 = require("../fragments/blog");
|
|
6
|
+
exports.BLOG_TAGS = (0, client_1.gql) `
|
|
7
|
+
${blog_1.BLOG_POST_FIELDS}
|
|
8
|
+
query BlogTags {
|
|
9
|
+
blogTags {
|
|
10
|
+
id
|
|
11
|
+
name
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
6
15
|
exports.BLOG_POST = (0, client_1.gql) `
|
|
7
16
|
${blog_1.BLOG_POST_FIELDS}
|
|
8
17
|
query BlogPost($id: Int!) {
|
package/resolvers/query/blog.mjs
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
import { BLOG_POST_FIELDS } from '../fragments/blog';
|
|
3
|
+
export const BLOG_TAGS = gql `
|
|
4
|
+
${BLOG_POST_FIELDS}
|
|
5
|
+
query BlogTags {
|
|
6
|
+
blogTags {
|
|
7
|
+
id
|
|
8
|
+
name
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
3
12
|
export const BLOG_POST = gql `
|
|
4
13
|
${BLOG_POST_FIELDS}
|
|
5
14
|
query BlogPost($id: Int!) {
|
|
@@ -5,13 +5,13 @@ const client_1 = require("@apollo/client");
|
|
|
5
5
|
const osce_1 = require("../../fragments/osce");
|
|
6
6
|
const osce_2 = require("./../../fragments/osce");
|
|
7
7
|
exports.DASHBOARD_OSCE = (0, client_1.gql) `
|
|
8
|
-
${osce_1.OSCE_TYPE_FIELDS}
|
|
9
8
|
query DashboardOsce($solo: Boolean!) {
|
|
10
9
|
restricted {
|
|
11
10
|
dashboardOsce(solo: $solo) {
|
|
12
11
|
lastAgoraId
|
|
13
12
|
types {
|
|
14
|
-
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
15
|
# user-specific
|
|
16
16
|
completed
|
|
17
17
|
total
|
|
@@ -87,11 +87,12 @@ exports.OSCE_STATION = (0, client_1.gql) `
|
|
|
87
87
|
}
|
|
88
88
|
`;
|
|
89
89
|
exports.OSCE_TOPICS = (0, client_1.gql) `
|
|
90
|
-
${osce_1.OSCE_STATION_TOPIC_FIELDS}
|
|
91
90
|
query OsceTopics {
|
|
92
91
|
restricted {
|
|
93
92
|
osceTopics {
|
|
94
|
-
|
|
93
|
+
id
|
|
94
|
+
name
|
|
95
|
+
typeId
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
|
-
import { OSCE_MARKSHEET_FIELDS
|
|
2
|
+
import { OSCE_MARKSHEET_FIELDS } from '../../fragments/osce';
|
|
3
3
|
import { OSCE_STATION_FIELDS } from './../../fragments/osce';
|
|
4
4
|
export const DASHBOARD_OSCE = gql `
|
|
5
|
-
${OSCE_TYPE_FIELDS}
|
|
6
5
|
query DashboardOsce($solo: Boolean!) {
|
|
7
6
|
restricted {
|
|
8
7
|
dashboardOsce(solo: $solo) {
|
|
9
8
|
lastAgoraId
|
|
10
9
|
types {
|
|
11
|
-
|
|
10
|
+
id
|
|
11
|
+
name
|
|
12
12
|
# user-specific
|
|
13
13
|
completed
|
|
14
14
|
total
|
|
@@ -84,11 +84,12 @@ export const OSCE_STATION = gql `
|
|
|
84
84
|
}
|
|
85
85
|
`;
|
|
86
86
|
export const OSCE_TOPICS = gql `
|
|
87
|
-
${OSCE_STATION_TOPIC_FIELDS}
|
|
88
87
|
query OsceTopics {
|
|
89
88
|
restricted {
|
|
90
89
|
osceTopics {
|
|
91
|
-
|
|
90
|
+
id
|
|
91
|
+
name
|
|
92
|
+
typeId
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
}
|
package/utils/index.d.ts
CHANGED
package/utils/index.js
CHANGED
|
@@ -9,9 +9,14 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
12
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Uuid4 = void 0;
|
|
13
17
|
__exportStar(require("./commonFunctions"), exports);
|
|
14
18
|
__exportStar(require("./lightgallery"), exports);
|
|
15
19
|
__exportStar(require("./offlineLink"), exports);
|
|
16
|
-
__exportStar(require("./uuid4"), exports);
|
|
17
20
|
__exportStar(require("./wordsToNumber"), exports);
|
|
21
|
+
const uuid4_1 = __importDefault(require("./uuid4"));
|
|
22
|
+
exports.Uuid4 = uuid4_1.default;
|