@quesmed/types 2.6.57 → 2.6.58

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.
Files changed (27) hide show
  1. package/dist/cjs/models/Marksheet.d.ts +3 -2
  2. package/dist/cjs/models/OsceMarksheet.d.ts +2 -2
  3. package/dist/cjs/models/Product.d.ts +9 -2
  4. package/dist/cjs/models/Product.js +27 -20
  5. package/dist/cjs/resolvers/fragments/osce.js +7 -0
  6. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -2
  7. package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -1
  8. package/dist/cjs/resolvers/mutation/restricted/osce.d.ts +3 -2
  9. package/dist/cjs/resolvers/mutation/restricted/osce.js +2 -1
  10. package/dist/cjs/resolvers/query/restricted/marksheet.d.ts +2 -1
  11. package/dist/cjs/resolvers/query/restricted/marksheet.js +2 -0
  12. package/dist/cjs/resolvers/query/restricted/todos.d.ts +2 -1
  13. package/dist/cjs/resolvers/query/restricted/todos.js +2 -0
  14. package/dist/mjs/models/Marksheet.d.ts +3 -2
  15. package/dist/mjs/models/OsceMarksheet.d.ts +2 -2
  16. package/dist/mjs/models/Product.d.ts +9 -2
  17. package/dist/mjs/models/Product.js +26 -19
  18. package/dist/mjs/resolvers/fragments/osce.js +7 -0
  19. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -2
  20. package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -1
  21. package/dist/mjs/resolvers/mutation/restricted/osce.d.ts +3 -2
  22. package/dist/mjs/resolvers/mutation/restricted/osce.js +2 -1
  23. package/dist/mjs/resolvers/query/restricted/marksheet.d.ts +2 -1
  24. package/dist/mjs/resolvers/query/restricted/marksheet.js +2 -0
  25. package/dist/mjs/resolvers/query/restricted/todos.d.ts +2 -1
  26. package/dist/mjs/resolvers/query/restricted/todos.js +2 -0
  27. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
