@quesmed/types 2.6.41 → 2.6.43

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.
@@ -1,4 +1,4 @@
1
- import { IEntitlement } from './Product';
1
+ import { EProductType, IEntitlement } from './Product';
2
2
  import { Id } from './Type';
3
3
  export interface IFeedback {
4
4
  id: Id;
@@ -7,5 +7,6 @@ export interface IFeedback {
7
7
  name: string;
8
8
  feedback: string;
9
9
  university: string;
10
- product: IEntitlement;
10
+ productId: EProductType | null;
11
+ product: IEntitlement | null;
11
12
  }
@@ -10,6 +10,7 @@ import { IVideo } from './Video';
10
10
  export interface IOsceType {
11
11
  id: Id;
12
12
  name: string;
13
+ index: number;
13
14
  completed: number;
14
15
  total: number;
15
16
  avgScore: number;
@@ -64,10 +64,12 @@ export declare enum EAppType {
64
64
  export interface IEntitlement {
65
65
  id: EProductType;
66
66
  name: string;
67
+ index: number;
67
68
  }
68
69
  export interface IEntitlementStats {
69
70
  id: EProductType;
70
71
  name: string;
72
+ index: number;
71
73
  displayName: string;
72
74
  totalQuestions?: number | null;
73
75
  completedQuestions?: number | null;
@@ -34,6 +34,7 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
34
34
  entitlement {
35
35
  id
36
36
  name
37
+ index
37
38
  }
38
39
  difficulty
39
40
  candidateBrief
@@ -1,5 +1,7 @@
1
- import { IFeedback } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IFeedback } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
4
- export type IFeedbackVar = null;
4
+ export type IFeedbackVar = {
5
+ productId?: EProductType;
6
+ };
5
7
  export declare const FEEDBACK: import("@apollo/client").DocumentNode;
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FEEDBACK = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.FEEDBACK = (0, client_1.gql) `
6
- query Feedback {
7
- feedback {
6
+ query Feedback($productId: Int) {
7
+ feedback(productId: $productId) {
8
8
  id
9
9
  name
10
10
  feedback
11
11
  university
12
+ productId
12
13
  product {
13
14
  id
14
15
  name
@@ -16,6 +16,7 @@ exports.OSCE_STATS = (0, client_1.gql) `
16
16
  completed
17
17
  id
18
18
  name
19
+ index
19
20
  total
20
21
  }
21
22
  }
@@ -20,6 +20,7 @@ exports.PRODUCT_STATS = (0, client_1.gql) `
20
20
  types {
21
21
  id
22
22
  name
23
+ index
23
24
  totalQuestions
24
25
  completedQuestions
25
26
  correctQuestions
@@ -14,6 +14,7 @@ exports.QBANK_KNOWLEDGE_VIDEO_LIBRARY = (0, client_1.gql) `
14
14
  entitlement {
15
15
  id
16
16
  name
17
+ index
17
18
  }
18
19
  unreadConcepts
19
20
  completedConcepts
@@ -78,6 +79,7 @@ exports.PUBLIC_QBANK_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
78
79
  entitlement {
79
80
  id
80
81
  name
82
+ index
81
83
  }
82
84
  unreadConcepts
83
85
  completedConcepts
@@ -155,6 +157,7 @@ exports.PACE_KNOWLEDGE_LIBRARY = (0, client_1.gql) `
155
157
  entitlement {
156
158
  id
157
159
  name
160
+ index
158
161
  }
159
162
  chapter {
160
163
  id
@@ -11,6 +11,7 @@ exports.TOPIC = (0, client_1.gql) `
11
11
  entitlement {
12
12
  id
13
13
  name
14
+ index
14
15
  }
15
16
  totalQuestions
16
17
  correctQuestions
@@ -43,6 +44,7 @@ exports.TOPICS = (0, client_1.gql) `
43
44
  entitlement {
44
45
  id
45
46
  name
47
+ index
46
48
  }
47
49
  concepts {
48
50
  id
@@ -68,6 +70,7 @@ exports.QUESTION_TOPICS = (0, client_1.gql) `
68
70
  entitlement {
69
71
  id
70
72
  name
73
+ index
71
74
  }
72
75
  concepts {
73
76
  id
@@ -95,6 +98,7 @@ exports.FLASHCARDS_TOPICS = (0, client_1.gql) `
95
98
  entitlement {
96
99
  id
97
100
  name
101
+ index
98
102
  }
99
103
  concepts {
100
104
  id
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIDEOS = exports.VIDEO = void 0;
4
4
  const client_1 = require("@apollo/client");
5
+ const fragments_1 = require("../../fragments");
5
6
  exports.VIDEO = (0, client_1.gql) `
7
+ ${fragments_1.PICTURE_FIELDS}
6
8
  query Video($id: Int!) {
7
9
  restricted {
8
10
  video(id: $id) {
@@ -48,6 +50,11 @@ exports.VIDEO = (0, client_1.gql) `
48
50
  osceType {
49
51
  id
50
52
  }
53
+ entitlement {
54
+ id
55
+ name
56
+ index
57
+ }
51
58
  candidateBrief
52
59
  examinerBrief
53
60
  actorBrief
@@ -66,72 +73,16 @@ exports.VIDEO = (0, client_1.gql) `
66
73
  }
67
74
  }
68
75
  candidatePictures {
69
- id
70
- createdAt
71
- updatedAt
72
- name
73
- caption
74
- path
75
- path512
76
- path256
77
- thumbhash
78
- topicId
79
- topic {
80
- id
81
- name
82
- typeId
83
- }
76
+ ...PictureFields
84
77
  }
85
78
  actorPictures {
86
- id
87
- createdAt
88
- updatedAt
89
- name
90
- caption
91
- path
92
- path512
93
- path256
94
- thumbhash
95
- topicId
96
- topic {
97
- id
98
- name
99
- typeId
100
- }
79
+ ...PictureFields
101
80
  }
102
81
  examinerPictures {
103
- id
104
- createdAt
105
- updatedAt
106
- name
107
- caption
108
- path
109
- path512
110
- path256
111
- thumbhash
112
- topicId
113
- topic {
114
- id
115
- name
116
- typeId
117
- }
82
+ ...PictureFields
118
83
  }
119
84
  walkthroughPictures {
120
- id
121
- createdAt
122
- updatedAt
123
- name
124
- caption
125
- path
126
- path512
127
- path256
128
- thumbhash
129
- topicId
130
- topic {
131
- id
132
- name
133
- typeId
134
- }
85
+ ...PictureFields
135
86
  }
136
87
  lastOsceMarksheetId
137
88
  }
@@ -1,4 +1,4 @@
1
- import { IEntitlement } from './Product';
1
+ import { EProductType, IEntitlement } from './Product';
2
2
  import { Id } from './Type';
3
3
  export interface IFeedback {
4
4
  id: Id;
@@ -7,5 +7,6 @@ export interface IFeedback {
7
7
  name: string;
8
8
  feedback: string;
9
9
  university: string;
10
- product: IEntitlement;
10
+ productId: EProductType | null;
11
+ product: IEntitlement | null;
11
12
  }
@@ -10,6 +10,7 @@ import { IVideo } from './Video';
10
10
  export interface IOsceType {
11
11
  id: Id;
12
12
  name: string;
13
+ index: number;
13
14
  completed: number;
14
15
  total: number;
15
16
  avgScore: number;
@@ -64,10 +64,12 @@ export declare enum EAppType {
64
64
  export interface IEntitlement {
65
65
  id: EProductType;
66
66
  name: string;
67
+ index: number;
67
68
  }
68
69
  export interface IEntitlementStats {
69
70
  id: EProductType;
70
71
  name: string;
72
+ index: number;
71
73
  displayName: string;
72
74
  totalQuestions?: number | null;
73
75
  completedQuestions?: number | null;
@@ -31,6 +31,7 @@ export const OSCE_STATION_FIELDS = gql `
31
31
  entitlement {
32
32
  id
33
33
  name
34
+ index
34
35
  }
35
36
  difficulty
36
37
  candidateBrief
@@ -1,5 +1,7 @@
1
- import { IFeedback } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
1
+ import { EProductType, IFeedback } from '../../models';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export type IFeedbackData = RootData<(graphqlNormalize & IFeedback)[], 'feedback'>;
4
- export type IFeedbackVar = null;
4
+ export type IFeedbackVar = {
5
+ productId?: EProductType;
6
+ };
5
7
  export declare const FEEDBACK: import("@apollo/client").DocumentNode;
@@ -1,11 +1,12 @@
1
1
  import { gql } from '@apollo/client';
2
2
  export const FEEDBACK = gql `
3
- query Feedback {
4
- feedback {
3
+ query Feedback($productId: Int) {
4
+ feedback(productId: $productId) {
5
5
  id
6
6
  name
7
7
  feedback
8
8
  university
9
+ productId
9
10
  product {
10
11
  id
11
12
  name
@@ -13,6 +13,7 @@ export const OSCE_STATS = gql `
13
13
  completed
14
14
  id
15
15
  name
16
+ index
16
17
  total
17
18
  }
18
19
  }
@@ -17,6 +17,7 @@ export const PRODUCT_STATS = gql `
17
17
  types {
18
18
  id
19
19
  name
20
+ index
20
21
  totalQuestions
21
22
  completedQuestions
22
23
  correctQuestions
@@ -11,6 +11,7 @@ export const QBANK_KNOWLEDGE_VIDEO_LIBRARY = gql `
11
11
  entitlement {
12
12
  id
13
13
  name
14
+ index
14
15
  }
15
16
  unreadConcepts
16
17
  completedConcepts
@@ -75,6 +76,7 @@ export const PUBLIC_QBANK_KNOWLEDGE_LIBRARY = gql `
75
76
  entitlement {
76
77
  id
77
78
  name
79
+ index
78
80
  }
79
81
  unreadConcepts
80
82
  completedConcepts
@@ -152,6 +154,7 @@ export const PACE_KNOWLEDGE_LIBRARY = gql `
152
154
  entitlement {
153
155
  id
154
156
  name
157
+ index
155
158
  }
156
159
  chapter {
157
160
  id
@@ -8,6 +8,7 @@ export const TOPIC = gql `
8
8
  entitlement {
9
9
  id
10
10
  name
11
+ index
11
12
  }
12
13
  totalQuestions
13
14
  correctQuestions
@@ -40,6 +41,7 @@ export const TOPICS = gql `
40
41
  entitlement {
41
42
  id
42
43
  name
44
+ index
43
45
  }
44
46
  concepts {
45
47
  id
@@ -65,6 +67,7 @@ export const QUESTION_TOPICS = gql `
65
67
  entitlement {
66
68
  id
67
69
  name
70
+ index
68
71
  }
69
72
  concepts {
70
73
  id
@@ -92,6 +95,7 @@ export const FLASHCARDS_TOPICS = gql `
92
95
  entitlement {
93
96
  id
94
97
  name
98
+ index
95
99
  }
96
100
  concepts {
97
101
  id
@@ -1,5 +1,7 @@
1
1
  import { gql } from '@apollo/client';
2
+ import { PICTURE_FIELDS } from '../../fragments';
2
3
  export const VIDEO = gql `
4
+ ${PICTURE_FIELDS}
3
5
  query Video($id: Int!) {
4
6
  restricted {
5
7
  video(id: $id) {
@@ -45,6 +47,11 @@ export const VIDEO = gql `
45
47
  osceType {
46
48
  id
47
49
  }
50
+ entitlement {
51
+ id
52
+ name
53
+ index
54
+ }
48
55
  candidateBrief
49
56
  examinerBrief
50
57
  actorBrief
@@ -63,72 +70,16 @@ export const VIDEO = gql `
63
70
  }
64
71
  }
65
72
  candidatePictures {
66
- id
67
- createdAt
68
- updatedAt
69
- name
70
- caption
71
- path
72
- path512
73
- path256
74
- thumbhash
75
- topicId
76
- topic {
77
- id
78
- name
79
- typeId
80
- }
73
+ ...PictureFields
81
74
  }
82
75
  actorPictures {
83
- id
84
- createdAt
85
- updatedAt
86
- name
87
- caption
88
- path
89
- path512
90
- path256
91
- thumbhash
92
- topicId
93
- topic {
94
- id
95
- name
96
- typeId
97
- }
76
+ ...PictureFields
98
77
  }
99
78
  examinerPictures {
100
- id
101
- createdAt
102
- updatedAt
103
- name
104
- caption
105
- path
106
- path512
107
- path256
108
- thumbhash
109
- topicId
110
- topic {
111
- id
112
- name
113
- typeId
114
- }
79
+ ...PictureFields
115
80
  }
116
81
  walkthroughPictures {
117
- id
118
- createdAt
119
- updatedAt
120
- name
121
- caption
122
- path
123
- path512
124
- path256
125
- thumbhash
126
- topicId
127
- topic {
128
- id
129
- name
130
- typeId
131
- }
82
+ ...PictureFields
132
83
  }
133
84
  lastOsceMarksheetId
134
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.41",
3
+ "version": "2.6.43",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",