easyproctor 0.0.23 → 0.0.26

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.
@@ -1,7 +1,13 @@
1
1
  import AlertDTO from "../dtos/AlertDTO";
2
- export interface ProctoringRecord {
2
+ export interface ProctoringSession {
3
3
  id: string;
4
- cameraBuffers: File[];
5
- screenBuffers: File[];
4
+ screenFile: File | undefined;
5
+ cameraFile: File;
6
6
  alerts: AlertDTO[];
7
+ start: string;
8
+ end: string;
9
+ }
10
+ export interface ProctoringRecord {
11
+ id: string;
12
+ sessions: ProctoringSession[];
7
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.23",
3
+ "version": "0.0.26",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",
@@ -31,6 +31,7 @@
31
31
  "typescript": "^4.5.4"
32
32
  },
33
33
  "dependencies": {
34
- "@azure/storage-blob": "^12.8.0"
34
+ "@azure/storage-blob": "^12.8.0",
35
+ "@microsoft/applicationinsights-web": "^2.7.4"
35
36
  }
36
37
  }
@@ -0,0 +1,14 @@
1
+ import { ApplicationInsights } from '@microsoft/applicationinsights-web';
2
+ declare const insights: ApplicationInsights;
3
+ declare const trackers: {
4
+ trackPage: (name: string, uri: string, properties?: {
5
+ [key: string]: any;
6
+ } | undefined) => void;
7
+ trackError: (exception: Error) => void;
8
+ registerStart: (proctoringId: string, success: boolean, description: string) => void;
9
+ registerFinish: (proctoringId: string, success: boolean, description: string) => void;
10
+ registerError: (proctoringId: string, description: string) => void;
11
+ registerUploadVideo: (proctoringId: string, success: boolean, description: string) => void;
12
+ };
13
+ export default insights;
14
+ export { trackers };