@quesmed/types-rn 2.4.37 → 2.4.39
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
CHANGED
|
@@ -8,16 +8,16 @@ export interface ILoginUserVar {
|
|
|
8
8
|
export type ILoginUserData = RootData<string, 'loginUser'>;
|
|
9
9
|
export declare const REGISTER_USER: import("@apollo/client").DocumentNode;
|
|
10
10
|
export interface RegisterUserInput {
|
|
11
|
-
displayName
|
|
11
|
+
displayName?: string;
|
|
12
12
|
username: string;
|
|
13
|
-
firstName
|
|
14
|
-
lastName
|
|
13
|
+
firstName?: string;
|
|
14
|
+
lastName?: string;
|
|
15
15
|
password: string;
|
|
16
|
-
classYear
|
|
17
|
-
graduationYear
|
|
18
|
-
universityId
|
|
19
|
-
newsletter
|
|
20
|
-
referral
|
|
16
|
+
classYear?: string;
|
|
17
|
+
graduationYear?: number;
|
|
18
|
+
universityId?: number;
|
|
19
|
+
newsletter?: boolean;
|
|
20
|
+
referral?: string | null;
|
|
21
21
|
}
|
|
22
22
|
export interface IRegisterUserVar {
|
|
23
23
|
userData: RegisterUserInput;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { IOsceStation, ITopic } from '../../../models';
|
|
2
|
-
import {
|
|
3
|
-
export type IQuesBookVar =
|
|
1
|
+
import { ETopicType, IOsceStation, ITopic } from '../../../models';
|
|
2
|
+
import { RestrictedData, graphqlNormalize } from '../../types';
|
|
3
|
+
export type IQuesBookVar = {
|
|
4
|
+
/**TODO: make it mandatory once frontend changes are completed */
|
|
5
|
+
typeId?: ETopicType;
|
|
6
|
+
};
|
|
4
7
|
export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
|
|
5
8
|
export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
|
|
6
9
|
export type IOsceBookVar = null;
|
|
@@ -4,9 +4,9 @@ exports.OSCE_BOOK = exports.QUES_BOOK = void 0;
|
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
const osce_1 = require("./../../fragments/osce");
|
|
6
6
|
exports.QUES_BOOK = (0, client_1.gql) `
|
|
7
|
-
query quesBook {
|
|
7
|
+
query quesBook($typeId: Int) {
|
|
8
8
|
restricted {
|
|
9
|
-
quesBook {
|
|
9
|
+
quesBook(typeId: $typeId) {
|
|
10
10
|
id
|
|
11
11
|
name
|
|
12
12
|
concepts {
|
package/utils/lightgallery.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lightgalleryOsceResolve = void 0;
|
|
4
|
-
const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]
|
|
4
|
+
const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/;
|
|
5
5
|
function isOsceMarksheet(data) {
|
|
6
6
|
return 'osceStationId' in data;
|
|
7
7
|
}
|