@myinterview/widget-react 1.1.69 → 1.1.70
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 +5069 -5069
- 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 +5069 -5069
- 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 +210 -209
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
export declare enum BANDWIDTH_CONNECTION {
|
|
2
|
-
GOOD = "good",
|
|
3
|
-
SLOW = "slow",
|
|
4
|
-
VERY_SLOW = "very_slow"
|
|
5
|
-
}
|
|
6
|
-
export declare const enum EVENT_TYPES {
|
|
7
|
-
PAGE_OPEN = "pageOpen",
|
|
8
|
-
FORM_FILLED = "formFilled",
|
|
9
|
-
START_INTERVIEW = "startInterview",
|
|
10
|
-
DOCUMENT_UPLOADED = "documentUploaded",
|
|
11
|
-
TOP_TIPS_CLICKED = "topTipsClicked",
|
|
12
|
-
TOP_TIPS_LIKED = "topTipsLiked",
|
|
13
|
-
TOP_TIPS_DISLIKED = "topTipsDisliked",
|
|
14
|
-
INTRO_VIDEO_PLAYED = "introVideoPlayed",
|
|
15
|
-
OPEN_WIDGET = "openWidget",
|
|
16
|
-
WELCOME_STATE_START_BUTTON = "welcomeStateStartButton",
|
|
17
|
-
WELCOME_STATE_TOP_TIPS = "welcomeStateTopTips",
|
|
18
|
-
WELCOME_STATE_VIDEO_PLAY = "welcomeStateVideoPlay",
|
|
19
|
-
WELCOME_STATE_VIDEO_PAUSE = "welcomeStateVideoPause",
|
|
20
|
-
WELCOME_STATE_VIDEO_FULLY_WATCHED = "welcomeStateVideoFullyWatched",
|
|
21
|
-
PERMISSION_DENIED = "permissionsDenied",
|
|
22
|
-
PERMISSION_GRANTED = "permissionsGranted",
|
|
23
|
-
CAMRTA_INITIALIZED = "cameraInitialized",
|
|
24
|
-
MIC_INITIALIZED = "micInitialized",
|
|
25
|
-
BANDWIDTH_CHECK = "bandwidthCheck",
|
|
26
|
-
VIDEO_QUESTION_PLAY = "videoQuestionPlay",
|
|
27
|
-
VIDEO_QUESTION_PAUSE = "videoQuestionPause",
|
|
28
|
-
VIDEO_QUESTION_WATCHED = "videoQuestionWatched",
|
|
29
|
-
PRACTICE_CLICKED = "practiceClicked",
|
|
30
|
-
PRACTICE_PRESENTED = "practicePresented",
|
|
31
|
-
PRACTICE_STARTED = "practiceStarted",
|
|
32
|
-
PRACTICE_ENDED = "practiceEnded",
|
|
33
|
-
PRACTICE_FINISHED = "practiceFinished",
|
|
34
|
-
PRACTICE_SKIPPED = "practiceSkipped",
|
|
35
|
-
START_CLICKED = "startClicked",
|
|
36
|
-
QUESTION_PRESENTED = "questionPresented",
|
|
37
|
-
QUESTION_STARTED = "questionStarted",
|
|
38
|
-
QUESTION_ENDED = "questionEnded",
|
|
39
|
-
RETAKE_CLICKED = "retakeClicked",
|
|
40
|
-
WIDGET_MINIMIZED = "widgetMinimized",
|
|
41
|
-
NO_SOUND = "noSound",
|
|
42
|
-
CAMERA_CHANGED = "cameraChanged",
|
|
43
|
-
MICROPHONE_CHANGED = "microphoneChanged",
|
|
44
|
-
SOUND_RESTORED = "soundRestored",
|
|
45
|
-
TIMES_UP = "timesUp",
|
|
46
|
-
COMPLETED_INTERVIEW = "completedInterview",
|
|
47
|
-
RECONNECTED = "reconnected",
|
|
48
|
-
CONFIRM_UPLOADED_FAILED = "confirmUploadedFailed",
|
|
49
|
-
FINISHED = "finished",
|
|
50
|
-
ON_FINISH_SUCCEED = "onFinishSucceed",
|
|
51
|
-
ON_FINISH_FAILED = "onFinishFailed"
|
|
52
|
-
}
|
|
53
|
-
export type IEventType = `${EVENT_TYPES}`;
|
|
54
|
-
export interface ITrackEvent {
|
|
55
|
-
eventType: IEventType;
|
|
56
|
-
extraData?: any;
|
|
57
|
-
}
|
|
58
|
-
declare let event_id: string | undefined;
|
|
59
|
-
export declare const updateEventId: (eventId: typeof event_id) => void;
|
|
60
|
-
export declare const emitTrackEvent: (eventData: ITrackEvent) => void;
|
|
61
|
-
export {};
|
|
1
|
+
export declare enum BANDWIDTH_CONNECTION {
|
|
2
|
+
GOOD = "good",
|
|
3
|
+
SLOW = "slow",
|
|
4
|
+
VERY_SLOW = "very_slow"
|
|
5
|
+
}
|
|
6
|
+
export declare const enum EVENT_TYPES {
|
|
7
|
+
PAGE_OPEN = "pageOpen",
|
|
8
|
+
FORM_FILLED = "formFilled",
|
|
9
|
+
START_INTERVIEW = "startInterview",
|
|
10
|
+
DOCUMENT_UPLOADED = "documentUploaded",
|
|
11
|
+
TOP_TIPS_CLICKED = "topTipsClicked",
|
|
12
|
+
TOP_TIPS_LIKED = "topTipsLiked",
|
|
13
|
+
TOP_TIPS_DISLIKED = "topTipsDisliked",
|
|
14
|
+
INTRO_VIDEO_PLAYED = "introVideoPlayed",
|
|
15
|
+
OPEN_WIDGET = "openWidget",
|
|
16
|
+
WELCOME_STATE_START_BUTTON = "welcomeStateStartButton",
|
|
17
|
+
WELCOME_STATE_TOP_TIPS = "welcomeStateTopTips",
|
|
18
|
+
WELCOME_STATE_VIDEO_PLAY = "welcomeStateVideoPlay",
|
|
19
|
+
WELCOME_STATE_VIDEO_PAUSE = "welcomeStateVideoPause",
|
|
20
|
+
WELCOME_STATE_VIDEO_FULLY_WATCHED = "welcomeStateVideoFullyWatched",
|
|
21
|
+
PERMISSION_DENIED = "permissionsDenied",
|
|
22
|
+
PERMISSION_GRANTED = "permissionsGranted",
|
|
23
|
+
CAMRTA_INITIALIZED = "cameraInitialized",
|
|
24
|
+
MIC_INITIALIZED = "micInitialized",
|
|
25
|
+
BANDWIDTH_CHECK = "bandwidthCheck",
|
|
26
|
+
VIDEO_QUESTION_PLAY = "videoQuestionPlay",
|
|
27
|
+
VIDEO_QUESTION_PAUSE = "videoQuestionPause",
|
|
28
|
+
VIDEO_QUESTION_WATCHED = "videoQuestionWatched",
|
|
29
|
+
PRACTICE_CLICKED = "practiceClicked",
|
|
30
|
+
PRACTICE_PRESENTED = "practicePresented",
|
|
31
|
+
PRACTICE_STARTED = "practiceStarted",
|
|
32
|
+
PRACTICE_ENDED = "practiceEnded",
|
|
33
|
+
PRACTICE_FINISHED = "practiceFinished",
|
|
34
|
+
PRACTICE_SKIPPED = "practiceSkipped",
|
|
35
|
+
START_CLICKED = "startClicked",
|
|
36
|
+
QUESTION_PRESENTED = "questionPresented",
|
|
37
|
+
QUESTION_STARTED = "questionStarted",
|
|
38
|
+
QUESTION_ENDED = "questionEnded",
|
|
39
|
+
RETAKE_CLICKED = "retakeClicked",
|
|
40
|
+
WIDGET_MINIMIZED = "widgetMinimized",
|
|
41
|
+
NO_SOUND = "noSound",
|
|
42
|
+
CAMERA_CHANGED = "cameraChanged",
|
|
43
|
+
MICROPHONE_CHANGED = "microphoneChanged",
|
|
44
|
+
SOUND_RESTORED = "soundRestored",
|
|
45
|
+
TIMES_UP = "timesUp",
|
|
46
|
+
COMPLETED_INTERVIEW = "completedInterview",
|
|
47
|
+
RECONNECTED = "reconnected",
|
|
48
|
+
CONFIRM_UPLOADED_FAILED = "confirmUploadedFailed",
|
|
49
|
+
FINISHED = "finished",
|
|
50
|
+
ON_FINISH_SUCCEED = "onFinishSucceed",
|
|
51
|
+
ON_FINISH_FAILED = "onFinishFailed"
|
|
52
|
+
}
|
|
53
|
+
export type IEventType = `${EVENT_TYPES}`;
|
|
54
|
+
export interface ITrackEvent {
|
|
55
|
+
eventType: IEventType;
|
|
56
|
+
extraData?: any;
|
|
57
|
+
}
|
|
58
|
+
declare let event_id: string | undefined;
|
|
59
|
+
export declare const updateEventId: (eventId: typeof event_id) => void;
|
|
60
|
+
export declare const emitTrackEvent: (eventData: ITrackEvent) => void;
|
|
61
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const uploadToS3: (url: string, data: File, onProgress?: ((e: any) => void) | undefined, timeout?: number) => Promise<void>;
|
|
1
|
+
export declare const uploadToS3: (url: string, data: File, onProgress?: ((e: any) => void) | undefined, timeout?: number) => Promise<void>;
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author tht7 ( tht7 )
|
|
3
|
-
* @date 10/07/12022 6:36 pm
|
|
4
|
-
*/
|
|
5
|
-
import { ICandidateSession } from '../interfaces/candidateSessionInterface';
|
|
6
|
-
/**
|
|
7
|
-
* This function will update the session in the database and cache it in the window object
|
|
8
|
-
* it will fill in the current session over the provided object
|
|
9
|
-
* @param session
|
|
10
|
-
* @param baseURL
|
|
11
|
-
*/
|
|
12
|
-
export declare function updateSession(session: Partial<ICandidateSession>, baseURL?: string): Promise<ICandidateSession | undefined>;
|
|
13
|
-
/**
|
|
14
|
-
* This function will fetch the session from the sessionStorage and server
|
|
15
|
-
* it will then cache the session in the window object
|
|
16
|
-
* @param _session - in case you want to override the session, or save a new one to the cache
|
|
17
|
-
* @param _session_id - in case you want to override the session_id and fetch from the server
|
|
18
|
-
*/
|
|
19
|
-
export declare function getCandidateSession(_session?: ICandidateSession, _session_id?: string): Promise<ICandidateSession | undefined>;
|
|
20
|
-
export declare function getSessionIdFromCache(): string | undefined | null;
|
|
21
|
-
/**
|
|
22
|
-
* this will remove the session from the sessionStorage, but not the window cache
|
|
23
|
-
* this should signal the end of this session
|
|
24
|
-
* however the end of a session is when the window gets closed
|
|
25
|
-
* so in order to prevent a new window from (maybe) getting the stale session
|
|
26
|
-
* we remove it from the sessionStorage
|
|
27
|
-
*/
|
|
28
|
-
export declare function deleteSession(): void;
|
|
29
|
-
/** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
|
|
30
|
-
type KeysMatching<T, V> = {
|
|
31
|
-
[K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
|
|
32
|
-
}[keyof T];
|
|
33
|
-
/**
|
|
34
|
-
* A cute shortcut for updating a date event in the session
|
|
35
|
-
* just give it the key of the date event, and it will update it
|
|
36
|
-
* @param eventType
|
|
37
|
-
*/
|
|
38
|
-
export declare function registerDateEvent(eventType: KeysMatching<ICandidateSession, Date>): Promise<ICandidateSession | undefined>;
|
|
39
|
-
/**
|
|
40
|
-
* Another cute shortcut for updating a number state of a session
|
|
41
|
-
* if no data is provided, it will just increment the number
|
|
42
|
-
* @param eventType
|
|
43
|
-
* @param data
|
|
44
|
-
*/
|
|
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
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @author tht7 ( tht7 )
|
|
3
|
+
* @date 10/07/12022 6:36 pm
|
|
4
|
+
*/
|
|
5
|
+
import { ICandidateSession } from '../interfaces/candidateSessionInterface';
|
|
6
|
+
/**
|
|
7
|
+
* This function will update the session in the database and cache it in the window object
|
|
8
|
+
* it will fill in the current session over the provided object
|
|
9
|
+
* @param session
|
|
10
|
+
* @param baseURL
|
|
11
|
+
*/
|
|
12
|
+
export declare function updateSession(session: Partial<ICandidateSession>, baseURL?: string): Promise<ICandidateSession | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* This function will fetch the session from the sessionStorage and server
|
|
15
|
+
* it will then cache the session in the window object
|
|
16
|
+
* @param _session - in case you want to override the session, or save a new one to the cache
|
|
17
|
+
* @param _session_id - in case you want to override the session_id and fetch from the server
|
|
18
|
+
*/
|
|
19
|
+
export declare function getCandidateSession(_session?: ICandidateSession, _session_id?: string): Promise<ICandidateSession | undefined>;
|
|
20
|
+
export declare function getSessionIdFromCache(): string | undefined | null;
|
|
21
|
+
/**
|
|
22
|
+
* this will remove the session from the sessionStorage, but not the window cache
|
|
23
|
+
* this should signal the end of this session
|
|
24
|
+
* however the end of a session is when the window gets closed
|
|
25
|
+
* so in order to prevent a new window from (maybe) getting the stale session
|
|
26
|
+
* we remove it from the sessionStorage
|
|
27
|
+
*/
|
|
28
|
+
export declare function deleteSession(): void;
|
|
29
|
+
/** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
|
|
30
|
+
type KeysMatching<T, V> = {
|
|
31
|
+
[K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
|
|
32
|
+
}[keyof T];
|
|
33
|
+
/**
|
|
34
|
+
* A cute shortcut for updating a date event in the session
|
|
35
|
+
* just give it the key of the date event, and it will update it
|
|
36
|
+
* @param eventType
|
|
37
|
+
*/
|
|
38
|
+
export declare function registerDateEvent(eventType: KeysMatching<ICandidateSession, Date>): Promise<ICandidateSession | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Another cute shortcut for updating a number state of a session
|
|
41
|
+
* if no data is provided, it will just increment the number
|
|
42
|
+
* @param eventType
|
|
43
|
+
* @param data
|
|
44
|
+
*/
|
|
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
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ONE_MB_IN_BYTES = 1048576;
|
|
2
|
-
export declare const accSpeedTest: () => Promise<number>;
|
|
1
|
+
export declare const ONE_MB_IN_BYTES = 1048576;
|
|
2
|
+
export declare const accSpeedTest: () => Promise<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IWidgetConfigRequest, IWidgetConfigResponse } from '../interfaces/configInterface';
|
|
2
|
-
import { IVideo, ALL_VIDEO_FILE_TYPES, IVideoDimensions } from '../interfaces/videoInterface';
|
|
3
|
-
export declare const createVideo: (widgetConfig: IWidgetConfigRequest, event_id?: string) => Promise<IWidgetConfigResponse>;
|
|
4
|
-
export declare const getVideo: (videoId: string) => Promise<IWidgetConfigResponse>;
|
|
5
|
-
export declare const updateVideo: ({ video_id, started, completed, uploaded, bandwidth }: IVideo) => Promise<IWidgetConfigResponse>;
|
|
6
|
-
export declare const updateVideoFile: (videoId: string, videoFile: ALL_VIDEO_FILE_TYPES) => Promise<IWidgetConfigResponse>;
|
|
7
|
-
export declare const getUploadUrl: (videoId: string, fileName: string, typeExtension: string, { width, height }: IVideoDimensions) => Promise<IWidgetConfigResponse>;
|
|
1
|
+
import { IWidgetConfigRequest, IWidgetConfigResponse } from '../interfaces/configInterface';
|
|
2
|
+
import { IVideo, ALL_VIDEO_FILE_TYPES, IVideoDimensions } from '../interfaces/videoInterface';
|
|
3
|
+
export declare const createVideo: (widgetConfig: IWidgetConfigRequest, event_id?: string) => Promise<IWidgetConfigResponse>;
|
|
4
|
+
export declare const getVideo: (videoId: string) => Promise<IWidgetConfigResponse>;
|
|
5
|
+
export declare const updateVideo: ({ video_id, started, completed, uploaded, bandwidth }: IVideo) => Promise<IWidgetConfigResponse>;
|
|
6
|
+
export declare const updateVideoFile: (videoId: string, videoFile: ALL_VIDEO_FILE_TYPES) => Promise<IWidgetConfigResponse>;
|
|
7
|
+
export declare const getUploadUrl: (videoId: string, fileName: string, typeExtension: string, { width, height }: IVideoDimensions) => Promise<IWidgetConfigResponse>;
|
package/dist/esm/setupTests.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface IGetToken {
|
|
2
|
-
type: string;
|
|
3
|
-
value: string;
|
|
4
|
-
secretKey: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const getToken: ({ type, value, secretKey }: IGetToken) => string;
|
|
7
|
-
export {};
|
|
1
|
+
interface IGetToken {
|
|
2
|
+
type: string;
|
|
3
|
+
value: string;
|
|
4
|
+
secretKey: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getToken: ({ type, value, secretKey }: IGetToken) => string;
|
|
7
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export declare const DEFAULT_COUNT_DOWN = 3;
|
|
2
|
-
export declare const DEFAULT_DURATION = 60;
|
|
3
|
-
export declare const DEFAULT_ATTEMPTS = 3;
|
|
4
|
-
export declare const DEFAULT_THINKING_TIME = 0;
|
|
5
|
-
export declare const ENOUGH_RECORDING_TIME = 3;
|
|
6
|
-
export declare const SPEED_TEST_FILE_SIZE = 5;
|
|
7
|
-
export declare const FAST_UPLOAD_SPEED = 0.35;
|
|
8
|
-
export declare const SLOW_UPLOAD_SPEED = 0.1;
|
|
9
|
-
export declare const SPEED_TEST_TIMEOUT = 5000;
|
|
10
|
-
export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
|
|
11
|
-
export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
|
|
12
|
-
export declare const MAX_FAILED_RECORDING_ATTEMPTS = 2;
|
|
13
|
-
export declare const SECONDS_LEFT_HIGHLIGHT = 10;
|
|
14
|
-
export declare const DEFAULT_ASSESSMENT_MAX_CHARS = 300;
|
|
15
|
-
export declare const DEFAULT_ASSESSMENT_DURATION = 0;
|
|
16
|
-
export declare const DEFAULT_VIDEO_DIMENSIONS: {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
export declare const MAX_CONFIRM_ATTEMPTS = 5;
|
|
21
|
-
export declare const FONT_URL = "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap";
|
|
22
|
-
export declare enum RETAKE_SPEED {
|
|
23
|
-
FAST = 300,
|
|
24
|
-
MEDIUM = 420,
|
|
25
|
-
SLOW = 600,
|
|
26
|
-
DISABLED = Infinity
|
|
27
|
-
}
|
|
1
|
+
export declare const DEFAULT_COUNT_DOWN = 3;
|
|
2
|
+
export declare const DEFAULT_DURATION = 60;
|
|
3
|
+
export declare const DEFAULT_ATTEMPTS = 3;
|
|
4
|
+
export declare const DEFAULT_THINKING_TIME = 0;
|
|
5
|
+
export declare const ENOUGH_RECORDING_TIME = 3;
|
|
6
|
+
export declare const SPEED_TEST_FILE_SIZE = 5;
|
|
7
|
+
export declare const FAST_UPLOAD_SPEED = 0.35;
|
|
8
|
+
export declare const SLOW_UPLOAD_SPEED = 0.1;
|
|
9
|
+
export declare const SPEED_TEST_TIMEOUT = 5000;
|
|
10
|
+
export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
|
|
11
|
+
export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
|
|
12
|
+
export declare const MAX_FAILED_RECORDING_ATTEMPTS = 2;
|
|
13
|
+
export declare const SECONDS_LEFT_HIGHLIGHT = 10;
|
|
14
|
+
export declare const DEFAULT_ASSESSMENT_MAX_CHARS = 300;
|
|
15
|
+
export declare const DEFAULT_ASSESSMENT_DURATION = 0;
|
|
16
|
+
export declare const DEFAULT_VIDEO_DIMENSIONS: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const MAX_CONFIRM_ATTEMPTS = 5;
|
|
21
|
+
export declare const FONT_URL = "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap";
|
|
22
|
+
export declare enum RETAKE_SPEED {
|
|
23
|
+
FAST = 300,
|
|
24
|
+
MEDIUM = 420,
|
|
25
|
+
SLOW = 600,
|
|
26
|
+
DISABLED = Infinity
|
|
27
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IClientQuestion, IQuestion } from '../interfaces/jobInterface';
|
|
2
|
-
export declare const convertQuestions: (questions?: IClientQuestion[]) => IQuestion[];
|
|
1
|
+
import { IClientQuestion, IQuestion } from '../interfaces/jobInterface';
|
|
2
|
+
export declare const convertQuestions: (questions?: IClientQuestion[]) => IQuestion[];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare const enum DEBUG {
|
|
2
|
-
FETCHING_INTERVIEW = "Fetching interview data",
|
|
3
|
-
INTERVIEW_DATA_RECEIVED = "Interview data received",
|
|
4
|
-
FETCHING_INTERVIEW_ERROR = "Failed to fetch interview",
|
|
5
|
-
WELCOME_PAGE_STAGE = "In welcome page stage",
|
|
6
|
-
SETUP_STAGE = "In setup stage",
|
|
7
|
-
MEIDA_DEVICE_SUCCESS = "Media device available",
|
|
8
|
-
MEDIA_DEVICE_SWITCH_OFF = "Media device is off",
|
|
9
|
-
MEDIA_DEVICE_ERROR = "Media device error",
|
|
10
|
-
NO_SOUND_DETECTED = "No sound detected",
|
|
11
|
-
DEVICE_CHANGED = "Device changed",
|
|
12
|
-
SPEED_TEST_DONE = "Speed test result received",
|
|
13
|
-
PRACTICE_STARTED = "Practice started",
|
|
14
|
-
INTERVIEW_STARTED = "Interview started",
|
|
15
|
-
RETAKE_CLICKED = "Retake clicked",
|
|
16
|
-
QUESTION_SUBMITTED = "Qeustion submitted",
|
|
17
|
-
UPLOADING_STATE = "In uploading state",
|
|
18
|
-
UPLOAD_COMPLETED = "Upload completed",
|
|
19
|
-
INTERVIEW_SUBMITTED = "Interview submitted successfully"
|
|
20
|
-
}
|
|
1
|
+
export declare const enum DEBUG {
|
|
2
|
+
FETCHING_INTERVIEW = "Fetching interview data",
|
|
3
|
+
INTERVIEW_DATA_RECEIVED = "Interview data received",
|
|
4
|
+
FETCHING_INTERVIEW_ERROR = "Failed to fetch interview",
|
|
5
|
+
WELCOME_PAGE_STAGE = "In welcome page stage",
|
|
6
|
+
SETUP_STAGE = "In setup stage",
|
|
7
|
+
MEIDA_DEVICE_SUCCESS = "Media device available",
|
|
8
|
+
MEDIA_DEVICE_SWITCH_OFF = "Media device is off",
|
|
9
|
+
MEDIA_DEVICE_ERROR = "Media device error",
|
|
10
|
+
NO_SOUND_DETECTED = "No sound detected",
|
|
11
|
+
DEVICE_CHANGED = "Device changed",
|
|
12
|
+
SPEED_TEST_DONE = "Speed test result received",
|
|
13
|
+
PRACTICE_STARTED = "Practice started",
|
|
14
|
+
INTERVIEW_STARTED = "Interview started",
|
|
15
|
+
RETAKE_CLICKED = "Retake clicked",
|
|
16
|
+
QUESTION_SUBMITTED = "Qeustion submitted",
|
|
17
|
+
UPLOADING_STATE = "In uploading state",
|
|
18
|
+
UPLOAD_COMPLETED = "Upload completed",
|
|
19
|
+
INTERVIEW_SUBMITTED = "Interview submitted successfully"
|
|
20
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IVideoPlatform } from '../interfaces/videoInterface';
|
|
2
|
-
export declare const getUAParserData: (userAgent: string) => IVideoPlatform | undefined;
|
|
3
|
-
export declare const isMobile: boolean;
|
|
4
|
-
export declare const isAndroid: boolean;
|
|
5
|
-
export declare const isIphone: boolean;
|
|
6
|
-
export declare const isFireFox: boolean;
|
|
7
|
-
export declare const isSupportedIosDevice: boolean;
|
|
8
|
-
export declare const isSupportedDevice: boolean;
|
|
9
|
-
export declare const hasRotatedCameraIssue: boolean;
|
|
10
|
-
declare const PLATFORMS_OPTIONS: readonly ["ANDROID", "IOS", "MACBOOK", "WINDOWS"];
|
|
11
|
-
declare const BROWSERS_OPTIONS: readonly ["CHROME", "SAFARI", "FIREFOX", "SAMSUNG"];
|
|
12
|
-
type DEVICE_TYPE = {
|
|
13
|
-
PLATFORM: typeof PLATFORMS_OPTIONS[number];
|
|
14
|
-
BROWSER: typeof BROWSERS_OPTIONS[number];
|
|
15
|
-
};
|
|
16
|
-
export declare const DEVICE: DEVICE_TYPE;
|
|
17
|
-
export declare const getIPhoneModel: () => string;
|
|
18
|
-
export {};
|
|
1
|
+
import { IVideoPlatform } from '../interfaces/videoInterface';
|
|
2
|
+
export declare const getUAParserData: (userAgent: string) => IVideoPlatform | undefined;
|
|
3
|
+
export declare const isMobile: boolean;
|
|
4
|
+
export declare const isAndroid: boolean;
|
|
5
|
+
export declare const isIphone: boolean;
|
|
6
|
+
export declare const isFireFox: boolean;
|
|
7
|
+
export declare const isSupportedIosDevice: boolean;
|
|
8
|
+
export declare const isSupportedDevice: boolean;
|
|
9
|
+
export declare const hasRotatedCameraIssue: boolean;
|
|
10
|
+
declare const PLATFORMS_OPTIONS: readonly ["ANDROID", "IOS", "MACBOOK", "WINDOWS"];
|
|
11
|
+
declare const BROWSERS_OPTIONS: readonly ["CHROME", "SAFARI", "FIREFOX", "SAMSUNG"];
|
|
12
|
+
type DEVICE_TYPE = {
|
|
13
|
+
PLATFORM: typeof PLATFORMS_OPTIONS[number];
|
|
14
|
+
BROWSER: typeof BROWSERS_OPTIONS[number];
|
|
15
|
+
};
|
|
16
|
+
export declare const DEVICE: DEVICE_TYPE;
|
|
17
|
+
export declare const getIPhoneModel: () => string;
|
|
18
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { STATUS_CODES } from './statusCodes.utils';
|
|
2
|
-
export interface IVideoError {
|
|
3
|
-
callId: string;
|
|
4
|
-
errorCode: number;
|
|
5
|
-
errorMessage: string;
|
|
6
|
-
statusCode: STATUS_CODES;
|
|
7
|
-
statusReason: string;
|
|
8
|
-
time: number;
|
|
9
|
-
}
|
|
1
|
+
import { STATUS_CODES } from './statusCodes.utils';
|
|
2
|
+
export interface IVideoError {
|
|
3
|
+
callId: string;
|
|
4
|
+
errorCode: number;
|
|
5
|
+
errorMessage: string;
|
|
6
|
+
statusCode: STATUS_CODES;
|
|
7
|
+
statusReason: string;
|
|
8
|
+
time: number;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const twoDigitsNumber: (num: number) => string;
|
|
2
|
-
export declare const timeFormatter: (number: number) => string;
|
|
3
|
-
export declare const timeLeftInMinutesFormatter: (number: number) => string;
|
|
4
|
-
export declare const timerCountDown: (number: number) => string[];
|
|
5
|
-
export declare const formattedDuration: (number: number) => string;
|
|
1
|
+
export declare const twoDigitsNumber: (num: number) => string;
|
|
2
|
+
export declare const timeFormatter: (number: number) => string;
|
|
3
|
+
export declare const timeLeftInMinutesFormatter: (number: number) => string;
|
|
4
|
+
export declare const timerCountDown: (number: number) => string[];
|
|
5
|
+
export declare const formattedDuration: (number: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isRtl: (language?: string) => boolean;
|
|
1
|
+
export declare const isRtl: (language?: string) => boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare const CAMERA_STATES_MESSAGES: {
|
|
2
|
-
WAITING: string;
|
|
3
|
-
ERROR: string;
|
|
4
|
-
READY: string;
|
|
5
|
-
SKIP: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const MICROPHONE_STATES_MESSAGES: {
|
|
8
|
-
WAITING: string;
|
|
9
|
-
ERROR: string;
|
|
10
|
-
READY: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const INTERNET_STATES_MESSAGES: {
|
|
13
|
-
DISCONNECTED: string;
|
|
14
|
-
TESTING: string;
|
|
15
|
-
SLOW_CONNECTION: string;
|
|
16
|
-
CONNECTED: string;
|
|
17
|
-
};
|
|
1
|
+
export declare const CAMERA_STATES_MESSAGES: {
|
|
2
|
+
WAITING: string;
|
|
3
|
+
ERROR: string;
|
|
4
|
+
READY: string;
|
|
5
|
+
SKIP: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const MICROPHONE_STATES_MESSAGES: {
|
|
8
|
+
WAITING: string;
|
|
9
|
+
ERROR: string;
|
|
10
|
+
READY: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const INTERNET_STATES_MESSAGES: {
|
|
13
|
+
DISCONNECTED: string;
|
|
14
|
+
TESTING: string;
|
|
15
|
+
SLOW_CONNECTION: string;
|
|
16
|
+
CONNECTED: string;
|
|
17
|
+
};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export declare const TYPES_EXPLANATION: {
|
|
2
|
-
VIDEO: string;
|
|
3
|
-
AUDIO: string;
|
|
4
|
-
VIDEO_AUDIO: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const enum MEDIA_RECORDER_STATES {
|
|
7
|
-
INACTIVE = "inactive",
|
|
8
|
-
RECORDING = "recording",
|
|
9
|
-
PAUSED = "paused"
|
|
10
|
-
}
|
|
11
|
-
export declare const ERROR_ENUM: {
|
|
12
|
-
NotAllowedError: string;
|
|
13
|
-
NotFoundError: string;
|
|
14
|
-
NotReadableError: string;
|
|
15
|
-
AbortError: string;
|
|
16
|
-
OverconstrainedError: string;
|
|
17
|
-
SecurityError: string;
|
|
18
|
-
TypeError: string;
|
|
19
|
-
NoSoundError: string;
|
|
20
|
-
UndefinedError: string;
|
|
21
|
-
VideoCorrupted: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const recorderErrors: {
|
|
24
|
-
readonly [x: string]: {
|
|
25
|
-
readonly type: string;
|
|
26
|
-
readonly message: "User denies permission, or matching media is not available";
|
|
27
|
-
readonly name: string;
|
|
28
|
-
} | {
|
|
29
|
-
readonly type: string;
|
|
30
|
-
readonly message: "Problem occurred which prevented the device from being used.";
|
|
31
|
-
readonly name: string;
|
|
32
|
-
} | {
|
|
33
|
-
readonly type: string;
|
|
34
|
-
readonly message: "No camera exists with this resolution or higher. Also it can be an issue with other params";
|
|
35
|
-
readonly name: string;
|
|
36
|
-
} | {
|
|
37
|
-
readonly type: string;
|
|
38
|
-
readonly message: "The list of constraints specified is empty";
|
|
39
|
-
readonly name: string;
|
|
40
|
-
} | {
|
|
41
|
-
readonly type: string;
|
|
42
|
-
readonly message: "no sound from your mic";
|
|
43
|
-
readonly name: string;
|
|
44
|
-
} | {
|
|
45
|
-
readonly type: string;
|
|
46
|
-
readonly message: "Oops, something unexpected happened.";
|
|
47
|
-
readonly name: string;
|
|
48
|
-
} | {
|
|
49
|
-
readonly type: string;
|
|
50
|
-
readonly message: "Something went wrong with this video, please try again";
|
|
51
|
-
readonly name: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
1
|
+
export declare const TYPES_EXPLANATION: {
|
|
2
|
+
VIDEO: string;
|
|
3
|
+
AUDIO: string;
|
|
4
|
+
VIDEO_AUDIO: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const enum MEDIA_RECORDER_STATES {
|
|
7
|
+
INACTIVE = "inactive",
|
|
8
|
+
RECORDING = "recording",
|
|
9
|
+
PAUSED = "paused"
|
|
10
|
+
}
|
|
11
|
+
export declare const ERROR_ENUM: {
|
|
12
|
+
NotAllowedError: string;
|
|
13
|
+
NotFoundError: string;
|
|
14
|
+
NotReadableError: string;
|
|
15
|
+
AbortError: string;
|
|
16
|
+
OverconstrainedError: string;
|
|
17
|
+
SecurityError: string;
|
|
18
|
+
TypeError: string;
|
|
19
|
+
NoSoundError: string;
|
|
20
|
+
UndefinedError: string;
|
|
21
|
+
VideoCorrupted: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const recorderErrors: {
|
|
24
|
+
readonly [x: string]: {
|
|
25
|
+
readonly type: string;
|
|
26
|
+
readonly message: "User denies permission, or matching media is not available";
|
|
27
|
+
readonly name: string;
|
|
28
|
+
} | {
|
|
29
|
+
readonly type: string;
|
|
30
|
+
readonly message: "Problem occurred which prevented the device from being used.";
|
|
31
|
+
readonly name: string;
|
|
32
|
+
} | {
|
|
33
|
+
readonly type: string;
|
|
34
|
+
readonly message: "No camera exists with this resolution or higher. Also it can be an issue with other params";
|
|
35
|
+
readonly name: string;
|
|
36
|
+
} | {
|
|
37
|
+
readonly type: string;
|
|
38
|
+
readonly message: "The list of constraints specified is empty";
|
|
39
|
+
readonly name: string;
|
|
40
|
+
} | {
|
|
41
|
+
readonly type: string;
|
|
42
|
+
readonly message: "no sound from your mic";
|
|
43
|
+
readonly name: string;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: string;
|
|
46
|
+
readonly message: "Oops, something unexpected happened.";
|
|
47
|
+
readonly name: string;
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: string;
|
|
50
|
+
readonly message: "Something went wrong with this video, please try again";
|
|
51
|
+
readonly name: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Sentry from '@sentry/browser';
|
|
2
|
-
import { DoneInvokeEvent } from 'xstate';
|
|
3
|
-
import { Breadcrumb } from '@sentry/types';
|
|
4
|
-
export declare const SentryHub: Sentry.Hub;
|
|
5
|
-
export declare const SentryTrackingFn: (event: DoneInvokeEvent<any>, context: any, name: string, level: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug') => void;
|
|
6
|
-
export declare const SentryBreadcrumb: ({ type, level, event_id, category, message, data }: Breadcrumb) => void;
|
|
1
|
+
import * as Sentry from '@sentry/browser';
|
|
2
|
+
import { DoneInvokeEvent } from 'xstate';
|
|
3
|
+
import { Breadcrumb } from '@sentry/types';
|
|
4
|
+
export declare const SentryHub: Sentry.Hub;
|
|
5
|
+
export declare const SentryTrackingFn: (event: DoneInvokeEvent<any>, context: any, name: string, level: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug') => void;
|
|
6
|
+
export declare const SentryBreadcrumb: ({ type, level, event_id, category, message, data }: Breadcrumb) => void;
|