@quesmed/types 2.4.36 → 2.4.38

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.
@@ -13,5 +13,6 @@ exports.MOCK_TEST_FIELDS = (0, client_1.gql) `
13
13
  lastMarksheetEndedAt
14
14
  lastMarksheetStartedAt
15
15
  lastMarksheetId
16
+ typeId
16
17
  }
17
18
  `;
@@ -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
  }
@@ -10,5 +10,6 @@ export const MOCK_TEST_FIELDS = gql `
10
10
  lastMarksheetEndedAt
11
11
  lastMarksheetStartedAt
12
12
  lastMarksheetId
13
+ typeId
13
14
  }
14
15
  `;
@@ -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;
@@ -1,9 +1,9 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { OSCE_STATION_FIELDS } from './../../fragments/osce';
3
3
  export const QUES_BOOK = gql `
4
- query quesBook {
4
+ query quesBook($typeId: Int) {
5
5
  restricted {
6
- quesBook {
6
+ quesBook(typeId: $typeId) {
7
7
  id
8
8
  name
9
9
  concepts {
@@ -1,4 +1,4 @@
1
- const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/g;
1
+ const lightgalleryRegex = /\[lightgallery([0-9]{0,})\]/;
2
2
  function isOsceMarksheet(data) {
3
3
  return 'osceStationId' in data;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.4.36",
3
+ "version": "2.4.38",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",