@frankieone/one-sdk 1.7.2-rc → 1.7.3-rc

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 (339) hide show
  1. package/dist/commit.txt +1 -1
  2. package/dist/esm/modules/biometrics/definition.d.ts +3 -3
  3. package/dist/esm/modules/biometrics/events.d.ts +2 -2
  4. package/dist/esm/modules/biometrics/index.d.ts +1 -1
  5. package/dist/esm/modules/biometrics/index.d.ts.map +1 -1
  6. package/dist/esm/modules/biometrics/index.js +12 -6
  7. package/dist/esm/modules/biometrics/index.js.map +1 -1
  8. package/dist/esm/modules/biometrics/parseConfiguration.d.ts +1 -1
  9. package/dist/esm/modules/biometrics/vendors/Incode/index.d.ts +3 -3
  10. package/dist/esm/modules/biometrics/vendors/OcrLabs/index.d.ts +2 -2
  11. package/dist/esm/modules/biometrics/vendors/Onfido/index.d.ts +5 -5
  12. package/dist/esm/modules/biometrics/vendors/common/createSession.d.ts +4 -4
  13. package/dist/esm/modules/biometrics/vendors/common/errors.d.ts +3 -3
  14. package/dist/esm/modules/biometrics/vendors/common/initProcess.d.ts +4 -4
  15. package/dist/esm/modules/biometrics/vendors/dummy-biometrics/index.d.ts +2 -2
  16. package/dist/esm/modules/business/actions/emitEvents.d.ts +2 -2
  17. package/dist/esm/modules/business/actions/search.d.ts +3 -3
  18. package/dist/esm/modules/business/actions/upload.d.ts +4 -4
  19. package/dist/esm/modules/business/definition.d.ts +4 -4
  20. package/dist/esm/modules/business/events.d.ts +1 -1
  21. package/dist/esm/modules/common/modules/HOF.d.ts +1 -1
  22. package/dist/esm/modules/common/modules/ReactiveStore.d.ts +1 -1
  23. package/dist/esm/modules/common/modules/defineModule.d.ts +1 -1
  24. package/dist/esm/modules/common/modules/error.d.ts +1 -1
  25. package/dist/esm/modules/common/modules/eventHub/index.d.ts.map +1 -1
  26. package/dist/esm/modules/common/modules/eventHub/index.js +14 -6
  27. package/dist/esm/modules/common/modules/eventHub/index.js.map +1 -1
  28. package/dist/esm/modules/common/modules/eventHub/types.d.ts +2 -2
  29. package/dist/esm/modules/common/modules/eventHub/windowEventHub.d.ts +1 -1
  30. package/dist/esm/modules/common/modules/eventHub/windowEventHub.d.ts.map +1 -1
  31. package/dist/esm/modules/common/modules/eventHub/windowEventHub.js +4 -2
  32. package/dist/esm/modules/common/modules/eventHub/windowEventHub.js.map +1 -1
  33. package/dist/esm/modules/common/modules/objectUtils.d.ts +1 -1
  34. package/dist/esm/modules/common/modules/vendorLoading.d.ts +4 -4
  35. package/dist/esm/modules/common/shared/models/DeviceCheck.d.ts +1 -1
  36. package/dist/esm/modules/common/shared/models/UBOData.d.ts +3 -3
  37. package/dist/esm/modules/common/types/Accessors.d.ts +1 -1
  38. package/dist/esm/modules/common/types/oneSDKModules/baseParameters.types.d.ts +6 -6
  39. package/dist/esm/modules/common/types/oneSDKModules/contextObject.d.ts +1 -1
  40. package/dist/esm/modules/common/types/oneSDKModules/definition.types.d.ts +2 -2
  41. package/dist/esm/modules/common/types/oneSDKModules/initialiseFunction.d.ts +2 -2
  42. package/dist/esm/modules/common/types/oneSDKModules/typeSystem.types.d.ts +1 -1
  43. package/dist/esm/modules/common/types/oneSDKVendorWrappers/initialiseFunction.d.ts +1 -1
  44. package/dist/esm/modules/common/types/recipeConfiguration.types.d.ts +5 -5
  45. package/dist/esm/modules/common/vendors/form/promisifyForm.d.ts +2 -2
  46. package/dist/esm/modules/common/vendors/form/useForm.d.ts +4 -4
  47. package/dist/esm/modules/common/vendors/incode/createEventHandlers.d.ts +4 -4
  48. package/dist/esm/modules/common/vendors/incode/index.d.ts +1 -1
  49. package/dist/esm/modules/common/vendors/incode/startCamera.d.ts +3 -3
  50. package/dist/esm/modules/common/vendors/onfido/index.d.ts +3 -3
  51. package/dist/esm/modules/common/vendors/onfido/onfido.types.d.ts +1 -1
  52. package/dist/esm/modules/config/modules.d.ts +18 -18
  53. package/dist/esm/modules/device/definition.d.ts +2 -2
  54. package/dist/esm/modules/device/events.d.ts +1 -1
  55. package/dist/esm/modules/device/index.d.ts +4 -4
  56. package/dist/esm/modules/device/index.d.ts.map +1 -1
  57. package/dist/esm/modules/device/index.js +19 -16
  58. package/dist/esm/modules/device/index.js.map +1 -1
  59. package/dist/esm/modules/device/parseConfiguration.d.ts +1 -1
  60. package/dist/esm/modules/device/vendors/Sardine.d.ts +6 -6
  61. package/dist/esm/modules/device/vendors/Threatmetrix/index.d.ts +4 -4
  62. package/dist/esm/modules/exports.d.ts +1 -1
  63. package/dist/esm/modules/features.config.d.ts +1 -1
  64. package/dist/esm/modules/federation/definition.d.ts +2 -2
  65. package/dist/esm/modules/federation/index.d.ts +2 -2
  66. package/dist/esm/modules/federation/index.d.ts.map +1 -1
  67. package/dist/esm/modules/federation/index.js +15 -14
  68. package/dist/esm/modules/federation/index.js.map +1 -1
  69. package/dist/esm/modules/federation/parseConfiguration.d.ts +1 -1
  70. package/dist/esm/modules/federation/vendors/Singpass.d.ts +5 -5
  71. package/dist/esm/modules/form/definition.d.ts +7 -7
  72. package/dist/esm/modules/form/events.d.ts +3 -3
  73. package/dist/esm/modules/form/index.d.ts.map +1 -1
  74. package/dist/esm/modules/form/index.js +5 -3
  75. package/dist/esm/modules/form/index.js.map +1 -1
  76. package/dist/esm/modules/form/validateConfiguration.d.ts +1 -1
  77. package/dist/esm/modules/form/vendors/formio/formioSdk.d.ts +1 -1
  78. package/dist/esm/modules/form/vendors/formio/index.d.ts +3 -3
  79. package/dist/esm/modules/form/vendors/formio/transformers/assignFormioDataToIndividualModule.d.ts +1 -1
  80. package/dist/esm/modules/form/vendors/formio/transformers/assignIndividualDataToFormioSdk.d.ts +1 -1
  81. package/dist/esm/modules/form/vendors/legacy/index.d.ts +5 -5
  82. package/dist/esm/modules/form/vendors/legacy/legacyUIEvents.types.d.ts +5 -5
  83. package/dist/esm/modules/form/vendors/legacy/loadLegacyUI.d.ts +3 -3
  84. package/dist/esm/modules/form/vendors/react/App.d.ts +2 -2
  85. package/dist/esm/modules/form/vendors/react/appConfig.type.d.ts +2 -2
  86. package/dist/esm/modules/form/vendors/react/components/base/SharedInput/Input.d.ts +1 -1
  87. package/dist/esm/modules/form/vendors/react/components/view/ActionFormField/ActionFormField.js +2 -2
  88. package/dist/esm/modules/form/vendors/react/components/view/ActionFormField/ActionFormField.js.map +1 -1
  89. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js +2 -2
  90. package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js.map +1 -1
  91. package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.d.ts +1 -1
  92. package/dist/esm/modules/form/vendors/react/constants/icons.d.ts +62 -62
  93. package/dist/esm/modules/form/vendors/react/constants/icons.d.ts.map +1 -1
  94. package/dist/esm/modules/form/vendors/react/constants/icons.js +74 -62
  95. package/dist/esm/modules/form/vendors/react/constants/icons.js.map +1 -1
  96. package/dist/esm/modules/form/vendors/react/constants/layoutMapper.const.d.ts +7 -7
  97. package/dist/esm/modules/form/vendors/react/constants/staticScreenMapper.const.d.ts +3 -3
  98. package/dist/esm/modules/form/vendors/react/features/Consent/hostedBusinessConsent.config.d.ts +1 -1
  99. package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Main.d.ts +1 -1
  100. package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Progress.d.ts +1 -1
  101. package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Review.d.ts +1 -1
  102. package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/index.d.ts +1 -1
  103. package/dist/esm/modules/form/vendors/react/features/IdPreps/driversLicense.config.d.ts +1 -1
  104. package/dist/esm/modules/form/vendors/react/features/IdPreps/mediCare.config.d.ts +1 -1
  105. package/dist/esm/modules/form/vendors/react/features/IdPreps/passport.config.d.ts +1 -1
  106. package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.config.d.ts +6 -6
  107. package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.const.d.ts +4 -4
  108. package/dist/esm/modules/form/vendors/react/features/IdSelection/manualIdSelection.config.d.ts +47 -47
  109. package/dist/esm/modules/form/vendors/react/features/PersonalDetails/PersonalDetails.js +1 -1
  110. package/dist/esm/modules/form/vendors/react/features/PersonalDetails/PersonalDetails.js.map +1 -1
  111. package/dist/esm/modules/form/vendors/react/features/PersonalDetails/personalDetails.config.d.ts +392 -392
  112. package/dist/esm/modules/form/vendors/react/features/ReviewDocument/ReviewDocument.js +1 -1
  113. package/dist/esm/modules/form/vendors/react/features/ReviewDocument/ReviewDocument.js.map +1 -1
  114. package/dist/esm/modules/form/vendors/react/features/Welcome/hostedBusinessWelcome.config.d.ts +1 -1
  115. package/dist/esm/modules/form/vendors/react/features/Welcome/manualWelcome.config.d.ts +4 -4
  116. package/dist/esm/modules/form/vendors/react/features/Welcome/welcome.config.d.ts +1 -1
  117. package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js +1 -1
  118. package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js.map +1 -1
  119. package/dist/esm/modules/form/vendors/react/hooks/useEventContext.d.ts +3 -3
  120. package/dist/esm/modules/form/vendors/react/hooks/useFormMapper.hook.d.ts +526 -526
  121. package/dist/esm/modules/form/vendors/react/hooks/useManualConfigFactory.hook.js +1 -1
  122. package/dist/esm/modules/form/vendors/react/hooks/useManualConfigFactory.hook.js.map +1 -1
  123. package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.d.ts +1 -1
  124. package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.js +1 -1
  125. package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.js.map +1 -1
  126. package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.d.ts +6 -6
  127. package/dist/esm/modules/form/vendors/react/index.d.ts +4 -4
  128. package/dist/esm/modules/form/vendors/react/model/address.model.d.ts +2 -2
  129. package/dist/esm/modules/form/vendors/react/model/googleAddress.model.d.ts +1 -1
  130. package/dist/esm/modules/form/vendors/react/model/idDetails.model.d.ts +1 -1
  131. package/dist/esm/modules/form/vendors/react/model/personalDetails.model.d.ts +1 -1
  132. package/dist/esm/modules/form/vendors/react/model/review.model.d.ts +2 -2
  133. package/dist/esm/modules/form/vendors/react/types/pages.type.d.ts +1 -1
  134. package/dist/esm/modules/form/vendors/react/utils/layout.util.d.ts +1 -1
  135. package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts +2 -2
  136. package/dist/esm/modules/frankie-client/ClientsDictionary.d.ts +1 -1
  137. package/dist/esm/modules/frankie-client/DummyFrankieApiClient.d.ts +1 -1
  138. package/dist/esm/modules/frankie-client/FrankieApiClient.d.ts +2 -2
  139. package/dist/esm/modules/frankie-client/clients/ApplicantClient.d.ts +4 -4
  140. package/dist/esm/modules/frankie-client/clients/BusinessClient.d.ts +1 -1
  141. package/dist/esm/modules/frankie-client/clients/FederationClient.d.ts +1 -1
  142. package/dist/esm/modules/frankie-client/clients/IDVClient.d.ts +2 -2
  143. package/dist/esm/modules/frankie-client/clients/OCRClient.d.ts +1 -1
  144. package/dist/esm/modules/frankie-client/clients/SupportingDocumentsClient.d.ts +3 -3
  145. package/dist/esm/modules/frankie-client/clients/TelemetryEventsClient.d.ts +1 -1
  146. package/dist/esm/modules/frankie-client/index.d.ts +1 -1
  147. package/dist/esm/modules/frankie-client/mocks/federation/index.d.ts +1 -1
  148. package/dist/esm/modules/frankie-client/mocks/idvAndBiometrics/idvSubmission.d.ts +4 -4
  149. package/dist/esm/modules/frankie-client/mocks/individual/loadIndividual.d.ts +1 -1
  150. package/dist/esm/modules/frankie-client/mocks/individual/resolveDocumentData.d.ts +2 -2
  151. package/dist/esm/modules/frankie-client/mocks/individual/resolveIndividualData.d.ts +3 -3
  152. package/dist/esm/modules/frankie-client/mocks/ocr/ocrSubmission.d.ts +1 -1
  153. package/dist/esm/modules/frankie-client/mocks/options/simplified/idvFlow.d.ts +4 -4
  154. package/dist/esm/modules/frankie-client/mocks/options/simplified/ocrFlow.d.ts +4 -4
  155. package/dist/esm/modules/frankie-client/mocks/options/simplified/preloadedIndividual.d.ts +5 -5
  156. package/dist/esm/modules/frankie-client/mocks/storage/mockStorage.d.ts +1 -1
  157. package/dist/esm/modules/idv/actions/mount.d.ts +3 -3
  158. package/dist/esm/modules/idv/definition.types.d.ts +8 -8
  159. package/dist/esm/modules/idv/events.types.d.ts +5 -5
  160. package/dist/esm/modules/idv/index.d.ts.map +1 -1
  161. package/dist/esm/modules/idv/index.js +9 -5
  162. package/dist/esm/modules/idv/index.js.map +1 -1
  163. package/dist/esm/modules/idv/parseConfiguration.d.ts +1 -1
  164. package/dist/esm/modules/idv/vendors/Incode/index.d.ts +5 -5
  165. package/dist/esm/modules/idv/vendors/Mastercard/index.d.ts +2 -2
  166. package/dist/esm/modules/idv/vendors/OcrLabs/endFlow.d.ts +4 -4
  167. package/dist/esm/modules/idv/vendors/OcrLabs/index.d.ts +3 -3
  168. package/dist/esm/modules/idv/vendors/OcrLabs/startDummyFlow.d.ts +2 -2
  169. package/dist/esm/modules/idv/vendors/OcrLabs/startFlow.d.ts +2 -2
  170. package/dist/esm/modules/idv/vendors/Onfido/index.d.ts +4 -4
  171. package/dist/esm/modules/idv/vendors/common/checkStatusEventMapping.d.ts +3 -3
  172. package/dist/esm/modules/idv/vendors/common/iframeUtils/createIframe.d.ts +2 -2
  173. package/dist/esm/modules/idv/vendors/common/iframeUtils/createIframeEventListener.d.ts +1 -1
  174. package/dist/esm/modules/idv/vendors/common/iframeUtils/defineIframeIDVWrapper.d.ts +7 -7
  175. package/dist/esm/modules/idv/vendors/common/iframeUtils/updateIndividualModuleState.d.ts +3 -3
  176. package/dist/esm/modules/idv/vendors/common/initialiseSession.d.ts +4 -4
  177. package/dist/esm/modules/idv/vendors/common/windowUtils/createWindow.d.ts +1 -1
  178. package/dist/esm/modules/index.d.ts +4 -4
  179. package/dist/esm/modules/individual/actions/addReference.d.ts +3 -3
  180. package/dist/esm/modules/individual/actions/addresses.d.ts +2 -2
  181. package/dist/esm/modules/individual/actions/consents.d.ts +1 -1
  182. package/dist/esm/modules/individual/actions/documents.d.ts +2 -2
  183. package/dist/esm/modules/individual/actions/email.d.ts +2 -2
  184. package/dist/esm/modules/individual/actions/emitEvents.d.ts +3 -3
  185. package/dist/esm/modules/individual/actions/phoneNumber.d.ts +2 -2
  186. package/dist/esm/modules/individual/actions/profileType.d.ts +2 -2
  187. package/dist/esm/modules/individual/actions/search.d.ts +3 -3
  188. package/dist/esm/modules/individual/actions/submit.d.ts +5 -5
  189. package/dist/esm/modules/individual/definition.d.ts +8 -8
  190. package/dist/esm/modules/individual/events.d.ts +1 -1
  191. package/dist/esm/modules/meta.json +1 -1
  192. package/dist/esm/modules/ocr/actions/mount.d.ts +4 -4
  193. package/dist/esm/modules/ocr/actions/start.d.ts +7 -7
  194. package/dist/esm/modules/ocr/definition.d.ts +5 -5
  195. package/dist/esm/modules/ocr/events.d.ts +2 -2
  196. package/dist/esm/modules/ocr/index.d.ts +11 -11
  197. package/dist/esm/modules/ocr/index.d.ts.map +1 -1
  198. package/dist/esm/modules/ocr/index.js +6 -3
  199. package/dist/esm/modules/ocr/index.js.map +1 -1
  200. package/dist/esm/modules/ocr/vendors/Incode/index.d.ts +3 -3
  201. package/dist/esm/modules/ocr/vendors/Onfido/index.d.ts +2 -2
  202. package/dist/esm/modules/ocr/vendors/common/createSession.d.ts +4 -4
  203. package/dist/esm/modules/ocr/vendors/common/initProcess.d.ts +2 -2
  204. package/dist/esm/modules/ocr/vendors/common/mutationObserver.d.ts +2 -2
  205. package/dist/esm/modules/ocr/vendors/common/statusEvaluators.d.ts +5 -5
  206. package/dist/esm/modules/ocr/vendors/dummy-ocr/index.d.ts +3 -3
  207. package/dist/esm/modules/sdk/initialisation/componentLoader.d.ts +2 -2
  208. package/dist/esm/modules/sdk/initialisation/configurationParser.d.ts +1 -1
  209. package/dist/esm/modules/sdk/initialisation/sharedDependencies.d.ts +4 -4
  210. package/dist/esm/modules/sdk/initialisation/sharedDependencies.d.ts.map +1 -1
  211. package/dist/esm/modules/sdk/initialisation/sharedDependencies.js +20 -8
  212. package/dist/esm/modules/sdk/initialisation/sharedDependencies.js.map +1 -1
  213. package/dist/esm/modules/sdk/types/globalEvents.d.ts +2 -2
  214. package/dist/esm/modules/sdk/types/oneSDK.d.ts +5 -5
  215. package/dist/esm/modules/sdk/types/oneSDKParameters.d.ts +2 -2
  216. package/dist/esm/modules/session/SessionContext.d.ts +1 -1
  217. package/dist/esm/modules/session/definition.d.ts +3 -3
  218. package/dist/esm/modules/session/index.d.ts +5 -5
  219. package/dist/esm/modules/session/index.d.ts.map +1 -1
  220. package/dist/esm/modules/session/index.js +24 -16
  221. package/dist/esm/modules/session/index.js.map +1 -1
  222. package/dist/esm/modules/session/types/module.d.ts +1 -1
  223. package/dist/esm/modules/types.d.ts +13 -13
  224. package/dist/esm/modules/workflow/definition.types.d.ts +1 -1
  225. package/dist/esm/modules/workflow/index.d.ts +1 -1
  226. package/dist/version.txt +0 -1
  227. package/package.json +8 -5
  228. package/dist/esm/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -6
  229. package/dist/esm/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts.map +0 -1
  230. package/dist/umd/080b774e0f4f9c679e85.svg +0 -45
  231. package/dist/umd/0c9574c81d7d87e9ccd3.svg +0 -34
  232. package/dist/umd/0cd8e74f8a68e0b1ae14.svg +0 -3
  233. package/dist/umd/10183d99573bcd186235.svg +0 -5
  234. package/dist/umd/124.js +0 -2
  235. package/dist/umd/124.js.map +0 -1
  236. package/dist/umd/1c9c1ef03c6dd661b89b.woff +0 -0
  237. package/dist/umd/1df3f35eac93c61986b1.svg +0 -60
  238. package/dist/umd/1f76ff5e84787152adc5.svg +0 -50
  239. package/dist/umd/2451ce2859277292a2a3.svg +0 -4
  240. package/dist/umd/24c67c1821feba22f3f7.svg +0 -5
  241. package/dist/umd/2546128ef2e2d56276b7.svg +0 -5
  242. package/dist/umd/26a8e1ce5e5578874420.woff2 +0 -0
  243. package/dist/umd/2f32844e02839dd608a4.svg +0 -4
  244. package/dist/umd/329d07fd3f40d3967c81.svg +0 -4
  245. package/dist/umd/32cb4eea6ca1acb9f788.svg +0 -45
  246. package/dist/umd/3443b53b9b1a00c340f7.svg +0 -27
  247. package/dist/umd/34fe2370aa5e73787795.svg +0 -30
  248. package/dist/umd/36ddfb506829cb8cde72.svg +0 -113
  249. package/dist/umd/396cc7cc5e61acfa8fc8.svg +0 -15
  250. package/dist/umd/3a660ff8435efa515e98.svg +0 -4
  251. package/dist/umd/3b687e48c6bb765ed976.svg +0 -5
  252. package/dist/umd/3d245ccf2dde73ceca07.svg +0 -114
  253. package/dist/umd/42caa2dd6b4f0de68157.svg +0 -51
  254. package/dist/umd/463e54e898297e314139.svg +0 -81
  255. package/dist/umd/4ac349963383ebda508b.svg +0 -50
  256. package/dist/umd/4db0db393dfe2f9f90c1.svg +0 -60
  257. package/dist/umd/4ee01199f6f6b7e6fb24.svg +0 -195
  258. package/dist/umd/4ff338b86cdba19934cf.svg +0 -86
  259. package/dist/umd/58b74e594849c43b2248.woff2 +0 -0
  260. package/dist/umd/5c23763467ce9cfda119.svg +0 -41
  261. package/dist/umd/5ddf80d7ddb1d1c5a0bc.woff +0 -0
  262. package/dist/umd/6375eb14534238c06a4b.svg +0 -27
  263. package/dist/umd/6558f8e71743e073c18b.svg +0 -3
  264. package/dist/umd/67cbc8178ea76ef0d8b4.svg +0 -4
  265. package/dist/umd/6c874e1a72a4fa9eeed8.woff2 +0 -0
  266. package/dist/umd/71b71503b4f733079331.svg +0 -3
  267. package/dist/umd/7f6d57b96337c21c053d.woff +0 -0
  268. package/dist/umd/8053f51266aa9d864691.svg +0 -4
  269. package/dist/umd/80929602ea97f94dc18c.svg +0 -65
  270. package/dist/umd/8a06059b84b1aa2bf661.svg +0 -29
  271. package/dist/umd/8f10666ff21ef0238370.svg +0 -13
  272. package/dist/umd/949.js +0 -3
  273. package/dist/umd/949.js.LICENSE.txt +0 -60
  274. package/dist/umd/949.js.map +0 -1
  275. package/dist/umd/9d49ce231cb895b6ef29.svg +0 -50
  276. package/dist/umd/9dee3446081d7d47623b.svg +0 -4
  277. package/dist/umd/a96ec21d243a49916487.svg +0 -47
  278. package/dist/umd/ac457c4800183645b1ad.svg +0 -45
  279. package/dist/umd/af823d3a76ce1e2e36af.woff +0 -0
  280. package/dist/umd/aff615d38d2fce3f82b2.svg +0 -83
  281. package/dist/umd/bc42b55176ae1021b9e4.svg +0 -80
  282. package/dist/umd/biometrics-dummy.js +0 -2
  283. package/dist/umd/biometrics-dummy.js.map +0 -1
  284. package/dist/umd/biometrics-incode.js +0 -2
  285. package/dist/umd/biometrics-incode.js.map +0 -1
  286. package/dist/umd/biometrics-ocrlabs.js +0 -2
  287. package/dist/umd/biometrics-ocrlabs.js.map +0 -1
  288. package/dist/umd/biometrics-onfido.js +0 -2
  289. package/dist/umd/biometrics-onfido.js.map +0 -1
  290. package/dist/umd/c0dede047f9a2b7c1309.svg +0 -51
  291. package/dist/umd/c16900512bb2f899c7eb.svg +0 -5
  292. package/dist/umd/c7a05c7d7d1f9347ae1b.svg +0 -53
  293. package/dist/umd/ce5b46abe62641bddb20.svg +0 -5
  294. package/dist/umd/d15d58eb544d245877e2.svg +0 -16
  295. package/dist/umd/d216030199c873b0bf41.woff2 +0 -0
  296. package/dist/umd/d563d85c23bcbd268d5e.svg +0 -30
  297. package/dist/umd/d70a547a409868c43a95.svg +0 -43
  298. package/dist/umd/d9ed930ae3bb52f2abe1.svg +0 -4
  299. package/dist/umd/dc45d5d9fb4b8959e156.svg +0 -24
  300. package/dist/umd/dd199fa4125e4ebef289.svg +0 -67
  301. package/dist/umd/dddc2581e578cfb3b997.svg +0 -195
  302. package/dist/umd/device-sardine.js +0 -2
  303. package/dist/umd/device-sardine.js.map +0 -1
  304. package/dist/umd/device-threatmetrix.js +0 -2
  305. package/dist/umd/device-threatmetrix.js.map +0 -1
  306. package/dist/umd/df83da88c151bcf97231.svg +0 -45
  307. package/dist/umd/e7ac03e5736bea4d6346.svg +0 -53
  308. package/dist/umd/e84075ff43e508e4fbd5.svg +0 -5
  309. package/dist/umd/e85b9f93aac09995bad2.svg +0 -80
  310. package/dist/umd/ef3c33f0d919896ee0bf.svg +0 -25
  311. package/dist/umd/f22fe25046b4ca4a969a.svg +0 -65
  312. package/dist/umd/f4a5163b8f91c2c66892.svg +0 -4
  313. package/dist/umd/f670207e1feb7ec4f6d4.svg +0 -5
  314. package/dist/umd/f75020be237d9de68d86.svg +0 -192
  315. package/dist/umd/fc7c8869af28cb1b9c21.svg +0 -5
  316. package/dist/umd/fdb0a109281e6c12eff6.svg +0 -75
  317. package/dist/umd/form-formio.js +0 -2
  318. package/dist/umd/form-formio.js.map +0 -1
  319. package/dist/umd/form-legacy.js +0 -2
  320. package/dist/umd/form-legacy.js.map +0 -1
  321. package/dist/umd/form-react.js +0 -2
  322. package/dist/umd/form-react.js.map +0 -1
  323. package/dist/umd/idv-incode.js +0 -2
  324. package/dist/umd/idv-incode.js.map +0 -1
  325. package/dist/umd/idv-mastercard.js +0 -2
  326. package/dist/umd/idv-mastercard.js.map +0 -1
  327. package/dist/umd/idv-ocrlabs.js +0 -2
  328. package/dist/umd/idv-ocrlabs.js.map +0 -1
  329. package/dist/umd/idv-onfido.js +0 -2
  330. package/dist/umd/idv-onfido.js.map +0 -1
  331. package/dist/umd/ocr-dummy.js +0 -2
  332. package/dist/umd/ocr-dummy.js.map +0 -1
  333. package/dist/umd/ocr-incode.js +0 -2
  334. package/dist/umd/ocr-incode.js.map +0 -1
  335. package/dist/umd/ocr-onfido.js +0 -2
  336. package/dist/umd/ocr-onfido.js.map +0 -1
  337. package/dist/umd/oneSdk.umd.js +0 -3
  338. package/dist/umd/oneSdk.umd.js.LICENSE.txt +0 -8
  339. package/dist/umd/oneSdk.umd.js.map +0 -1
