ei-dev-shared 1.0.2 → 1.0.4

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 (40) hide show
  1. package/dist/Blimey/Chapter.type.d.ts +30 -0
  2. package/dist/Blimey/Chapter.type.d.ts.map +1 -0
  3. package/dist/Blimey/Chapter.type.js +1 -0
  4. package/dist/Blimey/Course.type.d.ts +22 -0
  5. package/dist/Blimey/Course.type.d.ts.map +1 -0
  6. package/dist/Blimey/Course.type.js +5 -0
  7. package/dist/Blimey/Exercise.type.d.ts +111 -0
  8. package/dist/Blimey/Exercise.type.d.ts.map +1 -0
  9. package/dist/Blimey/Exercise.type.js +1 -0
  10. package/dist/Blimey/Module.type.d.ts +19 -0
  11. package/dist/Blimey/Module.type.d.ts.map +1 -0
  12. package/dist/Blimey/Module.type.js +1 -0
  13. package/dist/Blimey/UserProgress.type.d.ts +86 -0
  14. package/dist/Blimey/UserProgress.type.d.ts.map +1 -0
  15. package/dist/Blimey/UserProgress.type.js +11 -0
  16. package/dist/Blimey/actionKeyMap.d.ts +240 -0
  17. package/dist/Blimey/actionKeyMap.d.ts.map +1 -0
  18. package/dist/Blimey/actionKeyMap.js +237 -0
  19. package/dist/cjs/Blimey/Chapter.type.js +2 -0
  20. package/dist/cjs/Blimey/Course.type.js +8 -0
  21. package/dist/cjs/Blimey/Exercise.type.js +2 -0
  22. package/dist/cjs/Blimey/Module.type.js +2 -0
  23. package/dist/cjs/Blimey/UserProgress.type.js +14 -0
  24. package/dist/cjs/Blimey/actionKeyMap.js +240 -0
  25. package/dist/cjs/nats/nats.patterns.js +3 -0
  26. package/dist/cjs/user/User.keys.js +2 -0
  27. package/dist/index.cjs +6 -0
  28. package/dist/index.d.ts +6 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +6 -0
  31. package/dist/nats/nats.patterns.d.ts +3 -0
  32. package/dist/nats/nats.patterns.d.ts.map +1 -1
  33. package/dist/nats/nats.patterns.js +3 -0
  34. package/dist/user/User.keys.d.ts.map +1 -1
  35. package/dist/user/User.keys.js +2 -0
  36. package/dist/user/User.type.d.ts +2 -2
  37. package/dist/user/User.type.d.ts.map +1 -1
  38. package/dist/user/UserSession.type.d.ts +3 -0
  39. package/dist/user/UserSession.type.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { AcceptableDataTypes } from "./UserProgress.type";
