@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.4.37",
3
+ "version": "2.4.39",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -20,6 +20,7 @@ export interface IUserInput {
20
20
  examDate?: number | Date;
21
21
  dailyFeedResetTime?: number;
22
22
  dailyFeedMax?: number;
23
+ referral?: string;
23
24
  }
24
25
  export declare const UPDATE_USER: import("@apollo/client").DocumentNode;
25
26
  export interface IUpdateUserVar {
@@ -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: string;
11
+ displayName?: string;
12
12
  username: string;
13
- firstName: string;
14
- lastName: string;
13
+ firstName?: string;
14
+ lastName?: string;
15
15
  password: string;
16
- classYear: string;
17
- graduationYear: number;
18
- universityId: number;
19
- newsletter: boolean;
20
- referral: string | null;
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 { graphqlNormalize, RestrictedData } from '../../types';
3
- export type IQuesBookVar = null;
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 {
@@ -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,})\]/g;
4
+ const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/;
5
5
  function isOsceMarksheet(data) {
6
6
  return 'osceStationId' in data;
7
7
  }