@adyen/kyc-components 3.0.0-beta.19 → 3.0.0-beta.2

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 (223) hide show
  1. package/README.md +9 -9
  2. package/dist/es/{HK-675b8651.mjs → HK-0561cac3.mjs} +6 -0
  3. package/dist/es/NZ-12ed2cb9.mjs +47 -0
  4. package/dist/es/adyen-kyc-components.es.js +17501 -19331
  5. package/dist/mockServiceWorker.js +302 -0
  6. package/dist/style.css +3482 -3682
  7. package/dist/types/components/Company/component/CompanyComponent.d.ts +7 -6
  8. package/dist/types/components/Company/types.d.ts +10 -4
  9. package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +5 -0
  10. package/dist/types/components/{CompanyRegistrationDetails → CompanyDetails}/types.d.ts +3 -3
  11. package/dist/types/components/CompanyDetails/validate.d.ts +3 -0
  12. package/dist/types/components/CompanyNameAndCountry/types.d.ts +0 -1
  13. package/dist/types/components/DocumentUpload/types.d.ts +1 -2
  14. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  15. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
  16. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
  17. package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -0
  18. package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +1 -1
  19. package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +0 -3
  20. package/dist/types/components/Dropins/types.d.ts +4 -4
  21. package/dist/types/components/EmbeddedDropins/PayoutEmbeddedDropin/PayoutEmbeddedDropin.d.ts +10 -0
  22. package/dist/types/components/IdDocumentUpload/types.d.ts +3 -5
  23. package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +1 -1
  24. package/dist/types/components/IdVerification/types.d.ts +0 -1
  25. package/dist/types/components/Individual/rules.d.ts +0 -1
  26. package/dist/types/components/PayoutAccount/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +0 -2
  27. package/dist/types/components/PayoutAccount/types.d.ts +2 -3
  28. package/dist/types/components/PayoutBankStatement/types.d.ts +1 -2
  29. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -2
  30. package/dist/types/components/PayoutDetails/types.d.ts +2 -4
  31. package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
  32. package/dist/types/components/PersonalDetails/component/IdentityComponent/{TypeOfIdentity/types.d.ts → IdentityAu/additionalIdentityInfoSchema.d.ts} +0 -1
  33. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/DriversLicense.d.ts +1 -1
  34. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/IdentityAuComponent.d.ts +2 -2
  35. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/ProofOfIdentityCard.d.ts +1 -1
  36. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/TypeOfIdentity.d.ts +12 -0
  37. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/types.d.ts +10 -0
  38. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/validate.d.ts +2 -2
  39. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityHK/additionalIdentityInfoSchema.d.ts +8 -0
  40. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityHK/component/IdentityHKComponent.d.ts +2 -2
  41. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityHK/component/TypeOfIdentity.d.ts +12 -0
  42. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityHK/types.d.ts +10 -0
  43. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityHK/validate.d.ts +2 -2
  44. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/additionalIdentityInfoSchema.d.ts +7 -0
  45. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/DriversLicense.d.ts +1 -1
  46. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/IdentityNZComponent.d.ts +2 -2
  47. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/TypeOfIdentity.d.ts +12 -0
  48. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/types.d.ts +10 -0
  49. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/validate.d.ts +2 -2
  50. package/dist/types/components/PersonalDetails/component/IdentityComponent/index.d.ts +2 -2
  51. package/dist/types/components/PersonalDetails/types.d.ts +2 -2
  52. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  53. package/dist/types/components/SoleProp/types.d.ts +4 -4
  54. package/dist/types/components/TaskIntros/TaskIntro.d.ts +2 -2
  55. package/dist/types/components/TaskIntros/types.d.ts +1 -1
  56. package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +2 -2
  57. package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +1 -2
  58. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  59. package/dist/types/components/TaskList/types.d.ts +2 -11
  60. package/dist/types/components/TrustMembers/component/RootTrusteeTaskItem.d.ts +1 -2
  61. package/dist/types/components/TrustMembers/types.d.ts +3 -7
  62. package/dist/types/components/TrustRegistrationDetails/types.d.ts +4 -9
  63. package/dist/types/components/TrustRoleAndEntityType/convertExistingTrustMember.d.ts +1 -2
  64. package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +0 -2
  65. package/dist/types/components/TrustRoleAndEntityType/types.d.ts +0 -10
  66. package/dist/types/components/UenOrGst/types.d.ts +9 -0
  67. package/dist/types/components/index.d.ts +2 -4
  68. package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +1 -1
  69. package/dist/types/components/internal/AccordionItem/types.d.ts +2 -3
  70. package/dist/types/components/internal/AccountHolder/types.d.ts +1 -2
  71. package/dist/types/components/internal/Address/Address.d.ts +1 -1
  72. package/dist/types/components/internal/Address/constants.d.ts +2 -2
  73. package/dist/types/components/internal/Address/types.d.ts +3 -10
  74. package/dist/types/components/internal/Address/utils.d.ts +2 -2
  75. package/dist/types/components/internal/Alert/Alert.d.ts +4 -2
  76. package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +2 -0
  77. package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +1 -1
  78. package/dist/types/components/internal/Alert/index.d.ts +1 -1
  79. package/dist/types/components/internal/Alert/types.d.ts +0 -3
  80. package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -4
  81. package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +0 -2
  82. package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +4 -5
  83. package/dist/types/components/internal/Button/types.d.ts +2 -2
  84. package/dist/types/components/internal/Card/Card.d.ts +1 -1
  85. package/dist/types/components/internal/Card/types.d.ts +0 -2
  86. package/dist/types/components/internal/CountryField/CountryField.d.ts +2 -2
  87. package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +2 -3
  88. package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +6 -2
  89. package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +1 -2
  90. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +1 -1
  91. package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +2 -2
  92. package/dist/types/components/internal/LegalCompanyNameField/LegalCompanyNameField.d.ts +3 -2
  93. package/dist/types/components/internal/LegalCompanyNameField/types.d.ts +4 -1
  94. package/dist/types/components/internal/Remove/Remove.d.ts +1 -1
  95. package/dist/types/components/internal/Remove/types.d.ts +4 -6
  96. package/dist/types/components/internal/StateField/StateField.d.ts +2 -2
  97. package/dist/types/components/internal/Status/Status.d.ts +1 -1
  98. package/dist/types/components/internal/Status/types.d.ts +0 -2
  99. package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
  100. package/dist/types/components/internal/Summary/types.d.ts +1 -3
  101. package/dist/types/components/internal/TaxId/types.d.ts +0 -1
  102. package/dist/types/core/Context/AuthContext/AuthContext.d.ts +1 -0
  103. package/dist/types/core/Context/AuthContext/AuthProvider.d.ts +2 -5
  104. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -3
  105. package/dist/types/core/Context/ConfigurationApiContext/getEmbeddedApi.d.ts +2 -1
  106. package/dist/types/core/Context/CoreContext.d.ts +1 -0
  107. package/dist/types/core/Context/CoreProvider.d.ts +2 -2
  108. package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -14
  109. package/dist/types/core/Context/SettingsContext/types.d.ts +10 -14
  110. package/dist/types/core/Context/StateContext/types.d.ts +0 -1
  111. package/dist/types/core/SDKValidation/index.d.ts +1 -1
  112. package/dist/types/core/Services/auth/refresh-sdkToken.d.ts +6 -0
  113. package/dist/types/core/Services/componentApi/create-document.d.ts +2 -2
  114. package/dist/types/core/Services/componentApi/get-document.d.ts +2 -2
  115. package/dist/types/core/Services/componentApi/index.d.ts +1 -2
  116. package/dist/types/core/Services/componentApi/update-document.d.ts +2 -2
  117. package/dist/types/core/Services/http.d.ts +0 -1
  118. package/dist/types/core/Services/kycExternalApi/company-deep-search.d.ts +4 -2
  119. package/dist/types/core/Services/kycExternalApi/company-index-search.d.ts +4 -2
  120. package/dist/types/core/Services/kycExternalApi/get-company-data.d.ts +4 -2
  121. package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -1
  122. package/dist/types/core/Services/kycExternalApi/refresh-company-data.d.ts +4 -2
  123. package/dist/types/core/Services/kycExternalApi/verify-tin.d.ts +4 -2
  124. package/dist/types/core/Services/types.d.ts +2 -1
  125. package/dist/types/core/Services/utils.d.ts +1 -11
  126. package/dist/types/core/core.d.ts +1 -2
  127. package/dist/types/core/errorMapping.d.ts +0 -2
  128. package/dist/types/core/hooks/useComponentApi.d.ts +5 -7
  129. package/dist/types/core/hooks/useForm/types.d.ts +8 -26
  130. package/dist/types/core/hooks/useForm/useForm.d.ts +1 -2
  131. package/dist/types/core/hooks/useForm/utils.d.ts +1 -12
  132. package/dist/types/core/hooks/useFormComposer.d.ts +4 -3
  133. package/dist/types/core/hooks/useIdVerificationToken.d.ts +1 -2
  134. package/dist/types/core/hooks/useSdkToken.d.ts +5 -0
  135. package/dist/types/core/hooks/useShouldShowGuidanceIntros.d.ts +7 -0
  136. package/dist/types/core/models/api/accountIdentification.d.ts +1 -1
  137. package/dist/types/core/models/api/address-search.d.ts +0 -9
  138. package/dist/types/core/models/api/attachment.d.ts +2 -3
  139. package/dist/types/core/models/api/company-search.d.ts +22 -18
  140. package/dist/types/core/models/api/document.d.ts +1 -7
  141. package/dist/types/core/models/api/individual.d.ts +0 -1
  142. package/dist/types/core/models/api/instant-id-verification.d.ts +0 -1
  143. package/dist/types/core/models/api/legal-arrangement.d.ts +3 -4
  144. package/dist/types/core/models/api/legal-entity.d.ts +0 -1
  145. package/dist/types/core/models/api/organization.d.ts +8 -7
  146. package/dist/types/core/models/api/transfer-instrument.d.ts +0 -5
  147. package/dist/types/core/models/api/trust-types-value.d.ts +1 -1
  148. package/dist/types/core/models/country-code.d.ts +1 -1
  149. package/dist/types/core/models/country-config.d.ts +0 -1
  150. package/dist/types/core/models/currency.d.ts +0 -1
  151. package/dist/types/core/models/errors/capability-problems.d.ts +1 -1
  152. package/dist/types/core/models/errors/validation-error.d.ts +0 -5
  153. package/dist/types/core/models/identity.d.ts +1 -4
  154. package/dist/types/core/models/payout-account.d.ts +1 -1
  155. package/dist/types/core/models/state-code.d.ts +1 -32
  156. package/dist/types/core/process-field-configurations.d.ts +1 -1
  157. package/dist/types/core/types.d.ts +1 -2
  158. package/dist/types/language/config.d.ts +31 -100
  159. package/dist/types/openbankingsdk/OpenBankingSDK.d.ts +14 -0
  160. package/dist/types/openbankingsdk/types.d.ts +22 -0
  161. package/dist/types/utils/accountHolderUtils.d.ts +2 -2
  162. package/dist/types/utils/api/documentUtils.d.ts +14 -15
  163. package/dist/types/utils/api/processCapabilitites.d.ts +53 -2
  164. package/dist/types/utils/company-util.d.ts +2 -4
  165. package/dist/types/utils/decision-maker-roles.d.ts +1 -1
  166. package/dist/types/utils/entity-status-util.d.ts +2 -2
  167. package/dist/types/utils/formUtils.d.ts +3 -12
  168. package/dist/types/utils/get-task-status.d.ts +3 -4
  169. package/dist/types/utils/mapping/componentApiMapping.d.ts +27 -29
  170. package/dist/types/utils/mapping/mapping.d.ts +3 -7
  171. package/dist/types/utils/mapping/trustMembers/getTrustMembers.d.ts +0 -1
  172. package/dist/types/utils/mapping/utils.d.ts +0 -1
  173. package/dist/types/utils/payout-account-util.d.ts +0 -6
  174. package/dist/types/utils/regex/index.d.ts +0 -1
  175. package/dist/types/utils/regex/types.d.ts +0 -5
  176. package/dist/types/utils/trust-util.d.ts +1 -4
  177. package/dist/types/utils/trustMembers/handlers/addOrUpdateAssociatedTrustMember.d.ts +1 -6
  178. package/dist/types/utils/trustMembers/handlers/createExemptSettlor.d.ts +0 -4
  179. package/dist/types/utils/trustMembers/handlers/updateExemptSettlorName.d.ts +0 -4
  180. package/dist/types/utils/validation/types.d.ts +1 -2
  181. package/dist/types/utils/validatorUtils.d.ts +0 -5
  182. package/package.json +19 -21
  183. package/dist/es/NZ-d7a003bc.mjs +0 -24
  184. package/dist/types/components/AccountSetupRejected/component/AccountSetupRejected.d.ts +0 -2
  185. package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +0 -16
  186. package/dist/types/components/BusinessTypeSelection/types.d.ts +0 -34
  187. package/dist/types/components/Company/index.d.ts +0 -1
  188. package/dist/types/components/CompanyRegistrationDetails/component/CompanyRegistrationDetailsComponent.d.ts +0 -4
  189. package/dist/types/components/CompanyRegistrationDetails/index.d.ts +0 -1
  190. package/dist/types/components/CompanyRegistrationDetails/validate.d.ts +0 -30
  191. package/dist/types/components/Dropins/CompanyDropin/types.d.ts +0 -9
  192. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/AddTransferInstrument/AddTransferInstrument.d.ts +0 -4
  193. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +0 -11
  194. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +0 -12
  195. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +0 -12
  196. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemSummary/ManageTransferInstrumentOverviewItemSummary.d.ts +0 -8
  197. package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +0 -11
  198. package/dist/types/components/PersonalDetails/component/IdentityComponent/TypeOfIdentity/index.d.ts +0 -10
  199. package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +0 -16
  200. package/dist/types/components/Trust/rules.d.ts +0 -3
  201. package/dist/types/components/internal/Summary/index.d.ts +0 -1
  202. package/dist/types/core/Services/componentApi/delete-transferInstrument.d.ts +0 -3
  203. package/dist/types/core/Services/componentApi/get-allowed-locales.d.ts +0 -3
  204. package/dist/types/core/Services/componentApi/get-supported-countries.d.ts +0 -3
  205. package/dist/types/core/Services/componentApi/get-transfer-instruments.d.ts +0 -3
  206. package/dist/types/core/Services/kycExternalApi/account-identification.d.ts +0 -4
  207. package/dist/types/core/Services/session.d.ts +0 -5
  208. package/dist/types/core/hooks/taskIntros.d.ts +0 -10
  209. package/dist/types/core/hooks/useAccountHolder.d.ts +0 -2
  210. package/dist/types/core/hooks/useAllowedCountries.d.ts +0 -2
  211. package/dist/types/core/hooks/useAsyncAccountDetailsValidationRules.d.ts +0 -3
  212. package/dist/types/core/hooks/useBusinessSetup.d.ts +0 -16
  213. package/dist/types/core/hooks/useBusinessTypeSelection.d.ts +0 -2
  214. package/dist/types/core/hooks/useDataMissingRemediations.d.ts +0 -18
  215. package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +0 -1
  216. package/dist/types/core/hooks/useInterval.d.ts +0 -4
  217. package/dist/types/core/models/api/transfer-instrument-reference.d.ts +0 -9
  218. package/dist/types/core/models/file.d.ts +0 -8
  219. package/dist/types/utils/formatting/stripNonAlphanumeric.d.ts +0 -1
  220. package/dist/types/utils/isValueMasked.d.ts +0 -1
  221. package/dist/types/utils/omitMaskedFieldsIfUnchanged.d.ts +0 -2
  222. package/dist/types/utils/regex/trustRegistrationNumberPatterns.d.ts +0 -2
  223. /package/dist/types/core/Services/componentApi/{get-transfer-instrument.d.ts → get-transfer-intsrument.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import './CompanyComponent.scss';
2
- import { CompanyRegistrationDetailsSchema } from '../../CompanyRegistrationDetails/types';
1
+ import '../Company.scss';
2
+ import { CompanyDetailsSchema } from '../../CompanyDetails/types';
3
3
  import { CompanyTypeSchema } from '../../CompanyType/types';
4
4
  import { CompanyProps } from '../types';
5
5
  export declare const companyForms: {
@@ -13,10 +13,10 @@ export declare const companyForms: {
13
13
  readonly formName: "companyStructure";
14
14
  readonly fields: (keyof CompanyTypeSchema)[];
15
15
  };
16
- readonly companyRegistrationDetails: {
17
- readonly formId: "companyRegistrationDetails";
16
+ readonly companyDetails: {
17
+ readonly formId: "companyDetails";
18
18
  readonly formName: "registrationDetails";
19
- readonly fields: (keyof CompanyRegistrationDetailsSchema)[];
19
+ readonly fields: (keyof CompanyDetailsSchema)[];
20
20
  };
21
21
  readonly companyRegistrationAddress: {
22
22
  readonly formId: "companyRegistrationAddress";
@@ -35,4 +35,5 @@ export declare const companyForms: {
35
35
  };
36
36
  };
37
37
  export declare const companyDocumentForms: ("companyRegistrationDocument" | "companyTaxDocument")[];
38
- export declare function CompanyComponent(props: CompanyProps): import("preact").JSX.Element;
38
+ declare function CompanyComponent(props: CompanyProps): import("preact").JSX.Element;
39
+ export default CompanyComponent;
@@ -1,15 +1,17 @@
1
1
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
+ import type { LegalEntity } from '../../core/models/api/legal-entity';
2
3
  import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
3
4
  import type { CountryCode } from '../../core/models/country-code';
4
5
  import type { FormModel } from '../../core/models/form';
6
+ import type { CompanyDetailsSchema } from '../CompanyDetails/types';
5
7
  import type { CompanyNameAndCountrySchema } from '../CompanyNameAndCountry/types';
6
- import type { CompanyRegistrationDetailsSchema } from '../CompanyRegistrationDetails/types';
7
8
  import type { CompanyTypeSchema } from '../CompanyType/types';
8
9
  import type { DocumentUploadSchema } from '../DocumentUpload/types';
9
- import type { DropinAPIHandlers } from '../Dropins/types';
10
+ import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
10
11
  import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
12
+ import type { TrustMember } from '../TrustMembers/types';
11
13
  export interface CompanySchema {
12
- companyRegistrationDetails?: CompanyRegistrationDetailsSchema;
14
+ companyDetails?: CompanyDetailsSchema;
13
15
  companyType?: CompanyTypeSchema;
14
16
  companyRegistrationAddress?: RegistrationAddressSchema;
15
17
  companyNameAndCountry?: CompanyNameAndCountrySchema;
@@ -26,5 +28,9 @@ export interface CompanyProps extends BaseOuterFormProps<CompanySchema> {
26
28
  onSubmit?: (company: CompanySchema) => void;
27
29
  handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
28
30
  handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
29
- isTopLevelEntity: boolean;
31
+ }
32
+ export interface CompanyDropinProps extends CompanyProps, DropinAPIHandlers, DropinProps {
33
+ parentLegalEntity?: LegalEntity;
34
+ associationDetail?: TrustMember;
35
+ isTargetLegalEntityType?: boolean;
30
36
  }
@@ -0,0 +1,5 @@
1
+ import './CompanyDetailsComponent.scss';
2
+ import { CompanyDetailsProps, CompanyDetailsSchema } from '../types';
3
+ export declare const companyDetailFields: Array<keyof CompanyDetailsSchema>;
4
+ declare function CompanyDetailsComponent(props: CompanyDetailsProps): import("preact").JSX.Element;
5
+ export default CompanyDetailsComponent;
@@ -4,15 +4,15 @@ import { CountryCode } from '../../core/models/country-code';
4
4
  import { BusinessRegistrationNumberSchema } from '../internal/BusinessRegistrationNumber/types';
5
5
  import { TaxIdSchema } from '../internal/TaxId/types';
6
6
  import { VatNumberSchema } from '../internal/VatNumber/types';
7
- export interface CompanyRegistrationDetailsSchema extends BusinessRegistrationNumberSchema, TaxIdSchema, VatNumberSchema {
7
+ export interface CompanyDetailsSchema extends BusinessRegistrationNumberSchema, TaxIdSchema, VatNumberSchema {
8
8
  tradingName?: string;
9
9
  sameNameAsLegalName?: boolean;
10
10
  stockExchangeMIC?: string;
11
11
  stockISIN?: string;
12
12
  dateOfIncorporation?: string;
13
- isUen?: boolean;
13
+ uenOrGst?: string;
14
14
  }
15
- export interface CompanyRegistrationDetailsProps extends BaseInnerFormProps<CompanyRegistrationDetailsSchema> {
15
+ export interface CompanyDetailsProps extends BaseInnerFormProps<CompanyDetailsSchema> {
16
16
  companyType?: CompanyTypesValue;
17
17
  country?: CountryCode;
18
18
  }
@@ -0,0 +1,3 @@
1
+ import { ValidatorRules } from '../../utils/validation/types';
2
+ import { CompanyDetailsSchema } from './types';
3
+ export declare const companyDetailsValidationRules: ValidatorRules<CompanyDetailsSchema>;
@@ -7,5 +7,4 @@ export interface CompanyNameAndCountryProps extends BaseInnerFormProps<CompanyNa
7
7
  onCountryChange?(country: CountryCode): void;
8
8
  disableCountry?: boolean;
9
9
  id: 'companyNameAndCountry' | 'solePropNameAndCountry';
10
- isTopLevelEntity: boolean;
11
10
  }
@@ -1,9 +1,8 @@
1
1
  import { ComponentChild } from 'preact';
2
2
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
3
3
  import { DocumentType } from '../../core/models/api/document';
4
- import { FileSchema } from '../../core/models/file';
5
4
  import { TranslationKey } from '../../language/types';
6
- export type DocumentUploadSchema = Record<string, FileSchema[] | undefined>;
5
+ export type DocumentUploadSchema = Record<string, any>;
7
6
  export interface DocumentUploadProps extends BaseInnerFormProps<DocumentUploadSchema> {
8
7
  documentField?: string;
9
8
  documentType?: DocumentType;
@@ -1,2 +1,2 @@
1
- import { CompanyDropinProps } from '../types';
1
+ import { CompanyDropinProps } from '../../../Company/types';
2
2
  export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, eventEmitter, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, }: CompanyDropinProps): import("preact").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { LegalEntity } from '../../../../core/models/api/legal-entity';
2
2
  import { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
3
3
  export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => "ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
4
- export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, trackingConfig, accountHolder, country, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, hideNavigation, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, handleBackClick: externalBackClick, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
4
+ export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, trackingConfig, accountHolder, country, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, refreshLegalEntity, navigateBackToTaskList, createTrustedTransferInstrument, handleBankVerificationError, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PciDropinProps } from '../types';
2
- export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, eventEmitter, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
2
+ export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleLanguageChange, handleSign, taskType, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
@@ -9,5 +9,6 @@ export interface PciDropinProps extends DropinProps {
9
9
  legalEntityResponse: ExistingLegalEntity;
10
10
  pciTemplateResponse: PciTemplateResponse;
11
11
  handleHomeClick(): void;
12
+ handleLanguageChange(): void;
12
13
  handleSign(legalEntityId: string, signedBy: SignedBy): void;
13
14
  }
@@ -1,2 +1,2 @@
1
1
  import { RoleAndTypeDropinProps } from '../types';
2
- export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, getLegalEntityHandler, isOrganizationSettlorWithExemptionEnabled, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
2
+ export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
1
  import { CompanyTrustMember, RegularTrustMember, TrustMember } from '../../TrustMembers/types';
3
2
  import { TrustRoleAndEntityTypeSchema } from '../../TrustRoleAndEntityType/types';
4
3
  export interface RoleAndTypeDropinProps {
@@ -6,8 +5,6 @@ export interface RoleAndTypeDropinProps {
6
5
  navigateToFullDropinFor(trustMember: RegularTrustMember | CompanyTrustMember): void;
7
6
  navigateBack(): void;
8
7
  addOrUpdateTrustMember: (newOrUpdated: TrustMember) => void;
9
- getLegalEntityHandler?(legalEntityId: string): Promise<ExistingLegalEntity>;
10
- isOrganizationSettlorWithExemptionEnabled?: boolean;
11
8
  }
12
9
  export interface TrustMemberSchema {
13
10
  roleAndEntityType: TrustRoleAndEntityTypeSchema;
@@ -1,7 +1,7 @@
1
1
  import type { State, TopLevelDataSchema } from '../../core/Context/StateContext/types';
2
2
  import type { Address, AddressSearchRequest, AddressSearchResponse } from '../../core/models/api/address-search';
3
3
  import type { DownloadPci, PciQuestionnaireIds, PciQuestionnaires, PciStatus, PciStatusRequest, PciTemplateRequest, PciTemplateResponse, ServiceAgreementAcceptanceInfos, ServiceAgreementRequest, ServiceAgreementResponse, ServiceAgreementSignRequest, ServiceAgreementSignResponse, ServiceAgreementStatus, SignedBy } from '../../core/models/api/contracts';
4
- import { Document, ExistingDocument } from '../../core/models/api/document';
4
+ import { Document } from '../../core/models/api/document';
5
5
  import { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
6
6
  import type { InstantIdVerificationStartCheckRequest, InstantIdVerificationStartCheckResponse, InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
7
7
  import { ExistingLegalEntity, LegalEntity, PatchLegalEntity } from '../../core/models/api/legal-entity';
@@ -25,9 +25,9 @@ export interface DropinAPIHandlers {
25
25
  handleGetLegalEntity?(legalEntityId: string): Promise<ExistingLegalEntity>;
26
26
  handleCreateLegalEntity?(data: LegalEntity): Promise<ExistingLegalEntity>;
27
27
  handleUpdateLegalEntity?(data: PatchLegalEntity, legalEntityId: string): Promise<ExistingLegalEntity>;
28
- handleCreateDocument?(data: Document, legalEntityId: string): Promise<ExistingDocument>;
29
- handleUpdateDocument?(data: Document, documentId: string, legalEntityId: string): Promise<ExistingDocument>;
30
- handleGetDocument?(documentId: string, legalEntityId: string): Promise<ExistingDocument>;
28
+ handleCreateDocument?(data: Document, legalEntityId: string): Promise<Document>;
29
+ handleUpdateDocument?(data: Document, documentId: string, legalEntityId: string): Promise<Document>;
30
+ handleGetDocument?(documentId: string, legalEntityId: string): Promise<Document>;
31
31
  handleGetBankVerificationVendors?(data: string): Promise<BankVerificationVendorsResponse>;
32
32
  handleGetTransferInstrument?(transferInstrumentId: string): Promise<ExistingTransferInstrument>;
33
33
  handleUpdateTransferInstrument?(data: TransferInstrument, transferInstrumentId: string): Promise<ExistingTransferInstrument>;
@@ -0,0 +1,10 @@
1
+ import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
+ import EventEmitter from '../../EventEmitter';
3
+ export interface PayoutEmbeddedDropinProps {
4
+ legalEntityId: ExistingLegalEntity['id'];
5
+ transferInstrumentId?: string;
6
+ onChange?(): void;
7
+ onSubmit?(): void;
8
+ eventEmitter?: EventEmitter;
9
+ }
10
+ export declare function PayoutEmbeddedDropin({ legalEntityId, transferInstrumentId, onChange, onSubmit, eventEmitter, }: PayoutEmbeddedDropinProps): import("preact").JSX.Element;
@@ -1,15 +1,14 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import { DocumentType } from '../../core/models/api/document';
3
- import { FileSchema } from '../../core/models/file';
4
3
  import { TranslationKey } from '../../language/types';
5
4
  import type { DropinAPIHandlers } from '../Dropins/types';
6
5
  import { UserDetails } from '../IdVerification/types';
7
6
  import { IdVerificationMethodType } from '../IdVerificationMethod/types';
8
7
  export interface IdDocumentUploadSchema {
9
8
  idDocumentType?: DocumentType;
10
- idFrontPage?: FileSchema[];
11
- idBackPage?: FileSchema[];
12
- idDocument?: FileSchema[];
9
+ idFrontPage?: any;
10
+ idBackPage?: any;
11
+ idDocument?: any;
13
12
  instantIdVerificationData?: OnfidoCaptureSchema;
14
13
  }
15
14
  export interface IdDocumentTypeOption {
@@ -36,7 +35,6 @@ export interface IdDocumentUploadProps extends Partial<IdDocumentInstantVerifica
36
35
  }
37
36
  export interface IdDocumentInstantVerificationProps extends BaseInnerFormProps<IdDocumentUploadSchema> {
38
37
  userDetails?: UserDetails;
39
- legalEntityId?: string | undefined;
40
38
  handleGetIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
41
39
  handleOnBack?: () => void;
42
40
  handleOnNext?(e?: () => void, callbacks?: () => void, isValid?: boolean): void;
@@ -1,3 +1,3 @@
1
1
  import './IdVerificationComponent.scss';
2
2
  import { IdVerificationProps } from '../types';
3
- export declare function IdVerificationComponent({ userDetails, legalEntityId, handleGetIdVerificationToken, onIdVerificationClose, onIdVerificationError, onIdVerificationComplete, }: IdVerificationProps): import("preact").JSX.Element;
3
+ export declare function IdVerificationComponent({ userDetails, handleGetIdVerificationToken, onIdVerificationClose, onIdVerificationError, onIdVerificationComplete, }: IdVerificationProps): import("preact").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { DropinAPIHandlers } from '../Dropins/types';
2
2
  export interface IdVerificationProps {
3
3
  userDetails: UserDetails;
4
- legalEntityId?: string | undefined;
5
4
  onIdVerificationClose?: () => void;
6
5
  onIdVerificationComplete?: (data: any) => void;
7
6
  onIdVerificationError?: (error: any) => void;
@@ -10,5 +10,4 @@ export declare const NATIONALITY_REQUIRED_FOR_COUNTRIES: CountryCode[];
10
10
  export declare const CONTACTS_REQUIRED_FOR_COUNTRIES: CountryCode[];
11
11
  export declare const JOB_TITLE_REQUIRED_FOR_COUNTRIES: CountryCode[];
12
12
  export declare const ISSUER_REQUIRED_FOR_COUNTRIES: CountryCode[];
13
- export declare const EXPIRY_DATE_REQUIRED_FOR_COUNTRIES: CountryCode[];
14
13
  export declare const rules: FormRules<IndividualSchema>;
@@ -1,6 +1,4 @@
1
- import { AccountIdentification } from '../../../core/models/api/accountIdentification';
2
1
  import { BankAccount } from '../../../core/models/api/transfer-instrument';
3
2
  import { CountryCode } from '../../../core/models/country-code';
4
3
  import { PayoutAccountSchema } from '../types';
5
- export declare const getAccountIdentificationFromPayoutAccountSchema: (payoutAccount: PayoutAccountSchema, bankCountry: CountryCode) => AccountIdentification;
6
4
  export declare const mapPayoutAccountSchemaToApiBankAccount: (payoutAccount: PayoutAccountSchema, bankCountry: CountryCode) => BankAccount;
@@ -1,11 +1,12 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import { LegalEntity } from '../../core/models/api/legal-entity';
3
3
  import { CountryCode } from '../../core/models/country-code';
4
+ import { AccountHolderOption } from '../internal/AccountHolder/types';
4
5
  import { BankAccountNumberSchema } from '../internal/BankAccountNumber/types';
5
6
  import { CurrencySchema } from '../internal/Currency/types';
6
7
  export interface PayoutAccountSchema extends CurrencySchema, BankAccountNumberSchema {
7
8
  transferInstrumentId?: string;
8
- accountHolder: string;
9
+ accountHolder: AccountHolderOption;
9
10
  branchCode?: string;
10
11
  bankCity?: string;
11
12
  swiftCode?: string;
@@ -17,6 +18,4 @@ export interface PayoutAccountProps extends BaseInnerFormProps<PayoutAccountSche
17
18
  country: CountryCode;
18
19
  legalEntityResponse: LegalEntity;
19
20
  requiredFields: Array<keyof PayoutAccountSchema>;
20
- arePayoutAccountDetailsInvalid?: boolean;
21
- invalidFieldNames?: string;
22
21
  }
@@ -1,9 +1,8 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CountryCode } from '../../core/models/country-code';
3
- import { FileSchema } from '../../core/models/file';
4
3
  import { TranslationKey } from '../../language/types';
5
4
  export interface PayoutBankStatementSchema {
6
- bankStatementDocument?: FileSchema[];
5
+ bankStatementDocument?: File[];
7
6
  description?: string;
8
7
  }
9
8
  export interface PayoutBankStatementProps extends BaseInnerFormProps<PayoutBankStatementSchema> {
@@ -11,7 +11,7 @@ export declare const payoutSteps: {
11
11
  readonly formName: "verificationMethod";
12
12
  readonly fields: (keyof PayoutVerificationMethodSchema)[];
13
13
  };
14
- readonly payoutAccountDetails: (tasktype: TaskTypes, isNewEntryFlowExperimentEnabled: boolean) => FormModel;
14
+ readonly payoutAccountDetails: (tasktype: TaskTypes) => FormModel;
15
15
  readonly payoutAccountDocuments: {
16
16
  readonly formId: "payoutAccountDocuments";
17
17
  readonly formName: "bankStatement";
@@ -23,6 +23,6 @@ export declare const payoutSteps: {
23
23
  readonly fields: (keyof AccountVerificationSchema)[];
24
24
  };
25
25
  };
26
- export declare const getAppropriatePayoutDetailsSteps: (currentTask: TaskTypes, isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean, isNewEntryFlowExperimentEnabled: boolean) => FormList;
26
+ export declare const getAppropriatePayoutDetailsSteps: (currentTask: TaskTypes, isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
27
27
  declare function PayoutDetailsComponent(props: PayoutDetailsProps): import("preact").JSX.Element;
28
28
  export default PayoutDetailsComponent;
@@ -2,7 +2,7 @@ import { StateUpdater } from 'preact/hooks';
2
2
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
3
3
  import { BankVerificationVendorsResponse } from '../../core/models/api/get-bankVerification-providers';
4
4
  import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
5
- import { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
5
+ import { ExistingTransferInstrument, TransferInstrument } from '../../core/models/api/transfer-instrument';
6
6
  import { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResponse } from '../../core/models/api/trusted-transferInstrument';
7
7
  import { FormModel } from '../../core/models/form';
8
8
  import type { AccountVerificationSchema, CountryBankVerificationVendors } from '../BankVerification/types';
@@ -19,7 +19,6 @@ export interface PayoutDetailsSchema {
19
19
  payoutAccountVerification?: AccountVerificationSchema;
20
20
  }
21
21
  export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSchema> {
22
- accountDetailsFromInput?: PayoutAccountSchema;
23
22
  capabilities?: string[];
24
23
  eventEmitter: EventEmitter;
25
24
  activeForm?: FormModel;
@@ -41,7 +40,6 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
41
40
  export interface PayoutDetailsDropinProps extends PayoutDetailsProps, Omit<DropinProps, 'legalEntityResponse'>, DropinAPIHandlers {
42
41
  accountHolder?: string;
43
42
  transferInstrument?: ExistingTransferInstrument;
44
- setTransferInstrument?: StateUpdater<ExistingTransferInstrument | undefined>;
43
+ setTransferInstrument?: StateUpdater<TransferInstrument>;
45
44
  navigateBackToTaskList?(): void;
46
- hideNavigation?: boolean;
47
45
  }
@@ -1,2 +1,2 @@
1
1
  import { CountryCode } from '../../core/models/country-code';
2
- export declare const getAllowedBankCountries: (country: CountryCode) => CountryCode[];
2
+ export declare const getAllowedBankCountries: (country: CountryCode) => ("ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
@@ -6,4 +6,3 @@ export interface AdditionalIdentityInfoSchema {
6
6
  export declare const additionalIdentityInfoFields: ReadonlyArray<keyof AdditionalIdentityInfoSchema>;
7
7
  export declare const identityTypes: readonly ["nationalIdNumber", "passport", "driversLicense", "proofOfIdentityCard"];
8
8
  export type IdentityType = (typeof identityTypes)[number];
9
- export type AvailableIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
@@ -1,7 +1,7 @@
1
1
  import { FormUtils } from '../../../../../../utils/formUtils';
2
2
  import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
3
  import { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../../../internal/FormFields/Select/types';
4
- import { AdditionalIdentityInfoSchema } from '../../types';
4
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
5
5
  interface AuDriversLicenseSchema {
6
6
  idNumber?: IdentityNumberSchema['idNumber'];
7
7
  licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
@@ -1,2 +1,2 @@
1
- import { IdentityFormProps } from '../../types';
2
- export declare function IdentityAuComponent(props: IdentityFormProps): import("preact").JSX.Element;
1
+ import { IdentityAuProps } from '../types';
2
+ export declare function IdentityAuComponent(props: IdentityAuProps): import("preact").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { FormUtils } from '../../../../../../utils/formUtils';
2
2
  import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
- export interface AuProofOfIdentityCardSchema {
3
+ interface AuProofOfIdentityCardSchema {
4
4
  idNumber: IdentityNumberSchema['idNumber'];
5
5
  }
6
6
  interface ProofOfIdentityCardProps {
@@ -0,0 +1,12 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
+ import { AuIdentityType } from '../types';
4
+ export interface TypeOfIdentityProps {
5
+ availableIdentityTypes: readonly AuIdentityType[];
6
+ selectedIdentityType: AuIdentityType;
7
+ setSelectedIdentityType: (type: AuIdentityType) => void;
8
+ formUtils: FormUtils<AdditionalIdentityInfoSchema>;
9
+ errorMessage: string | boolean;
10
+ isValid: boolean;
11
+ }
12
+ export declare const TypeOfIdentity: ({ availableIdentityTypes, selectedIdentityType, setSelectedIdentityType, formUtils: { getLabel }, errorMessage, isValid, }: TypeOfIdentityProps) => import("preact").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
+ import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
+ export type AuIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
+ export interface AuIdentitySchema extends AdditionalIdentityInfoSchema {
6
+ idNumber?: IdentityNumberSchema['idNumber'];
7
+ typeOfIdentity?: IdentityType;
8
+ }
9
+ export type IdentityAuProps = BaseInnerFormProps<AuIdentitySchema>;
10
+ export declare const auIdentityFields: ReadonlyArray<keyof AuIdentitySchema>;
@@ -1,3 +1,3 @@
1
1
  import { ValidatorRules } from '../../../../../utils/validation/types';
2
- import { IdentitySchema } from '../types';
3
- export declare const auIdentityValidationRules: ValidatorRules<IdentitySchema>;
2
+ import { AuIdentitySchema } from './types';
3
+ export declare const auIdentityValidationRules: ValidatorRules<AuIdentitySchema>;
@@ -0,0 +1,8 @@
1
+ export interface AdditionalIdentityInfoSchema {
2
+ typeOfIdentity?: IdentityType;
3
+ issuerState?: string;
4
+ licenseCardNumber?: string;
5
+ }
6
+ export declare const additionalIdentityInfoFields: ReadonlyArray<keyof AdditionalIdentityInfoSchema>;
7
+ export declare const identityTypes: readonly ["nationalIdNumber", "passport", "driversLicense", "proofOfIdentityCard"];
8
+ export type IdentityType = (typeof identityTypes)[number];
@@ -1,2 +1,2 @@
1
- import { IdentityFormProps } from '../../types';
2
- export declare function IdentityHKComponent(props: IdentityFormProps): import("preact").JSX.Element;
1
+ import { IdentityHKProps } from '../types';
2
+ export declare function IdentityHKComponent(props: IdentityHKProps): import("preact").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
+ import { HKIdentityType } from '../types';
4
+ export interface TypeOfIdentityProps {
5
+ availableIdentityTypes: readonly HKIdentityType[];
6
+ selectedIdentityType: HKIdentityType;
7
+ setSelectedIdentityType: (type: HKIdentityType) => void;
8
+ formUtils: FormUtils<AdditionalIdentityInfoSchema>;
9
+ errorMessage: string | boolean;
10
+ isValid: boolean;
11
+ }
12
+ export declare const TypeOfIdentity: ({ availableIdentityTypes, selectedIdentityType, setSelectedIdentityType, formUtils: { getLabel }, errorMessage, isValid, }: TypeOfIdentityProps) => import("preact").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
+ import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
+ export type HKIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
+ export interface HKIdentitySchema extends AdditionalIdentityInfoSchema {
6
+ idNumber?: IdentityNumberSchema['idNumber'];
7
+ typeOfIdentity?: IdentityType;
8
+ }
9
+ export type IdentityHKProps = BaseInnerFormProps<HKIdentitySchema>;
10
+ export declare const hkIdentityFields: ReadonlyArray<keyof HKIdentitySchema>;
@@ -1,5 +1,5 @@
1
1
  import { ValidatorRules } from '../../../../../utils/validation/types';
2
- import { IdentitySchema } from '../types';
2
+ import { HKIdentitySchema } from './types';
3
3
  export declare const isValidatePassportNumber: (value: string) => boolean;
4
4
  export declare const isValidateDriversLicenseNumber: (value: string) => boolean;
5
- export declare const identityValidationRules: ValidatorRules<IdentitySchema>;
5
+ export declare const identityValidationRules: ValidatorRules<HKIdentitySchema>;
@@ -0,0 +1,7 @@
1
+ export interface AdditionalIdentityInfoSchema {
2
+ typeOfIdentity?: IdentityType;
3
+ licenseCardNumber?: string;
4
+ }
5
+ export declare const additionalIdentityInfoFields: ReadonlyArray<keyof AdditionalIdentityInfoSchema>;
6
+ export declare const identityTypes: readonly ["nationalIdNumber", "passport", "driversLicense", "proofOfIdentityCard"];
7
+ export type IdentityType = (typeof identityTypes)[number];
@@ -1,6 +1,6 @@
1
1
  import { FormUtils } from '../../../../../../utils/formUtils';
2
2
  import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
- import { AdditionalIdentityInfoSchema } from '../../types';
3
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
4
4
  interface NZDriversLicenseSchema {
5
5
  idNumber?: IdentityNumberSchema['idNumber'];
6
6
  licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
@@ -1,2 +1,2 @@
1
- import { IdentityFormProps } from '../../types';
2
- export declare function IdentityNZComponent(props: IdentityFormProps): import("preact").JSX.Element;
1
+ import { IdentityNZProps } from '../types';
2
+ export declare function IdentityNZComponent(props: IdentityNZProps): import("preact").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
+ import { NZIdentityType } from '../types';
4
+ export interface TypeOfIdentityProps {
5
+ availableIdentityTypes: readonly NZIdentityType[];
6
+ selectedIdentityType: NZIdentityType;
7
+ setSelectedIdentityType: (type: NZIdentityType) => void;
8
+ formUtils: FormUtils<AdditionalIdentityInfoSchema>;
9
+ errorMessage: string | boolean;
10
+ isValid: boolean;
11
+ }
12
+ export declare const TypeOfIdentity: ({ availableIdentityTypes, selectedIdentityType, setSelectedIdentityType, formUtils: { getLabel }, errorMessage, isValid, }: TypeOfIdentityProps) => import("preact").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
+ import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
+ export type NZIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
+ export interface NZIdentitySchema extends AdditionalIdentityInfoSchema {
6
+ idNumber?: IdentityNumberSchema['idNumber'];
7
+ typeOfIdentity?: IdentityType;
8
+ }
9
+ export type IdentityNZProps = BaseInnerFormProps<NZIdentitySchema>;
10
+ export declare const nzIdentityFields: ReadonlyArray<keyof NZIdentitySchema>;
@@ -1,3 +1,3 @@
1
1
  import { ValidatorRules } from '../../../../../utils/validation/types';
2
- import { IdentitySchema } from '../types';
3
- export declare const nzIdentityValidationRules: ValidatorRules<IdentitySchema>;
2
+ import { NZIdentitySchema } from './types';
3
+ export declare const nzIdentityValidationRules: ValidatorRules<NZIdentitySchema>;
@@ -1,2 +1,2 @@
1
- import { IdentityComponentProps } from '../../types';
2
- export declare function IdentityComponent(props: IdentityComponentProps): import("preact").JSX.Element;
1
+ import { IdentityComponentSchema } from '../../types';
2
+ export declare function IdentityComponent(props: IdentityComponentSchema): import("preact").JSX.Element;
@@ -8,7 +8,7 @@ import { AccountHolderSchema } from '../internal/AccountHolder/types';
8
8
  import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole';
9
9
  import { NameSchema } from '../internal/Name/types';
10
10
  import type { TaskTypes } from '../TaskList/types';
11
- import { AdditionalIdentityInfoSchema } from './component/IdentityComponent/types';
11
+ import { AdditionalIdentityInfoSchema } from './component/IdentityComponent/IdentityAu/additionalIdentityInfoSchema';
12
12
  export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema, AccountHolderSchema {
13
13
  birthDate?: string;
14
14
  residencyCountry?: CountryCode;
@@ -25,7 +25,7 @@ export interface IdSchema {
25
25
  firstName: string;
26
26
  lastName: string;
27
27
  }
28
- export interface IdentityComponentProps {
28
+ export interface IdentityComponentSchema {
29
29
  country: CountryCode;
30
30
  personalDetails: PersonalDetailsProps;
31
31
  errors: ValidationRuleResults<IdentityNumberSchema>;
@@ -8,7 +8,7 @@ export declare const solePropForms: {
8
8
  readonly solePropRegistrationDetails: {
9
9
  readonly formId: "solePropRegistrationDetails";
10
10
  readonly formName: "registrationDetails";
11
- readonly fields: (keyof import("../../CompanyRegistrationDetails/types").CompanyRegistrationDetailsSchema)[];
11
+ readonly fields: (keyof import("../../CompanyDetails/types").CompanyDetailsSchema)[];
12
12
  };
13
13
  readonly solePropRegistrationAddress: {
14
14
  readonly formId: "solePropRegistrationAddress";
@@ -1,14 +1,14 @@
1
1
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
- import { ExistingLegalEntity } from '../../core/models/api/legal-entity';
2
+ import { LegalEntity } from '../../core/models/api/legal-entity';
3
3
  import { CountryCode } from '../../core/models/country-code';
4
4
  import { FormModel } from '../../core/models/form';
5
+ import type { CompanyDetailsSchema } from '../CompanyDetails/types';
5
6
  import { CompanyNameAndCountrySchema } from '../CompanyNameAndCountry/types';
6
- import type { CompanyRegistrationDetailsSchema } from '../CompanyRegistrationDetails/types';
7
7
  import { DocumentUploadSchema } from '../DocumentUpload/types';
8
8
  import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
9
9
  import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
10
10
  export type SolePropNameAndCountrySchema = CompanyNameAndCountrySchema;
11
- export type SolePropRegistrationDetailsSchema = CompanyRegistrationDetailsSchema;
11
+ export type SolePropRegistrationDetailsSchema = CompanyDetailsSchema;
12
12
  export interface SolePropSchema {
13
13
  solePropNameAndCountry?: SolePropNameAndCountrySchema;
14
14
  solePropRegistrationDetails?: SolePropRegistrationDetailsSchema;
@@ -20,7 +20,7 @@ export interface SolePropProps extends BaseOuterFormProps<SolePropSchema> {
20
20
  activeForm?: FormModel;
21
21
  forms?: FormModel[];
22
22
  country: CountryCode;
23
- parentLegalEntity?: ExistingLegalEntity;
23
+ parentLegalEntity?: LegalEntity;
24
24
  onCountryChange?(country: string): void;
25
25
  onSubmit?: (data: SolePropSchema) => void;
26
26
  handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];