@quesmed/types 2.6.28 → 2.6.30

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 (49) hide show
  1. package/dist/cjs/models/Marksheet.d.ts +2 -1
  2. package/dist/cjs/models/Question.d.ts +6 -0
  3. package/dist/cjs/resolvers/fragments/chapter.js +3 -18
  4. package/dist/cjs/resolvers/fragments/concept.d.ts +1 -2
  5. package/dist/cjs/resolvers/fragments/concept.js +18 -57
  6. package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
  7. package/dist/cjs/resolvers/fragments/index.js +1 -0
  8. package/dist/cjs/resolvers/fragments/marksheet.d.ts +14 -0
  9. package/dist/cjs/resolvers/fragments/marksheet.js +127 -127
  10. package/dist/cjs/resolvers/fragments/osce.d.ts +1 -0
  11. package/dist/cjs/resolvers/fragments/osce.js +6 -1
  12. package/dist/cjs/resolvers/fragments/question.d.ts +5 -0
  13. package/dist/cjs/resolvers/fragments/question.js +176 -0
  14. package/dist/cjs/resolvers/fragments/topic.d.ts +2 -0
  15. package/dist/cjs/resolvers/fragments/topic.js +25 -1
  16. package/dist/cjs/resolvers/fragments/video.d.ts +1 -0
  17. package/dist/cjs/resolvers/fragments/video.js +17 -28
  18. package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -8
  19. package/dist/cjs/resolvers/mutation/restricted/marksheet.js +18 -4115
  20. package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  21. package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
  22. package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.js +27 -532
  23. package/dist/cjs/resolvers/query/restricted/marksheet.js +9 -2017
  24. package/dist/cjs/resolvers/query/restricted/question.js +3 -932
  25. package/dist/mjs/models/Marksheet.d.ts +2 -1
  26. package/dist/mjs/models/Question.d.ts +6 -0
  27. package/dist/mjs/resolvers/fragments/chapter.js +3 -18
  28. package/dist/mjs/resolvers/fragments/concept.d.ts +1 -2
  29. package/dist/mjs/resolvers/fragments/concept.js +18 -57
  30. package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
  31. package/dist/mjs/resolvers/fragments/index.js +1 -0
  32. package/dist/mjs/resolvers/fragments/marksheet.d.ts +14 -0
  33. package/dist/mjs/resolvers/fragments/marksheet.js +126 -126
  34. package/dist/mjs/resolvers/fragments/osce.d.ts +1 -0
  35. package/dist/mjs/resolvers/fragments/osce.js +5 -0
  36. package/dist/mjs/resolvers/fragments/question.d.ts +5 -0
  37. package/dist/mjs/resolvers/fragments/question.js +173 -0
  38. package/dist/mjs/resolvers/fragments/topic.d.ts +2 -0
  39. package/dist/mjs/resolvers/fragments/topic.js +24 -0
  40. package/dist/mjs/resolvers/fragments/video.d.ts +1 -0
  41. package/dist/mjs/resolvers/fragments/video.js +16 -27
  42. package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -8
  43. package/dist/mjs/resolvers/mutation/restricted/marksheet.js +14 -4111
  44. package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
  45. package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
  46. package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +26 -530
  47. package/dist/mjs/resolvers/query/restricted/marksheet.js +9 -2017
  48. package/dist/mjs/resolvers/query/restricted/question.js +3 -932
  49. package/package.json +6 -1
@@ -54,6 +54,7 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
54
54
  type: import("../../../models").EMarksheetType;
55
55
  endedAt: number | Date;
56
56
  typeId: import("../../../models").ETopicType;
57
+ entitlement: import("../../../models").IEntitlement;
57
58
  topicIds: number[];
58
59
  topicNames?: string[] | undefined;
59
60
  source: string;
@@ -1,4 +1,4 @@
1
- import { ApolloCache, DocumentNode } from '@apollo/client';
1
+ import { ApolloCache } from '@apollo/client';
2
2
  import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../..';
3
3
  import { EQuestionLike, EQuestionType, IHighlight, IQuestion, IQuestionComment, IQuestionHighlights, Id } from '../../../models';
4
4
  import { RestrictedData, graphqlNormalize } from '../../types';
@@ -7,24 +7,9 @@ interface LikeData {
7
7
  dislikes?: number;
8
8
  isLikedByMe?: EQuestionLike;
9
9
  }
