@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
package/README.md
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
## Information
|
|
2
|
+
PredictiveHire AI chatbot.
|
|
3
|
+
You can contact PredictiveHire for more information. https://www.predictivehire.com
|
|
4
|
+
|
|
5
|
+
<br />
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
0. [Preparation](#jump0)
|
|
9
|
+
1. [use React](#jump1)
|
|
10
|
+
2. [use Vue(SPA mode)](#jump2)
|
|
11
|
+
3. [use Vue(SSR mode)](#jump3)
|
|
12
|
+
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
### <span id="jump0">0. prepare</span>
|
|
16
|
+
In order to initiate the request correctly when developing locally, you need to add the host of **app.localhost.com**
|
|
17
|
+
|
|
18
|
+
> Note:
|
|
19
|
+
If you use vue-cli to create a new project, you might meet a `Invalid Host/Origin header` error when you open the page with app.localhost.com. This is because the new version of webpack-dev-server adds security verification. The hostname is checked by default. If the hostname is not in the configuration, the access will be interrupted.
|
|
20
|
+
|
|
21
|
+
> Solution:
|
|
22
|
+
Create the file vue.config.js in the <font color=#FF000 >**root directory**</font>, and then fill in the following content:
|
|
23
|
+
```
|
|
24
|
+
module.exports = {
|
|
25
|
+
devServer: {
|
|
26
|
+
disableHostCheck: true,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<br />
|
|
32
|
+
|
|
33
|
+
### <span id="jump1">1. use React</span>
|
|
34
|
+
create TestPage component
|
|
35
|
+
|
|
36
|
+
|-- TestPage
|
|
37
|
+
|
|
38
|
+
|---- TestPage.tsx
|
|
39
|
+
|
|
40
|
+
|---- style.css
|
|
41
|
+
```
|
|
42
|
+
// ----------------------------------- TestPage.tsx ----------------------------
|
|
43
|
+
import "./style.css"
|
|
44
|
+
|
|
45
|
+
import * as React from "react"
|
|
46
|
+
import { PHChatBot } from "@sapia-ai/chatbot"
|
|
47
|
+
|
|
48
|
+
export const TestPage = () => {
|
|
49
|
+
// for assessmentId you can contact PredictiveHire for more information, so do appId and region
|
|
50
|
+
const appId = "appId"
|
|
51
|
+
const assessmentId = "assessmentId"
|
|
52
|
+
const region = "region" // need to confirm with PredictiveHire
|
|
53
|
+
const env = "qa" // this one is used to decide which domain name to use to initiate an api request
|
|
54
|
+
|
|
55
|
+
const chatbotATS = new PHChatBot({
|
|
56
|
+
appId: appId,
|
|
57
|
+
region: region,
|
|
58
|
+
env: env,
|
|
59
|
+
assessmentId: assessmentId
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
// developers can add the event callback they want
|
|
63
|
+
chatbotATS.addCallbackHandler({
|
|
64
|
+
FI_ASSESSMENT_STARTED: payload => {
|
|
65
|
+
console.info(payload)
|
|
66
|
+
},
|
|
67
|
+
FI_ASSESSMENT_ANSWER_SAVED: payload => {
|
|
68
|
+
console.info(payload)
|
|
69
|
+
},
|
|
70
|
+
FI_ASSESSMENT_ENDED: assessmentId => {
|
|
71
|
+
console.info(assessmentId)
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
chatbotATS.setTheme({
|
|
75
|
+
theme: {
|
|
76
|
+
question: {
|
|
77
|
+
backgroundColor: "#ef8200",
|
|
78
|
+
fontColor: "#fff"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
chatbotATS.attachTo({ selector: "#rootATS" })
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<div className="main">
|
|
86
|
+
<div className="chat-bot-box" id="rootATS" />
|
|
87
|
+
</div>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//-------------------------------------- style.css ----------------------------
|
|
92
|
+
.main {
|
|
93
|
+
position: relative;
|
|
94
|
+
text-align: center;
|
|
95
|
+
width: 500px;
|
|
96
|
+
height: 90vh;
|
|
97
|
+
margin: 5vh auto;
|
|
98
|
+
background-color: #fff;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.chat-bot-box {
|
|
102
|
+
position: relative;
|
|
103
|
+
z-index: 10;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
margin: 0 auto;
|
|
107
|
+
background-color: #fff;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media screen and (max-width: 980px) {
|
|
111
|
+
.chat-bot-box {
|
|
112
|
+
position: fixed;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
left: 0;
|
|
116
|
+
top: 0;
|
|
117
|
+
transform: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
<br />
|
|
124
|
+
|
|
125
|
+
### <span id="jump2">2. use Vue(SPA mode)</span>
|
|
126
|
+
```
|
|
127
|
+
<template>
|
|
128
|
+
<div class="main">
|
|
129
|
+
<div class="chat-bot-box" id="rootATS" />
|
|
130
|
+
</div>
|
|
131
|
+
</template>
|
|
132
|
+
|
|
133
|
+
<script>
|
|
134
|
+
import {PHChatBot} from "@sapia-ai/chatbot"
|
|
135
|
+
export default {
|
|
136
|
+
name: 'HelloWorld',
|
|
137
|
+
mounted: () => {
|
|
138
|
+
// for assessmentId you can contact PredictiveHire for more information, so do appId and region
|
|
139
|
+
const appId = "appId"
|
|
140
|
+
const assessmentId = "assessmentId"
|
|
141
|
+
const region = "region" // need to confirm with PredictiveHire
|
|
142
|
+
const env = "qa" // this one is used to decide which domain name to use to initiate an api request
|
|
143
|
+
|
|
144
|
+
const chatbotATS = new PHChatBot({
|
|
145
|
+
appId: appId,
|
|
146
|
+
region: region, // need to confirm with PredictiveHire
|
|
147
|
+
env: env, // this one is used to decide which domain name to use to initiate an api request
|
|
148
|
+
assessmentId: assessmentId
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
// developers can add the event callback they want
|
|
152
|
+
chatbotATS.addCallbackHandler({
|
|
153
|
+
FI_ASSESSMENT_STARTED: payload => {
|
|
154
|
+
console.info(payload)
|
|
155
|
+
},
|
|
156
|
+
FI_ASSESSMENT_ANSWER_SAVED: payload => {
|
|
157
|
+
console.info(payload)
|
|
158
|
+
},
|
|
159
|
+
FI_ASSESSMENT_ENDED: assessmentId => {
|
|
160
|
+
console.info(assessmentId)
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
chatbotATS.setTheme({
|
|
164
|
+
theme: {
|
|
165
|
+
question: {
|
|
166
|
+
backgroundColor: "#ef8200",
|
|
167
|
+
fontColor: "#fff"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
chatbotATS.attachTo({ selector: "#rootATS" })
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
</script>
|
|
175
|
+
|
|
176
|
+
<style scoped>
|
|
177
|
+
.main {
|
|
178
|
+
position: relative;
|
|
179
|
+
text-align: center;
|
|
180
|
+
width: 500px;
|
|
181
|
+
height: 90vh;
|
|
182
|
+
margin: 5vh auto;
|
|
183
|
+
background-color: #fff;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.chat-bot-box {
|
|
187
|
+
position: relative;
|
|
188
|
+
z-index: 10;
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 100%;
|
|
191
|
+
margin: 0 auto;
|
|
192
|
+
background-color: #fff;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media screen and (max-width: 980px) {
|
|
196
|
+
.chat-bot-box {
|
|
197
|
+
position: fixed;
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 100%;
|
|
200
|
+
left: 0;
|
|
201
|
+
top: 0;
|
|
202
|
+
transform: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
</style>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
<br />
|
|
209
|
+
|
|
210
|
+
### <span id="jump3">3. use Vue(SSR mode)</span>
|
|
211
|
+
```
|
|
212
|
+
<template>
|
|
213
|
+
<div class="main">
|
|
214
|
+
<div class="chat-bot-box" id="rootATS" />
|
|
215
|
+
</div>
|
|
216
|
+
</template>
|
|
217
|
+
|
|
218
|
+
<script>
|
|
219
|
+
let PHChatBot
|
|
220
|
+
if (typeof window !== 'undefined') {
|
|
221
|
+
// Ensure that the window object has been defined. Otherwise you will encounter window is not defined error
|
|
222
|
+
PHChatBot = require('@sapia-ai/chatbot')
|
|
223
|
+
}
|
|
224
|
+
export default {
|
|
225
|
+
name: 'HelloWorld',
|
|
226
|
+
mounted: () => {
|
|
227
|
+
// for assessmentId you can contact PredictiveHire for more information, so do appId and region
|
|
228
|
+
const appId = "appId"
|
|
229
|
+
const assessmentId = "assessmentId"
|
|
230
|
+
const region = "region" // need to confirm with PredictiveHire
|
|
231
|
+
const env = "qa" // this one is used to decide which domain name to use to initiate an api request
|
|
232
|
+
|
|
233
|
+
const chatbotATS = new PHChatBot.PHChatBot({
|
|
234
|
+
appId: appId,
|
|
235
|
+
region: region, // need to confirm with PredictiveHire
|
|
236
|
+
env: env, // this one is used to decide which domain name to use to initiate an api request
|
|
237
|
+
assessmentId: assessmentId
|
|
238
|
+
})
|
|
239
|
+
|
|
240
|
+
// developers can add the event callback they want
|
|
241
|
+
chatbotATS.addCallbackHandler({
|
|
242
|
+
FI_ASSESSMENT_STARTED: payload => {
|
|
243
|
+
console.info(payload)
|
|
244
|
+
},
|
|
245
|
+
FI_ASSESSMENT_ANSWER_SAVED: payload => {
|
|
246
|
+
console.info(payload)
|
|
247
|
+
},
|
|
248
|
+
FI_ASSESSMENT_ENDED: assessmentId => {
|
|
249
|
+
console.info(assessmentId)
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
chatbotATS.setTheme({
|
|
253
|
+
theme: {
|
|
254
|
+
question: {
|
|
255
|
+
backgroundColor: "#ef8200",
|
|
256
|
+
fontColor: "#fff"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
chatbotATS.attachTo({ selector: "#rootATS" })
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
</script>
|
|
264
|
+
|
|
265
|
+
<style scoped>
|
|
266
|
+
.main {
|
|
267
|
+
position: relative;
|
|
268
|
+
text-align: center;
|
|
269
|
+
width: 500px;
|
|
270
|
+
height: 90vh;
|
|
271
|
+
margin: 5vh auto;
|
|
272
|
+
background-color: #fff;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.chat-bot-box {
|
|
276
|
+
position: relative;
|
|
277
|
+
z-index: 10;
|
|
278
|
+
width: 100%;
|
|
279
|
+
height: 100%;
|
|
280
|
+
margin: 0 auto;
|
|
281
|
+
background-color: #fff;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@media screen and (max-width: 980px) {
|
|
285
|
+
.chat-bot-box {
|
|
286
|
+
position: fixed;
|
|
287
|
+
width: 100%;
|
|
288
|
+
height: 100%;
|
|
289
|
+
left: 0;
|
|
290
|
+
top: 0;
|
|
291
|
+
transform: none;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
</style>
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
<br /><br />
|
|
298
|
+
|
|
299
|
+
## Params
|
|
300
|
+
| param | desc |
|
|
301
|
+
| ---- | ---- |
|
|
302
|
+
| env | enum(local, qa, sandbox, product) For third-party developers, `qa` or `sandbox` will be good for development, and use `product` for online environments, different value of env will be call the apis with different domain |
|
|
303
|
+
| appId | string, used to retrieve cross-domain whitelist. Pls contact PredictiveHire for more information(https://www.predictivehire.com/) |
|
|
304
|
+
| region | string, PredictiveHire will provide API endpoint with different regions for different customers. Pls contact PredictiveHire for more information(https://www.predictivehire.com/) |
|
|
305
|
+
| assessmentId | This one is generate by PredictiveHire. Pls contact PredictiveHire for more information(https://www.predictivehire.com/) |
|
|
306
|
+
|
|
307
|
+
<br /><br />
|
|
308
|
+
|
|
309
|
+
## API
|
|
310
|
+
| API | definition | desc |
|
|
311
|
+
| ---- | ---- | ---- |
|
|
312
|
+
| attachTo | `({ selector, index }: { selector: string; index?: number; }) => void` | This `selector` must be a valid CSS selector string. the default value of `index` is 0, which means when multiple qualified doms are matched, the `index` element in the domList should be selected |
|
|
313
|
+
| addCallbackHandler | `(callbacks: PHChatBotCallback): => void` | Developers can add the event callback they want. The callBack functions will be called in corresponding stage. You can check the `PHChatBotCallback` below |
|
|
314
|
+
| setTheme | `({ theme }: { theme: Theme; }) => void` | You can use this api to customized theme color, the complete data structure is as follows |
|
|
315
|
+
|
|
316
|
+
<br /><br />
|
|
317
|
+
|
|
318
|
+
## Params Type
|
|
319
|
+
### Theme
|
|
320
|
+
```
|
|
321
|
+
{
|
|
322
|
+
hint: {
|
|
323
|
+
backgroundColor: string
|
|
324
|
+
fontColor: string
|
|
325
|
+
},
|
|
326
|
+
question: {
|
|
327
|
+
backgroundColor: string
|
|
328
|
+
fontColor: string
|
|
329
|
+
},
|
|
330
|
+
response: {
|
|
331
|
+
backgroundColor: string
|
|
332
|
+
fontColor: string
|
|
333
|
+
},
|
|
334
|
+
listItem: {
|
|
335
|
+
backgroundColor: string
|
|
336
|
+
fontColor: string
|
|
337
|
+
},
|
|
338
|
+
selectedItem: {
|
|
339
|
+
backgroundColor: string
|
|
340
|
+
fontColor: string
|
|
341
|
+
},
|
|
342
|
+
button: {
|
|
343
|
+
backgroundColor: string
|
|
344
|
+
fontColor: string
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
<br/>
|
|
349
|
+
|
|
350
|
+
### PHChatBotCallback
|
|
351
|
+
```
|
|
352
|
+
{
|
|
353
|
+
FI_ASSESSMENT_STARTED: (payload: {
|
|
354
|
+
assessmentId
|
|
355
|
+
chatLogs
|
|
356
|
+
branding
|
|
357
|
+
}) => void;
|
|
358
|
+
FI_ASSESSMENT_ANSWER_SAVED: (payload: {
|
|
359
|
+
assessmentId: string
|
|
360
|
+
question: string
|
|
361
|
+
answer: string
|
|
362
|
+
types: string[]
|
|
363
|
+
}) => void;
|
|
364
|
+
FI_ASSESSMENT_ENDED: (payload: { assessmentId: string }) => void;
|
|
365
|
+
}
|
|
366
|
+
```
|
package/RootApp.d.ts
ADDED
package/apis/FIApis.d.ts
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { AxiosInstance } from "axios";
|
|
2
|
+
import { PostExtractHumanNameExtractType } from "@/apis/types/apiRequest";
|
|
3
|
+
import { FiToken } from "@/types/Api";
|
|
4
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
5
|
+
import { AgentResponse, AssessmentStatus, CandidateResponse, CandidateResponseInput, EditCandidateResponseInput } from "@/types/Next";
|
|
6
|
+
import { GetApplicationJobRequisitionApiResponse, GetJobRequisitionApiResponse, PostExtractHumanNameApiResponse } from "./types/apiResponse";
|
|
7
|
+
import { Branding } from "./types/branding";
|
|
8
|
+
export declare let axiosInstance: AxiosInstance;
|
|
9
|
+
export declare const postOrderAssessment: ({ orderAssessmentBody, agentType, region }: {
|
|
10
|
+
orderAssessmentBody: unknown;
|
|
11
|
+
agentType?: string;
|
|
12
|
+
region: string;
|
|
13
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
14
|
+
assessmentId: string;
|
|
15
|
+
}, any>>;
|
|
16
|
+
export declare const postOrderGenericAssessment: ({ cohortId }: {
|
|
17
|
+
cohortId: string;
|
|
18
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
19
|
+
assessmentLink: string;
|
|
20
|
+
}, any>>;
|
|
21
|
+
export declare const postOrderJobRequisitionAssessment: ({ customerId, hierarchyId, organizationId, jobRequisitionShortcode, workflowId }: {
|
|
22
|
+
customerId: string;
|
|
23
|
+
hierarchyId: string;
|
|
24
|
+
organizationId: string;
|
|
25
|
+
jobRequisitionShortcode: string;
|
|
26
|
+
workflowId: string;
|
|
27
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
28
|
+
assessmentLink: string;
|
|
29
|
+
}, any>>;
|
|
30
|
+
export declare const postOrderApplicationAssessment: ({ customerId, hierarchyId, organizationId, applicationShortcode, workflowId }: {
|
|
31
|
+
customerId: string;
|
|
32
|
+
hierarchyId: string;
|
|
33
|
+
organizationId: string;
|
|
34
|
+
applicationShortcode: string;
|
|
35
|
+
workflowId: string;
|
|
36
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
37
|
+
assessmentId: string;
|
|
38
|
+
assessment: {
|
|
39
|
+
assessmentLink: string;
|
|
40
|
+
};
|
|
41
|
+
}, any>>;
|
|
42
|
+
export declare const postAtsStartAssessment: ({ assessmentId }: {
|
|
43
|
+
assessmentId: string;
|
|
44
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
45
|
+
assessmentId: string;
|
|
46
|
+
chatLogs: (CandidateResponse | AgentResponse)[];
|
|
47
|
+
branding?: Branding;
|
|
48
|
+
hasVideoQuestion?: boolean;
|
|
49
|
+
assessmentStatus: AssessmentStatus;
|
|
50
|
+
isCohortClosed?: boolean;
|
|
51
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
52
|
+
numOfNormalQuestion: number;
|
|
53
|
+
numOfNormalAnswer: number;
|
|
54
|
+
fiToken: FiToken;
|
|
55
|
+
language: string;
|
|
56
|
+
agcDetectionAttempt: number;
|
|
57
|
+
allowNextAgcDetection: boolean;
|
|
58
|
+
isTermsAndConditionsAccepted: boolean;
|
|
59
|
+
candidateCountryCode?: string;
|
|
60
|
+
assessmentIsReusedMessage?: AgentResponse;
|
|
61
|
+
}, any>>;
|
|
62
|
+
export declare const postNext: ({ assessmentId, candidateResponse, fiToken }: {
|
|
63
|
+
assessmentId: string;
|
|
64
|
+
candidateResponse?: CandidateResponseInput;
|
|
65
|
+
fiToken: FiToken;
|
|
66
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
67
|
+
nextResponse: AgentResponse;
|
|
68
|
+
candidateResponse?: CandidateResponse;
|
|
69
|
+
assessmentStatus: AssessmentStatus;
|
|
70
|
+
duplicatedWithAssessmentLink?: string;
|
|
71
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
72
|
+
assessmentIsReusedMessage?: AgentResponse;
|
|
73
|
+
numOfNormalAnswer: number;
|
|
74
|
+
isTermsAndConditionsAccepted: boolean;
|
|
75
|
+
fiToken?: FiToken;
|
|
76
|
+
}, any>>;
|
|
77
|
+
export declare const postEditAnswer: ({ assessmentId, editCandidateResponse, fiToken }: {
|
|
78
|
+
assessmentId: string;
|
|
79
|
+
editCandidateResponse: EditCandidateResponseInput;
|
|
80
|
+
fiToken: FiToken;
|
|
81
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
82
|
+
updatedCandidateResponse: CandidateResponse;
|
|
83
|
+
cohortIsArchivedMessage?: AgentResponse;
|
|
84
|
+
}, any>>;
|
|
85
|
+
export declare const getUploadVideoUrl: ({ assessmentId, questionId, extension }: {
|
|
86
|
+
assessmentId: string;
|
|
87
|
+
questionId: string;
|
|
88
|
+
extension: string;
|
|
89
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
90
|
+
url: string;
|
|
91
|
+
videoFileName: string;
|
|
92
|
+
}, any>>;
|
|
93
|
+
export declare const postUploadVideo: ({ data, url, extension, handleUploadProgress }: {
|
|
94
|
+
data: File;
|
|
95
|
+
url: string;
|
|
96
|
+
extension: string;
|
|
97
|
+
handleUploadProgress: (uploadInfo: any) => void;
|
|
98
|
+
}) => Promise<void>;
|
|
99
|
+
export declare const getVideoAccessUrl: ({ assessmentId, questionId, extension }: {
|
|
100
|
+
assessmentId: string;
|
|
101
|
+
questionId: string;
|
|
102
|
+
extension: string;
|
|
103
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
104
|
+
url: string;
|
|
105
|
+
videoFileName: string;
|
|
106
|
+
}, any>>;
|
|
107
|
+
/**
|
|
108
|
+
* Fetch translation file from backend API
|
|
109
|
+
*/
|
|
110
|
+
export declare const getFITranslation: ({ language, phChatBotCallback }: {
|
|
111
|
+
language: string;
|
|
112
|
+
phChatBotCallback: PHChatBotCallback;
|
|
113
|
+
}) => Promise<{
|
|
114
|
+
[key: string]: string;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const postDetectAgc: ({ assessmentId, fiToken }: {
|
|
117
|
+
assessmentId: string;
|
|
118
|
+
fiToken: FiToken;
|
|
119
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
120
|
+
attempt: number;
|
|
121
|
+
isAgc: boolean;
|
|
122
|
+
allowNextAgcDetection: boolean;
|
|
123
|
+
}, any>>;
|
|
124
|
+
export declare const getAccessManagement: ({ assessmentId }: {
|
|
125
|
+
assessmentId: string;
|
|
126
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
127
|
+
shouldAuthenticate: boolean;
|
|
128
|
+
emailHint: string;
|
|
129
|
+
language: string;
|
|
130
|
+
}, any>>;
|
|
131
|
+
export declare const getJobRequisition: ({ shortcode }: {
|
|
132
|
+
shortcode: string;
|
|
133
|
+
}) => Promise<import("axios").AxiosResponse<GetJobRequisitionApiResponse, any>>;
|
|
134
|
+
export declare const getApplicationJobRequisition: ({ applicationShortcode, trackCode, accessType }: {
|
|
135
|
+
applicationShortcode: string;
|
|
136
|
+
trackCode: string | null;
|
|
137
|
+
accessType: string | null;
|
|
138
|
+
}) => Promise<import("axios").AxiosResponse<GetApplicationJobRequisitionApiResponse, any>>;
|
|
139
|
+
export declare const postVerifyAccess: ({ assessmentId, candidateEmail }: {
|
|
140
|
+
assessmentId: string;
|
|
141
|
+
candidateEmail: string;
|
|
142
|
+
}) => Promise<import("axios").AxiosResponse<{
|
|
143
|
+
allowToAccess: boolean;
|
|
144
|
+
}, any>>;
|
|
145
|
+
export declare const postWorkflowConfiguration: (workflowId: string, language: string) => Promise<import("axios").AxiosResponse<{
|
|
146
|
+
assessmentUrl: string;
|
|
147
|
+
}, any>>;
|
|
148
|
+
export declare const postExtractHumanName: ({ assessmentId, userText, extractType }: {
|
|
149
|
+
assessmentId: string;
|
|
150
|
+
userText: string;
|
|
151
|
+
extractType: PostExtractHumanNameExtractType;
|
|
152
|
+
}) => Promise<import("axios").AxiosResponse<PostExtractHumanNameApiResponse, any>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
2
|
+
export declare const useApplicationGetJobRequisition: ({ phChatBotCallback }: {
|
|
3
|
+
phChatBotCallback: PHChatBotCallback;
|
|
4
|
+
}) => {
|
|
5
|
+
gettingApplicationJobRequisition: boolean;
|
|
6
|
+
getApplicationJobRequisition: (args_0: {
|
|
7
|
+
applicationShortcode: string;
|
|
8
|
+
trackCode: string;
|
|
9
|
+
accessType: string;
|
|
10
|
+
}) => Promise<import("../types/apiResponse").GetApplicationJobRequisitionApiResponse>;
|
|
11
|
+
getApplicationJobRequisitionError: Error;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
2
|
+
export declare const useGetJobRequisition: ({ phChatBotCallback }: {
|
|
3
|
+
phChatBotCallback: PHChatBotCallback;
|
|
4
|
+
}) => {
|
|
5
|
+
gettingJobRequisition: boolean;
|
|
6
|
+
getJobRequisition: (args_0: {
|
|
7
|
+
jobRequisitionShortcode: string;
|
|
8
|
+
}) => Promise<import("../types/apiResponse").GetJobRequisitionApiResponse>;
|
|
9
|
+
getJobRequisitionError: Error;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type PostExtractHumanNameExtractType = "firstName" | "lastName" | "fullName";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Branding } from "./branding";
|
|
2
|
+
import { JobRequisition } from "./jobRequisition";
|
|
3
|
+
export declare type GetJobRequisitionApiResponse = {
|
|
4
|
+
jobRequisition: JobRequisition;
|
|
5
|
+
branding: Branding;
|
|
6
|
+
};
|
|
7
|
+
export declare type GetApplicationJobRequisitionApiResponse = {
|
|
8
|
+
currentAssessmentLink: string | null;
|
|
9
|
+
jobRequisition: JobRequisition | null;
|
|
10
|
+
branding: Branding | null;
|
|
11
|
+
};
|
|
12
|
+
export declare type PostExtractHumanNameApiResponse = {
|
|
13
|
+
firstName?: string;
|
|
14
|
+
lastName?: string;
|
|
15
|
+
fullName?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare type ThemeElement = {
|
|
2
|
+
backgroundColor?: string;
|
|
3
|
+
fontColor?: string;
|
|
4
|
+
linkColor?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type ThemeProperty = {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
value: ThemeElement;
|
|
10
|
+
};
|
|
11
|
+
export declare type Branding = {
|
|
12
|
+
customerId: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
theme?: ThemeProperty[];
|
|
15
|
+
logoUrl?: string;
|
|
16
|
+
font?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SupportedLanguage } from "@/utils/translation/translation";
|
|
2
|
+
export declare type WorkflowOption = {
|
|
3
|
+
workflowId: string;
|
|
4
|
+
language: SupportedLanguage;
|
|
5
|
+
isDefault: boolean;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type WorkflowSet = {
|
|
9
|
+
_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
workflowOptions: WorkflowOption[];
|
|
12
|
+
createdAt: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type JobRequisition = {
|
|
15
|
+
customerId: string;
|
|
16
|
+
hierarchyId: string;
|
|
17
|
+
organizationId: string;
|
|
18
|
+
title: string;
|
|
19
|
+
workflowSet: WorkflowSet;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { extends: ["@commitlint/config-conventional"] }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./view";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Translation } from "@/utils/translation/translation";
|
|
3
|
+
export declare const AccessVerificationForm: ({ emailHint, loading, errorMessage, candidateEmail, trans, onConfirmBtnClick, onEmailInputChange }: {
|
|
4
|
+
emailHint: string;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
candidateEmail: string;
|
|
8
|
+
trans: Translation;
|
|
9
|
+
onConfirmBtnClick: (candidateEmail: string) => void;
|
|
10
|
+
onEmailInputChange: (candidateEmail: string) => void;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./view";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const AgcWarningModal: ({ shouldShowAgcWarningModal, attempt, handleAgcWarningEditBtnClick, handleAgcWarningContinueBtnClick }: {
|
|
3
|
+
shouldShowAgcWarningModal: boolean;
|
|
4
|
+
attempt: number;
|
|
5
|
+
handleAgcWarningEditBtnClick: () => void;
|
|
6
|
+
handleAgcWarningContinueBtnClick: () => void;
|
|
7
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MutableRefObject } from "react";
|
|
2
|
+
export declare const useAutoScrollText: (wrapperRef: MutableRefObject<HTMLDivElement>, scrollTextRef: MutableRefObject<HTMLSpanElement>, scrollSpeedPerPixel?: number) => {
|
|
3
|
+
animationDuration: string;
|
|
4
|
+
horizontalTranslation: number;
|
|
5
|
+
shouldScroll: boolean;
|
|
6
|
+
scrollPaused: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./view";
|