@myinterview/widget-react 1.0.11 → 1.0.88
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 +4 -4
- package/dist/cjs/index.js +31900 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/{esm → cjs/types}/App.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/CountDown.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Counter.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/DeviceSelector.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/DeviceSelectorList.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/DeviceSelectorListNative.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Error.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ErrorBoundaries.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Errors.d.ts +1 -4
- package/dist/{esm → cjs/types}/components/Explanation.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Footer.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Header.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/InnerView.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Main.d.ts +2 -2
- package/dist/{esm → cjs/types}/components/OuterView.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/PermissionSteps.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/PracticeModeInfo.d.ts +0 -0
- package/dist/cjs/types/components/PreviewItem.d.ts +10 -0
- package/dist/{esm → cjs/types}/components/PreviewList.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Question.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/QuestionItem.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/QuestionsList.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/RecorderModal.d.ts +0 -1
- package/dist/{esm → cjs/types}/components/Setup.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/SetupChecks.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/SliderModal.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/Upload.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/VideoCamera.d.ts +0 -1
- package/dist/{esm → cjs/types}/components/VideoQuestion.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/VideoTimeBar.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/WelcomePage.d.ts +0 -0
- package/dist/cjs/types/components/Widget.d.ts +9 -0
- package/dist/{esm → cjs/types}/components/icons/ClockIcon.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/icons/Loading.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/icons/NoCameraMic.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/icons/PlayIcon.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/icons/Retake.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/icons/RotateScreenIcon.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/Loader.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/MicrophoneIndicator.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/PracticeMode.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/Progress.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/QuestionDuration.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/QuestionNumber.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/RecordingButton.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/RotateScreen.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/Signal.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/StartNowButton.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/StartRecordingButton.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/StopRecordingButton.d.ts +0 -0
- package/dist/{esm → cjs/types}/components/ui/UnsupportedModal.d.ts +0 -0
- package/dist/{esm → cjs/types}/config/index.d.ts +1 -2
- package/dist/{esm → cjs/types}/config/local.env.d.ts +0 -0
- package/dist/{esm → cjs/types}/config/prod.env.d.ts +0 -0
- package/dist/{esm → cjs/types}/config/staging.env.d.ts +0 -0
- package/dist/cjs/types/i18n/config.d.ts +430 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/{esm → cjs/types}/interfaces/candidateInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/candidateSessionInterface.d.ts +5 -10
- package/dist/{esm → cjs/types}/interfaces/companyInterface.d.ts +0 -0
- package/dist/cjs/types/interfaces/configInterface.d.ts +33 -0
- package/dist/{esm → cjs/types}/interfaces/jobInterface.d.ts +1 -9
- package/dist/{esm → cjs/types}/interfaces/microphoneInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/networkInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/previewInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/recorderInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/storageInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/uploaderInterface.d.ts +0 -0
- package/dist/{esm → cjs/types}/interfaces/videoInterface.d.ts +0 -1
- package/dist/{esm → cjs/types}/interfaces/widgetInterface.d.ts +5 -24
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/accUploaderMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/accWidgetMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/microphoneMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/networkMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/previewMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/recorderMachineV2.d.ts +0 -0
- package/dist/{esm → cjs/types}/machines/acceleratorMachines/storageMachine.d.ts +0 -0
- package/dist/{esm → cjs/types}/reportWebVitals.d.ts +0 -0
- package/dist/{esm → cjs/types}/services/axiosInstances.service.d.ts +0 -1
- package/dist/{esm → cjs/types}/services/s3.service.d.ts +0 -0
- package/dist/{esm → cjs/types}/services/session.service.d.ts +1 -12
- package/dist/{esm → cjs/types}/services/speedTest.service.d.ts +0 -0
- package/dist/cjs/types/services/video.service.d.ts +7 -0
- package/dist/{esm → cjs/types}/setupTests.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/authToken.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/constants.utils.d.ts +2 -5
- package/dist/{esm → cjs/types}/utils/debug.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/device.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/errors.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/formatters.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/messages.utils.d.ts +0 -0
- package/dist/cjs/types/utils/permissionSteps.utils.d.ts +19 -0
- package/dist/{esm → cjs/types}/utils/practiceQuestions.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/sentry.utils.d.ts +0 -0
- package/dist/{esm → cjs/types}/utils/statusCodes.utils.d.ts +0 -0
- package/dist/esm/index.js +1819 -9383
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/App.d.ts +2 -0
- package/dist/esm/types/components/CountDown.d.ts +6 -0
- package/dist/esm/types/components/Counter.d.ts +8 -0
- package/dist/esm/types/components/DeviceSelector.d.ts +10 -0
- package/dist/esm/types/components/DeviceSelectorList.d.ts +9 -0
- package/dist/esm/types/components/DeviceSelectorListNative.d.ts +6 -0
- package/dist/esm/types/components/Error.d.ts +8 -0
- package/dist/esm/types/components/ErrorBoundaries.d.ts +9 -0
- package/dist/esm/types/components/Errors.d.ts +9 -0
- package/dist/esm/types/components/Explanation.d.ts +7 -0
- package/dist/esm/types/components/Footer.d.ts +2 -0
- package/dist/esm/types/components/Header.d.ts +10 -0
- package/dist/esm/types/components/InnerView.d.ts +12 -0
- package/dist/esm/types/components/Main.d.ts +8 -0
- package/dist/esm/types/components/OuterView.d.ts +8 -0
- package/dist/esm/types/components/PermissionSteps.d.ts +6 -0
- package/dist/esm/types/components/PracticeModeInfo.d.ts +8 -0
- package/dist/esm/types/components/PreviewItem.d.ts +10 -0
- package/dist/esm/types/components/PreviewList.d.ts +17 -0
- package/dist/esm/types/components/Question.d.ts +9 -0
- package/dist/esm/types/components/QuestionItem.d.ts +12 -0
- package/dist/esm/types/components/QuestionsList.d.ts +11 -0
- package/dist/esm/types/components/RecorderModal.d.ts +14 -0
- package/dist/esm/types/components/Setup.d.ts +6 -0
- package/dist/esm/types/components/SetupChecks.d.ts +14 -0
- package/dist/esm/types/components/SliderModal.d.ts +8 -0
- package/dist/esm/types/components/Upload.d.ts +13 -0
- package/dist/esm/types/components/VideoCamera.d.ts +28 -0
- package/dist/esm/types/components/VideoQuestion.d.ts +9 -0
- package/dist/esm/types/components/VideoTimeBar.d.ts +9 -0
- package/dist/esm/types/components/WelcomePage.d.ts +11 -0
- package/dist/esm/types/components/Widget.d.ts +9 -0
- package/dist/esm/types/components/icons/ClockIcon.d.ts +2 -0
- package/dist/esm/types/components/icons/Loading.d.ts +2 -0
- package/dist/esm/types/components/icons/NoCameraMic.d.ts +2 -0
- package/dist/esm/types/components/icons/PlayIcon.d.ts +6 -0
- package/dist/esm/types/components/icons/Retake.d.ts +2 -0
- package/dist/esm/types/components/icons/RotateScreenIcon.d.ts +2 -0
- package/dist/esm/types/components/ui/Loader.d.ts +2 -0
- package/dist/esm/types/components/ui/MicrophoneIndicator.d.ts +7 -0
- package/dist/esm/types/components/ui/PracticeMode.d.ts +2 -0
- package/dist/esm/types/components/ui/Progress.d.ts +6 -0
- package/dist/esm/types/components/ui/QuestionDuration.d.ts +6 -0
- package/dist/esm/types/components/ui/QuestionNumber.d.ts +7 -0
- package/dist/esm/types/components/ui/RecordingButton.d.ts +6 -0
- package/dist/esm/types/components/ui/RotateScreen.d.ts +2 -0
- package/dist/esm/types/components/ui/Signal.d.ts +9 -0
- package/dist/esm/types/components/ui/StartNowButton.d.ts +6 -0
- package/dist/esm/types/components/ui/StartRecordingButton.d.ts +10 -0
- package/dist/esm/types/components/ui/StopRecordingButton.d.ts +7 -0
- package/dist/esm/types/components/ui/UnsupportedModal.d.ts +6 -0
- package/dist/esm/types/config/index.d.ts +6 -0
- package/dist/esm/types/config/local.env.d.ts +6 -0
- package/dist/esm/types/config/prod.env.d.ts +6 -0
- package/dist/esm/types/config/staging.env.d.ts +6 -0
- package/dist/esm/{i18n → types/i18n}/config.d.ts +28 -37
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/interfaces/candidateInterface.d.ts +10 -0
- package/dist/esm/types/interfaces/candidateSessionInterface.d.ts +78 -0
- package/dist/esm/types/interfaces/companyInterface.d.ts +3 -0
- package/dist/esm/types/interfaces/configInterface.d.ts +33 -0
- package/dist/esm/types/interfaces/jobInterface.d.ts +22 -0
- package/dist/esm/types/interfaces/microphoneInterface.d.ts +36 -0
- package/dist/esm/types/interfaces/networkInterface.d.ts +9 -0
- package/dist/esm/types/interfaces/previewInterface.d.ts +14 -0
- package/dist/esm/types/interfaces/recorderInterface.d.ts +110 -0
- package/dist/esm/types/interfaces/storageInterface.d.ts +29 -0
- package/dist/esm/types/interfaces/uploaderInterface.d.ts +39 -0
- package/dist/esm/types/interfaces/videoInterface.d.ts +54 -0
- package/dist/esm/types/interfaces/widgetInterface.d.ts +192 -0
- package/dist/esm/types/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -0
- package/dist/esm/types/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -0
- package/dist/esm/types/machines/acceleratorMachines/microphoneMachine.d.ts +6 -0
- package/dist/esm/types/machines/acceleratorMachines/networkMachine.d.ts +5 -0
- package/dist/esm/types/machines/acceleratorMachines/previewMachine.d.ts +6 -0
- package/dist/esm/types/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -0
- package/dist/esm/types/machines/acceleratorMachines/storageMachine.d.ts +6 -0
- package/dist/esm/types/reportWebVitals.d.ts +3 -0
- package/dist/esm/types/services/axiosInstances.service.d.ts +3 -0
- package/dist/esm/types/services/s3.service.d.ts +1 -0
- package/dist/esm/types/services/session.service.d.ts +46 -0
- package/dist/esm/types/services/speedTest.service.d.ts +2 -0
- package/dist/esm/types/services/video.service.d.ts +7 -0
- package/dist/esm/types/setupTests.d.ts +1 -0
- package/dist/esm/types/utils/authToken.utils.d.ts +7 -0
- package/dist/esm/types/utils/constants.utils.d.ts +9 -0
- package/dist/esm/types/utils/debug.utils.d.ts +19 -0
- package/dist/esm/types/utils/device.utils.d.ts +12 -0
- package/dist/esm/types/utils/errors.utils.d.ts +9 -0
- package/dist/esm/types/utils/formatters.utils.d.ts +5 -0
- package/dist/esm/types/utils/messages.utils.d.ts +16 -0
- package/dist/esm/types/utils/permissionSteps.utils.d.ts +19 -0
- package/dist/esm/types/utils/practiceQuestions.utils.d.ts +2 -0
- package/dist/esm/types/utils/sentry.utils.d.ts +4 -0
- package/dist/esm/types/utils/statusCodes.utils.d.ts +13 -0
- package/dist/index.d.ts +13 -45
- package/package.json +4 -4
- package/dist/esm/components/PreviewItem.d.ts +0 -16
- package/dist/esm/components/Widget.d.ts +0 -6
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/interfaces/configInterface.d.ts +0 -55
- package/dist/esm/services/video.service.d.ts +0 -7
|
@@ -17,19 +17,12 @@ export declare const enum CandidateSessionError {
|
|
|
17
17
|
JOB_INACTIVE = "JOB_INACTIVE",
|
|
18
18
|
SUBSCRIPTION_PAUSED = "SUBSCRIPTION_PAUSED",
|
|
19
19
|
SUBSCRIPTION_CANCELLED = "SUBSCRIPTION_CANCELLED",
|
|
20
|
-
INTERVIEW_ALREADY_COMPLETED = "INTERVIEW_ALREADY_COMPLETED"
|
|
21
|
-
MEDIA_RECORDER_ERROR = "MEDIA_RECORDER_ERROR"
|
|
20
|
+
INTERVIEW_ALREADY_COMPLETED = "INTERVIEW_ALREADY_COMPLETED"
|
|
22
21
|
}
|
|
23
22
|
export declare const enum CandidateSessionWarnings {
|
|
24
23
|
LOW_LIGHT = "LOW_LIGHT",
|
|
25
24
|
LOW_VOLUME = "LOW_VOLUME",
|
|
26
|
-
SLOW_CONNECTION = "SLOW_CONNECTION"
|
|
27
|
-
NO_INTERNET = "NO_INTERNET",
|
|
28
|
-
NotAllowedError = "NotAllowedError",
|
|
29
|
-
NotFoundError = "NotFoundError",
|
|
30
|
-
NotReadableError = "NotReadableError",
|
|
31
|
-
OverconstrainedError = "OverconstrainedError",
|
|
32
|
-
SecurityError = "SecurityError"
|
|
25
|
+
SLOW_CONNECTION = "SLOW_CONNECTION"
|
|
33
26
|
}
|
|
34
27
|
export declare type CandidateSessionSourceType = 'direct' | 'email' | 'sms' | 'email_reminder' | 'sms_reminder';
|
|
35
28
|
export declare const enum CandidateSessionSourceMap {
|
|
@@ -46,7 +39,6 @@ export interface ICandidateSession {
|
|
|
46
39
|
warnings?: (keyof typeof CandidateSessionWarnings)[];
|
|
47
40
|
reload_count: number;
|
|
48
41
|
files_uploaded_count: number;
|
|
49
|
-
widget_version: string;
|
|
50
42
|
company_id: string;
|
|
51
43
|
apiKey: string;
|
|
52
44
|
job_id?: string;
|
|
@@ -66,10 +58,13 @@ export interface ICandidateSession {
|
|
|
66
58
|
widget_shown?: Date;
|
|
67
59
|
widget_practiced?: Date;
|
|
68
60
|
widget_camera_setup?: Date;
|
|
61
|
+
widget_camera_error?: Date;
|
|
69
62
|
widget_microphone_setup?: Date;
|
|
63
|
+
widget_microphone_error?: Date;
|
|
70
64
|
widget_slow_internet_setup?: Date;
|
|
71
65
|
widget_high_internet_setup?: Date;
|
|
72
66
|
widget_medium_internet_setup?: Date;
|
|
67
|
+
widget_no_internet_setup?: Date;
|
|
73
68
|
widget_start_click_setup?: Date;
|
|
74
69
|
widget_change_camera_setup?: Date;
|
|
75
70
|
widget_change_mic_setup?: Date;
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ICandidate } from './candidateInterface';
|
|
2
|
+
import { ICompany } from './companyInterface';
|
|
3
|
+
import { IJob } from './jobInterface';
|
|
4
|
+
import { IVideo } from './videoInterface';
|
|
5
|
+
export declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
6
|
+
export interface IOnCompleteCallback {
|
|
7
|
+
redirectUrl?: string;
|
|
8
|
+
video_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IOnError {
|
|
11
|
+
messageType: IMessageType;
|
|
12
|
+
}
|
|
13
|
+
export interface IConfig {
|
|
14
|
+
video?: IVideo;
|
|
15
|
+
candidate: ICandidate;
|
|
16
|
+
job?: IJob;
|
|
17
|
+
company?: ICompany;
|
|
18
|
+
config: {
|
|
19
|
+
auth: string;
|
|
20
|
+
onCompleteCallback?: (data: IOnCompleteCallback) => void;
|
|
21
|
+
onError?: (data: IOnError) => void;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IConfigResponse {
|
|
25
|
+
video: IVideo;
|
|
26
|
+
candidate: ICandidate;
|
|
27
|
+
job: IJob;
|
|
28
|
+
}
|
|
29
|
+
export interface IConfigRequest {
|
|
30
|
+
video?: IVideo;
|
|
31
|
+
candidate?: ICandidate;
|
|
32
|
+
job?: IJob;
|
|
33
|
+
}
|
|
@@ -7,13 +7,9 @@ export interface IQuestion {
|
|
|
7
7
|
videoQuestion?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
11
|
-
attempts?: number;
|
|
12
|
-
duration?: number;
|
|
13
|
-
thinkingTime?: number;
|
|
14
|
-
};
|
|
15
10
|
export interface IJob {
|
|
16
11
|
language?: string;
|
|
12
|
+
overlay?: string;
|
|
17
13
|
transcriptLanguage?: string;
|
|
18
14
|
title?: string;
|
|
19
15
|
company?: string;
|
|
@@ -23,8 +19,4 @@ export interface IJob {
|
|
|
23
19
|
old_jobID?: string;
|
|
24
20
|
apiKey?: string;
|
|
25
21
|
company_id?: string;
|
|
26
|
-
jobID?: string;
|
|
27
22
|
}
|
|
28
|
-
export declare type IClientJob = Omit<IJob, 'questions'> & {
|
|
29
|
-
questions?: IClientQuestion[];
|
|
30
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { ActorRef, BaseActionObject, DoneInvokeEvent, Event, EventData, ResolveTypegenMeta, SCXML, ServiceMap, SingleOrArray, State, TypegenDisabled } from 'xstate';
|
|
3
|
-
import {
|
|
3
|
+
import { IConfig } from './configInterface';
|
|
4
4
|
import { CAMERA_STATES_MESSAGES, INTERNET_STATES_MESSAGES, MICROPHONE_STATES_MESSAGES } from '../utils/messages.utils';
|
|
5
5
|
import { TAKE_TYPES } from './storageInterface';
|
|
6
6
|
import { IQuestion } from './jobInterface';
|
|
@@ -8,15 +8,9 @@ import { IVideoError } from '../utils/errors.utils';
|
|
|
8
8
|
declare type IUploaderRef = {
|
|
9
9
|
[uploaderRef: string]: ActorRef<DoneInvokeEvent<any>>;
|
|
10
10
|
};
|
|
11
|
-
export declare const VIDEO_ERROR_MESSAGES: {
|
|
12
|
-
RETRY: "RETRY";
|
|
13
|
-
REDIRECT: "REDIRECT";
|
|
14
|
-
NO_ERROR: "";
|
|
15
|
-
};
|
|
16
11
|
export declare type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
17
12
|
export declare type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
18
13
|
export declare type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
19
|
-
export declare type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
20
14
|
export declare const CAMERA_STATES: {
|
|
21
15
|
[K in ICameraStateKey]: K;
|
|
22
16
|
};
|
|
@@ -26,9 +20,6 @@ export declare const MICROPHONE_STATES: {
|
|
|
26
20
|
export declare const INTERNET_STATES: {
|
|
27
21
|
[K in IInternetStateKey]: K;
|
|
28
22
|
};
|
|
29
|
-
export declare const VIDEO_CORRUPTED_STATES: {
|
|
30
|
-
[K in IVideoCorruptedMessagesKey]: K;
|
|
31
|
-
};
|
|
32
23
|
export interface IChecksMetaObj {
|
|
33
24
|
key: 'camera' | 'microphone' | 'internet';
|
|
34
25
|
state: ICameraStateKey | IMicrophoneStateKey | IInternetStateKey;
|
|
@@ -46,7 +37,7 @@ interface IChecksMessage {
|
|
|
46
37
|
}
|
|
47
38
|
export interface InitialState {
|
|
48
39
|
speedTestResult: number;
|
|
49
|
-
|
|
40
|
+
config: IConfig;
|
|
50
41
|
questions: IQuestion[];
|
|
51
42
|
isConnected: boolean;
|
|
52
43
|
videoRef: RefObject<HTMLVideoElement>;
|
|
@@ -69,8 +60,6 @@ export interface InitialState {
|
|
|
69
60
|
[questionNumber: string]: number;
|
|
70
61
|
};
|
|
71
62
|
error: IVideoError | null;
|
|
72
|
-
failedRecordingAttempts: number;
|
|
73
|
-
failedRecordingMessage: IVideoCorruptedMessagesKey;
|
|
74
63
|
}
|
|
75
64
|
export interface IWidgetMachineProps {
|
|
76
65
|
widgetMachine: State<InitialState, DoneInvokeEvent<any>, any, {
|
|
@@ -81,7 +70,6 @@ export interface IWidgetMachineProps {
|
|
|
81
70
|
}
|
|
82
71
|
export declare const enum STATES {
|
|
83
72
|
INIT = "init",
|
|
84
|
-
WELCOME = "welcome",
|
|
85
73
|
SETUP = "setup",
|
|
86
74
|
SETUP__INIT_STORAGE = "initStorage",
|
|
87
75
|
SETUP__INIT_RECORDER = "initRecorder",
|
|
@@ -115,7 +103,6 @@ export declare const enum STATES {
|
|
|
115
103
|
}
|
|
116
104
|
export declare const enum ACTIONS {
|
|
117
105
|
CONSOLE_LOG = "consoleLog",
|
|
118
|
-
CONSOLE_DEBUG = "consoleDebug",
|
|
119
106
|
SET_CONNECTION = "setConnection",
|
|
120
107
|
SET_CONFIG = "getConfig",
|
|
121
108
|
SET_NEXT_QUESTION = "setNextQuestion",
|
|
@@ -141,7 +128,6 @@ export declare const enum ACTIONS {
|
|
|
141
128
|
UPDATE_RETAKES_NUMBER = "updateRetakesNumber",
|
|
142
129
|
UPDATE_AXION_AUTH = "updateAxiosAuth",
|
|
143
130
|
RECORDER_RE_INIT = "recorderReInit",
|
|
144
|
-
RECORDER_RE_INIT_AUTO_START = "recorderReInitAutoStart",
|
|
145
131
|
UPDATE_RECORDER_PARAMS = "updateRecorderParams",
|
|
146
132
|
UPDATE_TOTAL_UPLOADED = "updateTotalUploaded",
|
|
147
133
|
SET_VIDEO_ERROR = "setVideoError",
|
|
@@ -151,10 +137,7 @@ export declare const enum ACTIONS {
|
|
|
151
137
|
SESSION_EVENT = "sessionEvent",
|
|
152
138
|
REVOKE_MEMORY = "revokeMemory",
|
|
153
139
|
UPDATE_VIDEO_OBJECT = "updateVideoObject",
|
|
154
|
-
UPDATE_VIDEO_PART = "updateVideoPart"
|
|
155
|
-
INCREASE_FAILED_RECORDING_ATTEMPTS = "increaseFailedRecordingAttempts",
|
|
156
|
-
RESET_FAILED_RECORDING_ATTEMPTS = "resetFailedRecordingAttempts",
|
|
157
|
-
CLEAR_VIDEO_ERROR = "clearVideoError"
|
|
140
|
+
UPDATE_VIDEO_PART = "updateVideoPart"
|
|
158
141
|
}
|
|
159
142
|
export declare const enum EVENTS {
|
|
160
143
|
SPAWN_UPLOADER = "SPAWN_UPLOADER",
|
|
@@ -190,14 +173,12 @@ export declare const enum GUARDS {
|
|
|
190
173
|
IS_PRACTICE_MODE = "isPracticeMod",
|
|
191
174
|
IS_NOT_LAST_TAKE = "isNotLastTake",
|
|
192
175
|
IS_LAST_INTERVIEW_QUESTION = "isLastInterviewQuestion",
|
|
176
|
+
IS_UPLOAD_FINISHED = "isUploadFinished",
|
|
193
177
|
CAN_RETEST_SPEED_CONNECTION = "canRetestSpeedConnection",
|
|
194
178
|
IS_CONNECTED = "isConnected",
|
|
195
179
|
IS_DISCONNECTED = "isDisconnected",
|
|
196
180
|
CAN_START_INTERVIEW = "canStartInterview",
|
|
197
|
-
ARE_ALL_QUESTIONS_UPLOADED = "areAllQuestionsUploaded"
|
|
198
|
-
SHOULD_SHOW_WELCOME = "shouldShowWelcome",
|
|
199
|
-
IS_NO_SOUND_ERROR = "isNoSoundError",
|
|
200
|
-
IS_VIDEO_CORRUPTED = "isVideoCorrupted"
|
|
181
|
+
ARE_ALL_QUESTIONS_UPLOADED = "areAllQuestionsUploaded"
|
|
201
182
|
}
|
|
202
183
|
export declare const enum TAGS {
|
|
203
184
|
SETUP = "setup",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const videoAxiosInstance: import("axios").AxiosInstance;
|
|
2
2
|
export declare const s3AxiosInstance: import("axios").AxiosInstance;
|
|
3
3
|
export declare const updateVideoAxiosAuth: (auth: string) => void;
|
|
4
|
-
export declare const updateVideoAxiosBaseURL: (url: string) => void;
|
|
File without changes
|
|
@@ -34,7 +34,7 @@ declare type KeysMatching<T, V> = {
|
|
|
34
34
|
* A cute shortcut for updating a date event in the session
|
|
35
35
|
* just give it the key of the date event, and it will update it
|
|
36
36
|
* @param eventType
|
|
37
|
-
|
|
37
|
+
*/
|
|
38
38
|
export declare function registerDateEvent(eventType: KeysMatching<ICandidateSession, Date>): Promise<ICandidateSession | undefined>;
|
|
39
39
|
/**
|
|
40
40
|
* Another cute shortcut for updating a number state of a session
|
|
@@ -43,15 +43,4 @@ export declare function registerDateEvent(eventType: KeysMatching<ICandidateSess
|
|
|
43
43
|
* @param data
|
|
44
44
|
*/
|
|
45
45
|
export declare function registerCountEvent(eventType: KeysMatching<ICandidateSession, number>, data?: number): Promise<ICandidateSession | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Another cute shortcut for updating a number state of a session
|
|
48
|
-
* if no data is provided, it will just increment the number
|
|
49
|
-
* @param warning
|
|
50
|
-
*/
|
|
51
|
-
export declare function registerWarning(warning: string): Promise<ICandidateSession | undefined>;
|
|
52
|
-
export declare const triggerEvent: {
|
|
53
|
-
warning: typeof registerWarning;
|
|
54
|
-
date: typeof registerDateEvent;
|
|
55
|
-
number: typeof registerCountEvent;
|
|
56
|
-
};
|
|
57
46
|
export {};
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IConfigRequest, IConfigResponse } from '../interfaces/configInterface';
|
|
2
|
+
import { IVideo, IVideoFile } from '../interfaces/videoInterface';
|
|
3
|
+
export declare const createVideo: (config: IConfigRequest) => Promise<IConfigResponse>;
|
|
4
|
+
export declare const getVideo: (videoId: string) => Promise<IConfigResponse>;
|
|
5
|
+
export declare const updateVideo: ({ video_id, completed, uploaded, bandwidth }: IVideo) => Promise<IConfigResponse>;
|
|
6
|
+
export declare const updateVideoFile: (videoId: string, videoFile: IVideoFile) => Promise<IConfigResponse>;
|
|
7
|
+
export declare const getUploadUrl: (videoId: string, fileName: string, typeExtension: string) => Promise<IConfigResponse>;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export declare const DEFAULT_COUNT_DOWN = 3;
|
|
2
2
|
export declare const DEFAULT_DURATION = 60;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const DEFAULT_THINKING_TIME = 0;
|
|
5
|
-
export declare const ENOUGH_RECORDING_TIME = 3;
|
|
3
|
+
export declare const ENOUGH_RECODING_TIME = 3;
|
|
6
4
|
export declare const SPEED_TEST_FILE_SIZE = 5;
|
|
7
5
|
export declare const FAST_UPLOAD_SPEED = 0.35;
|
|
8
6
|
export declare const SLOW_UPLOAD_SPEED = 0.1;
|
|
9
7
|
export declare const SPEED_TEST_TIMEOUT = 5000;
|
|
10
|
-
export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
|
|
11
8
|
export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
|
|
12
|
-
export declare const
|
|
9
|
+
export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PERMISSION_STEPS: {
|
|
2
|
+
IOS: {
|
|
3
|
+
CHROME: string[];
|
|
4
|
+
SAFARI: string[];
|
|
5
|
+
};
|
|
6
|
+
ANDROID: {
|
|
7
|
+
CHROME: string[];
|
|
8
|
+
SAMSUNG: string[];
|
|
9
|
+
};
|
|
10
|
+
MACBOOK: {
|
|
11
|
+
CHROME: string[];
|
|
12
|
+
SAFARI: string[];
|
|
13
|
+
FIREFOX: string[];
|
|
14
|
+
};
|
|
15
|
+
WINDOWS: {
|
|
16
|
+
CHROME: string[];
|
|
17
|
+
FIREFOX: string[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|