@quesmed/types 2.5.87 → 2.5.88

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.
@@ -3,12 +3,15 @@ import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IQuesBookVar = {
4
4
  /**TODO: make it mandatory once frontend changes are completed */
5
5
  typeId?: ETopicType[];
6
+ videosOnly?: boolean;
6
7
  };
7
8
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
8
9
  export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
10
+ export declare const PUBLIC_QUES_BOOK: import("@apollo/client").DocumentNode;
9
11
  export type IOsceBookVar = {
10
12
  /**TODO: make it mandatory once frontend changes are completed */
11
13
  typeId?: EOsceType[];
14
+ videosOnly?: boolean;
12
15
  };
13
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
14
17
  export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_BOOK = exports.QUES_BOOK = void 0;
3
+ exports.OSCE_BOOK = exports.PUBLIC_QUES_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($typeId: [Int]) {
7
+ query quesBook($typeId: [Int], $videosOnly: Boolean) {
8
8
  restricted {
9
- quesBook(typeId: $typeId) {
9
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
10
10
  id
11
11
  name
12
12
  typeId
@@ -62,11 +62,68 @@ exports.QUES_BOOK = (0, client_1.gql) `
62
62
  }
63
63
  }
64
64
  `;
65
+ exports.PUBLIC_QUES_BOOK = (0, client_1.gql) `
66
+ query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
67
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
68
+ id
69
+ name
70
+ typeId
71
+ demo
72
+ unreadConcepts
73
+ completedConcepts
74
+ revisingConcepts
75
+ urgentConcepts
76
+ unwatchedVideos
77
+ completedVideos
78
+ revisingVideos
79
+ urgentVideos
80
+ concepts {
81
+ id
82
+ name
83
+ demo
84
+ status
85
+ totalCards
86
+ totalQuestions
87
+ chapter {
88
+ id
89
+ typeId
90
+ explanation
91
+ pictures {
92
+ id
93
+ createdAt
94
+ updatedAt
95
+ name
96
+ caption
97
+ path
98
+ path512
99
+ path256
100
+ index
101
+ }
102
+ }
103
+ topicId
104
+ videos {
105
+ id
106
+ status
107
+ title
108
+ museId
109
+ thumbnail
110
+ concepts {
111
+ id
112
+ name
113
+ }
114
+ live
115
+ description
116
+ duration
117
+ }
118
+ }
119
+ }
120
+ }
121
+ `;
65
122
  exports.OSCE_BOOK = (0, client_1.gql) `
66
123
  ${osce_1.OSCE_STATION_FIELDS}
67
- query OsceBook($typeId: [Int]) {
124
+ query OsceBook($typeId: [Int], $videosOnly: Boolean) {
68
125
  restricted {
69
- osceBook(typeId: $typeId) {
126
+ osceBook(typeId: $typeId, videosOnly: $videosOnly) {
70
127
  ...OsceStationFields
71
128
  lastOsceMarksheetId
72
129
  score
@@ -3,12 +3,15 @@ import { RestrictedData, graphqlNormalize } from '../../types';
3
3
  export type IQuesBookVar = {
4
4
  /**TODO: make it mandatory once frontend changes are completed */
5
5
  typeId?: ETopicType[];
6
+ videosOnly?: boolean;
6
7
  };
7
8
  export type IQuesBookData = RestrictedData<(graphqlNormalize & ITopic)[], 'quesBook'>;
8
9
  export declare const QUES_BOOK: import("@apollo/client").DocumentNode;
10
+ export declare const PUBLIC_QUES_BOOK: import("@apollo/client").DocumentNode;
9
11
  export type IOsceBookVar = {
10
12
  /**TODO: make it mandatory once frontend changes are completed */
11
13
  typeId?: EOsceType[];
14
+ videosOnly?: boolean;
12
15
  };
13
16
  export type IOsceBookData = RestrictedData<(graphqlNormalize & IOsceStation)[], 'osceBook'>;
14
17
  export declare const OSCE_BOOK: import("@apollo/client").DocumentNode;
@@ -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($typeId: [Int]) {
4
+ query quesBook($typeId: [Int], $videosOnly: Boolean) {
5
5
  restricted {
6
- quesBook(typeId: $typeId) {
6
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
7
7
  id
8
8
  name
9
9
  typeId
@@ -59,11 +59,68 @@ export const QUES_BOOK = gql `
59
59
  }
60
60
  }
61
61
  `;
62
+ export const PUBLIC_QUES_BOOK = gql `
63
+ query PublicQuesBook($typeId: [Int], $videosOnly: Boolean) {
64
+ quesBook(typeId: $typeId, videosOnly: $videosOnly) {
65
+ id
66
+ name
67
+ typeId
68
+ demo
69
+ unreadConcepts
70
+ completedConcepts
71
+ revisingConcepts
72
+ urgentConcepts
73
+ unwatchedVideos
74
+ completedVideos
75
+ revisingVideos
76
+ urgentVideos
77
+ concepts {
78
+ id
79
+ name
80
+ demo
81
+ status
82
+ totalCards
83
+ totalQuestions
84
+ chapter {
85
+ id
86
+ typeId
87
+ explanation
88
+ pictures {
89
+ id
90
+ createdAt
91
+ updatedAt
92
+ name
93
+ caption
94
+ path
95
+ path512
96
+ path256
97
+ index
98
+ }
99
+ }
100
+ topicId
101
+ videos {
102
+ id
103
+ status
104
+ title
105
+ museId
106
+ thumbnail
107
+ concepts {
108
+ id
109
+ name
110
+ }
111
+ live
112
+ description
113
+ duration
114
+ }
115
+ }
116
+ }
117
+ }
118
+ `;
62
119
  export const OSCE_BOOK = gql `
63
120
  ${OSCE_STATION_FIELDS}
64
- query OsceBook($typeId: [Int]) {
121
+ query OsceBook($typeId: [Int], $videosOnly: Boolean) {
65
122
  restricted {
66
- osceBook(typeId: $typeId) {
123
+ osceBook(typeId: $typeId, videosOnly: $videosOnly) {
67
124
  ...OsceStationFields
68
125
  lastOsceMarksheetId
69
126
  score
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.87",
3
+ "version": "2.5.88",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",