package/dist/commit.txt CHANGED
@@ -1 +1 @@
1
- 0a42fe0196f0df017f79275e47007e1faf28daf0
1
+ e6f8eb1f49d89e297a122dcd3bad0f2d8ab5dcd8
@@ -1,6 +1,6 @@
1
- import type { EventHub } from '@module/common';
2
- import type { ModuleDefinition } from '@module/common/types';
3
- import type { OnfidoCustomUIProps } from '@module/common/vendors/onfido/onfido.types';
1
+ import type { EventHub } from '../common';
2
+ import type { ModuleDefinition } from '../common/types';
3
+ import type { OnfidoCustomUIProps } from '../common/vendors/onfido/onfido.types';
4
4
  import type { Events } from './events';
5
5
  import type { PartialDeep } from 'type-fest';
6
6
  export type BiometricsModule = ModuleDefinition<{
@@ -1,5 +1,5 @@
1
- import type { Document } from '@module/common/shared/models/Document';
2
- import type { IDVStatus } from '@module/frankie-client/clients/IDVClient';
1
+ import type { Document } from '../common/shared/models/Document';
2
+ import type { IDVStatus } from '../frankie-client/clients/IDVClient';
3
3
  import type { BiometricsModule } from './definition';
4
4
  type Vendor = BiometricsModule['vendorName'];
5
5
  export type Events = {
@@ -1,4 +1,4 @@
1
- import type { Events } from '@module/biometrics/events';
1
+ import type { Events } from './events';
2
2
  import type { BiometricsModule } from './definition';
3
3
  export type { Events };
4
4
  declare const _default: import("../common/types").BrandedInitialiseFunction<BiometricsModule>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAOxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,CAAC;;AAEvB,wBAmFG;AAEH,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAOxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,CAAC;;AAEvB,wBAuGE;AAEF,cAAc,cAAc,CAAC"}
@@ -5,19 +5,25 @@ import { SdkModes } from '../sdk/types/index.js';
5
5
  import { validateConfiguration } from './parseConfiguration.js';
6
6
  export default defineModule('biometrics', (globalState, options) => {
7
7
  validateConfiguration(globalState);
8
- const { globalEventHub, recipe: { biometrics }, localEventHub } = globalState;
8
+ const { globalEventHub, recipe: { biometrics }, localEventHub, } = globalState;
9
9
  // @TODO add validation check
10
10
  Object.assign(biometrics, merge(biometrics, options));
11
11
  const loadVendorWrapper = mkVendorLoader({
12
12
  // If initialising in dummy mode, force the use of the dummy-biometrics wrapper
13
13
  // otherwise load the wrapper based on the provider's name
14
- vendorName: globalState.mode.modeName === SdkModes.DUMMY ? 'dummy-biometrics' : biometrics.provider.name,
14
+ vendorName: globalState.mode.modeName === SdkModes.DUMMY
15
+ ? 'dummy-biometrics'
16
+ : biometrics.provider.name,
15
17
  sharedConfiguration: globalState,
16
18
  vendorLoader: {
17
- ocrlabs: () => import(/* webpackChunkName: 'biometrics-ocrlabs' */ './vendors/OcrLabs/index'),
18
- onfido: () => import(/* webpackChunkName: 'biometrics-onfido' */ './vendors/Onfido/index'),
19
- incode: () => import(/* webpackChunkName: 'biometrics-incode' */ './vendors/Incode/index'),
20
- 'dummy-biometrics': () => import(/* webpackChunkName: 'biometrics-dummy' */ './vendors/dummy-biometrics/index'),
19
+ ocrlabs: () => import(
20
+ /* webpackChunkName: 'biometrics-ocrlabs' */ './vendors/OcrLabs/index.js'),
21
+ onfido: () => import(
22
+ /* webpackChunkName: 'biometrics-onfido' */ './vendors/Onfido/index.js'),
23
+ incode: () => import(
24
+ /* webpackChunkName: 'biometrics-incode' */ './vendors/Incode/index.js'),
25
+ 'dummy-biometrics': () => import(
26
+ /* webpackChunkName: 'biometrics-dummy' */ './vendors/dummy-biometrics/index.js'),
21
27
  },
22
28
  });
23
29
  // Publicly exposed "mount" function
@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AC,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;gBACjC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE;oBAC/B,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;oBAC5B,KAAK;iBACN,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,+BAA+B;IAC/B,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACtC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE;QAC/B,SAAS,EAAE,oBAAoB;QAC/B,IAAI,EAAE;YACJ,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;SACvC;KACF,CAAC,CACH,CAAC;IACF,aAAa,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACxC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE;QAC/B,SAAS,EAAE,uBAAuB;QAClC,IAAI,EAAE;YACJ,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;SACtC;KACF,CAAC,CACH,CAAC;IAEF,OAAO;QACL,KAAK;KACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,cAAc,cAAc,CAAC"}
@@ -1,3 +1,3 @@
1
- import { InjectedState } from "@module/common/types";
1
+ import { InjectedState } from "../common/types";
2
2
  export declare function validateConfiguration(options: InjectedState): void;
3
3
  //# sourceMappingURL=parseConfiguration.d.ts.map
@@ -1,8 +1,8 @@
1
1
  export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
2
- eventHub: import("../../../common").EventHub<import("@module/biometrics").Events>;
2
+ eventHub: import("../../../common").EventHub<import("../..").Events>;
3
3
  mountElement: HTMLElement;
4
4
  }, void, "sync", {
5
- localEventHub: import("../../../common").EventHub<import("@module/biometrics").Events>;
5
+ localEventHub: import("../../../common").EventHub<import("../..").Events>;
6
6
  recipe: {
7
7
  biometrics: {
8
8
  provider: {
@@ -10,7 +10,7 @@ export declare const initialise: import("../../../common/types").WrapperInitiali
10
10
  tx_id: string;
11
11
  } | {
12
12
  name: "onfido";
13
- fallback?: "video" | "standard";
13
+ fallback?: "standard" | "video";
14
14
  sdkVersion?: string;
15
15
  customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
16
16
  } | {
@@ -1,6 +1,6 @@
1
1
  import './window';
2
2
  import './nolint_liveness-v3.2.0.vendor';
3
- export declare const initialise: import("@module/common/types").WrapperInitialiseFunction<{
3
+ export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
4
4
  eventHub: import("../../../common").EventHub<import("../..").Events>;
5
5
  mountElement: HTMLElement;
6
6
  }, void, "sync", {
@@ -12,7 +12,7 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
12
12
  tx_id: string;
13
13
  } | {
14
14
  name: "onfido";
15
- fallback?: "video" | "standard";
15
+ fallback?: "standard" | "video";
16
16
  sdkVersion?: string;
17
17
  customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
18
18
  } | {
@@ -1,6 +1,6 @@
1
- import type { Events } from '@module/biometrics/events';
2
- import type { EventHub } from '@module/common';
3
- export declare const initialise: import("@module/common/types").WrapperInitialiseFunction<{
1
+ import type { Events } from '../../events';
2
+ import type { EventHub } from '../../../common';
3
+ export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
4
4
  eventHub: EventHub<Events>;
5
5
  mountElement: HTMLElement;
6
6
  }, void, "sync", {
@@ -12,9 +12,9 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
12
12
  tx_id: string;
13
13
  } | {
14
14
  name: "onfido";
15
- fallback?: "video" | "standard";
15
+ fallback?: "standard" | "video";
16
16
  sdkVersion?: string;
17
- customUI?: import("@module/common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
17
+ customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
18
18
  } | {
19
19
  name: "incode";
20
20
  sdkVersion?: string;
@@ -1,7 +1,7 @@
1
- import type { Events } from '@module/biometrics/events';
2
- import type { EventHub } from '@module/common';
3
- import type { IDVClient } from '@module/frankie-client/clients/IDVClient';
4
- import type { _DictionaryWrite } from '@types';
1
+ import type { Events } from '../../events';
2
+ import type { EventHub } from '../../../common';
3
+ import type { IDVClient } from '../../../frankie-client/clients/IDVClient';
4
+ import type { _DictionaryWrite } from '../../../../types/index.js';
5
5
  /**
6
6
  * Creates a session by obtaining an entity ID, token, and vendor parameters from an IDVClient.
7
7
  * It will also emit 'session_data_generated' event to the provided event hub.
@@ -1,6 +1,6 @@
1
- import { OneSDKError } from '@module/common';
2
- import { IDVStatus } from '@module/frankie-client/clients/IDVClient';
3
- import type { RecipeParsed } from '@module/sdk/types';
1
+ import { OneSDKError } from '../../../common';
2
+ import { IDVStatus } from '../../../frankie-client/clients/IDVClient';
3
+ import type { RecipeParsed } from '../../../sdk/types';
4
4
  export type ErrorMessages = Record<'DEFAULT' | 'INIT_PROCESS' | Extract<IDVStatus, 'PROVIDER_OFFLINE' | 'WAITING_DOC_UPLOAD' | 'WAITING_SELFIE_UPLOAD'>, string>;
5
5
  export declare const mkErrors: (recipe: RecipeParsed) => (type: keyof ErrorMessages, ...payload: unknown[]) => OneSDKError<unknown[]>;
6
6
  //# sourceMappingURL=errors.d.ts.map
@@ -1,7 +1,7 @@
1
- import type { Events } from '@module/biometrics/events';
2
- import type { EventHub } from '@module/common';
3
- import type { IDVClient } from '@module/frankie-client/clients/IDVClient';
4
- import type { RecipeParsed } from '@module/sdk/types';
1
+ import type { Events } from '../../events';
2
+ import type { EventHub } from '../../../common';
3
+ import type { IDVClient } from '../../../frankie-client/clients/IDVClient';
4
+ import type { RecipeParsed } from '../../../sdk/types';
5
5
  export declare const initProcess: ({ idvClient, recipe, eventHub }: {
6
6
  idvClient: IDVClient;
7
7
  recipe: RecipeParsed;
@@ -1,4 +1,4 @@
1
- export declare const initialise: import("@module/common/types").WrapperInitialiseFunction<{
1
+ export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
2
2
  eventHub: import("../../../common").EventHub<import("../..").Events>;
3
3
  mountElement: HTMLElement;
4
4
  }, void, "sync", {
@@ -10,7 +10,7 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
10
10
  tx_id: string;
11
11
  } | {
12
12
  name: "onfido";
13
- fallback?: "video" | "standard";
13
+ fallback?: "standard" | "video";
14
14
  sdkVersion?: string;
15
15
  customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
16
16
  } | {
@@ -1,5 +1,5 @@
1
- import type { EventHub, ReadonlyAccessors } from '@module/common';
2
- import type { Organization_Profile } from '@module/common/shared/models/internal';
1
+ import type { EventHub, ReadonlyAccessors } from '../../common';
2
+ import type { Organization_Profile } from '../../common/shared/models/internal';
3
3
  import type { Events } from '..';
4
4
  type SubscribeAndEmitEventsDeps = {
5
5
  emitDataUpdatedFor: ReadonlyAccessors<unknown>[];
@@ -1,6 +1,6 @@
1
- import type { Events, InternalState } from '@module/business';
2
- import type { EventHub, ReactiveStore } from '@module/common';
3
- import type { BusinessClient } from '@module/frankie-client/clients/BusinessClient';
1
+ import type { Events, InternalState } from './..';
2
+ import type { EventHub, ReactiveStore } from '../../common';
3
+ import type { BusinessClient } from '../../frankie-client/clients/BusinessClient';
4
4
  type MkSearchDeps = {
5
5
  client: BusinessClient;
6
6
  eventHub: EventHub<Events>;
@@ -1,7 +1,7 @@
1
- import type { Events, InternalState } from '@module/business';
2
- import type { EventHub, ReactiveStore } from '@module/common';
3
- import type { DocumentType } from '@module/common/shared/models/SupportingDocument';
4
- import type { SupportingDocumentsClient } from '@module/frankie-client/clients/SupportingDocumentsClient';
1
+ import type { Events, InternalState } from './..';
2
+ import type { EventHub, ReactiveStore } from '../../common';
3
+ import type { DocumentType } from '../../common/shared/models/SupportingDocument';
4
+ import type { SupportingDocumentsClient } from '../../frankie-client/clients/SupportingDocumentsClient';
5
5
  type MkUploadDeps = {
6
6
  client: SupportingDocumentsClient;
7
7
  eventHub: EventHub<Events>;
@@ -1,7 +1,7 @@
1
- import type { AccessFunction, AccessorsDictionary } from '@module/common';
2
- import type { Entity_Documents, Organization_Name, Organization_Profile } from '@module/common/shared/models/internal';
3
- import type { DocumentType } from '@module/common/shared/models/SupportingDocument';
4
- import type { ModuleDefinition } from '@module/common/types';
1
+ import type { AccessFunction, AccessorsDictionary } from '../common';
2
+ import type { Entity_Documents, Organization_Name, Organization_Profile } from '../common/shared/models/internal';
3
+ import type { DocumentType } from '../common/shared/models/SupportingDocument';
4
+ import type { ModuleDefinition } from '../common/types';
5
5
  import type { Events } from './events';
6
6
  export type BusinessModule = ModuleDefinition<{
7
7
  module: {
@@ -1,4 +1,4 @@
1
- import type { ApplicantId } from '@module/session/SessionContext';
1
+ import type { ApplicantId } from '../session/SessionContext';
2
2
  export type Events = {
3
3
  data_loaded: [ApplicantId & {
4
4
  isPreloaded: boolean;
@@ -1,4 +1,4 @@
1
- import type { KeyOf } from '@types';
1
+ import type { KeyOf } from '../../../types/index.js';
2
2
  import type { EventHub, EventsDictionary, ExtendedEvents } from './eventHub';
3
3
  type Runnable = (...args: any[]) => any;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { KeyOf, MaybeTuple } from "@types";
1
+ import { KeyOf, MaybeTuple } from "../../../types/index.js";
2
2
  import { BehaviorSubject } from "rxjs";
3
3
  import { Accessors, ReadonlyAccessors } from "../types/Accessors";
4
4
  type ChangeDetector<T> = (a: T, b: T) => boolean;
@@ -1,4 +1,4 @@
1
- import type { BrandedInitialiseFunction, InjectedModuleParameters, ModuleDefinition, ModuleInitialiseFunction } from '@module/common/types';
1
+ import type { BrandedInitialiseFunction, InjectedModuleParameters, ModuleDefinition, ModuleInitialiseFunction } from '../types';
2
2
  /**
3
3
  * This simple function takes a module name and its initialise function and adds extra capabilities to it.
4
4
  * - It enforces the type of the module's initialise function, as defined by the Module type definition.
@@ -1,4 +1,4 @@
1
- import { GlobalEvents } from '@module/sdk/types';
1
+ import { GlobalEvents } from '../../sdk/types';
2
2
  import { EventHub } from './eventHub';
3
3
  export declare const mkErrorEmitter: (globalEventHub: EventHub<GlobalEvents>, options: unknown) => (message: string) => never;
4
4
  //# sourceMappingURL=error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/E,cAAc,SAAS,CAAC;AAexB;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,SAAS,gBAAgB,KAAK,QAAQ,CAAC,MAAM,CAAC,CAiF9E;AACD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,SAAS,QAAQ,EAAE,OAAO,EAAE,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAK5F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/E,cAAc,SAAS,CAAC;AAexB;;;GAGG;AACH,wBAAgB,UAAU,CACxB,MAAM,SAAS,gBAAgB,KAC5B,QAAQ,CAAC,MAAM,CAAC,CAqGpB;AACD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,SAAS,QAAQ,EAClD,OAAO,EAAE,GAAG,GACX,mBAAmB,CAAC,GAAG,CAAC,CAK1B"}
@@ -1,6 +1,6 @@
1
1
  import EE from 'event-emitter';
2
- import allOff from 'event-emitter/all-off';
3
- import hasListeners from 'event-emitter/has-listeners';
2
+ import allOff from 'event-emitter/all-off.js';
3
+ import hasListeners from 'event-emitter/has-listeners.js';
4
4
  import { feat } from '../../../features.config.js';
5
5
  export * from './types.js';
6
6
  //TODO: Add method "breed", or "child" to generate a new event hub which reference is kept and can be used for cascading the "off" method
@@ -33,7 +33,9 @@ export function mkEventHub() {
33
33
  const skippedStacks = 2;
34
34
  const stackTrace = getStackTrace(skippedStacks);
35
35
  const argsWithStack = stackTrace ? [...args, stackTrace] : args;
36
- const wildcardArgsWithStack = stackTrace ? [wildcardArgs, stackTrace] : [wildcardArgs];
36
+ const wildcardArgsWithStack = stackTrace
37
+ ? [wildcardArgs, stackTrace]
38
+ : [wildcardArgs];
37
39
  originalEmit(eventName, ...argsWithStack);
38
40
  originalEmit('*', ...wildcardArgsWithStack);
39
41
  };
@@ -48,7 +50,9 @@ export function mkEventHub() {
48
50
  */
49
51
  const off = (eventName, listener) => {
50
52
  const wasArrayProvided = Array.isArray(eventName);
51
- const eventNamesArray = wasArrayProvided ? eventName : [eventName];
53
+ const eventNamesArray = wasArrayProvided
54
+ ? eventName
55
+ : [eventName];
52
56
  if (eventName && listener) {
53
57
  eventNamesArray.forEach((eventName) => originalOff(eventName, listener));
54
58
  }
@@ -61,7 +65,9 @@ export function mkEventHub() {
61
65
  * TODO: Return a "EventReference" object to allow caller to unplug all the event listeners mapped by this method at once and prevent memory leaks easily
62
66
  */
63
67
  const on = (eventNames, callback) => {
64
- const eventNamesArray = Array.isArray(eventNames) ? eventNames : [eventNames];
68
+ const eventNamesArray = Array.isArray(eventNames)
69
+ ? eventNames
70
+ : [eventNames];
65
71
  eventNamesArray.forEach((eventName) => originalOn(eventName, callback));
66
72
  return {
67
73
  cleanup: () => {
@@ -78,7 +84,9 @@ export function mkEventHub() {
78
84
  // emit the provided proxyEventName in the proxied eventHub, OR
79
85
  // emit the same eventName in the proxied eventHub, if no proxyEventName is provided
80
86
  const wasArrayProvided = Array.isArray(eventNames);
81
- const eventNamesArray = wasArrayProvided ? eventNames : [eventNames];
87
+ const eventNamesArray = wasArrayProvided
88
+ ? eventNames
89
+ : [eventNames];
82
90
  eventNamesArray.forEach((eventName) => {
83
91
  const proxiedEventName = proxyEventName !== null && proxyEventName !== void 0 ? proxyEventName : eventName;
84
92
  on(eventName, (...args) => proxyEventHub.emit(proxiedEventName, ...args));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,eAAe,CAAC;AACjD,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAItC,cAAc,SAAS,CAAC;AAExB,yIAAyI;AACzI,iJAAiJ;AACjJ,sIAAsI;AAEtI;;GAEG;AAEH,iEAAiE;AACjE,gEAAgE;AAChE,MAAM,OAAO,GAAG,cAAa,CAAC,CAAC;AAC/B,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAEtB;;;GAGG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,OAAO,GAAY,IAAI,OAAO,EAAE,CAAC;IAEvC,wGAAwG;IACxG,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,UAAU,GAAG,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE5C;;;;OAIG;IACH,MAAM,IAAI,GAAG,CAAC,SAAiB,EAAE,GAAG,IAAe,EAAE,EAAE;QACrD,MAAM,YAAY,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAEpD,MAAM,aAAa,GAAG,CAAC,CAAC;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IAEF,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;QAC5B,EAAE;QACF,IAAI;QACJ,eAAe;QACf,GAAG;QACH,GAAG;KACgB,CAAC,CAAC;AACzB,CAAC;AACD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAY;IAEZ,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;QAC5B,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;KAC/B,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAmB,EAAE;;IACtD,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAAE,OAAO,IAAI,CAAC;IACpD,IAAI,CAAC;QACH,MAAM,IAAI,KAAK,EAAE,CAAC;IACpB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,0DAA0D;QAC1D,OAAO,MAAA,CAAC,CAAC,KAAK,0CACV,KAAK,CAAC,IAAI,EACX,KAAK,CAAC,IAAI,EACV,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACxC,CAAC;AACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { OneSDKError } from '@module/common/errors/OneSDKError.class';
2
- import type { KeyOf, Override } from '@types';
1
+ import type { OneSDKError } from '../../errors/OneSDKError.class';
2
+ import type { KeyOf, Override } from '../../../../types/index.js';
3
3
  type DefaultEvents = {
4
4
  error: [OneSDKError];
5
5
  warning: [{
@@ -1,4 +1,4 @@
1
- import type { KeyOf } from '@types';
1
+ import type { KeyOf } from '../../../../types/index.js';
2
2
  import type { EventsDictionary, EventHub } from './types';
3
3
  /**
4
4
  * This function is used to create an event hub that listens to events emitted by the window object.
@@ -1 +1 @@
1
- {"version":3,"file":"windowEventHub.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAuB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;;;EAsCpG"}
1
+ {"version":3,"file":"windowEventHub.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAuB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,gBAAgB,EAC9D,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;;;EA0CpC"}
@@ -1,5 +1,5 @@
1
1
  import { OneSDKError } from '../../errors/OneSDKError.class.js';
2
- import { mkEventHub, mkEventListener } from '.';
2
+ import { mkEventHub, mkEventListener } from './index.js';
3
3
  /**
4
4
  * This function is used to create an event hub that listens to events emitted by the window object.
5
5
  * This function will convert Error objects into OneSDKError objects.
@@ -18,7 +18,9 @@ export function mkWindowEventHub(autoEmitEventNames) {
18
18
  };
19
19
  autoEmitEventNames.forEach((eventName) => addEventListener(eventName, (customEvent) => {
20
20
  const detail = customEvent.detail;
21
- const data = detail instanceof Error ? new OneSDKError(detail.message, detail) : detail;
21
+ const data = detail instanceof Error
22
+ ? new OneSDKError(detail.message, detail)
23
+ : detail;
22
24
  emitToEventHub(eventName, data);
23
25
  }));
24
26
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"windowEventHub.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,E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C,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE,eAAe,CAAC,YAAY,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,wBAAwB,GAAG,CAAC,EAAY,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAGzD,CAAC"}
1
+ {"version":3,"file":"windowEventHub.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIzD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,kBAAmC;IAInC,MAAM,SAAS,GAEX,EAAE,CAAC;IAEP,MAAM,YAAY,GAAG,UAAU,EAAU,CAAC;IAC1C,MAAM,cAAc,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC;IAE9D,MAAM,gBAAgB,GAAG,CACvB,SAAiB,EACjB,QAAwC,EACxC,EAAE;;QACF,MAAA,SAAS,CAAC,SAAS,qCAAnB,SAAS,CAAC,SAAS,IAAM,EAAE,EAAC;QAC5B,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC;IACF,kBAAkB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CACvC,gBAAgB,CAAC,SAAS,EAAE,CAAC,WAAW,EAAE,EAAE;QAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAClC,MAAM,IAAI,GACR,MAAM,YAAY,KAAK;YACrB,CAAC,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,CAAC,CAAC,MAAM,CAAC;QAEb,cAAc,CAAC,SAAmD,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC,CAAC,CACH,CAAC;IAEF,OAAO;QACL,OAAO;YACL,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE;gBAC3D,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAC7B,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE,eAAe,CAAC,YAAY,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,wBAAwB,GAAG,CAAC,EAAY,EAAE,EAAE,CAChD,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAwC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Dictionary } from "@types";
1
+ import { Dictionary } from "../../../types/index.js";
2
2
  export declare function deepFreeze<T>(inObj: T): T;
3
3
  export declare const isNullish: <T>(v: T) => v is Exclude<T, null>;
4
4
  export type Clonable<T = unknown> = {
@@ -1,7 +1,7 @@
1
- import type { Modules } from '@config';
2
- import type { ModuleDefinition } from '@module/common/types';
3
- import { type InjectedState } from '@module/common/types';
4
- import type { Dictionary } from '@types';
1
+ import type { Modules } from '../../config/index.js';
2
+ import type { ModuleDefinition } from '../types';
3
+ import { type InjectedState } from '../types';
4
+ import type { Dictionary } from '../../../types/index.js';
5
5
  import type { EventHub } from './eventHub';
6
6
  /**
7
7
  * Helper Closure function that defines a common logic to load and initialise vendor wrappers
@@ -1,4 +1,4 @@
1
- import { ActivityType } from '@module/device';
1
+ import { ActivityType } from '../../../device';
2
2
  export type DeviceCheckType = 'DEVICE' | 'BIOMETRIC';
3
3
  export type DeviceActivityType = 'SIGNUP' | 'LOGIN' | 'PAYMENT' | 'CONFIRMATION' | ActivityType;
4
4
  export interface DeviceCheckDetails {
@@ -1,4 +1,4 @@
1
- import { Dictionary } from "@types";
1
+ import { Dictionary } from "../../../../types/index.js";
2
2
  import { RiskLevel } from "./ApplicantSummary";
3
3
  import { TAssociationRole } from "./AssociatedParty";
4
4
  import { Nullable } from "./general";
@@ -468,7 +468,7 @@ export type PassedStatusCodes = "PASS" | "FAIL" | "WARN" | null;
468
468
  export declare class PassedStatus extends Badge {
469
469
  constructor(code: PassedStatusCodes);
470
470
  get label(): ComposedLabel;
471
- get type(): "fail" | "success" | "warn";
471
+ get type(): "success" | "fail" | "warn";
472
472
  }
473
473
  export declare class AdverseMediaStatus extends Badge {
474
474
  constructor(code: "NO_MATCH" | "POT_MATCH" | null);
@@ -478,7 +478,7 @@ export declare class AdverseMediaStatus extends Badge {
478
478
  export declare class KYCStatus extends Badge {
479
479
  constructor(code: PassedStatusCodes);
480
480
  get label(): string;
481
- get type(): "fail" | "success" | "warn";
481
+ get type(): "success" | "fail" | "warn";
482
482
  }
483
483
  export {};
484
484
  //# sourceMappingURL=UBOData.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Dictionary, KeyOf } from "@types";
1
+ import { Dictionary, KeyOf } from "../../../types/index.js";
2
2
  import { Observable, Subject } from "rxjs";
3
3
  import { ReadonlyKeys } from "ts-toolbelt/out/Object/ReadonlyKeys";
4
4
  /**
@@ -1,9 +1,9 @@
1
- import type { EventHub } from '@module/common';
2
- import type { FrankieApiClient } from '@module/frankie-client';
3
- import type { SimplifiedMockOptions } from '@module/frankie-client/mocks/options/simplified/SimplifiedMockOptions.type';
4
- import type { GlobalEvents, OneSdkContext, RecipeParsed, SdkModes } from '@module/sdk/types';
5
- import type { SessionContext } from '@module/session/SessionContext';
6
- import type { Modules } from '@module/types';
1
+ import type { EventHub } from '../..';
2
+ import type { FrankieApiClient } from '../../../frankie-client';
3
+ import type { SimplifiedMockOptions } from '../../../frankie-client/mocks/options/simplified/SimplifiedMockOptions.type';
4
+ import type { GlobalEvents, OneSdkContext, RecipeParsed, SdkModes } from '../../../sdk/types';
5
+ import type { SessionContext } from '../../../session/SessionContext';
6
+ import type { Modules } from '../../../types';
7
7
  import type { ModuleCategory } from './categories';
8
8
  /**
9
9
  * ModuleBaseParameters
@@ -1,4 +1,4 @@
1
- import { CommonEvents, EventListener, EventsDictionary } from "@module/common";
1
+ import { CommonEvents, EventListener, EventsDictionary } from "../..";
2
2
  /**
3
3
  * Module context represents an instance of a module. It is the result of calling the initialise function of that module.
4
4
  * Both "Component" and "Flow" are instances of a module which are created by their respective factory functions. The factory function will:
@@ -1,5 +1,5 @@
1
- import type { EventHub, EventsDictionary } from '@module/common/modules/eventHub';
2
- import type { Dictionary, EmptyObject, Field } from '@types';
1
+ import type { EventHub, EventsDictionary } from '../../modules/eventHub';
2
+ import type { Dictionary, EmptyObject, Field } from '../../../../types/index.js';
3
3
  import type { ModuleCategory } from './categories';
4
4
  import type { ModuleContext, ModuleInstance } from './contextObject';
5
5
  import type { ModuleInitialiseFunction } from './initialiseFunction';
@@ -1,5 +1,5 @@
1
- import type { ModuleDefinition } from '@module/common/types/oneSDKModules/definition.types';
2
- import type { Branded, Dictionary } from '@types';
1
+ import type { ModuleDefinition } from './definition.types';
2
+ import type { Branded, Dictionary } from '../../../../types/index.js';
3
3
  import type { BaseParameters } from './baseParameters.types';
4
4
  import type { ModuleCategory } from './categories';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { Dictionary, KeyOf, NOP, ParameterCount } from '@types';
1
+ import type { Dictionary, KeyOf, NOP, ParameterCount } from '../../../../types/index.js';
2
2
  import type { ModuleCategory, ModuleCategoryMapping } from './categories';
3
3
  import type { ModuleContext } from './contextObject';
4
4
  import type { ModuleDefinition } from './definition.types';
@@ -1,4 +1,4 @@
1
- import { Dictionary } from "@types";
1
+ import { Dictionary } from "../../../../types/index.js";
2
2
  import { InjectedState } from "../oneSDKModules";
3
3
  /**
4
4
  * Definition for a vendor wrapper initialise function. This is the function that is whats exported by all vendor wrappers.
@@ -1,8 +1,8 @@
1
- import type { BiometricsModule } from '@module/biometrics';
2
- import type { FormModule } from '@module/form/definition';
3
- import type { IDVModule } from '@module/idv/definition.types';
4
- import type { OCRModule } from '@module/ocr';
5
- import type { WorkflowModule } from '@module/workflow/definition.types';
1
+ import type { BiometricsModule } from '../../biometrics';
2
+ import type { FormModule } from '../../form/definition';
3
+ import type { IDVModule } from '../../idv/definition.types';
4
+ import type { OCRModule } from '../../ocr';
5
+ import type { WorkflowModule } from '../../workflow/definition.types';
6
6
  import type { ProfileTypeEnumerated } from '../shared/models/Profile';
7
7
  import type { PartialDeep } from 'type-fest';
8
8
  export type RecipeConfiguration = PartialDeep<RecipeNameConfiguration & BiometricsModule['recipeConfiguration'] & DeviceRecipeConfiguration & IDVModule['recipeConfiguration'] & OCRModule['recipeConfiguration'] & FederationRecipeConfiguration & FormModule['recipeConfiguration'] & WorkflowModule['recipeConfiguration']>;
@@ -1,5 +1,5 @@
1
- import type { Document } from '@module/common/shared/models/Document';
2
- import type { FormModule } from '@module/form/definition';
1
+ import type { Document } from '../../shared/models/Document';
2
+ import type { FormModule } from '../../../form/definition';
3
3
  /**
4
4
  * Convert the Form execution into a promise. This function will mount the
5
5
  * Form and wait for user completion, resulting in a Document object
@@ -1,7 +1,7 @@
1
- import { OneSDKError } from '@module/common/errors/OneSDKError.class';
2
- import type { EventHub } from '@module/common/modules/eventHub';
3
- import type { Document } from '@module/common/shared/models/Document';
4
- import type { OneSdkContext } from '@module/types';
1
+ import { OneSDKError } from '../../errors/OneSDKError.class';
2
+ import type { EventHub } from '../../modules/eventHub';
3
+ import type { Document } from '../../shared/models/Document';
4
+ import type { OneSdkContext } from '../../../types';
5
5
  type IDVResults = {
6
6
  document: Document;
7
7
  entityId: string;
@@ -1,7 +1,7 @@
1
- import type { Events as BiometricsEvents } from '@module/biometrics';
2
- import type { EventHub } from '@module/common';
3
- import type { IncodeResponse } from '@module/common/vendors/incode/onBoarding.types';
4
- import type { Events as OcrEvents } from '@module/ocr';
1
+ import type { Events as BiometricsEvents } from '../../../biometrics';
2
+ import type { EventHub } from '../..';
3
+ import type { IncodeResponse } from './onBoarding.types';
4
+ import type { Events as OcrEvents } from '../../../ocr';
5
5
  /**
6
6
  * Creates event handlers for a given EventHub.
7
7
  *