2
+ export type ChapterType = {
3
+ id: string;
4
+ title: string;
5
+ description: string;
6
+ content?: {
7
+ videos?: ChapterVideo[];
8
+ texts?: ChapterText[];
9
+ };
10
+ thumbnailUrl?: string;
11
+ exerciseIds: string[];
12
+ data?: {
13
+ template?: string;
14
+ showScoreAtEnd?: boolean;
15
+ scorePageTemplate?: string;
16
+ };
17
+ custom?: {
18
+ [key: string]: AcceptableDataTypes;
19
+ };
20
+ };
21
+ export type ChapterText = {
22
+ sectionTitle: string;
23
+ content: string[];
24
+ };
25
+ export type ChapterVideo = {
26
+ url: string;
27
+ thumbnail?: string;
28
+ title?: string;
29
+ };
30
+ //# sourceMappingURL=Chapter.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chapter.type.d.ts","sourceRoot":"","sources":["../../src/Blimey/Chapter.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;QACvB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAA;KACtB,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B,CAAA;IACD,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KACnC,CAAA;CACF,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { AcceptableDataTypes } from "./UserProgress.type";
2
+ export declare enum CourseList {
3
+ spellingTool = "spellingTool",
4
+ excel = "excel"
5
+ }
6
+ export type CourseType = {
7
+ id: CourseList;
8
+ title: string;
9
+ description: string;
10
+ moduleIds: string[];
11
+ thumbnailUrl?: string;
12
+ data?: {
13
+ template?: string;
14
+ hideCompleteBtn?: boolean;
15
+ showScoreAtEnd?: boolean;
16
+ scorePageTemplate?: string;
17
+ };
18
+ custom?: {
19
+ [key in CourseList]?: Record<string, AcceptableDataTypes>;
20
+ };
21
+ };
22
+ //# sourceMappingURL=Course.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Course.type.d.ts","sourceRoot":"","sources":["../../src/Blimey/Course.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,oBAAY,UAAU;IACpB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,UAAU,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,eAAe,CAAC,EAAE,OAAO,CAAA;QACzB,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B,CAAA;IACD,MAAM,CAAC,EAAE;SACN,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC;KAC1D,CAAA;CACF,CAAA"}
@@ -0,0 +1,5 @@
1
+ export var CourseList;
2
+ (function (CourseList) {
3
+ CourseList["spellingTool"] = "spellingTool";
4
+ CourseList["excel"] = "excel";
5
+ })(CourseList || (CourseList = {}));
@@ -0,0 +1,111 @@
1
+ import { AllowedKeysForActionMap, AllowedKeysForApplicationMapBrowser, AllowedKeysForApplicationMapExcel, AllowedKeysForApplicationMapWord, PressKeyAction, TypingAction } from "./actionKeyMap";
2
+ import { AcceptableDataTypes } from "./UserProgress.type";
3
+ export type STWordType = {
4
+ id: string;
5
+ word: string;
6
+ complexity_score: number;
7
+ module_id: string;
8
+ };
9
+ export type ExerciseType = {
10
+ id: string;
11
+ question: string;
12
+ description?: string;
13
+ data: {
14
+ score: number;
15
+ template: ExerciseTemplateTypes;
16
+ templateData: MCQSingleExerciseTemplateData | MCQMultipleExerciseTemplateData | TextAnswerExerciseTemplateData | FillInTheBlankExerciseTemplateData | STFillInTheBlankExerciseTemplateData | FillInTheBlankExerciseTemplateDataMissing | STDropdownExerciseTemplateData | STMCQSingleExerciseTemplateData | STSentenceTypingExerciseTemplateData | STSelfEvaluationResultTemplateData | DragAndDropExerciseTemplateData | SystemActionExerciseTemplateData;
17
+ systemPreSteps?: PreparatoryStep[];
18
+ userPreSteps?: Omit<SystemActionExerciseTemplateData, "correct">[];
19
+ words?: STWordType[];
20
+ custom?: {
21
+ [key: string]: AcceptableDataTypes;
22
+ };
23
+ };
24
+ };
25
+ export type ExerciseTemplateTypes = "mcq-single" | "mcq-multiple" | "text-answer" | "fill-in-the-blank" | "st-fill-in-the-blank" | "fill-in-the-blank-missing" | "st-mcq-single" | "st-sentence-typing" | "st-dropdown" | "st-self-evaluation-result" | "drag-and-drop" | "system-action";
26
+ export type MCQSingleExerciseTemplateData = {
27
+ type: "mcq-single";
28
+ options: {
29
+ id: string;
30
+ text: string;
31
+ }[];
32
+ correct: string;
33
+ };
34
+ export type MCQMultipleExerciseTemplateData = {
35
+ type: "mcq-multiple";
36
+ options: {
37
+ id: string;
38
+ text: string;
39
+ }[];
40
+ matchAll?: boolean;
41
+ correct: string[];
42
+ };
43
+ export type TextAnswerExerciseTemplateData = {
44
+ type: "text-answer";
45
+ correct: string;
46
+ };
47
+ export type FillInTheBlankExerciseTemplateData = {
48
+ wordsToBlank?: string[];
49
+ type: "fill-in-the-blank";
50
+ correct: string[];
51
+ };
52
+ export type STFillInTheBlankExerciseTemplateData = {
53
+ wordsToBlank?: string[];
54
+ type: "st-fill-in-the-blank";
55
+ correct: string[];
56
+ };
57
+ export type STMCQSingleExerciseTemplateData = {
58
+ type: "st-mcq-single";
59
+ correct: string[];
60
+ incorrect: string[];
61
+ };
62
+ export type STSentenceTypingExerciseTemplateData = {
63
+ type: "st-sentence-typing";
64
+ correct: string;
65
+ };
66
+ export type STDropdownExerciseTemplateData = {
67
+ type: "st-dropdown";
68
+ items: {
69
+ word: string;
70
+ definition: string;
71
+ }[];
72
+ correct: string[];
73
+ };
74
+ export type FillInTheBlankExerciseTemplateDataMissing = {
75
+ wordsToBlank?: string[];
76
+ type: "fill-in-the-blank-missing";
77
+ correct: string[];
78
+ showVowels: boolean;
79
+ };
80
+ export type STSelfEvaluationResultTemplateData = {
81
+ type: "st-self-evaluation-result";
82
+ data?: {
83
+ [key: string]: AcceptableDataTypes;
84
+ };
85
+ correct: string[];
86
+ };
87
+ export type DragAndDropExerciseTemplateData = {
88
+ type: "drag-and-drop";
89
+ columns: {
90
+ id: string;
91
+ text: string[];
92
+ }[];
93
+ correct: {
94
+ [key: string]: string;
95
+ }[];
96
+ };
97
+ export type SystemActionExerciseTemplateData = {
98
+ type: "system-action";
99
+ steps: (AllowedKeysForActionMap | AllowedKeysForApplicationMapBrowser | AllowedKeysForApplicationMapExcel | AllowedKeysForApplicationMapWord | TypingAction | PressKeyAction)[];
100
+ correct: {
101
+ validationFn: string;
102
+ validationArgs: string[];
103
+ };
104
+ };
105
+ export type PreparatoryStep = {
106
+ action: {
107
+ fn: string;
108
+ fnArgs: string[];
109
+ };
110
+ };
111
+ //# sourceMappingURL=Exercise.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Exercise.type.d.ts","sourceRoot":"","sources":["../../src/Blimey/Exercise.type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mCAAmC,EACnC,iCAAiC,EACjC,gCAAgC,EAChC,cAAc,EACd,YAAY,EACb,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,qBAAqB,CAAA;QAC/B,YAAY,EACR,6BAA6B,GAC7B,+BAA+B,GAC/B,8BAA8B,GAC9B,kCAAkC,GAClC,oCAAoC,GACpC,yCAAyC,GACzC,8BAA8B,GAC9B,+BAA+B,GAC/B,oCAAoC,GACpC,kCAAkC,GAClC,+BAA+B,GAC/B,gCAAgC,CAAA;QACpC,cAAc,CAAC,EAAE,eA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uB,GACvB,mCAAmC,GACnC,iCAAiC,GACjC,gCAAgC,GAChC,YAAY,GACZ,cAAc,CACjB,EAAE,CAAA;IACH,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAA;QACpB,cAAc,EAAE,MAAM,EAAE,CAAA;KACzB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAA;QACV,MAAM,EAAE,MAAM,EAAE,CAAA;KACjB,CAAA;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { AcceptableDataTypes } from "./UserProgress.type";
2
+ export type ModuleType = {
3
+ id: string;
4
+ title: string;
5
+ description: string;
6
+ chapterIds?: string[];
7
+ submoduleIds?: string[];
8
+ thumbnailUrl?: string;
9
+ data?: {
10
+ template?: string;
11
+ showScoreAtEnd?: boolean;
12
+ scorePageTemplate?: string;
13
+ sendToDashboardOnCompletion?: boolean;
14
+ };
15
+ custom?: {
16
+ [key: string]: AcceptableDataTypes;
17
+ };
18
+ };
19
+ //# sourceMappingURL=Module.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Module.type.d.ts","sourceRoot":"","sources":["../../src/Blimey/Module.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,2BAA2B,CAAC,EAAE,OAAO,CAAA;KACtC,CAAA;IACD,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KACnC,CAAA;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,86 @@
1
+ import { CourseList } from "./Course.type";
2
+ import { ExerciseType } from "./Exercise.type";
3
+ export type AcceptablePrimitiveTypes = string | number | boolean | symbol | Date;
4
+ export type AcceptableDataTypes = AcceptablePrimitiveTypes | {
5
+ [key: string]: AcceptablePrimitiveTypes | AcceptableDataTypes;
6
+ } | Array<AcceptablePrimitiveTypes | AcceptableDataTypes>;
7
+ export declare enum UserProgressActionType {
8
+ MODULE_START = "MODULE_START",
9
+ MODULE_COMPLETE = "MODULE_COMPLETE",
10
+ CHAPTER_START = "CHAPTER_START",
11
+ CHAPTER_COMPLETE = "CHAPTER_COMPLETE",
12
+ EXERCISE_START = "EXERCISE_START",
13
+ EXERCISE_COMPLETE = "EXERCISE_COMPLETE",
14
+ COURSE_COMPLETE = "COURSE_COMPLETE",
15
+ COURSE_RESET = "COURSE_RESET"
16
+ }
17
+ export type ConsolidatedProgressStats = {
18
+ totalExercises: number;
19
+ maxScore: number;
20
+ currentScore: number;
21
+ exercisesCompleted: number;
22
+ exerciseIds: string[];
23
+ };
24
+ export type UserProgressStatsType = {
25
+ userId: number;
26
+ courseId: CourseList;
27
+ course: ConsolidatedProgressStats;
28
+ modules: {
29
+ [moduleId: string]: ConsolidatedProgressStats;
30
+ };
31
+ chapters: {
32
+ [chapterId: string]: ConsolidatedProgressStats;
33
+ };
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ };
37
+ export type UserProgressType = {
38
+ actions: UserProgressAction[];
39
+ stats: UserProgressStatsType;
40
+ };
41
+ export type ExerciseCompleteAction = {
42
+ id: string;
43
+ type: UserProgressActionType.EXERCISE_COMPLETE;
44
+ courseId: CourseList;
45
+ userId: number;
46
+ data: {
47
+ exercise: ExerciseType;
48
+ score?: number;
49
+ userAnswer?: string;
50
+ };
51
+ custom?: {
52
+ [key: string]: AcceptableDataTypes;
53
+ };
54
+ timestamp: Date;
55
+ sessionId: string;
56
+ };
57
+ export type NonExerciseCompleteAction = {
58
+ id: string;
59
+ type: Exclude<UserProgressActionType, "EXERCISE_COMPLETE">;
60
+ courseId: CourseList;
61
+ userId: number;
62
+ data?: Record<string, AcceptableDataTypes>;
63
+ custom?: {
64
+ [key: string]: AcceptableDataTypes;
65
+ };
66
+ timestamp: Date;
67
+ sessionId: string;
68
+ };
69
+ export type UserProgressAction = ExerciseCompleteAction | NonExerciseCompleteAction;
70
+ export type UserProgressActionServerEntity = {
71
+ dbId: number;
72
+ userId: number;
73
+ courseId: CourseList;
74
+ details: {
75
+ id: string;
76
+ type: UserProgressActionType;
77
+ data?: AcceptableDataTypes;
78
+ timestamp: Date;
79
+ custom?: Record<string, AcceptableDataTypes>;
80
+ sessionId: string;
81
+ }[];
82
+ lastUsedSessionId: string;
83
+ created_at: Date;
84
+ updated_at: Date;
85
+ };
86
+ //# sourceMappingURL=UserProgress.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserProgress.type.d.ts","sourceRoot":"","sources":["../../src/Blimey/UserProgress.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAM9C,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;AAEhF,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,GAAG,mBAAmB,CAAA;CAAE,GACjE,KAAK,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAA;AAEzD,oBAAY,sBAAsB;IAChC,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;I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SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAC,sBAAsB,EAAE,mBAAmB,CAAC,CAAA;IAC1D,QAAQ,EAAE,UAAU,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IAC1C,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KACnC,CAAA;IACD,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,yBAAyB,CAAA;AAE7B,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,UAAU,CAAA;IACpB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,sBAAsB,CAAA;QAC5B,IAAI,CAAC,EAAE,mBAAmB,CAAA;QAC1B,SAAS,EAAE,IAAI,CAAA;QACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;QAC5C,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,CAAA;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA"}
@@ -0,0 +1,11 @@
1
+ export var UserProgressActionType;
2
+ (function (UserProgressActionType) {
3
+ UserProgressActionType["MODULE_START"] = "MODULE_START";
4
+ UserProgressActionType["MODULE_COMPLETE"] = "MODULE_COMPLETE";
5
+ UserProgressActionType["CHAPTER_START"] = "CHAPTER_START";
6
+ UserProgressActionType["CHAPTER_COMPLETE"] = "CHAPTER_COMPLETE";
7
+ UserProgressActionType["EXERCISE_START"] = "EXERCISE_START";
8
+ UserProgressActionType["EXERCISE_COMPLETE"] = "EXERCISE_COMPLETE";
9
+ UserProgressActionType["COURSE_COMPLETE"] = "COURSE_COMPLETE";
10
+ UserProgressActionType["COURSE_RESET"] = "COURSE_RESET";
11
+ })(UserProgressActionType || (UserProgressActionType = {}));
@@ -0,0 +1,240 @@
1
+ export type ActionDescriptor = {
2
+ nvda: string;
3
+ jaws: string;
4
+ narrator: string;
5
+ voiceover: string;
6
+ orca: string;
7
+ };
8
+ export declare const actionKeyMap: {
9
+ readonly navigate_desktop: {
10
+ readonly nvda: "Ctrl + Windows + D";
11
+ readonly jaws: "Insert + F3";
12
+ readonly narrator: "Windows + D";
13
+ readonly voiceover: "Ctrl + Option + D";
14
+ readonly orca: "Super + D";
15
+ };
16
+ readonly open_start_menu: {
17
+ readonly nvda: "Ctrl + Escape";
18
+ readonly jaws: "Ctrl + Escape";
19
+ readonly narrator: "Windows";
20
+ readonly voiceover: "Command + Space";
21
+ readonly orca: "Super";
22
+ };
23
+ readonly switch_apps: {
24
+ readonly nvda: "Alt + Tab";
25
+ readonly jaws: "Alt + Tab";
26
+ readonly narrator: "Alt + Tab";
27
+ readonly voiceover: "Alt + Tab";
28
+ readonly orca: "Alt + Tab";
29
+ };
30
+ readonly read_next_item: {
31
+ readonly nvda: "ArrowDown";
32
+ readonly jaws: "ArrowDown";
33
+ readonly narrator: "Caps Lock + ArrowDown";
34
+ readonly voiceover: "Ctrl + Option + ArrowRight";
35
+ readonly orca: "ArrowDown";
36
+ };
37
+ readonly read_previous_item: {
38
+ readonly nvda: "ArrowUp";
39
+ readonly jaws: "ArrowUp";
40
+ readonly narrator: "Caps Lock + ArrowUp";
41
+ readonly voiceover: "Ctrl + Option + ArrowLeft";
42
+ readonly orca: "ArrowUp";
43
+ };
44
+ readonly open_context_menu: {
45
+ readonly nvda: "Shift + F10";
46
+ readonly jaws: "Shift + F10";
47
+ readonly narrator: "Shift + F10";
48
+ readonly voiceover: "Ctrl + Option + Shift + M";
49
+ readonly orca: "Shift + F10";
50
+ };
51
+ readonly copy: {
52
+ readonly nvda: "Ctrl + C";
53
+ readonly jaws: "Ctrl + C";
54
+ readonly narrator: "Ctrl + C";
55
+ readonly voiceover: "Command + C";
56
+ readonly orca: "Ctrl + C";
57
+ };
58
+ readonly paste: {
59
+ readonly nvda: "Ctrl + V";
60
+ readonly jaws: "Ctrl + V";
61
+ readonly narrator: "Ctrl + V";
62
+ readonly voiceover: "Command + V";
63
+ readonly orca: "Ctrl + V";
64
+ };
65
+ readonly select_all: {
66
+ readonly nvda: "Ctrl + A";
67
+ readonly jaws: "Ctrl + A";
68
+ readonly narrator: "Ctrl + A";
69
+ readonly voiceover: "Command + A";
70
+ readonly orca: "Ctrl + A";
71
+ };
72
+ readonly find: {
73
+ readonly nvda: "Ctrl + F";
74
+ readonly jaws: "Ctrl + F";
75
+ readonly narrator: "Ctrl + F";
76
+ readonly voiceover: "Command + F";
77
+ readonly orca: "Ctrl + F";
78
+ };
79
+ readonly start_reading: {
80
+ readonly nvda: "Insert + ArrowDown";
81
+ readonly jaws: "Insert + ArrowDown";
82
+ readonly narrator: "Caps Lock + M";
83
+ readonly voiceover: "Ctrl + Option + A";
84
+ readonly orca: "Insert + ArrowDown";
85
+ };
86
+ readonly stop_reading: {
87
+ readonly nvda: "Ctrl";
88
+ readonly jaws: "Ctrl";
89
+ readonly narrator: "Ctrl";
90
+ readonly voiceover: "Ctrl";
91
+ readonly orca: "Ctrl";
92
+ };
93
+ readonly toggle_screen_reader: {
94
+ readonly nvda: "Ctrl + Alt + N";
95
+ readonly jaws: "Insert + J";
96
+ readonly narrator: "Ctrl + Windows + Enter";
97
+ readonly voiceover: "Command + F5";
98
+ readonly orca: "Insert + S";
99
+ };
100
+ readonly minimize_all_apps: {
101
+ readonly nvda: "Windows + M";
102
+ readonly jaws: "Windows + M";
103
+ readonly narrator: "Windows + M";
104
+ readonly voiceover: "Command + Option + M";
105
+ readonly orca: "Super + H";
106
+ };
107
+ readonly count_items: {
108
+ readonly nvda: "Ctrl + A";
109
+ readonly jaws: "Ctrl + A";
110
+ readonly narrator: "Ctrl + A";
111
+ readonly voiceover: "Command + A";
112
+ readonly orca: "Ctrl + A";
113
+ };
114
+ readonly open_file_explorer: {
115
+ readonly nvda: "Windows + E";
116
+ readonly jaws: "Windows + E";
117
+ readonly narrator: "Windows + E";
118
+ readonly voiceover: "Command + Option + E";
119
+ readonly orca: "Super + E";
120
+ };
121
+ readonly launch_launcher: {
122
+ readonly nvda: "Windows";
123
+ readonly jaws: "Windows";
124
+ readonly narrator: "Windows";
125
+ readonly voiceover: "Command + Space";
126
+ readonly orca: "Super";
127
+ };
128
+ };
129
+ export declare const applicationKeyMap: {
130
+ readonly word: {
131
+ readonly bold_text: {
132
+ readonly nvda: "Ctrl + B";
133
+ readonly jaws: "Ctrl + B";
134
+ readonly narrator: "Ctrl + B";
135
+ readonly voiceover: "Command + B";
136
+ readonly orca: "Ctrl + B";
137
+ };
138
+ readonly italicize_text: {
139
+ readonly nvda: "Ctrl + I";
140
+ readonly jaws: "Ctrl + I";
141
+ readonly narrator: "Ctrl + I";
142
+ readonly voiceover: "Command + I";
143
+ readonly orca: "Ctrl + I";
144
+ };
145
+ readonly underline_text: {
146
+ readonly nvda: "Ctrl + U";
147
+ readonly jaws: "Ctrl + U";
148
+ readonly narrator: "Ctrl + U";
149
+ readonly voiceover: "Command + U";
150
+ readonly orca: "Ctrl + U";
151
+ };
152
+ };
153
+ readonly excel: {
154
+ readonly navigate_cells_up: {
155
+ readonly nvda: "ArrowUp";
156
+ readonly jaws: "ArrowUp";
157
+ readonly narrator: "ArrowUp";
158
+ readonly voiceover: "ArrowUp";
159
+ readonly orca: "ArrowUp";
160
+ };
161
+ readonly navigate_cells_down: {
162
+ readonly nvda: "ArrowDown";
163
+ readonly jaws: "ArrowDown";
164
+ readonly narrator: "ArrowDown";
165
+ readonly voiceover: "ArrowDown";
166
+ readonly orca: "ArrowDown";
167
+ };
168
+ readonly navigate_cells_left: {
169
+ readonly nvda: "ArrowLeft";
170
+ readonly jaws: "ArrowLeft";
171
+ readonly narrator: "ArrowLeft";
172
+ readonly voiceover: "ArrowLeft";
173
+ readonly orca: "ArrowLeft";
174
+ };
175
+ readonly navigate_cells_right: {
176
+ readonly nvda: "ArrowRight";
177
+ readonly jaws: "ArrowRight";
178
+ readonly narrator: "ArrowRight";
179
+ readonly voiceover: "ArrowRight";
180
+ readonly orca: "ArrowRight";
181
+ };
182
+ readonly edit_cell: {
183
+ readonly nvda: "F2";
184
+ readonly jaws: "F2";
185
+ readonly narrator: "F2";
186
+ readonly voiceover: "Command + U";
187
+ readonly orca: "F2";
188
+ };
189
+ readonly select_column: {
190
+ readonly nvda: "Ctrl + Space";
191
+ readonly jaws: "Ctrl + Space";
192
+ readonly narrator: "Ctrl + Space";
193
+ readonly voiceover: "Command + Space";
194
+ readonly orca: "Ctrl + Space";
195
+ };
196
+ readonly go_to_cell: {
197
+ readonly nvda: "Ctrl + G";
198
+ readonly jaws: "Ctrl + G";
199
+ readonly narrator: "Ctrl + G";
200
+ readonly voiceover: "Command + G";
201
+ readonly orca: "Ctrl + G";
202
+ };
203
+ };
204
+ readonly browser: {
205
+ readonly open_new_tab: {
206
+ readonly nvda: "Ctrl + T";
207
+ readonly jaws: "Ctrl + T";
208
+ readonly narrator: "Ctrl + T";
209
+ readonly voiceover: "Command + T";
210
+ readonly orca: "Ctrl + T";
211
+ };
212
+ readonly close_tab: {
213
+ readonly nvda: "Ctrl + W";
214
+ readonly jaws: "Ctrl + W";
215
+ readonly narrator: "Ctrl + W";
216
+ readonly voiceover: "Command + W";
217
+ readonly orca: "Ctrl + W";
218
+ };
219
+ readonly navigate_next_link: {
220
+ readonly nvda: "Tab";
221
+ readonly jaws: "Tab";
222
+ readonly narrator: "Tab";
223
+ readonly voiceover: "Tab";
224
+ readonly orca: "Tab";
225
+ };
226
+ };
227
+ };
228
+ export type TypingAction = {
229
+ type: "typing";
230
+ text: string;
231
+ };
232
+ export type PressKeyAction = {
233
+ type: "press_key";
234
+ key: string;
235
+ };
236
+ export type AllowedKeysForActionMap = keyof typeof actionKeyMap;
237
+ export type AllowedKeysForApplicationMapWord = keyof typeof applicationKeyMap.word;
238
+ export type AllowedKeysForApplicationMapExcel = keyof typeof applicationKeyMap.excel;
239
+ export type AllowedKeysForApplicationMapBrowser = keyof typeof applicationKeyMap.browser;
240
+ //# sourceMappingURL=actionKeyMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionKeyMap.d.ts","sourceRoot":"","sources":["../../src/Blimey/actionKeyMap.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHf,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGpB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,YAAY,CAAC;AAChE,MAAM,MAAM,gCAAgC,GAC1C,MAAM,OAAO,iBAAiB,CAAC,IAAI,CAAC;AACtC,MAAM,MAAM,iCAAiC,GAC3C,MAAM,OAAO,iBAAiB,CAAC,KAAK,CAAC;AACvC,MAAM,MAAM,mCAAmC,GAC7C,MAAM,OAAO,iBAAiB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,237 @@
1
+ const CTRL_KEY_NAME = "Ctrl";
2
+ const WINDOWS_KEY_NAME = "Windows";
3
+ const INSERT_KEY_NAME = "Insert";
4
+ const CAPS_LOCK_KEY_NAME = "Caps Lock";
5
+ const SHIFT_KEY_NAME = "Shift";
6
+ const SUPER_KEY_NAME = "Super";
7
+ const OPTION_KEY_NAME = "Option";
8
+ const ALT_KEY_NAME = "Alt";
9
+ const COMMAND_KEY_NAME = "Command";
10
+ const ENTER_KEY_NAME = "Enter";
11
+ const ESCAPE_KEY_NAME = "Escape";
12
+ const TAB_KEY_NAME = "Tab";
13
+ const SPACE_KEY_NAME = "Space";
14
+ const ARROW_UP_KEY_NAME = "ArrowUp";
15
+ const ARROW_DOWN_KEY_NAME = "ArrowDown";
16
+ const ARROW_LEFT_KEY_NAME = "ArrowLeft";
17
+ const ARROW_RIGHT_KEY_NAME = "ArrowRight";
18
+ export const actionKeyMap = {
19
+ navigate_desktop: {
20
+ nvda: `${CTRL_KEY_NAME} + ${WINDOWS_KEY_NAME} + D`,
21
+ jaws: `${INSERT_KEY_NAME} + F3`,
22
+ narrator: `${WINDOWS_KEY_NAME} + D`,
23
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + D`,
24
+ orca: `${SUPER_KEY_NAME} + D`,
25
+ },
26
+ open_start_menu: {
27
+ nvda: `${CTRL_KEY_NAME} + ${ESCAPE_KEY_NAME}`,
28
+ jaws: `${CTRL_KEY_NAME} + ${ESCAPE_KEY_NAME}`,
29
+ narrator: `${WINDOWS_KEY_NAME}`,
30
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
31
+ orca: `${SUPER_KEY_NAME}`,
32
+ },
33
+ switch_apps: {
34
+ nvda: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
35
+ jaws: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
36
+ narrator: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
37
+ voiceover: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
38
+ orca: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
39
+ },
40
+ read_next_item: {
41
+ nvda: `${ARROW_DOWN_KEY_NAME}`,
42
+ jaws: `${ARROW_DOWN_KEY_NAME}`,
43
+ narrator: `${CAPS_LOCK_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
44
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${ARROW_RIGHT_KEY_NAME}`,
45
+ orca: `${ARROW_DOWN_KEY_NAME}`,
46
+ },
47
+ read_previous_item: {
48
+ nvda: `${ARROW_UP_KEY_NAME}`,
49
+ jaws: `${ARROW_UP_KEY_NAME}`,
50
+ narrator: `${CAPS_LOCK_KEY_NAME} + ${ARROW_UP_KEY_NAME}`,
51
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${ARROW_LEFT_KEY_NAME}`,
52
+ orca: `${ARROW_UP_KEY_NAME}`,
53
+ },
54
+ open_context_menu: {
55
+ nvda: `${SHIFT_KEY_NAME} + F10`,
56
+ jaws: `${SHIFT_KEY_NAME} + F10`,
57
+ narrator: `${SHIFT_KEY_NAME} + F10`,
58
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${SHIFT_KEY_NAME} + M`,
59
+ orca: `${SHIFT_KEY_NAME} + F10`,
60
+ },
61
+ copy: {
62
+ nvda: `${CTRL_KEY_NAME} + C`,
63
+ jaws: `${CTRL_KEY_NAME} + C`,
64
+ narrator: `${CTRL_KEY_NAME} + C`,
65
+ voiceover: `${COMMAND_KEY_NAME} + C`,
66
+ orca: `${CTRL_KEY_NAME} + C`,
67
+ },
68
+ paste: {
69
+ nvda: `${CTRL_KEY_NAME} + V`,
70
+ jaws: `${CTRL_KEY_NAME} + V`,
71
+ narrator: `${CTRL_KEY_NAME} + V`,
72
+ voiceover: `${COMMAND_KEY_NAME} + V`,
73
+ orca: `${CTRL_KEY_NAME} + V`,
74
+ },
75
+ select_all: {
76
+ nvda: `${CTRL_KEY_NAME} + A`,
77
+ jaws: `${CTRL_KEY_NAME} + A`,
78
+ narrator: `${CTRL_KEY_NAME} + A`,
79
+ voiceover: `${COMMAND_KEY_NAME} + A`,
80
+ orca: `${CTRL_KEY_NAME} + A`,
81
+ },
82
+ find: {
83
+ nvda: `${CTRL_KEY_NAME} + F`,
84
+ jaws: `${CTRL_KEY_NAME} + F`,
85
+ narrator: `${CTRL_KEY_NAME} + F`,
86
+ voiceover: `${COMMAND_KEY_NAME} + F`,
87
+ orca: `${CTRL_KEY_NAME} + F`,
88
+ },
89
+ start_reading: {
90
+ nvda: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
91
+ jaws: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
92
+ narrator: `${CAPS_LOCK_KEY_NAME} + M`,
93
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + A`,
94
+ orca: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
95
+ },
96
+ stop_reading: {
97
+ nvda: `${CTRL_KEY_NAME}`,
98
+ jaws: `${CTRL_KEY_NAME}`,
99
+ narrator: `${CTRL_KEY_NAME}`,
100
+ voiceover: `${CTRL_KEY_NAME}`,
101
+ orca: `${CTRL_KEY_NAME}`,
102
+ },
103
+ toggle_screen_reader: {
104
+ nvda: `${CTRL_KEY_NAME} + ${ALT_KEY_NAME} + N`,
105
+ jaws: `${INSERT_KEY_NAME} + J`,
106
+ narrator: `${CTRL_KEY_NAME} + ${WINDOWS_KEY_NAME} + ${ENTER_KEY_NAME}`,
107
+ voiceover: `${COMMAND_KEY_NAME} + F5`,
108
+ orca: `${INSERT_KEY_NAME} + S`,
109
+ },
110
+ minimize_all_apps: {
111
+ nvda: `${WINDOWS_KEY_NAME} + M`,
112
+ jaws: `${WINDOWS_KEY_NAME} + M`,
113
+ narrator: `${WINDOWS_KEY_NAME} + M`,
114
+ voiceover: `${COMMAND_KEY_NAME} + ${OPTION_KEY_NAME} + M`,
115
+ orca: `${SUPER_KEY_NAME} + H`,
116
+ },
117
+ count_items: {
118
+ nvda: `${CTRL_KEY_NAME} + A`,
119
+ jaws: `${CTRL_KEY_NAME} + A`,
120
+ narrator: `${CTRL_KEY_NAME} + A`,
121
+ voiceover: `${COMMAND_KEY_NAME} + A`,
122
+ orca: `${CTRL_KEY_NAME} + A`,
123
+ },
124
+ open_file_explorer: {
125
+ nvda: `${WINDOWS_KEY_NAME} + E`,
126
+ jaws: `${WINDOWS_KEY_NAME} + E`,
127
+ narrator: `${WINDOWS_KEY_NAME} + E`,
128
+ voiceover: `${COMMAND_KEY_NAME} + ${OPTION_KEY_NAME} + E`,
129
+ orca: `${SUPER_KEY_NAME} + E`,
130
+ },
131
+ launch_launcher: {
132
+ nvda: `${WINDOWS_KEY_NAME}`,
133
+ jaws: `${WINDOWS_KEY_NAME}`,
134
+ narrator: `${WINDOWS_KEY_NAME}`,
135
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
136
+ orca: `${SUPER_KEY_NAME}`,
137
+ },
138
+ };
139
+ export const applicationKeyMap = {
140
+ word: {
141
+ bold_text: {
142
+ nvda: `${CTRL_KEY_NAME} + B`,
143
+ jaws: `${CTRL_KEY_NAME} + B`,
144
+ narrator: `${CTRL_KEY_NAME} + B`,
145
+ voiceover: `${COMMAND_KEY_NAME} + B`,
146
+ orca: `${CTRL_KEY_NAME} + B`,
147
+ },
148
+ italicize_text: {
149
+ nvda: `${CTRL_KEY_NAME} + I`,
150
+ jaws: `${CTRL_KEY_NAME} + I`,
151
+ narrator: `${CTRL_KEY_NAME} + I`,
152
+ voiceover: `${COMMAND_KEY_NAME} + I`,
153
+ orca: `${CTRL_KEY_NAME} + I`,
154
+ },
155
+ underline_text: {
156
+ nvda: `${CTRL_KEY_NAME} + U`,
157
+ jaws: `${CTRL_KEY_NAME} + U`,
158
+ narrator: `${CTRL_KEY_NAME} + U`,
159
+ voiceover: `${COMMAND_KEY_NAME} + U`,
160
+ orca: `${CTRL_KEY_NAME} + U`,
161
+ },
162
+ },
163
+ excel: {
164
+ navigate_cells_up: {
165
+ nvda: `${ARROW_UP_KEY_NAME}`,
166
+ jaws: `${ARROW_UP_KEY_NAME}`,
167
+ narrator: `${ARROW_UP_KEY_NAME}`,
168
+ voiceover: `${ARROW_UP_KEY_NAME}`,
169
+ orca: `${ARROW_UP_KEY_NAME}`,
170
+ },
171
+ navigate_cells_down: {
172
+ nvda: `${ARROW_DOWN_KEY_NAME}`,
173
+ jaws: `${ARROW_DOWN_KEY_NAME}`,
174
+ narrator: `${ARROW_DOWN_KEY_NAME}`,
175
+ voiceover: `${ARROW_DOWN_KEY_NAME}`,
176
+ orca: `${ARROW_DOWN_KEY_NAME}`,
177
+ },
178
+ navigate_cells_left: {
179
+ nvda: `${ARROW_LEFT_KEY_NAME}`,
180
+ jaws: `${ARROW_LEFT_KEY_NAME}`,
181
+ narrator: `${ARROW_LEFT_KEY_NAME}`,
182
+ voiceover: `${ARROW_LEFT_KEY_NAME}`,
183
+ orca: `${ARROW_LEFT_KEY_NAME}`,
184
+ },
185
+ navigate_cells_right: {
186
+ nvda: `${ARROW_RIGHT_KEY_NAME}`,
187
+ jaws: `${ARROW_RIGHT_KEY_NAME}`,
188
+ narrator: `${ARROW_RIGHT_KEY_NAME}`,
189
+ voiceover: `${ARROW_RIGHT_KEY_NAME}`,
190
+ orca: `${ARROW_RIGHT_KEY_NAME}`,
191
+ },
192
+ edit_cell: {
193
+ nvda: "F2",
194
+ jaws: "F2",
195
+ narrator: "F2",
196
+ voiceover: `${COMMAND_KEY_NAME} + U`,
197
+ orca: "F2",
198
+ },
199
+ select_column: {
200
+ nvda: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
201
+ jaws: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
202
+ narrator: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
203
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
204
+ orca: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
205
+ },
206
+ go_to_cell: {
207
+ nvda: `${CTRL_KEY_NAME} + G`,
208
+ jaws: `${CTRL_KEY_NAME} + G`,
209
+ narrator: `${CTRL_KEY_NAME} + G`,
210
+ voiceover: `${COMMAND_KEY_NAME} + G`,
211
+ orca: `${CTRL_KEY_NAME} + G`,
212
+ },
213
+ },
214
+ browser: {
215
+ open_new_tab: {
216
+ nvda: `${CTRL_KEY_NAME} + T`,
217
+ jaws: `${CTRL_KEY_NAME} + T`,
218
+ narrator: `${CTRL_KEY_NAME} + T`,
219
+ voiceover: `${COMMAND_KEY_NAME} + T`,
220
+ orca: `${CTRL_KEY_NAME} + T`,
221
+ },
222
+ close_tab: {
223
+ nvda: `${CTRL_KEY_NAME} + W`,
224
+ jaws: `${CTRL_KEY_NAME} + W`,
225
+ narrator: `${CTRL_KEY_NAME} + W`,
226
+ voiceover: `${COMMAND_KEY_NAME} + W`,
227
+ orca: `${CTRL_KEY_NAME} + W`,
228
+ },
229
+ navigate_next_link: {
230
+ nvda: `${TAB_KEY_NAME}`,
231
+ jaws: `${TAB_KEY_NAME}`,
232
+ narrator: `${TAB_KEY_NAME}`,
233
+ voiceover: `${TAB_KEY_NAME}`,
234
+ orca: `${TAB_KEY_NAME}`,
235
+ },
236
+ },
237
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CourseList = void 0;
4
+ var CourseList;
5
+ (function (CourseList) {
6
+ CourseList["spellingTool"] = "spellingTool";
7
+ CourseList["excel"] = "excel";
8
+ })(CourseList || (exports.CourseList = CourseList = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserProgressActionType = void 0;
4
+ var UserProgressActionType;
5
+ (function (UserProgressActionType) {
6
+ UserProgressActionType["MODULE_START"] = "MODULE_START";
7
+ UserProgressActionType["MODULE_COMPLETE"] = "MODULE_COMPLETE";
8
+ UserProgressActionType["CHAPTER_START"] = "CHAPTER_START";
9
+ UserProgressActionType["CHAPTER_COMPLETE"] = "CHAPTER_COMPLETE";
10
+ UserProgressActionType["EXERCISE_START"] = "EXERCISE_START";
11
+ UserProgressActionType["EXERCISE_COMPLETE"] = "EXERCISE_COMPLETE";
12
+ UserProgressActionType["COURSE_COMPLETE"] = "COURSE_COMPLETE";
13
+ UserProgressActionType["COURSE_RESET"] = "COURSE_RESET";
14
+ })(UserProgressActionType || (exports.UserProgressActionType = UserProgressActionType = {}));
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applicationKeyMap = exports.actionKeyMap = void 0;
4
+ const CTRL_KEY_NAME = "Ctrl";
5
+ const WINDOWS_KEY_NAME = "Windows";
6
+ const INSERT_KEY_NAME = "Insert";
7
+ const CAPS_LOCK_KEY_NAME = "Caps Lock";
8
+ const SHIFT_KEY_NAME = "Shift";
9
+ const SUPER_KEY_NAME = "Super";
10
+ const OPTION_KEY_NAME = "Option";
11
+ const ALT_KEY_NAME = "Alt";
12
+ const COMMAND_KEY_NAME = "Command";
13
+ const ENTER_KEY_NAME = "Enter";
14
+ const ESCAPE_KEY_NAME = "Escape";
15
+ const TAB_KEY_NAME = "Tab";
16
+ const SPACE_KEY_NAME = "Space";
17
+ const ARROW_UP_KEY_NAME = "ArrowUp";
18
+ const ARROW_DOWN_KEY_NAME = "ArrowDown";
19
+ const ARROW_LEFT_KEY_NAME = "ArrowLeft";
20
+ const ARROW_RIGHT_KEY_NAME = "ArrowRight";
21
+ exports.actionKeyMap = {
22
+ navigate_desktop: {
23
+ nvda: `${CTRL_KEY_NAME} + ${WINDOWS_KEY_NAME} + D`,
24
+ jaws: `${INSERT_KEY_NAME} + F3`,
25
+ narrator: `${WINDOWS_KEY_NAME} + D`,
26
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + D`,
27
+ orca: `${SUPER_KEY_NAME} + D`,
28
+ },
29
+ open_start_menu: {
30
+ nvda: `${CTRL_KEY_NAME} + ${ESCAPE_KEY_NAME}`,
31
+ jaws: `${CTRL_KEY_NAME} + ${ESCAPE_KEY_NAME}`,
32
+ narrator: `${WINDOWS_KEY_NAME}`,
33
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
34
+ orca: `${SUPER_KEY_NAME}`,
35
+ },
36
+ switch_apps: {
37
+ nvda: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
38
+ jaws: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
39
+ narrator: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
40
+ voiceover: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
41
+ orca: `${ALT_KEY_NAME} + ${TAB_KEY_NAME}`,
42
+ },
43
+ read_next_item: {
44
+ nvda: `${ARROW_DOWN_KEY_NAME}`,
45
+ jaws: `${ARROW_DOWN_KEY_NAME}`,
46
+ narrator: `${CAPS_LOCK_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
47
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${ARROW_RIGHT_KEY_NAME}`,
48
+ orca: `${ARROW_DOWN_KEY_NAME}`,
49
+ },
50
+ read_previous_item: {
51
+ nvda: `${ARROW_UP_KEY_NAME}`,
52
+ jaws: `${ARROW_UP_KEY_NAME}`,
53
+ narrator: `${CAPS_LOCK_KEY_NAME} + ${ARROW_UP_KEY_NAME}`,
54
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${ARROW_LEFT_KEY_NAME}`,
55
+ orca: `${ARROW_UP_KEY_NAME}`,
56
+ },
57
+ open_context_menu: {
58
+ nvda: `${SHIFT_KEY_NAME} + F10`,
59
+ jaws: `${SHIFT_KEY_NAME} + F10`,
60
+ narrator: `${SHIFT_KEY_NAME} + F10`,
61
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + ${SHIFT_KEY_NAME} + M`,
62
+ orca: `${SHIFT_KEY_NAME} + F10`,
63
+ },
64
+ copy: {
65
+ nvda: `${CTRL_KEY_NAME} + C`,
66
+ jaws: `${CTRL_KEY_NAME} + C`,
67
+ narrator: `${CTRL_KEY_NAME} + C`,
68
+ voiceover: `${COMMAND_KEY_NAME} + C`,
69
+ orca: `${CTRL_KEY_NAME} + C`,
70
+ },
71
+ paste: {
72
+ nvda: `${CTRL_KEY_NAME} + V`,
73
+ jaws: `${CTRL_KEY_NAME} + V`,
74
+ narrator: `${CTRL_KEY_NAME} + V`,
75
+ voiceover: `${COMMAND_KEY_NAME} + V`,
76
+ orca: `${CTRL_KEY_NAME} + V`,
77
+ },
78
+ select_all: {
79
+ nvda: `${CTRL_KEY_NAME} + A`,
80
+ jaws: `${CTRL_KEY_NAME} + A`,
81
+ narrator: `${CTRL_KEY_NAME} + A`,
82
+ voiceover: `${COMMAND_KEY_NAME} + A`,
83
+ orca: `${CTRL_KEY_NAME} + A`,
84
+ },
85
+ find: {
86
+ nvda: `${CTRL_KEY_NAME} + F`,
87
+ jaws: `${CTRL_KEY_NAME} + F`,
88
+ narrator: `${CTRL_KEY_NAME} + F`,
89
+ voiceover: `${COMMAND_KEY_NAME} + F`,
90
+ orca: `${CTRL_KEY_NAME} + F`,
91
+ },
92
+ start_reading: {
93
+ nvda: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
94
+ jaws: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
95
+ narrator: `${CAPS_LOCK_KEY_NAME} + M`,
96
+ voiceover: `${CTRL_KEY_NAME} + ${OPTION_KEY_NAME} + A`,
97
+ orca: `${INSERT_KEY_NAME} + ${ARROW_DOWN_KEY_NAME}`,
98
+ },
99
+ stop_reading: {
100
+ nvda: `${CTRL_KEY_NAME}`,
101
+ jaws: `${CTRL_KEY_NAME}`,
102
+ narrator: `${CTRL_KEY_NAME}`,
103
+ voiceover: `${CTRL_KEY_NAME}`,
104
+ orca: `${CTRL_KEY_NAME}`,
105
+ },
106
+ toggle_screen_reader: {
107
+ nvda: `${CTRL_KEY_NAME} + ${ALT_KEY_NAME} + N`,
108
+ jaws: `${INSERT_KEY_NAME} + J`,
109
+ narrator: `${CTRL_KEY_NAME} + ${WINDOWS_KEY_NAME} + ${ENTER_KEY_NAME}`,
110
+ voiceover: `${COMMAND_KEY_NAME} + F5`,
111
+ orca: `${INSERT_KEY_NAME} + S`,
112
+ },
113
+ minimize_all_apps: {
114
+ nvda: `${WINDOWS_KEY_NAME} + M`,
115
+ jaws: `${WINDOWS_KEY_NAME} + M`,
116
+ narrator: `${WINDOWS_KEY_NAME} + M`,
117
+ voiceover: `${COMMAND_KEY_NAME} + ${OPTION_KEY_NAME} + M`,
118
+ orca: `${SUPER_KEY_NAME} + H`,
119
+ },
120
+ count_items: {
121
+ nvda: `${CTRL_KEY_NAME} + A`,
122
+ jaws: `${CTRL_KEY_NAME} + A`,
123
+ narrator: `${CTRL_KEY_NAME} + A`,
124
+ voiceover: `${COMMAND_KEY_NAME} + A`,
125
+ orca: `${CTRL_KEY_NAME} + A`,
126
+ },
127
+ open_file_explorer: {
128
+ nvda: `${WINDOWS_KEY_NAME} + E`,
129
+ jaws: `${WINDOWS_KEY_NAME} + E`,
130
+ narrator: `${WINDOWS_KEY_NAME} + E`,
131
+ voiceover: `${COMMAND_KEY_NAME} + ${OPTION_KEY_NAME} + E`,
132
+ orca: `${SUPER_KEY_NAME} + E`,
133
+ },
134
+ launch_launcher: {
135
+ nvda: `${WINDOWS_KEY_NAME}`,
136
+ jaws: `${WINDOWS_KEY_NAME}`,
137
+ narrator: `${WINDOWS_KEY_NAME}`,
138
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
139
+ orca: `${SUPER_KEY_NAME}`,
140
+ },
141
+ };
142
+ exports.applicationKeyMap = {
143
+ word: {
144
+ bold_text: {
145
+ nvda: `${CTRL_KEY_NAME} + B`,
146
+ jaws: `${CTRL_KEY_NAME} + B`,
147
+ narrator: `${CTRL_KEY_NAME} + B`,
148
+ voiceover: `${COMMAND_KEY_NAME} + B`,
149
+ orca: `${CTRL_KEY_NAME} + B`,
150
+ },
151
+ italicize_text: {
152
+ nvda: `${CTRL_KEY_NAME} + I`,
153
+ jaws: `${CTRL_KEY_NAME} + I`,
154
+ narrator: `${CTRL_KEY_NAME} + I`,
155
+ voiceover: `${COMMAND_KEY_NAME} + I`,
156
+ orca: `${CTRL_KEY_NAME} + I`,
157
+ },
158
+ underline_text: {
159
+ nvda: `${CTRL_KEY_NAME} + U`,
160
+ jaws: `${CTRL_KEY_NAME} + U`,
161
+ narrator: `${CTRL_KEY_NAME} + U`,
162
+ voiceover: `${COMMAND_KEY_NAME} + U`,
163
+ orca: `${CTRL_KEY_NAME} + U`,
164
+ },
165
+ },
166
+ excel: {
167
+ navigate_cells_up: {
168
+ nvda: `${ARROW_UP_KEY_NAME}`,
169
+ jaws: `${ARROW_UP_KEY_NAME}`,
170
+ narrator: `${ARROW_UP_KEY_NAME}`,
171
+ voiceover: `${ARROW_UP_KEY_NAME}`,
172
+ orca: `${ARROW_UP_KEY_NAME}`,
173
+ },
174
+ navigate_cells_down: {
175
+ nvda: `${ARROW_DOWN_KEY_NAME}`,
176
+ jaws: `${ARROW_DOWN_KEY_NAME}`,
177
+ narrator: `${ARROW_DOWN_KEY_NAME}`,
178
+ voiceover: `${ARROW_DOWN_KEY_NAME}`,
179
+ orca: `${ARROW_DOWN_KEY_NAME}`,
180
+ },
181
+ navigate_cells_left: {
182
+ nvda: `${ARROW_LEFT_KEY_NAME}`,
183
+ jaws: `${ARROW_LEFT_KEY_NAME}`,
184
+ narrator: `${ARROW_LEFT_KEY_NAME}`,
185
+ voiceover: `${ARROW_LEFT_KEY_NAME}`,
186
+ orca: `${ARROW_LEFT_KEY_NAME}`,
187
+ },
188
+ navigate_cells_right: {
189
+ nvda: `${ARROW_RIGHT_KEY_NAME}`,
190
+ jaws: `${ARROW_RIGHT_KEY_NAME}`,
191
+ narrator: `${ARROW_RIGHT_KEY_NAME}`,
192
+ voiceover: `${ARROW_RIGHT_KEY_NAME}`,
193
+ orca: `${ARROW_RIGHT_KEY_NAME}`,
194
+ },
195
+ edit_cell: {
196
+ nvda: "F2",
197
+ jaws: "F2",
198
+ narrator: "F2",
199
+ voiceover: `${COMMAND_KEY_NAME} + U`,
200
+ orca: "F2",
201
+ },
202
+ select_column: {
203
+ nvda: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
204
+ jaws: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
205
+ narrator: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
206
+ voiceover: `${COMMAND_KEY_NAME} + ${SPACE_KEY_NAME}`,
207
+ orca: `${CTRL_KEY_NAME} + ${SPACE_KEY_NAME}`,
208
+ },
209
+ go_to_cell: {
210
+ nvda: `${CTRL_KEY_NAME} + G`,
211
+ jaws: `${CTRL_KEY_NAME} + G`,
212
+ narrator: `${CTRL_KEY_NAME} + G`,
213
+ voiceover: `${COMMAND_KEY_NAME} + G`,
214
+ orca: `${CTRL_KEY_NAME} + G`,
215
+ },
216
+ },
217
+ browser: {
218
+ open_new_tab: {
219
+ nvda: `${CTRL_KEY_NAME} + T`,
220
+ jaws: `${CTRL_KEY_NAME} + T`,
221
+ narrator: `${CTRL_KEY_NAME} + T`,
222
+ voiceover: `${COMMAND_KEY_NAME} + T`,
223
+ orca: `${CTRL_KEY_NAME} + T`,
224
+ },
225
+ close_tab: {
226
+ nvda: `${CTRL_KEY_NAME} + W`,
227
+ jaws: `${CTRL_KEY_NAME} + W`,
228
+ narrator: `${CTRL_KEY_NAME} + W`,
229
+ voiceover: `${COMMAND_KEY_NAME} + W`,
230
+ orca: `${CTRL_KEY_NAME} + W`,
231
+ },
232
+ navigate_next_link: {
233
+ nvda: `${TAB_KEY_NAME}`,
234
+ jaws: `${TAB_KEY_NAME}`,
235
+ narrator: `${TAB_KEY_NAME}`,
236
+ voiceover: `${TAB_KEY_NAME}`,
237
+ orca: `${TAB_KEY_NAME}`,
238
+ },
239
+ },
240
+ };
@@ -4,11 +4,14 @@ exports.NATS_Queues = exports.NATS_Patterns = void 0;
4
4
  exports.NATS_Patterns = {
5
5
  auth_register: "userauth.register",
6
6
  auth_login: "userauth.login",
7
+ auth_logout: "userauth.logout",
7
8
  auth_me: "userauth.me",
8
9
  auth_wa_login: "userauth.wa-login",
9
10
  auth_wa_me: "userauth.wa-me",
10
11
  auth_otp_login_generate: "userauth.otp-login-generate",
11
12
  auth_otp_login_verify: "userauth.otp-login-verify",
13
+ auth_edit_user: "userauth.edit-user",
14
+ auth_latest_sessionId: "userauth.latest-sessionId",
12
15
  aichat_questionText: "aichat.question-text",
13
16
  aichat_transcribe: "aichat.transcribe",
14
17
  aichat_translate: "aichat.translate",
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserForAdminDTOKeys = exports.UserDTOKeys = void 0;
4
4
  exports.UserDTOKeys = [
5
+ "id",
5
6
  "email",
6
7
  "phone",
7
8
  "adminType",
@@ -15,6 +16,7 @@ exports.UserDTOKeys = [
15
16
  "sessionId",
16
17
  "whatsappId",
17
18
  "customProps",
19
+ "updated_at",
18
20
  ];
19
21
  exports.UserForAdminDTOKeys = [
20
22
  "id",
package/dist/index.cjs CHANGED
@@ -23,3 +23,9 @@ __exportStar(require("./adminQueries/adminQueries.type"), exports);
23
23
  __exportStar(require("./dataSources/DishData.type"), exports);
24
24
  __exportStar(require("./projectAuth/ProjectAuth.type"), exports);
25
25
  __exportStar(require("./comms/Comms.type"), exports);
26
+ __exportStar(require("./Blimey/Chapter.type"), exports);
27
+ __exportStar(require("./Blimey/Course.type"), exports);
28
+ __exportStar(require("./Blimey/Exercise.type"), exports);
29
+ __exportStar(require("./Blimey/Module.type"), exports);
30
+ __exportStar(require("./Blimey/UserProgress.type"), exports);
31
+ __exportStar(require("./Blimey/actionKeyMap"), exports);
package/dist/index.d.ts CHANGED
@@ -7,4 +7,10 @@ export * from "./adminQueries/adminQueries.type";
7
7
  export * from "./dataSources/DishData.type";
8
8
  export * from "./projectAuth/ProjectAuth.type";
9
9
  export * from "./comms/Comms.type";
10
+ export * from "./Blimey/Chapter.type";
11
+ export * from "./Blimey/Course.type";
12
+ export * from "./Blimey/Exercise.type";
13
+ export * from "./Blimey/Module.type";
14
+ export * from "./Blimey/UserProgress.type";
15
+ export * from "./Blimey/actionKeyMap";
10
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA"}
package/dist/index.js CHANGED
@@ -7,3 +7,9 @@ export * from "./adminQueries/adminQueries.type";
7
7
  export * from "./dataSources/DishData.type";
8
8
  export * from "./projectAuth/ProjectAuth.type";
9
9
  export * from "./comms/Comms.type";
10
+ export * from "./Blimey/Chapter.type";
11
+ export * from "./Blimey/Course.type";
12
+ export * from "./Blimey/Exercise.type";
13
+ export * from "./Blimey/Module.type";
14
+ export * from "./Blimey/UserProgress.type";
15
+ export * from "./Blimey/actionKeyMap";
@@ -1,11 +1,14 @@
1
1
  export declare const NATS_Patterns: {
2
2
  auth_register: string;
3
3
  auth_login: string;
4
+ auth_logout: string;
4
5
  auth_me: string;
5
6
  auth_wa_login: string;
6
7
  auth_wa_me: string;
7
8
  auth_otp_login_generate: string;
8
9
  auth_otp_login_verify: string;
10
+ auth_edit_user: string;
11
+ auth_latest_sessionId: string;
9
12
  aichat_questionText: string;
10
13
  aichat_transcribe: string;
11
14
  aichat_translate: string;
@@ -1 +1 @@
1
- {"version":3,"file":"nats.patterns.d.ts","sourceRoot":"","sources":["../../src/nats/nats.patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BzB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAA"}
1
+ {"version":3,"file":"nats.patterns.d.ts","sourceRoot":"","sources":["../../src/nats/nats.patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCzB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAA"}
@@ -1,11 +1,14 @@
1
1
  export const NATS_Patterns = {
2
2
  auth_register: "userauth.register",
3
3
  auth_login: "userauth.login",
4
+ auth_logout: "userauth.logout",
4
5
  auth_me: "userauth.me",
5
6
  auth_wa_login: "userauth.wa-login",
6
7
  auth_wa_me: "userauth.wa-me",
7
8
  auth_otp_login_generate: "userauth.otp-login-generate",
8
9
  auth_otp_login_verify: "userauth.otp-login-verify",
10
+ auth_edit_user: "userauth.edit-user",
11
+ auth_latest_sessionId: "userauth.latest-sessionId",
9
12
  aichat_questionText: "aichat.question-text",
10
13
  aichat_transcribe: "aichat.transcribe",
11
14
  aichat_translate: "aichat.translate",
@@ -1 +1 @@
1
- {"version":3,"file":"User.keys.d.ts","sourceRoot":"","sources":["../../src/user/User.keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAcvB,CAAA;AAED,eAAO,MAAM,mBAAmB,UAc/B,CAAA"}
1
+ {"version":3,"file":"User.keys.d.ts","sourceRoot":"","sources":["../../src/user/User.keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAgBvB,CAAA;AAED,eAAO,MAAM,mBAAmB,UAc/B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export const UserDTOKeys = [
2
+ "id",
2
3
  "email",
3
4
  "phone",
4
5
  "adminType",
@@ -12,6 +13,7 @@ export const UserDTOKeys = [
12
13
  "sessionId",
13
14
  "whatsappId",
14
15
  "customProps",
16
+ "updated_at",
15
17
  ];
16
18
  export const UserForAdminDTOKeys = [
17
19
  "id",
@@ -56,8 +56,8 @@ export type CreateUserDtoForWebApp = Omit<User, "id" | "created_at" | "updated_a
56
56
  password: string;
57
57
  };
58
58
  export type CreateUserDto = CreateUserDtoForWebApp | CreateUserDtoForWhatsApp;
59
- export type UserDTO = Omit<User, "id" | "created_at" | "updated_at"> & {
59
+ export type UserDTO = Omit<User, "created_at"> & {
60
60
  sessionId: string;
61
61
  };
62
- export type UserForAdminDTO = Omit<User, "created_at" | "updated_at" | "customProps">;
62
+ export type UserForAdminDTO = Omit<User, "created_at" | "updated_at">;
63
63
  //# sourceMappingURL=User.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"User.type.d.ts","sourceRoot":"","sources":["../../src/user/User.type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,CAAA;IACzC,aAAa,EAAE,OAAO,CAAA;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,aAAa,EAAE,aAAa,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE;SACX,GAAG,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;KAC7C,CAAA;CACF,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,GAClD,CACI;IACE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd,GACD;IACE,KAAK,EAAE,MAAM,CAAA;IACb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CAAC,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { RegisteredVia } from "./User.type";
1
2
  export type UserSession = {
2
3
  id: number;
3
4
  sessionId: string;
@@ -6,6 +7,8 @@ export type UserSession = {
6
7
  email?: string;
7
8
  phone?: string;
8
9
  whatsappId?: string;
10
+ isValid: boolean;
11
+ createdBy: RegisteredVia;
9
12
  created_at: Date;
10
13
  updated_at: Date;
11
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UserSession.type.d.ts","sourceRoot":"","sources":["../../src/user/UserSession.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}
1
+ {"version":3,"file":"UserSession.type.d.ts","sourceRoot":"","sources":["../../src/user/UserSession.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,aAAa,CAAA;IACxB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ei-dev-shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Shared components for EnAble India Projects",
5
5
  "repository": {
6
6
  "type": "git",