@quesmed/types-rn 2.2.103 → 2.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.2.103",
3
+ "version": "2.3.1",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -16,6 +16,7 @@ export declare const getQuestionTypeName: (typeId: EQuestionType) => string;
16
16
  export declare const QUESTION_LIKE: DocumentNode;
17
17
  export declare const optimisticQuestionLike: (input: IQuestionLikeVar, question: IQuestion) => IQuestionLikeData;
18
18
  export interface IQuestionLikeVar {
19
+ marksheetId?: Id;
19
20
  questionId: Id;
20
21
  like: EQuestionLike;
21
22
  }
@@ -27,6 +28,7 @@ export declare const optimisticQuestionComment: (id: number, user: {
27
28
  displayName: string;
28
29
  }, input: IQuestionCommentsVar) => IQuestionCommentsData;
29
30
  export interface IQuestionCommentsVar {
31
+ marksheetId?: Id;
30
32
  questionId: Id;
31
33
  parentId?: Id;
32
34
  comment: string;
@@ -35,6 +37,7 @@ export declare type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQ
35
37
  export declare const QUESTION_COMMENT_LIKE: DocumentNode;
36
38
  export declare const optimisticCommentLike: (comments: IQuestionComment[], input: IQuestionCommentsLikeVar, parentId: number | null) => IQuestionCommentsLikeData;
37
39
  export interface IQuestionCommentsLikeVar {
40
+ marksheetId?: Id;
38
41
  commentId: Id;
39
42
  like: EQuestionLike;
40
43
  }
@@ -43,6 +46,7 @@ export declare const QUESTION_COMMENT_REMOVE: DocumentNode;
43
46
  export declare const updateQuestionCommentsRemove: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IQuestionCommentRemoveData>, options: ApolloUpdateOptions) => void;
44
47
  export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number | undefined) => IQuestionCommentRemoveData;
45
48
  export interface IQuestionCommentRemoveVar {
49
+ marksheetId?: Id;
46
50
  commentId: Id;
47
51
  }
48
52
  export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
@@ -227,9 +227,13 @@ const removeCommnetFromDiscussion = (comments, commentId, parentId) => {
227
227
  return comments.filter(({ id }) => Number(id) !== Number(commentId));
228
228
  };
229
229
  exports.QUESTION_LIKE = (0, client_1.gql) `
230
- mutation QuestionLike($questionId: Int!, $like: Int!) {
230
+ mutation QuestionLike($marksheetId: Int, $questionId: Int!, $like: Int!) {
231
231
  restricted {
232
- questionLike(questionId: $questionId, like: $like) {
232
+ questionLike(
233
+ marksheetId: $marksheetId
234
+ questionId: $questionId
235
+ like: $like
236
+ ) {
233
237
  id
234
238
  likes
235
239
  typeId
@@ -253,12 +257,14 @@ const optimisticQuestionLike = (input, question) => {
253
257
  exports.optimisticQuestionLike = optimisticQuestionLike;
254
258
  exports.QUESTION_COMMENTS = (0, client_1.gql) `
255
259
  mutation QuestionComments(
260
+ $marksheetId: Int
256
261
  $questionId: Int!
257
262
  $parentId: Int
258
263
  $comment: String!
259
264
  ) {
260
265
  restricted {
261
266
  questionComments(
267
+ marksheetId: $marksheetId
262
268
  questionId: $questionId
263
269
  parentId: $parentId
264
270
  comment: $comment
@@ -354,9 +360,17 @@ const optimisticQuestionComment = (id, user, input) => {
354
360
  };
355
361
  exports.optimisticQuestionComment = optimisticQuestionComment;
356
362
  exports.QUESTION_COMMENT_LIKE = (0, client_1.gql) `
357
- mutation QuestionCommentLike($commentId: Int!, $like: Int!) {
363
+ mutation QuestionCommentLike(
364
+ $marksheetId: Int
365
+ $commentId: Int!
366
+ $like: Int!
367
+ ) {
358
368
  restricted {
359
- questionCommentLike(commentId: $commentId, like: $like) {
369
+ questionCommentLike(
370
+ marksheetId: $marksheetId
371
+ commentId: $commentId
372
+ like: $like
373
+ ) {
360
374
  id
361
375
  createdAt
362
376
  comment
@@ -408,9 +422,9 @@ const optimisticCommentLike = (comments, input, parentId) => {
408
422
  };
409
423
  exports.optimisticCommentLike = optimisticCommentLike;
410
424
  exports.QUESTION_COMMENT_REMOVE = (0, client_1.gql) `
411
- mutation QuestionCommentRemove($commentId: Int!) {
425
+ mutation QuestionCommentRemove($marksheetId: Int, $commentId: Int!) {
412
426
  restricted {
413
- questionCommentRemove(commentId: $commentId) {
427
+ questionCommentRemove(marksheetId: $marksheetId, commentId: $commentId) {
414
428
  id
415
429
  createdAt
416
430
  comment