10
- export declare const QUESTION_SBA_COMMENT_FIELDS: DocumentNode;
11
- export declare const QUESTION_QA_COMMENT_FIELDS: DocumentNode;
12
- export declare const QUESTION_EMQ_COMMENT_FIELDS: DocumentNode;
13
- export declare const QUESTION_SELECT3_COMMENT_FIELDS: DocumentNode;
14
- export declare const QUESTION_RANKING_COMMENT_FIELDS: DocumentNode;
15
- export declare const QUESTION_QA_HIGHLIGHT_FIELDS: DocumentNode;
16
- export declare const QUESTION_SBA_HIGHLIGHT_FIELDS: DocumentNode;
17
- export declare const QUESTION_MULTIA_HIGHLIGHT_FIELDS: DocumentNode;
18
- export declare const QUESTION_PRESCRIPTION_HIGHLIGHT_FIELDS: DocumentNode;
19
- export declare const QUESTION_EMQ_HIGHLIGHT_FIELDS: DocumentNode;
20
- export declare const QUESTION_SELECT3_HIGHLIGHT_FIELDS: DocumentNode;
21
- export declare const QUESTION_RANKING_HIGHLIGHT_FIELDS: DocumentNode;
22
- export declare const QUESTION_MULTIA_COMMENT_FIELDS: DocumentNode;
23
- export declare const QUESTION_PRESCRIPTION_COMMENT_FIELDS: DocumentNode;
24
10
  export declare const getLikeData: (like: EQuestionLike, item: LikeData) => LikeData;
25
- export declare const getQuestionHighlightsFragment: (typeId: EQuestionType) => DocumentNode;
26
11
  export declare const getQuestionTypeName: (typeId: EQuestionType) => string;
27
- export declare const QUESTION_LIKE: DocumentNode;
12
+ export declare const QUESTION_LIKE: import("@apollo/client").DocumentNode;
28
13
  export declare const optimisticQuestionLike: (input: IQuestionLikeVar, question: IQuestion) => IQuestionLikeData;
29
14
  export interface IQuestionLikeVar {
30
15
  marksheetId?: Id;
@@ -32,7 +17,7 @@ export interface IQuestionLikeVar {
32
17
  like: EQuestionLike;
33
18
  }
34
19
  export type IQuestionLikeData = RestrictedData<graphqlNormalize & IQuestion, 'questionLike'>;
35
- export declare const QUESTION_COMMENTS: DocumentNode;
20
+ export declare const QUESTION_COMMENTS: import("@apollo/client").DocumentNode;
36
21
  export declare const updateQuestionComments: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IQuestionCommentsData>, options: ApolloUpdateOptions) => void;
37
22
  export declare const optimisticQuestionComment: (id: number, user: {
38
23
  id: number;
@@ -45,7 +30,7 @@ export interface IQuestionCommentsVar {
45
30
  comment: string;
46
31
  }
47
32
  export type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionComments'>;
48
- export declare const QUESTION_COMMENT_LIKE: DocumentNode;
33
+ export declare const QUESTION_COMMENT_LIKE: import("@apollo/client").DocumentNode;
49
34
  export declare const optimisticCommentLike: (comments: IQuestionComment[], input: IQuestionCommentsLikeVar, parentId: number | null) => IQuestionCommentsLikeData;
50
35
  export interface IQuestionCommentsLikeVar {
51
36
  marksheetId?: Id;
@@ -54,7 +39,7 @@ export interface IQuestionCommentsLikeVar {
54
39
  like: EQuestionLike;
55
40
  }
56
41
  export type IQuestionCommentsLikeData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentLike'>;
57
- export declare const QUESTION_COMMENT_REMOVE: DocumentNode;
42
+ export declare const QUESTION_COMMENT_REMOVE: import("@apollo/client").DocumentNode;
58
43
  export declare const updateQuestionCommentsRemove: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IQuestionCommentRemoveData>, options: ApolloUpdateOptions) => void;
59
44
  export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number) => IQuestionCommentRemoveData;
60
45
  export interface IQuestionCommentRemoveVar {
@@ -73,6 +58,6 @@ export interface IAddQuestionHighlightVar {
73
58
  }[];
74
59
  }
75
60
  export type IAddQuestionHighlightData = RestrictedData<(graphqlNormalize & IQuestionHighlights)[], 'addQuestionHighlight'>;
76
- export declare const ADD_QUESTION_HIGHLIGHT: DocumentNode;
61
+ export declare const ADD_QUESTION_HIGHLIGHT: import("@apollo/client").DocumentNode;
77
62
  export declare const updateQuestionHighlights: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IAddQuestionHighlightData>, options: ApolloUpdateOptions) => void;
78
63
  export {};