@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.
Files changed (344) hide show
  1. package/CHANGELOG.md +865 -0
  2. package/README.md +366 -0
  3. package/RootApp.d.ts +2 -0
  4. package/apis/FIApis.d.ts +152 -0
  5. package/apis/hooks/useGetApplicationJobRequisition.d.ts +12 -0
  6. package/apis/hooks/useGetJobRequisition.d.ts +10 -0
  7. package/apis/types/apiRequest.d.ts +1 -0
  8. package/apis/types/apiResponse.d.ts +16 -0
  9. package/apis/types/branding.d.ts +17 -0
  10. package/apis/types/jobRequisition.d.ts +20 -0
  11. package/commitlint.config.js +1 -0
  12. package/components/AccessVerificationForm/__tests__/AccessVerificationForm.test.d.ts +1 -0
  13. package/components/AccessVerificationForm/index.d.ts +1 -0
  14. package/components/AccessVerificationForm/view.d.ts +11 -0
  15. package/components/AgcWarningModal/__tests__/AGCWarningModal.test.d.ts +1 -0
  16. package/components/AgcWarningModal/index.d.ts +1 -0
  17. package/components/AgcWarningModal/view.d.ts +7 -0
  18. package/components/AssessmentProgressBar/__tests__/AssessmentProgressBar.test.d.ts +1 -0
  19. package/components/AssessmentProgressBar/index.d.ts +7 -0
  20. package/components/AssessmentProgressBar/view.d.ts +2 -0
  21. package/components/AutoScrollText/__tests__/AutoScrollText.test.d.ts +1 -0
  22. package/components/AutoScrollText/__tests__/useAutoScrollText.test.d.ts +1 -0
  23. package/components/AutoScrollText/useAutoScrollText.d.ts +7 -0
  24. package/components/AutoScrollText/view.d.ts +4 -0
  25. package/components/ButtonGroup/index.d.ts +1 -0
  26. package/components/ButtonGroup/view.d.ts +10 -0
  27. package/components/CancelEditButton/index.d.ts +1 -0
  28. package/components/CancelEditButton/view.d.ts +7 -0
  29. package/components/ChatbotApp/index.d.ts +1 -0
  30. package/components/ChatbotApp/view.d.ts +10 -0
  31. package/components/Dropdown/index.d.ts +3 -0
  32. package/components/Dropdown/view.d.ts +10 -0
  33. package/components/EditButton/__tests__/EditButton.test.d.ts +1 -0
  34. package/components/EditButton/index.d.ts +3 -0
  35. package/components/EditButton/view.d.ts +10 -0
  36. package/components/FTQResponse/__tests__/FTQResponse.test.d.ts +1 -0
  37. package/components/FTQResponse/index.d.ts +3 -0
  38. package/components/FTQResponse/view.d.ts +11 -0
  39. package/components/FullScreenSpinner/__tests__/FullScreenSpinner.test.d.ts +1 -0
  40. package/components/FullScreenSpinner/index.d.ts +1 -0
  41. package/components/FullScreenSpinner/view.d.ts +2 -0
  42. package/components/Icons/Close/Close.d.ts +5 -0
  43. package/components/Icons/Close/index.d.ts +1 -0
  44. package/components/Icons/DislikeEmoji/DislikeEmoji.d.ts +5 -0
  45. package/components/Icons/DislikeEmoji/index.d.ts +1 -0
  46. package/components/Icons/Error/index.d.ts +1 -0
  47. package/components/Icons/Error/view.d.ts +6 -0
  48. package/components/Icons/LikeEmoji/LikeEmoji.d.ts +5 -0
  49. package/components/Icons/LikeEmoji/index.d.ts +1 -0
  50. package/components/Icons/Pause/Pause.d.ts +6 -0
  51. package/components/Icons/Pause/index.d.ts +1 -0
  52. package/components/Icons/Play/Play.d.ts +6 -0
  53. package/components/Icons/Play/index.d.ts +1 -0
  54. package/components/Icons/Question/Question.d.ts +6 -0
  55. package/components/Icons/Question/index.d.ts +1 -0
  56. package/components/Icons/ReRecord/ReRecord.d.ts +5 -0
  57. package/components/Icons/ReRecord/index.d.ts +1 -0
  58. package/components/Icons/Record/Record.d.ts +6 -0
  59. package/components/Icons/Record/index.d.ts +1 -0
  60. package/components/Icons/RecordingTip/RecordingTip.d.ts +6 -0
  61. package/components/Icons/RecordingTip/index.d.ts +1 -0
  62. package/components/Icons/Retry/Retry.d.ts +6 -0
  63. package/components/Icons/Retry/index.d.ts +1 -0
  64. package/components/Icons/Save/Save.d.ts +5 -0
  65. package/components/Icons/Save/index.d.ts +1 -0
  66. package/components/Icons/Stop/Stop.d.ts +6 -0
  67. package/components/Icons/Stop/index.d.ts +1 -0
  68. package/components/Icons/index.d.ts +13 -0
  69. package/components/IosChromeError/index.d.ts +7 -0
  70. package/components/IosChromeError/view.d.ts +3 -0
  71. package/components/Loading/index.d.ts +3 -0
  72. package/components/Loading/view.d.ts +9 -0
  73. package/components/NameEditor/NameEditor.d.ts +26 -0
  74. package/components/NameEditor/__tests__/NameEditor.FirstName.test.d.ts +1 -0
  75. package/components/NameEditor/__tests__/NameEditor.FullName.test.d.ts +1 -0
  76. package/components/NameEditor/__tests__/NameEditor.LastName.test.d.ts +1 -0
  77. package/components/NameEditor/__tests__/NameEditor.test.d.ts +1 -0
  78. package/components/NameEditor/__tests__/useHumanNameExtraction.FirstName.test.d.ts +1 -0
  79. package/components/NameEditor/__tests__/useHumanNameExtraction.FullName.test.d.ts +1 -0
  80. package/components/NameEditor/__tests__/useHumanNameExtraction.LastName.test.d.ts +1 -0
  81. package/components/NameEditor/__tests__/useHumanNameExtraction.test.d.ts +1 -0
  82. package/components/NameEditor/useHumanNameExtraction.d.ts +22 -0
  83. package/components/NameExtractionConfirmModal/__tests__/NameExtractionConfirmModal.test.d.ts +1 -0
  84. package/components/NameExtractionConfirmModal/index.d.ts +1 -0
  85. package/components/NameExtractionConfirmModal/view.d.ts +15 -0
  86. package/components/OptionList/index.d.ts +3 -0
  87. package/components/OptionList/view.d.ts +11 -0
  88. package/components/PHEditor/DesktopQuillEditor/index.d.ts +1 -0
  89. package/components/PHEditor/DesktopQuillEditor/view.d.ts +37 -0
  90. package/components/PHEditor/MobileEditor/ClickableBar.d.ts +7 -0
  91. package/components/PHEditor/MobileEditor/__tests__/ClickableBar.test.d.ts +1 -0
  92. package/components/PHEditor/MobileEditor/view.d.ts +28 -0
  93. package/components/PHEditor/PlainTextEditor/index.d.ts +3 -0
  94. package/components/PHEditor/PlainTextEditor/view.d.ts +26 -0
  95. package/components/PHEditor/TextDictationModal/index.d.ts +1 -0
  96. package/components/PHEditor/TextDictationModal/view.d.ts +6 -0
  97. package/components/PHEditor/TextDictationTip/index.d.ts +1 -0
  98. package/components/PHEditor/TextDictationTip/view.d.ts +4 -0
  99. package/components/PHEditor/WordCount/index.d.ts +1 -0
  100. package/components/PHEditor/WordCount/view.d.ts +12 -0
  101. package/components/PHEditor/__tests__/DesktopQuillEditor.test.d.ts +1 -0
  102. package/components/PHEditor/__tests__/PlainTextEditor.test.d.ts +1 -0
  103. package/components/PHEditor/__tests__/utils.test.d.ts +1 -0
  104. package/components/PHEditor/index.d.ts +2 -0
  105. package/components/PHEditor/types.d.ts +8 -0
  106. package/components/PHEditor/utils.d.ts +20 -0
  107. package/components/PHError/index.d.ts +7 -0
  108. package/components/PHError/view.d.ts +4 -0
  109. package/components/PHIconFont/index.d.ts +7 -0
  110. package/components/PHIconFont/view.d.ts +2 -0
  111. package/components/PHSelect/__tests__/PHSelect.test.d.ts +1 -0
  112. package/components/PHSelect/index.d.ts +1 -0
  113. package/components/PHSelect/view.d.ts +8 -0
  114. package/components/PHVideo/DesktopVideo/__tests__/utils/formatTime.test.d.ts +1 -0
  115. package/components/PHVideo/DesktopVideo/components/Video/index.d.ts +3 -0
  116. package/components/PHVideo/DesktopVideo/components/Video/view.d.ts +42 -0
  117. package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/index.d.ts +3 -0
  118. package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/view.d.ts +10 -0
  119. package/components/PHVideo/DesktopVideo/index.d.ts +3 -0
  120. package/components/PHVideo/DesktopVideo/utils.d.ts +1 -0
  121. package/components/PHVideo/DesktopVideo/view.d.ts +10 -0
  122. package/components/PHVideo/MobileVideo/index.d.ts +3 -0
  123. package/components/PHVideo/MobileVideo/view.d.ts +9 -0
  124. package/components/PhoneCodeSelect/__tests__/PhoneCodeSelect.test.d.ts +1 -0
  125. package/components/PhoneCodeSelect/index.d.ts +1 -0
  126. package/components/PhoneCodeSelect/sources.d.ts +8 -0
  127. package/components/PhoneCodeSelect/view.d.ts +6 -0
  128. package/components/PhoneEditor/__tests__/PhoneEditor.test.d.ts +1 -0
  129. package/components/PhoneEditor/index.d.ts +3 -0
  130. package/components/PhoneEditor/view.d.ts +16 -0
  131. package/components/PlacesAutoComplete/api.d.ts +17 -0
  132. package/components/PlacesAutoComplete/constants.d.ts +8 -0
  133. package/components/PlacesAutoComplete/hooks/usePlacesAutoComplete.d.ts +21 -0
  134. package/components/PlacesAutoComplete/index.d.ts +6 -0
  135. package/components/PlacesAutoComplete/types.d.ts +53 -0
  136. package/components/PlacesAutoComplete/view.d.ts +16 -0
  137. package/components/ReRecordVideoButton/index.d.ts +3 -0
  138. package/components/ReRecordVideoButton/view.d.ts +7 -0
  139. package/components/ReciteMeWrapper/ReciteMeWrapper.d.ts +16 -0
  140. package/components/ReciteMeWrapper/index.d.ts +1 -0
  141. package/components/SendAnswerFailedModal/index.d.ts +1 -0
  142. package/components/SendAnswerFailedModal/view.d.ts +6 -0
  143. package/components/SendCircleButton/__tests__/SendCircleButton.test.d.ts +1 -0
  144. package/components/SendCircleButton/index.d.ts +3 -0
  145. package/components/SendCircleButton/view.d.ts +11 -0
  146. package/components/Slider/__tests__/Slider.test.d.ts +1 -0
  147. package/components/Slider/index.d.ts +3 -0
  148. package/components/Slider/view.d.ts +9 -0
  149. package/components/TextBubble/__tests__/TextBubble.test.d.ts +1 -0
  150. package/components/TextBubble/index.d.ts +3 -0
  151. package/components/TextBubble/view.d.ts +23 -0
  152. package/components/Tooltip/index.d.ts +3 -0
  153. package/components/Tooltip/view.d.ts +6 -0
  154. package/components/UnsupportedBrowserGuard/index.d.ts +3 -0
  155. package/components/UnsupportedBrowserGuard/view.d.ts +5 -0
  156. package/components/UploadVideoFailedMessage/index.d.ts +9 -0
  157. package/components/UploadVideoFailedMessage/view.d.ts +4 -0
  158. package/components/UploadVideoProgressBar/index.d.ts +9 -0
  159. package/components/UploadVideoProgressBar/view.d.ts +4 -0
  160. package/components/VideoPlayer/index.d.ts +3 -0
  161. package/components/VideoPlayer/view.d.ts +7 -0
  162. package/components/VideoResponse/index.d.ts +3 -0
  163. package/components/VideoResponse/view.d.ts +5 -0
  164. package/components/WarningButton/index.d.ts +3 -0
  165. package/components/WarningButton/view.d.ts +4 -0
  166. package/components/WarningModal/index.d.ts +3 -0
  167. package/components/WarningModal/view.d.ts +10 -0
  168. package/components/hooks/useCharacterCountLimit.d.ts +3 -0
  169. package/components/hooks/useCheckScreenSize.d.ts +3 -0
  170. package/components/hooks/useSubmitShortcut.d.ts +1 -0
  171. package/components/hooks/useWordCountLimit.d.ts +4 -0
  172. package/config.d.ts +16 -0
  173. package/constants/browser.d.ts +7 -0
  174. package/constants/common.d.ts +48 -0
  175. package/constants/mockDataForDemo.d.ts +14 -0
  176. package/constants/theme.d.ts +10 -0
  177. package/contexts/AssessmentStateContext/AssessmentStateContext.d.ts +6 -0
  178. package/contexts/AssessmentStateContext/__tests__/AssessmentStateContext.test.d.ts +1 -0
  179. package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/action.test.d.ts +1 -0
  180. package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/assessmentStateReducer.test.d.ts +1 -0
  181. package/contexts/AssessmentStateContext/assessmentStateReducer/action.d.ts +3 -0
  182. package/contexts/AssessmentStateContext/assessmentStateReducer/assessmentStateReducer.d.ts +2 -0
  183. package/contexts/AssessmentStateContext/type.d.ts +22 -0
  184. package/contexts/ChatbotStateContext/ChatbotStateContext.d.ts +12 -0
  185. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-error.test.d.ts +1 -0
  186. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-normal.test.d.ts +1 -0
  187. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleEditAnswer.test.d.ts +1 -0
  188. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleExitEditAnswer.test.d.ts +1 -0
  189. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSelectOption.test.d.ts +1 -0
  190. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSubmitRating.test.d.ts +1 -0
  191. package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleUploadDataVideo.test.d.ts +1 -0
  192. package/contexts/ChatbotStateContext/__tests__/bubble-util/addCandidateResponseMessageBubble.test.d.ts +1 -0
  193. package/contexts/ChatbotStateContext/__tests__/bubble-util/checkShouldLoadNext.test.d.ts +1 -0
  194. package/contexts/ChatbotStateContext/__tests__/bubble-util/convertMessageBubbles.test.d.ts +1 -0
  195. package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawAgentResponseToMessageBubble.test.d.ts +1 -0
  196. package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawCandidateResponseToMessageBubble.test.d.ts +1 -0
  197. package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawResponseToMessageBubble.test.d.ts +1 -0
  198. package/contexts/ChatbotStateContext/__tests__/bubble-util/updateAnswerForCandidateMessageBubble.test.d.ts +1 -0
  199. package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatus.test.d.ts +1 -0
  200. package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatusInList.test.d.ts +1 -0
  201. package/contexts/ChatbotStateContext/__tests__/useOrder.test.d.ts +1 -0
  202. package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getDisplayVideoUrl.test.d.ts +1 -0
  203. package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getVideoRetryNum.test.d.ts +1 -0
  204. package/contexts/ChatbotStateContext/__tests__/useUploadVideo/uploadDataVideo.test.d.ts +1 -0
  205. package/contexts/ChatbotStateContext/bubble-util.d.ts +193 -0
  206. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addAgentBubbleActionFn.test.d.ts +1 -0
  207. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addCandidateResponseMessageBubbleActionFn.test.d.ts +1 -0
  208. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
  209. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseCompletedActionFn.test.d.ts +1 -0
  210. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseStartingActionFn.test.d.ts +1 -0
  211. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/chatLogsLoadCompletedActionFn.test.d.ts +1 -0
  212. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/checkAgcCompletedActionFn.test.d.ts +1 -0
  213. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/convertRawBrandingTheme.test.d.ts +1 -0
  214. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editAnswerRequestCompletedActionFn.test.d.ts +1 -0
  215. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeEnterActionFn.test.d.ts +1 -0
  216. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeExitActionFn.test.d.ts +1 -0
  217. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/removeFailedMessageBubbleActionFn.test.d.ts +1 -0
  218. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/renderCandidateBubbleManuallyActionFn.test.d.ts +1 -0
  219. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/replaceVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
  220. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateCandidateMessageBubbleStatusActionFn.test.d.ts +1 -0
  221. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRecordedVideoInfoActionFn.test.d.ts +1 -0
  222. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRerecordVideoInfoActionFn.test.d.ts +1 -0
  223. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_AGENT_BUBBLE.test.d.ts +1 -0
  224. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_CANDIDATE_RESPONSE_BUBBLE.test.d.ts +1 -0
  225. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
  226. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_COMPLETED.test.d.ts +1 -0
  227. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_STARTING.test.d.ts +1 -0
  228. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-CHATLOGS_LOAD_COMPLETED.test.d.ts +1 -0
  229. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-DETECT_AGC_COMPLETED.test.d.ts +1 -0
  230. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_ANSWER_REQUEST_COMPLETED.test.d.ts +1 -0
  231. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_ENTER.test.d.ts +1 -0
  232. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_EXIT.test.d.ts +1 -0
  233. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REMOVE_FAILED_MESSAGE_BUBBLE.test.d.ts +1 -0
  234. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-RENDER_CANDIDATE_BUBBLE_MANUALLY.test.d.ts +1 -0
  235. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
  236. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS.test.d.ts +1 -0
  237. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RECORDED_VIDEO_INFO.test.d.ts +1 -0
  238. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RERECORD_VIDEO_INFO.test.d.ts +1 -0
  239. package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/util/phChatbotCbCallbackExecutor.test.d.ts +1 -0
  240. package/contexts/ChatbotStateContext/chatbotStateReducer/action.d.ts +23 -0
  241. package/contexts/ChatbotStateContext/chatbotStateReducer/chatbotStateReducer.d.ts +2 -0
  242. package/contexts/ChatbotStateContext/chatbotStateReducer/util.d.ts +13 -0
  243. package/contexts/ChatbotStateContext/type.d.ts +289 -0
  244. package/contexts/ChatbotStateContext/useDetectAgc/__tests__/useDetectAgc.test.d.ts +1 -0
  245. package/contexts/ChatbotStateContext/useDetectAgc/useDetectAgc.d.ts +17 -0
  246. package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/loadMessage.test.d.ts +1 -0
  247. package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/onloadNextSuccess.test.d.ts +1 -0
  248. package/contexts/ChatbotStateContext/useLoadNext/__tests__/useLoadNext.test.d.ts +1 -0
  249. package/contexts/ChatbotStateContext/useLoadNext/helper.d.ts +37 -0
  250. package/contexts/ChatbotStateContext/useLoadNext/useLoadNext.d.ts +31 -0
  251. package/contexts/ChatbotStateContext/useOrder.d.ts +31 -0
  252. package/contexts/ChatbotStateContext/useSubmitEditedAnswer/__tests__/useSubmitEditedAnswer.test.d.ts +1 -0
  253. package/contexts/ChatbotStateContext/useSubmitEditedAnswer/index.d.ts +1 -0
  254. package/contexts/ChatbotStateContext/useSubmitEditedAnswer/useSubmitEditedAnswer.d.ts +21 -0
  255. package/contexts/ChatbotStateContext/useUploadVideo.d.ts +29 -0
  256. package/features/AccessVerification/__tests__/AccessVerification.test.d.ts +1 -0
  257. package/features/AccessVerification/index.d.ts +1 -0
  258. package/features/AccessVerification/view.d.ts +10 -0
  259. package/features/AgentMessageBubble/index.d.ts +3 -0
  260. package/features/AgentMessageBubble/view.d.ts +5 -0
  261. package/features/Assessment/__tests__/Assessment.test.d.ts +1 -0
  262. package/features/Assessment/index.d.ts +3 -0
  263. package/features/Assessment/view.d.ts +2 -0
  264. package/features/AssessmentDialogFlow/index.d.ts +3 -0
  265. package/features/AssessmentDialogFlow/view.d.ts +7 -0
  266. package/features/AssessmentResponseFlow/index.d.ts +3 -0
  267. package/features/AssessmentResponseFlow/view.d.ts +5 -0
  268. package/features/CandidateMessageBubble/index.d.ts +3 -0
  269. package/features/CandidateMessageBubble/view.d.ts +8 -0
  270. package/features/Header/__tests__/Header.test.d.ts +1 -0
  271. package/features/Header/index.d.ts +3 -0
  272. package/features/Header/view.d.ts +2 -0
  273. package/features/Introduce/index.d.ts +3 -0
  274. package/features/Introduce/utils.d.ts +190 -0
  275. package/features/Introduce/view.d.ts +2 -0
  276. package/features/Layout/__tests__/Layout.test.d.ts +1 -0
  277. package/features/Layout/index.d.ts +3 -0
  278. package/features/Layout/view.d.ts +4 -0
  279. package/hooks/__tests__/useAccessManagement.test.d.ts +1 -0
  280. package/hooks/__tests__/useAccessVerification.test.d.ts +1 -0
  281. package/hooks/__tests__/useChatbotStatesContext.test.d.ts +1 -0
  282. package/hooks/__tests__/useExtractHumanName.test.d.ts +1 -0
  283. package/hooks/__tests__/useLocalStorage.test.d.ts +1 -0
  284. package/hooks/__tests__/useVerifyAccess.test.d.ts +1 -0
  285. package/hooks/useAccessManagement.d.ts +12 -0
  286. package/hooks/useAccessVerification.d.ts +13 -0
  287. package/hooks/useAssessmentStateContext.d.ts +2 -0
  288. package/hooks/useBeforeUnload.d.ts +2 -0
  289. package/hooks/useChatbotStatesContext.d.ts +2 -0
  290. package/hooks/useExtractHumanName.d.ts +15 -0
  291. package/hooks/useHandleEditorHeightChange.d.ts +7 -0
  292. package/hooks/useLocalStorage.d.ts +24 -0
  293. package/hooks/useQuery.d.ts +3 -0
  294. package/hooks/useVerifyAccess.d.ts +10 -0
  295. package/index.d.ts +1 -0
  296. package/package.json +172 -0
  297. package/pages/App/App.d.ts +11 -0
  298. package/pages/App/index.d.ts +2 -0
  299. package/pages/Chatbot/Chatbot.d.ts +3 -0
  300. package/pages/Chatbot/index.d.ts +2 -0
  301. package/pages/Home/Home.d.ts +3 -0
  302. package/pages/Home/index.d.ts +3 -0
  303. package/pages/LanguageSelectionPage/ApplicationLanguageSelectionPage.d.ts +6 -0
  304. package/pages/LanguageSelectionPage/GenericLanguageSelectionPage.d.ts +6 -0
  305. package/pages/LanguageSelectionPage/LanguageSelection.d.ts +13 -0
  306. package/pages/LanguageSelectionPage/__tests__/LanguageSelection.test.d.ts +1 -0
  307. package/pages/LanguageSelectionPage/index.d.ts +3 -0
  308. package/pages/LanguageSelectionPage/useLanguageSelection.d.ts +19 -0
  309. package/pages/OrderAssessment/OrderAssessment.d.ts +4 -0
  310. package/pages/OrderAssessment/index.d.ts +1 -0
  311. package/postcss.config.js +5 -0
  312. package/predictivehire.d.ts +45 -0
  313. package/predictivehire.js +71047 -0
  314. package/predictivehire.umd.js +382 -0
  315. package/serviceWorker.d.ts +7 -0
  316. package/static/favicon.ico +0 -0
  317. package/static/favicon.png +0 -0
  318. package/static/manifest.json +20 -0
  319. package/static/reciteme_button.png +0 -0
  320. package/static/robots.txt +3 -0
  321. package/tsconfig.build.json +5 -0
  322. package/types/Api.d.ts +25 -0
  323. package/types/AtsInformation.d.ts +52 -0
  324. package/types/ChatBot.d.ts +60 -0
  325. package/types/Next.d.ts +278 -0
  326. package/types/UrlParamKey.d.ts +6 -0
  327. package/utils/TestWrapper.d.ts +32 -0
  328. package/utils/__tests__/defaultLanguage.test.d.ts +1 -0
  329. package/utils/__tests__/getEnv.test.d.ts +1 -0
  330. package/utils/__tests__/messageBubble.test.d.ts +1 -0
  331. package/utils/__tests__/mockTranslationSource.d.ts +117 -0
  332. package/utils/__tests__/setTranslationSource.test.d.ts +1 -0
  333. package/utils/__tests__/translate.test.d.ts +1 -0
  334. package/utils/convertTheme.d.ts +39 -0
  335. package/utils/defaultLanguage.d.ts +6 -0
  336. package/utils/messageBubble.d.ts +11 -0
  337. package/utils/testUtils.d.ts +6 -0
  338. package/utils/translation/constants.d.ts +10 -0
  339. package/utils/translation/fallBackTranslation.d.ts +136 -0
  340. package/utils/translation/translation.d.ts +25 -0
  341. package/utils/utils.d.ts +16 -0
  342. package/vite.chatbot.config.js +90 -0
  343. package/vite.config.js +77 -0
  344. 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,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,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
