@sapia-ai/chatbot 2.31.0
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/CHANGELOG.md +865 -0
- package/README.md +366 -0
- package/RootApp.d.ts +2 -0
- package/apis/FIApis.d.ts +152 -0
- package/apis/hooks/useGetApplicationJobRequisition.d.ts +12 -0
- package/apis/hooks/useGetJobRequisition.d.ts +10 -0
- package/apis/types/apiRequest.d.ts +1 -0
- package/apis/types/apiResponse.d.ts +16 -0
- package/apis/types/branding.d.ts +17 -0
- package/apis/types/jobRequisition.d.ts +20 -0
- package/commitlint.config.js +1 -0
- package/components/AccessVerificationForm/__tests__/AccessVerificationForm.test.d.ts +1 -0
- package/components/AccessVerificationForm/index.d.ts +1 -0
- package/components/AccessVerificationForm/view.d.ts +11 -0
- package/components/AgcWarningModal/__tests__/AGCWarningModal.test.d.ts +1 -0
- package/components/AgcWarningModal/index.d.ts +1 -0
- package/components/AgcWarningModal/view.d.ts +7 -0
- package/components/AssessmentProgressBar/__tests__/AssessmentProgressBar.test.d.ts +1 -0
- package/components/AssessmentProgressBar/index.d.ts +7 -0
- package/components/AssessmentProgressBar/view.d.ts +2 -0
- package/components/AutoScrollText/__tests__/AutoScrollText.test.d.ts +1 -0
- package/components/AutoScrollText/__tests__/useAutoScrollText.test.d.ts +1 -0
- package/components/AutoScrollText/useAutoScrollText.d.ts +7 -0
- package/components/AutoScrollText/view.d.ts +4 -0
- package/components/ButtonGroup/index.d.ts +1 -0
- package/components/ButtonGroup/view.d.ts +10 -0
- package/components/CancelEditButton/index.d.ts +1 -0
- package/components/CancelEditButton/view.d.ts +7 -0
- package/components/ChatbotApp/index.d.ts +1 -0
- package/components/ChatbotApp/view.d.ts +10 -0
- package/components/Dropdown/index.d.ts +3 -0
- package/components/Dropdown/view.d.ts +10 -0
- package/components/EditButton/__tests__/EditButton.test.d.ts +1 -0
- package/components/EditButton/index.d.ts +3 -0
- package/components/EditButton/view.d.ts +10 -0
- package/components/FTQResponse/__tests__/FTQResponse.test.d.ts +1 -0
- package/components/FTQResponse/index.d.ts +3 -0
- package/components/FTQResponse/view.d.ts +11 -0
- package/components/FullScreenSpinner/__tests__/FullScreenSpinner.test.d.ts +1 -0
- package/components/FullScreenSpinner/index.d.ts +1 -0
- package/components/FullScreenSpinner/view.d.ts +2 -0
- package/components/Icons/Close/Close.d.ts +5 -0
- package/components/Icons/Close/index.d.ts +1 -0
- package/components/Icons/DislikeEmoji/DislikeEmoji.d.ts +5 -0
- package/components/Icons/DislikeEmoji/index.d.ts +1 -0
- package/components/Icons/Error/index.d.ts +1 -0
- package/components/Icons/Error/view.d.ts +6 -0
- package/components/Icons/LikeEmoji/LikeEmoji.d.ts +5 -0
- package/components/Icons/LikeEmoji/index.d.ts +1 -0
- package/components/Icons/Pause/Pause.d.ts +6 -0
- package/components/Icons/Pause/index.d.ts +1 -0
- package/components/Icons/Play/Play.d.ts +6 -0
- package/components/Icons/Play/index.d.ts +1 -0
- package/components/Icons/Question/Question.d.ts +6 -0
- package/components/Icons/Question/index.d.ts +1 -0
- package/components/Icons/ReRecord/ReRecord.d.ts +5 -0
- package/components/Icons/ReRecord/index.d.ts +1 -0
- package/components/Icons/Record/Record.d.ts +6 -0
- package/components/Icons/Record/index.d.ts +1 -0
- package/components/Icons/RecordingTip/RecordingTip.d.ts +6 -0
- package/components/Icons/RecordingTip/index.d.ts +1 -0
- package/components/Icons/Retry/Retry.d.ts +6 -0
- package/components/Icons/Retry/index.d.ts +1 -0
- package/components/Icons/Save/Save.d.ts +5 -0
- package/components/Icons/Save/index.d.ts +1 -0
- package/components/Icons/Stop/Stop.d.ts +6 -0
- package/components/Icons/Stop/index.d.ts +1 -0
- package/components/Icons/index.d.ts +13 -0
- package/components/IosChromeError/index.d.ts +7 -0
- package/components/IosChromeError/view.d.ts +3 -0
- package/components/Loading/index.d.ts +3 -0
- package/components/Loading/view.d.ts +9 -0
- package/components/NameEditor/NameEditor.d.ts +26 -0
- package/components/NameEditor/__tests__/NameEditor.FirstName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.FullName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.LastName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.FirstName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.FullName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.LastName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.test.d.ts +1 -0
- package/components/NameEditor/useHumanNameExtraction.d.ts +22 -0
- package/components/NameExtractionConfirmModal/__tests__/NameExtractionConfirmModal.test.d.ts +1 -0
- package/components/NameExtractionConfirmModal/index.d.ts +1 -0
- package/components/NameExtractionConfirmModal/view.d.ts +15 -0
- package/components/OptionList/index.d.ts +3 -0
- package/components/OptionList/view.d.ts +11 -0
- package/components/PHEditor/DesktopQuillEditor/index.d.ts +1 -0
- package/components/PHEditor/DesktopQuillEditor/view.d.ts +37 -0
- package/components/PHEditor/MobileEditor/ClickableBar.d.ts +7 -0
- package/components/PHEditor/MobileEditor/__tests__/ClickableBar.test.d.ts +1 -0
- package/components/PHEditor/MobileEditor/view.d.ts +28 -0
- package/components/PHEditor/PlainTextEditor/index.d.ts +3 -0
- package/components/PHEditor/PlainTextEditor/view.d.ts +26 -0
- package/components/PHEditor/TextDictationModal/index.d.ts +1 -0
- package/components/PHEditor/TextDictationModal/view.d.ts +6 -0
- package/components/PHEditor/TextDictationTip/index.d.ts +1 -0
- package/components/PHEditor/TextDictationTip/view.d.ts +4 -0
- package/components/PHEditor/WordCount/index.d.ts +1 -0
- package/components/PHEditor/WordCount/view.d.ts +12 -0
- package/components/PHEditor/__tests__/DesktopQuillEditor.test.d.ts +1 -0
- package/components/PHEditor/__tests__/PlainTextEditor.test.d.ts +1 -0
- package/components/PHEditor/__tests__/utils.test.d.ts +1 -0
- package/components/PHEditor/index.d.ts +2 -0
- package/components/PHEditor/types.d.ts +8 -0
- package/components/PHEditor/utils.d.ts +20 -0
- package/components/PHError/index.d.ts +7 -0
- package/components/PHError/view.d.ts +4 -0
- package/components/PHIconFont/index.d.ts +7 -0
- package/components/PHIconFont/view.d.ts +2 -0
- package/components/PHSelect/__tests__/PHSelect.test.d.ts +1 -0
- package/components/PHSelect/index.d.ts +1 -0
- package/components/PHSelect/view.d.ts +8 -0
- package/components/PHVideo/DesktopVideo/__tests__/utils/formatTime.test.d.ts +1 -0
- package/components/PHVideo/DesktopVideo/components/Video/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/components/Video/view.d.ts +42 -0
- package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/view.d.ts +10 -0
- package/components/PHVideo/DesktopVideo/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/utils.d.ts +1 -0
- package/components/PHVideo/DesktopVideo/view.d.ts +10 -0
- package/components/PHVideo/MobileVideo/index.d.ts +3 -0
- package/components/PHVideo/MobileVideo/view.d.ts +9 -0
- package/components/PhoneCodeSelect/__tests__/PhoneCodeSelect.test.d.ts +1 -0
- package/components/PhoneCodeSelect/index.d.ts +1 -0
- package/components/PhoneCodeSelect/sources.d.ts +8 -0
- package/components/PhoneCodeSelect/view.d.ts +6 -0
- package/components/PhoneEditor/__tests__/PhoneEditor.test.d.ts +1 -0
- package/components/PhoneEditor/index.d.ts +3 -0
- package/components/PhoneEditor/view.d.ts +16 -0
- package/components/PlacesAutoComplete/api.d.ts +17 -0
- package/components/PlacesAutoComplete/constants.d.ts +8 -0
- package/components/PlacesAutoComplete/hooks/usePlacesAutoComplete.d.ts +21 -0
- package/components/PlacesAutoComplete/index.d.ts +6 -0
- package/components/PlacesAutoComplete/types.d.ts +53 -0
- package/components/PlacesAutoComplete/view.d.ts +16 -0
- package/components/ReRecordVideoButton/index.d.ts +3 -0
- package/components/ReRecordVideoButton/view.d.ts +7 -0
- package/components/ReciteMeWrapper/ReciteMeWrapper.d.ts +16 -0
- package/components/ReciteMeWrapper/index.d.ts +1 -0
- package/components/SendAnswerFailedModal/index.d.ts +1 -0
- package/components/SendAnswerFailedModal/view.d.ts +6 -0
- package/components/SendCircleButton/__tests__/SendCircleButton.test.d.ts +1 -0
- package/components/SendCircleButton/index.d.ts +3 -0
- package/components/SendCircleButton/view.d.ts +11 -0
- package/components/Slider/__tests__/Slider.test.d.ts +1 -0
- package/components/Slider/index.d.ts +3 -0
- package/components/Slider/view.d.ts +9 -0
- package/components/TextBubble/__tests__/TextBubble.test.d.ts +1 -0
- package/components/TextBubble/index.d.ts +3 -0
- package/components/TextBubble/view.d.ts +23 -0
- package/components/Tooltip/index.d.ts +3 -0
- package/components/Tooltip/view.d.ts +6 -0
- package/components/UnsupportedBrowserGuard/index.d.ts +3 -0
- package/components/UnsupportedBrowserGuard/view.d.ts +5 -0
- package/components/UploadVideoFailedMessage/index.d.ts +9 -0
- package/components/UploadVideoFailedMessage/view.d.ts +4 -0
- package/components/UploadVideoProgressBar/index.d.ts +9 -0
- package/components/UploadVideoProgressBar/view.d.ts +4 -0
- package/components/VideoPlayer/index.d.ts +3 -0
- package/components/VideoPlayer/view.d.ts +7 -0
- package/components/VideoResponse/index.d.ts +3 -0
- package/components/VideoResponse/view.d.ts +5 -0
- package/components/WarningButton/index.d.ts +3 -0
- package/components/WarningButton/view.d.ts +4 -0
- package/components/WarningModal/index.d.ts +3 -0
- package/components/WarningModal/view.d.ts +10 -0
- package/components/hooks/useCharacterCountLimit.d.ts +3 -0
- package/components/hooks/useCheckScreenSize.d.ts +3 -0
- package/components/hooks/useSubmitShortcut.d.ts +1 -0
- package/components/hooks/useWordCountLimit.d.ts +4 -0
- package/config.d.ts +16 -0
- package/constants/browser.d.ts +7 -0
- package/constants/common.d.ts +48 -0
- package/constants/mockDataForDemo.d.ts +14 -0
- package/constants/theme.d.ts +10 -0
- package/contexts/AssessmentStateContext/AssessmentStateContext.d.ts +6 -0
- package/contexts/AssessmentStateContext/__tests__/AssessmentStateContext.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/action.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/assessmentStateReducer.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/action.d.ts +3 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/assessmentStateReducer.d.ts +2 -0
- package/contexts/AssessmentStateContext/type.d.ts +22 -0
- package/contexts/ChatbotStateContext/ChatbotStateContext.d.ts +12 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-error.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-normal.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleEditAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleExitEditAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSelectOption.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSubmitRating.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleUploadDataVideo.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/addCandidateResponseMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/checkShouldLoadNext.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertMessageBubbles.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawAgentResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawCandidateResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateAnswerForCandidateMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatus.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatusInList.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useOrder.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getDisplayVideoUrl.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getVideoRetryNum.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/uploadDataVideo.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/bubble-util.d.ts +193 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addAgentBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addCandidateResponseMessageBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseStartingActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/chatLogsLoadCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/checkAgcCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/convertRawBrandingTheme.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editAnswerRequestCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeEnterActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeExitActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/removeFailedMessageBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/renderCandidateBubbleManuallyActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/replaceVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateCandidateMessageBubbleStatusActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRecordedVideoInfoActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRerecordVideoInfoActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_AGENT_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_CANDIDATE_RESPONSE_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_STARTING.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-CHATLOGS_LOAD_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-DETECT_AGC_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_ANSWER_REQUEST_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_ENTER.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_EXIT.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REMOVE_FAILED_MESSAGE_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-RENDER_CANDIDATE_BUBBLE_MANUALLY.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RECORDED_VIDEO_INFO.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RERECORD_VIDEO_INFO.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/util/phChatbotCbCallbackExecutor.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/action.d.ts +23 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/chatbotStateReducer.d.ts +2 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/util.d.ts +13 -0
- package/contexts/ChatbotStateContext/type.d.ts +289 -0
- package/contexts/ChatbotStateContext/useDetectAgc/__tests__/useDetectAgc.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useDetectAgc/useDetectAgc.d.ts +17 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/loadMessage.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/onloadNextSuccess.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/useLoadNext.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/helper.d.ts +37 -0
- package/contexts/ChatbotStateContext/useLoadNext/useLoadNext.d.ts +31 -0
- package/contexts/ChatbotStateContext/useOrder.d.ts +31 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/__tests__/useSubmitEditedAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/index.d.ts +1 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/useSubmitEditedAnswer.d.ts +21 -0
- package/contexts/ChatbotStateContext/useUploadVideo.d.ts +29 -0
- package/features/AccessVerification/__tests__/AccessVerification.test.d.ts +1 -0
- package/features/AccessVerification/index.d.ts +1 -0
- package/features/AccessVerification/view.d.ts +10 -0
- package/features/AgentMessageBubble/index.d.ts +3 -0
- package/features/AgentMessageBubble/view.d.ts +5 -0
- package/features/Assessment/__tests__/Assessment.test.d.ts +1 -0
- package/features/Assessment/index.d.ts +3 -0
- package/features/Assessment/view.d.ts +2 -0
- package/features/AssessmentDialogFlow/index.d.ts +3 -0
- package/features/AssessmentDialogFlow/view.d.ts +7 -0
- package/features/AssessmentResponseFlow/index.d.ts +3 -0
- package/features/AssessmentResponseFlow/view.d.ts +5 -0
- package/features/CandidateMessageBubble/index.d.ts +3 -0
- package/features/CandidateMessageBubble/view.d.ts +8 -0
- package/features/Header/__tests__/Header.test.d.ts +1 -0
- package/features/Header/index.d.ts +3 -0
- package/features/Header/view.d.ts +2 -0
- package/features/Introduce/index.d.ts +3 -0
- package/features/Introduce/utils.d.ts +190 -0
- package/features/Introduce/view.d.ts +2 -0
- package/features/Layout/__tests__/Layout.test.d.ts +1 -0
- package/features/Layout/index.d.ts +3 -0
- package/features/Layout/view.d.ts +4 -0
- package/hooks/__tests__/useAccessManagement.test.d.ts +1 -0
- package/hooks/__tests__/useAccessVerification.test.d.ts +1 -0
- package/hooks/__tests__/useChatbotStatesContext.test.d.ts +1 -0
- package/hooks/__tests__/useExtractHumanName.test.d.ts +1 -0
- package/hooks/__tests__/useLocalStorage.test.d.ts +1 -0
- package/hooks/__tests__/useVerifyAccess.test.d.ts +1 -0
- package/hooks/useAccessManagement.d.ts +12 -0
- package/hooks/useAccessVerification.d.ts +13 -0
- package/hooks/useAssessmentStateContext.d.ts +2 -0
- package/hooks/useBeforeUnload.d.ts +2 -0
- package/hooks/useChatbotStatesContext.d.ts +2 -0
- package/hooks/useExtractHumanName.d.ts +15 -0
- package/hooks/useHandleEditorHeightChange.d.ts +7 -0
- package/hooks/useLocalStorage.d.ts +24 -0
- package/hooks/useQuery.d.ts +3 -0
- package/hooks/useVerifyAccess.d.ts +10 -0
- package/index.d.ts +1 -0
- package/package.json +172 -0
- package/pages/App/App.d.ts +11 -0
- package/pages/App/index.d.ts +2 -0
- package/pages/Chatbot/Chatbot.d.ts +3 -0
- package/pages/Chatbot/index.d.ts +2 -0
- package/pages/Home/Home.d.ts +3 -0
- package/pages/Home/index.d.ts +3 -0
- package/pages/LanguageSelectionPage/ApplicationLanguageSelectionPage.d.ts +6 -0
- package/pages/LanguageSelectionPage/GenericLanguageSelectionPage.d.ts +6 -0
- package/pages/LanguageSelectionPage/LanguageSelection.d.ts +13 -0
- package/pages/LanguageSelectionPage/__tests__/LanguageSelection.test.d.ts +1 -0
- package/pages/LanguageSelectionPage/index.d.ts +3 -0
- package/pages/LanguageSelectionPage/useLanguageSelection.d.ts +19 -0
- package/pages/OrderAssessment/OrderAssessment.d.ts +4 -0
- package/pages/OrderAssessment/index.d.ts +1 -0
- package/postcss.config.js +5 -0
- package/predictivehire.d.ts +45 -0
- package/predictivehire.js +71047 -0
- package/predictivehire.umd.js +382 -0
- package/serviceWorker.d.ts +7 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/manifest.json +20 -0
- package/static/reciteme_button.png +0 -0
- package/static/robots.txt +3 -0
- package/tsconfig.build.json +5 -0
- package/types/Api.d.ts +25 -0
- package/types/AtsInformation.d.ts +52 -0
- package/types/ChatBot.d.ts +60 -0
- package/types/Next.d.ts +278 -0
- package/types/UrlParamKey.d.ts +6 -0
- package/utils/TestWrapper.d.ts +32 -0
- package/utils/__tests__/defaultLanguage.test.d.ts +1 -0
- package/utils/__tests__/getEnv.test.d.ts +1 -0
- package/utils/__tests__/messageBubble.test.d.ts +1 -0
- package/utils/__tests__/mockTranslationSource.d.ts +117 -0
- package/utils/__tests__/setTranslationSource.test.d.ts +1 -0
- package/utils/__tests__/translate.test.d.ts +1 -0
- package/utils/convertTheme.d.ts +39 -0
- package/utils/defaultLanguage.d.ts +6 -0
- package/utils/messageBubble.d.ts +11 -0
- package/utils/testUtils.d.ts +6 -0
- package/utils/translation/constants.d.ts +10 -0
- package/utils/translation/fallBackTranslation.d.ts +136 -0
- package/utils/translation/translation.d.ts +25 -0
- package/utils/utils.d.ts +16 -0
- package/vite.chatbot.config.js +90 -0
- package/vite.config.js +77 -0
- package/vitest.setup.d.ts +1 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Branding } from "@/apis/types/branding";
|
|
3
|
+
import { Location } from "@/components/PlacesAutoComplete";
|
|
4
|
+
import { FiToken } from "@/types/Api";
|
|
5
|
+
import { PHChatBotCallback, Theme } from "@/types/ChatBot";
|
|
6
|
+
import { AgentResponse, AnswerContent, AssessmentStatus, BGQButton, BubbleStatus, CandidateResponse, MCQQuestionOption, MessageBubble } from "@/types/Next";
|
|
7
|
+
export declare type RecordedVideoInfo = {
|
|
8
|
+
questionId: string;
|
|
9
|
+
data: File;
|
|
10
|
+
extension: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type ChatbotState = {
|
|
13
|
+
isReEditMode: boolean;
|
|
14
|
+
assessmentStatus: AssessmentStatus;
|
|
15
|
+
typing: boolean;
|
|
16
|
+
currentMessageBubble: MessageBubble;
|
|
17
|
+
messageBubbleList: MessageBubble[];
|
|
18
|
+
currentMessageIndex: number;
|
|
19
|
+
assessmentId: string;
|
|
20
|
+
region: string;
|
|
21
|
+
theme: Theme;
|
|
22
|
+
chatLogs: (CandidateResponse | AgentResponse)[];
|
|
23
|
+
branding: Branding;
|
|
24
|
+
phChatBotCallback: PHChatBotCallback;
|
|
25
|
+
recordedVideoInfos?: RecordedVideoInfo[];
|
|
26
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
27
|
+
assessmentIsReusedMessage?: AgentResponse;
|
|
28
|
+
numOfNormalAnswer: number;
|
|
29
|
+
fiToken: FiToken;
|
|
30
|
+
attempt: number;
|
|
31
|
+
allowNextAgcDetection: boolean;
|
|
32
|
+
isTermsAndConditionsAccepted: boolean;
|
|
33
|
+
candidateCountryCode?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare type ChatbotStateContextType = {
|
|
36
|
+
nextError: Error;
|
|
37
|
+
loadingNext: boolean;
|
|
38
|
+
detectingAgc: boolean;
|
|
39
|
+
uploadingVideo: boolean;
|
|
40
|
+
chatbotState: ChatbotState;
|
|
41
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
42
|
+
handleUploadDataVideo: ({ data, extension, isRetryMode, questionId }: {
|
|
43
|
+
data: File;
|
|
44
|
+
extension: string;
|
|
45
|
+
isRetryMode: boolean;
|
|
46
|
+
questionId?: string;
|
|
47
|
+
}) => Promise<void>;
|
|
48
|
+
loadNextMessage: ({ answer, questionId }: {
|
|
49
|
+
answer: AnswerContent;
|
|
50
|
+
questionId: string;
|
|
51
|
+
}) => Promise<{
|
|
52
|
+
success: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
handleEditAnswer: (message: MessageBubble) => void;
|
|
55
|
+
handleExitEditAnswer: () => void;
|
|
56
|
+
handleSelectOption: ({ message, selectOption, questionId, skipDetectAgc }: {
|
|
57
|
+
message: MessageBubble;
|
|
58
|
+
selectOption: MCQQuestionOption;
|
|
59
|
+
questionId?: string;
|
|
60
|
+
skipDetectAgc?: boolean;
|
|
61
|
+
}) => Promise<{
|
|
62
|
+
success: boolean;
|
|
63
|
+
isAgc?: boolean;
|
|
64
|
+
errorType?: SelectOptionErrorType;
|
|
65
|
+
}>;
|
|
66
|
+
handleSelectBGQButton: ({ selectButton, message, skipDetectAgc }: {
|
|
67
|
+
selectButton: BGQButton;
|
|
68
|
+
message: MessageBubble;
|
|
69
|
+
skipDetectAgc?: boolean;
|
|
70
|
+
}) => Promise<{
|
|
71
|
+
success: boolean;
|
|
72
|
+
isAgc?: boolean;
|
|
73
|
+
errorType?: SelectOptionErrorType;
|
|
74
|
+
}>;
|
|
75
|
+
handleSubmitRating: ({ experienceScore, questionId }: {
|
|
76
|
+
experienceScore: number;
|
|
77
|
+
questionId: string;
|
|
78
|
+
}) => void;
|
|
79
|
+
handleSubmitTextClick: ({ text, isEditMode, questionId }: {
|
|
80
|
+
text: string;
|
|
81
|
+
isEditMode?: boolean;
|
|
82
|
+
questionId: string;
|
|
83
|
+
}) => Promise<{
|
|
84
|
+
success: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
handleSelectLocation: ({ location, isEditMode, questionId }: {
|
|
87
|
+
location: Location;
|
|
88
|
+
isEditMode?: boolean;
|
|
89
|
+
questionId: string;
|
|
90
|
+
}) => Promise<{
|
|
91
|
+
success: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
uploadProgress: number;
|
|
94
|
+
numOfNormalQuestion: number;
|
|
95
|
+
isInternalUser: boolean;
|
|
96
|
+
};
|
|
97
|
+
export declare enum ActionType {
|
|
98
|
+
ADD_CANDIDATE_RESPONSE_BUBBLE = "ADD_CANDIDATE_RESPONSE_BUBBLE",
|
|
99
|
+
ADD_AGENT_BUBBLE = "ADD_AGENT_BUBBLE",
|
|
100
|
+
RENDER_CANDIDATE_BUBBLE_MANUALLY = "RENDER_CANDIDATE_BUBBLE_MANUALLY",
|
|
101
|
+
EDIT_MODE_ENTER = "EDIT_MODE_ENTER",
|
|
102
|
+
EDIT_MODE_EXIT = "EDIT_MODE_EXIT",
|
|
103
|
+
EDIT_ANSWER_REQUEST_STARTING = "EDIT_ANSWER_REQUEST_STARTING",
|
|
104
|
+
EDIT_ANSWER_REQUEST_COMPLETED = "EDIT_ANSWER_REQUEST_COMPLETED",
|
|
105
|
+
EDIT_ANSWER_REQUEST_FAILED = "EDIT_ANSWER_REQUEST_FAILED",
|
|
106
|
+
AGENT_NEXT_RESPONSE_STARTING = "AGENT_NEXT_RESPONSE_STARTING",
|
|
107
|
+
AGENT_NEXT_RESPONSE_COMPLETED = "AGENT_NEXT_RESPONSE_COMPLETED",
|
|
108
|
+
AGENT_NEXT_RESPONSE_FAILED = "AGENT_NEXT_RESPONSE_FAILED",
|
|
109
|
+
AGENT_START_TYPING = "AGENT_START_TYPING",
|
|
110
|
+
CHATLOGS_LOAD_STARTING = "CHATLOGS_LOAD_STARTING",
|
|
111
|
+
CHATLOGS_LOAD_COMPLETED = "CHATLOGS_LOAD_COMPLETED",
|
|
112
|
+
CHATLOGS_LOAD_FAILED = "CHATLOGS_LOAD_FAILED",
|
|
113
|
+
SAVE_ANSWER_STARTING = "SAVE_ANSWER_STARTING",
|
|
114
|
+
SAVE_ANSWER_COMPLETED = "SAVE_ANSWER_COMPLETED",
|
|
115
|
+
SAVE_ANSWER_FAILED = "SAVE_ANSWER_FAILED",
|
|
116
|
+
UPDATE_RERECORD_VIDEO_INFO = "UPDATE_RERECORD_VIDEO_INFO",
|
|
117
|
+
ADD_VIDEO_UPLOAD_STATUS_BUBBLE = "ADD_VIDEO_UPLOAD_STATUS_BUBBLE",
|
|
118
|
+
REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE = "REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE",
|
|
119
|
+
UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS = "UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS",
|
|
120
|
+
UPDATE_RECORDED_VIDEO_INFO = "UPDATE_RECORDED_VIDEO_INFO",
|
|
121
|
+
REMOVE_FAILED_MESSAGE_BUBBLE = "REMOVE_FAILED_MESSAGE_BUBBLE",
|
|
122
|
+
DETECT_AGC_STARTING = "DETECT_AGC_STARTING",
|
|
123
|
+
DETECT_AGC_COMPLETED = "DETECT_AGC_COMPLETED",
|
|
124
|
+
DETECT_AGC_FAILED = "DETECT_AGC_FAILED"
|
|
125
|
+
}
|
|
126
|
+
export declare enum SelectOptionErrorType {
|
|
127
|
+
DETECT_AGC = "DETECT_AGC",
|
|
128
|
+
SEND_ANSWER = "SEND_ANSWER",
|
|
129
|
+
EDIT_ANSWER = "EDIT_ANSWER"
|
|
130
|
+
}
|
|
131
|
+
export declare type AddCandidateResponseBubbleAction = {
|
|
132
|
+
type: ActionType.ADD_CANDIDATE_RESPONSE_BUBBLE;
|
|
133
|
+
payload: {
|
|
134
|
+
nextResponse: AgentResponse;
|
|
135
|
+
candidateResponse?: CandidateResponse;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare type AddAgentBubbleAction = {
|
|
139
|
+
type: ActionType.ADD_AGENT_BUBBLE;
|
|
140
|
+
payload: {
|
|
141
|
+
nextResponse: AgentResponse;
|
|
142
|
+
candidateResponse?: CandidateResponse;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export declare type RenderCandidateBubbleManuallyAction = {
|
|
146
|
+
type: ActionType.RENDER_CANDIDATE_BUBBLE_MANUALLY;
|
|
147
|
+
payload: {
|
|
148
|
+
nextResponse: AgentResponse;
|
|
149
|
+
candidateResponse?: CandidateResponse;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare type EditModeEnterAction = {
|
|
153
|
+
type: ActionType.EDIT_MODE_ENTER;
|
|
154
|
+
payload: {
|
|
155
|
+
questionId: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
export declare type EditModeExitAction = {
|
|
159
|
+
type: ActionType.EDIT_MODE_EXIT;
|
|
160
|
+
payload: {
|
|
161
|
+
messageBubbleList: MessageBubble[];
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export declare type EditAnswerRequestStartingAction = {
|
|
165
|
+
type: ActionType.EDIT_ANSWER_REQUEST_STARTING;
|
|
166
|
+
};
|
|
167
|
+
export declare type EditAnswerRequestCompletedAction = {
|
|
168
|
+
type: ActionType.EDIT_ANSWER_REQUEST_COMPLETED;
|
|
169
|
+
payload: {
|
|
170
|
+
updatedCandidateResponse: CandidateResponse;
|
|
171
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
export declare type EditAnswerRequestFailedAction = {
|
|
175
|
+
type: ActionType.EDIT_ANSWER_REQUEST_FAILED;
|
|
176
|
+
};
|
|
177
|
+
export declare type AgentNextResponseStartingAction = {
|
|
178
|
+
type: ActionType.AGENT_NEXT_RESPONSE_STARTING;
|
|
179
|
+
payload?: {
|
|
180
|
+
answer: AnswerContent;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare type AgentNextResponseCompletedAction = {
|
|
184
|
+
type: ActionType.AGENT_NEXT_RESPONSE_COMPLETED;
|
|
185
|
+
payload: {
|
|
186
|
+
nextResponse: AgentResponse;
|
|
187
|
+
candidateResponse?: CandidateResponse;
|
|
188
|
+
assessmentStatus: AssessmentStatus;
|
|
189
|
+
duplicatedWithAssessmentLink?: string;
|
|
190
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
191
|
+
assessmentIsReusedMessage?: AgentResponse;
|
|
192
|
+
numOfNormalAnswer: number;
|
|
193
|
+
isTermsAndConditionsAccepted: boolean;
|
|
194
|
+
fiToken?: FiToken;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
export declare type AgentNextResponseFailedAction = {
|
|
198
|
+
type: ActionType.AGENT_NEXT_RESPONSE_FAILED;
|
|
199
|
+
};
|
|
200
|
+
export declare type AgentStartTypingAction = {
|
|
201
|
+
type: ActionType.AGENT_START_TYPING;
|
|
202
|
+
};
|
|
203
|
+
export declare type ChatLogsLoadStartingAction = {
|
|
204
|
+
type: ActionType.CHATLOGS_LOAD_STARTING;
|
|
205
|
+
};
|
|
206
|
+
export declare type ChatLogsLoadCompletedAction = {
|
|
207
|
+
type: ActionType.CHATLOGS_LOAD_COMPLETED;
|
|
208
|
+
payload: {
|
|
209
|
+
assessmentId: string;
|
|
210
|
+
chatLogs: (CandidateResponse | AgentResponse)[];
|
|
211
|
+
hasVideoQuestion?: boolean;
|
|
212
|
+
brandingTheme: Theme;
|
|
213
|
+
callbacks: PHChatBotCallback;
|
|
214
|
+
branding?: Branding;
|
|
215
|
+
assessmentStatus: AssessmentStatus;
|
|
216
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
217
|
+
numOfNormalAnswer: number;
|
|
218
|
+
fiToken: FiToken;
|
|
219
|
+
agcDetectionAttempt?: number;
|
|
220
|
+
allowNextAgcDetection?: boolean;
|
|
221
|
+
isTermsAndConditionsAccepted: boolean;
|
|
222
|
+
candidateCountryCode?: string;
|
|
223
|
+
assessmentIsReusedMessage?: AgentResponse;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
export declare type ChatLogsLoadFailedAction = {
|
|
227
|
+
type: ActionType.CHATLOGS_LOAD_FAILED;
|
|
228
|
+
};
|
|
229
|
+
export declare type SaveAnswerStartingAction = {
|
|
230
|
+
type: ActionType.SAVE_ANSWER_STARTING;
|
|
231
|
+
};
|
|
232
|
+
export declare type SaveAnswerCompletedAction = {
|
|
233
|
+
type: ActionType.SAVE_ANSWER_COMPLETED;
|
|
234
|
+
};
|
|
235
|
+
export declare type SaveAnswerFailedAction = {
|
|
236
|
+
type: ActionType.SAVE_ANSWER_FAILED;
|
|
237
|
+
};
|
|
238
|
+
export declare type UpdateRerecordVideoInfoAction = {
|
|
239
|
+
type: ActionType.UPDATE_RERECORD_VIDEO_INFO;
|
|
240
|
+
payload: {
|
|
241
|
+
url: string;
|
|
242
|
+
questionId: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export declare type AddVideoUploadStatusBubbleAction = {
|
|
246
|
+
type: ActionType.ADD_VIDEO_UPLOAD_STATUS_BUBBLE;
|
|
247
|
+
payload: {
|
|
248
|
+
questionId: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
export declare type ReplaceVideoUploadStatusBubbleAction = {
|
|
252
|
+
type: ActionType.REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE;
|
|
253
|
+
payload: {
|
|
254
|
+
nextResponse: AgentResponse;
|
|
255
|
+
candidateResponse?: CandidateResponse;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
export declare type RemoveFailedMessageBubbleAction = {
|
|
259
|
+
type: ActionType.REMOVE_FAILED_MESSAGE_BUBBLE;
|
|
260
|
+
};
|
|
261
|
+
export declare type UpdateCandidateMessageBubbleStatusAction = {
|
|
262
|
+
type: ActionType.UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS;
|
|
263
|
+
payload: {
|
|
264
|
+
status: BubbleStatus;
|
|
265
|
+
questionId?: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
export declare type UpdateRecordedVideoInfoAction = {
|
|
269
|
+
type: ActionType.UPDATE_RECORDED_VIDEO_INFO;
|
|
270
|
+
payload: {
|
|
271
|
+
data: File;
|
|
272
|
+
extension: string;
|
|
273
|
+
questionId?: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
export declare type DetectAgcStartingAction = {
|
|
277
|
+
type: ActionType.DETECT_AGC_STARTING;
|
|
278
|
+
};
|
|
279
|
+
export declare type DetectAgcCompletedAction = {
|
|
280
|
+
type: ActionType.DETECT_AGC_COMPLETED;
|
|
281
|
+
payload: {
|
|
282
|
+
attempt: number;
|
|
283
|
+
allowNextAgcDetection: boolean;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export declare type DetectAgcFailedAction = {
|
|
287
|
+
type: ActionType.DETECT_AGC_FAILED;
|
|
288
|
+
};
|
|
289
|
+
export declare type Action = AddCandidateResponseBubbleAction | AddAgentBubbleAction | RenderCandidateBubbleManuallyAction | EditModeEnterAction | EditModeExitAction | EditAnswerRequestStartingAction | EditAnswerRequestCompletedAction | EditAnswerRequestFailedAction | AgentNextResponseStartingAction | AgentNextResponseCompletedAction | AgentNextResponseFailedAction | AgentStartTypingAction | ChatLogsLoadStartingAction | ChatLogsLoadCompletedAction | ChatLogsLoadFailedAction | SaveAnswerStartingAction | SaveAnswerCompletedAction | SaveAnswerFailedAction | UpdateRerecordVideoInfoAction | AddVideoUploadStatusBubbleAction | ReplaceVideoUploadStatusBubbleAction | UpdateCandidateMessageBubbleStatusAction | UpdateRecordedVideoInfoAction | RemoveFailedMessageBubbleAction | DetectAgcStartingAction | DetectAgcCompletedAction | DetectAgcFailedAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Action, ChatbotState, SelectOptionErrorType } from "../type";
|
|
2
|
+
export declare const useDetectAgc: ({ assessmentId, chatbotState, chatbotStateDispatch }: {
|
|
3
|
+
assessmentId: string;
|
|
4
|
+
chatbotState: ChatbotState;
|
|
5
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
6
|
+
}) => {
|
|
7
|
+
detectingAgc: boolean;
|
|
8
|
+
detectAgc: () => Promise<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
isAgc: boolean;
|
|
11
|
+
errorType?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
success: boolean;
|
|
14
|
+
errorType: SelectOptionErrorType;
|
|
15
|
+
isAgc?: undefined;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Action, ChatbotState } from "@/contexts/ChatbotStateContext/type";
|
|
3
|
+
import { FiToken } from "@/types/Api";
|
|
4
|
+
import { AgentResponse, AssessmentStatus, CandidateResponse, CandidateResponseInput } from "@/types/Next";
|
|
5
|
+
/**
|
|
6
|
+
* success callback of loadNext request
|
|
7
|
+
*/
|
|
8
|
+
export declare const onloadNextSuccess: ({ payload, chatbotState, chatbotStateDispatch, loadNext }: {
|
|
9
|
+
payload: {
|
|
10
|
+
nextResponse: AgentResponse;
|
|
11
|
+
candidateResponse?: CandidateResponse;
|
|
12
|
+
assessmentStatus: AssessmentStatus;
|
|
13
|
+
duplicatedWithAssessmentLink?: string;
|
|
14
|
+
numOfNormalAnswer: number;
|
|
15
|
+
isTermsAndConditionsAccepted: boolean;
|
|
16
|
+
fiToken?: FiToken;
|
|
17
|
+
};
|
|
18
|
+
chatbotState: ChatbotState;
|
|
19
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
20
|
+
loadNext: (candidateResponse?: CandidateResponseInput) => Promise<{
|
|
21
|
+
success: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
}) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Load first message base on chatLogs after start ats
|
|
26
|
+
* @param param0
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
export declare const firstLoadMessageBasedOnChatLogs: ({ assessmentId, chatLogs, loadNext }: {
|
|
30
|
+
assessmentId: string;
|
|
31
|
+
chatLogs: (AgentResponse | CandidateResponse)[];
|
|
32
|
+
loadNext: (candidateResponse?: CandidateResponseInput) => Promise<{
|
|
33
|
+
success: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
success: boolean;
|
|
37
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Action, ChatbotState, SelectOptionErrorType } from "@/contexts/ChatbotStateContext/type";
|
|
3
|
+
import { AnswerContent, CandidateResponseInput } from "@/types/Next";
|
|
4
|
+
export declare const useLoadNext: ({ assessmentId, chatbotState, chatbotStateDispatch }: {
|
|
5
|
+
assessmentId: string;
|
|
6
|
+
chatbotState: ChatbotState;
|
|
7
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
8
|
+
}) => {
|
|
9
|
+
loadingNext: boolean;
|
|
10
|
+
nextError: Error;
|
|
11
|
+
loadNextMessage: ({ answer, questionId }: {
|
|
12
|
+
answer: AnswerContent;
|
|
13
|
+
questionId: string;
|
|
14
|
+
}) => Promise<{
|
|
15
|
+
success: boolean;
|
|
16
|
+
errorType?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
success: boolean;
|
|
19
|
+
errorType: SelectOptionErrorType;
|
|
20
|
+
}>;
|
|
21
|
+
loadNext: (candidateResponse?: CandidateResponseInput) => Promise<{
|
|
22
|
+
success: boolean;
|
|
23
|
+
errorType?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
success: boolean;
|
|
26
|
+
errorType: SelectOptionErrorType;
|
|
27
|
+
}>;
|
|
28
|
+
firsLoadAssessmentMessage: () => Promise<{
|
|
29
|
+
success: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Theme } from "@/types/ChatBot";
|
|
3
|
+
import { Action, ChatbotState } from "./type";
|
|
4
|
+
export declare const useOrder: ({ assessmentId, brandingTheme, chatbotState, chatbotStateDispatch }: {
|
|
5
|
+
assessmentId: string;
|
|
6
|
+
brandingTheme: Theme;
|
|
7
|
+
chatbotState: ChatbotState;
|
|
8
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
9
|
+
}) => {
|
|
10
|
+
startAssessmentResponse: import("axios").AxiosResponse<{
|
|
11
|
+
assessmentId: string;
|
|
12
|
+
chatLogs: (import("../../types/Next").CandidateResponse | import("../../types/Next").AgentResponse)[];
|
|
13
|
+
branding?: import("../../apis/types/branding").Branding;
|
|
14
|
+
hasVideoQuestion?: boolean;
|
|
15
|
+
assessmentStatus: import("../../types/Next").AssessmentStatus;
|
|
16
|
+
isCohortClosed?: boolean;
|
|
17
|
+
cohortIsArchivedMessage?: import("../../types/Next").AgentResponse;
|
|
18
|
+
numOfNormalQuestion: number;
|
|
19
|
+
numOfNormalAnswer: number;
|
|
20
|
+
fiToken: import("../../types/Api").FiToken;
|
|
21
|
+
language: string;
|
|
22
|
+
agcDetectionAttempt: number;
|
|
23
|
+
allowNextAgcDetection: boolean;
|
|
24
|
+
isTermsAndConditionsAccepted: boolean;
|
|
25
|
+
candidateCountryCode?: string;
|
|
26
|
+
assessmentIsReusedMessage?: import("../../types/Next").AgentResponse;
|
|
27
|
+
}, any>;
|
|
28
|
+
startAssessmentError: Error;
|
|
29
|
+
loadingStartAssessment: boolean;
|
|
30
|
+
numOfNormalQuestion: number;
|
|
31
|
+
};
|
package/contexts/ChatbotStateContext/useSubmitEditedAnswer/__tests__/useSubmitEditedAnswer.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useSubmitEditedAnswer";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Action, ChatbotState, SelectOptionErrorType } from "@/contexts/ChatbotStateContext/type";
|
|
3
|
+
import { AnswerContent } from "@/types/Next";
|
|
4
|
+
export declare const useSubmitEditedAnswer: ({ assessmentId, chatbotState, chatbotStateDispatch }: {
|
|
5
|
+
assessmentId: string;
|
|
6
|
+
chatbotState: ChatbotState;
|
|
7
|
+
chatbotStateDispatch: React.Dispatch<Action>;
|
|
8
|
+
}) => {
|
|
9
|
+
submittingEditedAnswer: boolean;
|
|
10
|
+
submitEditedAnswerError: Error;
|
|
11
|
+
submitEditedAnswer: ({ answer, questionId }: {
|
|
12
|
+
answer: AnswerContent;
|
|
13
|
+
questionId: string;
|
|
14
|
+
}) => Promise<{
|
|
15
|
+
success: boolean;
|
|
16
|
+
errorType?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
success: boolean;
|
|
19
|
+
errorType: SelectOptionErrorType;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChatbotState } from "./type";
|
|
2
|
+
export declare const useUploadVideo: ({ assessmentId, chatbotState }: {
|
|
3
|
+
assessmentId: string;
|
|
4
|
+
chatbotState: ChatbotState;
|
|
5
|
+
}) => {
|
|
6
|
+
uploadingVideo: boolean;
|
|
7
|
+
uploadDataVideo: ({ data, extension, questionId }: {
|
|
8
|
+
data: File;
|
|
9
|
+
extension: string;
|
|
10
|
+
questionId: string;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
data: {
|
|
13
|
+
url: string;
|
|
14
|
+
videoFileName: string;
|
|
15
|
+
};
|
|
16
|
+
hasNetworkError: boolean;
|
|
17
|
+
} | {
|
|
18
|
+
hasNetworkError: boolean;
|
|
19
|
+
data?: undefined;
|
|
20
|
+
}>;
|
|
21
|
+
getDisplayVideoUrl: ({ extension, questionId }: {
|
|
22
|
+
extension: string;
|
|
23
|
+
questionId: string;
|
|
24
|
+
}) => Promise<string>;
|
|
25
|
+
getVideoRetryNum: ({ questionId }: {
|
|
26
|
+
questionId: string;
|
|
27
|
+
}) => number;
|
|
28
|
+
uploadProgress: number;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./view";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Translation } from "@/utils/translation/translation";
|
|
3
|
+
export declare const AccessVerification: ({ emailHint, verifyingAccess, verifyAccess, trans }: {
|
|
4
|
+
emailHint: string;
|
|
5
|
+
verifyingAccess: boolean;
|
|
6
|
+
verifyAccess: (candidateEmail: string) => Promise<{
|
|
7
|
+
allowToAccess: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
trans: Translation;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./style.less";
|
|
3
|
+
export declare const AssessmentDialogFlow: ({ showAgentTyping, defaultSliderValue, onSliderChange }: {
|
|
4
|
+
showAgentTyping: boolean;
|
|
5
|
+
defaultSliderValue?: number;
|
|
6
|
+
onSliderChange?: (value: number) => void;
|
|
7
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./style.less";
|
|
3
|
+
import { MessageBubble } from "@/types/Next";
|
|
4
|
+
export declare const CandidateMessageBubble: ({ message, defaultSliderValue, onSliderChange }: {
|
|
5
|
+
message: MessageBubble;
|
|
6
|
+
defaultSliderValue?: number;
|
|
7
|
+
onSliderChange?: (value: number) => void;
|
|
8
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|