@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.
- package/dist/cjs/models/Marksheet.d.ts +2 -1
- package/dist/cjs/models/Question.d.ts +6 -0
- package/dist/cjs/resolvers/fragments/chapter.js +3 -18
- package/dist/cjs/resolvers/fragments/concept.d.ts +1 -2
- package/dist/cjs/resolvers/fragments/concept.js +18 -57
- package/dist/cjs/resolvers/fragments/index.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/index.js +1 -0
- package/dist/cjs/resolvers/fragments/marksheet.d.ts +14 -0
- package/dist/cjs/resolvers/fragments/marksheet.js +127 -127
- package/dist/cjs/resolvers/fragments/osce.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/osce.js +6 -1
- package/dist/cjs/resolvers/fragments/question.d.ts +5 -0
- package/dist/cjs/resolvers/fragments/question.js +176 -0
- package/dist/cjs/resolvers/fragments/topic.d.ts +2 -0
- package/dist/cjs/resolvers/fragments/topic.js +25 -1
- package/dist/cjs/resolvers/fragments/video.d.ts +1 -0
- package/dist/cjs/resolvers/fragments/video.js +17 -28
- package/dist/cjs/resolvers/mutation/restricted/marksheet.d.ts +2 -8
- package/dist/cjs/resolvers/mutation/restricted/marksheet.js +18 -4115
- package/dist/cjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.js +27 -532
- package/dist/cjs/resolvers/query/restricted/marksheet.js +9 -2017
- package/dist/cjs/resolvers/query/restricted/question.js +3 -932
- package/dist/mjs/models/Marksheet.d.ts +2 -1
- package/dist/mjs/models/Question.d.ts +6 -0
- package/dist/mjs/resolvers/fragments/chapter.js +3 -18
- package/dist/mjs/resolvers/fragments/concept.d.ts +1 -2
- package/dist/mjs/resolvers/fragments/concept.js +18 -57
- package/dist/mjs/resolvers/fragments/index.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/index.js +1 -0
- package/dist/mjs/resolvers/fragments/marksheet.d.ts +14 -0
- package/dist/mjs/resolvers/fragments/marksheet.js +126 -126
- package/dist/mjs/resolvers/fragments/osce.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/osce.js +5 -0
- package/dist/mjs/resolvers/fragments/question.d.ts +5 -0
- package/dist/mjs/resolvers/fragments/question.js +173 -0
- package/dist/mjs/resolvers/fragments/topic.d.ts +2 -0
- package/dist/mjs/resolvers/fragments/topic.js +24 -0
- package/dist/mjs/resolvers/fragments/video.d.ts +1 -0
- package/dist/mjs/resolvers/fragments/video.js +16 -27
- package/dist/mjs/resolvers/mutation/restricted/marksheet.d.ts +2 -8
- package/dist/mjs/resolvers/mutation/restricted/marksheet.js +14 -4111
- package/dist/mjs/resolvers/mutation/restricted/mockTest.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -21
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +26 -530
- package/dist/mjs/resolvers/query/restricted/marksheet.js +9 -2017
- package/dist/mjs/resolvers/query/restricted/question.js +3 -932
- 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
|
|
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 {};
|