@quesmed/types 2.5.33 → 2.5.35

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.
@@ -59,6 +59,8 @@ export interface IOsceMarksheet {
59
59
  role?: EOsceRoles;
60
60
  solo: boolean;
61
61
  score: number;
62
+ total: number;
63
+ correct: number;
62
64
  globalScore: number;
63
65
  feedback: string;
64
66
  agoraId: string;
@@ -18,6 +18,22 @@ export interface IOsceMarksheetsVar {
18
18
  days?: number;
19
19
  }
20
20
  export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
21
+ export interface IOsceMarksheetsWindowVar {
22
+ filter: {
23
+ limit: number;
24
+ order?: string;
25
+ updatedAt?: Date | number;
26
+ solo?: boolean;
27
+ period?: number;
28
+ };
29
+ }
30
+ export declare const OSCE_MARKSHEET_WINDOW: import("@apollo/client").DocumentNode;
31
+ export interface IOsceMarksheetsDashboardData {
32
+ total: number;
33
+ score: number;
34
+ results: IOsceMarksheet[];
35
+ }
36
+ export type IOsceMarksheetsWindowData = RestrictedData<graphqlNormalize & IOsceMarksheetsDashboardData, 'osceMarksheetsWindow'>;
21
37
  export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
22
38
  export interface IOsceMarksheetVar {
23
39
  id: number;
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HEARTBEAT = exports.SEARCH_OSCE_STATIONS = exports.OSCE_TOPICS = exports.OSCE_STATION = exports.OSCE_STATIONS = exports.OSCE_MARKSHEET = exports.OSCE_MARKSHEETS = exports.DASHBOARD_OSCE = exports.OSCE_STATS = void 0;
3
+ exports.HEARTBEAT = exports.SEARCH_OSCE_STATIONS = exports.OSCE_TOPICS = exports.OSCE_STATION = exports.OSCE_STATIONS = exports.OSCE_MARKSHEET = exports.OSCE_MARKSHEET_WINDOW = exports.OSCE_MARKSHEETS = exports.DASHBOARD_OSCE = exports.OSCE_STATS = void 0;
4
4
  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.OSCE_STATS = (0, client_1.gql) `
8
- query OsceStats($solo: Boolean!, $typeId: [Int]) {
9
- restricted {
10
- osceStats(solo: $solo, typeId: $typeId) {
11
- avgScore
12
- completed
13
- total
14
- types {
8
+ query OsceStats($solo: Boolean!, $typeId: [Int]) {
9
+ restricted {
10
+ osceStats(solo: $solo, typeId: $typeId) {
15
11
  avgScore
16
12
  completed
17
- id
18
- name
19
13
  total
14
+ types {
15
+ avgScore
16
+ completed
17
+ id
18
+ name
19
+ total
20
+ }
20
21
  }
21
22
  }
22
23
  }
23
- }
24
24
  `;
25
25
  exports.DASHBOARD_OSCE = (0, client_1.gql) `
26
26
  query DashboardOsce($solo: Boolean!) {
@@ -56,7 +56,27 @@ exports.OSCE_MARKSHEETS = (0, client_1.gql) `
56
56
  }
57
57
  }
58
58
  `;
59
- ;
59
+ exports.OSCE_MARKSHEET_WINDOW = (0, client_1.gql) `
60
+ ${osce_2.OSCE_STATION_FIELDS}
61
+ ${osce_1.OSCE_MARKSHEET_FIELDS}
62
+ query OsceMarksheetsWindow($filter: OsceMarksheetWindowFilterInput!) {
63
+ restricted {
64
+ osceMarksheetsWindow(filter: $filter) {
65
+ results {
66
+ ...OsceMarksheetFields
67
+ correct
68
+ total
69
+ osceStation {
70
+ ...OsceStationFields
71
+ __typename
72
+ }
73
+ }
74
+ score
75
+ total
76
+ }
77
+ }
78
+ }
79
+ `;
60
80
  exports.OSCE_MARKSHEET = (0, client_1.gql) `
61
81
  ${osce_2.OSCE_STATION_FIELDS}
62
82
  ${osce_1.OSCE_MARKSHEET_FIELDS}
