@quesmed/types 2.6.37 → 2.6.39

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.
@@ -86,6 +86,7 @@ export interface IOsceMarksheet {
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
88
  productId: EProductType;
89
+ isTimed: boolean;
89
90
  }
90
91
  export interface IDashboardOsce {
91
92
  lastSessionId: string;
@@ -111,6 +111,7 @@ exports.OSCE_MARKSHEET_FIELDS = (0, client_1.gql) `
111
111
  feedback
112
112
  agoraId
113
113
  sessionId
114
+ isTimed
114
115
  readingTime
115
116
  stationTime
116
117
  feedbackTime
@@ -14,6 +14,7 @@ exports.QUESTION_COMMENT_FIELDS = (0, client_1.gql) `
14
14
  user {
15
15
  id
16
16
  displayName
17
+ accessLevel
17
18
  }
18
19
  dislikes
19
20
  isLikedByMe
@@ -26,6 +27,7 @@ exports.QUESTION_COMMENT_FIELDS = (0, client_1.gql) `
26
27
  user {
27
28
  id
28
29
  displayName
30
+ accessLevel
29
31
  }
30
32
  likes
31
33
  dislikes
@@ -5,6 +5,7 @@ const client_1 = require("@apollo/client");
5
5
  exports.USER_FIELDS = (0, client_1.gql) `
6
6
  fragment UserFields on User {
7
7
  id
8
+ accessLevel
8
9
  createdAt
9
10
  updatedAt
10
11
  displayName
@@ -68,6 +68,7 @@ export interface IPrestartOsceMarksheetVar {
68
68
  readingTime: number;
69
69
  stationTime: number;
70
70
  feedbackTime: number;
71
+ isTimed: boolean;
71
72
  }
72
73
  export type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
73
74
  export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -129,6 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  members: import("../../../models").IOsceMarksheetMember[];
130
131
  state: EOsceMarksheetState;
131
132
  productId: EProductType;
133
+ isTimed: boolean;
132
134
  __typename: string;
133
135
  };
134
136
  };
@@ -1,6 +1,6 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
2
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
3
- import { EQuestionLike, EQuestionType, IHighlight, IQuestion, IQuestionComment, IQuestionHighlights, Id } from '../../../models';
3
+ import { EQuestionLike, EQuestionType, IAccessLevel, IHighlight, IQuestion, IQuestionComment, IQuestionHighlights, Id } from '../../../models';
4
4
  import { RestrictedData, graphqlNormalize } from '../../types';
