@quesmed/types 1.3.15 → 1.3.16

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 (80) 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.js +1 -2
  26. package/models/Video.js +1 -2
  27. package/models/index.js +23 -35
  28. package/package.json +14 -4
  29. package/resolvers/apollo.d.ts +8 -0
  30. package/resolvers/apollo.js +1 -0
  31. package/resolvers/mutation/admin/algoliaSync.js +1 -2
  32. package/resolvers/mutation/admin/index.js +2 -14
  33. package/resolvers/mutation/admin/token.js +1 -2
  34. package/resolvers/mutation/index.js +2 -14
  35. package/resolvers/mutation/restricted/agora.js +1 -2
  36. package/resolvers/mutation/restricted/contactUs.js +1 -2
  37. package/resolvers/mutation/restricted/index.js +10 -22
  38. package/resolvers/mutation/restricted/marksheet.js +1 -2
  39. package/resolvers/mutation/restricted/mockTest.js +1 -2
  40. package/resolvers/mutation/restricted/osce.js +1 -2
  41. package/resolvers/mutation/restricted/questionDiscussion.js +1 -2
  42. package/resolvers/mutation/restricted/todo.d.ts +5 -0
  43. package/resolvers/mutation/restricted/todo.js +36 -2
  44. package/resolvers/mutation/restricted/token.js +1 -2
  45. package/resolvers/mutation/restricted/users.js +1 -2
  46. package/resolvers/mutation/restricted/video.js +1 -2
  47. package/resolvers/mutation/stripe.js +1 -2
  48. package/resolvers/mutation/users.js +1 -2
  49. package/resolvers/mutation/validUserToken/index.js +1 -13
  50. package/resolvers/mutation/validUserToken/user.js +1 -2
  51. package/resolvers/query/admin/getUserToken.js +1 -2
  52. package/resolvers/query/admin/index.js +1 -13
  53. package/resolvers/query/author.js +1 -2
  54. package/resolvers/query/book.js +1 -2
  55. package/resolvers/query/feedback.js +1 -2
  56. package/resolvers/query/index.js +9 -21
  57. package/resolvers/query/restricted/anatomy.js +1 -2
  58. package/resolvers/query/restricted/index.js +10 -22
  59. package/resolvers/query/restricted/marksheet.js +1 -2
  60. package/resolvers/query/restricted/mockTests.js +1 -2
  61. package/resolvers/query/restricted/osce.js +1 -2
  62. package/resolvers/query/restricted/quesBook.js +1 -2
  63. package/resolvers/query/restricted/todos.js +1 -2
  64. package/resolvers/query/restricted/topics.js +1 -2
  65. package/resolvers/query/restricted/university.js +1 -2
  66. package/resolvers/query/restricted/user.js +1 -2
  67. package/resolvers/query/restricted/video.js +1 -2
  68. package/resolvers/query/sampleCards.js +1 -2
  69. package/resolvers/query/sampleQuestions.js +1 -2
  70. package/resolvers/query/subscription.js +1 -2
  71. package/resolvers/query/university.js +1 -2
  72. package/resolvers/query/user.js +1 -2
  73. package/resolvers/query/video.js +1 -2
  74. package/resolvers/subscription/index.js +1 -13
  75. package/resolvers/subscription/osce.js +10 -14
  76. package/utils/commonFunctions.js +11 -17
  77. package/utils/lightgallery.d.ts +4 -2
  78. package/utils/lightgallery.js +1 -5
  79. package/utils/uuid4.js +1 -3
  80. 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.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.15",
3
+ "version": "1.3.16",
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,14 @@
21
22
  },
22
23
  "homepage": "https://github.com/Quesmed/quesmed_types#readme",
23
24
  "devDependencies": {},
