@quesmed/types 1.4.16 → 1.4.20
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/models/OsceMarksheet.d.ts +1 -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.js +9 -5
- package/resolvers/fragments/osce.mjs +9 -5
- 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/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);
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
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_MARKSHEET_USER_FIELDS = exports.OSCE_STATION_FIELDS = exports.OSCE_STATION_MARK_FIELDS = exports.OSCE_TYPE_FIELDS = exports.OSCE_STATION_TOPIC_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
6
|
exports.OSCE_STATION_TOPIC_FIELDS = (0, client_1.gql) `
|
|
8
7
|
fragment OsceStationTopicFields on Topic {
|
|
9
8
|
id
|
|
@@ -73,13 +72,13 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
|
|
|
73
72
|
}
|
|
74
73
|
`;
|
|
75
74
|
exports.OSCE_MARKSHEET_USER_FIELDS = (0, client_1.gql) `
|
|
76
|
-
${user_1.USER_FIELDS}
|
|
77
75
|
fragment OsceMarksheetUserFields on OsceMarksheetUser {
|
|
78
76
|
# id - do not pass otherwise all unassigned roles = candidate
|
|
79
77
|
osceMarksheetId
|
|
80
78
|
userId
|
|
81
79
|
user {
|
|
82
|
-
|
|
80
|
+
id
|
|
81
|
+
displayName
|
|
83
82
|
}
|
|
84
83
|
role
|
|
85
84
|
}
|
|
@@ -125,6 +124,10 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
|
|
|
125
124
|
users {
|
|
126
125
|
...OsceMarksheetUserFields
|
|
127
126
|
}
|
|
127
|
+
members {
|
|
128
|
+
id
|
|
129
|
+
displayName
|
|
130
|
+
}
|
|
128
131
|
completed
|
|
129
132
|
}
|
|
130
133
|
`;
|
|
@@ -139,13 +142,14 @@ exports.OSCE_GROUP_FIELDS = (0, client_1.gql) `
|
|
|
139
142
|
}
|
|
140
143
|
`;
|
|
141
144
|
exports.OSCE_MARKSHEET_ACTION_FIELDS = (0, client_1.gql) `
|
|
142
|
-
${user_1.USER_FIELDS}
|
|
143
145
|
fragment OsceMarksheetActionFields on OsceMarksheetAction {
|
|
144
146
|
osceMarksheetId
|
|
145
147
|
agoraId
|
|
146
148
|
userId
|
|
147
149
|
user {
|
|
148
|
-
|
|
150
|
+
id
|
|
151
|
+
displayName
|
|
152
|
+
universityId
|
|
149
153
|
}
|
|
150
154
|
startedAt
|
|
151
155
|
endedAt
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { gql } from '@apollo/client';
|
|
2
2
|
import { OSCE_PICTURE_FIELDS } from './picture';
|
|
3
|
-
import { USER_FIELDS } from './user';
|
|
4
3
|
export const OSCE_STATION_TOPIC_FIELDS = gql `
|
|
5
4
|
fragment OsceStationTopicFields on Topic {
|
|
6
5
|
id
|
|
@@ -70,13 +69,13 @@ export const OSCE_STATION_FIELDS = gql `
|
|
|
70
69
|
}
|
|
71
70
|
`;
|
|
72
71
|
export const OSCE_MARKSHEET_USER_FIELDS = gql `
|
|
73
|
-
${USER_FIELDS}
|
|
74
72
|
fragment OsceMarksheetUserFields on OsceMarksheetUser {
|
|
75
73
|
# id - do not pass otherwise all unassigned roles = candidate
|
|
76
74
|
osceMarksheetId
|
|
77
75
|
userId
|
|
78
76
|
user {
|
|
79
|
-
|
|
77
|
+
id
|
|
78
|
+
displayName
|
|
80
79
|
}
|
|
81
80
|
role
|
|
82
81
|
}
|
|
@@ -122,6 +121,10 @@ export const OSCE_MARKSHEET_FIELDS = gql `
|
|
|
122
121
|
users {
|
|
123
122
|
...OsceMarksheetUserFields
|
|
124
123
|
}
|
|
124
|
+
members {
|
|
125
|
+
id
|
|
126
|
+
displayName
|
|
127
|
+
}
|
|
125
128
|
completed
|
|
126
129
|
}
|
|
127
130
|
`;
|
|
@@ -136,13 +139,14 @@ export const OSCE_GROUP_FIELDS = gql `
|
|
|
136
139
|
}
|
|
137
140
|
`;
|
|
138
141
|
export const OSCE_MARKSHEET_ACTION_FIELDS = gql `
|
|
139
|
-
${USER_FIELDS}
|
|
140
142
|
fragment OsceMarksheetActionFields on OsceMarksheetAction {
|
|
141
143
|
osceMarksheetId
|
|
142
144
|
agoraId
|
|
143
145
|
userId
|
|
144
146
|
user {
|
|
145
|
-
|
|
147
|
+
id
|
|
148
|
+
displayName
|
|
149
|
+
universityId
|
|
146
150
|
}
|
|
147
151
|
startedAt
|
|
148
152
|
endedAt
|
|
@@ -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!) {
|
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;
|