@quesmed/types-rn 2.4.30 → 2.4.33

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.
Files changed (64) hide show
  1. package/index.js +5 -1
  2. package/models/Chapter.d.ts +0 -2
  3. package/models/Marksheet.d.ts +1 -1
  4. package/models/Question.d.ts +3 -3
  5. package/models/Type.d.ts +3 -3
  6. package/models/User.d.ts +2 -2
  7. package/models/index.js +5 -1
  8. package/package.json +6 -6
  9. package/resolvers/apollo.d.ts +1 -1
  10. package/resolvers/fragments/index.js +5 -1
  11. package/resolvers/index.js +5 -1
  12. package/resolvers/mutation/admin/algoliaSync.d.ts +8 -8
  13. package/resolvers/mutation/admin/index.js +5 -1
  14. package/resolvers/mutation/admin/notification.d.ts +4 -4
  15. package/resolvers/mutation/admin/token.d.ts +2 -2
  16. package/resolvers/mutation/index.js +5 -1
  17. package/resolvers/mutation/restricted/agora.d.ts +1 -1
  18. package/resolvers/mutation/restricted/contactUs.d.ts +1 -1
  19. package/resolvers/mutation/restricted/index.js +5 -1
  20. package/resolvers/mutation/restricted/marksheet.d.ts +13 -13
  21. package/resolvers/mutation/restricted/mockTest.d.ts +3 -3
  22. package/resolvers/mutation/restricted/notification.d.ts +8 -8
  23. package/resolvers/mutation/restricted/osce.d.ts +16 -16
  24. package/resolvers/mutation/restricted/questionDiscussion.d.ts +6 -6
  25. package/resolvers/mutation/restricted/todo.d.ts +6 -6
  26. package/resolvers/mutation/restricted/token.d.ts +4 -4
  27. package/resolvers/mutation/restricted/users.d.ts +9 -9
  28. package/resolvers/mutation/restricted/video.d.ts +1 -1
  29. package/resolvers/mutation/stripe.d.ts +3 -3
  30. package/resolvers/mutation/users.d.ts +4 -4
  31. package/resolvers/mutation/validUserToken/index.js +5 -1
  32. package/resolvers/mutation/validUserToken/user.d.ts +3 -3
  33. package/resolvers/query/admin/getUserToken.d.ts +1 -1
  34. package/resolvers/query/admin/index.js +5 -1
  35. package/resolvers/query/author.d.ts +1 -1
  36. package/resolvers/query/blog.d.ts +4 -4
  37. package/resolvers/query/book.d.ts +3 -3
  38. package/resolvers/query/feedback.d.ts +2 -2
  39. package/resolvers/query/index.js +5 -1
  40. package/resolvers/query/product.d.ts +1 -1
  41. package/resolvers/query/restricted/conceptExplanation.d.ts +1 -1
  42. package/resolvers/query/restricted/global.d.ts +4 -4
  43. package/resolvers/query/restricted/index.js +5 -1
  44. package/resolvers/query/restricted/marksheet.d.ts +13 -13
  45. package/resolvers/query/restricted/mockTests.d.ts +2 -2
  46. package/resolvers/query/restricted/notification.d.ts +1 -1
  47. package/resolvers/query/restricted/osce.d.ts +9 -9
  48. package/resolvers/query/restricted/quesBook.d.ts +4 -4
  49. package/resolvers/query/restricted/question.d.ts +1 -1
  50. package/resolvers/query/restricted/todos.d.ts +2 -2
  51. package/resolvers/query/restricted/topics.d.ts +2 -2
  52. package/resolvers/query/restricted/university.d.ts +1 -1
  53. package/resolvers/query/restricted/user.d.ts +4 -4
  54. package/resolvers/query/restricted/video.d.ts +2 -2
  55. package/resolvers/query/sample.d.ts +5 -5
  56. package/resolvers/query/university.d.ts +1 -1
  57. package/resolvers/query/user.d.ts +2 -2
  58. package/resolvers/query/video.d.ts +3 -3
  59. package/resolvers/subscription/index.js +5 -1
  60. package/resolvers/subscription/marksheet.d.ts +3 -3
  61. package/resolvers/subscription/notification.d.ts +2 -2
  62. package/resolvers/subscription/osce.d.ts +6 -6
  63. package/resolvers/types.d.ts +3 -3
  64. package/utils/index.js +5 -1
package/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -2,7 +2,6 @@ import { IFile } from './File';
2
2
  import { IPicture } from './Picture';
3
3
  import { ETopicType } from './Topic';
4
4
  import { Id } from './Type';