2
- import { EProductType, IEntitlement } from './Product';
2
+ import { EEntitlementType, EProductType, IEntitlement } from './Product';
3
3
  import { IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
4
4
  import { ETopicType } from './Topic';
5
5
  import { Id } from './Type';
@@ -91,7 +91,7 @@ export interface IMarksheet {
91
91
  topicConceptData?: string;
92
92
  preBuildData?: IPreBuildMarksheet;
93
93
  builderConfig?: IBuildConfigData;
94
- entitlementId: EProductType;
94
+ entitlementId: EProductType | EEntitlementType;
95
95
  }
96
96
  export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | null;
97
97
  export interface IMarksheetMark {
@@ -118,4 +118,5 @@ export interface IPreBuildMarksheetRef {
118
118
  seenCorrect: number[];
119
119
  seenIncorrect: number[];
120
120
  source: string;
121
+ entitlementId: IMarksheet['entitlementId'];
121
122
  }
@@ -1,7 +1,7 @@
1
1
  import { Nullable } from '../resolvers';
2
2
  import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
3
3
  import { EPaceMarkType } from './Paces';
4
- import { EProductType } from './Product';
4
+ import { EEntitlementType, EProductType } from './Product';
5
5
  import { Id } from './Type';
6
6
  import { IUser } from './User';
7
7
  export interface IOsceMarksheetMember {
@@ -85,7 +85,7 @@ export interface IOsceMarksheet {
85
85
  members: IOsceMarksheetMember[];
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
- entitlementId: EProductType;
88
+ entitlementId: EProductType | EEntitlementType;
89
89
  isTimed: boolean;
90
90
  }
91
91
  export interface IDashboardOsce {
@@ -15,6 +15,10 @@ export declare enum EProductType {
15
15
  INTERVIEW_CST = 12,
16
16
  INTERVIEW_IMT = 13,
17
17
  INTERVIEW_RADIOLOGY = 14,
18
+ PLAB1 = 34,
19
+ PLAB2 = 35
20
+ }
21
+ export declare enum EEntitlementType {
18
22
  CLINICAL = 15,
19
23
  DATA_INTERPRETATION = 16,
20
24
  CLINICAL_SUBSET = 17,
@@ -34,8 +38,10 @@ export declare enum EProductType {
34
38
  CONSULTATION = 31,
35
39
  NEUROLOGY = 32,
36
40
  RESPIRATORY = 33,
37
- PLAB1 = 34,
38
- PLAB2 = 35
41
+ ANATOMY = 36,
42
+ PRE_CLINICAL = 37,
43
+ MRCP_PART_1 = 38,
44
+ MRCP_PART_2 = 39
39
45
  }
40
46
  export interface IProduct {
41
47
  id: Id;
@@ -52,6 +58,7 @@ export interface IProduct {
52
58
  export interface IEntitlementType {
53
59
  id: Id;
54
60
  name: string;
61
+ isProduct: boolean;
55
62
  }
56
63
  export declare enum EAppType {
57
64
  AMS = 1,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EAppType = exports.EProductType = void 0;
3
+ exports.EAppType = exports.EEntitlementType = exports.EProductType = void 0;
4
4
  var EProductType;
5
5
  (function (EProductType) {
6
6
  EProductType[EProductType["ALL"] = 0] = "ALL";
@@ -18,28 +18,35 @@ var EProductType;
18
18
  EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
19
19
  EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
20
20
  EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
21
- EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
22
- EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
23
- EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
24
- EProductType[EProductType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
25
- EProductType[EProductType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
26
- EProductType[EProductType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
27
- EProductType[EProductType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
28
- EProductType[EProductType["EXAMINATION"] = 22] = "EXAMINATION";
29
- EProductType[EProductType["PROCEDURE"] = 23] = "PROCEDURE";
30
- EProductType[EProductType["INTERPRETATION"] = 24] = "INTERPRETATION";
31
- EProductType[EProductType["ABCDE"] = 25] = "ABCDE";
32
- EProductType[EProductType["PRESCRIBING"] = 26] = "PRESCRIBING";
33
- EProductType[EProductType["MIXED"] = 27] = "MIXED";
34
- EProductType[EProductType["ABDOMINAL"] = 28] = "ABDOMINAL";
35
- EProductType[EProductType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
36
- EProductType[EProductType["COMMUNICATION"] = 30] = "COMMUNICATION";
37
- EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
38
- EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
39
- EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
40
21
  EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
41
22
  EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
42
23
  })(EProductType = exports.EProductType || (exports.EProductType = {}));
24
+ var EEntitlementType;
25
+ (function (EEntitlementType) {
26
+ EEntitlementType[EEntitlementType["CLINICAL"] = 15] = "CLINICAL";
27
+ EEntitlementType[EEntitlementType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
28
+ EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
29
+ EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
30
+ EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
31
+ EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
32
+ EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
33
+ EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
34
+ EEntitlementType[EEntitlementType["PROCEDURE"] = 23] = "PROCEDURE";
35
+ EEntitlementType[EEntitlementType["INTERPRETATION"] = 24] = "INTERPRETATION";
36
+ EEntitlementType[EEntitlementType["ABCDE"] = 25] = "ABCDE";
37
+ EEntitlementType[EEntitlementType["PRESCRIBING"] = 26] = "PRESCRIBING";
38
+ EEntitlementType[EEntitlementType["MIXED"] = 27] = "MIXED";
39
+ EEntitlementType[EEntitlementType["ABDOMINAL"] = 28] = "ABDOMINAL";
40
+ EEntitlementType[EEntitlementType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
41
+ EEntitlementType[EEntitlementType["COMMUNICATION"] = 30] = "COMMUNICATION";
42
+ EEntitlementType[EEntitlementType["CONSULTATION"] = 31] = "CONSULTATION";
43
+ EEntitlementType[EEntitlementType["NEUROLOGY"] = 32] = "NEUROLOGY";
44
+ EEntitlementType[EEntitlementType["RESPIRATORY"] = 33] = "RESPIRATORY";
45
+ EEntitlementType[EEntitlementType["ANATOMY"] = 36] = "ANATOMY";
46
+ EEntitlementType[EEntitlementType["PRE_CLINICAL"] = 37] = "PRE_CLINICAL";
47
+ EEntitlementType[EEntitlementType["MRCP_PART_1"] = 38] = "MRCP_PART_1";
48
+ EEntitlementType[EEntitlementType["MRCP_PART_2"] = 39] = "MRCP_PART_2";
49
+ })(EEntitlementType = exports.EEntitlementType || (exports.EEntitlementType = {}));
43
50
  var EAppType;
44
51
  (function (EAppType) {
45
52
  EAppType[EAppType["AMS"] = 1] = "AMS";
@@ -29,6 +29,13 @@ exports.OSCE_STATION_FIELDS = (0, client_1.gql) `
29
29
  name
30
30
  hiddenName
31
31
  status
32
+ userNote {
33
+ id
34
+ userId
35
+ stationId
36
+ note
37
+ updatedAt
38
+ }
32
39
  osceType {
33
40
  id
34
41
  name
@@ -188,7 +188,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
188
188
  currentMarkId?: number | undefined;
189
189
  topicConceptData?: string | undefined;
190
190
  preBuildData?: IPreBuildMarksheet | undefined;
191
- entitlementId: import("../../../models").EProductType;
191
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
192
192
  };
193
193
  };
194
194
  };
@@ -281,7 +281,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
281
281
  topicConceptData?: string | undefined;
282
282
  preBuildData?: IPreBuildMarksheet | undefined;
283
283
  builderConfig?: IBuildConfigData | undefined;
284
- entitlementId: import("../../../models").EProductType;
284
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
285
285
  __typename: string;
286
286
  };
287
287
  };
@@ -78,7 +78,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
78
78
  topicConceptData?: string | undefined;
79
79
  preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
80
80
  builderConfig?: import("./marksheet").IBuildConfigData | undefined;
81
- entitlementId: import("../../../models").EProductType;
81
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
82
82
  __typename: string;
83
83
  };
84
84
  };
@@ -1,5 +1,5 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
- import { EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
2
+ import { EEntitlementType, EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
3
3
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
4
4
  import { IOsceMatchmakingAction } from '../../subscription/osce';
5
5
  import { RestrictedData, graphqlNormalize } from '../../types';
@@ -31,6 +31,7 @@ export declare const BUILD_OSCE_MARKSHEET: import("@apollo/client").DocumentNode
31
31
  export interface IBuildOsceMarksheetVar {
32
32
  osceStationId?: Id;
33
33
  osceMarksheetId?: Id;
34
+ entitlementId?: EEntitlementType;
34
35
  }
35
36
  export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
36
37
  export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
@@ -129,7 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  activeUsers?: import("../../../models").IUser[] | undefined;
130
131
  members: import("../../../models").IOsceMarksheetMember[];
131
132
  state: EOsceMarksheetState;
132
- entitlementId: EProductType;
133
+ entitlementId: EProductType | EEntitlementType;
133
134
  isTimed: boolean;
134
135
  __typename: string;
135
136
  };
@@ -52,11 +52,12 @@ exports.CREATE_OR_JOIN_OSCE_MARKSHEET = (0, client_1.gql) `
52
52
  exports.BUILD_OSCE_MARKSHEET = (0, client_1.gql) `
53
53
  ${fragments_1.OSCE_STATION_FIELDS}
54
54
  ${fragments_1.OSCE_MARKSHEET_FIELDS}
55
- mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int) {
55
+ mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int, $entitlementId: Int) {
56
56
  restricted {
57
57
  buildOsceMarksheet(
58
58
  osceStationId: $osceStationId
59
59
  osceMarksheetId: $osceMarksheetId
60
+ entitlementId: $entitlementId
60
61
  ) {
61
62
  ...OsceMarksheetFields
62
63
  osceStation {
@@ -1,4 +1,4 @@
1
- import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
1
+ import { EDifficultyType, EEntitlementType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
2
2
  import { ESortOrder } from '../../enums';
3
3
  import { IPreBuildMarksheet } from '../../mutation/restricted';
4
4
  import { graphqlNormalize, RestrictedData } from '../../types';
@@ -115,6 +115,7 @@ export interface IPreBuildMarksheetVar {
115
115
  marksheetId?: Id;
116
116
  source: string;
117
117
  difficulty?: EDifficultyType[];
118
+ entitlementId?: EEntitlementType;
118
119
  }
119
120
  export type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
120
121
  export declare const PRE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -175,6 +175,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
175
175
  $search: String
176
176
  $marksheetId: Int
177
177
  $difficulty: [Int!]
178
+ $entitlementId: Int
178
179
  ) {
179
180
  restricted {
180
181
  preBuildMarksheet(
@@ -184,6 +185,7 @@ exports.PRE_BUILD_MARKSHEET = (0, client_1.gql) `
184
185
  search: $search
185
186
  marksheetId: $marksheetId
186
187
  difficulty: $difficulty
188
+ entitlementId: $entitlementId
187
189
  ) {
188
190
  unseen
189
191
  seenCorrect
@@ -1,10 +1,11 @@
1
- import { Id, IPreBuildTodo, ITodo } from '../../../models';
1
+ import { EEntitlementType, Id, IPreBuildTodo, ITodo } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface IPreBuildTodoVar {
4
4
  topicIds: number[];
5
5
  conceptIds: number[];
6
6
  search: string;
7
7
  source: string;
8
+ entitlementId?: EEntitlementType;
8
9
  }
9
10
  export type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
10
11
  export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
@@ -9,6 +9,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
9
9
  $conceptIds: [Int!]
10
10
  $search: String
11
11
  $source: String!
12
+ $entitlementId: Int
12
13
  ) {
13
14
  restricted {
14
15
  preBuildTodo(
@@ -16,6 +17,7 @@ exports.PRE_BUILD_TODO = (0, client_1.gql) `
16
17
  conceptIds: $conceptIds
17
18
  search: $search
18
19
  source: $source
20
+ entitlementId: $entitlementId
19
21
  ) {
20
22
  unseen
21
23
  seen
@@ -1,5 +1,5 @@
1
1
  import { IBuildConfigData, IPreBuildMarksheet } from '../resolvers/mutation/restricted/marksheet';
2
- import { EProductType, IEntitlement } from './Product';
2
+ import { EEntitlementType, EProductType, IEntitlement } from './Product';
3
3
  import { IPrescribeMark, IQuestion, IQuestionChoice, IQuestionQAAnswer } from './Question';
4
4
  import { ETopicType } from './Topic';
5
5
  import { Id } from './Type';
@@ -91,7 +91,7 @@ export interface IMarksheet {
91
91
  topicConceptData?: string;
92
92
  preBuildData?: IPreBuildMarksheet;
93
93
  builderConfig?: IBuildConfigData;
94
- entitlementId: EProductType;
94
+ entitlementId: EProductType | EEntitlementType;
95
95
  }
96
96
  export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | null;
97
97
  export interface IMarksheetMark {
@@ -118,4 +118,5 @@ export interface IPreBuildMarksheetRef {
118
118
  seenCorrect: number[];
119
119
  seenIncorrect: number[];
120
120
  source: string;
121
+ entitlementId: IMarksheet['entitlementId'];
121
122
  }
@@ -1,7 +1,7 @@
1
1
  import { Nullable } from '../resolvers';
2
2
  import { IOsceStation, IOsceStationMark, IOsceType } from './OsceStation';
3
3
  import { EPaceMarkType } from './Paces';
4
- import { EProductType } from './Product';
4
+ import { EEntitlementType, EProductType } from './Product';
5
5
  import { Id } from './Type';
6
6
  import { IUser } from './User';
7
7
  export interface IOsceMarksheetMember {
@@ -85,7 +85,7 @@ export interface IOsceMarksheet {
85
85
  members: IOsceMarksheetMember[];
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
- entitlementId: EProductType;
88
+ entitlementId: EProductType | EEntitlementType;
89
89
  isTimed: boolean;
90
90
  }
91
91
  export interface IDashboardOsce {
@@ -15,6 +15,10 @@ export declare enum EProductType {
15
15
  INTERVIEW_CST = 12,
16
16
  INTERVIEW_IMT = 13,
17
17
  INTERVIEW_RADIOLOGY = 14,
18
+ PLAB1 = 34,
19
+ PLAB2 = 35
20
+ }
21
+ export declare enum EEntitlementType {
18
22
  CLINICAL = 15,
19
23
  DATA_INTERPRETATION = 16,
20
24
  CLINICAL_SUBSET = 17,
@@ -34,8 +38,10 @@ export declare enum EProductType {
34
38
  CONSULTATION = 31,
35
39
  NEUROLOGY = 32,
36
40
  RESPIRATORY = 33,
37
- PLAB1 = 34,
38
- PLAB2 = 35
41
+ ANATOMY = 36,
42
+ PRE_CLINICAL = 37,
43
+ MRCP_PART_1 = 38,
44
+ MRCP_PART_2 = 39
39
45
  }
40
46
  export interface IProduct {
41
47
  id: Id;
@@ -52,6 +58,7 @@ export interface IProduct {
52
58
  export interface IEntitlementType {
53
59
  id: Id;
54
60
  name: string;
61
+ isProduct: boolean;
55
62
  }
56
63
  export declare enum EAppType {
57
64
  AMS = 1,
@@ -15,28 +15,35 @@ export var EProductType;
15
15
  EProductType[EProductType["INTERVIEW_CST"] = 12] = "INTERVIEW_CST";
16
16
  EProductType[EProductType["INTERVIEW_IMT"] = 13] = "INTERVIEW_IMT";
17
17
  EProductType[EProductType["INTERVIEW_RADIOLOGY"] = 14] = "INTERVIEW_RADIOLOGY";
18
- EProductType[EProductType["CLINICAL"] = 15] = "CLINICAL";
19
- EProductType[EProductType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
20
- EProductType[EProductType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
21
- EProductType[EProductType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
22
- EProductType[EProductType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
23
- EProductType[EProductType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
24
- EProductType[EProductType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
25
- EProductType[EProductType["EXAMINATION"] = 22] = "EXAMINATION";
26
- EProductType[EProductType["PROCEDURE"] = 23] = "PROCEDURE";
27
- EProductType[EProductType["INTERPRETATION"] = 24] = "INTERPRETATION";
28
- EProductType[EProductType["ABCDE"] = 25] = "ABCDE";
29
- EProductType[EProductType["PRESCRIBING"] = 26] = "PRESCRIBING";
30
- EProductType[EProductType["MIXED"] = 27] = "MIXED";
31
- EProductType[EProductType["ABDOMINAL"] = 28] = "ABDOMINAL";
32
- EProductType[EProductType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
33
- EProductType[EProductType["COMMUNICATION"] = 30] = "COMMUNICATION";
34
- EProductType[EProductType["CONSULTATION"] = 31] = "CONSULTATION";
35
- EProductType[EProductType["NEUROLOGY"] = 32] = "NEUROLOGY";
36
- EProductType[EProductType["RESPIRATORY"] = 33] = "RESPIRATORY";
37
18
  EProductType[EProductType["PLAB1"] = 34] = "PLAB1";
38
19
  EProductType[EProductType["PLAB2"] = 35] = "PLAB2";
39
20
  })(EProductType || (EProductType = {}));
21
+ export var EEntitlementType;
22
+ (function (EEntitlementType) {
23
+ EEntitlementType[EEntitlementType["CLINICAL"] = 15] = "CLINICAL";
24
+ EEntitlementType[EEntitlementType["DATA_INTERPRETATION"] = 16] = "DATA_INTERPRETATION";
25
+ EEntitlementType[EEntitlementType["CLINICAL_SUBSET"] = 17] = "CLINICAL_SUBSET";
26
+ EEntitlementType[EEntitlementType["CLINICAL_PROBLEM_SOLVING"] = 18] = "CLINICAL_PROBLEM_SOLVING";
27
+ EEntitlementType[EEntitlementType["PROFESSIONAL_DILEMMA"] = 19] = "PROFESSIONAL_DILEMMA";
28
+ EEntitlementType[EEntitlementType["HISTORY_TAKING"] = 20] = "HISTORY_TAKING";
29
+ EEntitlementType[EEntitlementType["COMMUNICATION_SKILLS"] = 21] = "COMMUNICATION_SKILLS";
30
+ EEntitlementType[EEntitlementType["EXAMINATION"] = 22] = "EXAMINATION";
31
+ EEntitlementType[EEntitlementType["PROCEDURE"] = 23] = "PROCEDURE";
32
+ EEntitlementType[EEntitlementType["INTERPRETATION"] = 24] = "INTERPRETATION";
33
+ EEntitlementType[EEntitlementType["ABCDE"] = 25] = "ABCDE";
34
+ EEntitlementType[EEntitlementType["PRESCRIBING"] = 26] = "PRESCRIBING";
35
+ EEntitlementType[EEntitlementType["MIXED"] = 27] = "MIXED";
36
+ EEntitlementType[EEntitlementType["ABDOMINAL"] = 28] = "ABDOMINAL";
37
+ EEntitlementType[EEntitlementType["CARDIOVASCULAR"] = 29] = "CARDIOVASCULAR";
38
+ EEntitlementType[EEntitlementType["COMMUNICATION"] = 30] = "COMMUNICATION";
39
+ EEntitlementType[EEntitlementType["CONSULTATION"] = 31] = "CONSULTATION";
40
+ EEntitlementType[EEntitlementType["NEUROLOGY"] = 32] = "NEUROLOGY";
41
+ EEntitlementType[EEntitlementType["RESPIRATORY"] = 33] = "RESPIRATORY";
42
+ EEntitlementType[EEntitlementType["ANATOMY"] = 36] = "ANATOMY";
43
+ EEntitlementType[EEntitlementType["PRE_CLINICAL"] = 37] = "PRE_CLINICAL";
44
+ EEntitlementType[EEntitlementType["MRCP_PART_1"] = 38] = "MRCP_PART_1";
45
+ EEntitlementType[EEntitlementType["MRCP_PART_2"] = 39] = "MRCP_PART_2";
46
+ })(EEntitlementType || (EEntitlementType = {}));
40
47
  export var EAppType;
41
48
  (function (EAppType) {
42
49
  EAppType[EAppType["AMS"] = 1] = "AMS";
@@ -26,6 +26,13 @@ export const OSCE_STATION_FIELDS = gql `
26
26
  name
27
27
  hiddenName
28
28
  status
29
+ userNote {
30
+ id
31
+ userId
32
+ stationId
33
+ note
34
+ updatedAt
35
+ }
29
36
  osceType {
30
37
  id
31
38
  name
@@ -188,7 +188,7 @@ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: numbe
188
188
  currentMarkId?: number | undefined;
189
189
  topicConceptData?: string | undefined;
190
190
  preBuildData?: IPreBuildMarksheet | undefined;
191
- entitlementId: import("../../../models").EProductType;
191
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
192
192
  };
193
193
  };
194
194
  };
@@ -281,7 +281,7 @@ export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
281
281
  topicConceptData?: string | undefined;
282
282
  preBuildData?: IPreBuildMarksheet | undefined;
283
283
  builderConfig?: IBuildConfigData | undefined;
284
- entitlementId: import("../../../models").EProductType;
284
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
285
285
  __typename: string;
286
286
  };
287
287
  };
@@ -78,7 +78,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
78
78
  topicConceptData?: string | undefined;
79
79
  preBuildData?: import("./marksheet").IPreBuildMarksheet | undefined;
80
80
  builderConfig?: import("./marksheet").IBuildConfigData | undefined;
81
- entitlementId: import("../../../models").EProductType;
81
+ entitlementId: import("../../../models").EProductType | import("../../../models").EEntitlementType;
82
82
  __typename: string;
83
83
  };
84
84
  };
@@ -1,5 +1,5 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
- import { EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
2
+ import { EEntitlementType, EOsceMarksheetAction, EOsceMarksheetState, EOsceRoles, EPaceMarkType, EProductType, EStudyAction, IOsceMarksheet, IOsceMarksheetMark, IUserStationNote, Id } from '../../../models';
3
3
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
4
4
  import { IOsceMatchmakingAction } from '../../subscription/osce';
5
5
  import { RestrictedData, graphqlNormalize } from '../../types';
@@ -31,6 +31,7 @@ export declare const BUILD_OSCE_MARKSHEET: import("@apollo/client").DocumentNode
31
31
  export interface IBuildOsceMarksheetVar {
32
32
  osceStationId?: Id;
33
33
  osceMarksheetId?: Id;
34
+ entitlementId?: EEntitlementType;
34
35
  }
35
36
  export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
36
37
  export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
@@ -129,7 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  activeUsers?: import("../../../models").IUser[] | undefined;
130
131
  members: import("../../../models").IOsceMarksheetMember[];
131
132
  state: EOsceMarksheetState;
132
- entitlementId: EProductType;
133
+ entitlementId: EProductType | EEntitlementType;
133
134
  isTimed: boolean;
134
135
  __typename: string;
135
136
  };
@@ -49,11 +49,12 @@ export const CREATE_OR_JOIN_OSCE_MARKSHEET = gql `
49
49
  export const BUILD_OSCE_MARKSHEET = gql `
50
50
  ${OSCE_STATION_FIELDS}
51
51
  ${OSCE_MARKSHEET_FIELDS}
52
- mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int) {
52
+ mutation BuildOsceMarksheet($osceStationId: Int!, $osceMarksheetId: Int, $entitlementId: Int) {
53
53
  restricted {
54
54
  buildOsceMarksheet(
55
55
  osceStationId: $osceStationId
56
56
  osceMarksheetId: $osceMarksheetId
57
+ entitlementId: $entitlementId
57
58
  ) {
58
59
  ...OsceMarksheetFields
59
60
  osceStation {
@@ -1,4 +1,4 @@
1
- import { EDifficultyType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
1
+ import { EDifficultyType, EEntitlementType, Id, IMarksheet, IUserFlaggedQuestion } from '../../../models';
2
2
  import { ESortOrder } from '../../enums';
3
3
  import { IPreBuildMarksheet } from '../../mutation/restricted';
4
4
  import { graphqlNormalize, RestrictedData } from '../../types';
@@ -115,6 +115,7 @@ export interface IPreBuildMarksheetVar {
115
115
  marksheetId?: Id;
116
116
  source: string;
117
117
  difficulty?: EDifficultyType[];
118
+ entitlementId?: EEntitlementType;
118
119
  }
119
120
  export type IPreBuildMarksheetData = RestrictedData<graphqlNormalize & IPreBuildMarksheet, 'preBuildMarksheet'>;
120
121
  export declare const PRE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -172,6 +172,7 @@ export const PRE_BUILD_MARKSHEET = gql `
172
172
  $search: String
173
173
  $marksheetId: Int
174
174
  $difficulty: [Int!]
175
+ $entitlementId: Int
175
176
  ) {
176
177
  restricted {
177
178
  preBuildMarksheet(
@@ -181,6 +182,7 @@ export const PRE_BUILD_MARKSHEET = gql `
181
182
  search: $search
182
183
  marksheetId: $marksheetId
183
184
  difficulty: $difficulty
185
+ entitlementId: $entitlementId
184
186
  ) {
185
187
  unseen
186
188
  seenCorrect
@@ -1,10 +1,11 @@
1
- import { Id, IPreBuildTodo, ITodo } from '../../../models';
1
+ import { EEntitlementType, Id, IPreBuildTodo, ITodo } from '../../../models';
2
2
  import { graphqlNormalize, RestrictedData } from '../../types';
3
3
  export interface IPreBuildTodoVar {
4
4
  topicIds: number[];
5
5
  conceptIds: number[];
6
6
  search: string;
7
7
  source: string;
8
+ entitlementId?: EEntitlementType;
8
9
  }
9
10
  export type IPreBuildTodoData = RestrictedData<graphqlNormalize & IPreBuildTodo, 'preBuildTodo'>;
10
11
  export declare const PRE_BUILD_TODO: import("@apollo/client").DocumentNode;
@@ -6,6 +6,7 @@ export const PRE_BUILD_TODO = gql `
6
6
  $conceptIds: [Int!]
7
7
  $search: String
8
8
  $source: String!
9
+ $entitlementId: Int
9
10
  ) {
10
11
  restricted {
11
12
  preBuildTodo(
@@ -13,6 +14,7 @@ export const PRE_BUILD_TODO = gql `
13
14
  conceptIds: $conceptIds
14
15
  search: $search
15
16
  source: $source
17
+ entitlementId: $entitlementId
16
18
  ) {
17
19
  unseen
18
20
  seen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.57",
3
+ "version": "2.6.58",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",