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.
- package/README.md +3 -2
- package/esm/index.js +9901 -10027
- package/index.d.ts +57 -1
- package/index.js +18841 -18980
- package/{dtos/ProctoringConfigDto.d.ts → interfaces/ProctoringConfig.d.ts} +1 -1
- package/interfaces/ProctoringRecord.d.ts +15 -0
- package/modules/database.d.ts +7 -0
- package/{plugins/recorder.d.ts → modules/recorder copy.d.ts} +0 -0
- package/modules/recorder.d.ts +1 -0
- package/modules/recorderAudio.d.ts +1 -0
- package/modules/startCameraCapture.d.ts +1 -1
- package/modules/startScreenCapture.d.ts +1 -1
- package/package.json +10 -2
- package/plugins/insights.d.ts +1 -0
- package/unpkg/easyproctor.min.js +26 -13
- package/dtos/UploadDataDTO.d.ts +0 -5
- package/new-flow/backend/BackendService.d.ts +0 -47
- package/new-flow/download/IDownloadService.d.ts +0 -4
- package/new-flow/download/downloadService.d.ts +0 -10
- package/new-flow/proctoring/ProctoringRecorder.d.ts +0 -10
- package/new-flow/proctoring/ProctoringSession.d.ts +0 -52
- package/new-flow/proctoring/ProctoringUploader.d.ts +0 -13
- package/new-flow/recorders/AlertRecorder.d.ts +0 -19
- package/new-flow/recorders/AudioRecorder.d.ts +0 -13
- package/new-flow/recorders/CameraRecorder.d.ts +0 -22
- package/new-flow/recorders/ScreenRecorder.d.ts +0 -19
- package/new-flow/repository/ISessionRepository.d.ts +0 -9
- package/new-flow/repository/IndexDbSessionRepository.d.ts +0 -17
- package/new-flow/upload/AwsUploadService.d.ts +0 -9
- package/new-flow/upload/AzureUploadService.d.ts +0 -9
- package/new-flow/upload/IUploadService.d.ts +0 -10
- package/new-flow/upload/uploadCalback.d.ts +0 -1
- package/plugins/MicRecorder2.d.ts +0 -11
- package/proctoring/DeviceChecker.d.ts +0 -13
- package/proctoring/options/ProctoringOptions.d.ts +0 -10
- package/proctoring/options/ProctoringVideoOptions.d.ts +0 -5
- package/proctoring/proctoring.d.ts +0 -55
- package/proctoring/useProctoring.d.ts +0 -29
- package/utils/verifyVersion.d.ts +0 -1
|
@@ -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 {};
|
|
File without changes
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easyproctor",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
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
|
}
|
package/plugins/insights.d.ts
CHANGED
|
@@ -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 };
|