5
- import { IVideo } from './Video';
6
5
  export interface IChapter {
7
6
  id: Id;
8
7
  createdAt: number | Date;
@@ -11,6 +10,5 @@ export interface IChapter {
11
10
  explanation: string | null;
12
11
  typeId: ETopicType | null;
13
12
  pictures?: IPicture[];
14
- videos?: IVideo[];
15
13
  files?: IFile[];
16
14
  }
@@ -74,7 +74,7 @@ export interface IMarksheet {
74
74
  preBuildData?: IPreBuildMarksheet;
75
75
  builderConfig?: IBuildConfigData;
76
76
  }
77
- export declare type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
77
+ export type IMarksheetMarkJSONB = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | [IPrescribeMark] | IPrescribeAnswer | null;
78
78
  export interface IMarksheetMark {
79
79
  id: Id;
80
80
  createdAt: number | Date;
@@ -53,8 +53,8 @@ export interface IQuestionCommentLike {
53
53
  comment: IQuestionComment;
54
54
  likeTrueDislikeFalse: boolean;
55
55
  }
56
- export declare type IQuestionAnswer = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | IPrescribeAnswer[];
57
- export declare type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe;
56
+ export type IQuestionAnswer = string | [string] | [IQuestionQAAnswer] | [string[], string[]] | IPrescribeAnswer[];
57
+ export type IQuestionAll = IQuestion | IQuestionSBA | IQuestionQA | IQuestionMultiQ | IQuestionPrescribe;
58
58
  export interface IQuestion {
59
59
  id: Id;
60
60
  createdAt: Date | number;
@@ -154,7 +154,7 @@ export interface IQuestionPrescribe extends IQuestion {
154
154
  answer: IPrescribeAnswer[];
155
155
  prescribeAnswer: IPrescribeAnswer[];
156
156
  }
157
- export declare type IPrescribeAnswerData<T> = {
157
+ export type IPrescribeAnswerData<T> = {
158
158
  value: T;
159
159
  display: boolean;
160
160
  };
package/models/Type.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export declare type Id = number;
2
- export declare type Count = {
1
+ export type Id = number;
2
+ export type Count = {
3
3
  count: string;
4
4
  };
5
- export declare type Sum = {
5
+ export type Sum = {
6
6
  sum: string;
7
7
  };
package/models/User.d.ts CHANGED
@@ -8,8 +8,8 @@ import { ISubscription } from './Subscription';
8
8
  import { ITodo } from './Todo';
9
9
  import { Id } from './Type';
10
10
  import { IUniversity } from './University';
11
- export declare type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
12
- export declare type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
11
+ export type IAccessLevel = 'subscriber' | 'administrator' | 'tutor';
12
+ export type IClassYear = 'Year 1' | 'Year 2' | 'Year 3' | 'Year 4' | 'Year 5' | 'Graduated' | 'PhD' | 'BSc' | 'MSc' | 'Beta Tester';
13
13
  export declare const classYears: IClassYear[];
14
14
  export declare enum EClassYearGroup {
15
15
  PRECLINICAL = 0,
package/models/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.4.30",
3
+ "version": "2.4.33",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "homepage": "https://github.com/Quesmed/quesmed_types#readme",
22
22
  "dependencies": {
23
- "@apollo/client": "^3.5.7",
24
- "@react-native-async-storage/async-storage": "^1.15.16",
25
- "@types/react-native": "^0.64",
23
+ "@apollo/client": "^3.7.12",
24
+ "@react-native-async-storage/async-storage": "^1.18.1",
25
+ "@types/react-native": "^0.71.6",
26
26
  "decimal.js": "^10.4.3",
27
27
  "localforage": "^1.10.0",
28
- "luxon": "^3.2.1",
29
- "react-native": "0.64.0",
28
+ "luxon": "^3.3.0",
29
+ "react-native": "0.71.7",
30
30
  "react-native-expo-image-cache": "^4.1.0"
31
31
  },
32
32
  "peerDependencies": {
@@ -1,5 +1,5 @@
1
1
  import { DefaultContext, FetchResult } from '@apollo/client';
2
- export declare type ApolloUpdateResultRestricted<T> = Omit<FetchResult<T>, 'context'>;
2
+ export type ApolloUpdateResultRestricted<T> = Omit<FetchResult<T>, 'context'>;
3
3
  export interface ApolloUpdateOptions {
4
4
  context?: DefaultContext;
5
5
  variables?: Record<string, any>;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,13 +1,13 @@
1
1
  import { AdminData } from '../../types';
2
2
  export declare const UPDATE_CARDS_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
3
- export declare type IUpdateCardsDataInAlgoliaVar = void;
4
- export declare type IUpdateCardsDataInAlgoliaData = AdminData<string, 'updateCardsDataInAlgolia'>;
3
+ export type IUpdateCardsDataInAlgoliaVar = void;
4
+ export type IUpdateCardsDataInAlgoliaData = AdminData<string, 'updateCardsDataInAlgolia'>;
5
5
  export declare const UPDATE_QUESTIONS_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
6
- export declare type IUpdateQuestionsDataInAlgoliaVar = void;
7
- export declare type IUpdateQuestionsDataInAlgoliaData = AdminData<string, 'updateQuestionsDataInAlgolia'>;
6
+ export type IUpdateQuestionsDataInAlgoliaVar = void;
7
+ export type IUpdateQuestionsDataInAlgoliaData = AdminData<string, 'updateQuestionsDataInAlgolia'>;
8
8
  export declare const UPDATE_QUES_BOOK_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
9
- export declare type IUpdateQuesBookDataInAlgoliaVar = void;
10
- export declare type IUpdateQuesBookDataInAlgoliaData = AdminData<string, 'updateDataInAlgolia'>;
9
+ export type IUpdateQuesBookDataInAlgoliaVar = void;
10
+ export type IUpdateQuesBookDataInAlgoliaData = AdminData<string, 'updateDataInAlgolia'>;
11
11
  export declare const UPDATE_VIDEO_DATA_IN_ALGOLIA: import("@apollo/client").DocumentNode;
12
- export declare type IUpdateVideoDataInAlgoliaVar = void;
13
- export declare type IUpdateVideoDataInAlgoliaData = AdminData<string, 'updateVideoDataInAlgolia'>;
12
+ export type IUpdateVideoDataInAlgoliaVar = void;
13
+ export type IUpdateVideoDataInAlgoliaData = AdminData<string, 'updateVideoDataInAlgolia'>;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -5,11 +5,11 @@ export interface IAdminAddNotificationInput {
5
5
  actionType: ENotificationActionType;
6
6
  type: ENotificationType;
7
7
  }
8
- export declare type IAdminAddNotificationVar = {
8
+ export type IAdminAddNotificationVar = {
9
9
  data: IAdminAddNotificationInput;
10
10
  };
11
- export declare type IAdminAddNotificationData = AdminData<INotification, 'addNotification'>;
12
- export declare type IAdminAddNotificationsVar = {
11
+ export type IAdminAddNotificationData = AdminData<INotification, 'addNotification'>;
12
+ export type IAdminAddNotificationsVar = {
13
13
  data: IAdminAddNotificationInput[];
14
14
  };
15
- export declare type IAdminAddNotificationsData = AdminData<INotification[], 'addNotifications'>;
15
+ export type IAdminAddNotificationsData = AdminData<INotification[], 'addNotifications'>;
@@ -18,10 +18,10 @@ export declare const SEND_PUSH_NOTIFICATION: import("@apollo/client").DocumentNo
18
18
  export interface ISendPushNotificationVar {
19
19
  data: ISendPushNotificationInput;
20
20
  }
21
- export declare type ISendPushNotificationData = AdminData<string, 'sendPushNotification'>;
21
+ export type ISendPushNotificationData = AdminData<string, 'sendPushNotification'>;
22
22
  export declare const SEND_TOPIC_NOTIFICATION: import("@apollo/client").DocumentNode;
23
23
  export interface ISendTopicNotificationVar {
24
24
  data: ISendTopicNotificationInput;
25
25
  topic: string;
26
26
  }
27
- export declare type ISendTopicNotificationData = AdminData<string, 'sendTopicNotification'>;
27
+ export type ISendTopicNotificationData = AdminData<string, 'sendTopicNotification'>;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -7,4 +7,4 @@ export interface IAgoraTokenVar {
7
7
  channel: string;
8
8
  uid: Id;
9
9
  }
10
- export declare type IAgoraTokenData = RestrictedData<string, 'agoraToken'>;
10
+ export type IAgoraTokenData = RestrictedData<string, 'agoraToken'>;
@@ -14,5 +14,5 @@ export interface IContactUsVar {
14
14
  subject: string;
15
15
  message: string;
16
16
  }
17
- export declare type IContactUsData = RestrictedData<string, 'contactUs'>;
17
+ export type IContactUsData = RestrictedData<string, 'contactUs'>;
18
18
  export {};
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -16,7 +16,7 @@ export interface IPreBuildMarksheet {
16
16
  export interface IBuildQuestionMarksheetVar {
17
17
  questionIds?: number[];
18
18
  }
19
- export declare type IBuildQuestionMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildQuestionMarksheet'>;
19
+ export type IBuildQuestionMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildQuestionMarksheet'>;
20
20
  export declare const BUILD_QUESTION_MARKSHEET: import("@apollo/client").DocumentNode;
21
21
  /**
22
22
  * buildMarksheet
@@ -29,7 +29,7 @@ export interface IBuildMarksheetInput extends IPreBuildMarksheet {
29
29
  export interface IBuildMarksheetVar {
30
30
  input: IBuildMarksheetInput;
31
31
  }
32
- export declare type IBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMarksheet'>;
32
+ export type IBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMarksheet'>;
33
33
  export declare const BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
34
34
  /**
35
35
  * reBuildMarksheet
@@ -38,7 +38,7 @@ export declare const RE_BUILD_MARKSHEET: import("@apollo/client").DocumentNode;
38
38
  export interface IReBuildMarksheetVar {
39
39
  marksheetId: number;
40
40
  }
41
- export declare type IReBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'reBuildMarksheet'>;
41
+ export type IReBuildMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'reBuildMarksheet'>;
42
42
  export interface ISaveMarksheetInput {
43
43
  marksheetId: Id;
44
44
  markId: Id;
@@ -56,7 +56,7 @@ export interface ISaveMarksheetsVar {
56
56
  input: ISaveMarksheetInput[];
57
57
  updatesOnly?: boolean;
58
58
  }
59
- export declare type ISaveMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'saveMarksheets'>;
59
+ export type ISaveMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'saveMarksheets'>;
60
60
  /**
61
61
  * addFlaggedQuestion
62
62
  */
@@ -66,7 +66,7 @@ export interface IAddFlaggedQuestionVar {
66
66
  questionId: number;
67
67
  marksheetId?: number;
68
68
  }
69
- export declare type IAddFlaggedQuestionData = RestrictedData<graphqlNormalize & IUserFlaggedQuestion, 'addFlaggedQuestion'>;
69
+ export type IAddFlaggedQuestionData = RestrictedData<graphqlNormalize & IUserFlaggedQuestion, 'addFlaggedQuestion'>;
70
70
  /**
71
71
  * removeFlaggedQuestion
72
72
  */
@@ -75,7 +75,7 @@ export interface IRemoveFlaggedQuestionVar {
75
75
  questionId: Id;
76
76
  marksheetId?: number;
77
77
  }
78
- export declare type IRemoveFlaggedQuestionData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'removeFlaggedQuestion'>;
78
+ export type IRemoveFlaggedQuestionData = RestrictedData<(graphqlNormalize & IUserFlaggedQuestion)[], 'removeFlaggedQuestion'>;
79
79
  export declare const MARK_FLAGGED_FIELD: import("@apollo/client").DocumentNode;
80
80
  export declare const updateCacheAddFlaggedQuestion: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IAddFlaggedQuestionData>) => void;
81
81
  export declare const updateCacheRemoveFlaggedQuestion: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IRemoveFlaggedQuestionData>) => void;
@@ -86,7 +86,7 @@ export interface IStartOrJoinMarksheetVar {
86
86
  agoraId: string;
87
87
  solo: boolean;
88
88
  }
89
- export declare type IStartOrJoinMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'startOrJoinMarksheet'>;
89
+ export type IStartOrJoinMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'startOrJoinMarksheet'>;
90
90
  export declare const START_OR_JOIN_MARKSHEET: import("@apollo/client").DocumentNode;
91
91
  /**
92
92
  * modifyMarksheet
@@ -126,8 +126,8 @@ export interface IModifyMarksheetVarInput {
126
126
  export interface IModifyMarksheetVar {
127
127
  input: IModifyMarksheetVarInput;
128
128
  }
129
- export declare type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'modifyMarksheet'>;
130
- export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: number, builderConfig: IBuildConfigData, client?: ApolloClient<any> | undefined) => {
129
+ export type IModifyMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'modifyMarksheet'>;
130
+ export declare const optimisticModifyMarksheetBuilderConfig: (marksheetId: number, builderConfig: IBuildConfigData, client?: ApolloClient<any>) => {
131
131
  restricted: {
132
132
  __typename: string;
133
133
  modifyMarksheet: {
@@ -206,7 +206,7 @@ export interface IModifyMarksheetMarkVarInput {
206
206
  export interface IModifyMarksheetMarkVar {
207
207
  input: IModifyMarksheetMarkVarInput;
208
208
  }
209
- export declare type IModifyMarksheetMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'modifyMarksheetMark'>;
209
+ export type IModifyMarksheetMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'modifyMarksheetMark'>;
210
210
  export declare const MODIFY_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
211
211
  export declare const MODIFY_MARKSHEET_MARK_STRIKED: import("@apollo/client").DocumentNode;
212
212
  export declare const MODIFY_MARKSHEET_MARK_STRIKED_FRAGMENT: import("@apollo/client").DocumentNode;
@@ -220,7 +220,7 @@ export declare const MODIFY_CURRENT_MARKSHEET_MARK_FRAGMENT: import("@apollo/cli
220
220
  export interface ILeaveMarksheetVar {
221
221
  marksheetId: Id;
222
222
  }
223
- export declare type ILeaveMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'leaveMarksheet'>;
223
+ export type ILeaveMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'leaveMarksheet'>;
224
224
  export declare const LEAVE_MARKSHEET: import("@apollo/client").DocumentNode;
225
225
  /**
226
226
  * endMarksheet
@@ -228,7 +228,7 @@ export declare const LEAVE_MARKSHEET: import("@apollo/client").DocumentNode;
228
228
  export interface IEndMarksheetVar {
229
229
  marksheetId: Id;
230
230
  }
231
- export declare type IEndMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'endMarksheet'>;
231
+ export type IEndMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'endMarksheet'>;
232
232
  export declare const END_MARKSHEET: import("@apollo/client").DocumentNode;
233
233
  export declare const updateCacheOnEndMarksheet: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndMarksheetData>, options: ApolloUpdateOptions) => void;
234
234
  export declare const optimisticEndMarksheet: (marksheet: IMarksheet) => {
@@ -279,5 +279,5 @@ export interface IToggleStrikeOptionsVar {
279
279
  striked: number[];
280
280
  }[];
281
281
  }
282
- export declare type IToggleStrikeOptionsData = RestrictedData<(graphqlNormalize & IMarksheetMark)[], 'toggleStrikeOptions'>;
282
+ export type IToggleStrikeOptionsData = RestrictedData<(graphqlNormalize & IMarksheetMark)[], 'toggleStrikeOptions'>;
283
283
  export declare const TOGGLE_STRIKE_OPTIONS: import("@apollo/client").DocumentNode;
@@ -7,7 +7,7 @@ export interface IBuildMockTestMarksheetVar {
7
7
  mockTestId: Id;
8
8
  duration: number;
9
9
  }
10
- export declare type IBuildMockTestMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMockTestMarksheet'>;
10
+ export type IBuildMockTestMarksheetData = RestrictedData<graphqlNormalize & IMarksheet, 'buildMockTestMarksheet'>;
11
11
  export declare const TOGGLE_FLAGGED_MARK: import("@apollo/client").DocumentNode;
12
12
  export declare const MARK_FLAGGED_QUESTION: import("@apollo/client").DocumentNode;
13
13
  export declare const updateCacheToggleFlaggedQuestion: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IToggleFlaggedMarkData>) => void;
@@ -38,7 +38,7 @@ export interface IToggleFlaggedMarkVar {
38
38
  markId: Id;
39
39
  isFlagged: boolean;
40
40
  }
41
- export declare type IToggleFlaggedMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'toggleFlaggedMark'>;
41
+ export type IToggleFlaggedMarkData = RestrictedData<graphqlNormalize & IMarksheetMark, 'toggleFlaggedMark'>;
42
42
  export declare const END_MOCK_TEST: import("@apollo/client").DocumentNode;
43
43
  export declare const updateCacheOnEndMockTest: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IEndMockTestData>, options: ApolloUpdateOptions) => void;
44
44
  export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
@@ -82,4 +82,4 @@ export declare const optimisticEndMockTest: (marksheet: IMarksheet) => {
82
82
  export interface IEndMockTestVar {
83
83
  marksheetId: Id;
84
84
  }
85
- export declare type IEndMockTestData = RestrictedData<graphqlNormalize & IMarksheet, 'endMockTest'>;
85
+ export type IEndMockTestData = RestrictedData<graphqlNormalize & IMarksheet, 'endMockTest'>;
@@ -13,22 +13,22 @@ export interface IAddNotificationInput {
13
13
  global: boolean;
14
14
  read: boolean;
15
15
  }
16
- export declare type IAddNotificationVar = {
16
+ export type IAddNotificationVar = {
17
17
  data: IAddNotificationInput;
18
18
  };
19
- export declare type IAddNotificationData = RestrictedData<graphqlNormalize & INotification, 'addNotification'>;
20
- export declare type IAddNotificationsVar = {
19
+ export type IAddNotificationData = RestrictedData<graphqlNormalize & INotification, 'addNotification'>;
20
+ export type IAddNotificationsVar = {
21
21
  data: IAddNotificationInput[];
22
22
  };
23
- export declare type IAddNotificationsData = RestrictedData<graphqlNormalize & INotification[], 'addNotifications'>;
24
- export declare type IMarkNotificationAsReadVar = {
23
+ export type IAddNotificationsData = RestrictedData<graphqlNormalize & INotification[], 'addNotifications'>;
24
+ export type IMarkNotificationAsReadVar = {
25
25
  id: Id;
26
26
  };
27
- export declare type IMarkNotificationAsReadData = RestrictedData<graphqlNormalize & INotification, 'markNotificationAsRead'>;
27
+ export type IMarkNotificationAsReadData = RestrictedData<graphqlNormalize & INotification, 'markNotificationAsRead'>;
28
28
  export declare const MARK_AS_READ: import("@apollo/client").DocumentNode;
29
29
  export declare const updateNotificatonsOnMarkAsRead: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IMarkNotificationAsReadData>, options: ApolloUpdateOptions) => void;
30
- export declare type IMarkAllNotificationsAsReadVar = null;
31
- export declare type IMarkAllNotificationsAsReadData = RestrictedData<graphqlNormalize & INotification[], 'markAllNotificationsAsRead'>;
30
+ export type IMarkAllNotificationsAsReadVar = null;
31
+ export type IMarkAllNotificationsAsReadData = RestrictedData<graphqlNormalize & INotification[], 'markAllNotificationsAsRead'>;
32
32
  export declare const MARK_ALL_AS_READ: import("@apollo/client").DocumentNode;
33
33
  export declare const optimisticMarkAsRead: (notification: INotification) => () => {
34
34
  restricted: {
@@ -5,56 +5,56 @@ export declare const START_OSCE_MATCHMAKING: import("@apollo/client").DocumentNo
5
5
  export interface IStartOsceMatchmakingVar {
6
6
  agoraId: string;
7
7
  }
8
- export declare type IStartOsceMatchmakingData = RestrictedData<boolean, 'startOsceMatchmaking'>;
8
+ export type IStartOsceMatchmakingData = RestrictedData<boolean, 'startOsceMatchmaking'>;
9
9
  export declare const ACCEPT_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
10
10
  export interface IAcceptOsceMatchmakingVar {
11
11
  agoraId: string;
12
12
  }
13
- export declare type IAcceptOsceMatchmakingData = RestrictedData<boolean, 'acceptOsceMatchmaking'>;
13
+ export type IAcceptOsceMatchmakingData = RestrictedData<boolean, 'acceptOsceMatchmaking'>;
14
14
  export declare const CHECK_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
15
- export declare type ICheckOsceMatchmakingVar = null;
16
- export declare type ICheckOsceMatchmakingData = RestrictedData<graphqlNormalize & IOsceMatchmakingAction, 'checkOsceMatchmaking'>;
15
+ export type ICheckOsceMatchmakingVar = null;
16
+ export type ICheckOsceMatchmakingData = RestrictedData<graphqlNormalize & IOsceMatchmakingAction, 'checkOsceMatchmaking'>;
17
17
  export declare const CANCEL_OSCE_MATCHMAKING: import("@apollo/client").DocumentNode;
18
18
  export interface ICancelOsceMatchmakingVar {
19
19
  agoraId: string;
20
20
  }
21
- export declare type ICancelOsceMatchmakingData = RestrictedData<boolean, 'cancelOsceMatchmaking'>;
21
+ export type ICancelOsceMatchmakingData = RestrictedData<boolean, 'cancelOsceMatchmaking'>;
22
22
  export declare const BUILD_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
23
23
  export interface IBuildOsceMarksheetVar {
24
24
  osceStationId?: Id;
25
25
  agoraId?: string;
26
26
  solo?: boolean;
27
27
  }
28
- export declare type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
28
+ export type IBuildOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'buildOsceMarksheet'>;
29
29
  export declare const CHANGE_OSCE_ROLE: import("@apollo/client").DocumentNode;
30
30
  export interface IChangeOsceRoleVar {
31
31
  osceMarksheetId: Id;
32
32
  role: EOsceRoles;
33
33
  }
34
- export declare type IChangeOsceRoleData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'changeOsceRole'>;
34
+ export type IChangeOsceRoleData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'changeOsceRole'>;
35
35
  export declare const MARK_OSCE_MARKSHEET_MARK: import("@apollo/client").DocumentNode;
36
36
  export interface IMarkOsceMarksheetMarkVar {
37
37
  osceMarksheetMarkId: Id;
38
38
  mark: boolean;
39
39
  }
40
- export declare type IMarkOsceMarksheetMarkData = RestrictedData<graphqlNormalize & Partial<IOsceMarksheetMark>, 'markOsceMarksheetMark'>;
40
+ export type IMarkOsceMarksheetMarkData = RestrictedData<graphqlNormalize & Partial<IOsceMarksheetMark>, 'markOsceMarksheetMark'>;
41
41
  export declare const optimisticMarkOsceMarksheetMark: (variables: IMarkOsceMarksheetMarkVar) => IMarkOsceMarksheetMarkData;
42
42
  export declare const SELECT_OSCE_STATION: import("@apollo/client").DocumentNode;
43
43
  export interface ISelectOsceMarksheetStationVar {
44
44
  osceMarksheetId: Id;
45
45
  osceStationId: Id;
46
46
  }
47
- export declare type ISelectOsceMarksheetStationData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'selectOsceMarksheetStation'>;
47
+ export type ISelectOsceMarksheetStationData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'selectOsceMarksheetStation'>;
48
48
  export declare const START_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
49
49
  export interface IStartOsceMarksheetVar {
50
50
  osceMarksheetId: Id;
51
51
  }
52
- export declare type IStartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'startOsceMarksheet'>;
52
+ export type IStartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'startOsceMarksheet'>;
53
53
  export declare const START_OSCE_TIMER: import("@apollo/client").DocumentNode;
54
54
  export interface IStartOsceTimerVar {
55
55
  osceMarksheetId: Id;
56
56
  }
57
- export declare type IStartOsceTimerData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'startOsceTimer'>;
57
+ export type IStartOsceTimerData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'startOsceTimer'>;
58
58
  export declare const PRESTART_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
59
59
  export interface IPrestartOsceMarksheetVar {
60
60
  osceMarksheetId: Id;
@@ -62,26 +62,26 @@ export interface IPrestartOsceMarksheetVar {
62
62
  stationTime: number;
63
63
  feedbackTime: number;
64
64
  }
65
- export declare type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
65
+ export type IPrestartOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'prestartOsceMarksheet'>;
66
66
  export declare const SAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
67
67
  export interface ISaveOsceMarksheetVar {
68
68
  osceMarksheetId: Id;
69
69
  globalScore?: number;
70
70
  feedback?: string;
71
71
  }
72
- export declare type ISaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'saveOsceMarksheet'>;
72
+ export type ISaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'saveOsceMarksheet'>;
73
73
  export declare const OSCE_MARKSHEET_ACTIONS: import("@apollo/client").DocumentNode;
74
74
  export interface IOsceMarksheetActionsVar {
75
75
  osceMarksheetId: Id;
76
76
  action: EOsceMarksheetAction;
77
77
  }
78
- export declare type IOsceMarksheetActionsData = RestrictedData<number, 'osceMarksheetActions'>;
78
+ export type IOsceMarksheetActionsData = RestrictedData<number, 'osceMarksheetActions'>;
79
79
  export declare const END_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
80
80
  export interface IEndOsceMarksheetVar extends ISaveOsceMarksheetVar {
81
81
  }
82
- export declare type IEndOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'endOsceMarksheet'>;
82
+ export type IEndOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'endOsceMarksheet'>;
83
83
  export declare const LEAVE_OSCE_MARKSHEET: import("@apollo/client").DocumentNode;
84
84
  export interface ILeaveOsceMarksheetVar {
85
85
  osceMarksheetId: Id;
86
86
  }
87
- export declare type ILeaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'leaveOsceMarksheet'>;
87
+ export type ILeaveOsceMarksheetData = RestrictedData<graphqlNormalize & IOsceMarksheet, 'leaveOsceMarksheet'>;
@@ -25,7 +25,7 @@ export interface IQuestionLikeVar {
25
25
  questionId: Id;
26
26
  like: EQuestionLike;
27
27
  }
28
- export declare type IQuestionLikeData = RestrictedData<graphqlNormalize & IQuestion, 'questionLike'>;
28
+ export type IQuestionLikeData = RestrictedData<graphqlNormalize & IQuestion, 'questionLike'>;
29
29
  export declare const QUESTION_COMMENTS: DocumentNode;
30
30
  export declare const updateQuestionComments: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IQuestionCommentsData>, options: ApolloUpdateOptions) => void;
31
31
  export declare const optimisticQuestionComment: (id: number, user: {
@@ -38,7 +38,7 @@ export interface IQuestionCommentsVar {
38
38
  parentId?: Id;
39
39
  comment: string;
40
40
  }
41
- export declare type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionComments'>;
41
+ export type IQuestionCommentsData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionComments'>;
42
42
  export declare const QUESTION_COMMENT_LIKE: DocumentNode;
43
43
  export declare const optimisticCommentLike: (comments: IQuestionComment[], input: IQuestionCommentsLikeVar, parentId: number | null) => IQuestionCommentsLikeData;
44
44
  export interface IQuestionCommentsLikeVar {
@@ -47,16 +47,16 @@ export interface IQuestionCommentsLikeVar {
47
47
  commentId: Id;
48
48
  like: EQuestionLike;
49
49
  }
50
- export declare type IQuestionCommentsLikeData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentLike'>;
50
+ export type IQuestionCommentsLikeData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentLike'>;
51
51
  export declare const QUESTION_COMMENT_REMOVE: DocumentNode;
52
52
  export declare const updateQuestionCommentsRemove: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IQuestionCommentRemoveData>, options: ApolloUpdateOptions) => void;
53
- export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number | undefined) => IQuestionCommentRemoveData;
53
+ export declare const optimisticQuestionCommentRemove: (comments: IQuestionComment[], input: IQuestionCommentRemoveVar, parentId?: number) => IQuestionCommentRemoveData;
54
54
  export interface IQuestionCommentRemoveVar {
55
55
  marksheetId?: Id;
56
56
  questionId: Id;
57
57
  commentId: Id;
58
58
  }
59
- export declare type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
59
+ export type IQuestionCommentRemoveData = RestrictedData<graphqlNormalize & IQuestionComment, 'questionCommentRemove'>;
60
60
  /**
61
61
  * addQuestionHighlight
62
62
  */
@@ -66,7 +66,7 @@ export interface IAddQuestionHighlightVar {
66
66
  highlights: IHighlight[];
67
67
  }[];
68
68
  }
69
- export declare type IAddQuestionHighlightData = RestrictedData<(graphqlNormalize & IQuestionHighlights)[], 'addQuestionHighlight'>;
69
+ export type IAddQuestionHighlightData = RestrictedData<(graphqlNormalize & IQuestionHighlights)[], 'addQuestionHighlight'>;
70
70
  export declare const ADD_QUESTION_HIGHLIGHT: DocumentNode;
71
71
  export declare const updateQuestionHighlights: (typeId: EQuestionType) => (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IAddQuestionHighlightData>, options: ApolloUpdateOptions) => void;
72
72
  export {};
@@ -12,7 +12,7 @@ export interface IBuildTodoInput {
12
12
  export interface IBuildTodoVar {
13
13
  buildTodo: IBuildTodoInput;
14
14
  }
15
- export declare type IBuildTodoData = RestrictedData<graphqlNormalize & ITodo, 'buildTodo'>;
15
+ export type IBuildTodoData = RestrictedData<graphqlNormalize & ITodo, 'buildTodo'>;
16
16
  export interface ITodoInput {
17
17
  todoId: number;
18
18
  markId: number;
@@ -23,7 +23,7 @@ export declare const SAVE_TODO: import("@apollo/client").DocumentNode;
23
23
  export interface ISaveTodosVar {
24
24
  todos: ITodoInput[];
25
25
  }
26
- export declare type ISaveTodosData = RestrictedData<(graphqlNormalize & ITodo)[], 'saveTodos'>;
26
+ export type ISaveTodosData = RestrictedData<(graphqlNormalize & ITodo)[], 'saveTodos'>;
27
27
  export declare const optimisticUpdatedSaveTodo: (todo: ITodo, cardIndex: number, todoInput: ITodoInput) => ISaveTodosData;
28
28
  export declare function saveTodosCache(cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<ISaveTodosData>, options: ApolloUpdateOptions): void;
29
29
  export declare const optimisticSaveTodos: (todo: ITodo, cardIndex: number, todoInput: ITodoInput) => ISaveTodosData;
@@ -31,7 +31,7 @@ export declare const ADD_TO_DAILY_STACK: import("@apollo/client").DocumentNode;
31
31
  export interface IAddToDailyStackVar {
32
32
  conceptIds: Id[];
33
33
  }
34
- export declare type IAddToDailyStackData = RestrictedData<graphqlNormalize & {
34
+ export type IAddToDailyStackData = RestrictedData<graphqlNormalize & {
35
35
  addedUserCompletedCards: (graphqlNormalize & IUserCompletedCard)[];
36
36
  dailyFeed: graphqlNormalize & ITodo;
37
37
  }, 'addToDailyStack'>;
@@ -41,12 +41,12 @@ export interface IRemoveFromDailyStackVar {
41
41
  todoId?: Id;
42
42
  conceptId?: Id;
43
43
  }
44
- export declare type IRemoveFromDailyStackData = RestrictedData<graphqlNormalize & {
44
+ export type IRemoveFromDailyStackData = RestrictedData<graphqlNormalize & {
45
45
  removedUserCompletedCards: (graphqlNormalize & IUserCompletedCard)[];
46
46
  dailyFeed: graphqlNormalize & ITodo;
47
47
  }, 'removeFromDailyStack'>;
48
48
  export declare const updateCacheOnRemoveFromDailyStack: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IRemoveFromDailyStackData>, options: ApolloUpdateOptions) => void;
49
49
  export declare const updateCacheOnAddToDailyStack: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<IAddToDailyStackData>) => void;
50
50
  export declare const REFRESH_DAILY_TASK: import("@apollo/client").DocumentNode;
51
- export declare type IRefreshDailyTaskVar = null;
52
- export declare type IRefreshDailyTaskData = RestrictedData<graphqlNormalize & ITodo, 'refreshDailyTask'>;
51
+ export type IRefreshDailyTaskVar = null;
52
+ export type IRefreshDailyTaskData = RestrictedData<graphqlNormalize & ITodo, 'refreshDailyTask'>;