@quesmed/types 2.3.1 → 2.3.3
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/resolvers/mutation/restricted/questionDiscussion.d.ts +1 -0
- package/dist/cjs/resolvers/mutation/restricted/questionDiscussion.js +10 -2
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.d.ts +1 -0
- package/dist/mjs/resolvers/mutation/restricted/questionDiscussion.js +10 -2
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ export declare const updateQuestionCommentsRemove: (typeId: EQuestionType) => (c
|
|
|
47
47
|
export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number | undefined) => IQuestionCommentRemoveData;
|
|
48
48
|
export interface IQuestionCommentRemoveVar {
|
|
49
49
|
marksheetId?: Id;
|
|
50
|
+
questionId: Id;
|
|
50
51
|
commentId: Id;
|
|
51
52
|
}
|
|
52
53
|
export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
|
|
@@ -422,9 +422,17 @@ const optimisticCommentLike = (comments, input, parentId) => {
|
|
|
422
422
|
};
|
|
423
423
|
exports.optimisticCommentLike = optimisticCommentLike;
|
|
424
424
|
exports.QUESTION_COMMENT_REMOVE = (0, client_1.gql) `
|
|
425
|
-
mutation QuestionCommentRemove(
|
|
425
|
+
mutation QuestionCommentRemove(
|
|
426
|
+
$marksheetId: Int
|
|
427
|
+
$questionId: Int!
|
|
428
|
+
$commentId: Int!
|
|
429
|
+
) {
|
|
426
430
|
restricted {
|
|
427
|
-
questionCommentRemove(
|
|
431
|
+
questionCommentRemove(
|
|
432
|
+
marksheetId: $marksheetId
|
|
433
|
+
questionId: $questionId
|
|
434
|
+
commentId: $commentId
|
|
435
|
+
) {
|
|
428
436
|
id
|
|
429
437
|
createdAt
|
|
430
438
|
comment
|
|
@@ -47,6 +47,7 @@ export declare const updateQuestionCommentsRemove: (typeId: EQuestionType) => (c
|
|
|
47
47
|
export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number | undefined) => IQuestionCommentRemoveData;
|
|
48
48
|
export interface IQuestionCommentRemoveVar {
|
|
49
49
|
marksheetId?: Id;
|
|
50
|
+
questionId: Id;
|
|
50
51
|
commentId: Id;
|
|
51
52
|
}
|
|
52
53
|
export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
|
|
@@ -413,9 +413,17 @@ export const optimisticCommentLike = (comments, input, parentId) => {
|
|
|
413
413
|
};
|
|
414
414
|
};
|
|
415
415
|
export const QUESTION_COMMENT_REMOVE = gql `
|
|
416
|
-
mutation QuestionCommentRemove(
|
|
416
|
+
mutation QuestionCommentRemove(
|
|
417
|
+
$marksheetId: Int
|
|
418
|
+
$questionId: Int!
|
|
419
|
+
$commentId: Int!
|
|
420
|
+
) {
|
|
417
421
|
restricted {
|
|
418
|
-
questionCommentRemove(
|
|
422
|
+
questionCommentRemove(
|
|
423
|
+
marksheetId: $marksheetId
|
|
424
|
+
questionId: $questionId
|
|
425
|
+
commentId: $commentId
|
|
426
|
+
) {
|
|
419
427
|
id
|
|
420
428
|
createdAt
|
|
421
429
|
comment
|