24
- "packageManager": "yarn@3.1.1"
25
- }
25
+ "packageManager": "yarn@3.1.1",
26
+ "dependencies": {
27
+ "@types/react-native": "^0.66.15",
28
+ "react-native": "^0.67.1",
29
+ "react-native-expo-image-cache": "^4.1.0"
30
+ },
31
+ "peerDependencies": {
32
+ "@apollo/client": "^3.5",
33
+ "graphql": "^16"
34
+ }
35
+ }
@@ -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,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,36 @@
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
+ if (!options.variables) {
5
+ throw new Error('No variables passed to mutation');
6
+ }
7
+ const todoMarkIds = (_a = result.data) === null || _a === void 0 ? void 0 : _a.restricted.saveTodos;
8
+ if (!todoMarkIds) {
9
+ throw new Error('No response data');
10
+ }
11
+ for (let i = 0; i < todoMarkIds.length; i++) {
12
+ const todoMark = options.variables.todos[i];
13
+ const todoMarkId = todoMarkIds[i];
14
+ cache.modify({
15
+ id: cache.identify({ id: todoMark.todoId, __typename: 'Todo' }),
16
+ fields: {
17
+ marks(existingMarkRefs = []) {
18
+ cache.writeFragment({
19
+ id: cache.identify({ id: todoMarkId, __typename: 'TodoMark' }),
20
+ data: {
21
+ score: todoMark.score,
22
+ timeTaken: todoMark.timeTaken || 0,
23
+ },
24
+ fragment: gql `
25
+ fragment NewTodoMark on TodoMark {
26
+ score
27
+ timeTaken
28
+ }
29
+ `,
30
+ });
31
+ return existingMarkRefs;
32
+ },
33
+ },
34
+ });
35
+ }
36
+ }
@@ -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 {};
@@ -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("./getUserToken"), exports);
1
+ export * from './getUserToken';
@@ -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,21 +1,9 @@
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("./feedback"), exports);
16
- __exportStar(require("./sampleCards"), exports);
17
- __exportStar(require("./sampleQuestions"), exports);
18
- __exportStar(require("./subscription"), exports);
19
- __exportStar(require("./university"), exports);
20
- __exportStar(require("./user"), exports);
21
- __exportStar(require("./video"), exports);
1
+ export * from './author';
2
+ export * from './book';
3
+ export * from './feedback';
4
+ export * from './sampleCards';
5
+ export * from './sampleQuestions';
6
+ export * from './subscription';
7
+ export * from './university';
8
+ export * from './user';
9
+ export * from './video';
@@ -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("./anatomy"), exports);
14
- __exportStar(require("./marksheet"), exports);
15
- __exportStar(require("./mockTests"), exports);
16
- __exportStar(require("./osce"), exports);
17
- __exportStar(require("./quesBook"), exports);
18
- __exportStar(require("./todos"), exports);
19
- __exportStar(require("./topics"), exports);
20
- __exportStar(require("./university"), exports);
21
- __exportStar(require("./user"), exports);
22
- __exportStar(require("./video"), exports);
1
+ export * from './anatomy';
2
+ export * from './marksheet';
3
+ export * from './mockTests';
4
+ export * from './osce';
5
+ export * from './quesBook';
6
+ export * from './todos';
7
+ export * from './topics';
8
+ export * from './university';
9
+ export * from './user';
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,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,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,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("./osce"), exports);
1
+ export * from './osce';
@@ -1,19 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OsceGroupInit = exports.OSCE_MATCHMAKING_USERS = exports.OSCE_MATCHMAKING = exports.OSCE_MARKSHEET_ACTION = exports.ROLE_CHANGED = void 0;
4
- const models_1 = require("../../models");
5
- exports.ROLE_CHANGED = 'ROLE_CHANGED';
6
- exports.OSCE_MARKSHEET_ACTION = 'OSCE_MARKSHEET_ACTION';
7
- exports.OSCE_MATCHMAKING = 'OSCE_MATCHMAKING';
8
- exports.OSCE_MATCHMAKING_USERS = 'OSCE_MATCHMAKING_USERS';
9
- const OsceGroupInit = (osceMarksheetId) => [
1
+ import { EOsceRoles, } from '../../models';
2
+ export const ROLE_CHANGED = 'ROLE_CHANGED';
3
+ export const OSCE_MARKSHEET_ACTION = 'OSCE_MARKSHEET_ACTION';
4
+ export const OSCE_MATCHMAKING = 'OSCE_MATCHMAKING';
5
+ export const OSCE_MATCHMAKING_USERS = 'OSCE_MATCHMAKING_USERS';
6
+ export const OsceGroupInit = (osceMarksheetId) => [
10
7
  {
11
8
  id: null,
12
9
  createdAt: null,
13
10
  osceMarksheetId,
14
11
  userId: null,
15
12
  user: null,
16
- role: models_1.EOsceRoles.CANDIDATE,
13
+ role: EOsceRoles.CANDIDATE,
17
14
  },
18
15
  {
19
16
  id: null,
@@ -21,7 +18,7 @@ const OsceGroupInit = (osceMarksheetId) => [
21
18
  osceMarksheetId,
22
19
  userId: null,
23
20
  user: null,
24
- role: models_1.EOsceRoles.EXAMINER,
21
+ role: EOsceRoles.EXAMINER,
25
22
  },
26
23
  {
27
24
  id: null,
@@ -29,7 +26,7 @@ const OsceGroupInit = (osceMarksheetId) => [
29
26
  osceMarksheetId,
30
27
  userId: null,
31
28
  user: null,
32
- role: models_1.EOsceRoles.ACTOR,
29
+ role: EOsceRoles.ACTOR,
33
30
  },
34
31
  {
35
32
  id: null,
@@ -37,7 +34,6 @@ const OsceGroupInit = (osceMarksheetId) => [
37
34
  osceMarksheetId,
38
35
  userId: null,
39
36
  user: null,
40
- role: models_1.EOsceRoles.OBSERVER,
37
+ role: EOsceRoles.OBSERVER,
41
38
  },
42
39
  ];
43
- exports.OsceGroupInit = OsceGroupInit;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.correctMark = exports.formatPrescribeAnswer = exports.mapPrescribeMarkToAnswer = void 0;
4
- const models_1 = require("../models");
5
- const wordsToNumber_1 = require("./wordsToNumber");
1
+ import { EQuestionType, } from '../models';
2
+ import { wordsToNumber } from './wordsToNumber';
6
3
  const floatRegex = /([0-9]*[.])?[0-9]+/gm;
7
4
  const ACCEPTED_FREQ = ['stat', 'od', 'bd', 'tds', 'qds'];
8
- function mapPrescribeMarkToAnswer(obj) {
5
+ export function mapPrescribeMarkToAnswer(obj) {
9
6
  return {
10
7
  drug: {
11
8
  value: obj.drug,
@@ -33,8 +30,7 @@ function mapPrescribeMarkToAnswer(obj) {
33
30
  },
34
31
  };
35
32
  }
36
- exports.mapPrescribeMarkToAnswer = mapPrescribeMarkToAnswer;
37
- function formatPrescribeAnswer(obj) {
33
+ export function formatPrescribeAnswer(obj) {
38
34
  obj.drug.value = obj.drug.value.toLowerCase().replace(/\s/g, '');
39
35
  obj.route.value = obj.route.value.toLowerCase().replace(/\s/g, '');
40
36
  if (obj.route.value === 'oral') {
@@ -79,7 +75,7 @@ function formatPrescribeAnswer(obj) {
79
75
  }
80
76
  m.forEach((match) => durationMatches.add(match));
81
77
  }
82
- const durationWords = (0, wordsToNumber_1.wordsToNumber)(obj.duration.value, false);
78
+ const durationWords = wordsToNumber(obj.duration.value, false);
83
79
  if (durationWords !== 0) {
84
80
  durationMatches.add(durationWords.toString());
85
81
  }
@@ -108,13 +104,12 @@ function formatPrescribeAnswer(obj) {
108
104
  obj.frequency.value = 'qds';
109
105
  }
110
106
  else if (!ACCEPTED_FREQ.includes(obj.frequency.value)) {
111
- obj.frequency.value = (0, wordsToNumber_1.wordsToNumber)(orgFrequencyValue, true).toString();
107
+ obj.frequency.value = wordsToNumber(orgFrequencyValue, true).toString();
112
108
  }
113
109
  return obj;
114
110
  }
115
- exports.formatPrescribeAnswer = formatPrescribeAnswer;
116
111
  const answerRegex = /answer/gi;
117
- function correctMark(mark) {
112
+ export function correctMark(mark) {
118
113
  const data = {
119
114
  correct: false,
120
115
  incorrect: false,
@@ -129,7 +124,7 @@ function correctMark(mark) {
129
124
  const answer = mark.question[answerKey];
130
125
  const flatAnswer = answer[0];
131
126
  const flatAttempt = mark.mark[0];
132
- if (models_1.EQuestionType.SINGLE_BEST_ANSWER === mark.question.typeId) {
127
+ if (EQuestionType.SINGLE_BEST_ANSWER === mark.question.typeId) {
133
128
  const answer = flatAnswer;
134
129
  const attempt = flatAttempt;
135
130
  if (answer === attempt) {
@@ -139,7 +134,7 @@ function correctMark(mark) {
139
134
  data.incorrect = true;
140
135
  }
141
136
  }
142
- else if (models_1.EQuestionType.QUESTION_ANSWER === mark.question.typeId) {
137
+ else if (EQuestionType.QUESTION_ANSWER === mark.question.typeId) {
143
138
  const answer = flatAnswer.dose.toLowerCase().replace(/\s/g, '');
144
139
  let attempt = '';
145
140
  if (flatAttempt) {
@@ -152,7 +147,7 @@ function correctMark(mark) {
152
147
  data.incorrect = true;
153
148
  }
154
149
  }
155
- else if (models_1.EQuestionType.MULTIPLE_ANSWERS === mark.question.typeId) {
150
+ else if (EQuestionType.MULTIPLE_ANSWERS === mark.question.typeId) {
156
151
  const [answerA, answerB] = answer.map((x) => x.sort());
157
152
  let [attemptA, attemptB] = [[], []];
158
153
  if (Array.isArray(mark.mark) &&
@@ -172,7 +167,7 @@ function correctMark(mark) {
172
167
  data.incorrect = true;
173
168
  }
174
169
  }
175
- else if (models_1.EQuestionType.PRESCRIPTION_ANSWER === mark.question.typeId) {
170
+ else if (EQuestionType.PRESCRIPTION_ANSWER === mark.question.typeId) {
176
171
  const answers = answer.map(formatPrescribeAnswer);
177
172
  let attempt = formatPrescribeAnswer(mapPrescribeMarkToAnswer({
178
173
  drug: '',
@@ -220,4 +215,3 @@ function correctMark(mark) {
220
215
  }
221
216
  return data;
222
217
  }
223
- exports.correctMark = correctMark;
@@ -1,7 +1,9 @@
1
+ import { Platform } from 'react-native';
2
+ import { CacheManager } from 'react-native-expo-image-cache';
1
3
  import { IOsceMarksheet, IOsceStation } from '../models';
2
4
  export interface ILightGalleryCache {
3
- CacheManager: any;
4
- Platform: any;
5
+ CacheManager: typeof CacheManager;
6
+ Platform: typeof Platform;
5
7
  }
6
8
  export declare function lightgalleryOsceResolve(data: IOsceStation, cache?: ILightGalleryCache): Promise<IOsceStation>;
7
9
  export declare function lightgalleryOsceResolve(data: IOsceMarksheet, cache?: ILightGalleryCache): Promise<IOsceMarksheet>;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -8,13 +7,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
8
  });
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.lightgalleryOsceResolve = void 0;
13
10
  const lightgalleryRegex = /\[lightgallery\]/;
14
11
  function isOsceMarksheet(data) {
15
12
  return 'osceStationId' in data;
16
13
  }
17
- function lightgalleryOsceResolve(data, cache) {
14
+ export function lightgalleryOsceResolve(data, cache) {
18
15
  return __awaiter(this, void 0, void 0, function* () {
19
16
  let station;
20
17
  if (isOsceMarksheet(data)) {
@@ -52,7 +49,6 @@ function lightgalleryOsceResolve(data, cache) {
52
49
  }
53
50
  });
54
51
  }
55
- exports.lightgalleryOsceResolve = lightgalleryOsceResolve;
56
52
  const lightgalleryMutation = (text, pictures, cache) => __awaiter(void 0, void 0, void 0, function* () {
57
53
  var _a;
58
54
  if (pictures.length === 0) {
package/utils/uuid4.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  class Uuid4 {
4
2
  /**
5
3
  * Generate a custom base 64 encoded UUID v4 (random).
@@ -284,4 +282,4 @@ Uuid4._base64 = {
284
282
  '111110': '-',
285
283
  '111111': '_',
286
284
  };
287
- exports.default = Uuid4;
285
+ export default Uuid4;
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wordsToNumber = void 0;
4
1
  const Small = {
5
2
  zero: 0,
6
3
  one: 1,
@@ -31,7 +28,7 @@ const Small = {
31
28
  eighty: 80,
32
29
  ninety: 90,
33
30
  };
34
- function wordsToNumber(s, checkForDigits = false) {
31
+ export function wordsToNumber(s, checkForDigits = false) {
35
32
  const words = s.toString().split(/[\s-]+/);
36
33
  let total = 0;
37
34
  words.forEach((word) => {
@@ -45,4 +42,3 @@ function wordsToNumber(s, checkForDigits = false) {
45
42
  });
46
43
  return total;
47
44
  }
48
- exports.wordsToNumber = wordsToNumber;