@quesmed/types-rn 2.1.10 → 2.1.13

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.
@@ -24,8 +24,8 @@ export interface INotification {
24
24
  updatedAt: number | Date;
25
25
  userId: Id | null;
26
26
  user?: IUser;
27
- parentId: Id | null;
28
- parentUser?: IUser;
27
+ fromUserId: Id | null;
28
+ fromUser?: IUser;
29
29
  commentId: Id | null;
30
30
  comment?: IQuestionComment;
31
31
  conceptId: Id | null;
@@ -33,7 +33,6 @@ export interface INotification {
33
33
  description: string;
34
34
  actionType: ENotificationActionType;
35
35
  type: ENotificationType;
36
- _global: boolean;
37
- _read: boolean;
38
- _deleted: boolean;
36
+ global: boolean;
37
+ read: boolean;
39
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.1.10",
3
+ "version": "2.1.13",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -32,7 +32,7 @@ export interface IMarksheetInput {
32
32
  }
33
33
  export declare const SAVE_MARKSHEET: import("@apollo/client").DocumentNode;
34
34
  export declare const updateMarksheets: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<ISaveMarksheetsData>, options: ApolloUpdateOptions) => void;
35
- export declare const optimisticSaveMarkseehts: (client: ApolloClient<any>, marksheetInput: IMarksheetInput, questionIndex: number) => ISaveMarksheetsData;
35
+ export declare const optimisticSaveMarksheets: (client: ApolloClient<any>, marksheetInput: IMarksheetInput, questionIndex: number) => ISaveMarksheetsData;
36
36
  export interface ISaveMarksheetsVar {
37
37
  marksheetInput: IMarksheetInput[];
38
38
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarkseehts = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_MARKSHEET = void 0;
3
+ exports.REMOVE_FLAGGED_QUESTION = exports.ADD_FLAGGED_QUESTION = exports.optimisticSaveMarksheets = exports.updateMarksheets = exports.SAVE_MARKSHEET = exports.RE_BUILD_MARKSHEET = exports.BUILD_MARKSHEET = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const marksheet_1 = require("../../fragments/marksheet");
6
6
  const restricted_1 = require("../../query/restricted");
@@ -99,7 +99,7 @@ const updateMarksheets = (cache, result, options) => {
99
99
  }
100
100
  };
101
101
  exports.updateMarksheets = updateMarksheets;
102
- const optimisticSaveMarkseehts = (client, marksheetInput, questionIndex) => {
102
+ const optimisticSaveMarksheets = (client, marksheetInput, questionIndex) => {
103
103
  const { timeTaken, choiceId, mark, marksheetId } = marksheetInput;
104
104
  const data = client.readQuery({
105
105
  variables: { id: marksheetId },
@@ -112,7 +112,7 @@ const optimisticSaveMarkseehts = (client, marksheetInput, questionIndex) => {
112
112
  ...marks[questionIndex],
113
113
  marksheetId,
114
114
  timeTaken,
115
- questionChoiceId: choiceId || null,
115
+ questionChoiceId: choiceId ?? null,
116
116
  mark: mark || null,
117
117
  };
118
118
  const udatedMarks = [
@@ -132,7 +132,7 @@ const optimisticSaveMarkseehts = (client, marksheetInput, questionIndex) => {
132
132
  },
133
133
  };
134
134
  };
135
- exports.optimisticSaveMarkseehts = optimisticSaveMarkseehts;
135
+ exports.optimisticSaveMarksheets = optimisticSaveMarksheets;
136
136
  exports.ADD_FLAGGED_QUESTION = (0, client_1.gql) `
137
137
  mutation AddFlaggedQuestion($markId: Int!, $questionId: Int!) {
138
138
  restricted {
@@ -8,9 +8,8 @@ export interface IAddNotificationInput {
8
8
  description: string;
9
9
  actionType: ENotificationActionType;
10
10
  type: ENotificationType;
11
- _global: boolean;
12
- _read: boolean;
13
- _deleted: boolean;
11
+ global: boolean;
12
+ read: boolean;
14
13
  }
15
14
  export declare type IAddNotificationVar = {
16
15
  data: IAddNotificationInput;
@@ -1,3 +1,3 @@
1
1
  import { ApolloClient } from '@apollo/client';
2
2
  import { IMarksheetInput } from './restricted';
3
- export declare const saveSampleMarkseehts: (client: ApolloClient<any>, marksheetInput: IMarksheetInput, questionIndex: number) => void;
3
+ export declare const saveSampleMarksheets: (client: ApolloClient<any>, marksheetInput: IMarksheetInput, questionIndex: number) => void;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.saveSampleMarkseehts = void 0;
3
+ exports.saveSampleMarksheets = void 0;
4
4
  const query_1 = require("../query");
5
- const saveSampleMarkseehts = (client, marksheetInput, questionIndex) => {
5
+ const saveSampleMarksheets = (client, marksheetInput, questionIndex) => {
6
6
  const { timeTaken, choiceId, mark, marksheetId } = marksheetInput;
7
7
  const prevData = client.readQuery({
8
8
  variables: { marksheetId },
@@ -33,4 +33,4 @@ const saveSampleMarkseehts = (client, marksheetInput, questionIndex) => {
33
33
  });
34
34
  }
35
35
  };
36
- exports.saveSampleMarkseehts = saveSampleMarkseehts;
36
+ exports.saveSampleMarksheets = saveSampleMarksheets;
@@ -36,6 +36,11 @@ exports.TOPICS = (0, client_1.gql) `
36
36
  redCards
37
37
  dailyFeedCards
38
38
  typeId
39
+ concepts {
40
+ id
41
+ name
42
+ topicId
43
+ }
39
44
  }
40
45
  }
41
46
  }