@@ -22,6 +22,8 @@ exports.QUES_BOOK = (0, client_1.gql) `
22
22
  id
23
23
  name
24
24
  status
25
+ totalCards
26
+ totalQuestions
25
27
  chapter {
26
28
  id
27
29
  typeId
@@ -59,6 +59,8 @@ export interface IOsceMarksheet {
59
59
  role?: EOsceRoles;
60
60
  solo: boolean;
61
61
  score: number;
62
+ total: number;
63
+ correct: number;
62
64
  globalScore: number;
63
65
  feedback: string;
64
66
  agoraId: string;
@@ -18,6 +18,22 @@ export interface IOsceMarksheetsVar {
18
18
  days?: number;
19
19
  }
20
20
  export type IOsceMarksheetsData = RestrictedData<(graphqlNormalize & IOsceMarksheet)[], 'osceMarksheets'>;
21
+ export interface IOsceMarksheetsWindowVar {
22
+ filter: {
23
+ limit: number;
24
+ order?: string;
25
+ updatedAt?: Date | number;
26
+ solo?: boolean;
27
+ period?: number;
28
+ };
29
+ }
30
+ export declare const OSCE_MARKSHEET_WINDOW: import("@apollo/client").DocumentNode;
31
+ export interface IOsceMarksheetsDashboardData {
32
+ total: number;
33
+ score: number;
34
+ results: IOsceMarksheet[];
35
+ }
36
+ export type IOsceMarksheetsWindowData = RestrictedData<graphqlNormalize & IOsceMarksheetsDashboardData, 'osceMarksheetsWindow'>;
21
37
  export declare const OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
22
38
  export interface IOsceMarksheetVar {
23
39
  id: number;
@@ -2,22 +2,22 @@ import { gql } from '@apollo/client';
2
2
  import { OSCE_MARKSHEET_FIELDS } from '../../fragments/osce';
3
3
  import { OSCE_STATION_FIELDS } from './../../fragments/osce';
4
4
  export const OSCE_STATS = gql `
5
- query OsceStats($solo: Boolean!, $typeId: [Int]) {
6
- restricted {
7
- osceStats(solo: $solo, typeId: $typeId) {
8
- avgScore
9
- completed
10
- total
11
- types {
5
+ query OsceStats($solo: Boolean!, $typeId: [Int]) {
6
+ restricted {
7
+ osceStats(solo: $solo, typeId: $typeId) {
12
8
  avgScore
13
9
  completed
14
- id
15
- name
16
10
  total
11
+ types {
12
+ avgScore
13
+ completed
14
+ id
15
+ name
16
+ total
17
+ }
17
18
  }
18
19
  }
19
20
  }
20
- }
21
21
  `;
22
22
  export const DASHBOARD_OSCE = gql `
23
23
  query DashboardOsce($solo: Boolean!) {
@@ -53,7 +53,27 @@ export const OSCE_MARKSHEETS = gql `
53
53
  }
54
54
  }
55
55
  `;
56
- ;
56
+ export const OSCE_MARKSHEET_WINDOW = gql `
57
+ ${OSCE_STATION_FIELDS}
58
+ ${OSCE_MARKSHEET_FIELDS}
59
+ query OsceMarksheetsWindow($filter: OsceMarksheetWindowFilterInput!) {
60
+ restricted {
61
+ osceMarksheetsWindow(filter: $filter) {
62
+ results {
63
+ ...OsceMarksheetFields
64
+ correct
65
+ total
66
+ osceStation {
67
+ ...OsceStationFields
68
+ __typename
69
+ }
70
+ }
71
+ score
72
+ total
73
+ }
74
+ }
75
+ }
76
+ `;
57
77
  export const OSCE_MARKSHEET = gql `
58
78
  ${OSCE_STATION_FIELDS}
59
79
  ${OSCE_MARKSHEET_FIELDS}
@@ -19,6 +19,8 @@ export const QUES_BOOK = gql `
19
19
  id
20
20
  name
21
21
  status
22
+ totalCards
23
+ totalQuestions
22
24
  chapter {
23
25
  id
24
26
  typeId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.33",
3
+ "version": "2.5.35",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",