easyproctor 0.0.84 → 0.0.85

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 (39) hide show
  1. package/README.md +3 -2
  2. package/esm/index.js +9901 -10027
  3. package/index.d.ts +57 -1
  4. package/index.js +18841 -18980
  5. package/{dtos/ProctoringConfigDto.d.ts → interfaces/ProctoringConfig.d.ts} +1 -1
  6. package/interfaces/ProctoringRecord.d.ts +15 -0
  7. package/modules/database.d.ts +7 -0
  8. package/{plugins/recorder.d.ts → modules/recorder copy.d.ts} +0 -0
  9. package/modules/recorder.d.ts +1 -0
  10. package/modules/recorderAudio.d.ts +1 -0
  11. package/modules/startCameraCapture.d.ts +1 -1
  12. package/modules/startScreenCapture.d.ts +1 -1
  13. package/package.json +10 -2
  14. package/plugins/insights.d.ts +1 -0
  15. package/unpkg/easyproctor.min.js +26 -13
  16. package/dtos/UploadDataDTO.d.ts +0 -5
  17. package/new-flow/backend/BackendService.d.ts +0 -47
  18. package/new-flow/download/IDownloadService.d.ts +0 -4
  19. package/new-flow/download/downloadService.d.ts +0 -10
  20. package/new-flow/proctoring/ProctoringRecorder.d.ts +0 -10
  21. package/new-flow/proctoring/ProctoringSession.d.ts +0 -52
  22. package/new-flow/proctoring/ProctoringUploader.d.ts +0 -13
  23. package/new-flow/recorders/AlertRecorder.d.ts +0 -19
  24. package/new-flow/recorders/AudioRecorder.d.ts +0 -13
  25. package/new-flow/recorders/CameraRecorder.d.ts +0 -22
  26. package/new-flow/recorders/ScreenRecorder.d.ts +0 -19
  27. package/new-flow/repository/ISessionRepository.d.ts +0 -9
  28. package/new-flow/repository/IndexDbSessionRepository.d.ts +0 -17
  29. package/new-flow/upload/AwsUploadService.d.ts +0 -9
  30. package/new-flow/upload/AzureUploadService.d.ts +0 -9
  31. package/new-flow/upload/IUploadService.d.ts +0 -10
  32. package/new-flow/upload/uploadCalback.d.ts +0 -1
  33. package/plugins/MicRecorder2.d.ts +0 -11
  34. package/proctoring/DeviceChecker.d.ts +0 -13
  35. package/proctoring/options/ProctoringOptions.d.ts +0 -10
  36. package/proctoring/options/ProctoringVideoOptions.d.ts +0 -5
  37. package/proctoring/proctoring.d.ts +0 -55
  38. package/proctoring/useProctoring.d.ts +0 -29
  39. package/utils/verifyVersion.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- export interface ProctoringConfigDto {
1
+ export interface ProctoringConfig {
2
2
  azureBlobUrl: string;
3
3
  baseUrl: string;
4
4
  account: string;
@@ -0,0 +1,15 @@
1
+ import AlertDTO from "../dtos/AlertDTO";
2
+ export interface ProctoringSession {
3
+ id: string;
4
+ screenFile: File | undefined;
5
+ cameraFile: File;
6
+ audioFile: File;
7
+ alerts: AlertDTO[];
8
+ start: string;
9
+ end: string;
10
+ }
11
+ export interface ProctoringRecord {
12
+ examId: string;
13
+ id: string;
14
+ sessions: ProctoringSession[];
15
+ }
@@ -0,0 +1,7 @@
1
+ import { ProctoringRecord } from "../interfaces/ProctoringRecord";
2
+ declare type Tables = "exams";
3
+ export declare function initializeDatabase(table: string): Promise<IDBObjectStore>;
4
+ export declare function insertRecord(table: Tables, data: ProctoringRecord): Promise<void>;
5
+ export declare function getRecord(table: Tables): Promise<ProctoringRecord | null>;
6
+ export declare function clearBuffers(table: Tables): Promise<void>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export default function recorder(stream: MediaStream, buffer: Blob[]): () => Promise<void>;
@@ -0,0 +1 @@
1
+ export default function recorder(stream: MediaStream, buffer: Blob[]): () => Promise<void>;
@@ -6,5 +6,5 @@ export default function startCameraCapture(buffer: Blob[], options?: {
6
6
  height?: number;
7
7
  }): Promise<{
8
8
  cameraStream: MediaStream;
9
- stopCameraRecording: any;
9
+ stopCameraRecording: () => Promise<void>;
10
10
  }>;
@@ -3,5 +3,5 @@ export default function startScreenCapture(buffer: Blob[], options: {
3
3
  onStopSharingScreenCallback: () => void;
4
4
  }): Promise<{
5
5
  screenStream: MediaStream;
6
- stopScreenRecorder: any;
6
+ stopScreenRecorder: () => Promise<void>;
7
7
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -22,8 +22,11 @@
22
22
  "author": "Igor Dantas",
23
23
  "license": "ISC",
24
24
  "devDependencies": {
25
+ "@aws-sdk/s3-request-presigner": "^3.199.0",
26
+ "@types/crypto-js": "^4.1.1",
25
27
  "@types/dom-mediacapture-record": "^1.0.11",
26
28
  "@types/ebml": "^3.0.2",
29
+ "@types/node": "^18.11.9",
27
30
  "@types/recordrtc": "^5.6.8",
28
31
  "@typescript-eslint/eslint-plugin": "^5.8.0",
29
32
  "@typescript-eslint/parser": "^5.8.0",
@@ -39,10 +42,15 @@
39
42
  "@aws-sdk/xhr-http-handler": "^3.171.0",
40
43
  "@azure/storage-blob": "^12.8.0",
41
44
  "@microsoft/applicationinsights-web": "^2.7.4",
42
- "aws-sdk": "^2.1220.0",
45
+ "aws-sdk": "^2.1243.0",
46
+ "aws4": "^1.11.0",
47
+ "aws4-axios": "^2.4.9",
43
48
  "axios": "^1.1.3",
44
49
  "buffer": "^6.0.3",
50
+ "crypto-browserify": "^3.12.0",
51
+ "crypto-js": "^4.1.1",
45
52
  "ebml": "^3.0.0",
53
+ "jshashes": "^1.0.8",
46
54
  "recordrtc": "^5.6.2",
47
55
  "ts-ebml": "^2.0.2"
48
56
  }
@@ -9,5 +9,6 @@ declare const trackers: {
9
9
  registerFinish: (proctoringId: string, success: boolean, description: string) => void;
10
10
  registerError: (proctoringId: string, description: string) => void;
11
11
  registerUploadVideo: (proctoringId: string, success: boolean, description: string, uploadTime?: number) => void;
12
+ registerRecord: (proctoringId: string, success: boolean, description: string) => void;
12
13
  };
13
14
  export { trackers, init };