@quesmed/types 1.3.13 → 1.3.17

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 (84) hide show
  1. package/gql_input_output_types/User.js +1 -2
  2. package/gql_input_output_types/index.js +1 -2
  3. package/index.js +4 -7
  4. package/models/Author.js +1 -2
  5. package/models/Book.js +1 -2
  6. package/models/Card.js +1 -2
  7. package/models/Chapter.js +1 -2
  8. package/models/Concept.js +1 -2
  9. package/models/Difficulty.js +2 -5
  10. package/models/Feedback.js +1 -2
  11. package/models/File.js +1 -2
  12. package/models/Marksheet.js +2 -5
  13. package/models/MockTest.js +1 -2
  14. package/models/OsceMarksheet.js +4 -7
  15. package/models/OsceStation.js +3 -6
  16. package/models/Picture.js +1 -2
  17. package/models/Promo.js +1 -2
  18. package/models/Question.js +8 -15
  19. package/models/Subscription.js +2 -5
  20. package/models/Todo.js +1 -2
  21. package/models/Token.js +1 -2
  22. package/models/Topic.js +2 -5
  23. package/models/Type.js +1 -2
  24. package/models/University.js +1 -2
  25. package/models/User.d.ts +1 -0
  26. package/models/User.js +1 -2
  27. package/models/Video.js +1 -2
  28. package/models/index.js +23 -35
  29. package/package.json +15 -3
  30. package/resolvers/apollo.d.ts +8 -0
  31. package/resolvers/apollo.js +1 -0
  32. package/resolvers/mutation/admin/algoliaSync.js +1 -2
  33. package/resolvers/mutation/admin/index.js +2 -14
  34. package/resolvers/mutation/admin/token.js +1 -2
  35. package/resolvers/mutation/index.js +2 -14
  36. package/resolvers/mutation/restricted/agora.js +1 -2
  37. package/resolvers/mutation/restricted/contactUs.js +1 -2
  38. package/resolvers/mutation/restricted/index.js +10 -22
  39. package/resolvers/mutation/restricted/marksheet.js +1 -2
  40. package/resolvers/mutation/restricted/mockTest.js +1 -2
  41. package/resolvers/mutation/restricted/osce.d.ts +4 -0
  42. package/resolvers/mutation/restricted/osce.js +1 -2
  43. package/resolvers/mutation/restricted/questionDiscussion.js +1 -2
  44. package/resolvers/mutation/restricted/todo.d.ts +5 -0
  45. package/resolvers/mutation/restricted/todo.js +25 -2
  46. package/resolvers/mutation/restricted/token.js +1 -2
  47. package/resolvers/mutation/restricted/users.js +1 -2
  48. package/resolvers/mutation/restricted/video.js +1 -2
  49. package/resolvers/mutation/stripe.js +1 -2
  50. package/resolvers/mutation/users.js +1 -2
  51. package/resolvers/mutation/validUserToken/index.js +1 -13
  52. package/resolvers/mutation/validUserToken/user.js +1 -2
  53. package/resolvers/offlineLink.d.ts +64 -0
  54. package/resolvers/offlineLink.js +230 -0
  55. package/resolvers/query/admin/getUserToken.js +1 -2
  56. package/resolvers/query/admin/index.js +1 -13
  57. package/resolvers/query/author.js +1 -2
  58. package/resolvers/query/book.js +1 -2
  59. package/resolvers/query/feedback.js +1 -2
  60. package/resolvers/query/index.js +9 -21
  61. package/resolvers/query/restricted/anatomy.js +1 -2
  62. package/resolvers/query/restricted/index.js +10 -22
  63. package/resolvers/query/restricted/marksheet.js +1 -2
  64. package/resolvers/query/restricted/mockTests.js +1 -2
  65. package/resolvers/query/restricted/osce.js +1 -2
  66. package/resolvers/query/restricted/quesBook.js +1 -2
  67. package/resolvers/query/restricted/todos.js +1 -2
  68. package/resolvers/query/restricted/topics.js +1 -2
  69. package/resolvers/query/restricted/university.js +1 -2
  70. package/resolvers/query/restricted/user.js +1 -2
  71. package/resolvers/query/restricted/video.js +1 -2
  72. package/resolvers/query/sampleCards.js +1 -2
  73. package/resolvers/query/sampleQuestions.js +1 -2
  74. package/resolvers/query/subscription.js +1 -2
  75. package/resolvers/query/university.js +1 -2
  76. package/resolvers/query/user.js +1 -2
  77. package/resolvers/query/video.js +1 -2
  78. package/resolvers/subscription/index.js +1 -13
  79. package/resolvers/subscription/osce.js +10 -14
  80. package/utils/commonFunctions.js +11 -17
  81. package/utils/lightgallery.d.ts +4 -2
  82. package/utils/lightgallery.js +5 -6
  83. package/utils/uuid4.js +1 -3
  84. package/utils/wordsToNumber.js +1 -5
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/index.js CHANGED
@@ -1,20 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPlatformId = exports.FCM_TOPICS = exports.ERRORS = void 0;
4
- exports.ERRORS = {
1
+ export const ERRORS = {
5
2
  TOKEN_INVALID: 'Invalid token.',
6
3
  TOKEN_MISSING: 'Missing token.',
7
4
  TOKEN_EXPIRED: 'Expired token.',
8
5
  SUBSCRIPTION_EXPIRED: 'Expired subscription.',
9
6
  PERMISSION_INVALID: 'Invalid permission.',
10
7
  };
11
- exports.FCM_TOPICS = {
8
+ export const FCM_TOPICS = {
12
9
  GLOBAL: 'global',
13
10
  QBANK: 'qbank',
14
11
  OSCE: 'osce',
15
12
  };
16
- var EPlatformId;
13
+ export var EPlatformId;
17
14
  (function (EPlatformId) {
18
15
  EPlatformId[EPlatformId["QBANK"] = 0] = "QBANK";
19
16
  EPlatformId[EPlatformId["OSCE"] = 1] = "OSCE";
20
- })(EPlatformId = exports.EPlatformId || (exports.EPlatformId = {}));
17
+ })(EPlatformId || (EPlatformId = {}));
package/models/Author.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Book.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Card.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Chapter.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Concept.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EDifficultyType = void 0;
4
- var EDifficultyType;
1
+ export var EDifficultyType;
5
2
  (function (EDifficultyType) {
6
3
  EDifficultyType[EDifficultyType["ALL"] = 0] = "ALL";
7
4
  EDifficultyType[EDifficultyType["CORE"] = 1] = "CORE";
8
5
  EDifficultyType[EDifficultyType["CHALLENGING"] = 2] = "CHALLENGING";
9
6
  EDifficultyType[EDifficultyType["DIFFICULT"] = 3] = "DIFFICULT";
10
- })(EDifficultyType = exports.EDifficultyType || (exports.EDifficultyType = {}));
7
+ })(EDifficultyType || (EDifficultyType = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/File.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EQuestionLike = void 0;
4
- var EQuestionLike;
1
+ export var EQuestionLike;
5
2
  (function (EQuestionLike) {
6
3
  EQuestionLike[EQuestionLike["NONE"] = 0] = "NONE";
7
4
  EQuestionLike[EQuestionLike["LIKE"] = 1] = "LIKE";
8
5
  EQuestionLike[EQuestionLike["DISLIKE"] = 2] = "DISLIKE";
9
- })(EQuestionLike = exports.EQuestionLike || (exports.EQuestionLike = {}));
6
+ })(EQuestionLike || (EQuestionLike = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EOsceMarksheetAction = exports.EOsceRoles = void 0;
4
- var EOsceRoles;
1
+ export var EOsceRoles;
5
2
  (function (EOsceRoles) {
6
3
  EOsceRoles[EOsceRoles["ALL"] = 0] = "ALL";
7
4
  EOsceRoles[EOsceRoles["CANDIDATE"] = 1] = "CANDIDATE";
8
5
  EOsceRoles[EOsceRoles["ACTOR"] = 2] = "ACTOR";
9
6
  EOsceRoles[EOsceRoles["EXAMINER"] = 3] = "EXAMINER";
10
7
  EOsceRoles[EOsceRoles["OBSERVER"] = 4] = "OBSERVER";
11
- })(EOsceRoles = exports.EOsceRoles || (exports.EOsceRoles = {}));
12
- var EOsceMarksheetAction;
8
+ })(EOsceRoles || (EOsceRoles = {}));
9
+ export var EOsceMarksheetAction;
13
10
  (function (EOsceMarksheetAction) {
14
11
  EOsceMarksheetAction[EOsceMarksheetAction["PRESTART"] = 0] = "PRESTART";
15
12
  EOsceMarksheetAction[EOsceMarksheetAction["START"] = 1] = "START";
@@ -20,4 +17,4 @@ var EOsceMarksheetAction;
20
17
  EOsceMarksheetAction[EOsceMarksheetAction["DISCONNECT"] = 6] = "DISCONNECT";
21
18
  EOsceMarksheetAction[EOsceMarksheetAction["SELECT"] = 7] = "SELECT";
22
19
  EOsceMarksheetAction[EOsceMarksheetAction["LEFT"] = 8] = "LEFT";
23
- })(EOsceMarksheetAction = exports.EOsceMarksheetAction || (exports.EOsceMarksheetAction = {}));
20
+ })(EOsceMarksheetAction || (EOsceMarksheetAction = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OSCE_GLOBAL_RATING = exports.EOsceType = void 0;
4
- var EOsceType;
1
+ export var EOsceType;
5
2
  (function (EOsceType) {
6
3
  EOsceType[EOsceType["ALL"] = 0] = "ALL";
7
4
  EOsceType[EOsceType["HISTORY_TAKING"] = 1] = "HISTORY_TAKING";
@@ -10,8 +7,8 @@ var EOsceType;
10
7
  EOsceType[EOsceType["PROCEDURE"] = 4] = "PROCEDURE";
11
8
  EOsceType[EOsceType["INTERPRETATION"] = 5] = "INTERPRETATION";
12
9
  EOsceType[EOsceType["ABCDE"] = 6] = "ABCDE";
13
- })(EOsceType = exports.EOsceType || (exports.EOsceType = {}));
14
- exports.OSCE_GLOBAL_RATING = {
10
+ })(EOsceType || (EOsceType = {}));
11
+ export const OSCE_GLOBAL_RATING = {
15
12
  [EOsceType.ABCDE]: `1. Fail - The candidate did not perform large parts of the scenario to the required standard
16
13
  2. Borderline - It is not clear whether the candidate demonstrated acceptable performance: either the whole task was performed slightly below passing level or there were some key errors or omissions
17
14
  3. Pass - The task was performed to an acceptable level. There may have been some minor errors or omissions.
package/models/Picture.js CHANGED
@@ -1,6 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
4
2
  ;
5
3
  ;
6
4
  ;
5
+ export {};
package/models/Promo.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isQuestionPrescribe = exports.isQuestionMultiQ = exports.isQuestionQA = exports.isQuestionSBA = exports.EQuestionType = exports.EPsaSectionType = void 0;
4
- var EPsaSectionType;
1
+ export var EPsaSectionType;
5
2
  (function (EPsaSectionType) {
6
3
  EPsaSectionType[EPsaSectionType["PRESCRIBING"] = 1] = "PRESCRIBING";
7
4
  EPsaSectionType[EPsaSectionType["PRESCRIPTION_REVIEW"] = 2] = "PRESCRIPTION_REVIEW";
@@ -11,27 +8,23 @@ var EPsaSectionType;
11
8
  EPsaSectionType[EPsaSectionType["ADVERSE_DRUG_REACTION"] = 6] = "ADVERSE_DRUG_REACTION";
12
9
  EPsaSectionType[EPsaSectionType["DRUG_MONITORING"] = 7] = "DRUG_MONITORING";
13
10
  EPsaSectionType[EPsaSectionType["DATA_INTERPRETATION"] = 8] = "DATA_INTERPRETATION";
14
- })(EPsaSectionType = exports.EPsaSectionType || (exports.EPsaSectionType = {}));
15
- var EQuestionType;
11
+ })(EPsaSectionType || (EPsaSectionType = {}));
12
+ export var EQuestionType;
16
13
  (function (EQuestionType) {
17
14
  EQuestionType[EQuestionType["SINGLE_BEST_ANSWER"] = 1] = "SINGLE_BEST_ANSWER";
18
15
  EQuestionType[EQuestionType["QUESTION_ANSWER"] = 2] = "QUESTION_ANSWER";
19
16
  EQuestionType[EQuestionType["MULTIPLE_ANSWERS"] = 3] = "MULTIPLE_ANSWERS";
20
17
  EQuestionType[EQuestionType["PRESCRIPTION_ANSWER"] = 4] = "PRESCRIPTION_ANSWER";
21
- })(EQuestionType = exports.EQuestionType || (exports.EQuestionType = {}));
22
- function isQuestionSBA(data) {
18
+ })(EQuestionType || (EQuestionType = {}));
19
+ export function isQuestionSBA(data) {
23
20
  return data.typeId === EQuestionType.SINGLE_BEST_ANSWER;
24
21
  }
25
- exports.isQuestionSBA = isQuestionSBA;
26
- function isQuestionQA(data) {
22
+ export function isQuestionQA(data) {
27
23
  return data.typeId === EQuestionType.QUESTION_ANSWER;
28
24
  }
29
- exports.isQuestionQA = isQuestionQA;
30
- function isQuestionMultiQ(data) {
25
+ export function isQuestionMultiQ(data) {
31
26
  return data.typeId === EQuestionType.MULTIPLE_ANSWERS;
32
27
  }
33
- exports.isQuestionMultiQ = isQuestionMultiQ;
34
- function isQuestionPrescribe(data) {
28
+ export function isQuestionPrescribe(data) {
35
29
  return data.typeId === EQuestionType.PRESCRIPTION_ANSWER;
36
30
  }
37
- exports.isQuestionPrescribe = isQuestionPrescribe;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESubscriptionType = void 0;
4
- var ESubscriptionType;
1
+ export var ESubscriptionType;
5
2
  (function (ESubscriptionType) {
6
3
  ESubscriptionType[ESubscriptionType["QBANK"] = 1] = "QBANK";
7
4
  ESubscriptionType[ESubscriptionType["OSCE"] = 2] = "OSCE";
8
5
  ESubscriptionType[ESubscriptionType["BUNDLE"] = 3] = "BUNDLE";
9
- })(ESubscriptionType = exports.ESubscriptionType || (exports.ESubscriptionType = {}));
6
+ })(ESubscriptionType || (ESubscriptionType = {}));
package/models/Todo.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Token.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Topic.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETopicType = void 0;
4
- var ETopicType;
1
+ export var ETopicType;
5
2
  (function (ETopicType) {
6
3
  ETopicType[ETopicType["ALL"] = 0] = "ALL";
7
4
  ETopicType[ETopicType["BASIC_SCIENCE"] = 1] = "BASIC_SCIENCE";
@@ -10,4 +7,4 @@ var ETopicType;
10
7
  ETopicType[ETopicType["DATA_INTERPRETATION"] = 4] = "DATA_INTERPRETATION";
11
8
  ETopicType[ETopicType["PSA"] = 5] = "PSA";
12
9
  ETopicType[ETopicType["OSCE"] = 6] = "OSCE";
13
- })(ETopicType = exports.ETopicType || (exports.ETopicType = {}));
10
+ })(ETopicType || (ETopicType = {}));
package/models/Type.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/User.d.ts CHANGED
@@ -65,6 +65,7 @@ export interface IUserCompletedCards {
65
65
  lastSeen: Date | string;
66
66
  score: number;
67
67
  iteration: number;
68
+ optimalFactor: number;
68
69
  }
69
70
  export interface IUserFlaggedQuestions {
70
71
  id: Id;
package/models/User.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/Video.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
package/models/index.js CHANGED
@@ -1,35 +1,23 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./Author"), exports);
14
- __exportStar(require("./Book"), exports);
15
- __exportStar(require("./Card"), exports);
16
- __exportStar(require("./Chapter"), exports);
17
- __exportStar(require("./Concept"), exports);
18
- __exportStar(require("./Difficulty"), exports);
19
- __exportStar(require("./Feedback"), exports);
20
- __exportStar(require("./File"), exports);
21
- __exportStar(require("./Marksheet"), exports);
22
- __exportStar(require("./MockTest"), exports);
23
- __exportStar(require("./OsceMarksheet"), exports);
24
- __exportStar(require("./OsceStation"), exports);
25
- __exportStar(require("./Picture"), exports);
26
- __exportStar(require("./Promo"), exports);
27
- __exportStar(require("./Question"), exports);
28
- __exportStar(require("./Subscription"), exports);
29
- __exportStar(require("./Todo"), exports);
30
- __exportStar(require("./Token"), exports);
31
- __exportStar(require("./Topic"), exports);
32
- __exportStar(require("./Type"), exports);
33
- __exportStar(require("./University"), exports);
34
- __exportStar(require("./User"), exports);
35
- __exportStar(require("./Video"), exports);
1
+ export * from './Author';
2
+ export * from './Book';
3
+ export * from './Card';
4
+ export * from './Chapter';
5
+ export * from './Concept';
6
+ export * from './Difficulty';
7
+ export * from './Feedback';
8
+ export * from './File';
9
+ export * from './Marksheet';
10
+ export * from './MockTest';
11
+ export * from './OsceMarksheet';
12
+ export * from './OsceStation';
13
+ export * from './Picture';
14
+ export * from './Promo';
15
+ export * from './Question';
16
+ export * from './Subscription';
17
+ export * from './Todo';
18
+ export * from './Token';
19
+ export * from './Topic';
20
+ export * from './Type';
21
+ export * from './University';
22
+ export * from './User';
23
+ export * from './Video';
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.3.13",
3
+ "version": "1.3.17",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
- "types": "dist/index.d.ts",
6
+ "types": "index.d.ts",
7
+ "type": "module",
7
8
  "scripts": {},
8
9
  "repository": {
9
10
  "type": "git",
@@ -21,5 +22,16 @@
21
22
  },
22
23
  "homepage": "https://github.com/Quesmed/quesmed_types#readme",
23
24
  "devDependencies": {},
24
- "packageManager": "yarn@3.1.1"
25
+ "packageManager": "yarn@3.1.1",
26
+ "dependencies": {
27
+ "@apollo/client": "^3.5.7",
28
+ "@react-native-async-storage/async-storage": "^1.15.16",
29
+ "@types/react-native": "^0.66.15",
30
+ "localforage": "^1.10.0",
31
+ "react-native": "^0.67.1",
32
+ "react-native-expo-image-cache": "^4.1.0"
33
+ },
34
+ "peerDependencies": {
35
+ "graphql": "^16"
36
+ }
25
37
  }
@@ -0,0 +1,8 @@
1
+ import { DefaultContext, FetchResult } from '@apollo/client';
2
+ export declare type ApolloUpdateResultRestricted<T> = Omit<FetchResult<{
3
+ restricted: T;
4
+ }>, 'context'>;
5
+ export interface ApolloUpdateOptions {
6
+ context?: DefaultContext;
7
+ variables?: Record<string, any>;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,14 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./algoliaSync"), exports);
14
- __exportStar(require("./token"), exports);
1
+ export * from './algoliaSync';
2
+ export * from './token';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,14 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./stripe"), exports);
14
- __exportStar(require("./users"), exports);
1
+ export * from './stripe';
2
+ export * from './users';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,22 +1,10 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./agora"), exports);
14
- __exportStar(require("./contactUs"), exports);
15
- __exportStar(require("./marksheet"), exports);
16
- __exportStar(require("./mockTest"), exports);
17
- __exportStar(require("./osce"), exports);
18
- __exportStar(require("./questionDiscussion"), exports);
19
- __exportStar(require("./todo"), exports);
20
- __exportStar(require("./token"), exports);
21
- __exportStar(require("./users"), exports);
22
- __exportStar(require("./video"), exports);
1
+ export * from './agora';
2
+ export * from './contactUs';
3
+ export * from './marksheet';
4
+ export * from './mockTest';
5
+ export * from './osce';
6
+ export * from './questionDiscussion';
7
+ export * from './todo';
8
+ export * from './token';
9
+ export * from './users';
10
+ export * from './video';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { EOsceMarksheetAction, EOsceRoles, Id, IOsceMarksheet, IOsceMarksheetMark } from '../../../models';
2
+ import { IOsceMatchmakingAction } from '../../subscription/osce';
2
3
  export interface IStartOsceMatchmakingVar {
3
4
  agoraId: string;
4
5
  }
@@ -7,6 +8,9 @@ export interface IAcceptOsceMatchmakingVar {
7
8
  agoraId: string;
8
9
  }
9
10
  export declare type IAcceptOsceMatchmakingData = boolean;
11
+ export declare type ICheckOsceMatchmakingVar = null;
12
+ export interface ICheckOsceMatchmakingData extends IOsceMatchmakingAction {
13
+ }
10
14
  export interface ICancelOsceMatchmakingVar {
11
15
  agoraId: string;
12
16
  }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,4 +1,6 @@
1
+ import { ApolloCache } from '@apollo/client';
1
2
  import { Id, ITodo } from '../../../models';
3
+ import { ApolloUpdateOptions, ApolloUpdateResultRestricted } from '../../apollo';
2
4
  export interface IBuildTodoInput {
3
5
  unseen: number;
4
6
  seen: number;
@@ -27,6 +29,9 @@ export interface ISaveTodosVar {
27
29
  todos: ITodoInput[];
28
30
  }
29
31
  export declare type ISaveTodosData = number[];
32
+ export declare function saveTodosCache(cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<{
33
+ saveTodos: ISaveTodosData;
34
+ }>, options: ApolloUpdateOptions): void;
30
35
  export interface IAddToDailyStackVar {
31
36
  concepts: number[];
32
37
  }
@@ -1,2 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ import { gql } from '@apollo/client';
2
+ export function saveTodosCache(cache, result, options) {
3
+ var _a;
4
+ const todoMarkIds = (_a = result.data) === null || _a === void 0 ? void 0 : _a.restricted.saveTodos;
5
+ if (!options.variables || !todoMarkIds) {
6
+ return;
7
+ }
8
+ for (let i = 0; i < todoMarkIds.length; i++) {
9
+ const todoMark = options.variables.todos[i];
10
+ const todoMarkId = todoMarkIds[i];
11
+ cache.writeFragment({
12
+ id: cache.identify({ id: todoMarkId, __typename: 'TodoMark' }),
13
+ data: {
14
+ score: todoMark.score,
15
+ timeTaken: todoMark.timeTaken || 0,
16
+ },
17
+ fragment: gql `
18
+ fragment NewTodoMark on TodoMark {
19
+ score
20
+ timeTaken
21
+ }
22
+ `,
23
+ });
24
+ }
25
+ }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,13 +1 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./user"), exports);
1
+ export * from './user';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};