@myinterview/widget-react 1.1.70 → 1.1.72-development-75459e3
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 +54 -54
- package/dist/cjs/App.d.ts +3 -3
- package/dist/cjs/components/AnswerInstructions.d.ts +7 -7
- package/dist/cjs/components/AssessmentController.d.ts +13 -13
- package/dist/cjs/components/AssessmentFreeText.d.ts +8 -8
- package/dist/cjs/components/AssessmentMultiSelect.d.ts +9 -9
- package/dist/cjs/components/AssessmentSingleSelect.d.ts +9 -9
- package/dist/cjs/components/CharactersLimit.d.ts +7 -7
- package/dist/cjs/components/CountDown.d.ts +8 -8
- package/dist/cjs/components/Counter.d.ts +8 -8
- package/dist/cjs/components/DeviceSelector.d.ts +12 -12
- package/dist/cjs/components/DeviceSelectorList.d.ts +9 -9
- package/dist/cjs/components/DeviceSelectorListNative.d.ts +6 -6
- package/dist/cjs/components/Error.d.ts +8 -8
- package/dist/cjs/components/ErrorBoundaries.d.ts +9 -9
- package/dist/cjs/components/Errors.d.ts +11 -11
- package/dist/cjs/components/Explanation.d.ts +12 -12
- package/dist/cjs/components/Footer.d.ts +2 -2
- package/dist/cjs/components/Header.d.ts +10 -10
- package/dist/cjs/components/InnerView.d.ts +15 -15
- package/dist/cjs/components/Main.d.ts +11 -11
- package/dist/cjs/components/OuterView.d.ts +8 -8
- package/dist/cjs/components/PermissionSteps.d.ts +6 -6
- package/dist/cjs/components/PracticeModeInfo.d.ts +2 -2
- package/dist/cjs/components/PreviewItem.d.ts +21 -21
- package/dist/cjs/components/PreviewList.d.ts +18 -18
- package/dist/cjs/components/Question.d.ts +8 -8
- package/dist/cjs/components/QuestionItem.d.ts +12 -12
- package/dist/cjs/components/QuestionParameters.d.ts +9 -9
- package/dist/cjs/components/QuestionsList.d.ts +11 -11
- package/dist/cjs/components/RecorderModal.d.ts +14 -14
- package/dist/cjs/components/Setup.d.ts +8 -8
- package/dist/cjs/components/SetupChecks.d.ts +15 -15
- package/dist/cjs/components/SliderModal.d.ts +8 -8
- package/dist/cjs/components/TimesUp.d.ts +6 -6
- package/dist/cjs/components/TopTips.d.ts +2 -2
- package/dist/cjs/components/Upload.d.ts +13 -13
- package/dist/cjs/components/VideoCamera.d.ts +32 -32
- package/dist/cjs/components/VideoQuestion.d.ts +12 -12
- package/dist/cjs/components/VideoTimeBar.d.ts +9 -9
- package/dist/cjs/components/WelcomePage.d.ts +16 -16
- package/dist/cjs/components/Widget.d.ts +6 -6
- package/dist/cjs/components/icons/ClockIcon.d.ts +2 -2
- package/dist/cjs/components/icons/Loading.d.ts +2 -2
- package/dist/cjs/components/icons/NoCameraMic.d.ts +2 -2
- package/dist/cjs/components/icons/PlayIcon.d.ts +6 -6
- package/dist/cjs/components/icons/Retake.d.ts +2 -2
- package/dist/cjs/components/icons/RotateScreenIcon.d.ts +2 -2
- package/dist/cjs/components/ui/DotSeparator.d.ts +2 -2
- package/dist/cjs/components/ui/Loader.d.ts +2 -2
- package/dist/cjs/components/ui/MicrophoneIndicator.d.ts +7 -7
- package/dist/cjs/components/ui/MinimizeButton.d.ts +6 -6
- package/dist/cjs/components/ui/PracticeMode.d.ts +2 -2
- package/dist/cjs/components/ui/Progress.d.ts +6 -6
- package/dist/cjs/components/ui/QuestionDuration.d.ts +6 -6
- package/dist/cjs/components/ui/QuestionNumber.d.ts +7 -7
- package/dist/cjs/components/ui/RecordingButton.d.ts +6 -6
- package/dist/cjs/components/ui/RotateScreen.d.ts +2 -2
- package/dist/cjs/components/ui/Signal.d.ts +9 -9
- package/dist/cjs/components/ui/StartNowButton.d.ts +6 -6
- package/dist/cjs/components/ui/StartRecordingButton.d.ts +12 -12
- package/dist/cjs/components/ui/StopRecordingButton.d.ts +8 -8
- package/dist/cjs/components/ui/UnsupportedModal.d.ts +6 -6
- package/dist/cjs/config/index.d.ts +6 -6
- package/dist/cjs/config/local.env.d.ts +5 -5
- package/dist/cjs/config/prod.env.d.ts +5 -5
- package/dist/cjs/config/staging.env.d.ts +5 -5
- package/dist/cjs/hooks/useAccessibility.d.ts +5 -5
- package/dist/cjs/i18n/config.d.ts +2272 -2272
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +6183 -5820
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/candidateInterface.d.ts +14 -14
- package/dist/cjs/interfaces/candidateSessionInterface.d.ts +83 -83
- package/dist/cjs/interfaces/companyInterface.d.ts +4 -4
- package/dist/cjs/interfaces/configInterface.d.ts +79 -79
- package/dist/cjs/interfaces/countDownInterface.d.ts +23 -23
- package/dist/cjs/interfaces/jobInterface.d.ts +73 -73
- package/dist/cjs/interfaces/microphoneInterface.d.ts +44 -44
- package/dist/cjs/interfaces/networkInterface.d.ts +9 -9
- package/dist/cjs/interfaces/previewInterface.d.ts +14 -14
- package/dist/cjs/interfaces/recorderInterface.d.ts +210 -210
- package/dist/cjs/interfaces/storageInterface.d.ts +30 -30
- package/dist/cjs/interfaces/uploaderInterface.d.ts +41 -41
- package/dist/cjs/interfaces/videoInterface.d.ts +89 -89
- package/dist/cjs/interfaces/widgetInterface.d.ts +250 -250
- package/dist/cjs/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -6
- package/dist/cjs/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -6
- package/dist/cjs/machines/acceleratorMachines/counterMachine.d.ts +5 -5
- package/dist/cjs/machines/acceleratorMachines/microphoneMachine.d.ts +6 -6
- package/dist/cjs/machines/acceleratorMachines/networkMachine.d.ts +5 -5
- package/dist/cjs/machines/acceleratorMachines/previewMachine.d.ts +6 -6
- package/dist/cjs/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -6
- package/dist/cjs/machines/acceleratorMachines/storageMachine.d.ts +6 -6
- package/dist/cjs/reportWebVitals.d.ts +3 -3
- package/dist/cjs/services/axiosInstances.service.d.ts +4 -4
- package/dist/cjs/services/event.service.d.ts +61 -61
- package/dist/cjs/services/s3.service.d.ts +1 -1
- package/dist/cjs/services/session.service.d.ts +57 -57
- package/dist/cjs/services/speedTest.service.d.ts +2 -2
- package/dist/cjs/services/video.service.d.ts +7 -7
- package/dist/cjs/setupTests.d.ts +1 -1
- package/dist/cjs/utils/authToken.utils.d.ts +7 -7
- package/dist/cjs/utils/constants.utils.d.ts +27 -27
- package/dist/cjs/utils/convertor.utils.d.ts +2 -2
- package/dist/cjs/utils/debug.utils.d.ts +20 -20
- package/dist/cjs/utils/device.utils.d.ts +18 -18
- package/dist/cjs/utils/errors.utils.d.ts +9 -9
- package/dist/cjs/utils/formatters.utils.d.ts +5 -5
- package/dist/cjs/utils/languages.utils.d.ts +1 -1
- package/dist/cjs/utils/messages.utils.d.ts +17 -17
- package/dist/cjs/utils/recorderErrors.utils.d.ts +53 -53
- package/dist/cjs/utils/sentry.utils.d.ts +6 -6
- package/dist/cjs/utils/statusCodes.utils.d.ts +13 -13
- package/dist/cjs/workers/microphone.worker.d.ts +2 -2
- package/dist/cjs/workers/worker-builder.d.ts +3 -3
- package/dist/esm/App.d.ts +3 -3
- package/dist/esm/components/AnswerInstructions.d.ts +7 -7
- package/dist/esm/components/AssessmentController.d.ts +13 -13
- package/dist/esm/components/AssessmentFreeText.d.ts +8 -8
- package/dist/esm/components/AssessmentMultiSelect.d.ts +9 -9
- package/dist/esm/components/AssessmentSingleSelect.d.ts +9 -9
- package/dist/esm/components/CharactersLimit.d.ts +7 -7
- package/dist/esm/components/CountDown.d.ts +8 -8
- package/dist/esm/components/Counter.d.ts +8 -8
- package/dist/esm/components/DeviceSelector.d.ts +12 -12
- package/dist/esm/components/DeviceSelectorList.d.ts +9 -9
- package/dist/esm/components/DeviceSelectorListNative.d.ts +6 -6
- package/dist/esm/components/Error.d.ts +8 -8
- package/dist/esm/components/ErrorBoundaries.d.ts +9 -9
- package/dist/esm/components/Errors.d.ts +11 -11
- package/dist/esm/components/Explanation.d.ts +12 -12
- package/dist/esm/components/Footer.d.ts +2 -2
- package/dist/esm/components/Header.d.ts +10 -10
- package/dist/esm/components/InnerView.d.ts +15 -15
- package/dist/esm/components/Main.d.ts +11 -11
- package/dist/esm/components/OuterView.d.ts +8 -8
- package/dist/esm/components/PermissionSteps.d.ts +6 -6
- package/dist/esm/components/PracticeModeInfo.d.ts +2 -2
- package/dist/esm/components/PreviewItem.d.ts +21 -21
- package/dist/esm/components/PreviewList.d.ts +18 -18
- package/dist/esm/components/Question.d.ts +8 -8
- package/dist/esm/components/QuestionItem.d.ts +12 -12
- package/dist/esm/components/QuestionParameters.d.ts +9 -9
- package/dist/esm/components/QuestionsList.d.ts +11 -11
- package/dist/esm/components/RecorderModal.d.ts +14 -14
- package/dist/esm/components/Setup.d.ts +8 -8
- package/dist/esm/components/SetupChecks.d.ts +15 -15
- package/dist/esm/components/SliderModal.d.ts +8 -8
- package/dist/esm/components/TimesUp.d.ts +6 -6
- package/dist/esm/components/TopTips.d.ts +2 -2
- package/dist/esm/components/Upload.d.ts +13 -13
- package/dist/esm/components/VideoCamera.d.ts +32 -32
- package/dist/esm/components/VideoQuestion.d.ts +12 -12
- package/dist/esm/components/VideoTimeBar.d.ts +9 -9
- package/dist/esm/components/WelcomePage.d.ts +16 -16
- package/dist/esm/components/Widget.d.ts +6 -6
- package/dist/esm/components/icons/ClockIcon.d.ts +2 -2
- package/dist/esm/components/icons/Loading.d.ts +2 -2
- package/dist/esm/components/icons/NoCameraMic.d.ts +2 -2
- package/dist/esm/components/icons/PlayIcon.d.ts +6 -6
- package/dist/esm/components/icons/Retake.d.ts +2 -2
- package/dist/esm/components/icons/RotateScreenIcon.d.ts +2 -2
- package/dist/esm/components/ui/DotSeparator.d.ts +2 -2
- package/dist/esm/components/ui/Loader.d.ts +2 -2
- package/dist/esm/components/ui/MicrophoneIndicator.d.ts +7 -7
- package/dist/esm/components/ui/MinimizeButton.d.ts +6 -6
- package/dist/esm/components/ui/PracticeMode.d.ts +2 -2
- package/dist/esm/components/ui/Progress.d.ts +6 -6
- package/dist/esm/components/ui/QuestionDuration.d.ts +6 -6
- package/dist/esm/components/ui/QuestionNumber.d.ts +7 -7
- package/dist/esm/components/ui/RecordingButton.d.ts +6 -6
- package/dist/esm/components/ui/RotateScreen.d.ts +2 -2
- package/dist/esm/components/ui/Signal.d.ts +9 -9
- package/dist/esm/components/ui/StartNowButton.d.ts +6 -6
- package/dist/esm/components/ui/StartRecordingButton.d.ts +12 -12
- package/dist/esm/components/ui/StopRecordingButton.d.ts +8 -8
- package/dist/esm/components/ui/UnsupportedModal.d.ts +6 -6
- package/dist/esm/config/index.d.ts +6 -6
- package/dist/esm/config/local.env.d.ts +5 -5
- package/dist/esm/config/prod.env.d.ts +5 -5
- package/dist/esm/config/staging.env.d.ts +5 -5
- package/dist/esm/hooks/useAccessibility.d.ts +5 -5
- package/dist/esm/i18n/config.d.ts +2272 -2272
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +6183 -5820
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/candidateInterface.d.ts +14 -14
- package/dist/esm/interfaces/candidateSessionInterface.d.ts +83 -83
- package/dist/esm/interfaces/companyInterface.d.ts +4 -4
- package/dist/esm/interfaces/configInterface.d.ts +79 -79
- package/dist/esm/interfaces/countDownInterface.d.ts +23 -23
- package/dist/esm/interfaces/jobInterface.d.ts +73 -73
- package/dist/esm/interfaces/microphoneInterface.d.ts +44 -44
- package/dist/esm/interfaces/networkInterface.d.ts +9 -9
- package/dist/esm/interfaces/previewInterface.d.ts +14 -14
- package/dist/esm/interfaces/recorderInterface.d.ts +210 -210
- package/dist/esm/interfaces/storageInterface.d.ts +30 -30
- package/dist/esm/interfaces/uploaderInterface.d.ts +41 -41
- package/dist/esm/interfaces/videoInterface.d.ts +89 -89
- package/dist/esm/interfaces/widgetInterface.d.ts +250 -250
- package/dist/esm/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -6
- package/dist/esm/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -6
- package/dist/esm/machines/acceleratorMachines/counterMachine.d.ts +5 -5
- package/dist/esm/machines/acceleratorMachines/microphoneMachine.d.ts +6 -6
- package/dist/esm/machines/acceleratorMachines/networkMachine.d.ts +5 -5
- package/dist/esm/machines/acceleratorMachines/previewMachine.d.ts +6 -6
- package/dist/esm/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -6
- package/dist/esm/machines/acceleratorMachines/storageMachine.d.ts +6 -6
- package/dist/esm/reportWebVitals.d.ts +3 -3
- package/dist/esm/services/axiosInstances.service.d.ts +4 -4
- package/dist/esm/services/event.service.d.ts +61 -61
- package/dist/esm/services/s3.service.d.ts +1 -1
- package/dist/esm/services/session.service.d.ts +57 -57
- package/dist/esm/services/speedTest.service.d.ts +2 -2
- package/dist/esm/services/video.service.d.ts +7 -7
- package/dist/esm/setupTests.d.ts +1 -1
- package/dist/esm/utils/authToken.utils.d.ts +7 -7
- package/dist/esm/utils/constants.utils.d.ts +27 -27
- package/dist/esm/utils/convertor.utils.d.ts +2 -2
- package/dist/esm/utils/debug.utils.d.ts +20 -20
- package/dist/esm/utils/device.utils.d.ts +18 -18
- package/dist/esm/utils/errors.utils.d.ts +9 -9
- package/dist/esm/utils/formatters.utils.d.ts +5 -5
- package/dist/esm/utils/languages.utils.d.ts +1 -1
- package/dist/esm/utils/messages.utils.d.ts +17 -17
- package/dist/esm/utils/recorderErrors.utils.d.ts +53 -53
- package/dist/esm/utils/sentry.utils.d.ts +6 -6
- package/dist/esm/utils/statusCodes.utils.d.ts +13 -13
- package/dist/esm/workers/microphone.worker.d.ts +2 -2
- package/dist/esm/workers/worker-builder.d.ts +3 -3
- package/dist/index.d.ts +235 -235
- package/package.json +209 -210
|
@@ -1,250 +1,250 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { ActorRef, BaseActionObject, DoneInvokeEvent, Event, EventData, ResolveTypegenMeta, SCXML, ServiceMap, SingleOrArray, State, TypegenDisabled } from 'xstate';
|
|
3
|
-
import { IWidgetConfig } from './configInterface';
|
|
4
|
-
import { CAMERA_STATES_MESSAGES, INTERNET_STATES_MESSAGES, MICROPHONE_STATES_MESSAGES } from '../utils/messages.utils';
|
|
5
|
-
import { TAKE_TYPES } from './storageInterface';
|
|
6
|
-
import { ALL_JOB_QUESTIONS_TYPE } from './jobInterface';
|
|
7
|
-
import { IVideoError } from '../utils/errors.utils';
|
|
8
|
-
import { IVideoDimensions } from './videoInterface';
|
|
9
|
-
type IUploaderRef = {
|
|
10
|
-
[uploaderRef: string]: ActorRef<DoneInvokeEvent<any>>;
|
|
11
|
-
};
|
|
12
|
-
export declare const VIDEO_ERROR_MESSAGES: {
|
|
13
|
-
RETRY: "RETRY";
|
|
14
|
-
REDIRECT: "REDIRECT";
|
|
15
|
-
NO_ERROR: "";
|
|
16
|
-
};
|
|
17
|
-
export type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
18
|
-
export type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
19
|
-
export type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
20
|
-
export type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
21
|
-
export declare const CAMERA_STATES: {
|
|
22
|
-
[K in ICameraStateKey]: K;
|
|
23
|
-
};
|
|
24
|
-
export declare const MICROPHONE_STATES: {
|
|
25
|
-
[K in IMicrophoneStateKey]: K;
|
|
26
|
-
};
|
|
27
|
-
export declare const INTERNET_STATES: {
|
|
28
|
-
[K in IInternetStateKey]: K;
|
|
29
|
-
};
|
|
30
|
-
export declare const VIDEO_CORRUPTED_STATES: {
|
|
31
|
-
[K in IVideoCorruptedMessagesKey]: K;
|
|
32
|
-
};
|
|
33
|
-
export interface IChecksMetaObj {
|
|
34
|
-
key: 'camera' | 'microphone' | 'internet';
|
|
35
|
-
state: ICameraStateKey | IMicrophoneStateKey | IInternetStateKey;
|
|
36
|
-
message?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface IChecksState {
|
|
39
|
-
camera: ICameraStateKey;
|
|
40
|
-
microphone: IMicrophoneStateKey;
|
|
41
|
-
internet: IInternetStateKey;
|
|
42
|
-
}
|
|
43
|
-
interface IChecksMessage {
|
|
44
|
-
camera: string;
|
|
45
|
-
microphone: string;
|
|
46
|
-
internet: string;
|
|
47
|
-
}
|
|
48
|
-
export type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
49
|
-
export type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
50
|
-
export interface InitialState {
|
|
51
|
-
speedTestResult: number;
|
|
52
|
-
widgetConfig: IWidgetConfig;
|
|
53
|
-
questions: ALL_JOB_QUESTIONS_TYPE[];
|
|
54
|
-
isConnected: boolean;
|
|
55
|
-
videoRef: RefObject<HTMLVideoElement>;
|
|
56
|
-
networkRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
57
|
-
recorderRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
58
|
-
storageRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
59
|
-
previewRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
60
|
-
uploaderRefs: IUploaderRef;
|
|
61
|
-
countDownRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
62
|
-
timer: number;
|
|
63
|
-
currentQuestion: number;
|
|
64
|
-
currentTake: number;
|
|
65
|
-
selectedTake: number | null;
|
|
66
|
-
recordingType: TAKE_TYPES;
|
|
67
|
-
checksState: IChecksState;
|
|
68
|
-
checksMessage: IChecksMessage;
|
|
69
|
-
totalFileSize: number;
|
|
70
|
-
totalUploadedFilesSize: {
|
|
71
|
-
[questionNumber: string]: number;
|
|
72
|
-
};
|
|
73
|
-
totalUploadSpeed: {
|
|
74
|
-
[questionNumber: string]: number;
|
|
75
|
-
};
|
|
76
|
-
error: IVideoError | null;
|
|
77
|
-
failedRecordingAttempts: number;
|
|
78
|
-
failedRecordingMessage: IVideoCorruptedMessagesKey;
|
|
79
|
-
isResumed: boolean;
|
|
80
|
-
videoDimensions: IVideoDimensions;
|
|
81
|
-
confirmUploadedFalseCount: number;
|
|
82
|
-
}
|
|
83
|
-
export interface IWidgetMachineProps {
|
|
84
|
-
widgetMachine: State<InitialState, DoneInvokeEvent<any>, any, {
|
|
85
|
-
value: any;
|
|
86
|
-
context: InitialState;
|
|
87
|
-
}, ResolveTypegenMeta<TypegenDisabled, DoneInvokeEvent<any>, BaseActionObject, ServiceMap>>;
|
|
88
|
-
sendToWidget: (event: SCXML.Event<DoneInvokeEvent<any>> | SingleOrArray<Event<DoneInvokeEvent<any>>>, payload?: EventData | undefined) => void;
|
|
89
|
-
}
|
|
90
|
-
export declare const enum STATES {
|
|
91
|
-
INIT = "init",
|
|
92
|
-
WELCOME = "welcome",
|
|
93
|
-
SETUP = "setup",
|
|
94
|
-
SETUP__INIT_STORAGE = "initStorage",
|
|
95
|
-
SETUP__INIT_RECORDER = "initRecorder",
|
|
96
|
-
SETUP__TEST = "test",
|
|
97
|
-
SETUP__TEST__CAMERA = "testCamera",
|
|
98
|
-
SETUP__TEST__CAMERA__WAITING = "testCameraWaiting",
|
|
99
|
-
SETUP__TEST__CAMERA__ERROR = "testCameraError",
|
|
100
|
-
SETUP__TEST__CAMERA__SUCCESS = "testCameraSuccess",
|
|
101
|
-
SETUP__TEST__CAMERA__SKIP = "testCameraSkip",
|
|
102
|
-
SETUP__TEST__MICROPHONE = "testMicrophone",
|
|
103
|
-
SETUP__TEST__MICROPHONE__WAITING = "testMicrophoneWaiting",
|
|
104
|
-
SETUP__TEST__MICROPHONE__ERROR = "testMicrophoneError",
|
|
105
|
-
SETUP__TEST__MICROPHONE__SUCCESS = "testMicrophoneSuccess",
|
|
106
|
-
SETUP__TEST__INTERNET = "testInternet",
|
|
107
|
-
SETUP__TEST__INTERNET__IDLE = "testInternetIdle",
|
|
108
|
-
SETUP__TEST__INTERNET__TESTING = "testInternetTesting",
|
|
109
|
-
SETUP__TEST__INTERNET__FINISHED = "testInternetFinished",
|
|
110
|
-
INTERVIEW = "interview",
|
|
111
|
-
INTERVIEW__INIT = "interviewInit",
|
|
112
|
-
INTERVIEW__EXPLANATION = "interviewExplanation",
|
|
113
|
-
INTERVIEW__QUESTION = "interviewQuestion",
|
|
114
|
-
INTERVIEW__VIDEO_QUESTION = "interviewVideoQuestion",
|
|
115
|
-
INTERVIEW__ANSWER_SELECTOR = "interviewAnswerSelector",
|
|
116
|
-
INTERVIEW__ASSESSMENT = "interviewAssessment",
|
|
117
|
-
INTERVIEW__RECORDING = "interviewRecording",
|
|
118
|
-
PREVIEW = "preview",
|
|
119
|
-
TIMES_UP = "timesUp",
|
|
120
|
-
NEXT_QUESTION_MIDDLEWARE = "nextQuestionMiddleware",
|
|
121
|
-
RE_INIT_RECORDER = "reInitRecorder",
|
|
122
|
-
RE_INIT_RECORDER__NEXT_RETAKE = "reInitRecorderNextRetake",
|
|
123
|
-
RE_INIT_RECORDER__NEXT_QUESTION = "reInitRecorderNextQuestion",
|
|
124
|
-
UPLOADING = "uploading",
|
|
125
|
-
UPLOADING__SELECTOR = "uploadingSelector",
|
|
126
|
-
UPLOADING__LAST_QUESTION = "uploadingLastQuestion",
|
|
127
|
-
UPLOADING__SAFE_UPLOAD = "uploadingSafeUpload",
|
|
128
|
-
CONFIRM = "confirm",
|
|
129
|
-
CONFIRM_WATING = "confirmWaiting",
|
|
130
|
-
FINISHED = "finished",
|
|
131
|
-
ERROR = "error"
|
|
132
|
-
}
|
|
133
|
-
export declare const enum ACTIONS {
|
|
134
|
-
VIDEO_DATA_RECEIVED_CB = "videoDataReceivedCb",
|
|
135
|
-
CONSOLE_LOG = "consoleLog",
|
|
136
|
-
CONSOLE_DEBUG = "consoleDebug",
|
|
137
|
-
SET_CONNECTION = "setConnection",
|
|
138
|
-
SET_CONFIG = "getConfig",
|
|
139
|
-
SET_NEXT_QUESTION = "setNextQuestion",
|
|
140
|
-
SET_SPEED_TEST = "setSpeedTest",
|
|
141
|
-
SET_CHECKS = "setChecks",
|
|
142
|
-
SET_PRACTICE_MODE = "setPracticeMode",
|
|
143
|
-
SET_QUESTION_MODE = "setQuestionMode",
|
|
144
|
-
SPAWN_NETWORK = "spawnNetwork",
|
|
145
|
-
SPAWN_RECORDER = "spawnRecorder",
|
|
146
|
-
SPAWN_UPLOADER = "spawnUploader",
|
|
147
|
-
SPAWN_STORAGE = "spawnStorage",
|
|
148
|
-
SPAWN_PREVIEW = "spawnPreview",
|
|
149
|
-
SPAWN_COUNT_DOWN = "spawnCountDown",
|
|
150
|
-
STOP_RECORDER = "stopRecorder",
|
|
151
|
-
STOP_PREVIEW = "stopPreview",
|
|
152
|
-
STOP_COUNT_DOWN = "stopCountDown",
|
|
153
|
-
STORE_TAKE = "storeTake",
|
|
154
|
-
GET_TAKE = "getTake",
|
|
155
|
-
GET_TAKES = "getTakes",
|
|
156
|
-
SEND_TAKES = "sendTakes",
|
|
157
|
-
UPDATE_VIDEO_FILE_COMPLETED = "updateVideoFileCompleted",
|
|
158
|
-
UPDATE_TOTAL_FILES_SIZE = "updateTotalFileSize",
|
|
159
|
-
UPDATE_TOTAL_UPLOADED_FILES_SIZE = "updateTotalUploadedFileSize",
|
|
160
|
-
UPDATE_QUESTION_NUMBER = "updateQuestionNumber",
|
|
161
|
-
UPDATE_RETAKES_NUMBER = "updateRetakesNumber",
|
|
162
|
-
UPDATE_TIMER = "updateTimer",
|
|
163
|
-
UPDATE_AXION_AUTH = "updateAxiosAuth",
|
|
164
|
-
RECORDER_RE_INIT = "recorderReInit",
|
|
165
|
-
DEACTIVATE_RECORDER = "deactivateRecorder",
|
|
166
|
-
RECORDER_RE_INIT_AUTO_START = "recorderReInitAutoStart",
|
|
167
|
-
UPDATE_RECORDER_PARAMS = "updateRecorderParams",
|
|
168
|
-
UPDATE_TOTAL_UPLOADED = "updateTotalUploaded",
|
|
169
|
-
SET_VIDEO_ERROR = "setVideoError",
|
|
170
|
-
UPDATE_RECORDER_SPEED_TEST = "updateRecorderSpeedTest",
|
|
171
|
-
SENTRY = "sentry",
|
|
172
|
-
SET_SESSION = "setSession",
|
|
173
|
-
SESSION_EVENT = "sessionEvent",
|
|
174
|
-
SET_EVENT_ID = "setEventId",
|
|
175
|
-
EMIT_TRACKING_EVENT = "emitTrackingEvent",
|
|
176
|
-
REVOKE_MEMORY = "revokeMemory",
|
|
177
|
-
UPDATE_VIDEO_OBJECT = "updateVideoObject",
|
|
178
|
-
UPDATE_VIDEO_PART = "updateVideoPart",
|
|
179
|
-
INCREASE_FAILED_RECORDING_ATTEMPTS = "increaseFailedRecordingAttempts",
|
|
180
|
-
RESET_FAILED_RECORDING_ATTEMPTS = "resetFailedRecordingAttempts",
|
|
181
|
-
CLEAR_VIDEO_ERROR = "clearVideoError",
|
|
182
|
-
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions",
|
|
183
|
-
UPDATE_UPLOADED_FALSE_COUNT = "updateUploadedFalseCount"
|
|
184
|
-
}
|
|
185
|
-
export declare const enum EVENTS {
|
|
186
|
-
SPAWN_UPLOADER = "SPAWN_UPLOADER",
|
|
187
|
-
TEST = "TEST",
|
|
188
|
-
PRACTICE_MODE = "PRACTICE_MODE",
|
|
189
|
-
QUESTION_MODE = "QUESTION_MODE",
|
|
190
|
-
IDLE = "IDLE",
|
|
191
|
-
PREVIEW = "PREVIEW",
|
|
192
|
-
BACK = "BACK",
|
|
193
|
-
STOP_RECORDING = "STOP_RECORDING",
|
|
194
|
-
GET_TAKES = "GET_TAKES",
|
|
195
|
-
TAKE_TO_UPLOAD_RECEIVED = "TAKE_TO_UPLOAD_RECEIVED",
|
|
196
|
-
TAKES_RECEIVED = "TAKES_RECEIVED",
|
|
197
|
-
NEXT_STEP = "NEXT_STEP",
|
|
198
|
-
NEXT_QUESTION = "NEXT_QUESTION",
|
|
199
|
-
NEXT_RETAKE = "NEXT_RETAKE",
|
|
200
|
-
READY_TO_START_RECORDING = "READY_TO_START_RECORDING",
|
|
201
|
-
UPLOADER_PROGRESS = "UPLOADER_PROGRESS",
|
|
202
|
-
UPLOADER_FINISHED = "UPLOADER_FINISHED",
|
|
203
|
-
RECORDER_ERROR = "RECORDER_ERROR",
|
|
204
|
-
RETRY = "RETRY",
|
|
205
|
-
UPDATE_TIMER = "UPDATE_TIMER",
|
|
206
|
-
UPDATE_VIDEO_DIMENSIONS = "UPDATE_VIDEO_DIMENSIONS"
|
|
207
|
-
}
|
|
208
|
-
export declare const enum SERVICES {
|
|
209
|
-
UPDATE_VIDEO_OBJECT_CALL = "updateVideoObjectCall",
|
|
210
|
-
UPDATE_VIDEO_PART_CALL = "updateVideoPartCall"
|
|
211
|
-
}
|
|
212
|
-
export declare const enum GUARDS {
|
|
213
|
-
IS_VIDEO_RECORDING_SKIP = "isVideoRecordingSkip",
|
|
214
|
-
NO_STORAGE = "noStorage",
|
|
215
|
-
NO_RECORDER = "noRecorder",
|
|
216
|
-
IS_THINKING_TIME = "isThinkingTime",
|
|
217
|
-
IS_VIDEO_QUESTION = "isVideoQuestion",
|
|
218
|
-
IS_QUESTION_MODE = "isQuestionMode",
|
|
219
|
-
IS_PRACTICE_MODE = "isPracticeMod",
|
|
220
|
-
IS_NOT_LAST_TAKE = "isNotLastTake",
|
|
221
|
-
IS_LAST_INTERVIEW_QUESTION = "isLastInterviewQuestion",
|
|
222
|
-
CAN_RETEST_SPEED_CONNECTION = "canRetestSpeedConnection",
|
|
223
|
-
IS_CONNECTED = "isConnected",
|
|
224
|
-
IS_DISCONNECTED = "isDisconnected",
|
|
225
|
-
CAN_START_INTERVIEW = "canStartInterview",
|
|
226
|
-
ARE_ALL_QUESTIONS_UPLOADED = "areAllQuestionsUploaded",
|
|
227
|
-
IS_CURRENT_QUESTION_SAFE_UPLOADED = "isCurrentQuestionSafeUploaded",
|
|
228
|
-
SHOULD_SHOW_WELCOME = "shouldShowWelcome",
|
|
229
|
-
IS_NO_SOUND_ERROR = "isNoSoundError",
|
|
230
|
-
IS_VIDEO_CORRUPTED = "isVideoCorrupted",
|
|
231
|
-
IS_AUDIO_ERROR = "isAudioError",
|
|
232
|
-
IS_VIDEO_ERROR = "isVideoError",
|
|
233
|
-
THERE_ARE_NO_VIDEO_QUESTIONS_TYPE = "thereAreNoVideoQuestionType",
|
|
234
|
-
IS_RECORDER_READY = "isRecorderReady",
|
|
235
|
-
IS_ASSESSMENT_QUESTION = "isAssessmentQuestion",
|
|
236
|
-
IS_TIMES_UP = "isTimesUp",
|
|
237
|
-
SHOULD_TRY_TO_CONFIRM = "shouldTryToConfirm",
|
|
238
|
-
IS_SAFE_UPLOAD = "isSafeUpload"
|
|
239
|
-
}
|
|
240
|
-
export declare const enum TAGS {
|
|
241
|
-
SETUP = "setup",
|
|
242
|
-
SHOW_CAMERA = "showCamera",
|
|
243
|
-
CAN_START_RECORDING = "canStartRecording",
|
|
244
|
-
DISPLAY_OUTER_VIEW = "displayOuterView",
|
|
245
|
-
DISPLAY_QUESTION = "displayQuestion",
|
|
246
|
-
DISPLAY_QUESTIONS_LIST = "displayQuestionsList",
|
|
247
|
-
DISPLAY_UPLOAD = "displayUpload",
|
|
248
|
-
LOADING = "loading"
|
|
249
|
-
}
|
|
250
|
-
export {};
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { ActorRef, BaseActionObject, DoneInvokeEvent, Event, EventData, ResolveTypegenMeta, SCXML, ServiceMap, SingleOrArray, State, TypegenDisabled } from 'xstate';
|
|
3
|
+
import { IWidgetConfig } from './configInterface';
|
|
4
|
+
import { CAMERA_STATES_MESSAGES, INTERNET_STATES_MESSAGES, MICROPHONE_STATES_MESSAGES } from '../utils/messages.utils';
|
|
5
|
+
import { TAKE_TYPES } from './storageInterface';
|
|
6
|
+
import { ALL_JOB_QUESTIONS_TYPE } from './jobInterface';
|
|
7
|
+
import { IVideoError } from '../utils/errors.utils';
|
|
8
|
+
import { IVideoDimensions } from './videoInterface';
|
|
9
|
+
type IUploaderRef = {
|
|
10
|
+
[uploaderRef: string]: ActorRef<DoneInvokeEvent<any>>;
|
|
11
|
+
};
|
|
12
|
+
export declare const VIDEO_ERROR_MESSAGES: {
|
|
13
|
+
RETRY: "RETRY";
|
|
14
|
+
REDIRECT: "REDIRECT";
|
|
15
|
+
NO_ERROR: "";
|
|
16
|
+
};
|
|
17
|
+
export type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
18
|
+
export type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
19
|
+
export type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
20
|
+
export type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
21
|
+
export declare const CAMERA_STATES: {
|
|
22
|
+
[K in ICameraStateKey]: K;
|
|
23
|
+
};
|
|
24
|
+
export declare const MICROPHONE_STATES: {
|
|
25
|
+
[K in IMicrophoneStateKey]: K;
|
|
26
|
+
};
|
|
27
|
+
export declare const INTERNET_STATES: {
|
|
28
|
+
[K in IInternetStateKey]: K;
|
|
29
|
+
};
|
|
30
|
+
export declare const VIDEO_CORRUPTED_STATES: {
|
|
31
|
+
[K in IVideoCorruptedMessagesKey]: K;
|
|
32
|
+
};
|
|
33
|
+
export interface IChecksMetaObj {
|
|
34
|
+
key: 'camera' | 'microphone' | 'internet';
|
|
35
|
+
state: ICameraStateKey | IMicrophoneStateKey | IInternetStateKey;
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IChecksState {
|
|
39
|
+
camera: ICameraStateKey;
|
|
40
|
+
microphone: IMicrophoneStateKey;
|
|
41
|
+
internet: IInternetStateKey;
|
|
42
|
+
}
|
|
43
|
+
interface IChecksMessage {
|
|
44
|
+
camera: string;
|
|
45
|
+
microphone: string;
|
|
46
|
+
internet: string;
|
|
47
|
+
}
|
|
48
|
+
export type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
49
|
+
export type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
50
|
+
export interface InitialState {
|
|
51
|
+
speedTestResult: number;
|
|
52
|
+
widgetConfig: IWidgetConfig;
|
|
53
|
+
questions: ALL_JOB_QUESTIONS_TYPE[];
|
|
54
|
+
isConnected: boolean;
|
|
55
|
+
videoRef: RefObject<HTMLVideoElement>;
|
|
56
|
+
networkRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
57
|
+
recorderRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
58
|
+
storageRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
59
|
+
previewRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
60
|
+
uploaderRefs: IUploaderRef;
|
|
61
|
+
countDownRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
62
|
+
timer: number;
|
|
63
|
+
currentQuestion: number;
|
|
64
|
+
currentTake: number;
|
|
65
|
+
selectedTake: number | null;
|
|
66
|
+
recordingType: TAKE_TYPES;
|
|
67
|
+
checksState: IChecksState;
|
|
68
|
+
checksMessage: IChecksMessage;
|
|
69
|
+
totalFileSize: number;
|
|
70
|
+
totalUploadedFilesSize: {
|
|
71
|
+
[questionNumber: string]: number;
|
|
72
|
+
};
|
|
73
|
+
totalUploadSpeed: {
|
|
74
|
+
[questionNumber: string]: number;
|
|
75
|
+
};
|
|
76
|
+
error: IVideoError | null;
|
|
77
|
+
failedRecordingAttempts: number;
|
|
78
|
+
failedRecordingMessage: IVideoCorruptedMessagesKey;
|
|
79
|
+
isResumed: boolean;
|
|
80
|
+
videoDimensions: IVideoDimensions;
|
|
81
|
+
confirmUploadedFalseCount: number;
|
|
82
|
+
}
|
|
83
|
+
export interface IWidgetMachineProps {
|
|
84
|
+
widgetMachine: State<InitialState, DoneInvokeEvent<any>, any, {
|
|
85
|
+
value: any;
|
|
86
|
+
context: InitialState;
|
|
87
|
+
}, ResolveTypegenMeta<TypegenDisabled, DoneInvokeEvent<any>, BaseActionObject, ServiceMap>>;
|
|
88
|
+
sendToWidget: (event: SCXML.Event<DoneInvokeEvent<any>> | SingleOrArray<Event<DoneInvokeEvent<any>>>, payload?: EventData | undefined) => void;
|
|
89
|
+
}
|
|
90
|
+
export declare const enum STATES {
|
|
91
|
+
INIT = "init",
|
|
92
|
+
WELCOME = "welcome",
|
|
93
|
+
SETUP = "setup",
|
|
94
|
+
SETUP__INIT_STORAGE = "initStorage",
|
|
95
|
+
SETUP__INIT_RECORDER = "initRecorder",
|
|
96
|
+
SETUP__TEST = "test",
|
|
97
|
+
SETUP__TEST__CAMERA = "testCamera",
|
|
98
|
+
SETUP__TEST__CAMERA__WAITING = "testCameraWaiting",
|
|
99
|
+
SETUP__TEST__CAMERA__ERROR = "testCameraError",
|
|
100
|
+
SETUP__TEST__CAMERA__SUCCESS = "testCameraSuccess",
|
|
101
|
+
SETUP__TEST__CAMERA__SKIP = "testCameraSkip",
|
|
102
|
+
SETUP__TEST__MICROPHONE = "testMicrophone",
|
|
103
|
+
SETUP__TEST__MICROPHONE__WAITING = "testMicrophoneWaiting",
|
|
104
|
+
SETUP__TEST__MICROPHONE__ERROR = "testMicrophoneError",
|
|
105
|
+
SETUP__TEST__MICROPHONE__SUCCESS = "testMicrophoneSuccess",
|
|
106
|
+
SETUP__TEST__INTERNET = "testInternet",
|
|
107
|
+
SETUP__TEST__INTERNET__IDLE = "testInternetIdle",
|
|
108
|
+
SETUP__TEST__INTERNET__TESTING = "testInternetTesting",
|
|
109
|
+
SETUP__TEST__INTERNET__FINISHED = "testInternetFinished",
|
|
110
|
+
INTERVIEW = "interview",
|
|
111
|
+
INTERVIEW__INIT = "interviewInit",
|
|
112
|
+
INTERVIEW__EXPLANATION = "interviewExplanation",
|
|
113
|
+
INTERVIEW__QUESTION = "interviewQuestion",
|
|
114
|
+
INTERVIEW__VIDEO_QUESTION = "interviewVideoQuestion",
|
|
115
|
+
INTERVIEW__ANSWER_SELECTOR = "interviewAnswerSelector",
|
|
116
|
+
INTERVIEW__ASSESSMENT = "interviewAssessment",
|
|
117
|
+
INTERVIEW__RECORDING = "interviewRecording",
|
|
118
|
+
PREVIEW = "preview",
|
|
119
|
+
TIMES_UP = "timesUp",
|
|
120
|
+
NEXT_QUESTION_MIDDLEWARE = "nextQuestionMiddleware",
|
|
121
|
+
RE_INIT_RECORDER = "reInitRecorder",
|
|
122
|
+
RE_INIT_RECORDER__NEXT_RETAKE = "reInitRecorderNextRetake",
|
|
123
|
+
RE_INIT_RECORDER__NEXT_QUESTION = "reInitRecorderNextQuestion",
|
|
124
|
+
UPLOADING = "uploading",
|
|
125
|
+
UPLOADING__SELECTOR = "uploadingSelector",
|
|
126
|
+
UPLOADING__LAST_QUESTION = "uploadingLastQuestion",
|
|
127
|
+
UPLOADING__SAFE_UPLOAD = "uploadingSafeUpload",
|
|
128
|
+
CONFIRM = "confirm",
|
|
129
|
+
CONFIRM_WATING = "confirmWaiting",
|
|
130
|
+
FINISHED = "finished",
|
|
131
|
+
ERROR = "error"
|
|
132
|
+
}
|
|
133
|
+
export declare const enum ACTIONS {
|
|
134
|
+
VIDEO_DATA_RECEIVED_CB = "videoDataReceivedCb",
|
|
135
|
+
CONSOLE_LOG = "consoleLog",
|
|
136
|
+
CONSOLE_DEBUG = "consoleDebug",
|
|
137
|
+
SET_CONNECTION = "setConnection",
|
|
138
|
+
SET_CONFIG = "getConfig",
|
|
139
|
+
SET_NEXT_QUESTION = "setNextQuestion",
|
|
140
|
+
SET_SPEED_TEST = "setSpeedTest",
|
|
141
|
+
SET_CHECKS = "setChecks",
|
|
142
|
+
SET_PRACTICE_MODE = "setPracticeMode",
|
|
143
|
+
SET_QUESTION_MODE = "setQuestionMode",
|
|
144
|
+
SPAWN_NETWORK = "spawnNetwork",
|
|
145
|
+
SPAWN_RECORDER = "spawnRecorder",
|
|
146
|
+
SPAWN_UPLOADER = "spawnUploader",
|
|
147
|
+
SPAWN_STORAGE = "spawnStorage",
|
|
148
|
+
SPAWN_PREVIEW = "spawnPreview",
|
|
149
|
+
SPAWN_COUNT_DOWN = "spawnCountDown",
|
|
150
|
+
STOP_RECORDER = "stopRecorder",
|
|
151
|
+
STOP_PREVIEW = "stopPreview",
|
|
152
|
+
STOP_COUNT_DOWN = "stopCountDown",
|
|
153
|
+
STORE_TAKE = "storeTake",
|
|
154
|
+
GET_TAKE = "getTake",
|
|
155
|
+
GET_TAKES = "getTakes",
|
|
156
|
+
SEND_TAKES = "sendTakes",
|
|
157
|
+
UPDATE_VIDEO_FILE_COMPLETED = "updateVideoFileCompleted",
|
|
158
|
+
UPDATE_TOTAL_FILES_SIZE = "updateTotalFileSize",
|
|
159
|
+
UPDATE_TOTAL_UPLOADED_FILES_SIZE = "updateTotalUploadedFileSize",
|
|
160
|
+
UPDATE_QUESTION_NUMBER = "updateQuestionNumber",
|
|
161
|
+
UPDATE_RETAKES_NUMBER = "updateRetakesNumber",
|
|
162
|
+
UPDATE_TIMER = "updateTimer",
|
|
163
|
+
UPDATE_AXION_AUTH = "updateAxiosAuth",
|
|
164
|
+
RECORDER_RE_INIT = "recorderReInit",
|
|
165
|
+
DEACTIVATE_RECORDER = "deactivateRecorder",
|
|
166
|
+
RECORDER_RE_INIT_AUTO_START = "recorderReInitAutoStart",
|
|
167
|
+
UPDATE_RECORDER_PARAMS = "updateRecorderParams",
|
|
168
|
+
UPDATE_TOTAL_UPLOADED = "updateTotalUploaded",
|
|
169
|
+
SET_VIDEO_ERROR = "setVideoError",
|
|
170
|
+
UPDATE_RECORDER_SPEED_TEST = "updateRecorderSpeedTest",
|
|
171
|
+
SENTRY = "sentry",
|
|
172
|
+
SET_SESSION = "setSession",
|
|
173
|
+
SESSION_EVENT = "sessionEvent",
|
|
174
|
+
SET_EVENT_ID = "setEventId",
|
|
175
|
+
EMIT_TRACKING_EVENT = "emitTrackingEvent",
|
|
176
|
+
REVOKE_MEMORY = "revokeMemory",
|
|
177
|
+
UPDATE_VIDEO_OBJECT = "updateVideoObject",
|
|
178
|
+
UPDATE_VIDEO_PART = "updateVideoPart",
|
|
179
|
+
INCREASE_FAILED_RECORDING_ATTEMPTS = "increaseFailedRecordingAttempts",
|
|
180
|
+
RESET_FAILED_RECORDING_ATTEMPTS = "resetFailedRecordingAttempts",
|
|
181
|
+
CLEAR_VIDEO_ERROR = "clearVideoError",
|
|
182
|
+
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions",
|
|
183
|
+
UPDATE_UPLOADED_FALSE_COUNT = "updateUploadedFalseCount"
|
|
184
|
+
}
|
|
185
|
+
export declare const enum EVENTS {
|
|
186
|
+
SPAWN_UPLOADER = "SPAWN_UPLOADER",
|
|
187
|
+
TEST = "TEST",
|
|
188
|
+
PRACTICE_MODE = "PRACTICE_MODE",
|
|
189
|
+
QUESTION_MODE = "QUESTION_MODE",
|
|
190
|
+
IDLE = "IDLE",
|
|
191
|
+
PREVIEW = "PREVIEW",
|
|
192
|
+
BACK = "BACK",
|
|
193
|
+
STOP_RECORDING = "STOP_RECORDING",
|
|
194
|
+
GET_TAKES = "GET_TAKES",
|
|
195
|
+
TAKE_TO_UPLOAD_RECEIVED = "TAKE_TO_UPLOAD_RECEIVED",
|
|
196
|
+
TAKES_RECEIVED = "TAKES_RECEIVED",
|
|
197
|
+
NEXT_STEP = "NEXT_STEP",
|
|
198
|
+
NEXT_QUESTION = "NEXT_QUESTION",
|
|
199
|
+
NEXT_RETAKE = "NEXT_RETAKE",
|
|
200
|
+
READY_TO_START_RECORDING = "READY_TO_START_RECORDING",
|
|
201
|
+
UPLOADER_PROGRESS = "UPLOADER_PROGRESS",
|
|
202
|
+
UPLOADER_FINISHED = "UPLOADER_FINISHED",
|
|
203
|
+
RECORDER_ERROR = "RECORDER_ERROR",
|
|
204
|
+
RETRY = "RETRY",
|
|
205
|
+
UPDATE_TIMER = "UPDATE_TIMER",
|
|
206
|
+
UPDATE_VIDEO_DIMENSIONS = "UPDATE_VIDEO_DIMENSIONS"
|
|
207
|
+
}
|
|
208
|
+
export declare const enum SERVICES {
|
|
209
|
+
UPDATE_VIDEO_OBJECT_CALL = "updateVideoObjectCall",
|
|
210
|
+
UPDATE_VIDEO_PART_CALL = "updateVideoPartCall"
|
|
211
|
+
}
|
|
212
|
+
export declare const enum GUARDS {
|
|
213
|
+
IS_VIDEO_RECORDING_SKIP = "isVideoRecordingSkip",
|
|
214
|
+
NO_STORAGE = "noStorage",
|
|
215
|
+
NO_RECORDER = "noRecorder",
|
|
216
|
+
IS_THINKING_TIME = "isThinkingTime",
|
|
217
|
+
IS_VIDEO_QUESTION = "isVideoQuestion",
|
|
218
|
+
IS_QUESTION_MODE = "isQuestionMode",
|
|
219
|
+
IS_PRACTICE_MODE = "isPracticeMod",
|
|
220
|
+
IS_NOT_LAST_TAKE = "isNotLastTake",
|
|
221
|
+
IS_LAST_INTERVIEW_QUESTION = "isLastInterviewQuestion",
|
|
222
|
+
CAN_RETEST_SPEED_CONNECTION = "canRetestSpeedConnection",
|
|
223
|
+
IS_CONNECTED = "isConnected",
|
|
224
|
+
IS_DISCONNECTED = "isDisconnected",
|
|
225
|
+
CAN_START_INTERVIEW = "canStartInterview",
|
|
226
|
+
ARE_ALL_QUESTIONS_UPLOADED = "areAllQuestionsUploaded",
|
|
227
|
+
IS_CURRENT_QUESTION_SAFE_UPLOADED = "isCurrentQuestionSafeUploaded",
|
|
228
|
+
SHOULD_SHOW_WELCOME = "shouldShowWelcome",
|
|
229
|
+
IS_NO_SOUND_ERROR = "isNoSoundError",
|
|
230
|
+
IS_VIDEO_CORRUPTED = "isVideoCorrupted",
|
|
231
|
+
IS_AUDIO_ERROR = "isAudioError",
|
|
232
|
+
IS_VIDEO_ERROR = "isVideoError",
|
|
233
|
+
THERE_ARE_NO_VIDEO_QUESTIONS_TYPE = "thereAreNoVideoQuestionType",
|
|
234
|
+
IS_RECORDER_READY = "isRecorderReady",
|
|
235
|
+
IS_ASSESSMENT_QUESTION = "isAssessmentQuestion",
|
|
236
|
+
IS_TIMES_UP = "isTimesUp",
|
|
237
|
+
SHOULD_TRY_TO_CONFIRM = "shouldTryToConfirm",
|
|
238
|
+
IS_SAFE_UPLOAD = "isSafeUpload"
|
|
239
|
+
}
|
|
240
|
+
export declare const enum TAGS {
|
|
241
|
+
SETUP = "setup",
|
|
242
|
+
SHOW_CAMERA = "showCamera",
|
|
243
|
+
CAN_START_RECORDING = "canStartRecording",
|
|
244
|
+
DISPLAY_OUTER_VIEW = "displayOuterView",
|
|
245
|
+
DISPLAY_QUESTION = "displayQuestion",
|
|
246
|
+
DISPLAY_QUESTIONS_LIST = "displayQuestionsList",
|
|
247
|
+
DISPLAY_UPLOAD = "displayUpload",
|
|
248
|
+
LOADING = "loading"
|
|
249
|
+
}
|
|
250
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { InitialState } from '../../interfaces/uploaderInterface';
|
|
3
|
-
export declare const accUploaderMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: InitialState;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { InitialState } from '../../interfaces/uploaderInterface';
|
|
3
|
+
export declare const accUploaderMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: InitialState;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { InitialState } from '../../interfaces/widgetInterface';
|
|
3
|
-
export declare const accWidgetMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: InitialState;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { InitialState } from '../../interfaces/widgetInterface';
|
|
3
|
+
export declare const accWidgetMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: InitialState;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CounterInterface } from '../../interfaces/countDownInterface';
|
|
2
|
-
export declare const counterMachine: import("xstate").StateMachine<CounterInterface, any, import("xstate").AnyEventObject, {
|
|
3
|
-
value: any;
|
|
4
|
-
context: CounterInterface;
|
|
5
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, import("xstate").AnyEventObject, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { CounterInterface } from '../../interfaces/countDownInterface';
|
|
2
|
+
export declare const counterMachine: import("xstate").StateMachine<CounterInterface, any, import("xstate").AnyEventObject, {
|
|
3
|
+
value: any;
|
|
4
|
+
context: CounterInterface;
|
|
5
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, import("xstate").AnyEventObject, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { InitialState } from '../../interfaces/microphoneInterface';
|
|
3
|
-
export declare const microphoneMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: InitialState;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { InitialState } from '../../interfaces/microphoneInterface';
|
|
3
|
+
export declare const microphoneMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: InitialState;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
export declare const networkMachine: import("xstate").StateMachine<{}, any, DoneInvokeEvent<any>, {
|
|
3
|
-
value: any;
|
|
4
|
-
context: {};
|
|
5
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
export declare const networkMachine: import("xstate").StateMachine<{}, any, DoneInvokeEvent<any>, {
|
|
3
|
+
value: any;
|
|
4
|
+
context: {};
|
|
5
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { PreviewInterface } from '../../interfaces/previewInterface';
|
|
3
|
-
export declare const previewMachine: import("xstate").StateMachine<PreviewInterface, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: PreviewInterface;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { PreviewInterface } from '../../interfaces/previewInterface';
|
|
3
|
+
export declare const previewMachine: import("xstate").StateMachine<PreviewInterface, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: PreviewInterface;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { RecorderInterface } from '../../interfaces/recorderInterface';
|
|
3
|
-
export declare const recorderMachineV2: import("xstate").StateMachine<RecorderInterface, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: RecorderInterface;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { RecorderInterface } from '../../interfaces/recorderInterface';
|
|
3
|
+
export declare const recorderMachineV2: import("xstate").StateMachine<RecorderInterface, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: RecorderInterface;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
-
import { InitialState } from '../../interfaces/storageInterface';
|
|
3
|
-
export declare const storageMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
-
value: any;
|
|
5
|
-
context: InitialState;
|
|
6
|
-
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
1
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
2
|
+
import { InitialState } from '../../interfaces/storageInterface';
|
|
3
|
+
export declare const storageMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
4
|
+
value: any;
|
|
5
|
+
context: InitialState;
|
|
6
|
+
}, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReportHandler } from 'web-vitals';
|
|
2
|
-
declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
|
|
3
|
-
export default reportWebVitals;
|
|
1
|
+
import { ReportHandler } from 'web-vitals';
|
|
2
|
+
declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
|
|
3
|
+
export default reportWebVitals;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const videoAxiosInstance: import("axios").AxiosInstance;
|
|
2
|
-
export declare const s3AxiosInstance: import("axios").AxiosInstance;
|
|
3
|
-
export declare const updateVideoAxiosAuth: (auth: string) => void;
|
|
4
|
-
export declare const updateVideoAxiosBaseURL: (url: string) => void;
|
|
1
|
+
export declare const videoAxiosInstance: import("axios").AxiosInstance;
|
|
2
|
+
export declare const s3AxiosInstance: import("axios").AxiosInstance;
|
|
3
|
+
export declare const updateVideoAxiosAuth: (auth: string) => void;
|
|
4
|
+
export declare const updateVideoAxiosBaseURL: (url: string) => void;
|