+ };
@@ -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 * 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,3 @@
1
+ import { AgentMessageBubble } from "./view";
2
+ export { AgentMessageBubble };
3
+ export default AgentMessageBubble;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { MessageBubble } from "@/types/Next";
3
+ export declare const AgentMessageBubble: ({ message }: {
4
+ message: MessageBubble;
5
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Assessment } from "./view";
2
+ export { Assessment };
3
+ export default Assessment;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Assessment: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { AssessmentDialogFlow } from "./view";
2
+ export { AssessmentDialogFlow };
3
+ export default AssessmentDialogFlow;
@@ -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,3 @@
1
+ import { AssessmentResponseFlow } from "./view";
2
+ export { AssessmentResponseFlow };
3
+ export default AssessmentResponseFlow;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { WordCountRule } from "@/components/PHEditor/types";
3
+ export declare const AssessmentResponseFlow: ({ wordCountRule }: {
4
+ wordCountRule: WordCountRule;
5
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { CandidateMessageBubble } from "./view";
2
+ export { CandidateMessageBubble };
3
+ export default CandidateMessageBubble;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import { Header } from "./view";
2
+ export { Header };
3
+ export default Header;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Header: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { Introduce } from "./view";
2
+ export { Introduce };
3
+ export default Introduce;