easyproctor 2.3.1 → 2.3.3
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 +7 -0
- package/esm/index.js +18 -5
- package/index.js +18 -5
- package/package.json +1 -1
- package/proctoring/ExternalCameraChecker.d.ts +2 -1
- package/proctoring/useProctoring.d.ts +1 -1
- package/unpkg/easyproctor.min.js +19 -19
package/README.md
CHANGED
|
@@ -264,7 +264,14 @@ const {
|
|
|
264
264
|
});
|
|
265
265
|
```
|
|
266
266
|
|
|
267
|
+
## Release Note V 2.3.3
|
|
268
|
+
- Correção do reset no startSession
|
|
267
269
|
|
|
270
|
+
## Release Note V 2.3.2
|
|
271
|
+
- Melhorias no fluxo da câmera externa (reset e goToExternalCameraPositionStep)
|
|
272
|
+
|
|
273
|
+
## Release Note V 2.3.1
|
|
274
|
+
- Implementação da funcionalidade de transmissão com câmera externa
|
|
268
275
|
|
|
269
276
|
## Release Note V 2.3.0
|
|
270
277
|
- Implementação da funcionalidade de câmera externa (apenas checagem)
|
package/esm/index.js
CHANGED
|
@@ -17726,6 +17726,18 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
17726
17726
|
throw new Error("N\xE3o foi poss\xEDvel iniciar a transmiss\xE3o.");
|
|
17727
17727
|
}
|
|
17728
17728
|
}
|
|
17729
|
+
async goToPositionGuide() {
|
|
17730
|
+
if (this.connection) {
|
|
17731
|
+
const actionMessage = new ActionMessage();
|
|
17732
|
+
actionMessage.command = "Position_Guide";
|
|
17733
|
+
console.log("Enviando comando 'Position_Guide' para o aplicativo...");
|
|
17734
|
+
this.connection.invoke(
|
|
17735
|
+
"SendAction",
|
|
17736
|
+
this.externalSessionId,
|
|
17737
|
+
actionMessage
|
|
17738
|
+
);
|
|
17739
|
+
}
|
|
17740
|
+
}
|
|
17729
17741
|
async reset() {
|
|
17730
17742
|
if (this.connection) {
|
|
17731
17743
|
const actionMessage = new ActionMessage();
|
|
@@ -17758,8 +17770,9 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
17758
17770
|
try {
|
|
17759
17771
|
this.onQrCodeReadedCallback = onQrCodeReadedCallback;
|
|
17760
17772
|
if (this.connection)
|
|
17761
|
-
this.disconnectWebSocket();
|
|
17762
|
-
this.initializeWebSocketConnection();
|
|
17773
|
+
await this.disconnectWebSocket();
|
|
17774
|
+
await this.initializeWebSocketConnection();
|
|
17775
|
+
await this.reset();
|
|
17763
17776
|
const response = await this.backend.externalCameraStartSession();
|
|
17764
17777
|
this.externalSessionId = response.externalSessionId;
|
|
17765
17778
|
console.log(this.externalSessionId);
|
|
@@ -17823,7 +17836,7 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
17823
17836
|
alignItems: "center"
|
|
17824
17837
|
});
|
|
17825
17838
|
const h3 = document.createElement("h3");
|
|
17826
|
-
h3.innerText = "
|
|
17839
|
+
h3.innerText = "Conectar dispositivo m\xF3vel";
|
|
17827
17840
|
this.applyStyles(h3, {
|
|
17828
17841
|
color: "rgba(0, 0, 0, .7)",
|
|
17829
17842
|
fontWeight: "bold",
|
|
@@ -19103,7 +19116,7 @@ function useProctoring(proctoringOptions, enviromentConfig = "prod") {
|
|
|
19103
19116
|
const checkExternalCamera = proctoring.appChecker.checkExternalCamera.bind(proctoring.appChecker);
|
|
19104
19117
|
const startExternalCameraSession = proctoring.appChecker.startSession.bind(proctoring.appChecker);
|
|
19105
19118
|
const takeExternalCameraPicture = proctoring.appChecker.takePicture.bind(proctoring.appChecker);
|
|
19106
|
-
const
|
|
19119
|
+
const goToExternalCameraPositionStep = proctoring.appChecker.goToPositionGuide.bind(proctoring.appChecker);
|
|
19107
19120
|
const startExternalCameraTransmission = proctoring.appChecker.startTransmission.bind(proctoring.appChecker);
|
|
19108
19121
|
const runCheckDevicesFlow = checker.runCheckDevicesFlow.bind(checker);
|
|
19109
19122
|
const changeSelectedDevice = checker.changeSelectedDevice.bind(checker);
|
|
@@ -19132,7 +19145,7 @@ function useProctoring(proctoringOptions, enviromentConfig = "prod") {
|
|
|
19132
19145
|
checkExternalCamera,
|
|
19133
19146
|
startExternalCameraSession,
|
|
19134
19147
|
takeExternalCameraPicture,
|
|
19135
|
-
|
|
19148
|
+
goToExternalCameraPositionStep,
|
|
19136
19149
|
startExternalCameraTransmission
|
|
19137
19150
|
};
|
|
19138
19151
|
}
|
package/index.js
CHANGED
|
@@ -32975,6 +32975,18 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
32975
32975
|
throw new Error("N\xE3o foi poss\xEDvel iniciar a transmiss\xE3o.");
|
|
32976
32976
|
}
|
|
32977
32977
|
}
|
|
32978
|
+
async goToPositionGuide() {
|
|
32979
|
+
if (this.connection) {
|
|
32980
|
+
const actionMessage = new ActionMessage();
|
|
32981
|
+
actionMessage.command = "Position_Guide";
|
|
32982
|
+
console.log("Enviando comando 'Position_Guide' para o aplicativo...");
|
|
32983
|
+
this.connection.invoke(
|
|
32984
|
+
"SendAction",
|
|
32985
|
+
this.externalSessionId,
|
|
32986
|
+
actionMessage
|
|
32987
|
+
);
|
|
32988
|
+
}
|
|
32989
|
+
}
|
|
32978
32990
|
async reset() {
|
|
32979
32991
|
if (this.connection) {
|
|
32980
32992
|
const actionMessage = new ActionMessage();
|
|
@@ -33007,8 +33019,9 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
33007
33019
|
try {
|
|
33008
33020
|
this.onQrCodeReadedCallback = onQrCodeReadedCallback;
|
|
33009
33021
|
if (this.connection)
|
|
33010
|
-
this.disconnectWebSocket();
|
|
33011
|
-
this.initializeWebSocketConnection();
|
|
33022
|
+
await this.disconnectWebSocket();
|
|
33023
|
+
await this.initializeWebSocketConnection();
|
|
33024
|
+
await this.reset();
|
|
33012
33025
|
const response = await this.backend.externalCameraStartSession();
|
|
33013
33026
|
this.externalSessionId = response.externalSessionId;
|
|
33014
33027
|
console.log(this.externalSessionId);
|
|
@@ -33072,7 +33085,7 @@ var _ExternalCameraChecker = class _ExternalCameraChecker {
|
|
|
33072
33085
|
alignItems: "center"
|
|
33073
33086
|
});
|
|
33074
33087
|
const h3 = document.createElement("h3");
|
|
33075
|
-
h3.innerText = "
|
|
33088
|
+
h3.innerText = "Conectar dispositivo m\xF3vel";
|
|
33076
33089
|
this.applyStyles(h3, {
|
|
33077
33090
|
color: "rgba(0, 0, 0, .7)",
|
|
33078
33091
|
fontWeight: "bold",
|
|
@@ -34352,7 +34365,7 @@ function useProctoring(proctoringOptions, enviromentConfig = "prod") {
|
|
|
34352
34365
|
const checkExternalCamera = proctoring.appChecker.checkExternalCamera.bind(proctoring.appChecker);
|
|
34353
34366
|
const startExternalCameraSession = proctoring.appChecker.startSession.bind(proctoring.appChecker);
|
|
34354
34367
|
const takeExternalCameraPicture = proctoring.appChecker.takePicture.bind(proctoring.appChecker);
|
|
34355
|
-
const
|
|
34368
|
+
const goToExternalCameraPositionStep = proctoring.appChecker.goToPositionGuide.bind(proctoring.appChecker);
|
|
34356
34369
|
const startExternalCameraTransmission = proctoring.appChecker.startTransmission.bind(proctoring.appChecker);
|
|
34357
34370
|
const runCheckDevicesFlow = checker.runCheckDevicesFlow.bind(checker);
|
|
34358
34371
|
const changeSelectedDevice = checker.changeSelectedDevice.bind(checker);
|
|
@@ -34381,7 +34394,7 @@ function useProctoring(proctoringOptions, enviromentConfig = "prod") {
|
|
|
34381
34394
|
checkExternalCamera,
|
|
34382
34395
|
startExternalCameraSession,
|
|
34383
34396
|
takeExternalCameraPicture,
|
|
34384
|
-
|
|
34397
|
+
goToExternalCameraPositionStep,
|
|
34385
34398
|
startExternalCameraTransmission
|
|
34386
34399
|
};
|
|
34387
34400
|
}
|
package/package.json
CHANGED
|
@@ -35,7 +35,8 @@ export declare class ExternalCameraChecker {
|
|
|
35
35
|
getExternalCameraSessionId(): string;
|
|
36
36
|
checkTransmission(): Promise<void>;
|
|
37
37
|
startTransmission(proctoringId: string): Promise<void>;
|
|
38
|
-
|
|
38
|
+
goToPositionGuide(): Promise<void>;
|
|
39
|
+
private reset;
|
|
39
40
|
takePicture(waitingPositionValidation: boolean, onTakePictureCallback: (response: any) => void): Promise<void>;
|
|
40
41
|
startSession(onQrCodeReadedCallback: (response: any) => void): Promise<string>;
|
|
41
42
|
checkExternalCamera(): Promise<ExternalCameraCheckReturn>;
|
|
@@ -24,6 +24,6 @@ export declare function useProctoring(proctoringOptions: ProctoringContext, envi
|
|
|
24
24
|
checkExternalCamera: () => Promise<import("./ExternalCameraChecker").ExternalCameraCheckReturn>;
|
|
25
25
|
startExternalCameraSession: (onQrCodeReadedCallback: (response: any) => void) => Promise<string>;
|
|
26
26
|
takeExternalCameraPicture: (waitingPositionValidation: boolean, onTakePictureCallback: (response: any) => void) => Promise<void>;
|
|
27
|
-
|
|
27
|
+
goToExternalCameraPositionStep: () => Promise<void>;
|
|
28
28
|
startExternalCameraTransmission: (proctoringId: string) => Promise<void>;
|
|
29
29
|
};
|