@adyen/kyc-components 3.50.2 → 3.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{B4MFY5CR-B_M9Rijb.js → B4MFY5CR-DkcZuwrr.js} +2 -2
- package/dist/es/{HO4MOOFI-6-_r_YKd.js → HO4MOOFI-C34-7HCT.js} +2 -2
- package/dist/es/{HUY7CZI3-BSnh9U8W.js → HUY7CZI3-amkPei4o.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-BGerupa5.js → index-CA2oyCNl.js} +20190 -18980
- package/dist/style.css +564 -413
- package/dist/types/api/serviceAgreement/useServiceAgreement.d.ts +7 -0
- package/dist/types/components/Address/Address.d.ts +1 -1
- package/dist/types/components/Address/utils.d.ts +1 -1
- package/dist/types/components/Address/validate.d.ts +6 -0
- package/dist/types/components/{BankAccountNumber → BankAccount/fields/BankAccountNumber}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{BankAccountNumber → BankAccount/fields/BankAccountNumber}/types.d.ts +2 -2
- package/dist/types/components/{BankCity → BankAccount/fields/BankCity}/types.d.ts +1 -1
- package/dist/types/components/{BankCode → BankAccount/fields/BankCode}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{BankCode → BankAccount/fields/BankCode}/types.d.ts +2 -2
- package/dist/types/components/{BankName → BankAccount/fields/BankName}/types.d.ts +1 -1
- package/dist/types/components/{BranchCode → BankAccount/fields/BranchCode}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{BranchCode → BankAccount/fields/BranchCode}/types.d.ts +2 -2
- package/dist/types/components/{Iban → BankAccount/fields/Iban}/fieldConfig.d.ts +2 -2
- package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +3 -0
- package/dist/types/components/{Iban → BankAccount/fields/Iban}/types.d.ts +2 -2
- package/dist/types/components/{SwiftCode → BankAccount/fields/SwiftCode}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{SwiftCode → BankAccount/fields/SwiftCode}/types.d.ts +1 -1
- package/dist/types/components/{BankDocument → BankAccount/forms/BankDocument}/BankDocumentRequirements.d.ts +1 -1
- package/dist/types/components/{BankDocument → BankAccount/forms/BankDocument}/types.d.ts +6 -6
- package/dist/types/components/{BankDocument → BankAccount/forms/BankDocument}/validate.d.ts +1 -1
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/types.d.ts +3 -3
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/validate.d.ts +1 -1
- package/dist/types/components/{PayoutAccount → BankAccount/forms/PayoutAccount}/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -3
- package/dist/types/components/{PayoutAccount → BankAccount/forms/PayoutAccount}/types.d.ts +5 -5
- package/dist/types/components/{PayoutDetails → BankAccount/forms/PayoutDetails}/rules.d.ts +1 -1
- package/dist/types/components/{PayoutDetails → BankAccount/forms/PayoutDetails}/types.d.ts +13 -13
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/AccountHolderDescriptionFragment.d.ts +1 -1
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +4 -4
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/allowedBankCountriesPerCountry.d.ts +1 -1
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/payoutVerificationMethodMetadata.d.ts +2 -2
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/types.d.ts +5 -5
- package/dist/types/{core → components/BankAccount}/hooks/useAsyncAccountDetailsValidationRules.d.ts +2 -2
- package/dist/types/components/{Dropins → BankAccount/tasks}/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/{utils → components/BankAccount/utils}/payoutAccountUtil.d.ts +6 -6
- package/dist/types/components/{AdditionalInformation → Business/forms/AdditionalInformation}/VerifiedBusinessCard.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +26 -0
- package/dist/types/components/{AdditionalInformation → Business/forms/AdditionalInformation}/utils.d.ts +3 -3
- package/dist/types/components/{BasicInformation → Business/forms/BasicInformation}/types.d.ts +11 -13
- package/dist/types/components/{BusinessDetails → Business/forms/BusinessDetails}/forms.d.ts +3 -3
- package/dist/types/components/{BusinessDetails → Business/forms/BusinessDetails}/types.d.ts +8 -10
- package/dist/types/components/{BusinessSelection → Business/forms/BusinessSelection}/BusinessInformationCard.d.ts +2 -2
- package/dist/types/components/{BusinessSelection → Business/forms/BusinessSelection}/types.d.ts +3 -3
- package/dist/types/components/{Company → Business/forms/Company}/Company.d.ts +2 -2
- package/dist/types/components/{Company → Business/forms/Company}/rules.d.ts +3 -3
- package/dist/types/components/{Company → Business/forms/Company}/types.d.ts +10 -10
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +12 -0
- package/dist/types/components/{CompanyStructure → Business/forms/CompanyStructure}/validate.d.ts +1 -1
- package/dist/types/components/Business/forms/CompanyType/types.d.ts +9 -0
- package/dist/types/components/{CompanyType → Business/forms/CompanyType}/validate.d.ts +1 -1
- package/dist/types/components/{TaxDocument → Business/forms/TaxDocument}/config.d.ts +1 -1
- package/dist/types/components/{TaxDocument → Business/forms/TaxDocument}/types.d.ts +4 -4
- package/dist/types/{core → components/Business}/hooks/useBusinessData/constants.d.ts +1 -1
- package/dist/types/{core → components/Business}/hooks/useBusinessData/types.d.ts +5 -5
- package/dist/types/components/{Dropins → Business/tasks}/BusinessDetailsDropin/types.d.ts +16 -16
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +15 -0
- package/dist/types/components/Business/tasks/CompanyDropin/types.d.ts +10 -0
- package/dist/types/{utils → components/Business/utils}/companyUtil.d.ts +6 -6
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +0 -1
- package/dist/types/components/ContactDetails/types.d.ts +2 -2
- package/dist/types/components/ContextGuidance/ContextGuidance.d.ts +2 -2
- package/dist/types/components/ContextGuidance/types.d.ts +3 -4
- package/dist/types/components/CustomerSupport/types.d.ts +0 -1
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +3 -3
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/sofStore.d.ts +3 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/utils.d.ts +1 -0
- package/dist/types/components/Dropins/types.d.ts +2 -5
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/IdDocumentInstantVerification.d.ts +1 -3
- package/dist/types/components/IdDocumentUpload/IdDocumentManualUpload.d.ts +1 -3
- package/dist/types/components/IdDocumentUpload/types.d.ts +0 -1
- package/dist/types/components/IdentityNumber/fieldConfig.d.ts +4 -0
- package/dist/types/components/IdentityNumber/type.d.ts +0 -2
- package/dist/types/components/Individual/IndividualExperimentWrapper.d.ts +4 -0
- package/dist/types/components/Individual/rules.d.ts +0 -1
- package/dist/types/components/Individual/types.d.ts +1 -3
- package/dist/types/components/IndividualOnfido/Individual.d.ts +1 -0
- package/dist/types/components/Name/Name.d.ts +1 -3
- package/dist/types/components/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +1 -3
- package/dist/types/components/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +1 -1
- package/dist/types/components/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +1 -1
- package/dist/types/components/PersonalDetails/Identity/IdentityNZ/DriversLicense.d.ts +1 -3
- package/dist/types/components/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +1 -0
- package/dist/types/components/PersonalDetails/validate.d.ts +19 -2
- package/dist/types/components/PhoneField/PhoneField.d.ts +4 -1
- package/dist/types/components/PhoneField/fieldConfig.d.ts +2 -1
- package/dist/types/components/PhoneField/types.d.ts +0 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +0 -2
- package/dist/types/components/{SoleProp → SoleProprietorship/forms/SoleProp}/SoleProp.d.ts +2 -2
- package/dist/types/components/{SoleProp → SoleProprietorship/forms/SoleProp}/types.d.ts +11 -11
- package/dist/types/{core → components/SoleProprietorship}/hooks/useExemptSettlor.d.ts +2 -2
- package/dist/types/components/{Dropins → SoleProprietorship/tasks}/SolePropDropin/SolePropDropin.d.ts +1 -1
- package/dist/types/components/Trust/{Trust.d.ts → forms/Trust/Trust.d.ts} +1 -1
- package/dist/types/components/Trust/{rules.d.ts → forms/Trust/rules.d.ts} +1 -1
- package/dist/types/components/Trust/{types.d.ts → forms/Trust/types.d.ts} +8 -8
- package/dist/types/components/{TrustRegistrationDetails → Trust/forms/TrustRegistrationDetails}/types.d.ts +7 -7
- package/dist/types/components/{TrustRegistrationDetails → Trust/forms/TrustRegistrationDetails}/validate.d.ts +1 -1
- package/dist/types/components/{TrustRoleAndEntityType → Trust/forms/TrustRoleAndEntityType}/convertExistingTrustMember.d.ts +1 -1
- package/dist/types/components/{TrustRoleAndEntityType → Trust/forms/TrustRoleAndEntityType}/getAvailableRoles.d.ts +2 -2
- package/dist/types/components/{TrustRoleAndEntityType → Trust/forms/TrustRoleAndEntityType}/types.d.ts +8 -8
- package/dist/types/components/{TrustRoleAndEntityType → Trust/forms/TrustRoleAndEntityType}/validate.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +5 -0
- package/dist/types/components/{Dropins → Trust/tasks}/RoleAndTypeDropin/types.d.ts +4 -4
- package/dist/types/components/{Dropins → Trust/tasks}/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/types.d.ts +5 -5
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/addOrUpdateAssociatedTrustMember.d.ts +2 -2
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/createExemptSettlor.d.ts +2 -2
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/deleteAssociatedTrustMember.d.ts +2 -2
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/deleteUndefinedBeneficiary.d.ts +2 -2
- package/dist/types/{utils → components/Trust/utils}/trustUtil.d.ts +7 -7
- package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/updateExemptSettlorName.d.ts +2 -2
- package/dist/types/components/index.d.ts +5 -5
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +4 -0
- package/dist/types/core/analytics.d.ts +3 -6
- package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +2 -2
- package/dist/types/core/context/CoreContext.d.ts +1 -1
- package/dist/types/core/context/ExperimentContext/types.d.ts +5 -2
- package/dist/types/core/context/FormContext/FormContext.d.ts +2 -0
- package/dist/types/core/context/FormContext/FormContextProvider.d.ts +3 -0
- package/dist/types/core/context/FormContext/types.d.ts +10 -0
- package/dist/types/core/context/FormContext/useFormContext.d.ts +3 -0
- package/dist/types/core/context/StateContext/types.d.ts +10 -10
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useComponentApi.d.ts +0 -1
- package/dist/types/core/hooks/useFormComposer.d.ts +6 -3
- package/dist/types/core/hooks/useMultiForm/reducer.d.ts +89 -0
- package/dist/types/core/hooks/useMultiForm/types.d.ts +151 -0
- package/dist/types/core/hooks/useMultiForm/useMultiForm.d.ts +2 -0
- package/dist/types/core/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +16 -0
- package/dist/types/core/hooks/useMultiForm/useMultiFormStaticValidator.d.ts +8 -0
- package/dist/types/core/hooks/useMultiForm/utils.d.ts +13 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/core/models/api/get-bankVerification-providers.d.ts +1 -1
- package/dist/types/core/models/api/get-configuration.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +4 -0
- package/dist/types/core/models/api/trusted-transferInstrument.d.ts +1 -1
- package/dist/types/core/models/payout-account.d.ts +2 -2
- package/dist/types/core/process-field-configurations.d.ts +9 -10
- package/dist/types/core/services/componentApi/update-source-of-funds.d.ts +2 -2
- package/dist/types/core/user-events.d.ts +5 -0
- package/dist/types/datasets/accountFormats/getAccountFormatForCountry.d.ts +2 -2
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +1 -1
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +1 -1
- package/dist/types/stores/globalStore/globalStore.d.ts +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +4 -4
- package/dist/types/utils/getSSNType.d.ts +2 -0
- package/dist/types/utils/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
- package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/utils/mapping/componentApiMapping.d.ts +33 -33
- package/dist/types/utils/mapping/mapping.d.ts +6 -6
- package/dist/types/utils/mapping/trustMembers/getTrustMembers.d.ts +1 -1
- package/dist/types/utils/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +1 -1
- package/dist/types/utils/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
- package/dist/types/utils/mapping/trustMembers/mapUndefinedBeneficiaryInfoToTrustMembers.d.ts +1 -1
- package/dist/types/utils/trackNavigation.d.ts +2 -2
- package/dist/types/utils/validation/types.d.ts +1 -1
- package/dist/types/utils/validation/validationResult.d.ts +2 -0
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +9 -2
- package/package.json +3 -1
- package/dist/types/components/AdditionalInformation/types.d.ts +0 -26
- package/dist/types/components/AutoResizer/AutoResizer.d.ts +0 -56
- package/dist/types/components/CompanyStructure/types.d.ts +0 -12
- package/dist/types/components/CompanyType/types.d.ts +0 -9
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +0 -15
- package/dist/types/components/Dropins/CompanyDropin/types.d.ts +0 -10
- package/dist/types/components/Dropins/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +0 -5
- package/dist/types/components/Iban/ibanValidator.d.ts +0 -3
- package/dist/types/components/Individual/validators.d.ts +0 -16
- package/dist/types/components/PhoneField/PhoneFieldExperimentWrapper.d.ts +0 -8
- package/dist/types/components/PhoneInput/PhoneInput.d.ts +0 -8
- package/dist/types/components/PhoneInput/PhoneInput.types.d.ts +0 -8
- package/dist/types/components/PhoneInput/validate.d.ts +0 -6
- package/dist/types/core/services/componentApi/get-onboarding-status.d.ts +0 -4
- package/dist/types/utils/verification/verificationUtils.d.ts +0 -17
- package/dist/types/components/{BankAccountFormat → BankAccount/fields/BankAccountFormat}/BankAccountFormat.d.ts +0 -0
- package/dist/types/components/{BankAccountFormat → BankAccount/fields/BankAccountFormat}/types.d.ts +0 -0
- package/dist/types/components/{BankAccountNumber → BankAccount/fields/BankAccountNumber}/BankAccountNumber.d.ts +0 -0
- package/dist/types/components/{BankCity → BankAccount/fields/BankCity}/BankCity.d.ts +0 -0
- package/dist/types/components/{BankCode → BankAccount/fields/BankCode}/BankCode.d.ts +0 -0
- package/dist/types/components/{BankName → BankAccount/fields/BankName}/BankName.d.ts +0 -0
- package/dist/types/components/{BranchCode → BankAccount/fields/BranchCode}/BranchCode.d.ts +0 -0
- package/dist/types/components/{Iban → BankAccount/fields/Iban}/Iban.d.ts +0 -0
- package/dist/types/components/{SwiftCode → BankAccount/fields/SwiftCode}/SwiftCode.d.ts +0 -0
- package/dist/types/components/{BankDocument → BankAccount/forms/BankDocument}/BankDocument.d.ts +0 -0
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/BankVerification.d.ts +0 -0
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/verification/widget/BankVerificationWidget.d.ts +0 -0
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/verification/widget/iframeWidget.d.ts +0 -0
- package/dist/types/components/{BankVerification → BankAccount/forms/BankVerification}/verification/widget/types.d.ts +0 -0
- package/dist/types/components/{PayoutAccount → BankAccount/forms/PayoutAccount}/CheckGuidance/CheckGuidance.d.ts +0 -0
- package/dist/types/components/{PayoutAccount → BankAccount/forms/PayoutAccount}/PayoutAccount.d.ts +0 -0
- package/dist/types/components/{PayoutDetails → BankAccount/forms/PayoutDetails}/PayoutDetails.d.ts +0 -0
- package/dist/types/components/{PayoutDetails → BankAccount/forms/PayoutDetails}/utils.d.ts +0 -0
- package/dist/types/components/{PayoutVerificationMethod → BankAccount/forms/PayoutVerificationMethod}/PayoutVerificationMethod.d.ts +1 -1
- /package/dist/types/components/{AdditionalInformation → Business/forms/AdditionalInformation}/AdditionalInformation.d.ts +0 -0
- /package/dist/types/components/{BasicInformation → Business/forms/BasicInformation}/BasicInformation.d.ts +0 -0
- /package/dist/types/components/{BusinessDetails → Business/forms/BusinessDetails}/BusinessDetails.d.ts +0 -0
- /package/dist/types/components/{BusinessMismatchModal → Business/forms/BusinessMismatchModal}/BusinessMismatchModal.d.ts +0 -0
- /package/dist/types/components/{BusinessSelection → Business/forms/BusinessSelection}/BusinessSelection.d.ts +0 -0
- /package/dist/types/components/{CompanyStructure → Business/forms/CompanyStructure}/CompanyStructure.d.ts +0 -0
- /package/dist/types/components/{CompanyType → Business/forms/CompanyType}/CompanyType.d.ts +0 -0
- /package/dist/types/components/{TaxDocument → Business/forms/TaxDocument}/TaxDocument.d.ts +0 -0
- /package/dist/types/{core → components/Business}/hooks/useBusinessData/useBusinessData.d.ts +0 -0
- /package/dist/types/components/{Dropins → Business/tasks}/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +0 -0
- /package/dist/types/components/{Dropins → Business/tasks}/CompanyDropin/CompanyDropin.d.ts +0 -0
- /package/dist/types/components/{TrustRegistrationDetails → Trust/forms/TrustRegistrationDetails}/TrustRegistrationDetails.d.ts +0 -0
- /package/dist/types/components/{TrustRoleAndEntityType → Trust/forms/TrustRoleAndEntityType}/TrustRoleAndEntityType.d.ts +0 -0
- /package/dist/types/components/{Dropins → Trust/tasks}/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +0 -0
- /package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/TrustMembersOverview.d.ts +0 -0
- /package/dist/types/components/{TrustMembers → Trust/tasks/TrustMembers}/UndefinedBeneficiaryTaskItem.d.ts +0 -0
|
@@ -10,9 +10,8 @@ import type { ExistingLegalEntity, LegalEntity, PatchLegalEntity } from '../../c
|
|
|
10
10
|
import type { ReviewCompletion } from '../../core/models/api/review';
|
|
11
11
|
import type { ExistingTransferInstrument, TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
12
12
|
import type { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
13
|
-
import type { OnboardingLinkConfig, OnboardingLinkResponse
|
|
13
|
+
import type { OnboardingLinkConfig, OnboardingLinkResponse } from '../../core/models/api/view-verification-status';
|
|
14
14
|
import type { CountryCode } from '../../core/models/country-code';
|
|
15
|
-
import type { BaseTrackingPayload } from '../../core/analytics';
|
|
16
15
|
import type { Language } from '../../language/Language';
|
|
17
16
|
import type { TranslationKey } from '../../language/types';
|
|
18
17
|
import type { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
@@ -38,7 +37,7 @@ export interface DropinAPIHandlers {
|
|
|
38
37
|
handleUpdateLegalEntity?(data: PatchLegalEntity, legalEntityId: string): Promise<ExistingLegalEntity>;
|
|
39
38
|
handleCreateDocument?(data: Document, legalEntityId: string): Promise<ExistingDocument>;
|
|
40
39
|
handleUpdateDocument?(data: Document, documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
41
|
-
handleDeleteDocument?(documentId: string): Promise<ExistingDocument>;
|
|
40
|
+
handleDeleteDocument?(documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
42
41
|
handleGetDocument?(documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
43
42
|
handleGetBankVerificationVendors?(country: CountryCode, openBankingPartnerConfigId?: string, locale?: Language['locale']): Promise<BankVerificationVendorsResponse>;
|
|
44
43
|
handleGetTransferInstrument?(transferInstrumentId: string): Promise<ExistingTransferInstrument>;
|
|
@@ -70,14 +69,12 @@ export interface DropinAPIHandlers {
|
|
|
70
69
|
handleRefreshCompanyDataset?(data: CompanyDatasetRequest): Promise<CompanyDatasetResponse>;
|
|
71
70
|
handleVerifyTin?(data: TinVerificationRequest): Promise<TinVerificationResponse>;
|
|
72
71
|
handleClearCompanyData?(): Promise<void>;
|
|
73
|
-
handleGetOnboardingStatus?(): Promise<OnboardingStatusResponse>;
|
|
74
72
|
handleGenerateOnboardingLink?(config: OnboardingLinkConfig): Promise<OnboardingLinkResponse>;
|
|
75
73
|
handleOpenSingpassAuthorizationLink?(): Promise<SingpassLinkResponse>;
|
|
76
74
|
handleCreateTrustedTransferInstrument?(code: string, state: string): Promise<CreateTrustedTransferInstrumentResponse>;
|
|
77
75
|
}
|
|
78
76
|
export interface DropinProps {
|
|
79
77
|
legalEntityResponse?: ExistingLegalEntity;
|
|
80
|
-
baseTrackingPayload?: BaseTrackingPayload;
|
|
81
78
|
handleHomeClick?(): void;
|
|
82
79
|
handleBackClick?(): void;
|
|
83
80
|
handleCloseClick?(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
import type { PayoutDetailsSchema } from '../../PayoutDetails/types';
|
|
2
|
+
import type { PayoutDetailsSchema } from '../../BankAccount/forms/PayoutDetails/types';
|
|
3
3
|
export interface CreateTransferInstrumentComponentProps {
|
|
4
4
|
legalEntityId: ExistingLegalEntity['id'];
|
|
5
5
|
transferInstrumentId?: string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import './IdDocumentUpload.scss';
|
|
2
2
|
import type { IdDocumentInstantVerificationProps } from './types';
|
|
3
|
-
declare function IdDocumentInstantVerification(props: IdDocumentInstantVerificationProps): import("preact").JSX.Element;
|
|
4
|
-
export declare const MemoizedIdDocumentInstantVerification: typeof IdDocumentInstantVerification;
|
|
5
|
-
export {};
|
|
3
|
+
export declare function IdDocumentInstantVerification(props: IdDocumentInstantVerificationProps): import("preact").JSX.Element;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import './IdDocumentUpload.scss';
|
|
2
2
|
import type { IdDocumentManualUploadProps, IdDocumentUploadSchema } from './types';
|
|
3
3
|
export declare const idDocumentUploadFields: Array<keyof IdDocumentUploadSchema>;
|
|
4
|
-
declare function IdDocumentManualUpload(props: IdDocumentManualUploadProps): import("preact").JSX.Element;
|
|
5
|
-
export declare const MemoizedIdDocumentManualUpload: typeof IdDocumentManualUpload;
|
|
6
|
-
export {};
|
|
4
|
+
export declare function IdDocumentManualUpload(props: IdDocumentManualUploadProps): import("preact").JSX.Element;
|
|
@@ -9,7 +9,6 @@ export interface IdDocumentUploadSchema {
|
|
|
9
9
|
idDocumentType?: DocumentType;
|
|
10
10
|
idFrontPage?: FileSchema[];
|
|
11
11
|
idBackPage?: FileSchema[];
|
|
12
|
-
idDocument?: FileSchema[];
|
|
13
12
|
instantIdVerificationData?: OnfidoCaptureSchema;
|
|
14
13
|
}
|
|
15
14
|
export interface IdDocumentTypeOption {
|
|
@@ -3,6 +3,10 @@ import type { NoParams, PerCountryFieldConfig } from '../../core/models/field-co
|
|
|
3
3
|
import type { IndividualIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
4
4
|
import type { IdentitySchema } from '../PersonalDetails/Identity/types';
|
|
5
5
|
import type { IdentityNumberSchema } from './type';
|
|
6
|
+
import type { AsyncValidatorRules } from '../../utils/validation/types';
|
|
7
|
+
import type { PersonalDetailsSchema } from '../PersonalDetails/types';
|
|
8
|
+
import type { ConfigurationApi } from '../../core/context/ConfigurationApiContext/ConfigurationApiContext';
|
|
9
|
+
export declare const getAsyncIdNumberValidationRule: (verifyIdNumber: ConfigurationApi["verifyIdNumber"], personalDetails?: PersonalDetailsSchema) => AsyncValidatorRules<IdentityNumberSchema>;
|
|
6
10
|
export interface FieldConfigParams {
|
|
7
11
|
idNumberType?: IndividualIdNumberType | 'idNumber';
|
|
8
12
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
|
-
import type { ValidationRuleResults } from '../../utils/validation/types';
|
|
4
3
|
import type { IndividualIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
5
4
|
import type { defaultFieldConfig } from './fieldConfig';
|
|
6
5
|
export interface IdentityNumberSchema {
|
|
@@ -8,7 +7,6 @@ export interface IdentityNumberSchema {
|
|
|
8
7
|
idNumberExempt?: boolean;
|
|
9
8
|
}
|
|
10
9
|
export interface IdentityNumberProps extends BaseInnerFormProps<IdentityNumberSchema> {
|
|
11
|
-
errors: ValidationRuleResults<IdentityNumberSchema>;
|
|
12
10
|
country: CountryCode;
|
|
13
11
|
classNames?: string[];
|
|
14
12
|
dataPlaceholder?: string;
|
|
@@ -4,7 +4,6 @@ import type { FormRules } from '../../core/models/form-rules';
|
|
|
4
4
|
import type { IndividualSchema } from './types';
|
|
5
5
|
export declare const SOLE_PROP_COUNTRIES: CountryCode[];
|
|
6
6
|
export declare const ID_NUMBER_EXEMPT_COUNTRIES: CountryCode[];
|
|
7
|
-
export declare const ID_NUMBER_VERIFICATION_COUNTRIES: CountryCode[];
|
|
8
7
|
export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
|
|
9
8
|
export declare const ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES: CountryCode[];
|
|
10
9
|
export declare const NATIONALITY_REQUIRED_FOR_COUNTRIES: CountryCode[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
1
|
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
3
2
|
import type { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
4
3
|
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
@@ -15,7 +14,7 @@ import type { AccountHolderOption } from '../../core/types/AccountHolder.types';
|
|
|
15
14
|
import type { AddressSchema } from '../Address/types';
|
|
16
15
|
import type { NomineeDecisionMakerRoleSchema } from '../DecisionMakerRole/types';
|
|
17
16
|
import type { PersonalDetailsSchema } from '../PersonalDetails/types';
|
|
18
|
-
import type { TrustMember } from '../TrustMembers/types';
|
|
17
|
+
import type { TrustMember } from '../Trust/tasks/TrustMembers/types';
|
|
19
18
|
import type { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
20
19
|
import type { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
21
20
|
export interface IndividualSchema {
|
|
@@ -41,7 +40,6 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
|
|
|
41
40
|
taskType?: TaskTypes;
|
|
42
41
|
allowedRoles?: DecisionMakerType[];
|
|
43
42
|
parentLegalEntity?: ExistingLegalEntity;
|
|
44
|
-
onCountryChange?: Dispatch<StateUpdater<CountryCode>>;
|
|
45
43
|
onNext?(e: any, callbacks: any, isValid: any): void;
|
|
46
44
|
onBack?(): void;
|
|
47
45
|
asModal?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Individual(): import("preact").JSX.Element;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { NameProps, NameSchema } from './types';
|
|
2
2
|
export declare const nameFields: Array<keyof NameSchema>;
|
|
3
|
-
declare function Name(props: NameProps): import("preact").JSX.Element;
|
|
4
|
-
export declare const MemoizedName: typeof Name;
|
|
5
|
-
export {};
|
|
3
|
+
export declare function Name(props: NameProps): import("preact").JSX.Element;
|
|
@@ -2,7 +2,6 @@ import type { FormUtils } from '../../../../utils/formUtils';
|
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../ui/atoms/Select/Select.types';
|
|
4
4
|
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
5
|
-
import type { BaseTrackingPayload } from '../../../../core/analytics';
|
|
6
5
|
interface AuDriversLicenseSchema {
|
|
7
6
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
8
7
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -19,7 +18,6 @@ interface DriversLicenseProps {
|
|
|
19
18
|
isValid: Record<keyof AuDriversLicenseSchema, boolean>;
|
|
20
19
|
errorMessages: Record<keyof AuDriversLicenseSchema, string | boolean>;
|
|
21
20
|
shouldValidate?: boolean;
|
|
22
|
-
baseTrackingPayload: BaseTrackingPayload;
|
|
23
21
|
}
|
|
24
|
-
export declare const DriversLicense: ({ driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate,
|
|
22
|
+
export declare const DriversLicense: ({ driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
25
23
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IdentityFormProps } from '../types';
|
|
2
|
-
export declare function IdentityAu({ labels, data
|
|
2
|
+
export declare function IdentityAu({ labels, data, placeholders, helperText, requiredFields, readOnlyFields, optionalFields, obscuredFields, shouldValidate, fieldValidationErrors, handleFieldChange, validators, valid, errors, }: IdentityFormProps): import("preact").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IdentityFormProps } from '../types';
|
|
2
|
-
export declare function IdentityHK({ labels, data
|
|
2
|
+
export declare function IdentityHK({ labels, data, placeholders, helperText, requiredFields, readOnlyFields, optionalFields, obscuredFields, shouldValidate, fieldValidationErrors, handleFieldChange, validators, valid, errors, }: IdentityFormProps): import("preact").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FormUtils } from '../../../../utils/formUtils';
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
4
|
-
import type { BaseTrackingPayload } from '../../../../core/analytics';
|
|
5
4
|
interface NZDriversLicenseSchema {
|
|
6
5
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
7
6
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -16,7 +15,6 @@ interface DriversLicenseProps {
|
|
|
16
15
|
isValid: Record<keyof NZDriversLicenseSchema, boolean>;
|
|
17
16
|
errorMessages: Record<keyof NZDriversLicenseSchema, string | boolean>;
|
|
18
17
|
shouldValidate?: boolean;
|
|
19
|
-
baseTrackingPayload: BaseTrackingPayload;
|
|
20
18
|
}
|
|
21
|
-
export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate,
|
|
19
|
+
export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
22
20
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IdentityFormProps } from '../types';
|
|
2
|
-
export declare function IdentityNZ({ labels, data
|
|
2
|
+
export declare function IdentityNZ({ labels, data, placeholders, helperText, requiredFields, readOnlyFields, optionalFields, obscuredFields, shouldValidate, fieldValidationErrors, handleFieldChange, validators, valid, errors, }: IdentityFormProps): import("preact").JSX.Element;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import type { ExperimentName } from '../../core/context/ExperimentContext/types';
|
|
2
|
+
import type { CountryCode } from '../../core/models/country-code';
|
|
1
3
|
import type { ValidatorRules } from '../../utils/validation/types';
|
|
2
|
-
import type { PersonalDetailsSchema } from '
|
|
3
|
-
|
|
4
|
+
import type { PersonalDetailsSchema } from '../PersonalDetails/types';
|
|
5
|
+
import { TaskTypes } from '../TaskList/types';
|
|
6
|
+
import type { BooleanSettingName } from '../../core/context/SettingsContext/types';
|
|
7
|
+
import type { IndividualIdNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
8
|
+
import type { FormVerificationErrors } from '../../core/models/errors/form-verification-errors';
|
|
9
|
+
export declare const personalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, phonePrefix, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, }: {
|
|
10
|
+
country: CountryCode;
|
|
11
|
+
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
12
|
+
isSettingEnabled?: (setting: BooleanSettingName) => boolean;
|
|
13
|
+
taskType?: TaskTypes;
|
|
14
|
+
idNumberType: IndividualIdNumberType | undefined;
|
|
15
|
+
phonePrefix: CountryCode | undefined;
|
|
16
|
+
idNumberExempt: boolean | undefined;
|
|
17
|
+
idNumber: string | undefined;
|
|
18
|
+
existingIdNumber: string | undefined;
|
|
19
|
+
formVerificationErrors: FormVerificationErrors | undefined;
|
|
20
|
+
}) => ValidatorRules<PersonalDetailsSchema>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { JSX } from 'preact';
|
|
2
2
|
import type { PhoneFieldProps, PhoneFieldSchema } from './types';
|
|
3
|
+
import type { CountryCode } from '../../core/models/country-code';
|
|
3
4
|
export declare const PHONE_FIELD: Array<keyof PhoneFieldSchema>;
|
|
4
|
-
export
|
|
5
|
+
export type PhonePrefixes = Partial<Record<CountryCode, string>>;
|
|
6
|
+
export declare const usePhonePrefixes: () => PhonePrefixes | undefined;
|
|
7
|
+
export declare function PhoneField({ country, name, data, valid, errors, labels, mask, readonly, optional, placeholders, handleChangeFor, }: PhoneFieldProps): JSX.Element;
|
|
@@ -2,6 +2,7 @@ import type { FieldMetadata } from '../../core/models/country-config';
|
|
|
2
2
|
import type { PerCountryFieldConfig } from '../../core/models/field-configurations';
|
|
3
3
|
import type { AsyncValidatorRules } from '../../utils/validation/types';
|
|
4
4
|
import type { PhoneFieldSchema } from './types';
|
|
5
|
-
|
|
5
|
+
import type { ConfigurationApi } from '../../core/context/ConfigurationApiContext/ConfigurationApiContext';
|
|
6
|
+
export declare const getAsyncPhoneValidationRules: (validatePhoneNumber: ConfigurationApi["validatePhoneNumber"]) => AsyncValidatorRules<PhoneFieldSchema>;
|
|
6
7
|
export declare const defaultFieldMetadata: FieldMetadata<PhoneFieldSchema, 'phone'>;
|
|
7
8
|
export declare const fieldConfig: PerCountryFieldConfig<PhoneFieldSchema, 'phone', any>;
|
|
@@ -4,7 +4,6 @@ import type { FormModel } from '../../core/models/form';
|
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
5
5
|
import type { DropinAPIHandlers } from '../Dropins/types';
|
|
6
6
|
import type { AddressSchema } from '../Address/types';
|
|
7
|
-
import type { BaseTrackingPayload } from '../../core/analytics';
|
|
8
7
|
export interface RegistrationAddressSchema {
|
|
9
8
|
registrationAddress?: AddressSchema;
|
|
10
9
|
operationalAddress?: AddressSchema;
|
|
@@ -16,7 +15,6 @@ export interface RegistrationAddressProps extends BaseOuterFormProps<Registratio
|
|
|
16
15
|
country?: CountryCode;
|
|
17
16
|
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
18
17
|
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
19
|
-
baseTrackingPayload: BaseTrackingPayload;
|
|
20
18
|
}
|
|
21
19
|
export declare enum operationalAddressIsSameIds {
|
|
22
20
|
OPERATIONAL_ADDRESS_IS_SAME = "OperationAddressAnswerYes",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FinancialInformationSchema } from '
|
|
1
|
+
import type { FinancialInformationSchema } from '../../../FinancialInformation/types';
|
|
2
2
|
import type { SolePropProps } from './types';
|
|
3
3
|
export declare const solePropForms: {
|
|
4
4
|
readonly solePropNameAndCountry: {
|
|
@@ -9,7 +9,7 @@ export declare const solePropForms: {
|
|
|
9
9
|
readonly solePropRegistrationDetails: {
|
|
10
10
|
readonly formId: "solePropRegistrationDetails";
|
|
11
11
|
readonly formName: "registrationDetails";
|
|
12
|
-
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("
|
|
12
|
+
readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../../TradingNameField/types").TradingNameFieldSchema | keyof import("../../../DBANameField/types").DBANameFieldSchema | keyof import("../../../BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../../TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../../VatNumberField/types").VatNumberFieldSchema | keyof import("../../../EInvoicingCodeField/types").EInvoicingCodeFieldSchema)[];
|
|
13
13
|
};
|
|
14
14
|
readonly solePropRegistrationAddress: {
|
|
15
15
|
readonly formId: "solePropRegistrationAddress";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '
|
|
2
|
-
import type { CapabilityName } from '
|
|
3
|
-
import type { ExistingLegalEntity } from '
|
|
4
|
-
import type { CountryCode } from '
|
|
5
|
-
import type { FormModel } from '
|
|
6
|
-
import type { CompanyNameAndCountrySchema } from '
|
|
7
|
-
import type { CompanyRegistrationDetailsSchema } from '
|
|
8
|
-
import type { DocumentUploadSchema } from '
|
|
9
|
-
import type { DropinAPIHandlers, DropinProps } from '
|
|
10
|
-
import type { FinancialInformationSchema } from '
|
|
11
|
-
import type { RegistrationAddressSchema } from '
|
|
1
|
+
import type { BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
|
+
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
3
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
4
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
5
|
+
import type { FormModel } from '../../../../core/models/form';
|
|
6
|
+
import type { CompanyNameAndCountrySchema } from '../../../CompanyNameAndCountry/types';
|
|
7
|
+
import type { CompanyRegistrationDetailsSchema } from '../../../CompanyRegistrationDetails/types';
|
|
8
|
+
import type { DocumentUploadSchema } from '../../../DocumentUpload/types';
|
|
9
|
+
import type { DropinAPIHandlers, DropinProps } from '../../../Dropins/types';
|
|
10
|
+
import type { FinancialInformationSchema } from '../../../FinancialInformation/types';
|
|
11
|
+
import type { RegistrationAddressSchema } from '../../../RegistrationAddress/types';
|
|
12
12
|
export type SolePropNameAndCountrySchema = CompanyNameAndCountrySchema;
|
|
13
13
|
export type SolePropRegistrationDetailsSchema = CompanyRegistrationDetailsSchema;
|
|
14
14
|
export interface SolePropSchema {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '../../
|
|
2
|
-
import type { ExistingLegalEntity } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
3
|
interface UseExemptSettlorArgs {
|
|
4
4
|
trust: ExistingLegalEntity | undefined;
|
|
5
5
|
handleGetLegalEntity: NonNullable<DropinAPIHandlers['handleGetLegalEntity']>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SolePropDropinProps } from '../../SoleProp/types';
|
|
1
|
+
import type { SolePropDropinProps } from '../../forms/SoleProp/types';
|
|
2
2
|
export declare function SolePropDropin({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, hideSidebar, onSubmit: onExternalSubmit, onChange, taskType, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCreateLegalEntity, }: SolePropDropinProps): import("preact").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormList } from '
|
|
1
|
+
import type { FormList } from '../../../../core/models/form';
|
|
2
2
|
import type { TrustProps } from './types';
|
|
3
3
|
export declare const trustForms: FormList;
|
|
4
4
|
export declare const trustConstitutionalDocumentFormId: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '
|
|
2
|
-
import type { CapabilityName } from '
|
|
3
|
-
import type { ExistingLegalEntity, LegalEntity } from '
|
|
4
|
-
import type { CountryCode } from '
|
|
5
|
-
import type { FormModel } from '
|
|
6
|
-
import type { DocumentUploadSchema } from '
|
|
7
|
-
import type { DropinAPIHandlers, DropinProps } from '
|
|
8
|
-
import type { RegistrationAddressSchema } from '
|
|
1
|
+
import type { BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
|
+
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
3
|
+
import type { ExistingLegalEntity, LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
4
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
5
|
+
import type { FormModel } from '../../../../core/models/form';
|
|
6
|
+
import type { DocumentUploadSchema } from '../../../DocumentUpload/types';
|
|
7
|
+
import type { DropinAPIHandlers, DropinProps } from '../../../Dropins/types';
|
|
8
|
+
import type { RegistrationAddressSchema } from '../../../RegistrationAddress/types';
|
|
9
9
|
import type { TrustRegistrationDetailsSchema } from '../TrustRegistrationDetails/types';
|
|
10
10
|
export interface TrustSchema {
|
|
11
11
|
trustRegistrationDetails?: TrustRegistrationDetailsSchema;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '
|
|
2
|
-
import { TrustTypes } from '
|
|
3
|
-
import type { CountryCode } from '
|
|
4
|
-
import type { TranslationKey } from '
|
|
5
|
-
import type { BusinessRegistrationNumberSchema } from '
|
|
6
|
-
import type { DBANameFieldSchema } from '
|
|
7
|
-
import type { TaxIdSchema } from '
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
|
+
import { TrustTypes } from '../../../../core/models/api/trust-types-value';
|
|
3
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
4
|
+
import type { TranslationKey } from '../../../../language/types';
|
|
5
|
+
import type { BusinessRegistrationNumberSchema } from '../../../BusinessRegistrationNumber/types';
|
|
6
|
+
import type { DBANameFieldSchema } from '../../../DBANameField/types';
|
|
7
|
+
import type { TaxIdSchema } from '../../../TaxId/types';
|
|
8
8
|
export interface TrustRegistrationDetailsSchema extends BusinessRegistrationNumberSchema, TaxIdSchema, DBANameFieldSchema {
|
|
9
9
|
legalName?: string;
|
|
10
10
|
country?: CountryCode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ValidatorRules } from '
|
|
1
|
+
import type { ValidatorRules } from '../../../../utils/validation/types';
|
|
2
2
|
import type { TrustRegistrationDetailsSchema } from './types';
|
|
3
3
|
export declare const trustRegistrationDetailsValidations: ValidatorRules<TrustRegistrationDetailsSchema>;
|
|
4
4
|
export declare const trustRegistrationDetailsValidationsV4: ValidatorRules<TrustRegistrationDetailsSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RootTrustee, TrustMember } from '
|
|
1
|
+
import type { RootTrustee, TrustMember } from '../../tasks/TrustMembers/types';
|
|
2
2
|
import type { TrustRoleAndEntityTypeSchema } from './types';
|
|
3
3
|
export declare const convertExistingTrustMember: (trustMember: TrustMember) => TrustRoleAndEntityTypeSchema;
|
|
4
4
|
export declare const convertRootTrusteeTrustMember: (trustMember: RootTrustee) => TrustRoleAndEntityTypeSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrustMemberType } from '
|
|
2
|
-
import type { RootTrustee } from '
|
|
1
|
+
import type { TrustMemberType } from '../../../../core/models/api/trust-member-type';
|
|
2
|
+
import type { RootTrustee } from '../../tasks/TrustMembers/types';
|
|
3
3
|
export declare const getAvailableRolesByTrustMemberTypeAndLegalEntityType: (currentRoles: TrustMemberType[] | undefined, trustMember: RootTrustee) => readonly TrustMemberType[];
|
|
4
4
|
export declare const getAvailableRoles: (currentRoles: TrustMemberType[] | undefined) => readonly TrustMemberType[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '
|
|
2
|
-
import type { ExistingLegalEntity } from '
|
|
3
|
-
import { LegalEntityType } from '
|
|
4
|
-
import type { TrustMemberType } from '
|
|
5
|
-
import type { CountryCode } from '
|
|
6
|
-
import type { CompanyNameAndCountrySchema } from '
|
|
7
|
-
import type { NameSchema } from '
|
|
8
|
-
import type { TrustMember } from '
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
3
|
+
import { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
4
|
+
import type { TrustMemberType } from '../../../../core/models/api/trust-member-type';
|
|
5
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
6
|
+
import type { CompanyNameAndCountrySchema } from '../../../CompanyNameAndCountry/types';
|
|
7
|
+
import type { NameSchema } from '../../../Name/types';
|
|
8
|
+
import type { TrustMember } from '../../tasks/TrustMembers/types';
|
|
9
9
|
export declare const trustMemberLegalEntityTypes: readonly [LegalEntityType.INDIVIDUAL, LegalEntityType.ORGANIZATION];
|
|
10
10
|
export declare const countriesWhereSettlorExemptionReasonNotApplicable: CountryCode[];
|
|
11
11
|
export type TrustMemberLegalEntityType = (typeof trustMemberLegalEntityTypes)[number];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ValidatorRules } from '
|
|
1
|
+
import type { ValidatorRules } from '../../../../utils/validation/types';
|
|
2
2
|
import type { TrustRoleAndEntityTypeSchema } from './types';
|
|
3
3
|
export declare const roleAndTypeValidationRules: ValidatorRules<TrustRoleAndEntityTypeSchema>;
|
package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Language } from '../../../../language/Language';
|
|
2
|
+
import type { SummaryOf } from '../../../Summary/types';
|
|
3
|
+
import type { TrustMember } from '../TrustMembers/types';
|
|
4
|
+
import type { TrustRoleAndEntityTypeSchema } from '../../forms/TrustRoleAndEntityType/types';
|
|
5
|
+
export declare const formatRoleAndEntityTypeSummary: (data: TrustMember, i18n: Language, isOrganizationSettlorWithExemptionEnabled: boolean | undefined) => SummaryOf<TrustRoleAndEntityTypeSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ExistingLegalEntity } from '
|
|
2
|
-
import type { CountryCode } from '
|
|
3
|
-
import type { CompanyTrustMember, RegularTrustMember, TrustMember } from '
|
|
4
|
-
import type { TrustRoleAndEntityTypeSchema } from '../../TrustRoleAndEntityType/types';
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
|
+
import type { CompanyTrustMember, RegularTrustMember, TrustMember } from '../TrustMembers/types';
|
|
4
|
+
import type { TrustRoleAndEntityTypeSchema } from '../../forms/TrustRoleAndEntityType/types';
|
|
5
5
|
export interface RoleAndTypeDropinProps {
|
|
6
6
|
existingTrustMember?: TrustMember;
|
|
7
7
|
navigateToFullDropinFor(trustMember: RegularTrustMember | CompanyTrustMember): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TrustDropinProps } from '../../Trust/types';
|
|
1
|
+
import type { TrustDropinProps } from '../../forms/Trust/types';
|
|
2
2
|
export declare function TrustDropin({ parentLegalEntity, capabilities, country, legalEntityResponse, handleCreateLegalEntity, handleUpdateLegalEntity, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, taskType, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideSidebar, handleHomeClick, }: TrustDropinProps): import("preact").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { LegalEntityType } from '
|
|
2
|
-
import type { TrustMemberType, TrustMemberTypes } from '
|
|
3
|
-
import type { CountryCode } from '
|
|
4
|
-
import type { IsNewEntity } from '
|
|
5
|
-
import type { SettlorExemptionReason, TrustMemberLegalEntityType } from '
|
|
1
|
+
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
2
|
+
import type { TrustMemberType, TrustMemberTypes } from '../../../../core/models/api/trust-member-type';
|
|
3
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
4
|
+
import type { IsNewEntity } from '../../../../utils/isNewEntity';
|
|
5
|
+
import type { SettlorExemptionReason, TrustMemberLegalEntityType } from '../../forms/TrustRoleAndEntityType/types';
|
|
6
6
|
/**
|
|
7
7
|
* The top level legal entity that the trust LE is associated to.
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '
|
|
2
|
-
import type { CompanyTrustMember, ExemptSettlor, RegularTrustMember, RootTrustee } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { CompanyTrustMember, ExemptSettlor, RegularTrustMember, RootTrustee } from '../tasks/TrustMembers/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
export declare const addOrUpdateAssociatedTrustMember: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
newOrUpdated: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '
|
|
2
|
-
import type { UndefinedBeneficiary } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { UndefinedBeneficiary } from '../tasks/TrustMembers/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
export declare const addOrUpdateUndefinedBeneficiary: ({ newOrUpdated, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
newOrUpdated: UndefinedBeneficiary;
|
package/dist/types/{utils/trustMembers/handlers → components/Trust/utils}/createExemptSettlor.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '
|
|
2
|
-
import type { ExemptSettlor } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { ExemptSettlor } from '../tasks/TrustMembers/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
export declare const createExemptSettlor: ({ exemptSettlor, trust, handleCreateLegalEntity, }: {
|
|
5
5
|
exemptSettlor: ExemptSettlor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '
|
|
2
|
-
import type { CompanyTrustMember, ExemptSettlor, RegularTrustMember } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { CompanyTrustMember, ExemptSettlor, RegularTrustMember } from '../tasks/TrustMembers/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
export declare const deleteAssociatedTrustMember: ({ associatedTrustMember, trust, handleUpdateLegalEntity, }: {
|
|
5
5
|
associatedTrustMember: RegularTrustMember | CompanyTrustMember | ExemptSettlor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropinAPIHandlers } from '
|
|
2
|
-
import type { UndefinedBeneficiary } from '
|
|
1
|
+
import type { DropinAPIHandlers } from '../../Dropins/types';
|
|
2
|
+
import type { UndefinedBeneficiary } from '../tasks/TrustMembers/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
/**
|
|
5
5
|
* Undefined Beneficiaries are not entity associations,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TrustMember } from '../
|
|
2
|
-
import type { TrustTypeOption } from '../
|
|
3
|
-
import type { ExistingLegalEntity, LegalEntity } from '
|
|
4
|
-
import type { LegalEntityAssociation } from '
|
|
5
|
-
import type { CountryCode } from '
|
|
6
|
-
import type { CapabilityProblems } from '
|
|
7
|
-
import type { EntityProblems } from '
|
|
1
|
+
import type { TrustMember } from '../tasks/TrustMembers/types';
|
|
2
|
+
import type { TrustTypeOption } from '../forms/TrustRegistrationDetails/types';
|
|
3
|
+
import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
|
+
import type { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
|
|
5
|
+
import type { CountryCode } from '../../../core/models/country-code';
|
|
6
|
+
import type { CapabilityProblems } from '../../../core/models/errors/capability-problems';
|
|
7
|
+
import type { EntityProblems } from '../../../core/models/errors/entity-problems';
|
|
8
8
|
export declare const isPartOfTrustFromLegalEntity: (legalEntity: LegalEntity) => boolean;
|
|
9
9
|
export declare const getOwnTrustMembers: (rootLegalEntity: ExistingLegalEntity) => LegalEntityAssociation[];
|
|
10
10
|
export declare const getOwnTrustMembersLegalEntityIds: (rootLegalEntity: ExistingLegalEntity) => string[];
|