@quesmed/types 2.6.197 → 2.6.199

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,3 +1,4 @@
1
+ import { ELightGalleryType } from './Job';
1
2
  import { EStationPictureType } from './OsceStation';
2
3
  import { ITopic } from './Topic';
3
4
  import { Id } from './Type';
@@ -19,6 +20,7 @@ export interface IPicture {
19
20
  topicId: Id;
20
21
  topic: ITopic;
21
22
  index: number;
23
+ typeId?: ELightGalleryType;
22
24
  }
23
25
  export interface ICardPicture {
24
26
  id: Id;
@@ -50,3 +52,10 @@ export interface IQuestionPicture {
50
52
  picture: IPicture;
51
53
  pictureIdx: number;
52
54
  }
55
+ export interface IAssetBinding {
56
+ id: Id;
57
+ index: number;
58
+ choiceLabel?: string;
59
+ deleted: boolean;
60
+ typeId: ELightGalleryType;
61
+ }
@@ -4,6 +4,7 @@ import { ICondition } from './Condition';
4
4
  import { IQuestionRevision } from './Content';
5
5
  import { EDifficultyType } from './Difficulty';
6
6
  import { IHighlightNode } from './Highlight';
7
+ import { IJobRecord, IJobRecordChoiceSummary, IJobRecordMetricsSummary } from './Job';
7
8
  import { IPicture } from './Picture';
8
9
  import { IPresentation } from './Presentation';
9
10
  import { ITopic } from './Topic';
@@ -116,6 +117,9 @@ export interface IQuestion {
116
117
  avgTimeTaken?: number;
117
118
  revisions?: IQuestionRevision[];
118
119
  entitlements?: IQuestionEntitlement[];
120
+ jobRecord?: IJobRecord | null;
121
+ metricsSummary?: IJobRecordMetricsSummary | null;
122
+ choiceSummary?: IJobRecordChoiceSummary[] | null;
119
123
  }
120
124
  export interface IQuestionChoice {
121
125
  id: Id;
@@ -19,6 +19,7 @@ exports.PICTURE_FIELDS = (0, client_1.gql) `
19
19
  thumbhash
20
20
  index
21
21
  topicId
22
+ typeId
22
23
  topic {
23
24
  id
24
25
  name
@@ -1,3 +1,4 @@
1
+ export declare const QUESTION_STATISTICS_FRAGMENT: import("@apollo/client").DocumentNode;
1
2
  export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
3
  export declare const QUESTION_UKMLA_FIELDS: import("@apollo/client").DocumentNode;
3
4
  export declare const QUESTION_UCAT_FIELDS: import("@apollo/client").DocumentNode;
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_UCAT_FIELDS = exports.QUESTION_UKMLA_FIELDS = exports.QUESTION_COMMENT_FIELDS = void 0;
3
+ exports.QUESTION_WITH_LEARNING_FIELDS = exports.QUESTION_WITH_COMMENT_FIELDS = exports.QUESTION_WITH_HIGHLIGHT_FIELDS = exports.QUESTION_FIELDS = exports.QUESTION_CATEGORY_FIELDS = exports.QUESTION_UCAT_FIELDS = exports.QUESTION_UKMLA_FIELDS = exports.QUESTION_COMMENT_FIELDS = exports.QUESTION_STATISTICS_FRAGMENT = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const chapter_1 = require("./chapter");
6
6
  const concept_1 = require("./concept");
7
7
  const highlight_1 = require("./highlight");
8
8
  const picture_1 = require("./picture");
9
+ const record_1 = require("./record");
10
+ exports.QUESTION_STATISTICS_FRAGMENT = (0, client_1.gql) `
11
+ ${record_1.JOB_RECORD_METRICS_SUMMARY_FRAGMENT}
12
+ ${record_1.JOB_RECORD_CHOICE_SUMMARY_FRAGMENT}
13
+ fragment QuestionStatistics on Question {
14
+ metricsSummary {
15
+ ...JobRecordMetricsSummary
16
+ }
17
+ choiceSummary {
18
+ ...JobRecordChoiceSummary
19
+ }
20
+ }
21
+ `;
9
22
  exports.QUESTION_COMMENT_FIELDS = (0, client_1.gql) `
10
23
  fragment QuestionCommentFields on QuestionComment {
11
24
  id
@@ -1,12 +1,6 @@
1
- import { IChapter, Id } from '../../../models';
1
+ import { IAssetBinding, IChapter, Id } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const UPDATE_CHAPTER: import("@apollo/client").DocumentNode;
4
- export interface IAssetBinding {
5
- id: Id;
6
- index: number;
7
- questionChoiceId?: Id;
8
- deleted: boolean;
9
- }
10
4
  export interface IUpdateChapterVar {
11
5
  id: Id;
12
6
  explanation?: string;
@@ -1,4 +1,4 @@
1
- import { EEntitlementType, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
1
+ import { EEntitlementType, IAssetBinding, IChapter, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const UPDATE_QUESTION: import("@apollo/client").DocumentNode;
4
4
  export interface IUpdateQuestionVar {
@@ -17,6 +17,8 @@ export interface IUpdateQuestionVar {
17
17
  learningPoint?: string;
18
18
  entitlements?: EEntitlementType[];
19
19
  createRevision?: boolean;
20
+ assets?: IAssetBinding[];
21
+ stem?: Partial<IChapter>;
20
22
  }
21
23
  export type IUpdateQuestionData = AdminData<graphqlNormalize & IQuestion, 'updateQuestion'>;
22
24
  export declare const RESET_QUESTION: import("@apollo/client").DocumentNode;
@@ -4,20 +4,15 @@ exports.ADMIN_QUESTION = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  exports.ADMIN_QUESTION = (0, client_1.gql) `
7
+ ${fragments_1.QUESTION_STATISTICS_FRAGMENT}
8
+ ${fragments_1.QUESTION_CATEGORY_FIELDS}
7
9
  ${fragments_1.QUESTION_COMMENT_FIELDS}
8
10
  ${fragments_1.PICTURE_FIELDS}
9
11
  query QuestionData($id: Int!) {
10
12
  admin {
11
13
  question(id: $id) {
12
- ... on QuestionEMQ {
13
- cases {
14
- id
15
- questionId
16
- case
17
- explanation
18
- label
19
- }
20
- }
14
+ ...QuestionCategoryFields
15
+ ...QuestionStatistics
21
16
  id
22
17
  public
23
18
  conceptId
@@ -31,6 +26,15 @@ exports.ADMIN_QUESTION = (0, client_1.gql) `
31
26
  likes
32
27
  dislikes
33
28
  totalVotes
29
+ stem {
30
+ id
31
+ explanation
32
+ summary
33
+ typeId
34
+ pictures {
35
+ ...PictureFields
36
+ }
37
+ }
34
38
  presentations {
35
39
  id
36
40
  name
@@ -98,6 +102,9 @@ exports.ADMIN_QUESTION = (0, client_1.gql) `
98
102
  answer
99
103
  votes
100
104
  updatedAt
105
+ picture {
106
+ ...PictureFields
107
+ }
101
108
  }
102
109
  topic {
103
110
  id
@@ -108,6 +115,16 @@ exports.ADMIN_QUESTION = (0, client_1.gql) `
108
115
  name
109
116
  topicId
110
117
  }
118
+ jobRecord {
119
+ id
120
+ jobId
121
+ createdByUser {
122
+ id
123
+ firstName
124
+ lastName
125
+ username
126
+ }
127
+ }
111
128
  }
112
129
  }
113
130
  }
@@ -17,6 +17,32 @@ export interface IUcatAnalytics {
17
17
  }
18
18
  export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics[], 'ucatAnalytics'>;
19
19
  export declare const UCAT_ANALYTICS: import("@apollo/client").DocumentNode;
20
+ export type IUcatOverallPerformanceVar = {
21
+ updatedAt?: Date | number;
22
+ entitlementId?: EEntitlementType;
23
+ };
24
+ export interface IUcatOverallStats {
25
+ date: Date | number;
26
+ correct: number;
27
+ total: number;
28
+ score: number;
29
+ }
30
+ export type IUcatOverallPerformanceData = RestrictedData<IUcatOverallStats[], 'ucatOverallPerformance'>;
31
+ export declare const UCAT_OVERALL_PERFORMANCE: import("@apollo/client").DocumentNode;
32
+ export type IUcatMockPerformanceVar = {
33
+ limit?: number;
34
+ mockTypeId?: number[];
35
+ };
36
+ export interface IUcatMockStats {
37
+ title: string;
38
+ typeId: number;
39
+ date: Date | number;
40
+ total: number;
41
+ correct: number;
42
+ incorrect: number;
43
+ }
44
+ export type IUcatMockPerformanceData = RestrictedData<IUcatMockStats[], 'ucatMockPerformance'>;
45
+ export declare const UCAT_MOCK_PERFORMANCE: import("@apollo/client").DocumentNode;
20
46
  export type IUcatThemeAnalyticsVar = {
21
47
  updatedAt?: Date | number;
22
48
  entitlementId: EEntitlementType;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UCAT_THEME_ANALYTICS = exports.UCAT_ANALYTICS = void 0;
3
+ exports.UCAT_THEME_ANALYTICS = exports.UCAT_MOCK_PERFORMANCE = exports.UCAT_OVERALL_PERFORMANCE = exports.UCAT_ANALYTICS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const fragments_1 = require("../../fragments");
6
6
  exports.UCAT_ANALYTICS = (0, client_1.gql) `
@@ -29,6 +29,35 @@ exports.UCAT_ANALYTICS = (0, client_1.gql) `
29
29
  }
30
30
  }
31
31
  `;
32
+ exports.UCAT_OVERALL_PERFORMANCE = (0, client_1.gql) `
33
+ query UcatOverallPerformance($updatedAt: Date, $entitlementId: Int) {
34
+ restricted {
35
+ ucatOverallPerformance(
36
+ updatedAt: $updatedAt
37
+ entitlementId: $entitlementId
38
+ ) {
39
+ date
40
+ correct
41
+ total
42
+ score
43
+ }
44
+ }
45
+ }
46
+ `;
47
+ exports.UCAT_MOCK_PERFORMANCE = (0, client_1.gql) `
48
+ query UcatMockPerformance($limit: Int, $mockTypeId: [Int!]) {
49
+ restricted {
50
+ ucatMockPerformance(limit: $limit, mockTypeId: $mockTypeId) {
51
+ title
52
+ typeId
53
+ date
54
+ total
55
+ correct
56
+ incorrect
57
+ }
58
+ }
59
+ }
60
+ `;
32
61
  exports.UCAT_THEME_ANALYTICS = (0, client_1.gql) `
33
62
  ${fragments_1.QUESTION_CATEGORY_FIELDS}
34
63
  query UcatThemeAnalytics(
@@ -1,3 +1,4 @@
1
+ import { ELightGalleryType } from './Job';
1
2
  import { EStationPictureType } from './OsceStation';
2
3
  import { ITopic } from './Topic';
3
4
  import { Id } from './Type';
@@ -19,6 +20,7 @@ export interface IPicture {
19
20
  topicId: Id;
20
21
  topic: ITopic;
21
22
  index: number;
23
+ typeId?: ELightGalleryType;
22
24
  }
23
25
  export interface ICardPicture {
24
26
  id: Id;
@@ -50,3 +52,10 @@ export interface IQuestionPicture {
50
52
  picture: IPicture;
51
53
  pictureIdx: number;
52
54
  }
55
+ export interface IAssetBinding {
56
+ id: Id;
57
+ index: number;
58
+ choiceLabel?: string;
59
+ deleted: boolean;
60
+ typeId: ELightGalleryType;
61
+ }
@@ -4,6 +4,7 @@ import { ICondition } from './Condition';
4
4
  import { IQuestionRevision } from './Content';
5
5
  import { EDifficultyType } from './Difficulty';
6
6
  import { IHighlightNode } from './Highlight';
7
+ import { IJobRecord, IJobRecordChoiceSummary, IJobRecordMetricsSummary } from './Job';
7
8
  import { IPicture } from './Picture';
8
9
  import { IPresentation } from './Presentation';
9
10
  import { ITopic } from './Topic';
@@ -116,6 +117,9 @@ export interface IQuestion {
116
117
  avgTimeTaken?: number;
117
118
  revisions?: IQuestionRevision[];
118
119
  entitlements?: IQuestionEntitlement[];
120
+ jobRecord?: IJobRecord | null;
121
+ metricsSummary?: IJobRecordMetricsSummary | null;
122
+ choiceSummary?: IJobRecordChoiceSummary[] | null;
119
123
  }
120
124
  export interface IQuestionChoice {
121
125
  id: Id;
@@ -16,6 +16,7 @@ export const PICTURE_FIELDS = gql `
16
16
  thumbhash
17
17
  index
18
18
  topicId
19
+ typeId
19
20
  topic {
20
21
  id
21
22
  name
@@ -1,3 +1,4 @@
1
+ export declare const QUESTION_STATISTICS_FRAGMENT: import("@apollo/client").DocumentNode;
1
2
  export declare const QUESTION_COMMENT_FIELDS: import("@apollo/client").DocumentNode;
2
3
  export declare const QUESTION_UKMLA_FIELDS: import("@apollo/client").DocumentNode;
3
4
  export declare const QUESTION_UCAT_FIELDS: import("@apollo/client").DocumentNode;
@@ -3,6 +3,19 @@ import { CHAPTER_FIELDS } from './chapter';
3
3
  import { CONCEPT_FIELDS } from './concept';
4
4
  import { HIGHLIGHT_FIELDS } from './highlight';
5
5
  import { PICTURE_FIELDS } from './picture';
6
+ import { JOB_RECORD_CHOICE_SUMMARY_FRAGMENT, JOB_RECORD_METRICS_SUMMARY_FRAGMENT, } from './record';
7
+ export const QUESTION_STATISTICS_FRAGMENT = gql `
8
+ ${JOB_RECORD_METRICS_SUMMARY_FRAGMENT}
9
+ ${JOB_RECORD_CHOICE_SUMMARY_FRAGMENT}
10
+ fragment QuestionStatistics on Question {
11
+ metricsSummary {
12
+ ...JobRecordMetricsSummary
13
+ }
14
+ choiceSummary {
15
+ ...JobRecordChoiceSummary
16
+ }
17
+ }
18
+ `;
6
19
  export const QUESTION_COMMENT_FIELDS = gql `
7
20
  fragment QuestionCommentFields on QuestionComment {
8
21
  id
@@ -1,12 +1,6 @@
1
- import { IChapter, Id } from '../../../models';
1
+ import { IAssetBinding, IChapter, Id } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const UPDATE_CHAPTER: import("@apollo/client").DocumentNode;
4
- export interface IAssetBinding {
5
- id: Id;
6
- index: number;
7
- questionChoiceId?: Id;
8
- deleted: boolean;
9
- }
10
4
  export interface IUpdateChapterVar {
11
5
  id: Id;
12
6
  explanation?: string;
@@ -1,4 +1,4 @@
1
- import { EEntitlementType, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
1
+ import { EEntitlementType, IAssetBinding, IChapter, IQuestion, IQuestionCase, IQuestionChoice, Id } from '../../../models';
2
2
  import { AdminData, graphqlNormalize } from '../../types';
3
3
  export declare const UPDATE_QUESTION: import("@apollo/client").DocumentNode;
4
4
  export interface IUpdateQuestionVar {
@@ -17,6 +17,8 @@ export interface IUpdateQuestionVar {
17
17
  learningPoint?: string;
18
18
  entitlements?: EEntitlementType[];
19
19
  createRevision?: boolean;
20
+ assets?: IAssetBinding[];
21
+ stem?: Partial<IChapter>;
20
22
  }
21
23
  export type IUpdateQuestionData = AdminData<graphqlNormalize & IQuestion, 'updateQuestion'>;
22
24
  export declare const RESET_QUESTION: import("@apollo/client").DocumentNode;
@@ -1,20 +1,15 @@
1
1
  import { gql } from '@apollo/client';
2
- import { PICTURE_FIELDS, QUESTION_COMMENT_FIELDS } from '../../fragments';
2
+ import { PICTURE_FIELDS, QUESTION_CATEGORY_FIELDS, QUESTION_COMMENT_FIELDS, QUESTION_STATISTICS_FRAGMENT, } from '../../fragments';
3
3
  export const ADMIN_QUESTION = gql `
4
+ ${QUESTION_STATISTICS_FRAGMENT}
5
+ ${QUESTION_CATEGORY_FIELDS}
4
6
  ${QUESTION_COMMENT_FIELDS}
5
7
  ${PICTURE_FIELDS}
6
8
  query QuestionData($id: Int!) {
7
9
  admin {
8
10
  question(id: $id) {
9
- ... on QuestionEMQ {
10
- cases {
11
- id
12
- questionId
13
- case
14
- explanation
15
- label
16
- }
17
- }
11
+ ...QuestionCategoryFields
12
+ ...QuestionStatistics
18
13
  id
19
14
  public
20
15
  conceptId
@@ -28,6 +23,15 @@ export const ADMIN_QUESTION = gql `
28
23
  likes
29
24
  dislikes
30
25
  totalVotes
26
+ stem {
27
+ id
28
+ explanation
29
+ summary
30
+ typeId
31
+ pictures {
32
+ ...PictureFields
33
+ }
34
+ }
31
35
  presentations {
32
36
  id
33
37
  name
@@ -95,6 +99,9 @@ export const ADMIN_QUESTION = gql `
95
99
  answer
96
100
  votes
97
101
  updatedAt
102
+ picture {
103
+ ...PictureFields
104
+ }
98
105
  }
99
106
  topic {
100
107
  id
@@ -105,6 +112,16 @@ export const ADMIN_QUESTION = gql `
105
112
  name
106
113
  topicId
107
114
  }
115
+ jobRecord {
116
+ id
117
+ jobId
118
+ createdByUser {
119
+ id
120
+ firstName
121
+ lastName
122
+ username
123
+ }
124
+ }
108
125
  }
109
126
  }
110
127
  }
@@ -17,6 +17,32 @@ export interface IUcatAnalytics {
17
17
  }
18
18
  export type IUcatAnalyticsData = RestrictedData<IUcatAnalytics[], 'ucatAnalytics'>;
19
19
  export declare const UCAT_ANALYTICS: import("@apollo/client").DocumentNode;
20
+ export type IUcatOverallPerformanceVar = {
21
+ updatedAt?: Date | number;
22
+ entitlementId?: EEntitlementType;
23
+ };
24
+ export interface IUcatOverallStats {
25
+ date: Date | number;
26
+ correct: number;
27
+ total: number;
28
+ score: number;
29
+ }
30
+ export type IUcatOverallPerformanceData = RestrictedData<IUcatOverallStats[], 'ucatOverallPerformance'>;
31
+ export declare const UCAT_OVERALL_PERFORMANCE: import("@apollo/client").DocumentNode;
32
+ export type IUcatMockPerformanceVar = {
33
+ limit?: number;
34
+ mockTypeId?: number[];
35
+ };
36
+ export interface IUcatMockStats {
37
+ title: string;
38
+ typeId: number;
39
+ date: Date | number;
40
+ total: number;
41
+ correct: number;
42
+ incorrect: number;
43
+ }
44
+ export type IUcatMockPerformanceData = RestrictedData<IUcatMockStats[], 'ucatMockPerformance'>;
45
+ export declare const UCAT_MOCK_PERFORMANCE: import("@apollo/client").DocumentNode;
20
46
  export type IUcatThemeAnalyticsVar = {
21
47
  updatedAt?: Date | number;
22
48
  entitlementId: EEntitlementType;
@@ -26,6 +26,35 @@ export const UCAT_ANALYTICS = gql `
26
26
  }
27
27
  }
28
28
  `;
29
+ export const UCAT_OVERALL_PERFORMANCE = gql `
30
+ query UcatOverallPerformance($updatedAt: Date, $entitlementId: Int) {
31
+ restricted {
32
+ ucatOverallPerformance(
33
+ updatedAt: $updatedAt
34
+ entitlementId: $entitlementId
35
+ ) {
36
+ date
37
+ correct
38
+ total
39
+ score
40
+ }
41
+ }
42
+ }
43
+ `;
44
+ export const UCAT_MOCK_PERFORMANCE = gql `
45
+ query UcatMockPerformance($limit: Int, $mockTypeId: [Int!]) {
46
+ restricted {
47
+ ucatMockPerformance(limit: $limit, mockTypeId: $mockTypeId) {
48
+ title
49
+ typeId
50
+ date
51
+ total
52
+ correct
53
+ incorrect
54
+ }
55
+ }
56
+ }
57
+ `;
29
58
  export const UCAT_THEME_ANALYTICS = gql `
30
59
  ${QUESTION_CATEGORY_FIELDS}
31
60
  query UcatThemeAnalytics(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.197",
3
+ "version": "2.6.199",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",