@adyen/kyc-components 3.53.2 → 3.54.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-BoL9jlIT.js → B4MFY5CR-DDQAMInY.js} +1 -1
- package/dist/es/{HO4MOOFI-Cj7-DqRm.js → HO4MOOFI-UEN7mrZI.js} +2 -2
- package/dist/es/{HUY7CZI3-n6-nghz1.js → HUY7CZI3-C_axCv_G.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{bg-BG-DsUc0kup.js → bg-BG-C6dXuS6i.js} +50 -6
- package/dist/es/{cs-CZ-NpGjMJK8.js → cs-CZ-DTgiPcBZ.js} +50 -6
- package/dist/es/{da-DK-BRGhS3bB.js → da-DK-CwytgMXu.js} +50 -6
- package/dist/es/{de-DE-D9nZLQ7_.js → de-DE-CpeEfnmu.js} +50 -6
- package/dist/es/{el-GR-DMqNszvM.js → el-GR-D-o2oS4y.js} +50 -6
- package/dist/es/{es-ES-B2jnQ9gD.js → es-ES-DsZofunn.js} +52 -8
- package/dist/es/{et-EE-Dvv6jO9G.js → et-EE-C-XOI2Dk.js} +50 -6
- package/dist/es/{fi-FI-Dzbf9H8A.js → fi-FI-Cm0qkK7s.js} +50 -6
- package/dist/es/{fr-FR-odEoEWuS.js → fr-FR-Kx0Ugr8E.js} +50 -6
- package/dist/es/{hr-HR-CuytP6oL.js → hr-HR-DAym4ihz.js} +50 -6
- package/dist/es/{hu-HU-D4i2k96R.js → hu-HU-DEG7Sv6k.js} +50 -6
- package/dist/es/{index-DENuK0_N.js → index-DPsf1lQH.js} +18394 -17374
- package/dist/es/{it-IT-DbQib6EJ.js → it-IT-DFmXNpqy.js} +50 -6
- package/dist/es/{lt-LT-VjpHHZTz.js → lt-LT-DnJsgnDm.js} +50 -6
- package/dist/es/{lv-LV-H3bljn19.js → lv-LV-CLN3SjTi.js} +50 -6
- package/dist/es/{nl-NL-Df6Qaluo.js → nl-NL-Cp0Comlx.js} +50 -6
- package/dist/es/{no-NO-CnmJV2vm.js → no-NO-D5-hSFt4.js} +50 -6
- package/dist/es/{pl-PL-fRr9JmiA.js → pl-PL-XEE8HUq0.js} +50 -6
- package/dist/es/{pt-PT-h9NgXWgy.js → pt-PT-DGhgkS82.js} +50 -6
- package/dist/es/{ro-RO-37YDJPYt.js → ro-RO-DngmASTX.js} +50 -6
- package/dist/es/{sk-SK-DwgJLguO.js → sk-SK-CGweTnMy.js} +50 -6
- package/dist/es/{sl-SI-F0jZuNCm.js → sl-SI-DoETuyIR.js} +50 -6
- package/dist/es/{sv-SE-qitGfWdY.js → sv-SE-QSvsBy9i.js} +50 -6
- package/dist/style.css +118 -0
- package/dist/types/api/{useLegalEntity.d.ts → legalEntity/useLegalEntity.d.ts} +2 -2
- package/dist/types/api/{useOnboardingStatus.d.ts → onboardingStatus/useOnboardingStatus.d.ts} +2 -2
- package/dist/types/api/{usePciStatus.d.ts → pciTemplate/usePciStatus.d.ts} +2 -2
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -2
- package/dist/types/api/pciTemplate/useSignPci.d.ts +1 -2
- package/dist/types/api/termsOfService/useServiceAgreementAcceptanceInfos.d.ts +1 -2
- package/dist/types/api/termsOfService/useServiceAgreementStatus.d.ts +1 -1
- package/dist/types/api/useAddressCleanse.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/validate.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +2 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +0 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/Company/rules.d.ts +0 -12
- package/dist/types/components/Business/forms/CompanyStructure/validate.d.ts +1 -1
- package/dist/types/components/Business/forms/CompanyType/validate.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +2 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +2 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
- package/dist/types/components/Contract/tasks/PciDropin/validate.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/validate.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureDropin.d.ts +0 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/HighExposureDropin/validate.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataOriginatorLegalEntity.d.ts +2 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.d.ts +1 -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 +4 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/validate.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManagePCIComponent/ManagePCIComponent.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/ManageTermsOfServiceComponent/ManageTermsOfServiceComponent.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/utils.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +2 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/validate.d.ts +2 -3
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IndividualExperimentWrapper.d.ts +3 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +1 -1
- 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 +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -6
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +1 -6
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -9
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/IdentityHK/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +19 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.d.ts +3 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +26 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/ConfirmManualFlowModal/ConfirmManualFlowModal.d.ts +5 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/DeleteDocumentModal/DeleteDocumentModal.d.ts +5 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.d.ts +2 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +9 -6
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +2 -0
- package/dist/types/components/Shared/FormNavigation/types.d.ts +1 -1
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -1
- package/dist/types/components/Shared/SingpassSelection/SingpassSelection.d.ts +1 -13
- package/dist/types/components/Shared/Summary/types.d.ts +1 -1
- package/dist/types/components/Shared/devex/DebugWrapper/DebugTaskStatuses.d.ts +0 -5
- package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryField/validate.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/validate.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -8
- package/dist/types/components/Shared/fields/Name/validate.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +0 -3
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.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 +4 -7
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/validate.d.ts +6 -5
- package/dist/types/components/Shared/forms/Address/validate.formats.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -11
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -6
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +0 -1
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/ContactDetails/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddress.d.ts +0 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/validate.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/validate.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +0 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/validate.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/UndefinedBeneficiaryTaskItem.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
- package/dist/types/components/index.d.ts +4 -1
- package/dist/types/components/ui/atoms/MaskedInput/MaskedInput.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +2 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +1 -0
- package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +1 -1
- package/dist/types/core/EventEmitter.d.ts +1 -1
- package/dist/types/core/analytics.d.ts +1 -1
- package/dist/types/core/constants.d.ts +2 -1
- package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -1
- package/dist/types/core/context/ExpiryContext/ExpiryContext.d.ts +0 -1
- package/dist/types/core/context/StateContext/types.d.ts +5 -3
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +2 -1
- package/dist/types/core/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/core/hooks/singpass/useSingpassMyInfoLogin.d.ts +0 -4
- package/dist/types/core/hooks/useAsyncValidator.d.ts +2 -2
- package/dist/types/core/hooks/useClickAwayListener.d.ts +0 -2
- package/dist/types/core/hooks/useDataMissingRemediations.d.ts +1 -1
- package/dist/types/core/hooks/useDataset.d.ts +1 -1
- package/dist/types/core/hooks/useForm/reducer.d.ts +1 -1
- package/dist/types/core/hooks/useForm/types.d.ts +3 -2
- package/dist/types/core/hooks/useForm/useForm.d.ts +1 -1
- package/dist/types/core/hooks/useMultiForm/reducer.d.ts +2 -2
- package/dist/types/core/hooks/useMultiForm/types.d.ts +3 -3
- package/dist/types/core/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
- package/dist/types/core/hooks/useMultiForm/useMultiFormStaticValidator.d.ts +2 -2
- package/dist/types/core/hooks/useMultiForm/utils.d.ts +0 -11
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +2 -1
- package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +2 -2
- package/dist/types/core/models/api/contracts.d.ts +6 -1
- package/dist/types/core/models/api/get-configuration.d.ts +1 -1
- package/dist/types/core/models/api/transfer-instrument-reference.d.ts +1 -1
- package/dist/types/core/models/company.d.ts +2 -2
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/validation-error.d.ts +0 -3
- package/dist/types/core/models/field-configurations.d.ts +1 -1
- package/dist/types/core/models/file.d.ts +0 -1
- package/dist/types/core/models/form-rules.d.ts +1 -1
- package/dist/types/core/models/identity.d.ts +0 -17
- package/dist/types/core/models/province-code.d.ts +3 -3
- package/dist/types/core/models/scenario-fields.d.ts +1 -1
- package/dist/types/core/models/trust.d.ts +3 -2
- package/dist/types/core/process-field-configurations.d.ts +2 -2
- package/dist/types/core/services/agnostic/get-dataset.d.ts +1 -1
- package/dist/types/core/services/http.d.ts +0 -1
- package/dist/types/core/services/utils.d.ts +0 -7
- package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +0 -1
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +0 -1
- package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +0 -1
- package/dist/types/stores/globalStore/get-task-status.d.ts +0 -3
- package/dist/types/utils/accountHolderUtils.d.ts +0 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +1 -1
- package/dist/types/utils/birthDateUtils.d.ts +1 -10
- package/dist/types/utils/decisionMakerRoles.d.ts +1 -4
- package/dist/types/utils/entityAssociationUtil.d.ts +2 -3
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/file.d.ts +0 -8
- package/dist/types/utils/mapping/componentApiMapping.d.ts +1 -2
- package/dist/types/utils/mapping/mapping.d.ts +1 -3
- package/dist/types/utils/masking/shiftRight.d.ts +0 -4
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +2 -9
- package/package.json +17 -4
- package/dist/types/stores/legalEntity/legalEntity.d.ts +0 -5
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ValidatorRules } from '
|
|
1
|
+
import type { ValidatorRules } from '#utils/validation/types';
|
|
2
2
|
import type { RegistrationAddressSchema } from './types';
|
|
3
3
|
export declare const registrationAddressValidationRules: ValidatorRules<RegistrationAddressSchema>;
|
|
@@ -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>;
|
|
@@ -7,7 +7,6 @@ import type { CompanyNameAndCountrySchema } from '../../../Shared/forms/CompanyN
|
|
|
7
7
|
import type { NameSchema } from '../../../Shared/fields/Name/types';
|
|
8
8
|
import type { TrustMember } from '../../tasks/TrustMembers/types';
|
|
9
9
|
export declare const trustMemberLegalEntityTypes: readonly [LegalEntityType.INDIVIDUAL, LegalEntityType.ORGANIZATION];
|
|
10
|
-
export declare const countriesWhereSettlorExemptionReasonNotApplicable: CountryCode[];
|
|
11
10
|
export type TrustMemberLegalEntityType = (typeof trustMemberLegalEntityTypes)[number];
|
|
12
11
|
export declare const settlorExemptionReasons: readonly ["contributionBelowThreshold", "professionalServiceProvider", "deceased"];
|
|
13
12
|
export type SettlorExemptionReason = (typeof settlorExemptionReasons)[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>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { UndefinedBeneficiary } from './types';
|
|
2
|
-
|
|
2
|
+
interface UndefinedBeneficiaryProps {
|
|
3
3
|
undefinedBeneficiary: UndefinedBeneficiary;
|
|
4
4
|
onEdit: () => void;
|
|
5
5
|
onDelete: () => void;
|
|
6
6
|
}
|
|
7
7
|
export declare const UndefinedBeneficiaryTaskItem: ({ undefinedBeneficiary, onEdit, onDelete, }: UndefinedBeneficiaryProps) => import("preact").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
2
2
|
import type { TrustMemberType, TrustMemberTypes } from '../../../../core/models/api/trust-member-type';
|
|
3
3
|
import type { CountryCode } from '../../../../core/models/country-code';
|
|
4
|
-
import type { IsNewEntity } from '
|
|
4
|
+
import type { IsNewEntity } from '#utils/isNewEntity';
|
|
5
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.
|
|
@@ -23,11 +23,13 @@ import { ViewVerificationStatusComponent } from './EmbeddedDropins/ViewVerificat
|
|
|
23
23
|
import type { EventEmitter } from '../core/EventEmitter';
|
|
24
24
|
import { SourceOfFundsDropin } from './EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin';
|
|
25
25
|
import { PayoutDetailsDropin } from './BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin';
|
|
26
|
+
import { IndividualOnfidoDropin } from './Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin';
|
|
26
27
|
/**
|
|
27
28
|
* Maps each component with a Component element.
|
|
28
29
|
*/
|
|
29
30
|
export declare const componentsMap: {
|
|
30
31
|
readonly individualDropin: typeof IndividualDropin;
|
|
32
|
+
readonly individualOnfidoDropin: typeof IndividualOnfidoDropin;
|
|
31
33
|
readonly businessDetailsDropin: typeof BusinessDetailsDropin;
|
|
32
34
|
readonly companyDropin: typeof CompanyDropin;
|
|
33
35
|
readonly taskList: typeof DropinComposer;
|
|
@@ -54,7 +56,7 @@ export type ComponentPropsWithoutInternalProps<Name extends keyof ComponentMap>
|
|
|
54
56
|
/** List componentProps (passed from UIElement to Component) which are internal
|
|
55
57
|
* and not exposed to consumers,
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
interface CommonInternalProps {
|
|
58
60
|
/** Used when component itself needs to handle cleanup.
|
|
59
61
|
* Eg. When Close button is clicked in modal view
|
|
60
62
|
*/
|
|
@@ -65,3 +67,4 @@ export interface CommonInternalProps {
|
|
|
65
67
|
export type ComponentOptions<Name extends keyof ComponentMap> = ComponentPropsWithoutInternalProps<Name> & Partial<CoreProviderProps> & Partial<SettingsProps> & Partial<ExperimentsProps> & {
|
|
66
68
|
onUserEvent?: UserEventCallback;
|
|
67
69
|
};
|
|
70
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './MaskedInput.scss';
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import type { MaskSettings } from '../../../../core/hooks/useForm/types';
|
|
4
|
-
import type { MismatchResult } from '
|
|
4
|
+
import type { MismatchResult } from '#utils/masking/matchAgainstMask';
|
|
5
5
|
export interface MaskedInputProps extends MaskSettings {
|
|
6
6
|
value: string;
|
|
7
7
|
onInput: (value: string) => void;
|
|
@@ -2,4 +2,4 @@ import './Select.scss';
|
|
|
2
2
|
import './SelectGeneric.scss';
|
|
3
3
|
import type { JSX } from 'preact';
|
|
4
4
|
import type { SelectProps } from './Select.types.ts';
|
|
5
|
-
export declare const Select: ({ items, className, classNameModifiers, filterable, readonly, onChange, selected, name, isInvalid, isValid, placeholder, isMulti, uniqueId, showSelectedItemsAsTags, isSearch, onSearch, resetSearch, loading, getSearchItem, searchText, onSearchTextChange, showSearchList, enableTracking, }: SelectProps) => JSX.Element;
|
|
5
|
+
export declare const Select: ({ items, className, classNameModifiers, filterable, readonly, onChange, selected, name, isInvalid, isValid, placeholder, isMulti, uniqueId, showSelectedItemsAsTags, isSearch, onSearch, resetSearch, loading, getSearchItem, searchText, onSearchTextChange, showSearchList, enableTracking, onBlur, }: SelectProps) => JSX.Element;
|
|
@@ -54,10 +54,12 @@ export interface MultiSelectOnChangeProps {
|
|
|
54
54
|
interface SingleSelectProps extends BaseSelectProps {
|
|
55
55
|
isMulti?: false;
|
|
56
56
|
onChange: (e: SingleSelectOnChangeProps) => void;
|
|
57
|
+
onBlur?: (e: FocusEvent) => void;
|
|
57
58
|
}
|
|
58
59
|
interface MultiSelectProps extends BaseSelectProps {
|
|
59
60
|
isMulti: true;
|
|
60
61
|
onChange: (e: MultiSelectOnChangeProps) => void;
|
|
62
|
+
onBlur?: (e: FocusEvent) => void;
|
|
61
63
|
}
|
|
62
64
|
export type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
63
65
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../Select/SelectGeneric.scss';
|
|
2
2
|
import type { SelectButtonProps } from './SelectButton.types';
|
|
3
|
-
export declare function SelectButton({ name, active, readonly, showList, isInvalid, isValid, toggleList, onButtonKeyDown, filterable, placeholder, toggleButtonRef, ariaDescribedBy, selectListId, filterInputRef, onInput, id, isSearch, loading, hideSearchIcon, textFilter, enableTracking, }: SelectButtonProps): import("preact").JSX.Element;
|
|
3
|
+
export declare function SelectButton({ name, active, readonly, showList, isInvalid, isValid, toggleList, onButtonKeyDown, filterable, placeholder, toggleButtonRef, ariaDescribedBy, selectListId, filterInputRef, onInput, id, isSearch, loading, hideSearchIcon, textFilter, enableTracking, onBlur, }: SelectButtonProps): import("preact").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FileSchema } from '../../../../core/models/file';
|
|
2
|
-
import type { ValidatorRule } from '
|
|
2
|
+
import type { ValidatorRule } from '#utils/validation/types';
|
|
3
3
|
export interface FileValidationOptions {
|
|
4
4
|
allowedFileTypes: string[];
|
|
5
5
|
maxNumberOfFiles: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormVerificationErrors } from '../../../../core/models/errors/form-verification-errors';
|
|
2
|
-
import type { FormUtils } from '
|
|
2
|
+
import type { FormUtils } from '#utils/formUtils';
|
|
3
3
|
import type { Remediation } from '../../../../core/models/errors/remediation';
|
|
4
4
|
export interface ErrorPanelProps<Schema> {
|
|
5
5
|
id?: string;
|
|
@@ -5,7 +5,7 @@ type GetAssociatedLeAnalyticsParams = {
|
|
|
5
5
|
associatedLegalEntity?: LegalEntity;
|
|
6
6
|
associatedLegalEntityOrg?: LegalEntity;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type AssociatedLeAnalyticsParams = {
|
|
9
9
|
associatedLegalEntityId?: string;
|
|
10
10
|
associatedLegalEntityType?: string;
|
|
11
11
|
associatedLegalEntityOrgId?: string;
|
|
@@ -8,5 +8,6 @@ export declare const KEYBOARD_KEYS: {
|
|
|
8
8
|
readonly tab: "Tab";
|
|
9
9
|
readonly backspace: "Backspace";
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type KeyboardKeyLabel = keyof typeof KEYBOARD_KEYS;
|
|
12
12
|
export type KeyboardKey = (typeof KEYBOARD_KEYS)[KeyboardKeyLabel];
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DatasetIdentifier } from '
|
|
1
|
+
import type { DatasetIdentifier } from '#utils/datasetUtil';
|
|
2
2
|
import type { AccountIdentification } from '../../models/api/accountIdentification';
|
|
3
3
|
import type { DataSet } from '../../models/api/data-set';
|
|
4
4
|
import type { GetAllowedCountriesResponse } from '../../models/api/get-allowed-countries';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ComponentChildren } from 'preact';
|
|
2
2
|
import type { EventEmitter } from '../../EventEmitter';
|
|
3
|
-
export declare const ExpiryContext: import("preact").Context<boolean>;
|
|
4
3
|
export interface ExpiryProviderProps {
|
|
5
4
|
expiry?: number;
|
|
6
5
|
eventEmitter?: EventEmitter;
|
|
@@ -6,9 +6,10 @@ import type { TrustMemberSchema } from '../../../components/Trust/tasks/RoleAndT
|
|
|
6
6
|
import type { IndividualSchema } from '../../../components/Individual/forms/Individual/types';
|
|
7
7
|
import type { SolePropSchema } from '../../../components/SoleProprietorship/forms/SoleProp/types';
|
|
8
8
|
import type { TrustSchema } from '../../../components/Trust/forms/Trust/types';
|
|
9
|
-
import type { ValidationRuleResult } from '
|
|
9
|
+
import type { ValidationRuleResult } from '#utils/validation/types';
|
|
10
10
|
import type { SourceOfFundsSchema } from '../../../components/EFP/tasks/SourceOfFundsDropin/types';
|
|
11
11
|
import type { PayoutDetailsSchema } from '../../../components/BankAccount/forms/PayoutDetails/types';
|
|
12
|
+
import type { IndividualOnfidoSchema } from '../../../components/Individual/forms/IndividualOnfido/IndividualOnfido.types';
|
|
12
13
|
export interface SFValue {
|
|
13
14
|
caller?: string;
|
|
14
15
|
data?: object;
|
|
@@ -29,7 +30,7 @@ export interface SCCurrent {
|
|
|
29
30
|
export interface StateContextRef {
|
|
30
31
|
current: SCCurrent;
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
interface StateContextBase {
|
|
33
34
|
owner?: string;
|
|
34
35
|
}
|
|
35
36
|
export interface SCSetter extends StateContextBase {
|
|
@@ -50,7 +51,7 @@ export type StateModel<TLDS extends TopLevelDataSchema = TopLevelDataSchema> = {
|
|
|
50
51
|
prevState?: State<TLDS>;
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
|
-
export type TopLevelDataSchema = IndividualSchema | BusinessDetailsSchema | CompanySchema | CustomerSupportSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema | SourceOfFundsSchema;
|
|
54
|
+
export type TopLevelDataSchema = IndividualSchema | IndividualOnfidoSchema | BusinessDetailsSchema | CompanySchema | CustomerSupportSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema | SourceOfFundsSchema;
|
|
54
55
|
export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof CompanySchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema | keyof SolePropSchema;
|
|
55
56
|
export interface State<TLDS extends TopLevelDataSchema> {
|
|
56
57
|
data: TLDS;
|
|
@@ -88,3 +89,4 @@ export interface StateSlice<TLDS extends TopLevelDataSchema, SliceName extends k
|
|
|
88
89
|
};
|
|
89
90
|
schema?: ReadonlyArray<keyof SliceData>;
|
|
90
91
|
}
|
|
92
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface UseHasSeenIntroductionProps {
|
|
2
2
|
legalEntityId: string;
|
|
3
3
|
}
|
|
4
4
|
export declare const useHasSeenIntroduction: ({ legalEntityId }: UseHasSeenIntroductionProps) => {
|
|
5
5
|
hasSeenIntroduction: boolean;
|
|
6
6
|
setHasSeenIntroduction: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<boolean>>;
|
|
7
7
|
};
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntroductionScreens } from '../../../components/Shared/Introduction/types';
|
|
2
|
-
import { TaskTypes } from '../../../
|
|
2
|
+
import { TaskTypes } from '../../../stores/globalStore/taskTypes';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../models/api/legal-entity';
|
|
4
4
|
export interface UseIntroductionScreensProps {
|
|
5
5
|
legalEntity: ExistingLegalEntity;
|
|
@@ -16,10 +16,6 @@ export interface SingpassMyInfoLoginAction {
|
|
|
16
16
|
errorMessage?: Translatable;
|
|
17
17
|
}
|
|
18
18
|
export type SingpassMyInfoLoginState = Omit<SingpassMyInfoLoginAction, 'type'>;
|
|
19
|
-
export declare const defaultSingpassState: {
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
isSuccess: boolean;
|
|
22
|
-
};
|
|
23
19
|
export declare const singpassReducer: (state: SingpassMyInfoLoginState, action: SingpassMyInfoLoginAction) => {
|
|
24
20
|
isLoading: boolean;
|
|
25
21
|
isSuccess: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AsyncValidatorRules, ValidatorMode } from '
|
|
2
|
-
import { ValidationResult } from '
|
|
1
|
+
import type { AsyncValidatorRules, ValidatorMode } from '#utils/validation/types';
|
|
2
|
+
import { ValidationResult } from '#utils/validation/validationResult';
|
|
3
3
|
import type { FormState } from './useForm/types';
|
|
4
4
|
export type AsyncValidationResults<FormSchema> = Partial<Record<keyof FormSchema, ValidationResult>>;
|
|
5
5
|
export type TriggerAsyncValidation<FormSchema> = (field: keyof FormSchema, formState: FormState<FormSchema>, mode: ValidatorMode) => void;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ComponentChildren, ComponentProps } from 'preact';
|
|
2
|
-
import type { MutableRef } from 'preact/hooks';
|
|
3
|
-
export declare function useClickAwayListener(ref: MutableRef<HTMLElement | null>, onClickAway: () => void): void;
|
|
4
2
|
interface ClickAwayWrapperProps extends ComponentProps<'div'> {
|
|
5
3
|
children: ComponentChildren;
|
|
6
4
|
onClickAway: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TaskTypes } from '../../
|
|
1
|
+
import { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
2
2
|
import type { CapabilityProblems } from '../models/errors/capability-problems';
|
|
3
3
|
interface UseDataMissingRemediationsProps {
|
|
4
4
|
legalEntityId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DatasetIdentifier } from '
|
|
1
|
+
import type { DatasetIdentifier } from '#utils/datasetUtil';
|
|
2
2
|
import type { DataSet } from '../models/api/data-set';
|
|
3
3
|
export declare function useDataset<T extends string = string>(datasetIdentifier: DatasetIdentifier, skip?: boolean): {
|
|
4
4
|
dataset: DataSet<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Reducer } from 'preact/hooks';
|
|
2
|
-
import type { FormatRules, ValidationRuleResult, ValidatorMode } from '
|
|
2
|
+
import type { FormatRules, ValidationRuleResult, ValidatorMode } from '#utils/validation/types';
|
|
3
3
|
import type { TriggerAsyncValidation } from '../useAsyncValidator';
|
|
4
4
|
import type { TriggerStaticValidation } from '../useStaticValidator/useStaticValidator';
|
|
5
5
|
import type { FieldValue, FormState } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { Translatable, TranslationKey } from '../../../language/types';
|
|
3
|
-
import type { Mask } from '
|
|
4
|
-
import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '
|
|
3
|
+
import type { Mask } from '#utils/masking/maskTypes';
|
|
4
|
+
import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '#utils/validation/types';
|
|
5
5
|
import type { AnyFormIdOfTLDS } from '../../context/StateContext/types';
|
|
6
6
|
import type { CapabilityName } from '../../models/api/capability';
|
|
7
7
|
import type { TrustedFieldsProvider } from '../../models/api/trusted-fields-provider';
|
|
@@ -48,6 +48,7 @@ export interface BaseFormFieldProps<FieldSchema> {
|
|
|
48
48
|
setErrors?: (key: keyof FieldSchema, value: ValidationRuleResult | null) => void;
|
|
49
49
|
setFieldProblems?: (fieldProblems: Record<keyof FieldSchema, boolean>) => void;
|
|
50
50
|
triggerValidation?: (schema?: Array<keyof FieldSchema>) => void;
|
|
51
|
+
handleBlur?: (e: FocusEvent) => void;
|
|
51
52
|
}
|
|
52
53
|
export type FieldValue<FormSchema> = FormSchema[keyof FormSchema];
|
|
53
54
|
export interface FormState<FormSchema> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AsyncValidatorRules, FormatRules, ValidatorRules } from '
|
|
1
|
+
import type { AsyncValidatorRules, FormatRules, ValidatorRules } from '#utils/validation/types';
|
|
2
2
|
import type { Form } from './types';
|
|
3
3
|
export interface UseFormOptions<FormSchema> {
|
|
4
4
|
schema: (keyof FormSchema)[] | ((data: Partial<FormSchema>) => (keyof FormSchema)[]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Reducer } from 'preact/hooks';
|
|
2
|
-
import type { FormatRules, ValidationRuleResult, ValidatorMode } from '
|
|
3
|
-
import { ValidationResult } from '
|
|
2
|
+
import type { FormatRules, ValidationRuleResult, ValidatorMode } from '#utils/validation/types';
|
|
3
|
+
import { ValidationResult } from '#utils/validation/validationResult';
|
|
4
4
|
import type { TriggerStaticValidation } from './useMultiFormStaticValidator';
|
|
5
5
|
import type { FieldValue, FormState, MultiFormState, NestedSchema } from './types';
|
|
6
6
|
export interface MultiFormInitOptions<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Translatable, TranslationKey } from '../../../language/types';
|
|
2
|
-
import type { Mask } from '
|
|
3
|
-
import type { AsyncValidatorRules, FormatRules, ValidationRuleResult, ValidatorMode, ValidatorRules } from '
|
|
2
|
+
import type { Mask } from '#utils/masking/maskTypes';
|
|
3
|
+
import type { AsyncValidatorRules, FormatRules, ValidationRuleResult, ValidatorMode, ValidatorRules } from '#utils/validation/types';
|
|
4
4
|
import type { TrustedFieldsProvider } from '../../models/api/trusted-fields-provider';
|
|
5
5
|
export type FieldData<FieldSchema> = {
|
|
6
6
|
[fieldData in keyof FieldSchema]: FieldSchema[fieldData];
|
|
@@ -37,7 +37,7 @@ export interface Form<T> extends MultiFormState<T> {
|
|
|
37
37
|
setData: (key: keyof NestedSchema<T>, value: FieldValue<NestedSchema<T>>, formName: FormName<T>) => void;
|
|
38
38
|
setValid: (key: keyof NestedSchema<T>, value: boolean, formName: FormName<T>) => void;
|
|
39
39
|
setErrors: (key: keyof NestedSchema<T>, value: ValidationRuleResult | null, formName: FormName<T>) => void;
|
|
40
|
-
handleChangeFor<InnerFormName extends keyof T>(key: keyof T[InnerFormName], formName: InnerFormName, mode?: ValidatorMode): (e: any) => void;
|
|
40
|
+
handleChangeFor<InnerFormName extends keyof T>(key: keyof Required<T>[InnerFormName], formName: InnerFormName, mode?: ValidatorMode): (e: any) => void;
|
|
41
41
|
triggerValidation: (formName: FormName<T>, selectedSchema?: (keyof NestedSchema<T>)[]) => Promise<boolean>;
|
|
42
42
|
resetToDefaultData: () => void;
|
|
43
43
|
defaultData?: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AsyncValidatorRules } from '
|
|
2
|
-
import { ValidationResult } from '
|
|
1
|
+
import type { AsyncValidatorRules } from '#utils/validation/types';
|
|
2
|
+
import { ValidationResult } from '#utils/validation/validationResult';
|
|
3
3
|
import type { MultiFormState } from './types';
|
|
4
4
|
export type TriggerAsyncValidation<FormSchema, InnerFormName extends keyof FormSchema> = (field: keyof FormSchema[InnerFormName], formName: InnerFormName, data?: FormSchema) => Promise<ValidationResult>;
|
|
5
5
|
export type UseAsyncValidator<FormSchema> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FieldContext, FieldData } from '
|
|
2
|
-
import { ValidationResult } from '
|
|
1
|
+
import type { FieldContext, FieldData } from '#utils/validation/types';
|
|
2
|
+
import { ValidationResult } from '#utils/validation/validationResult';
|
|
3
3
|
import type { MultiFormOptions, NestedSchema } from './types';
|
|
4
4
|
export type TriggerStaticValidation<FormSchema> = (fieldData: FieldData<NestedSchema<FormSchema>>, data?: FormSchema, context?: FieldContext<NestedSchema<FormSchema>>) => ValidationResult;
|
|
5
5
|
export type UseStaticValidator<FormSchema> = {
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import type { FieldData } from './types';
|
|
2
1
|
export declare const omitKeys: (obj: any, omit: any) => any;
|
|
3
2
|
export declare const addKeys: (obj: any, add: any, initialValue: any, defaultData: any, pendingData: any) => any;
|
|
4
|
-
/**
|
|
5
|
-
* @description Extracts the field schema data from the form schema using the field component
|
|
6
|
-
*
|
|
7
|
-
* @param formData The data of the form using the field component
|
|
8
|
-
* @param fieldKeys The keys in the field schema
|
|
9
|
-
* @returns An object containing only the field schemas form data
|
|
10
|
-
*/
|
|
11
|
-
export declare function getDataByFields<FormSchema, Fields extends Array<keyof FormSchema>, FieldSchema extends {
|
|
12
|
-
[field in keyof FormSchema]: FormSchema[field];
|
|
13
|
-
}>(formData: FormSchema, fieldKeys: Fields): FieldData<FieldSchema>;
|
|
@@ -19,8 +19,9 @@ export interface UseScenarioConfigurationOptions {
|
|
|
19
19
|
instantVerificationAvailable?: boolean;
|
|
20
20
|
existingBankAccountFormat?: BankAccountFormatType;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
interface ScenarioConfiguration {
|
|
23
23
|
fieldConfigurations: FieldConfigurations<any> | undefined;
|
|
24
24
|
requiredFields: AccountFormatRequirements | undefined;
|
|
25
25
|
}
|
|
26
26
|
export declare const useScenarioConfiguration: ({ getConfigurationData, getPayoutAccountFormatData, parseConfiguration, country, instantVerificationAvailable, setLoadingStatus, existingBankAccountFormat, }: UseScenarioConfigurationOptions) => ScenarioConfiguration;
|
|
27
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FieldContext, FieldData, ValidatorRules } from '
|
|
2
|
-
import { ValidationResult } from '
|
|
1
|
+
import type { FieldContext, FieldData, ValidatorRules } from '#utils/validation/types';
|
|
2
|
+
import { ValidationResult } from '#utils/validation/validationResult';
|
|
3
3
|
export type TriggerStaticValidation<FormSchema> = (fieldData: FieldData<FormSchema>, context?: FieldContext<FormSchema>) => ValidationResult;
|
|
4
4
|
export type UseStaticValidator<FormSchema> = {
|
|
5
5
|
triggerStaticValidation: TriggerStaticValidation<FormSchema>;
|
|
@@ -13,7 +13,7 @@ export interface PciTemplateResponse extends PciTemplateRequest {
|
|
|
13
13
|
export interface PciQuestionnaires {
|
|
14
14
|
data: PciQuestionnaire[];
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface PciQuestionnaire {
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
validUntil: string;
|
|
@@ -68,3 +68,8 @@ export type ServiceAgreementUnacceptedDocumentResponse = ServiceAgreementRespons
|
|
|
68
68
|
export interface ServiceAgreementAcceptanceInfos {
|
|
69
69
|
data: ServiceAgreementAcceptanceInfo[];
|
|
70
70
|
}
|
|
71
|
+
export interface CleanseAPIRequestPayload {
|
|
72
|
+
text: string;
|
|
73
|
+
country: string;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaskTypes } from '../../../
|
|
1
|
+
import type { TaskTypes } from '../../../stores/globalStore/taskTypes';
|
|
2
2
|
import type { CountryCode } from '../country-code';
|
|
3
3
|
import type { CapabilityName } from './capability';
|
|
4
4
|
import type { GetScenariosResponse } from './get-scenarios';
|
|
@@ -7,10 +7,10 @@ interface CompanyTypeModel {
|
|
|
7
7
|
name: TranslationKey;
|
|
8
8
|
description: TranslationKey;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
declare const companyBase: {
|
|
11
11
|
[key: string]: ScenarioFieldSettings;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare const businessDetailsBase: {
|
|
14
14
|
[key: string]: ScenarioFieldSettings;
|
|
15
15
|
};
|
|
16
16
|
export declare const companyTypeMetadata: Partial<Record<CompanyTypesValue, CompanyTypeModel>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Translatable, TranslationKey } from '../../language/types';
|
|
2
|
-
import type { ValidatorRule } from '
|
|
2
|
+
import type { ValidatorRule } from '#utils/validation/types';
|
|
3
3
|
import type { MaskSettings } from '../hooks/useForm/types';
|
|
4
4
|
import type { CountryCode } from './country-code';
|
|
5
5
|
export type CountryConfig<Options = unknown> = Partial<Record<CountryCode, {
|
|
@@ -13,9 +13,6 @@ export interface ValidationError {
|
|
|
13
13
|
invalidFields: InvalidField[];
|
|
14
14
|
errorCode: string;
|
|
15
15
|
}
|
|
16
|
-
export declare enum CreateOrUpdateTransferInstrumentErrorMessage {
|
|
17
|
-
TRANSFER_INSTRUMENT_LIMIT_HAS_ALREADY_BEEN_MET = "Transfer instrument limit has already been met"
|
|
18
|
-
}
|
|
19
16
|
export declare const isValidationError: (error: Error | undefined) => boolean;
|
|
20
17
|
export declare const isIdDocumentUploadError: (error: Error | undefined) => boolean;
|
|
21
18
|
export declare const isBankStatementUploadError: (error: Error | undefined) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PerCountry } from '
|
|
1
|
+
import type { PerCountry } from '#utils/perCountry';
|
|
2
2
|
import type { FieldMetadata } from './country-config';
|
|
3
3
|
import type { ScenarioFieldSettings } from './scenario-fields';
|
|
4
4
|
type FieldConfiguration<FieldType> = ScenarioFieldSettings<FieldType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccountHolderOption } from '../types/AccountHolder.types';
|
|
2
|
-
import type { TaskTypes } from '../../
|
|
2
|
+
import type { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
3
3
|
import type { AccountFormatRequirements } from '../../datasets/generators/getAccountFormatForCountry';
|
|
4
4
|
import type { ExperimentName } from '../context/ExperimentContext/types';
|
|
5
5
|
import type { SettingName } from '../context/SettingsContext/types';
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import type { ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
-
import type { AdditionalIdentityInfoSchema } from '../../components/Individual/forms/Individual/PersonalDetails/Identity/types';
|
|
3
|
-
export declare const identityBase: {
|
|
4
|
-
[key: string]: ScenarioFieldSettings;
|
|
5
|
-
};
|
|
6
|
-
export declare const identityNumber: {
|
|
7
|
-
[key: string]: ScenarioFieldSettings;
|
|
8
|
-
};
|
|
9
|
-
export declare const additionalIdentityInfo: Record<keyof AdditionalIdentityInfoSchema, ScenarioFieldSettings>;
|
|
10
|
-
export declare const idDocument: {
|
|
11
|
-
[key: string]: ScenarioFieldSettings;
|
|
12
|
-
};
|
|
13
|
-
export declare const nationality: {
|
|
14
|
-
[key: string]: ScenarioFieldSettings;
|
|
15
|
-
};
|
|
16
|
-
export declare const phoneNumberBase: {
|
|
17
|
-
[key: string]: ScenarioFieldSettings;
|
|
18
|
-
};
|
|
19
2
|
export declare const fieldsPerScenario: {
|
|
20
3
|
L0: Omit<{
|
|
21
4
|
[key: string]: ScenarioFieldSettings<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ProvinceCode = ProvinceCodeAU | ProvinceCodeCA | ProvinceCodeNZ;
|
|
2
|
-
|
|
2
|
+
type ProvinceCodeAU = `${ProvinceCodesAU}`;
|
|
3
3
|
declare const enum ProvinceCodesAU {
|
|
4
4
|
AustralianCapitalTerritory = "ACT",
|
|
5
5
|
NewSouthWales = "NSW",
|
|
@@ -10,7 +10,7 @@ declare const enum ProvinceCodesAU {
|
|
|
10
10
|
Victoria = "VIC",
|
|
11
11
|
WesternAustralia = "WA"
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
type ProvinceCodeCA = `${ProvinceCodesCA}`;
|
|
14
14
|
export declare const enum ProvinceCodesCA {
|
|
15
15
|
Alberta = "AB",
|
|
16
16
|
BritishColumbia = "BC",
|
|
@@ -26,7 +26,7 @@ export declare const enum ProvinceCodesCA {
|
|
|
26
26
|
Saskatchewan = "SK",
|
|
27
27
|
Yukon = "YT"
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
type ProvinceCodeNZ = `${ProvinceCodesNZ}`;
|
|
30
30
|
export declare const enum ProvinceCodesNZ {
|
|
31
31
|
Auckland = "AUK",
|
|
32
32
|
BayOfPlenty = "BOP",
|
|
@@ -9,17 +9,18 @@ export declare enum TrustMemberGuidanceLabel {
|
|
|
9
9
|
TRUSTEE = "trustee",
|
|
10
10
|
SETTLOR = "settlor"
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
interface TrustMemberRequirement {
|
|
13
13
|
roleTypes: readonly TrustMemberType[];
|
|
14
14
|
min: number;
|
|
15
15
|
max: number;
|
|
16
16
|
label: TrustMemberGuidanceLabel;
|
|
17
17
|
}
|
|
18
18
|
export declare const TRUST_COUNTRIES: CountryCode[];
|
|
19
|
-
|
|
19
|
+
declare const trustBase: {
|
|
20
20
|
[key: string]: ScenarioFieldSettings;
|
|
21
21
|
};
|
|
22
22
|
export declare const fieldsPerScenario: ScenarioFields<typeof trustBase>;
|
|
23
23
|
export declare const countryConfig: CountryConfig;
|
|
24
24
|
export declare const DEFAULT_TRUST_MEMBER_REQUIREMENTS: readonly TrustMemberRequirement[];
|
|
25
25
|
export declare const TRUST_DEFAULT_DESCRIPTIONS_MAP: Record<TrustMemberGuidanceLabel, TranslationKey>;
|
|
26
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SolePropSchema } from '../components/SoleProprietorship/forms/SoleProp/types';
|
|
2
2
|
import type { TrustSchema } from '../components/Trust/forms/Trust/types';
|
|
3
|
-
import type { AnyTLDSFieldName } from '
|
|
4
|
-
import type { ValidatorRules } from '
|
|
3
|
+
import type { AnyTLDSFieldName } from '#utils/getFieldsWithExistingData';
|
|
4
|
+
import type { ValidatorRules } from '#utils/validation/types';
|
|
5
5
|
import type { BaseOuterFormProps } from './hooks/useForm/types';
|
|
6
6
|
import type { Scenario } from './models/api/get-scenarios';
|
|
7
7
|
import type { LegalEntityTrustedFields } from './models/api/legal-entity';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DatasetIdentifier } from '
|
|
1
|
+
import type { DatasetIdentifier } from '#utils/datasetUtil';
|
|
2
2
|
import type { DataSet } from '../../models/api/data-set';
|
|
3
3
|
export declare const getDataset: (identifier: DatasetIdentifier, locale: string) => Promise<DataSet>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { HttpOptions } from './types';
|
|
2
|
-
export declare const http: <T>(options: HttpOptions, data?: any, responseType?: XMLHttpRequestResponseType) => Promise<T>;
|
|
3
2
|
export declare const httpGet: <T>(options: HttpOptions, data?: any) => Promise<T>;
|
|
4
3
|
export declare const httpPost: <T>(options: HttpOptions, data?: any) => Promise<T>;
|
|
5
4
|
export declare const httpDelete: <T>(options: HttpOptions, data?: any) => Promise<T>;
|