easyproctor 0.0.85 → 0.0.86
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 +2 -3
- package/{interfaces/ProctoringConfig.d.ts → dtos/ProctoringConfigDto.d.ts} +1 -1
- package/dtos/UploadDataDTO.d.ts +5 -0
- package/esm/index.js +10059 -9924
- package/index.d.ts +1 -57
- package/index.js +25749 -25614
- package/new-flow/backend/BackendService.d.ts +47 -0
- package/new-flow/download/IDownloadService.d.ts +4 -0
- package/new-flow/download/downloadService.d.ts +10 -0
- package/new-flow/proctoring/ProctoringRecorder.d.ts +10 -0
- package/new-flow/proctoring/ProctoringSession.d.ts +52 -0
- package/new-flow/proctoring/ProctoringUploader.d.ts +13 -0
- package/new-flow/recorders/AlertRecorder.d.ts +19 -0
- package/new-flow/recorders/AudioRecorder.d.ts +13 -0
- package/new-flow/recorders/CameraRecorder.d.ts +22 -0
- package/new-flow/recorders/IRecorder.d.ts +8 -0
- package/new-flow/recorders/ScreenRecorder.d.ts +19 -0
- package/new-flow/repository/ISessionRepository.d.ts +9 -0
- package/new-flow/repository/IndexDbSessionRepository.d.ts +17 -0
- package/new-flow/upload/AwsUploadService.d.ts +9 -0
- package/new-flow/upload/AzureUploadService.d.ts +9 -0
- package/new-flow/upload/IUploadService.d.ts +10 -0
- package/new-flow/upload/uploadCalback.d.ts +1 -0
- package/package.json +2 -10
- package/plugins/MicRecorder2.d.ts +11 -0
- package/plugins/insights.d.ts +0 -1
- package/{modules → plugins}/recorder.d.ts +0 -0
- package/proctoring/DeviceChecker.d.ts +13 -0
- package/proctoring/options/ProctoringOptions.d.ts +10 -0
- package/proctoring/options/ProctoringVideoOptions.d.ts +5 -0
- package/proctoring/proctoring.d.ts +55 -0
- package/proctoring/useProctoring.d.ts +29 -0
- package/unpkg/easyproctor.min.js +20 -26
- package/utils/verifyVersion.d.ts +1 -0
- package/interfaces/ProctoringRecord.d.ts +0 -15
- package/modules/database.d.ts +0 -7
- package/modules/http.d.ts +0 -19
- package/modules/recorder copy.d.ts +0 -1
- package/modules/recorderAudio.d.ts +0 -1
- package/modules/startAudioCapture.d.ts +0 -2
- package/modules/startCameraCapture.d.ts +0 -10
- package/modules/startScreenCapture.d.ts +0 -7
- package/modules/upload.d.ts +0 -8
- package/modules/upload_sdk.d.ts +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function versionVerify(): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
package/modules/database.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
package/modules/http.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare function setBaseUrl(homol: boolean): Promise<void>;
|
|
2
|
-
export default function makeRequest<R>(data: {
|
|
3
|
-
url: string;
|
|
4
|
-
method: "GET" | "POST";
|
|
5
|
-
body?: any;
|
|
6
|
-
jwt: string;
|
|
7
|
-
}): Promise<R>;
|
|
8
|
-
export declare function makeRequestPUT<R>(data: {
|
|
9
|
-
url: string;
|
|
10
|
-
method: "PUT";
|
|
11
|
-
body?: any;
|
|
12
|
-
jwt: string;
|
|
13
|
-
}): Promise<R>;
|
|
14
|
-
export declare function makeRequestAxios<R>(data: {
|
|
15
|
-
url: string;
|
|
16
|
-
method: "GET" | "POST" | "PUT";
|
|
17
|
-
body?: any;
|
|
18
|
-
jwt: string;
|
|
19
|
-
}): Promise<R>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function recorder(stream: MediaStream, buffer: Blob[]): () => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function recorder(stream: MediaStream, buffer: Blob[]): () => Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default function startCameraCapture(buffer: Blob[], options?: {
|
|
2
|
-
cameraId?: string;
|
|
3
|
-
microphoneId?: string;
|
|
4
|
-
}, videoOptions?: {
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
}): Promise<{
|
|
8
|
-
cameraStream: MediaStream;
|
|
9
|
-
stopCameraRecording: () => Promise<void>;
|
|
10
|
-
}>;
|
package/modules/upload.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ProctoringConfig } from '../interfaces/ProctoringConfig';
|
|
2
|
-
declare type UploadData = {
|
|
3
|
-
file: File;
|
|
4
|
-
onProgress?: (progress: number) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function setConfiguration(_account: string, _cointainerName: string, _sas: string): Promise<void>;
|
|
7
|
-
export default function upload(data: UploadData, proctoringId: string, config: ProctoringConfig, proctoringToken: string): Promise<void>;
|
|
8
|
-
export {};
|
package/modules/upload_sdk.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ProctoringConfig } from '../interfaces/ProctoringConfig';
|
|
2
|
-
declare type UploadData = {
|
|
3
|
-
file: File;
|
|
4
|
-
onProgress?: (progress: number) => void;
|
|
5
|
-
};
|
|
6
|
-
export declare function setConfiguration(_account: string, _cointainerName: string, _sas: string): Promise<void>;
|
|
7
|
-
export default function upload(data: UploadData, proctoringId: string, config: ProctoringConfig, proctoringToken: string): Promise<void>;
|
|
8
|
-
export {};
|