@adyen/kyc-components 3.54.2 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{B4MFY5CR-BuYu03kz.js → B4MFY5CR-BnabZiPw.js} +1 -1
- package/dist/es/{HO4MOOFI-2gy36lPR.js → HO4MOOFI-CbQXxCI7.js} +2 -2
- package/dist/es/{HUY7CZI3-CHko2UyX.js → HUY7CZI3-C5Xiww-6.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-DQEdl1Ya.js → index-ejaIsAw5.js} +47041 -53314
- package/dist/style.css +2437 -2441
- package/dist/types/api/address/useAddressCleanse.d.ts +4 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +1 -1
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +12 -0
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -1
- package/dist/types/api/useSourceOfFunds.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +2 -2
- package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +2 -2
- package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +3 -3
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankVerification/validate.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +3 -3
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +4 -4
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +3 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard.d.ts +1 -1
- package/dist/types/components/Business/forms/Company/rules.d.ts +1 -1
- package/dist/types/components/Business/forms/Company/types.d.ts +2 -2
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +2 -2
- package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +7 -7
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/tasks/CompanyDropin/types.d.ts +2 -2
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +2 -2
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +2 -2
- package/dist/types/components/EFP/hooks/useSourceOfFundsTaskStatus.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +5 -4
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +6 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +10 -10
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +8 -9
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/validate.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +0 -2
- package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/utils.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +5 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/validate.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -4
- package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -1
- package/dist/types/components/Individual/forms/Individual/IndividualExperimentWrapper.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +5 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/DriversLicense.d.ts +4 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +2 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +10 -10
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +14 -14
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +7 -5
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +2 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +6 -6
- package/dist/types/components/Individual/hooks/useShowMotionCapture.d.ts +13 -0
- package/dist/types/components/Shared/DropinLayout/types.d.ts +3 -4
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +2 -2
- package/dist/types/components/Shared/FormNavigation/types.d.ts +1 -1
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/FieldContainer.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/validate.d.ts +2 -2
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +3 -3
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +5 -5
- package/dist/types/components/SoleProprietorship/forms/SoleProp/types.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +2 -2
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
- package/dist/types/components/index.d.ts +7 -7
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +3 -2
- package/dist/types/components/ui/atoms/List/List.d.ts +9 -3
- package/dist/types/components/ui/atoms/MaskedInput/MaskedInput.d.ts +3 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +2 -2
- package/dist/types/components/ui/molecules/DocumentGuidance/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/FormEndState/types.d.ts +1 -1
- package/dist/types/core/UIElement/UIElement.d.ts +3 -3
- package/dist/types/core/analytics.d.ts +1 -5
- package/dist/types/core/context/ApiContext/ApiProvider.d.ts +6 -4
- package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -1
- package/dist/types/core/context/CoreContext/CoreContext.d.ts +2 -2
- package/dist/types/core/context/ExperimentContext/types.d.ts +1 -2
- package/dist/types/core/context/FormContext/FormContextProvider.d.ts +1 -1
- package/dist/types/core/context/FormContext/types.d.ts +1 -1
- package/dist/types/core/context/FormContext/useFormContext.d.ts +1 -1
- package/dist/types/core/context/I18nProvider/I18nProvider.d.ts +1 -1
- package/dist/types/core/context/StateContext/types.d.ts +6 -6
- package/dist/types/core/core.d.ts +1 -1
- package/dist/types/core/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
- package/dist/types/core/hooks/useAnalytics.d.ts +1 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/core/hooks/useComponentApi.d.ts +0 -1
- package/dist/types/core/hooks/useForm/types.d.ts +2 -2
- package/dist/types/core/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/core/hooks/useMultiForm/reducer.d.ts +1 -1
- package/dist/types/core/hooks/useMultiForm/types.d.ts +1 -1
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/core/models/api/get-configuration.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +2 -2
- package/dist/types/core/models/api/view-verification-status.d.ts +2 -8
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +1 -1
- package/dist/types/core/models/form-rules.d.ts +2 -2
- package/dist/types/core/models/payout-account.d.ts +2 -2
- package/dist/types/core/process-field-configurations.d.ts +7 -7
- package/dist/types/core/services/componentApi/open-singpass-authorization-link.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +2 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -1
- package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/stores/globalStore/StoreProvider.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +4 -4
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +7 -5
- package/dist/types/stores/globalStore/globalStore.d.ts +8 -8
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/api/processValidationErrors.d.ts +1 -1
- package/dist/types/utils/birthDateUtils.d.ts +2 -2
- package/dist/types/utils/decisionMakerRoles.d.ts +1 -1
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -3
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +3 -3
- package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -1
- 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 +36 -30
- package/dist/types/utils/mapping/customerSupport/mapCustomerSupportSchemaToCustomerSupportType.d.ts +1 -1
- package/dist/types/utils/mapping/mapping.d.ts +8 -8
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +1 -1
- package/package.json +6 -15
- package/dist/types/api/useAddressCleanse.d.ts +0 -4
- package/dist/types/components/ui/atoms/List/List.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +0 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.types.d.ts +0 -6
- package/dist/types/core/services/componentApi/generate-onboarding-link.d.ts +0 -3
package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { SourceOfFundsFinancierType } from '../../../../../core/models/api/source-of-funds';
|
|
2
1
|
import type { JSX } from 'preact';
|
|
2
|
+
import type { SourceOfFundsFinancierType } from '../../../../../core/models/api/source-of-funds';
|
|
3
|
+
import type { Translatable } from '../../../../../language/types';
|
|
3
4
|
export interface SOFFinancierModalProps {
|
|
4
5
|
handleModalClose: () => void;
|
|
5
6
|
financier?: SourceOfFundsFinancierType;
|
|
@@ -10,9 +11,9 @@ export interface SOFFinancierModalProps {
|
|
|
10
11
|
}) => void;
|
|
11
12
|
}
|
|
12
13
|
export interface SOFFinancierModalInputError {
|
|
13
|
-
firstName?:
|
|
14
|
-
lastName?:
|
|
15
|
-
location?:
|
|
16
|
-
amount?:
|
|
14
|
+
firstName?: Translatable;
|
|
15
|
+
lastName?: Translatable;
|
|
16
|
+
location?: Translatable;
|
|
17
|
+
amount?: Translatable;
|
|
17
18
|
}
|
|
18
19
|
export declare const SOFFinancierModal: (props: SOFFinancierModalProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { SourceOfFundsSchema } from '../types';
|
|
2
|
-
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
3
1
|
import type { ExistingLegalEntity } from '../../../../../core/models/api/legal-entity';
|
|
4
2
|
import type { Problem } from '../../../../../core/models/api/problem';
|
|
3
|
+
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
4
|
+
import type { SourceOfFundsSchema } from '../types';
|
|
5
5
|
export interface SourceOfFundsGettingStartedProps {
|
|
6
6
|
handleCancelClick?: () => void;
|
|
7
7
|
handleSourceOfFundsClick: (SoF: SourceOfFundsSchema, businessLine: BusinessLinesType) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
2
1
|
import type { DocumentApiUtils } from '#utils/api/documentUtils';
|
|
2
|
+
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
3
3
|
export interface SOFUploadModalProps {
|
|
4
4
|
handleModalClose: () => void;
|
|
5
5
|
legalEntityId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
2
1
|
import type { DocumentApiUtils } from '#utils/api/documentUtils';
|
|
3
2
|
import type { ExistingLegalEntity } from '../../../../../core/models/api/legal-entity';
|
|
3
|
+
import type { BusinessLinesType } from '../../../../../core/models/api/source-of-funds';
|
|
4
4
|
export interface SourceOfFundsUploadProps {
|
|
5
5
|
businessLines: BusinessLinesType[];
|
|
6
6
|
documentUtils: DocumentApiUtils;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
2
|
-
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
3
|
-
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
4
|
-
import type { FormModel } from '../../../../core/models/form';
|
|
5
|
-
import type { EntityProblems } from '../../../../core/models/errors/entity-problems';
|
|
6
|
-
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
7
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
8
|
-
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
9
|
-
import type { BusinessLinesType, SourceOfFundsAmount, SourceOfFundsCategoryType, SourceOfFundsFinancierType } from '../../../../core/models/api/source-of-funds';
|
|
10
1
|
import type { FormUtils } from '#utils/formUtils';
|
|
11
2
|
import type { ValidationRuleResult, ValidatorMode } from '#utils/validation/types';
|
|
3
|
+
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
4
|
+
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
12
5
|
import type { DataSet } from '../../../../core/models/api/data-set';
|
|
13
|
-
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
14
6
|
import type { Individual } from '../../../../core/models/api/individual';
|
|
7
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
8
|
+
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
15
9
|
import type { Organization } from '../../../../core/models/api/organization';
|
|
10
|
+
import type { BusinessLinesType, SourceOfFundsAmount, SourceOfFundsCategoryType, SourceOfFundsFinancierType } from '../../../../core/models/api/source-of-funds';
|
|
11
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
12
|
+
import type { EntityProblems } from '../../../../core/models/errors/entity-problems';
|
|
13
|
+
import type { FormModel } from '../../../../core/models/form';
|
|
14
|
+
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
15
|
+
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
16
16
|
export interface SourceOfFundsProps extends BaseOuterFormProps<SourceOfFundsSchema> {
|
|
17
17
|
activeForm?: FormModel;
|
|
18
18
|
sourceOfFundsType?: SourceOfFundsCategoryType | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { SourceOfFundsAdditionalDataSchema, SourceOfFundsTypeSchema, OriginatorTypeUnion, SOFOriginatorPayload } from './types';
|
|
2
|
-
import type { SourceOfFundsCategoryType, BusinessLinesServiceType, SourceOfFundsFinancierType, BusinessLinesType, SourceOfFundsPayloadType, SourceOfFundsType } from '../../../../core/models/api/source-of-funds';
|
|
3
|
-
import type { SelectItem } from '../../../ui/atoms/Select/Select.types';
|
|
4
|
-
import type { SOFFinancierModalInputError } from './SOFAdditionalData/SOFFinancierModal';
|
|
5
|
-
import type { Language } from '../../../../language/Language';
|
|
6
|
-
import type { TranslationKey } from '../../../../language/types';
|
|
7
|
-
import type { DescriptionType } from '../../../ui/atoms/Description/Description';
|
|
8
1
|
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
9
2
|
import type { Problem } from '../../../../core/models/api/problem';
|
|
3
|
+
import type { BusinessLinesServiceType, BusinessLinesType, SourceOfFundsCategoryType, SourceOfFundsFinancierType, SourceOfFundsPayloadType, SourceOfFundsType } from '../../../../core/models/api/source-of-funds';
|
|
10
4
|
import type { VerificationError } from '../../../../core/models/api/verification-error';
|
|
5
|
+
import type { Language } from '../../../../language/Language';
|
|
6
|
+
import type { TranslationKey } from '../../../../language/types';
|
|
7
|
+
import type { DescriptionType } from '../../../ui/atoms/Description/Description';
|
|
8
|
+
import type { SelectItem } from '../../../ui/atoms/Select/Select.types';
|
|
9
|
+
import type { SOFFinancierModalInputError } from './SOFAdditionalData/SOFFinancierModal';
|
|
10
|
+
import type { OriginatorTypeUnion, SOFOriginatorPayload, SourceOfFundsAdditionalDataSchema, SourceOfFundsTypeSchema } from './types';
|
|
11
11
|
export declare const allowedCurrencies: SelectItem[];
|
|
12
12
|
export declare const SOF_CHARACTERS_LIMIT = 200;
|
|
13
13
|
export declare const TODAY_DATE: string;
|
|
@@ -39,12 +39,11 @@ export declare const getSourceOfFundsRequiredForms: (data?: SourceOfFundsTypeSch
|
|
|
39
39
|
readonly fields: string[];
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
export declare const getInputErrors: ({ formErrors, data, key, value,
|
|
42
|
+
export declare const getInputErrors: ({ formErrors, data, key, value, }: {
|
|
43
43
|
formErrors?: SOFFinancierModalInputError;
|
|
44
44
|
data?: SourceOfFundsFinancierType;
|
|
45
45
|
key: string;
|
|
46
46
|
value?: string | number | undefined;
|
|
47
|
-
i18n: Language;
|
|
48
47
|
}) => SOFFinancierModalInputError;
|
|
49
48
|
export declare const getPageHeadings: (type: SourceOfFundsCategoryType) => {
|
|
50
49
|
heading: TranslationKey;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceOfFundsAdditionalDataSchema, SourceOfFundsTypeSchema } from './types';
|
|
2
1
|
import type { ValidatorRules } from '#utils/validation/types';
|
|
2
|
+
import type { SourceOfFundsAdditionalDataSchema, SourceOfFundsTypeSchema } from './types';
|
|
3
3
|
export declare const sourceOfFundsTypeValidations: ValidatorRules<SourceOfFundsTypeSchema>;
|
|
4
4
|
export declare const sourceOfFundsAdditionalDataValidations: ValidatorRules<SourceOfFundsAdditionalDataSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RequireAtLeastOne } from 'type-fest';
|
|
2
|
-
import type { TaskTypes } from '../../Shared/tasks/TaskList/types';
|
|
3
2
|
import type { IndividualSchema } from '../../Individual/forms/Individual/types';
|
|
3
|
+
import type { TaskTypes } from '../../Shared/tasks/TaskList/types';
|
|
4
4
|
interface CreateIndividualComponentPropsBase {
|
|
5
5
|
taskType?: TaskTypes;
|
|
6
6
|
onSubmitSuccess?(data: IndividualSchema): void;
|
package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type { ExistingLegalEntity, LegalEntity, PatchLegalEntity } from '../../.
|
|
|
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 } from '../../../../core/models/api/view-verification-status';
|
|
14
13
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
15
14
|
import type { Language } from '../../../../language/Language';
|
|
16
15
|
import type { TranslationKey } from '../../../../language/types';
|
|
@@ -69,7 +68,6 @@ export interface DropinAPIHandlers {
|
|
|
69
68
|
handleRefreshCompanyDataset?(data: CompanyDatasetRequest): Promise<CompanyDatasetResponse>;
|
|
70
69
|
handleVerifyTin?(data: TinVerificationRequest): Promise<TinVerificationResponse>;
|
|
71
70
|
handleClearCompanyData?(): Promise<void>;
|
|
72
|
-
handleGenerateOnboardingLink?(config: OnboardingLinkConfig): Promise<OnboardingLinkResponse>;
|
|
73
71
|
handleOpenSingpassAuthorizationLink?(): Promise<SingpassLinkResponse>;
|
|
74
72
|
handleCreateTrustedTransferInstrument?(code: string, state: string): Promise<CreateTrustedTransferInstrumentResponse>;
|
|
75
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HighExposureCustomLabels, HighExposureSchema, HighExposureSummaryType } from '../../EFP/tasks/HighExposureDropin/types';
|
|
2
1
|
import type { DatasetUtil } from '#utils/datasetUtil';
|
|
3
2
|
import type { Language } from '../../../language/Language';
|
|
3
|
+
import type { HighExposureCustomLabels, HighExposureSchema, HighExposureSummaryType } from '../../EFP/tasks/HighExposureDropin/types';
|
|
4
4
|
export declare const customLabels: HighExposureCustomLabels;
|
|
5
5
|
export declare const getTranslatedLegalInsolvency: (i18n: Language, insolvencyData?: string) => string;
|
|
6
6
|
export declare const getFormattedAmount: (value?: string, currency?: string) => string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import type { OnboardingRedirectContent } from '../../../core/models/api/view-verification-status';
|
|
2
1
|
import { OnboardingStatus } from '../../../core/models/api/view-verification-status';
|
|
2
|
+
import type { TranslationKey } from '../../../language/types';
|
|
3
|
+
export interface OnboardingRedirectContent {
|
|
4
|
+
description: TranslationKey[];
|
|
5
|
+
ctaButton?: TranslationKey;
|
|
6
|
+
}
|
|
3
7
|
export declare function getContentByStatus(status: OnboardingStatus): OnboardingRedirectContent | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
2
|
import type { DecisionMakerType } from '../../../../core/models/api/decision-maker-type';
|
|
3
|
-
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
4
3
|
import type { LegalEntityAssociation } from '../../../../core/models/api/legal-entity-association';
|
|
5
4
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
5
|
+
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
6
6
|
export interface DecisionMakerRoleSchema {
|
|
7
7
|
role?: DecisionMakerType[];
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { NomineeDecisionMakerRoleSchema } from './types';
|
|
2
1
|
import type { ValidatorRules } from '#utils/validation/types';
|
|
2
|
+
import type { NomineeDecisionMakerRoleSchema } from './types';
|
|
3
3
|
export declare const nomineeDecisionMakerRoleValidationRules: ValidatorRules<NomineeDecisionMakerRoleSchema>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ConfigurationApi } from '../../../../core/context/ConfigurationApiContext/ConfigurationApiContext';
|
|
2
1
|
import type { AsyncValidatorRules } from '#utils/validation/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
|
+
import type { ConfigurationApi } from '../../../../core/context/ConfigurationApiContext/ConfigurationApiContext';
|
|
5
3
|
import type { FieldMetadata } from '../../../../core/models/country-config';
|
|
6
4
|
import type { NoParams, PerCountryFieldConfig } from '../../../../core/models/field-configurations';
|
|
7
|
-
import type {
|
|
5
|
+
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
8
6
|
import type { IdentitySchema } from '../../forms/Individual/PersonalDetails/Identity/types';
|
|
7
|
+
import type { PersonalDetailsSchema } from '../../forms/Individual/PersonalDetails/types';
|
|
8
|
+
import type { IdentityNumberSchema } from './type';
|
|
9
9
|
export declare const getAsyncIdNumberValidationRule: (verifyIdNumber: ConfigurationApi["verifyIdNumber"], personalDetails?: PersonalDetailsSchema) => AsyncValidatorRules<IdentityNumberSchema>;
|
|
10
10
|
export interface FieldConfigParams {
|
|
11
11
|
idNumberType?: IndividualIdNumberType | 'idNumber';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { defaultFieldConfig } from './fieldConfig';
|
|
2
|
-
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
3
1
|
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
4
2
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
|
+
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
4
|
+
import type { defaultFieldConfig } from './fieldConfig';
|
|
5
5
|
export interface IdentityNumberSchema {
|
|
6
6
|
idNumber?: string;
|
|
7
7
|
idNumberExempt?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { UserDetails } from '../IdVerification/types';
|
|
2
|
-
import type { IdVerificationMethodType } from '../IdVerificationMethod/types';
|
|
3
1
|
import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types';
|
|
2
|
+
import { DocumentType } from '../../../../../core/models/api/document';
|
|
4
3
|
import type { FileSchema } from '../../../../../core/models/file';
|
|
5
4
|
import type { TranslationKey } from '../../../../../language/types';
|
|
6
5
|
import type { DropinAPIHandlers } from '../../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
7
|
-
import {
|
|
6
|
+
import type { UserDetails } from '../IdVerification/types';
|
|
7
|
+
import type { IdVerificationMethodType } from '../IdVerificationMethod/types';
|
|
8
8
|
export interface IdDocumentUploadSchema {
|
|
9
9
|
idDocumentType?: DocumentType;
|
|
10
10
|
idFrontPage?: FileSchema[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IdVerificationMethodType } from './types';
|
|
2
|
-
import type { SvgName } from '../../../../ui/atoms/Svg/Svg';
|
|
3
1
|
import type { TranslationKey } from '../../../../../language/types';
|
|
2
|
+
import type { SvgName } from '../../../../ui/atoms/Svg/Svg';
|
|
3
|
+
import type { IdVerificationMethodType } from './types';
|
|
4
4
|
interface IdVerificationMethodMetadata {
|
|
5
5
|
name: TranslationKey;
|
|
6
6
|
description: TranslationKey;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
|
|
2
1
|
import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types';
|
|
3
2
|
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
3
|
+
import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
|
|
4
4
|
export declare const idVerificationMethods: readonly ["instantVerification", "manualVerification"];
|
|
5
|
+
export declare const instantIdVerificationMethods: readonly ["instantVerification"];
|
|
5
6
|
export type IdVerificationMethodType = (typeof idVerificationMethods)[number];
|
|
6
7
|
export interface IdVerificationMethodSchema {
|
|
7
8
|
idVerificationMethod: IdVerificationMethodType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { IndividualDropinProps } from './types';
|
|
2
1
|
import type { IndividualOnfidoDropinProps } from '../IndividualOnfido/IndividualOnfido.types';
|
|
2
|
+
import type { IndividualDropinProps } from './types';
|
|
3
3
|
export declare const IndividualExperimentWrapper: (props: IndividualDropinProps | IndividualOnfidoDropinProps) => import("preact").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
2
|
-
import type { IdentityNumberSchema } from '../../../../../fields/IdentityNumber/type';
|
|
3
|
-
import type { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../../../../ui/atoms/Select/Select.types';
|
|
4
1
|
import type { FormUtils } from '#utils/formUtils';
|
|
2
|
+
import type { Translatable } from '../../../../../../../language/types';
|
|
3
|
+
import type { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../../../../ui/atoms/Select/Select.types';
|
|
4
|
+
import type { IdentityNumberSchema } from '../../../../../fields/IdentityNumber/type';
|
|
5
|
+
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
5
6
|
interface AuDriversLicenseSchema {
|
|
6
7
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
7
8
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -16,7 +17,7 @@ interface DriversLicenseProps {
|
|
|
16
17
|
onCardNumberBlur: (event: Event) => void;
|
|
17
18
|
formUtils: FormUtils<AuDriversLicenseSchema>;
|
|
18
19
|
isValid: Record<keyof AuDriversLicenseSchema, boolean>;
|
|
19
|
-
errorMessages: Record<keyof AuDriversLicenseSchema,
|
|
20
|
+
errorMessages: Record<keyof AuDriversLicenseSchema, Translatable | boolean>;
|
|
20
21
|
shouldValidate?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare const DriversLicense: ({ driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
2
|
-
import type { IdentityNumberSchema } from '../../../../../fields/IdentityNumber/type';
|
|
3
1
|
import type { FormUtils } from '#utils/formUtils';
|
|
2
|
+
import type { Translatable } from '../../../../../../../language/types';
|
|
3
|
+
import type { IdentityNumberSchema } from '../../../../../fields/IdentityNumber/type';
|
|
4
|
+
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
4
5
|
interface NZDriversLicenseSchema {
|
|
5
6
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
6
7
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -13,7 +14,7 @@ interface DriversLicenseProps {
|
|
|
13
14
|
onCardNumberBlur: (event: Event) => void;
|
|
14
15
|
formUtils: FormUtils<NZDriversLicenseSchema>;
|
|
15
16
|
isValid: Record<keyof NZDriversLicenseSchema, boolean>;
|
|
16
|
-
errorMessages: Record<keyof NZDriversLicenseSchema,
|
|
17
|
+
errorMessages: Record<keyof NZDriversLicenseSchema, Translatable | boolean>;
|
|
17
18
|
shouldValidate?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { Translatable } from '../../../../../../../language/types';
|
|
1
2
|
import type { IndividualIdNumberOption, IndividualIdNumberType } from '../../../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
3
|
export interface TypeOfIdentityProps {
|
|
3
4
|
availableIdentityTypesOptions: readonly IndividualIdNumberOption[];
|
|
4
5
|
selectedIdentityType: IndividualIdNumberType | undefined;
|
|
5
6
|
setSelectedIdentityType: (type: IndividualIdNumberType) => void;
|
|
6
|
-
errorMessage:
|
|
7
|
+
errorMessage: Translatable | boolean;
|
|
7
8
|
isValid: boolean;
|
|
8
9
|
label?: string;
|
|
9
10
|
}
|
package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IdentityNumberSchema } from '../../../../fields/IdentityNumber/type';
|
|
2
|
-
import type { IndividualIdNumberType } from '../../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
3
1
|
import type { BaseInnerFormProps } from '../../../../../../core/hooks/useForm/types';
|
|
2
|
+
import type { IndividualIdNumberType } from '../../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
3
|
+
import type { IdentityNumberSchema } from '../../../../fields/IdentityNumber/type';
|
|
4
4
|
export interface AdditionalIdentityInfoSchema {
|
|
5
5
|
typeOfIdentity?: IndividualIdNumberType;
|
|
6
6
|
issuerState?: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NameSchema } from '../../../../Shared/fields/Name/types';
|
|
3
|
-
import type { AdditionalIdentityInfoSchema } from './Identity/types';
|
|
4
|
-
import type { DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema } from '../../../fields/DecisionMakerRole/types';
|
|
5
|
-
import type { ContactDetailsSchema } from '../../../../Shared/forms/ContactDetails/types';
|
|
6
|
-
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
7
|
-
import type { LegalEntityAssociation, LegalRepresentativeRelationshipType } from '../../../../../core/models/api/legal-entity-association';
|
|
1
|
+
import type { ValidationRuleResults, ValidatorMode } from '#utils/validation/types';
|
|
8
2
|
import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types';
|
|
9
|
-
import type { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
|
|
10
3
|
import type { DecisionMakerType } from '../../../../../core/models/api/decision-maker-type';
|
|
11
4
|
import type { ExistingLegalEntity } from '../../../../../core/models/api/legal-entity';
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
5
|
+
import type { LegalEntityAssociation, LegalRepresentativeRelationshipType } from '../../../../../core/models/api/legal-entity-association';
|
|
6
|
+
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
14
7
|
import type { TranslationKey } from '../../../../../language/types';
|
|
8
|
+
import type { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
|
|
9
|
+
import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
10
|
+
import type { NameSchema } from '../../../../Shared/fields/Name/types';
|
|
11
|
+
import type { ContactDetailsSchema } from '../../../../Shared/forms/ContactDetails/types';
|
|
12
|
+
import type { DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema } from '../../../fields/DecisionMakerRole/types';
|
|
13
|
+
import type { IdentityNumberSchema } from '../../../fields/IdentityNumber/type';
|
|
14
|
+
import type { AdditionalIdentityInfoSchema } from './Identity/types';
|
|
15
15
|
export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, NomineeDecisionMakerRoleSchema, ContactDetailsSchema {
|
|
16
16
|
birthDate?: string;
|
|
17
17
|
residencyCountry?: CountryCode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { PersonalDetailsSchema } from './types';
|
|
2
1
|
import type { ValidatorRules } from '#utils/validation/types';
|
|
3
|
-
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
4
2
|
import type { ExperimentName } from '../../../../../core/context/ExperimentContext/types';
|
|
5
3
|
import type { BooleanSettingName } from '../../../../../core/context/SettingsContext/types';
|
|
4
|
+
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
5
|
+
import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
|
|
6
6
|
import { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
|
|
7
7
|
import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
8
|
-
import type {
|
|
8
|
+
import type { PersonalDetailsSchema } from './types';
|
|
9
9
|
export declare const personalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, phonePrefix, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, }: {
|
|
10
10
|
country: CountryCode;
|
|
11
11
|
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CountryCode } from '../../../../core/models/country-code';
|
|
2
1
|
import { DecisionMakerType } from '../../../../core/models/api/decision-maker-type';
|
|
2
|
+
import type { CountryCode } from '../../../../core/models/country-code';
|
|
3
3
|
import type { FormRules } from '../../../../core/models/form-rules';
|
|
4
4
|
import type { IndividualSchema } from './types';
|
|
5
5
|
export declare const SOLE_PROP_COUNTRIES: CountryCode[];
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
2
|
-
import type { PersonalDetailsSchema } from './PersonalDetails/types';
|
|
3
|
-
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
4
|
-
import type { ContactDetailsSchema } from '../../../Shared/forms/ContactDetails/types';
|
|
5
|
-
import type { IdDocumentUploadSchema } from './IdDocumentUpload/types';
|
|
6
|
-
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
7
|
-
import type { IdVerificationMethodSchema } from './IdVerificationMethod/types';
|
|
8
|
-
import type { NomineeDecisionMakerRoleSchema } from '../../fields/DecisionMakerRole/types';
|
|
9
1
|
import type { BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
10
|
-
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../../../core/models/api/instant-id-verification';
|
|
11
|
-
import type { FormModel } from '../../../../core/models/form';
|
|
12
|
-
import type { EntityProblems } from '../../../../core/models/errors/entity-problems';
|
|
13
|
-
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
14
2
|
import type { DecisionMakerType } from '../../../../core/models/api/decision-maker-type';
|
|
3
|
+
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../../../core/models/api/instant-id-verification';
|
|
15
4
|
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
16
|
-
import type { AccountHolderOption } from '../../../../core/types/AccountHolder.types';
|
|
17
5
|
import type { LegalEntityAssociation } from '../../../../core/models/api/legal-entity-association';
|
|
18
|
-
import type { TrustMember } from '../../../Trust/tasks/TrustMembers/types';
|
|
19
6
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
7
|
+
import type { EntityProblems } from '../../../../core/models/errors/entity-problems';
|
|
8
|
+
import type { FormModel } from '../../../../core/models/form';
|
|
9
|
+
import type { AccountHolderOption } from '../../../../core/types/AccountHolder.types';
|
|
10
|
+
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
11
|
+
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
12
|
+
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
13
|
+
import type { ContactDetailsSchema } from '../../../Shared/forms/ContactDetails/types';
|
|
14
|
+
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
15
|
+
import type { TrustMember } from '../../../Trust/tasks/TrustMembers/types';
|
|
16
|
+
import type { NomineeDecisionMakerRoleSchema } from '../../fields/DecisionMakerRole/types';
|
|
17
|
+
import type { IdDocumentUploadSchema } from './IdDocumentUpload/types';
|
|
18
|
+
import type { IdVerificationMethodSchema } from './IdVerificationMethod/types';
|
|
19
|
+
import type { PersonalDetailsSchema } from './PersonalDetails/types';
|
|
20
20
|
export interface IndividualSchema {
|
|
21
21
|
personalDetails?: PersonalDetailsSchema;
|
|
22
22
|
address?: AddressSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdditionalPersonalDetailsProps, AdditionalPersonalDetailsSchema } from './AdditionalPersonalDetails.types';
|
|
2
2
|
export declare const additionalPersonalDetailsFields: Array<keyof AdditionalPersonalDetailsSchema>;
|
|
3
3
|
export declare function AdditionalPersonalDetails(props: Readonly<AdditionalPersonalDetailsProps>): import("preact").JSX.Element;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import type { ValidationRuleResults } from '#utils/validation/types';
|
|
1
2
|
import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types';
|
|
2
3
|
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
3
4
|
import type { TranslationKey } from '../../../../../language/types';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type { AdditionalIdentityInfoSchema } from './Identity/Identity.types';
|
|
5
|
+
import type { DropinAPIHandlers } from '../../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
6
|
+
import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
7
7
|
import type { AddressSchema } from '../../../../Shared/forms/Address/types';
|
|
8
8
|
import type { RegistrationAddressSchema } from '../../../../Shared/forms/RegistrationAddress/types';
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
9
|
+
import type { TaskTypes } from '../../../../Shared/tasks/TaskList/types';
|
|
10
|
+
import type { IdentityNumberSchema } from '../../../fields/IdentityNumber/type';
|
|
11
|
+
import type { AdditionalIdentityInfoSchema } from './Identity/Identity.types';
|
|
11
12
|
export interface AdditionalPersonalDetailsSchema extends AddressSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, RegistrationAddressSchema {
|
|
12
13
|
birthDate?: string;
|
|
13
14
|
residencyCountry?: CountryCode;
|
|
@@ -15,6 +16,7 @@ export interface AdditionalPersonalDetailsSchema extends AddressSchema, Identity
|
|
|
15
16
|
}
|
|
16
17
|
export interface AdditionalPersonalDetailsProps extends BaseInnerFormProps<AdditionalPersonalDetailsSchema> {
|
|
17
18
|
country: CountryCode;
|
|
19
|
+
taskType?: TaskTypes;
|
|
18
20
|
onResidencyCountryChange?(country: string): void;
|
|
19
21
|
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
20
22
|
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../../../core/hooks/useForm/types';
|
|
2
|
-
import type { IdentityNumberSchema } from '../../../../fields/IdentityNumber/type';
|
|
3
2
|
import type { IndividualIdNumberType } from '../../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
3
|
+
import type { IdentityNumberSchema } from '../../../../fields/IdentityNumber/type';
|
|
4
4
|
export interface AdditionalIdentityInfoSchema {
|
|
5
5
|
typeOfIdentity?: IndividualIdNumberType;
|
|
6
6
|
issuerState?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { Translatable } from '../../../../../../../language/types';
|
|
1
2
|
import type { IndividualIdNumberOption, IndividualIdNumberType } from '../../../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
3
|
export interface TypeOfIdentityProps {
|
|
3
4
|
availableIdentityTypesOptions: readonly IndividualIdNumberOption[];
|
|
4
5
|
selectedIdentityType: IndividualIdNumberType | undefined;
|
|
5
6
|
setSelectedIdentityType: (type: IndividualIdNumberType) => void;
|
|
6
|
-
errorMessage:
|
|
7
|
+
errorMessage: Translatable | boolean;
|
|
7
8
|
isValid: boolean;
|
|
8
9
|
label?: string;
|
|
9
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ValidatorRules } from '#utils/validation/types';
|
|
2
|
-
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
3
2
|
import type { ExperimentName } from '../../../../../core/context/ExperimentContext/types';
|
|
4
3
|
import type { BooleanSettingName } from '../../../../../core/context/SettingsContext/types';
|
|
5
|
-
import {
|
|
4
|
+
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
6
5
|
import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
|
|
7
|
-
import
|
|
6
|
+
import { TaskTypes } from '../../../../../stores/globalStore/taskTypes';
|
|
8
7
|
import type { IndividualIdNumberType } from '../../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
8
|
+
import type { AdditionalPersonalDetailsSchema } from './AdditionalPersonalDetails.types';
|
|
9
9
|
export declare const additionalPersonalDetailsValidators: ({ country, isExperimentEnabled, isSettingEnabled, taskType, idNumberType, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, }: {
|
|
10
10
|
country: CountryCode;
|
|
11
11
|
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm/types';
|
|
2
|
+
import type { DocumentDetail } from '../../../../../core/models/api/documentDetail';
|
|
3
|
+
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../../../../core/models/api/instant-id-verification';
|
|
2
4
|
import type { CountryCode } from '../../../../../core/models/country-code';
|
|
3
5
|
import type { FormVerificationErrors } from '../../../../../core/models/errors/form-verification-errors';
|
|
4
|
-
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../../../../core/models/api/instant-id-verification';
|
|
5
|
-
import type { DocumentDetail } from '../../../../../core/models/api/documentDetail';
|
|
6
6
|
import type { IdDocumentUploadSchema } from '../../Individual/IdDocumentUpload/types';
|
|
7
7
|
export type IdVerificationMethodType = 'instantVerification' | 'manualVerification';
|
|
8
8
|
export interface IdVerificationMethodSchema {
|
|
@@ -2,22 +2,22 @@ import type { BaseOuterFormProps } from '../../../../core/hooks/useForm/types';
|
|
|
2
2
|
import type { DecisionMakerType } from '../../../../core/models/api/decision-maker-type';
|
|
3
3
|
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../../../core/models/api/instant-id-verification';
|
|
4
4
|
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
5
|
-
import type { AccountHolderOption } from '../../../../core/types/AccountHolder.types';
|
|
6
5
|
import type { LegalEntityAssociation } from '../../../../core/models/api/legal-entity-association';
|
|
7
6
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
8
7
|
import type { EntityProblems } from '../../../../core/models/errors/entity-problems';
|
|
9
8
|
import type { FormModel } from '../../../../core/models/form';
|
|
9
|
+
import type { AccountHolderOption } from '../../../../core/types/AccountHolder.types';
|
|
10
10
|
import type { TaskTypes } from '../../../../stores/globalStore/taskTypes';
|
|
11
|
+
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
12
|
+
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
13
|
+
import type { ContactDetailsSchema } from '../../../Shared/forms/ContactDetails/types';
|
|
14
|
+
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
11
15
|
import type { TrustMember } from '../../../Trust/tasks/TrustMembers/types';
|
|
12
16
|
import type { NomineeDecisionMakerRoleSchema } from '../../fields/DecisionMakerRole/types';
|
|
13
17
|
import type { IdDocumentUploadSchema } from '../Individual/IdDocumentUpload/types';
|
|
14
18
|
import type { AdditionalPersonalDetailsSchema } from './AdditionalPersonalDetails/AdditionalPersonalDetails.types';
|
|
15
|
-
import type { IdVerificationMethodSchema } from './IdVerificationMethod/IdVerificationMethod.types';
|
|
16
19
|
import type { BasicDetailsSchema } from './BasicDetails/BasicDetails.types';
|
|
17
|
-
import type {
|
|
18
|
-
import type { ContactDetailsSchema } from '../../../Shared/forms/ContactDetails/types';
|
|
19
|
-
import type { DocumentUploadSchema } from '../../../Shared/forms/DocumentUpload/types';
|
|
20
|
-
import type { DropinAPIHandlers, DropinProps } from '../../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
20
|
+
import type { IdVerificationMethodSchema } from './IdVerificationMethod/IdVerificationMethod.types';
|
|
21
21
|
export interface IndividualOnfidoSchema {
|
|
22
22
|
basicDetails?: BasicDetailsSchema;
|
|
23
23
|
address?: AddressSchema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Capability, CapabilityName } from '../../../core/models/api/capability';
|
|
2
|
+
import { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
|
|
3
|
+
import { TaskTypes } from '../../../stores/globalStore/taskTypes';
|
|
4
|
+
export declare const showIndividualMotionCapture: import("@preact/signals-core").Signal<boolean>;
|
|
5
|
+
export declare const setShowIndividualMotionCapture: (showMotionCapture: boolean | undefined) => void;
|
|
6
|
+
interface UseShowMotionCaptureProps {
|
|
7
|
+
parentLegalEntityCapabilities?: Partial<Record<CapabilityName, Capability>>;
|
|
8
|
+
userRoles?: DecisionMakerType[];
|
|
9
|
+
allowedRolesForMotionCapture?: DecisionMakerType[];
|
|
10
|
+
taskType?: TaskTypes;
|
|
11
|
+
}
|
|
12
|
+
export declare const useShowMotionCapture: ({ parentLegalEntityCapabilities, userRoles, taskType, }: UseShowMotionCaptureProps) => boolean | undefined;
|
|
13
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { JSX } from 'preact';
|
|
2
|
-
import Element = JSX.Element;
|
|
1
|
+
import type { JSX } from 'preact';
|
|
3
2
|
export interface DropinLayoutProps {
|
|
4
|
-
content: Element;
|
|
5
|
-
footer?: Element;
|
|
3
|
+
content: JSX.Element;
|
|
4
|
+
footer?: JSX.Element;
|
|
6
5
|
onBack?: () => void;
|
|
7
6
|
onClose?: () => void;
|
|
8
7
|
open?: boolean;
|