5
5
  interface LikeData {
6
6
  likes?: number;
@@ -22,6 +22,7 @@ export declare const updateQuestionComments: (typeId: EQuestionType) => (cache:
22
22
  export declare const optimisticQuestionComment: (id: number, user: {
23
23
  id: number;
24
24
  displayName: string;
25
+ accessLevel: IAccessLevel;
25
26
  }, input: IQuestionCommentsVar) => IQuestionCommentsData;
26
27
  export interface IQuestionCommentsVar {
27
28
  marksheetId?: Id;
@@ -180,7 +180,7 @@ const updateQuestionComments = (typeId) => (cache, result, options) => {
180
180
  exports.updateQuestionComments = updateQuestionComments;
181
181
  const optimisticQuestionComment = (id, user, input) => {
182
182
  const { parentId, questionId, comment } = input;
183
- const { displayName, id: userId } = user || {};
183
+ const { displayName, id: userId, accessLevel } = user || {};
184
184
  const newComment = {
185
185
  createdAt: new Date(),
186
186
  id,
@@ -188,7 +188,7 @@ const optimisticQuestionComment = (id, user, input) => {
188
188
  questionId,
189
189
  dislikes: 0,
190
190
  isLikedByMe: models_1.EQuestionLike.NONE,
191
- user: { displayName, id: userId },
191
+ user: { displayName, id: userId, accessLevel },
192
192
  comment,
193
193
  parentId: parentId ? parentId : 0,
194
194
  replies: [],
@@ -86,6 +86,7 @@ export interface IOsceMarksheet {
86
86
  state: EOsceMarksheetState;
87
87
  completed: boolean;
88
88
  productId: EProductType;
89
+ isTimed: boolean;
89
90
  }
90
91
  export interface IDashboardOsce {
91
92
  lastSessionId: string;
@@ -108,6 +108,7 @@ export const OSCE_MARKSHEET_FIELDS = gql `
108
108
  feedback
109
109
  agoraId
110
110
  sessionId
111
+ isTimed
111
112
  readingTime
112
113
  stationTime
113
114
  feedbackTime
@@ -11,6 +11,7 @@ export const QUESTION_COMMENT_FIELDS = gql `
11
11
  user {
12
12
  id
13
13
  displayName
14
+ accessLevel
14
15
  }
15
16
  dislikes
16
17
  isLikedByMe
@@ -23,6 +24,7 @@ export const QUESTION_COMMENT_FIELDS = gql `
23
24
  user {
24
25
  id
25
26
  displayName
27
+ accessLevel
26
28
  }
27
29
  likes
28
30
  dislikes
@@ -2,6 +2,7 @@ import { gql } from '@apollo/client';
2
2
  export const USER_FIELDS = gql `
3
3
  fragment UserFields on User {
4
4
  id
5
+ accessLevel
5
6
  createdAt
6
7
  updatedAt
7
8
  displayName
@@ -68,6 +68,7 @@ export interface IPrestartOsceMarksheetVar {
68
68
  readingTime: number;
69
69
  stationTime: number;
70
70
  feedbackTime: number;
71
+ isTimed: boolean;
71
72
  }
72
73
  export type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
73
74
  export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
@@ -129,6 +130,7 @@ export declare const optimisticEndOsceMarksheet: (marksheet: IOsceMarksheet) =>
129
130
  members: import("../../../models").IOsceMarksheetMember[];
130
131
  state: EOsceMarksheetState;
131
132
  productId: EProductType;
133
+ isTimed: boolean;
132
134
  __typename: string;
133
135
  };
134
136
  };
@@ -1,6 +1,6 @@
1
1
  import { ApolloCache } from '@apollo/client';
2
2
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
3
- import { EQuestionLike, EQuestionType, IHighlight, IQuestion, IQuestionComment, IQuestionHighlights, Id } from '../../../models';
3
+ import { EQuestionLike, EQuestionType, IAccessLevel, IHighlight, IQuestion, IQuestionComment, IQuestionHighlights, Id } from '../../../models';
4
4
  import { RestrictedData, graphqlNormalize } from '../../types';
5
5
  interface LikeData {
6
6
  likes?: number;
@@ -22,6 +22,7 @@ export declare const updateQuestionComments: (typeId: EQuestionType) => (cache:
22
22
  export declare const optimisticQuestionComment: (id: number, user: {
23
23
  id: number;
24
24
  displayName: string;
25
+ accessLevel: IAccessLevel;
25
26
  }, input: IQuestionCommentsVar) => IQuestionCommentsData;
26
27
  export interface IQuestionCommentsVar {
27
28
  marksheetId?: Id;
@@ -173,7 +173,7 @@ export const updateQuestionComments = (typeId) => (cache, result, options) => {
173
173
  };
174
174
  export const optimisticQuestionComment = (id, user, input) => {
175
175
  const { parentId, questionId, comment } = input;
176
- const { displayName, id: userId } = user || {};
176
+ const { displayName, id: userId, accessLevel } = user || {};
177
177
  const newComment = {
178
178
  createdAt: new Date(),
179
179
  id,
@@ -181,7 +181,7 @@ export const optimisticQuestionComment = (id, user, input) => {
181
181
  questionId,
182
182
  dislikes: 0,
183
183
  isLikedByMe: EQuestionLike.NONE,
184
- user: { displayName, id: userId },
184
+ user: { displayName, id: userId, accessLevel },
185
185
  comment,
186
186
  parentId: parentId ? parentId : 0,
187
187
  replies: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.37",
3
+ "version": "2.6.39",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",