easyproctor-hml 2.3.2 → 2.4.0
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/dtos/AlertDTO.d.ts +5 -5
- package/dtos/SaveScreenDTO.d.ts +5 -5
- package/dtos/SessionDTO.d.ts +10 -10
- package/dtos/StartProctoringResponse.d.ts +12 -12
- package/dtos/UploadDataDTO.d.ts +5 -5
- package/errors/errors.d.ts +18 -19
- package/esm/index.js +4435 -9304
- package/extension/extensionEasyCatcher.d.ts +11 -0
- package/extension/{extension.d.ts → extensionEasyProctor.d.ts} +11 -11
- package/index.d.ts +1 -1
- package/index.js +2445 -10154
- package/interfaces/Devices.d.ts +12 -11
- package/interfaces/ParamsConfig.d.ts +34 -34
- package/modules/BaseDetection.d.ts +39 -39
- package/modules/SpyCam.d.ts +31 -31
- package/modules/checkPermissions.d.ts +2 -2
- package/modules/enumarateDevices.d.ts +2 -2
- package/modules/faceDetection.d.ts +15 -15
- package/modules/objectDetection.d.ts +15 -15
- package/modules/onChangeDevices.d.ts +12 -9
- package/new-flow/backend/BackendService.d.ts +47 -48
- package/new-flow/backend/SpyCamBackendService.d.ts +27 -27
- package/new-flow/checkers/DeviceCheckerService.d.ts +61 -59
- package/new-flow/checkers/DeviceCheckerUI.d.ts +51 -51
- package/new-flow/download/IDownloadService.d.ts +4 -4
- package/new-flow/download/downloadService.d.ts +9 -9
- package/new-flow/proctoring/ProctoringRecorder.d.ts +12 -12
- package/new-flow/proctoring/ProctoringSession.d.ts +66 -65
- package/new-flow/proctoring/ProctoringUploader.d.ts +14 -14
- package/new-flow/recorders/AlertRecorder.d.ts +25 -21
- package/new-flow/recorders/AudioRecorder.d.ts +24 -24
- package/new-flow/recorders/CameraRecorder.d.ts +69 -69
- package/new-flow/recorders/IRecorder.d.ts +12 -12
- package/new-flow/recorders/NoiseRecorder.d.ts +46 -46
- package/new-flow/recorders/ScreenRecorder.d.ts +34 -30
- package/new-flow/recorders/VolumeMeter.d.ts +14 -14
- package/new-flow/repository/ISessionRepository.d.ts +11 -11
- package/new-flow/repository/IndexDbSessionRepository.d.ts +20 -20
- package/new-flow/upload/IUploadService.d.ts +10 -10
- package/new-flow/upload/UploadService.d.ts +13 -13
- package/new-flow/upload/uploadCalback.d.ts +1 -1
- package/package.json +2 -5
- package/plugins/insights.d.ts +20 -19
- package/plugins/recorder.d.ts +9 -9
- package/proctoring/Auth.d.ts +11 -11
- package/proctoring/CapturePhoto.d.ts +21 -21
- package/proctoring/DeviceChecker.d.ts +57 -57
- package/proctoring/SignTerm.d.ts +15 -15
- package/proctoring/options/ProctoringOptions.d.ts +19 -15
- package/proctoring/options/ProctoringVideoOptions.d.ts +8 -8
- package/proctoring/proctoring.d.ts +89 -83
- package/proctoring/useProctoring.d.ts +26 -25
- package/unpkg/easyproctor.min.js +44 -52
- package/utils/browserInformations.d.ts +1 -1
- package/utils/geolocation.d.ts +15 -15
- package/utils/time.d.ts +3 -3
- package/utils/verifyVersion.d.ts +1 -1
- package/proctoring/ExternalCameraChecker.d.ts +0 -47
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import IParamsConfig from "../../interfaces/ParamsConfig";
|
|
2
|
-
import { BackendService } from "../backend/BackendService";
|
|
3
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
4
|
-
import { CameraRecorder } from "./CameraRecorder";
|
|
5
|
-
import { UploadService } from "../upload/UploadService";
|
|
6
|
-
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
7
|
-
import { IRecorder } from "./IRecorder";
|
|
8
|
-
export declare class NoiseRecorder implements IRecorder {
|
|
9
|
-
private onRealtimeAlertsCallback;
|
|
10
|
-
private optionsProctoring;
|
|
11
|
-
private proctoringSession;
|
|
12
|
-
private cameraRecorder;
|
|
13
|
-
private audioRecorder;
|
|
14
|
-
private intervalNoiseDetection;
|
|
15
|
-
private volumeMeter;
|
|
16
|
-
private recordingInProgress;
|
|
17
|
-
private paramsConfig;
|
|
18
|
-
private recordIndex;
|
|
19
|
-
private countLoopTimes;
|
|
20
|
-
private examStartTime;
|
|
21
|
-
private recordingStartTime;
|
|
22
|
-
private recordingEndTime;
|
|
23
|
-
private isSpeech;
|
|
24
|
-
private audioClassifier;
|
|
25
|
-
private audioClassificationResult;
|
|
26
|
-
private context;
|
|
27
|
-
private audioWorkletNode;
|
|
28
|
-
upload: UploadService | undefined;
|
|
29
|
-
backend: BackendService | undefined;
|
|
30
|
-
backendToken: string | undefined;
|
|
31
|
-
proctoringId: string | undefined;
|
|
32
|
-
constructor(optionsProctoring: ProctoringSessionOptions, proctoringSession: ProctoringSession, paramsConfig: IParamsConfig, cameraRecorder: CameraRecorder, onRealtimeAlertsCallback: (response: any) => void, backend?: BackendService, backendToken?: string);
|
|
33
|
-
setProctoringId(proctoringId: string): void;
|
|
34
|
-
startRecording(): Promise<void>;
|
|
35
|
-
stopRecording(): Promise<void>;
|
|
36
|
-
pauseRecording(): Promise<void>;
|
|
37
|
-
resumeRecording(): Promise<void>;
|
|
38
|
-
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
39
|
-
private onNoiseDetectedRecord;
|
|
40
|
-
private stopSoundRecord;
|
|
41
|
-
private download;
|
|
42
|
-
private uploadRecord;
|
|
43
|
-
private hasDesiredResult;
|
|
44
|
-
private createAudioClassifier;
|
|
45
|
-
private streamingAudioClassification;
|
|
46
|
-
}
|
|
1
|
+
import IParamsConfig from "../../interfaces/ParamsConfig";
|
|
2
|
+
import { BackendService } from "../backend/BackendService";
|
|
3
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
4
|
+
import { CameraRecorder } from "./CameraRecorder";
|
|
5
|
+
import { UploadService } from "../upload/UploadService";
|
|
6
|
+
import { ProctoringSessionOptions } from "../../proctoring/options/ProctoringOptions";
|
|
7
|
+
import { IRecorder } from "./IRecorder";
|
|
8
|
+
export declare class NoiseRecorder implements IRecorder {
|
|
9
|
+
private onRealtimeAlertsCallback;
|
|
10
|
+
private optionsProctoring;
|
|
11
|
+
private proctoringSession;
|
|
12
|
+
private cameraRecorder;
|
|
13
|
+
private audioRecorder;
|
|
14
|
+
private intervalNoiseDetection;
|
|
15
|
+
private volumeMeter;
|
|
16
|
+
private recordingInProgress;
|
|
17
|
+
private paramsConfig;
|
|
18
|
+
private recordIndex;
|
|
19
|
+
private countLoopTimes;
|
|
20
|
+
private examStartTime;
|
|
21
|
+
private recordingStartTime;
|
|
22
|
+
private recordingEndTime;
|
|
23
|
+
private isSpeech;
|
|
24
|
+
private audioClassifier;
|
|
25
|
+
private audioClassificationResult;
|
|
26
|
+
private context;
|
|
27
|
+
private audioWorkletNode;
|
|
28
|
+
upload: UploadService | undefined;
|
|
29
|
+
backend: BackendService | undefined;
|
|
30
|
+
backendToken: string | undefined;
|
|
31
|
+
proctoringId: string | undefined;
|
|
32
|
+
constructor(optionsProctoring: ProctoringSessionOptions, proctoringSession: ProctoringSession, paramsConfig: IParamsConfig, cameraRecorder: CameraRecorder, onRealtimeAlertsCallback: (response: any) => void, backend?: BackendService, backendToken?: string);
|
|
33
|
+
setProctoringId(proctoringId: string): void;
|
|
34
|
+
startRecording(): Promise<void>;
|
|
35
|
+
stopRecording(): Promise<void>;
|
|
36
|
+
pauseRecording(): Promise<void>;
|
|
37
|
+
resumeRecording(): Promise<void>;
|
|
38
|
+
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
39
|
+
private onNoiseDetectedRecord;
|
|
40
|
+
private stopSoundRecord;
|
|
41
|
+
private download;
|
|
42
|
+
private uploadRecord;
|
|
43
|
+
private hasDesiredResult;
|
|
44
|
+
private createAudioClassifier;
|
|
45
|
+
private streamingAudioClassification;
|
|
46
|
+
}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { RecordRTCPromisesHandler } from "recordrtc";
|
|
2
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
-
import { IRecorder } from "./IRecorder";
|
|
4
|
-
export declare class ScreenRecorder implements IRecorder {
|
|
5
|
-
private blobs;
|
|
6
|
-
private blobsFinal;
|
|
7
|
-
private options;
|
|
8
|
-
recorder: RecordRTCPromisesHandler | undefined;
|
|
9
|
-
screenStream: MediaStream | undefined;
|
|
10
|
-
proctoringId: string | undefined;
|
|
11
|
-
startTime: Date | undefined;
|
|
12
|
-
constructor(options: {
|
|
13
|
-
allowOnlyFirstMonitor: boolean;
|
|
14
|
-
allowMultipleMonitors: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { RecordRTCPromisesHandler } from "recordrtc";
|
|
2
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
+
import { IRecorder } from "./IRecorder";
|
|
4
|
+
export declare class ScreenRecorder implements IRecorder {
|
|
5
|
+
private blobs;
|
|
6
|
+
private blobsFinal;
|
|
7
|
+
private options;
|
|
8
|
+
recorder: RecordRTCPromisesHandler | undefined;
|
|
9
|
+
screenStream: MediaStream | undefined;
|
|
10
|
+
proctoringId: string | undefined;
|
|
11
|
+
startTime: Date | undefined;
|
|
12
|
+
constructor(options: {
|
|
13
|
+
allowOnlyFirstMonitor: boolean;
|
|
14
|
+
allowMultipleMonitors: boolean;
|
|
15
|
+
screenRecorderOptions: {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
onStopSharingScreenCallback: () => void;
|
|
20
|
+
onBufferSizeError?: boolean;
|
|
21
|
+
onBufferSizeErrorCallback: () => void;
|
|
22
|
+
});
|
|
23
|
+
file?: File;
|
|
24
|
+
recordingStart: () => any;
|
|
25
|
+
recordingStop: () => any;
|
|
26
|
+
recordingPause: () => any;
|
|
27
|
+
recordingResume: () => any;
|
|
28
|
+
setProctoringId(proctoringId: string): void;
|
|
29
|
+
startRecording(): Promise<void>;
|
|
30
|
+
pauseRecording(): Promise<void>;
|
|
31
|
+
resumeRecording(): Promise<void>;
|
|
32
|
+
stopRecording(): Promise<void>;
|
|
33
|
+
saveOnSession(session: ProctoringSession): Promise<void>;
|
|
34
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface VolumeMeterOptions {
|
|
2
|
-
setVolume?: (volume: number) => void;
|
|
3
|
-
}
|
|
4
|
-
export declare class VolumeMeter {
|
|
5
|
-
private volume;
|
|
6
|
-
private stream;
|
|
7
|
-
private analyser;
|
|
8
|
-
private animationFrameId;
|
|
9
|
-
constructor(stream: MediaStream);
|
|
10
|
-
start(options?: VolumeMeterOptions): Promise<any>;
|
|
11
|
-
stop(): void;
|
|
12
|
-
getVolume(): number | null;
|
|
13
|
-
private setVolume;
|
|
14
|
-
}
|
|
1
|
+
export interface VolumeMeterOptions {
|
|
2
|
+
setVolume?: (volume: number) => void;
|
|
3
|
+
}
|
|
4
|
+
export declare class VolumeMeter {
|
|
5
|
+
private volume;
|
|
6
|
+
private stream;
|
|
7
|
+
private analyser;
|
|
8
|
+
private animationFrameId;
|
|
9
|
+
constructor(stream: MediaStream);
|
|
10
|
+
start(options?: VolumeMeterOptions): Promise<any>;
|
|
11
|
+
stop(): void;
|
|
12
|
+
getVolume(): number | null;
|
|
13
|
+
private setVolume;
|
|
14
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Devices, { DevicesChanged } from "../../interfaces/Devices";
|
|
2
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
-
export interface ISessionRepository {
|
|
4
|
-
save(data: Devices | DevicesChanged | ProctoringSession): Promise<void>;
|
|
5
|
-
list(): Promise<ProctoringSession[] | Devices[]>;
|
|
6
|
-
delete(id: string): Promise<void>;
|
|
7
|
-
get(id: string): Promise<ProctoringSession | undefined>;
|
|
8
|
-
getDevices(id: string): Promise<Devices | undefined>;
|
|
9
|
-
clear(): Promise<void>;
|
|
10
|
-
hasSessions(): Promise<boolean>;
|
|
11
|
-
}
|
|
1
|
+
import Devices, { DevicesChanged } from "../../interfaces/Devices";
|
|
2
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
+
export interface ISessionRepository {
|
|
4
|
+
save(data: Devices | DevicesChanged | ProctoringSession): Promise<void>;
|
|
5
|
+
list(): Promise<ProctoringSession[] | Devices[]>;
|
|
6
|
+
delete(id: string): Promise<void>;
|
|
7
|
+
get(id: string): Promise<ProctoringSession | undefined>;
|
|
8
|
+
getDevices(id: string): Promise<Devices | undefined>;
|
|
9
|
+
clear(): Promise<void>;
|
|
10
|
+
hasSessions(): Promise<boolean>;
|
|
11
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import Devices, { DevicesChanged } from "../../interfaces/Devices";
|
|
2
|
-
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
-
import { ISessionRepository } from "./ISessionRepository";
|
|
4
|
-
export declare class IndexDbSessionRepository implements ISessionRepository {
|
|
5
|
-
private dbName;
|
|
6
|
-
private dbVersion;
|
|
7
|
-
private storeName;
|
|
8
|
-
constructor(dbName: string, storeName: string);
|
|
9
|
-
save(data: Devices | DevicesChanged | ProctoringSession): Promise<void>;
|
|
10
|
-
delete(id: string): Promise<void>;
|
|
11
|
-
get(id: string): Promise<ProctoringSession | undefined>;
|
|
12
|
-
getDevices(id: string): Promise<Devices | undefined>;
|
|
13
|
-
list(): Promise<ProctoringSession[] | Devices[]>;
|
|
14
|
-
clear(): Promise<void>;
|
|
15
|
-
private processRequest;
|
|
16
|
-
hasSessions(): Promise<boolean>;
|
|
17
|
-
private connection?;
|
|
18
|
-
private connectToStore;
|
|
19
|
-
private connect;
|
|
20
|
-
}
|
|
1
|
+
import Devices, { DevicesChanged } from "../../interfaces/Devices";
|
|
2
|
+
import { ProctoringSession } from "../proctoring/ProctoringSession";
|
|
3
|
+
import { ISessionRepository } from "./ISessionRepository";
|
|
4
|
+
export declare class IndexDbSessionRepository implements ISessionRepository {
|
|
5
|
+
private dbName;
|
|
6
|
+
private dbVersion;
|
|
7
|
+
private storeName;
|
|
8
|
+
constructor(dbName: string, storeName: string);
|
|
9
|
+
save(data: Devices | DevicesChanged | ProctoringSession): Promise<void>;
|
|
10
|
+
delete(id: string): Promise<void>;
|
|
11
|
+
get(id: string): Promise<ProctoringSession | undefined>;
|
|
12
|
+
getDevices(id: string): Promise<Devices | undefined>;
|
|
13
|
+
list(): Promise<ProctoringSession[] | Devices[]>;
|
|
14
|
+
clear(): Promise<void>;
|
|
15
|
+
private processRequest;
|
|
16
|
+
hasSessions(): Promise<boolean>;
|
|
17
|
+
private connection?;
|
|
18
|
+
private connectToStore;
|
|
19
|
+
private connect;
|
|
20
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
-
import { StorageService } from "../proctoring/ProctoringSession";
|
|
3
|
-
export interface UploadResult {
|
|
4
|
-
storage: StorageService;
|
|
5
|
-
url: string | undefined;
|
|
6
|
-
uploaded: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface IUploadService {
|
|
9
|
-
upload(data: UploadDataDTO, token: string): Promise<UploadResult>;
|
|
10
|
-
}
|
|
1
|
+
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
+
import { StorageService } from "../proctoring/ProctoringSession";
|
|
3
|
+
export interface UploadResult {
|
|
4
|
+
storage: StorageService;
|
|
5
|
+
url: string | undefined;
|
|
6
|
+
uploaded: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IUploadService {
|
|
9
|
+
upload(data: UploadDataDTO, token: string): Promise<UploadResult>;
|
|
10
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
-
import { BackendService } from "../backend/BackendService";
|
|
3
|
-
import { IUploadService, UploadResult } from "./IUploadService";
|
|
4
|
-
export declare class UploadService implements IUploadService {
|
|
5
|
-
private readonly backend;
|
|
6
|
-
private readonly proctoringId;
|
|
7
|
-
private imageUrlPackage;
|
|
8
|
-
private imageBatchNum;
|
|
9
|
-
private contImages;
|
|
10
|
-
constructor(proctoringId: string, backend: BackendService);
|
|
11
|
-
uploadImages(data: UploadDataDTO, token: string, packSize: number): Promise<UploadResult>;
|
|
12
|
-
upload(data: UploadDataDTO, token: string, image?: boolean): Promise<UploadResult>;
|
|
13
|
-
}
|
|
1
|
+
import UploadDataDTO from "../../dtos/UploadDataDTO";
|
|
2
|
+
import { BackendService } from "../backend/BackendService";
|
|
3
|
+
import { IUploadService, UploadResult } from "./IUploadService";
|
|
4
|
+
export declare class UploadService implements IUploadService {
|
|
5
|
+
private readonly backend;
|
|
6
|
+
private readonly proctoringId;
|
|
7
|
+
private imageUrlPackage;
|
|
8
|
+
private imageBatchNum;
|
|
9
|
+
private contImages;
|
|
10
|
+
constructor(proctoringId: string, backend: BackendService);
|
|
11
|
+
uploadImages(data: UploadDataDTO, token: string, packSize: number): Promise<UploadResult>;
|
|
12
|
+
upload(data: UploadDataDTO, token: string, image?: boolean): Promise<UploadResult>;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ProgressCallback = (percentage: number) => void;
|
|
1
|
+
export type ProgressCallback = (percentage: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easyproctor-hml",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Modulo web de gravação do EasyProctor",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -24,11 +24,10 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/dom-mediacapture-record": "^1.0.11",
|
|
26
26
|
"@types/file-saver": "^2.0.7",
|
|
27
|
-
"@types/qrcode": "^1.5.5",
|
|
28
27
|
"@types/recordrtc": "^5.6.8",
|
|
29
28
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
|
30
29
|
"@typescript-eslint/parser": "^5.8.0",
|
|
31
|
-
"esbuild": "^0.
|
|
30
|
+
"esbuild": "^0.14.47",
|
|
32
31
|
"esbuild-serve": "^1.0.1",
|
|
33
32
|
"eslint": "^8.2.0",
|
|
34
33
|
"eslint-plugin-html": "^6.2.0",
|
|
@@ -37,10 +36,8 @@
|
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"@mediapipe/tasks-audio": "^0.10.9",
|
|
39
38
|
"@mediapipe/tasks-vision": "^0.10.9",
|
|
40
|
-
"@microsoft/signalr": "^9.0.6",
|
|
41
39
|
"axios": "^1.1.3",
|
|
42
40
|
"file-saver": "^2.0.5",
|
|
43
|
-
"qrcode": "^1.5.4",
|
|
44
41
|
"recordrtc": "^5.6.2"
|
|
45
42
|
}
|
|
46
43
|
}
|
package/plugins/insights.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { ServiceType } from '../proctoring/proctoring';
|
|
2
|
-
import { BackendService } from '../new-flow/backend/BackendService';
|
|
3
|
-
declare const init: (backend: BackendService) => BackendService;
|
|
4
|
-
declare const trackers: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { ServiceType } from '../proctoring/proctoring';
|
|
2
|
+
import { BackendService } from '../new-flow/backend/BackendService';
|
|
3
|
+
declare const init: (backend: BackendService) => BackendService;
|
|
4
|
+
declare const trackers: {
|
|
5
|
+
registerDevicesChecked: (proctoringId: string, success: boolean, description: string) => Promise<string>;
|
|
6
|
+
registerStart: (proctoringId: string, success: boolean, description: string) => Promise<string>;
|
|
7
|
+
registerFinish: (proctoringId: string, success: boolean, description: string) => Promise<string>;
|
|
8
|
+
registerError: (proctoringId: string, description: string) => Promise<string>;
|
|
9
|
+
registerBrowserNotSupported: (proctoringId: string, description: string) => Promise<string>;
|
|
10
|
+
registerUpload: (proctoringId: string, success: boolean, description: string, serviceType: ServiceType, uploadTime?: number) => Promise<string>;
|
|
11
|
+
registerUploadFile: (proctoringId: string, description: string, fileType: string) => Promise<string>;
|
|
12
|
+
registerChangeDevice: (proctoringId: string, inOrOut: string, description: string) => Promise<string>;
|
|
13
|
+
registerStopSharingScreen: (proctoringId: string, description: string) => Promise<string>;
|
|
14
|
+
registerErrorRecorderRTC: (proctoringId: string, description: string) => Promise<string>;
|
|
15
|
+
registerDownloadFile: (proctoringId: string, description: string) => Promise<string>;
|
|
16
|
+
registerOnBufferSizeError: (proctoringId: string, description: string) => Promise<string>;
|
|
17
|
+
registerAnotherStream: (proctoringId: string, description: string) => Promise<string>;
|
|
18
|
+
registerSaveOnSession: (proctoringId: string, description: string) => Promise<string>;
|
|
19
|
+
};
|
|
20
|
+
export { trackers, init };
|
package/plugins/recorder.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare function setRecorderProctoringId(id: string): void;
|
|
2
|
-
export default function recorder(stream: MediaStream, buffer: Blob[], onBufferSizeError?: boolean, onBufferSizeErrorCallback?: (e?: any) => void, audio?: boolean): {
|
|
3
|
-
startRecording: () => Promise<void>;
|
|
4
|
-
stopRecording: () => Promise<void>;
|
|
5
|
-
pauseRecording: () => Promise<void>;
|
|
6
|
-
resumeRecording: () => Promise<void>;
|
|
7
|
-
recorderOptions: MediaRecorderOptions;
|
|
8
|
-
getBufferSize: () => number;
|
|
9
|
-
};
|
|
1
|
+
export declare function setRecorderProctoringId(id: string): void;
|
|
2
|
+
export default function recorder(stream: MediaStream, buffer: Blob[], onBufferSizeError?: boolean, onBufferSizeErrorCallback?: (e?: any) => void, audio?: boolean): {
|
|
3
|
+
startRecording: () => Promise<void>;
|
|
4
|
+
stopRecording: () => Promise<void>;
|
|
5
|
+
pauseRecording: () => Promise<void>;
|
|
6
|
+
resumeRecording: () => Promise<void>;
|
|
7
|
+
recorderOptions: MediaRecorderOptions;
|
|
8
|
+
getBufferSize: () => number;
|
|
9
|
+
};
|
package/proctoring/Auth.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BackendService } from "../new-flow/backend/BackendService";
|
|
2
|
-
export declare class Auth {
|
|
3
|
-
private capturePhoto;
|
|
4
|
-
private backend;
|
|
5
|
-
private cpf;
|
|
6
|
-
private base64;
|
|
7
|
-
private token;
|
|
8
|
-
constructor(cpf: string, backend: BackendService);
|
|
9
|
-
login(): Promise<string>;
|
|
10
|
-
loading(): void;
|
|
11
|
-
}
|
|
1
|
+
import { BackendService } from "../new-flow/backend/BackendService";
|
|
2
|
+
export declare class Auth {
|
|
3
|
+
private capturePhoto;
|
|
4
|
+
private backend;
|
|
5
|
+
private cpf;
|
|
6
|
+
private base64;
|
|
7
|
+
private token;
|
|
8
|
+
constructor(cpf: string, backend: BackendService);
|
|
9
|
+
login(): Promise<string>;
|
|
10
|
+
loading(): void;
|
|
11
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export interface cameraInterface {
|
|
2
|
-
base64: string;
|
|
3
|
-
}
|
|
4
|
-
export interface IResolution {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class CapturePhoto {
|
|
9
|
-
private cameraRecorder;
|
|
10
|
-
private base64;
|
|
11
|
-
private resolution;
|
|
12
|
-
constructor();
|
|
13
|
-
takePicture(title: string, subtitle: string, resolution?: IResolution): Promise<cameraInterface>;
|
|
14
|
-
startCapture(cameraId?: string): Promise<void>;
|
|
15
|
-
shot(): void;
|
|
16
|
-
private takePictureInterface;
|
|
17
|
-
private setSelectOption;
|
|
18
|
-
private onSelectOptionChange;
|
|
19
|
-
private closeInterface;
|
|
20
|
-
private addStyleMask;
|
|
21
|
-
}
|
|
1
|
+
export interface cameraInterface {
|
|
2
|
+
base64: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IResolution {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class CapturePhoto {
|
|
9
|
+
private cameraRecorder;
|
|
10
|
+
private base64;
|
|
11
|
+
private resolution;
|
|
12
|
+
constructor();
|
|
13
|
+
takePicture(title: string, subtitle: string, resolution?: IResolution): Promise<cameraInterface>;
|
|
14
|
+
startCapture(cameraId?: string): Promise<void>;
|
|
15
|
+
shot(): void;
|
|
16
|
+
private takePictureInterface;
|
|
17
|
+
private setSelectOption;
|
|
18
|
+
private onSelectOptionChange;
|
|
19
|
+
private closeInterface;
|
|
20
|
+
private addStyleMask;
|
|
21
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { ProctoringSessionOptions } from "./options/ProctoringOptions";
|
|
2
|
-
import { ProctoringVideoOptions } from "./options/ProctoringVideoOptions";
|
|
3
|
-
import { ProctoringContext } from "./proctoring";
|
|
4
|
-
export interface checkDevicesInterfaceReturn {
|
|
5
|
-
cameraId: string;
|
|
6
|
-
microphoneId: string;
|
|
7
|
-
result: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface checkDevicesReturn {
|
|
10
|
-
cameraId: string;
|
|
11
|
-
microphoneId: string;
|
|
12
|
-
volumeRange: number;
|
|
13
|
-
allowedResolution: boolean;
|
|
14
|
-
allowedAmbient: boolean;
|
|
15
|
-
allowedPositionFace: boolean;
|
|
16
|
-
allowedMicrophone: boolean;
|
|
17
|
-
result: boolean;
|
|
18
|
-
faceDetectionAlerts: {
|
|
19
|
-
status: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare class DeviceChecker {
|
|
24
|
-
private static isModalOpen;
|
|
25
|
-
private options;
|
|
26
|
-
private videoOptions;
|
|
27
|
-
private cameraRecorder;
|
|
28
|
-
private volumeMeter;
|
|
29
|
-
private volumeMedia;
|
|
30
|
-
private volumeSum;
|
|
31
|
-
private volumeCounter;
|
|
32
|
-
private faceDetection;
|
|
33
|
-
private faceDetectionAlerts;
|
|
34
|
-
private microphoneMinThreshold;
|
|
35
|
-
private allowedResolution;
|
|
36
|
-
private allowedAmbient;
|
|
37
|
-
private allowedPositionFace;
|
|
38
|
-
private allowedMicrophone;
|
|
39
|
-
private readonly backend;
|
|
40
|
-
private readonly context;
|
|
41
|
-
private noiseLimit;
|
|
42
|
-
constructor(context: ProctoringContext);
|
|
43
|
-
checkDevices(options: ProctoringSessionOptions | undefined, _videoOptions: ProctoringVideoOptions): Promise<checkDevicesReturn>;
|
|
44
|
-
private isUnderResolution;
|
|
45
|
-
private realtimeAlerts;
|
|
46
|
-
private addStyleMask;
|
|
47
|
-
private checkDevicesInterface;
|
|
48
|
-
private videoDeviceInterface;
|
|
49
|
-
private audioDeviceInterface;
|
|
50
|
-
private setSelectOption;
|
|
51
|
-
private onSelectOptionChange;
|
|
52
|
-
startCheckDevices(options: ProctoringSessionOptions | undefined, _videoOptions: Partial<ProctoringVideoOptions>): Promise<{
|
|
53
|
-
cameraStream: MediaStream;
|
|
54
|
-
}>;
|
|
55
|
-
closeCheckDevices(): Promise<void>;
|
|
56
|
-
applyStyles(element: any, styles: any): void;
|
|
57
|
-
}
|
|
1
|
+
import { ProctoringSessionOptions } from "./options/ProctoringOptions";
|
|
2
|
+
import { ProctoringVideoOptions } from "./options/ProctoringVideoOptions";
|
|
3
|
+
import { ProctoringContext } from "./proctoring";
|
|
4
|
+
export interface checkDevicesInterfaceReturn {
|
|
5
|
+
cameraId: string;
|
|
6
|
+
microphoneId: string;
|
|
7
|
+
result: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface checkDevicesReturn {
|
|
10
|
+
cameraId: string;
|
|
11
|
+
microphoneId: string;
|
|
12
|
+
volumeRange: number;
|
|
13
|
+
allowedResolution: boolean;
|
|
14
|
+
allowedAmbient: boolean;
|
|
15
|
+
allowedPositionFace: boolean;
|
|
16
|
+
allowedMicrophone: boolean;
|
|
17
|
+
result: boolean;
|
|
18
|
+
faceDetectionAlerts: {
|
|
19
|
+
status: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare class DeviceChecker {
|
|
24
|
+
private static isModalOpen;
|
|
25
|
+
private options;
|
|
26
|
+
private videoOptions;
|
|
27
|
+
private cameraRecorder;
|
|
28
|
+
private volumeMeter;
|
|
29
|
+
private volumeMedia;
|
|
30
|
+
private volumeSum;
|
|
31
|
+
private volumeCounter;
|
|
32
|
+
private faceDetection;
|
|
33
|
+
private faceDetectionAlerts;
|
|
34
|
+
private microphoneMinThreshold;
|
|
35
|
+
private allowedResolution;
|
|
36
|
+
private allowedAmbient;
|
|
37
|
+
private allowedPositionFace;
|
|
38
|
+
private allowedMicrophone;
|
|
39
|
+
private readonly backend;
|
|
40
|
+
private readonly context;
|
|
41
|
+
private noiseLimit;
|
|
42
|
+
constructor(context: ProctoringContext);
|
|
43
|
+
checkDevices(options: ProctoringSessionOptions | undefined, _videoOptions: ProctoringVideoOptions): Promise<checkDevicesReturn>;
|
|
44
|
+
private isUnderResolution;
|
|
45
|
+
private realtimeAlerts;
|
|
46
|
+
private addStyleMask;
|
|
47
|
+
private checkDevicesInterface;
|
|
48
|
+
private videoDeviceInterface;
|
|
49
|
+
private audioDeviceInterface;
|
|
50
|
+
private setSelectOption;
|
|
51
|
+
private onSelectOptionChange;
|
|
52
|
+
startCheckDevices(options: ProctoringSessionOptions | undefined, _videoOptions: Partial<ProctoringVideoOptions>): Promise<{
|
|
53
|
+
cameraStream: MediaStream;
|
|
54
|
+
}>;
|
|
55
|
+
closeCheckDevices(): Promise<void>;
|
|
56
|
+
applyStyles(element: any, styles: any): void;
|
|
57
|
+
}
|
package/proctoring/SignTerm.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ProctoringContext } from "./proctoring";
|
|
2
|
-
export interface SignTermInterface {
|
|
3
|
-
cameraId: string;
|
|
4
|
-
microphoneId: string;
|
|
5
|
-
result: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class SignTerm {
|
|
8
|
-
private static isModalOpen;
|
|
9
|
-
private readonly backend;
|
|
10
|
-
constructor(context: ProctoringContext);
|
|
11
|
-
signInTerms(): Promise<any>;
|
|
12
|
-
private openModal;
|
|
13
|
-
closeModal(): Promise<void>;
|
|
14
|
-
applyStyles(element: any, styles: any): void;
|
|
15
|
-
}
|
|
1
|
+
import { ProctoringContext } from "./proctoring";
|
|
2
|
+
export interface SignTermInterface {
|
|
3
|
+
cameraId: string;
|
|
4
|
+
microphoneId: string;
|
|
5
|
+
result: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class SignTerm {
|
|
8
|
+
private static isModalOpen;
|
|
9
|
+
private readonly backend;
|
|
10
|
+
constructor(context: ProctoringContext);
|
|
11
|
+
signInTerms(): Promise<any>;
|
|
12
|
+
private openModal;
|
|
13
|
+
closeModal(): Promise<void>;
|
|
14
|
+
applyStyles(element: any, styles: any): void;
|
|
15
|
+
}
|