@quesmed/types 2.6.63 → 2.6.64

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.
@@ -9,6 +9,7 @@ export declare const UPSERT_CHAPTER_NOTE: import("@apollo/client").DocumentNode;
9
9
  export interface IUpsertChapterNoteVar {
10
10
  chapterId: number;
11
11
  note: string;
12
+ marksheetId?: number;
12
13
  }
13
14
  export type IUpsertChapterNoteData = RestrictedData<graphqlNormalize & Omit<IUserChapterNote, 'chapter'>, 'upsertChapterNote'>;
14
15
  export declare const updateCacheOnUpsertChapterNote: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IUpsertChapterNoteData>, options: ApolloUpdateOptions<IUpsertChapterNoteVar>) => void;
@@ -7,9 +7,9 @@ const fragments_1 = require("../../fragments");
7
7
  * upsertChapterNote
8
8
  */
9
9
  exports.UPSERT_CHAPTER_NOTE = (0, client_1.gql) `
10
- mutation UpsertChapterNote($chapterId: Int!, $note: String!) {
10
+ mutation UpsertChapterNote($chapterId: Int!, $note: String!, $marksheetId: Int) {
11
11
  restricted {
12
- upsertChapterNote(chapterId: $chapterId, note: $note) {
12
+ upsertChapterNote(chapterId: $chapterId, note: $note, marksheetId: $marksheetId) {
13
13
  id
14
14
  chapterId
15
15
  userId
@@ -78,7 +78,7 @@ const updateChapterHighlights = (cache, result, options) => {
78
78
  return;
79
79
  }
80
80
  try {
81
- for (const { chapterId, highlights } of variables.input) {
81
+ for (const { chapterId, highlights } of addChapterHighlight) {
82
82
  cache.writeFragment({
83
83
  id: cache.identify({
84
84
  id: chapterId,
@@ -9,6 +9,7 @@ export declare const UPSERT_CHAPTER_NOTE: import("@apollo/client").DocumentNode;
9
9
  export interface IUpsertChapterNoteVar {
10
10
  chapterId: number;
11
11
  note: string;
12
+ marksheetId?: number;
12
13
  }
13
14
  export type IUpsertChapterNoteData = RestrictedData<graphqlNormalize & Omit<IUserChapterNote, 'chapter'>, 'upsertChapterNote'>;
14
15
  export declare const updateCacheOnUpsertChapterNote: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IUpsertChapterNoteData>, options: ApolloUpdateOptions<IUpsertChapterNoteVar>) => void;
@@ -4,9 +4,9 @@ import { CHAPTER_WITH_HIGHLIGHT_FIELDS, HIGHLIGHT_FIELDS, UPSERT_CHAPTER_NOTE_FR
4
4
  * upsertChapterNote
5
5
  */
6
6
  export const UPSERT_CHAPTER_NOTE = gql `
7
- mutation UpsertChapterNote($chapterId: Int!, $note: String!) {
7
+ mutation UpsertChapterNote($chapterId: Int!, $note: String!, $marksheetId: Int) {
8
8
  restricted {
9
- upsertChapterNote(chapterId: $chapterId, note: $note) {
9
+ upsertChapterNote(chapterId: $chapterId, note: $note, marksheetId: $marksheetId) {
10
10
  id
11
11
  chapterId
12
12
  userId
@@ -73,7 +73,7 @@ export const updateChapterHighlights = (cache, result, options) => {
73
73
  return;
74
74
  }
75
75
  try {
76
- for (const { chapterId, highlights } of variables.input) {
76
+ for (const { chapterId, highlights } of addChapterHighlight) {
77
77
  cache.writeFragment({
78
78
  id: cache.identify({
79
79
  id: chapterId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.63",
3
+ "version": "2.6.64",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",