@adyen/kyc-components 3.61.2 → 3.62.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/{CPIOZS5X-sgzx-Xcg.js → CPIOZS5X-CoGawlGF.js} +2 -2
- package/dist/{DebugModal-IWz7-Df_.js → DebugModal-KucAOxDA.js} +6 -6
- package/dist/{Introduction-CroEDoIx.js → Introduction-CAtgshlo.js} +1 -1
- package/dist/{OKF6E45R-DG1PD4NH.js → OKF6E45R-y_woKRvw.js} +2 -2
- package/dist/{WXAWMS3D-BkseKQjn.js → WXAWMS3D-rHHQe1Gs.js} +1 -1
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +8 -2
- package/dist/{bg-BG-DvxNrUuQ.js → bg-BG-JQoXeKqz.js} +53 -6
- package/dist/{core-DfdYpYKH.js → core-D3K2vwJw.js} +21328 -21650
- package/dist/{cs-CZ-Ho9dbS1C.js → cs-CZ-vaBozTTA.js} +54 -7
- package/dist/{css-Cg0430Ty.js → css-BznTSLiE.js} +1 -1
- package/dist/{da-DK-CAzZXDTT.js → da-DK-fw4eNQ2y.js} +52 -5
- package/dist/{de-DE-CCZbFa-W.js → de-DE-BSBrq8Ub.js} +53 -6
- package/dist/{el-GR-C2LqiurW.js → el-GR-DHEcN6ZM.js} +54 -7
- package/dist/{es-ES-CR3VDFE0.js → es-ES-OGi9SCih.js} +55 -8
- package/dist/{et-EE-B2hN2aT2.js → et-EE-D1J4FVpl.js} +54 -7
- package/dist/{fi-FI-D8Y7fKm3.js → fi-FI-BC5y9DRV.js} +54 -7
- package/dist/{fr-FR-I5n3_w9O.js → fr-FR-CiWdJsuO.js} +53 -6
- package/dist/{hr-HR-ChZK22Ck.js → hr-HR-BDWRpmqB.js} +52 -5
- package/dist/{hu-HU-CvqWsLq2.js → hu-HU-Bd9QMhfv.js} +54 -7
- package/dist/{it-IT-BscN-dth.js → it-IT-BKly13Bd.js} +52 -5
- package/dist/{json-DY0bAYj2.js → json-2yoHWGYu.js} +1 -1
- package/dist/{lt-LT-DjqN3v49.js → lt-LT-BZJ3rRip.js} +53 -6
- package/dist/{lv-LV-Bl7tx-dy.js → lv-LV-C76tFRyD.js} +54 -7
- package/dist/{nl-NL-U9PfH9yT.js → nl-NL-Cq9nayE6.js} +53 -6
- package/dist/{no-NO-ClNo2Pet.js → no-NO-BHhjhys2.js} +52 -5
- package/dist/{pl-PL-DO6WW3PC.js → pl-PL-SdjV6jyu.js} +51 -4
- package/dist/{plaintext-CoBc20Io.js → plaintext-DTBQdpo_.js} +1 -1
- package/dist/{pt-PT-BrGHsiO8.js → pt-PT-BDSj1IJC.js} +54 -7
- package/dist/reporting-BvzRvEDn.js +8 -0
- package/dist/{ro-RO-nD0d6r_W.js → ro-RO-BaWuNSMq.js} +52 -5
- package/dist/{sk-SK-BPOfBJsL.js → sk-SK-DqQsBZrj.js} +53 -6
- package/dist/{sl-SI-3YqPVJ3_.js → sl-SI-DXGkd146.js} +51 -4
- package/dist/style.css +24 -36
- package/dist/{sv-SE-BK-9tJD6.js → sv-SE-C9Ku-HpT.js} +52 -5
- package/dist/tax-reporting-graph-CRaNSOtM.js +577 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +18 -0
- package/dist/types/api/check/useCheck.d.ts +16 -0
- package/dist/types/api/configurations/useSupportedCountries.d.ts +9 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +16 -0
- package/dist/types/api/datasets/useLegalForms.d.ts +9 -0
- package/dist/types/api/datasets/useNaceCodes.d.ts +3 -0
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +3 -0
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +11 -0
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +16 -0
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +17 -0
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -2
- package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -2
- package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -2
- package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -2
- package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +3 -8
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +9 -2
- package/dist/types/components/BankAccount/mapping/mapApiDocumentToPayoutDocuments.d.ts +2 -0
- package/dist/types/components/BankAccount/{forms/PayoutAccount/helpers → mapping}/mapPayoutAccountSchemaToApiBankAccount.d.ts +4 -4
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +12 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +3 -0
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +8 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1925 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/formatAccountVerificationSummary.d.ts +7 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +5 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +8 -0
- package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +3 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +4 -4
- package/dist/types/components/Business/forms/Company/rules.d.ts +22 -2
- package/dist/types/components/Business/forms/Company/types.d.ts +3 -3
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +11 -0
- package/dist/types/{utils → components/Business}/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +3 -3
- package/dist/types/{utils → components/Business}/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +5 -5
- package/dist/types/{utils → components/Business}/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +2 -2
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +6 -0
- package/dist/types/components/Business/mapping/companyKeyMappings.d.ts +7 -0
- package/dist/types/components/Business/mapping/mapApiDocumentToCompanyDocuments.d.ts +2 -0
- package/dist/types/components/Business/mapping/mapCompanyDocumentToApiDocument.d.ts +3 -0
- package/dist/types/components/Business/mapping/mapCompanyToLegalEntity.d.ts +4 -0
- package/dist/types/components/Business/mapping/mapLegalEntityToCompany.d.ts +4 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +3 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -0
- package/dist/types/components/Business/tasks/CompanyDropin/companyFormConfig.d.ts +7 -0
- package/dist/types/components/Business/tasks/CompanyDropin/mandatoryFields.d.ts +3 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +9 -0
- package/dist/types/components/EFP/mapping/highExposureKeyMappings.d.ts +26 -0
- package/dist/types/components/EFP/mapping/mapHighExposureToLegalEntity.d.ts +3 -0
- package/dist/types/components/EFP/mapping/mapLegalEntityToHighExposure.d.ts +3 -0
- package/dist/types/components/EFP/mapping/mapSourceOfFundToSourceOfFundsSchema.d.ts +3 -0
- package/dist/types/components/EFP/mapping/sourceOfFundsKeyMappings.d.ts +4 -0
- package/dist/types/components/EFP/tasks/HighExposureDropin/mandatoryFields.d.ts +3 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingDropin.d.ts +2 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +9 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +18 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +7 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -5
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +32 -2
- package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +4 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +33 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -3
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +3 -0
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +14 -0
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +7 -0
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +3 -0
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +4 -0
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +3 -0
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +3 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +3 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +3 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +4 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/mandatoryFields.d.ts +5 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +4 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/mandatoryFields.d.ts +5 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -1
- package/dist/types/components/Shared/Summary/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/TradingNameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +5 -6
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +7 -5
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- package/dist/types/{utils/mapping/customerSupport → components/Shared/tasks/CustomerSupport/mapping}/mapCustomerSupportSchemaToCustomerSupportType.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
- package/dist/types/components/SoleProprietorship/forms/SoleProp/types.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/mapping/mapApiDocumentToSolePropDocuments.d.ts +2 -0
- package/dist/types/components/SoleProprietorship/mapping/mapLegalEntityToSoleProp.d.ts +4 -0
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropDocumentToApiDocument.d.ts +3 -0
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropToLegalEntity.d.ts +4 -0
- package/dist/types/components/SoleProprietorship/mapping/solePropKeyMappings.d.ts +7 -0
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/mandatoryFields.d.ts +3 -0
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/solePropFormConfig.d.ts +5 -0
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +8 -2
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapApiDocumentToTrustDocument.d.ts +2 -0
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +4 -0
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +3 -0
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +4 -0
- package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +7 -0
- package/dist/types/{utils → components/Trust}/mapping/trustMembers/getTrustMembers.d.ts +2 -2
- package/dist/types/{utils → components/Trust}/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -3
- package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +3 -0
- package/dist/types/components/Trust/mapping/trustMembers/mapUndefinedBeneficiaryInfoToTrustMembers.d.ts +3 -0
- package/dist/types/components/Trust/tasks/TrustDropin/mandatoryFields.d.ts +3 -0
- package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +5 -0
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +8 -0
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +10 -0
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +9 -4
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +4 -0
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +4 -0
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +6 -0
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +7 -0
- package/dist/types/components/index.d.ts +3 -4
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +6 -3
- package/dist/types/context/ApiContext/ApiProvider.d.ts +1 -2
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -9
- package/dist/types/context/ExperimentContext/types.d.ts +0 -4
- package/dist/types/context/StateContext/types.d.ts +2 -1
- package/dist/types/core/UIElement/UIElement.d.ts +5 -4
- package/dist/types/core/models/api/analytics.d.ts +2 -0
- package/dist/types/core/models/api/check.d.ts +4 -0
- package/dist/types/core/models/api/document.d.ts +5 -1
- package/dist/types/core/models/api/get-scenarios.d.ts +3 -1
- package/dist/types/core/models/api/individual.d.ts +1 -1
- package/dist/types/core/models/api/organization.d.ts +2 -0
- package/dist/types/core/models/api/tax-reporting-classification.d.ts +15 -0
- package/dist/types/core/models/field-configurations.d.ts +11 -7
- package/dist/types/core/models/form-configuration.d.ts +36 -0
- package/dist/types/core/models/form-rules.d.ts +7 -4
- package/dist/types/core/process-field-configurations.d.ts +8 -26
- package/dist/types/core/services/types.d.ts +2 -2
- package/dist/types/core/types.d.ts +3 -2
- package/dist/types/core/user-events.d.ts +2 -1
- package/dist/types/hooks/useAnalytics.d.ts +4 -7
- package/dist/types/hooks/useBankConfigurationHandlers.d.ts +0 -1
- package/dist/types/hooks/useComponentApi.d.ts +0 -5
- package/dist/types/hooks/useForm/types.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +9 -8
- package/dist/types/hooks/{useVersionConfiguration.d.ts → useVersion.d.ts} +2 -2
- package/dist/types/stores/globalStore/StoreProvider.d.ts +1 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +2 -1
- package/dist/types/utils/entityAssociationUtil.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/genUtils.d.ts +0 -10
- package/dist/types/utils/getFieldsWithExistingData.d.ts +8 -4
- package/dist/types/utils/getNestedPropertyKeys.d.ts +10 -5
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/types/utils/mapping/getPage.d.ts +4 -0
- package/dist/types/utils/mapping/mapExistingFile.d.ts +2 -0
- package/dist/types/utils/mapping/mappingRecord.d.ts +34 -0
- package/dist/types/utils/mapping/reverseMapping.d.ts +11 -0
- package/dist/types/utils/mapping/utils.d.ts +13 -0
- package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +2 -2
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/dist/{yaml-DLxKOxoT.js → yaml-Dx578IXG.js} +1 -1
- package/package.json +3 -3
- package/dist/types/api/checkAsAService/useCheckAsAService.d.ts +0 -16
- package/dist/types/components/Individual/mapping/IndividualToLegalEntity.mapper.d.ts +0 -8
- package/dist/types/context/AuthContext/AuthContext.d.ts +0 -13
- package/dist/types/context/AuthContext/AuthProvider.d.ts +0 -16
- package/dist/types/context/AuthContext/useAuthContext.d.ts +0 -3
- package/dist/types/context/ConfigurationApiContext/getKycExternalApi.d.ts +0 -5
- package/dist/types/context/ExpiryContext/ExpiredBanner.d.ts +0 -1
- package/dist/types/core/models/api/check-as-a-service.d.ts +0 -29
- package/dist/types/core/models/api/get-allowed-countries.d.ts +0 -4
- package/dist/types/core/models/api/transfer-instrument-reference.d.ts +0 -9
- package/dist/types/core/models/api/version-configuration.d.ts +0 -5
- package/dist/types/core/models/company.d.ts +0 -21
- package/dist/types/core/models/country-config.d.ts +0 -15
- package/dist/types/core/models/form-labels.d.ts +0 -5
- package/dist/types/core/models/identity.d.ts +0 -33
- package/dist/types/core/models/identityOnfido.d.ts +0 -33
- package/dist/types/core/models/payout-account.d.ts +0 -7
- package/dist/types/core/models/scenario-fields.d.ts +0 -11
- package/dist/types/core/models/sole-prop.d.ts +0 -8
- package/dist/types/core/models/trust.d.ts +0 -26
- package/dist/types/core/services/componentApi/get-analytics-session.d.ts +0 -2
- package/dist/types/core/services/componentApi/get-business-lines.d.ts +0 -2
- package/dist/types/core/services/componentApi/get-legal-forms.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-nace-codes.d.ts +0 -2
- package/dist/types/core/services/componentApi/get-pci-status.d.ts +0 -4
- package/dist/types/core/services/componentApi/get-pci-template.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-source-of-funds-types.d.ts +0 -2
- package/dist/types/core/services/componentApi/get-supported-countries.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-transfer-instruments.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-version-configuration.d.ts +0 -4
- package/dist/types/core/services/componentApi/push-events.d.ts +0 -1
- package/dist/types/core/services/componentApi/sign-pci.d.ts +0 -3
- package/dist/types/core/services/componentApi/update-source-of-funds.d.ts +0 -2
- package/dist/types/core/services/kycExternalApi/get-allowed-countries.d.ts +0 -3
- package/dist/types/core/services/kycExternalApi/get-configuration.d.ts +0 -3
- package/dist/types/core/services/kycExternalApi/validate-account-identification.d.ts +0 -4
- package/dist/types/core/services/kycExternalApi/validate-phone-number.d.ts +0 -3
- package/dist/types/core/services/kycExternalApi/verify-id-number.d.ts +0 -3
- package/dist/types/hooks/useInterval.d.ts +0 -3
- package/dist/types/utils/mapping/componentApiMapping.d.ts +0 -444
- package/dist/types/utils/mapping/mapping.d.ts +0 -64
- package/dist/types/utils/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +0 -3
- package/dist/types/utils/mapping/trustMembers/mapUndefinedBeneficiaryInfoToTrustMembers.d.ts +0 -3
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import type { ExistingLegalEntity } from '#core/models/api/legal-entity';
|
|
1
|
+
import type { ExistingLegalEntity, PatchLegalEntity } from '#core/models/api/legal-entity';
|
|
2
|
+
import { LegalEntityType } from '#core/models/api/legal-entity-type';
|
|
2
3
|
import type { UnincorporatedPartnershipMemberTypes } from '#core/models/api/unincorporated-partnership';
|
|
3
4
|
import { TaskTypes } from '#shared/tasks/TaskList/types';
|
|
4
5
|
import type { UnincorporatedPartnershipMember } from '../UnincorporatedPartnershipMembers/types';
|
|
5
6
|
export interface NavigateToMemberProps {
|
|
6
7
|
selectedMember: UnincorporatedPartnershipMember | undefined | 'new';
|
|
7
8
|
selectedRoles?: UnincorporatedPartnershipMemberTypes[];
|
|
9
|
+
selectedEntityType?: LegalEntityType.ORGANIZATION | LegalEntityType.INDIVIDUAL;
|
|
8
10
|
roleAndType?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export
|
|
12
|
+
export interface NavigationProps {
|
|
11
13
|
setAssociatedLegalEntity: (legalEntity?: ExistingLegalEntity) => void;
|
|
12
14
|
navigateTo: (taskType: TaskTypes) => void;
|
|
13
15
|
handleGetLegalEntity: (legalEntityId: string) => Promise<ExistingLegalEntity>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
handleUpdateLegalEntity: (data: PatchLegalEntity, legalEntityId: string) => Promise<ExistingLegalEntity>;
|
|
17
|
+
}
|
|
18
|
+
export declare const useUnincorporatedPartnershipNavigation: ({ setAssociatedLegalEntity, navigateTo, handleGetLegalEntity, handleUpdateLegalEntity, }: NavigationProps) => {
|
|
19
|
+
onNavigateToMember: ({ selectedMember, selectedRoles, selectedEntityType, roleAndType, }: NavigateToMemberProps) => Promise<void>;
|
|
20
|
+
onDeleteMember: (member: UnincorporatedPartnershipMember, associatedLegalArrangement?: ExistingLegalEntity) => Promise<void>;
|
|
16
21
|
activeMember: UnincorporatedPartnershipMember;
|
|
17
22
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExperimentName } from '#context/ExperimentContext/types';
|
|
2
|
+
import type { LegalEntity } from '#models/api/legal-entity';
|
|
3
|
+
import type { TrustSchema } from '../../Trust/forms/Trust/types';
|
|
4
|
+
export declare const mapLegalEntityToUnincorporatedPartnership: (legalEntity: LegalEntity, isExperimentEnabled: (key: ExperimentName) => boolean) => TrustSchema;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExperimentName } from '#context/ExperimentContext/types';
|
|
2
|
+
import type { LegalEntity } from '#models/api/legal-entity';
|
|
3
|
+
import type { TrustSchema } from '../../Trust/forms/Trust/types';
|
|
4
|
+
export declare const mapUnincorporatedPartnershipToLegalEntity: (data: TrustSchema, isExperimentEnabled: (key: ExperimentName) => boolean) => LegalEntity;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LegalEntity } from '#models/api/legal-entity';
|
|
2
|
+
import type { DocumentMappingRecord, MappingRecord } from '#utils/mapping/mappingRecord';
|
|
3
|
+
import type { TrustSchema } from '../../Trust/forms/Trust/types';
|
|
4
|
+
export declare const unincorporatedPartnershipComponentsKeyMapping: MappingRecord<TrustSchema, Pick<LegalEntity, 'unincorporatedPartnership'>>;
|
|
5
|
+
export declare const unincorporatedPartnershipApiKeyMapping: MappingRecord<Pick<LegalEntity, 'unincorporatedPartnership'>, TrustSchema>;
|
|
6
|
+
export declare const unincorporatedPartnershipDocumentMapping: DocumentMappingRecord<TrustSchema>;
|
package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { ExistingLegalEntity } from '#core/models/api/legal-entity';
|
|
1
2
|
import type { LegalEntityAssociation } from '#core/models/api/legal-entity-association';
|
|
3
|
+
import type { DropinAPIHandlers } from '../../EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
2
4
|
import type { UnincorporatedPartnershipMember } from '../UnincorporatedPartnershipMembers/types';
|
|
3
5
|
/**
|
|
4
6
|
* In the API response, there are multiple {@link LegalEntityAssociation}s for the same associated entity;
|
|
@@ -7,3 +9,8 @@ import type { UnincorporatedPartnershipMember } from '../UnincorporatedPartnersh
|
|
|
7
9
|
* Therefore we need to combine these into one {@link UnincorporatedPartnershipMember} with multiple roles.
|
|
8
10
|
*/
|
|
9
11
|
export declare const mapEntityAssociationsToUnincorporatedPartnershipMembers: (entityId: string, entityAssociations: LegalEntityAssociation[]) => UnincorporatedPartnershipMember[];
|
|
12
|
+
export declare const deleteUnincorporatedPartnershipMember: ({ associatedTrustMember, unincorporatedPartnership, handleUpdateLegalEntity, }: {
|
|
13
|
+
associatedTrustMember: UnincorporatedPartnershipMember;
|
|
14
|
+
unincorporatedPartnership: ExistingLegalEntity;
|
|
15
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers["handleUpdateLegalEntity"]>;
|
|
16
|
+
}) => Promise<void>;
|
|
@@ -2,12 +2,12 @@ import type { CoreProviderProps } from '#context/CoreContext/CoreProvider';
|
|
|
2
2
|
import type { ExperimentsProps } from '#context/ExperimentContext/types';
|
|
3
3
|
import type { SettingsProps } from '#context/SettingsContext/types';
|
|
4
4
|
import type { EventEmitter } from '#core/EventEmitter';
|
|
5
|
-
import type { UserEventCallback } from '#core/user-events';
|
|
6
5
|
import { PayoutDetailsDropin } from './BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin';
|
|
7
6
|
import { BusinessDetailsDropin } from './Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin';
|
|
8
7
|
import { CompanyDropin } from './Business/tasks/CompanyDropin/CompanyDropin';
|
|
9
8
|
import { PciDropin } from './Contract/tasks/PciDropin/PciDropin';
|
|
10
9
|
import { SourceOfFundsDropin } from './EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin';
|
|
10
|
+
import { TaxReportingDropin } from './EFP/tasks/TaxReportingDropin/TaxReportingDropin';
|
|
11
11
|
import { AcceptTermsOfServiceComponent } from './EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent';
|
|
12
12
|
import { CreateIndividualComponent } from './EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent';
|
|
13
13
|
import { CreateTransferInstrumentComponent } from './EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent';
|
|
@@ -47,6 +47,7 @@ export declare const componentsMap: {
|
|
|
47
47
|
readonly viewVerificationStatusComponent: typeof ViewVerificationStatusComponent;
|
|
48
48
|
readonly updateLegalEntityForHighExposureComponent: typeof UpdateLegalEntityForHighExposure;
|
|
49
49
|
readonly sourceOfFundsDropin: typeof SourceOfFundsDropin;
|
|
50
|
+
readonly taxReportingDropin: typeof TaxReportingDropin;
|
|
50
51
|
};
|
|
51
52
|
export type ComponentMap = typeof componentsMap;
|
|
52
53
|
export type ComponentProps<Name extends keyof ComponentMap> = Parameters<ComponentMap[Name]>[0];
|
|
@@ -62,7 +63,5 @@ interface CommonInternalProps {
|
|
|
62
63
|
/** Used to update locale in components */
|
|
63
64
|
eventEmitter: EventEmitter;
|
|
64
65
|
}
|
|
65
|
-
export type ComponentOptions<Name extends keyof ComponentMap> = ComponentPropsWithoutInternalProps<Name> & Partial<CoreProviderProps> & Partial<SettingsProps> & Partial<ExperimentsProps
|
|
66
|
-
onUserEvent?: UserEventCallback;
|
|
67
|
-
};
|
|
66
|
+
export type ComponentOptions<Name extends keyof ComponentMap> = ComponentPropsWithoutInternalProps<Name> & Partial<CoreProviderProps> & Partial<SettingsProps> & Partial<ExperimentsProps>;
|
|
68
67
|
export {};
|
|
@@ -73,6 +73,7 @@ export declare const customIcons: {
|
|
|
73
73
|
review: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
74
74
|
'funds-in': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
75
75
|
house: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
76
|
+
reporting: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
76
77
|
};
|
|
77
78
|
export declare const images: {
|
|
78
79
|
'document-blurred': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -104,6 +105,7 @@ export declare const images: {
|
|
|
104
105
|
'plaid-logo': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
105
106
|
'trustly-logo': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
106
107
|
'source-of-funds': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
108
|
+
'tax-reporting-graph': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
107
109
|
};
|
|
108
110
|
export declare const svgs: {
|
|
109
111
|
readonly 'document-blurred': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -135,9 +137,11 @@ export declare const svgs: {
|
|
|
135
137
|
readonly 'plaid-logo': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
136
138
|
readonly 'trustly-logo': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
137
139
|
readonly 'source-of-funds': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
140
|
+
readonly 'tax-reporting-graph': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
138
141
|
readonly review: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
139
142
|
readonly 'funds-in': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
140
143
|
readonly house: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
144
|
+
readonly reporting: import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
141
145
|
readonly 'adyen-a-filled': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
142
146
|
readonly 'arrow-left': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
143
147
|
readonly 'arrow-right': import("preact").FunctionComponent<import("preact/jsx-runtime").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { ComponentChildren } from 'preact';
|
|
2
|
-
import type { UserEventCallback } from '#core/user-events';
|
|
3
2
|
import type { ComponentMap } from '../../components';
|
|
4
3
|
export interface AnalyticsProviderProps {
|
|
5
|
-
onUserEvent?: UserEventCallback;
|
|
6
4
|
componentName: keyof ComponentMap;
|
|
7
5
|
children?: ComponentChildren;
|
|
8
6
|
legalEntityId: string;
|
|
9
7
|
}
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The provider exists to scope analytics to one application instance.
|
|
10
|
+
* This would otherwise be problematic when a consumer might have several
|
|
11
|
+
* instantiations of a embedded Component for instance on the same page
|
|
12
|
+
*/
|
|
13
|
+
export declare const AnalyticsProvider: ({ componentName, children, legalEntityId, }: AnalyticsProviderProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,6 @@ import type { Signal } from '@preact/signals';
|
|
|
2
2
|
import { type ComponentChildren } from 'preact';
|
|
3
3
|
interface ApiStateProps {
|
|
4
4
|
legalEntityId: string;
|
|
5
|
-
isComponent: boolean;
|
|
6
5
|
baseUrl: string;
|
|
7
6
|
children?: ComponentChildren;
|
|
8
7
|
}
|
|
@@ -18,5 +17,5 @@ export declare const useApiContext: () => ApiState;
|
|
|
18
17
|
* @param {string} legalEntityId - legalEntityId
|
|
19
18
|
* @param {string} baseUrl - base url
|
|
20
19
|
*/
|
|
21
|
-
export declare const ApiProvider: ({ legalEntityId, baseUrl,
|
|
20
|
+
export declare const ApiProvider: ({ legalEntityId, baseUrl, children }: ApiStateProps) => import("preact/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import type { AccountIdentification } from '#models/api/accountIdentification';
|
|
2
2
|
import type { DataSet } from '#models/api/data-set';
|
|
3
|
-
import type { GetAllowedCountriesResponse } from '#models/api/get-allowed-countries';
|
|
4
3
|
import type { GetConfigurationRequest, GetConfigurationResponse } from '#models/api/get-configuration';
|
|
5
|
-
import type { BusinessLinesType, SourceOfFundsPayloadType } from '#models/api/source-of-funds';
|
|
6
4
|
import type { VerifyIdNumberRequest, VerifyIdNumberResponse } from '#models/api/verify-id-number';
|
|
7
|
-
import type { CountryCode } from '#models/country-code';
|
|
8
5
|
import type { AccountValidationResponse, ValidationResponse } from '#models/errors/validation-error';
|
|
9
6
|
import type { DatasetIdentifier } from '#utils/datasetUtil';
|
|
10
7
|
export type ConfigurationApi = {
|
|
11
8
|
getConfiguration: (request: GetConfigurationRequest) => Promise<GetConfigurationResponse>;
|
|
12
|
-
getAllowedCountries: () => Promise<GetAllowedCountriesResponse>;
|
|
13
9
|
getDataset: (identifier: DatasetIdentifier, locale: string) => Promise<DataSet>;
|
|
14
10
|
validateAccountIdentification: (accountIdentificationDetails: AccountIdentification) => Promise<AccountValidationResponse>;
|
|
15
11
|
verifyIdNumber: (request: VerifyIdNumberRequest) => Promise<VerifyIdNumberResponse | undefined>;
|
|
16
12
|
validatePhoneNumber: (phoneNumber: string) => Promise<ValidationResponse>;
|
|
17
|
-
getLegalForms: (countryCode?: CountryCode) => Promise<DataSet>;
|
|
18
|
-
getNaceCodes: () => Promise<DataSet>;
|
|
19
|
-
getBusinessLines: (legalEntityId: string) => Promise<BusinessLinesType[]>;
|
|
20
|
-
getSourceOfFundsTypes: () => Promise<DataSet>;
|
|
21
|
-
updateSourceOfFunds: (legalEntityId: string, businessLineId: string, sourceOfFundData: SourceOfFundsPayloadType) => Promise<BusinessLinesType | undefined>;
|
|
22
13
|
};
|
|
23
14
|
export declare const ConfigurationApiContext: import("preact").Context<ConfigurationApi>;
|
|
@@ -8,8 +8,6 @@ export declare enum ExperimentNames {
|
|
|
8
8
|
EnableKompanySearchByRegistrationNumber = "EnableKompanySearchByRegistrationNumber",
|
|
9
9
|
AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
|
|
10
10
|
ShowUnsupportedEntityType = "ShowUnsupportedEntityType",
|
|
11
|
-
ShowSingPassButtonForCompanies = "ShowSingPassButtonForCompanies",
|
|
12
|
-
ShowSingPassButtonForIndividuals = "ShowSingPassButtonForIndividuals",
|
|
13
11
|
ShowExtraTaxExemptionReasons = "ShowExtraTaxExemptionReasons",
|
|
14
12
|
EnableEInvoicingCodeField = "EnableEInvoicingCodeField",
|
|
15
13
|
EnableCountryOfGoverningLawForUKCompanies = "EnableCountryOfGoverningLawForUKCompanies",
|
|
@@ -17,13 +15,11 @@ export declare enum ExperimentNames {
|
|
|
17
15
|
HidePciTask = "HidePciTask",
|
|
18
16
|
EnableAgeVerification = "EnableAgeVerification",
|
|
19
17
|
EnableNationalitySGHK = "EnableNationalitySGHK",
|
|
20
|
-
EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation = "EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation",
|
|
21
18
|
EnablePreferInstantVerificationFlow = "EnablePreferInstantVerificationFlow",
|
|
22
19
|
EnableFinancialInformationComponentV4 = "EnableFinancialInformationComponentV4",
|
|
23
20
|
StrictNameAndAddressValidationV4 = "StrictNameAndAddressValidationV4",
|
|
24
21
|
EnableDoingBusinessAsNameV4 = "EnableDoingBusinessAsNameV4",
|
|
25
22
|
EnablePhoneFieldScenario = "EnablePhoneFieldScenario",
|
|
26
|
-
EnableAUIncorporatedPartnershipSkipRegistrationNumber = "EnableAUIncorporatedPartnershipSkipRegistrationNumber",
|
|
27
23
|
ShowCustomerSupportV4 = "ShowCustomerSupportV4",
|
|
28
24
|
EnableRegistrationAndTaxAbsentStatesV4 = "EnableRegistrationAndTaxAbsentStatesV4",
|
|
29
25
|
EnableManualCompanyTinVerification = "EnableManualCompanyTinVerification",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TaxReportingClassification } from '#models/api/tax-reporting-classification';
|
|
1
2
|
import type { CustomerSupportSchema } from '#shared/tasks/CustomerSupport/types';
|
|
2
3
|
import type { ValidationRuleResult } from '#utils/validation/types';
|
|
3
4
|
import type { PayoutDetailsSchema } from '../../components/BankAccount/forms/PayoutDetails/types';
|
|
@@ -51,7 +52,7 @@ export type StateModel<TLDS extends TopLevelDataSchema = TopLevelDataSchema> = {
|
|
|
51
52
|
prevState?: State<TLDS>;
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
|
-
export type TopLevelDataSchema = IndividualSchema | IndividualOnfidoSchema | BusinessDetailsSchema | CompanySchema | CustomerSupportSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema | SourceOfFundsSchema;
|
|
55
|
+
export type TopLevelDataSchema = IndividualSchema | IndividualOnfidoSchema | BusinessDetailsSchema | CompanySchema | CustomerSupportSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema | SourceOfFundsSchema | TaxReportingClassification;
|
|
55
56
|
export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof CompanySchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema | keyof SolePropSchema;
|
|
56
57
|
export interface State<TLDS extends TopLevelDataSchema> {
|
|
57
58
|
data: TLDS;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import './UIElement.scss';
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import type { EmptyObject } from 'type-fest';
|
|
4
|
-
import type { AuthProviderProps } from '#context/AuthContext/AuthProvider';
|
|
5
4
|
import type { CoreProviderProps } from '#context/CoreContext/CoreProvider';
|
|
6
5
|
import type { ExperimentsProps } from '#context/ExperimentContext/types';
|
|
7
6
|
import type { ExpiryProviderProps } from '#context/ExpiryContext/ExpiryContext';
|
|
@@ -10,9 +9,10 @@ import type { SettingsProps } from '#context/SettingsContext/types';
|
|
|
10
9
|
import type { ComponentMap } from '../../components';
|
|
11
10
|
import type { BaseElementProps } from '../BaseElement';
|
|
12
11
|
import { BaseElement } from '../BaseElement';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
interface EmbedProps {
|
|
13
|
+
loadingContext: string;
|
|
14
|
+
}
|
|
15
|
+
export interface UIElementProps<Props extends object> extends BaseElementProps, CoreProviderProps, I18nProviderProps, ExpiryProviderProps, SettingsProps, EmbedProps, ExperimentsProps {
|
|
16
16
|
component: (props: Props) => JSX.Element;
|
|
17
17
|
componentName: keyof ComponentMap;
|
|
18
18
|
componentProps: Props;
|
|
@@ -20,3 +20,4 @@ export interface UIElementProps<Props extends object> extends BaseElementProps,
|
|
|
20
20
|
export declare class UIElement<Props extends object = EmptyObject> extends BaseElement<UIElementProps<Props>> {
|
|
21
21
|
render: () => JSX.Element;
|
|
22
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MixpanelProperty } from '../../user-events';
|
|
2
|
+
/** @deprecated */
|
|
2
3
|
export interface EmbeddedAnalyticsSessionRequest {
|
|
3
4
|
sdkVersion: string;
|
|
4
5
|
componentName: string;
|
|
@@ -6,6 +7,7 @@ export interface EmbeddedAnalyticsSessionRequest {
|
|
|
6
7
|
legalEntityId: string;
|
|
7
8
|
userData?: Record<string, MixpanelProperty>;
|
|
8
9
|
}
|
|
10
|
+
/** @deprecated */
|
|
9
11
|
export interface EmbeddedAnalyticsSessionResponse {
|
|
10
12
|
id: string;
|
|
11
13
|
}
|
|
@@ -37,5 +37,9 @@ export declare enum DocumentType {
|
|
|
37
37
|
PROOF_OF_RESIDENCY = "proofOfResidency",
|
|
38
38
|
REGISTRATION_DOCUMENT = "registrationDocument",
|
|
39
39
|
RESIDENCE_PERMIT = "residence_permit",
|
|
40
|
-
VAT_DOCUMENT = "vatDocument"
|
|
40
|
+
VAT_DOCUMENT = "vatDocument",
|
|
41
|
+
DEPOSIT_SLIP = "depositSlip",
|
|
42
|
+
SCREENSHOT_OF_BANK = "screenshotOfOnlineBankingEnviroment",
|
|
43
|
+
A_LETTER_FROM_YOUR_BANK = "aLetterFromYourBank",
|
|
44
|
+
CHECK = "check"
|
|
41
45
|
}
|
|
@@ -10,9 +10,11 @@ export declare const enum Scenarios {
|
|
|
10
10
|
L1_IDO = "L1_IDO",
|
|
11
11
|
L1_NAT = "L1_NAT",
|
|
12
12
|
L1_IDDOC = "L1_IDDOC",
|
|
13
|
+
L2 = "L2",
|
|
13
14
|
L_REGDOC = "L_REGDOC",
|
|
14
15
|
L_TAXDOC = "L_TAXDOC",
|
|
15
|
-
L_PROOFOFADDRESS = "L_PROOFOFADDRESS"
|
|
16
|
+
L_PROOFOFADDRESS = "L_PROOFOFADDRESS",
|
|
17
|
+
L_PH = "L_PH"
|
|
16
18
|
}
|
|
17
19
|
export type Scenario = `${Scenarios}`;
|
|
18
20
|
export interface GetScenariosResponse {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TaxReportingClassification } from '#models/api/tax-reporting-classification';
|
|
1
2
|
import type { TaxIdNumberType } from '#shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
3
|
import type { CountryCode } from '../country-code';
|
|
3
4
|
import type { Address } from './address';
|
|
@@ -40,6 +41,7 @@ export interface Organization {
|
|
|
40
41
|
globalLegalEntityIdentifier?: string;
|
|
41
42
|
eInvoicingCode?: string;
|
|
42
43
|
support?: CustomerSupport;
|
|
44
|
+
taxReportingClassification?: TaxReportingClassification;
|
|
43
45
|
}
|
|
44
46
|
export declare const vatAbsenceReasons: readonly ["industryExemption", "belowTaxThreshold", "countryWithoutVatOrGstSystem"];
|
|
45
47
|
export type VatAbsenceReason = (typeof vatAbsenceReasons)[number];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tax reporting classification.
|
|
3
|
+
*
|
|
4
|
+
* The tax reporting classification (FATCA/CRS self-certification) of the organization..
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface TaxReportingClassification {
|
|
8
|
+
businessType?: TaxReportingBusinessType;
|
|
9
|
+
financialInstitutionNumber?: string;
|
|
10
|
+
mainSourceOfIncome?: TaxReportingMainSourceOfIncomeType;
|
|
11
|
+
type?: TaxReportingClassificationType;
|
|
12
|
+
}
|
|
13
|
+
export type TaxReportingBusinessType = 'listedPublicCompany' | 'subsidiaryOfListedPublicCompany' | 'governmentalOrganization' | 'internationalOrganization' | 'financialInstitution' | 'other';
|
|
14
|
+
export type TaxReportingMainSourceOfIncomeType = 'businessOperation' | 'realEstateSales' | 'investmentInterestOrRoyalty' | 'propertyRental' | 'other';
|
|
15
|
+
export type TaxReportingClassificationType = 'nonFinancialNonReportable' | 'financialNonReportable' | 'nonFinancialActive' | 'nonFinancialPassive';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import type { MaskSettings } from '#hooks/useForm/types';
|
|
2
|
+
import type { Translatable, TranslationKey } from '#language/types';
|
|
1
3
|
import type { PerCountry } from '#utils/perCountry';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import type { ValidatorRule } from '#utils/validation/types';
|
|
5
|
+
export interface FieldMetadata<FormSchema, FieldName extends keyof FormSchema> {
|
|
6
|
+
label?: TranslationKey;
|
|
7
|
+
placeholder?: TranslationKey;
|
|
8
|
+
helperText?: Translatable;
|
|
9
|
+
guidanceText?: Translatable;
|
|
10
|
+
mask?: MaskSettings;
|
|
11
|
+
validators?: ValidatorRule<FormSchema[FieldName], FormSchema> | ValidatorRule<FormSchema[FieldName], FormSchema>[];
|
|
12
|
+
}
|
|
8
13
|
export type PerCountryFieldConfig<FormSchema, FieldName extends keyof FormSchema, Params extends object> = PerCountry<FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>)>;
|
|
9
14
|
export type NoParams = Record<string, never>;
|
|
10
15
|
export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>) | undefined, params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
|
|
11
|
-
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AllUnionFields, ValueOf } from 'type-fest';
|
|
2
|
+
import type { TopLevelDataSchema } from '#context/StateContext/types';
|
|
3
|
+
import type { TranslationKey } from '#language/types';
|
|
4
|
+
import type { Scenario } from '#models/api/get-scenarios';
|
|
5
|
+
import type { PerCountry } from '#utils/perCountry';
|
|
6
|
+
export interface FieldSettings<RuleName extends string> {
|
|
7
|
+
obscured?: boolean;
|
|
8
|
+
rule?: RuleName | 'REQUIRED' | 'OPTIONAL';
|
|
9
|
+
rules?: Array<RuleName>;
|
|
10
|
+
/**
|
|
11
|
+
* The default label is a translation of the field name.
|
|
12
|
+
* Usually overridden by an {@link PerCountryFormConfiguration}.
|
|
13
|
+
*/
|
|
14
|
+
label?: TranslationKey;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* We're only interested in the keys of the inner schemas
|
|
18
|
+
*/
|
|
19
|
+
type GrandchildKeyOf<T> = keyof AllUnionFields<ValueOf<Required<T>>>;
|
|
20
|
+
/**
|
|
21
|
+
* A {@link FormConfiguration} tells us for each field within a form, which rule(s) will decide if that
|
|
22
|
+
* field is `REQUIRED` or `OPTIONAL`.
|
|
23
|
+
*
|
|
24
|
+
* Optionally they can mark a field as {@link FieldSettings.obscured},
|
|
25
|
+
* which indicates that the API may give us a (partially) obscured value.
|
|
26
|
+
*/
|
|
27
|
+
export type FormConfiguration<TLDS extends TopLevelDataSchema, RuleName extends string> = Partial<Record<GrandchildKeyOf<TLDS>, // TODO replace this with `MappingKey<TLDS>` at some point
|
|
28
|
+
FieldSettings<RuleName>>>;
|
|
29
|
+
export type FormConfigurationWithoutRules<TLDS extends TopLevelDataSchema> = Partial<Record<GrandchildKeyOf<TLDS>, Pick<FieldSettings<string>, 'label'>>>;
|
|
30
|
+
/**
|
|
31
|
+
* A form configuration is defined for each {@link Scenario}. Normally this means higher scenarios
|
|
32
|
+
* (e.g. `L1_ID` or `L`) override rules for relevant fields, making more fields `REQUIRED`.
|
|
33
|
+
*/
|
|
34
|
+
export type PerScenarioFormConfiguration<TLDS extends TopLevelDataSchema, RuleName extends string> = Partial<Record<Scenario, FormConfiguration<TLDS, RuleName>>>;
|
|
35
|
+
export type PerCountryFormConfiguration<TLDS extends TopLevelDataSchema> = PerCountry<FormConfigurationWithoutRules<TLDS>>;
|
|
36
|
+
export {};
|
|
@@ -13,11 +13,14 @@ export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
|
|
|
13
13
|
isSettingEnabled?: (setting: SettingName) => boolean;
|
|
14
14
|
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
15
15
|
requiredFields?: Partial<AccountFormatRequirements>;
|
|
16
|
-
isEmbeddedDropin?: boolean;
|
|
17
16
|
rootLegalEntity?: ExistingLegalEntity;
|
|
18
17
|
accountHolder?: AccountHolderOption;
|
|
19
18
|
tinMatched?: boolean;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
type FieldRule = () => 'REQUIRED' | 'OPTIONAL' | undefined;
|
|
21
|
+
export type FormRules<RuleName extends string> = Record<RuleName, FieldRule>;
|
|
22
|
+
/**
|
|
23
|
+
* Identity function that guarantees strictly typed rules with the provided rule names
|
|
24
|
+
*/
|
|
25
|
+
export declare const createFormRules: <SpecificRules extends FormRules<string>>(rules: SpecificRules) => SpecificRules;
|
|
26
|
+
export {};
|
|
@@ -1,36 +1,17 @@
|
|
|
1
|
+
import type { TopLevelDataSchema } from '#context/StateContext/types';
|
|
1
2
|
import type { BaseOuterFormProps } from '#hooks/useForm/types';
|
|
2
3
|
import type { Scenario } from '#models/api/get-scenarios';
|
|
3
4
|
import type { LegalEntityTrustedFields } from '#models/api/legal-entity';
|
|
4
5
|
import type { LegalEntityType } from '#models/api/legal-entity-type';
|
|
5
6
|
import type { VerificationError } from '#models/api/verification-error';
|
|
6
|
-
import type { CountryCode } from '#models/country-code';
|
|
7
7
|
import type { Remediation } from '#models/errors/remediation';
|
|
8
|
-
import type { FieldConfigurations } from '#models/field-configurations';
|
|
9
8
|
import type { FormList } from '#models/form';
|
|
9
|
+
import type { FormConfiguration, FormConfigurationWithoutRules, PerScenarioFormConfiguration } from '#models/form-configuration';
|
|
10
|
+
import type { FormRules } from '#models/form-rules';
|
|
10
11
|
import type { AnyTLDSFieldName } from '#utils/getFieldsWithExistingData';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import type { CompanySchema } from '../components/Business/forms/Company/types';
|
|
15
|
-
import type { HighExposureSchema } from '../components/EFP/tasks/HighExposureDropin/types';
|
|
16
|
-
import type { IndividualSchema } from '../components/Individual/forms/Individual/types';
|
|
17
|
-
import type { SolePropSchema } from '../components/SoleProprietorship/forms/SoleProp/types';
|
|
18
|
-
import type { TrustSchema } from '../components/Trust/forms/Trust/types';
|
|
19
|
-
export declare const parseIndividualScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<IndividualSchema>;
|
|
20
|
-
export declare const parseIndividualOnfidoScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<IndividualSchema>;
|
|
21
|
-
export declare function parseBusinessDetailsScenarios(scenario: Scenario[] | undefined, country: CountryCode): FieldConfigurations<BusinessDetailsSchema>;
|
|
22
|
-
export declare function parseCompanyScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<CompanySchema>;
|
|
23
|
-
export declare function parseTrustScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<TrustSchema>;
|
|
24
|
-
export declare const parseHighExposureScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<HighExposureSchema>;
|
|
25
|
-
export declare function parseSolePropScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<SolePropSchema>;
|
|
26
|
-
export declare function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, }: {
|
|
27
|
-
requiredFields: (keyof PayoutAccountSchema)[] | undefined;
|
|
28
|
-
country: CountryCode;
|
|
29
|
-
bankVerificationAvailable: boolean | undefined;
|
|
30
|
-
}): Partial<FieldConfigurations<PayoutAccountSchema>>;
|
|
31
|
-
export type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormSchema>, 'allFields' | 'verifyFields' | 'requiredFields' | 'placeholders' | 'helperText' | 'masks' | 'optionalFields' | 'labels' | 'obscuredFields' | 'trustedFields'>> & {
|
|
32
|
-
validators: ValidatorRules<FormSchema>;
|
|
33
|
-
};
|
|
12
|
+
export declare const composePerScenarioFormConfigurations: <TLDS extends TopLevelDataSchema>(scenarios: Scenario[], configurations: PerScenarioFormConfiguration<TLDS, string>) => FormConfiguration<TLDS, string>;
|
|
13
|
+
export declare const augmentWithCountryConfigs: <FormSchema>(countrySpecificConfig: FormConfigurationWithoutRules<FormSchema> | undefined, baseFormConfig: FormConfiguration<FormSchema, string>) => FormConfiguration<FormSchema, string>;
|
|
14
|
+
export type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormSchema>, 'allFields' | 'requiredFields' | 'optionalFields' | 'labels' | 'obscuredFields' | 'trustedFields'>>;
|
|
34
15
|
/**
|
|
35
16
|
* function: getPropsFromScenarios
|
|
36
17
|
*
|
|
@@ -71,4 +52,5 @@ export type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProp
|
|
|
71
52
|
* }
|
|
72
53
|
* ```
|
|
73
54
|
*/
|
|
74
|
-
export declare function getPropsFromConfigurations<FormSchema extends object>(scenarioConfiguration:
|
|
55
|
+
export declare function getPropsFromConfigurations<FormSchema extends object>(scenarioConfiguration: FormConfiguration<FormSchema, string> | undefined, forms: FormList, remediationActions: Remediation[], dataMissingErrors: VerificationError[], fieldsWithExistingData: AnyTLDSFieldName[], // TODO can type more strictly as `MappingKey<FormSchema>`
|
|
56
|
+
customRules: FormRules<string>, _customLabels: {}, _customValidators: {}, legalEntityType: LegalEntityType | undefined, legalEntityTrustedFields?: LegalEntityTrustedFields[], remediationFieldAsOptional?: boolean): PropsFromConfiguration<FormSchema> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { NonEmbeddedAuthContextType } from '#context/AuthContext/AuthContext';
|
|
2
1
|
export type FetchErrorLevel = 'silent' | 'info' | 'warn' | 'error' | 'fatal';
|
|
3
2
|
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'PATCH';
|
|
4
|
-
export type RequestContext =
|
|
3
|
+
export type RequestContext = {
|
|
4
|
+
clientKey: string;
|
|
5
5
|
loadingContext: string;
|
|
6
6
|
};
|
|
7
7
|
export interface HttpOptions {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TokenResponse } from '#context/AuthContext/AuthProvider';
|
|
2
1
|
import type { CountryCode } from '#models/country-code';
|
|
3
2
|
export interface CoreOptions {
|
|
4
3
|
/**
|
|
@@ -18,7 +17,9 @@ export interface CoreOptions {
|
|
|
18
17
|
* JWT token used for embedded Dropin authentication
|
|
19
18
|
*/
|
|
20
19
|
sdkToken?: string;
|
|
21
|
-
getSdkToken?(): Promise<
|
|
20
|
+
getSdkToken?(): Promise<{
|
|
21
|
+
token: string;
|
|
22
|
+
}>;
|
|
22
23
|
/**
|
|
23
24
|
* When the user's session is set to expire.
|
|
24
25
|
* Should be provided as a Unix timestamp, i.e. milliseconds since epoch (e.g. 1721054807209).
|
|
@@ -36,6 +36,7 @@ export interface AdditionalEventProperties {
|
|
|
36
36
|
field?: string;
|
|
37
37
|
returnType?: 'backend' | 'validation' | (string & {});
|
|
38
38
|
returnValue?: string | string[];
|
|
39
|
+
additionalData?: string | string[];
|
|
39
40
|
label?: string;
|
|
40
41
|
[key: string]: MixpanelProperty;
|
|
41
42
|
'Experiment name'?: string;
|
|
@@ -53,7 +54,7 @@ export type EventQueueItem = {
|
|
|
53
54
|
name: EventName;
|
|
54
55
|
properties?: AnalyticsEventPayload;
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
type UserEventCallback = (eventQueueItem: EventQueueItem) => void;
|
|
57
58
|
export declare class UserEvents {
|
|
58
59
|
private readonly queue;
|
|
59
60
|
private readonly subscriptions;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload, EventQueueItem, EventType, MixpanelProperty,
|
|
1
|
+
import type { AnalyticsEventPayload, EventQueueItem, EventType, MixpanelProperty, UserEvents } from '#core/user-events';
|
|
2
2
|
import type { EmbeddedAnalyticsSessionRequest } from '#models/api/analytics';
|
|
3
|
-
import type { ComponentMap } from '../components';
|
|
4
|
-
import type { OnboardingVersion } from './useVersionConfiguration';
|
|
5
3
|
export type UseAnalyticsProps = {
|
|
6
|
-
onUserEvent?: UserEventCallback;
|
|
7
4
|
userEvents: UserEvents;
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
sessionId: string | undefined;
|
|
6
|
+
sessionData: EmbeddedAnalyticsSessionRequest;
|
|
10
7
|
};
|
|
11
8
|
type EmbeddedEventItem = {
|
|
12
9
|
eventType: EventType;
|
|
@@ -14,5 +11,5 @@ type EmbeddedEventItem = {
|
|
|
14
11
|
eventData: AnalyticsEventPayload | Record<string, MixpanelProperty>;
|
|
15
12
|
};
|
|
16
13
|
export declare const convertToEmbeddedEvent: (eventQueueItem: EventQueueItem, sessionData: EmbeddedAnalyticsSessionRequest) => EmbeddedEventItem & EmbeddedAnalyticsSessionRequest;
|
|
17
|
-
export declare const useAnalytics: ({
|
|
14
|
+
export declare const useAnalytics: ({ userEvents, sessionId, sessionData }: UseAnalyticsProps) => void;
|
|
18
15
|
export {};
|
|
@@ -7,7 +7,6 @@ import type { CountryCode } from '#models/country-code';
|
|
|
7
7
|
import type { BankVerificationVendor } from '../components/BankAccount/forms/BankVerification/types';
|
|
8
8
|
import type { DropinAPIHandlers } from '../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
9
9
|
interface UseBankConfigurationHandlersProps {
|
|
10
|
-
isEmbeddedDropin: boolean;
|
|
11
10
|
handleGetBankVerificationVendors: DropinAPIHandlers['handleGetBankVerificationVendors'];
|
|
12
11
|
bankAccountCountry: CountryCode;
|
|
13
12
|
getConfiguration: ConfigurationApi['getConfiguration'];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ProviderStatusRequest, ProviderStatusResponse } from '#models/api/provider-status';
|
|
2
|
-
import type { TransferInstrumentReference } from '#models/api/transfer-instrument-reference';
|
|
3
2
|
import type { BankVerificationErrorResponse } from '#models/api/trusted-transferInstrument';
|
|
4
3
|
import type { DropinAPIHandlers } from '../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
|
|
5
4
|
export type ComponentApi = {
|
|
@@ -21,11 +20,7 @@ export type ComponentApi = {
|
|
|
21
20
|
searchAddress: Required<DropinAPIHandlers>['handleAddressSearch'];
|
|
22
21
|
createTrustedTransferInstrument: Required<DropinAPIHandlers>['handleCreateTrustedTransferInstrument'];
|
|
23
22
|
handleBankVerificationError(errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>): Promise<BankVerificationErrorResponse>;
|
|
24
|
-
getTransferInstruments(): Promise<TransferInstrumentReference[]>;
|
|
25
|
-
getPciStatus: Required<DropinAPIHandlers>['handleGetPciStatus'];
|
|
26
|
-
getPciTemplate: Required<DropinAPIHandlers>['handleGetPciTemplate'];
|
|
27
23
|
getPciQuestionnaires: Required<DropinAPIHandlers>['handleGetPciQuestionnaires'];
|
|
28
|
-
signPci: Required<DropinAPIHandlers>['handleSignPci'];
|
|
29
24
|
downloadPci: Required<DropinAPIHandlers>['handleDownloadPci'];
|
|
30
25
|
getServiceAgreementStatus: Required<DropinAPIHandlers>['handleGetServiceAgreementStatus'];
|
|
31
26
|
getServiceAgreementAcceptanceInfos: Required<DropinAPIHandlers>['handleGetServiceAgreementAcceptanceInfos'];
|
|
@@ -71,7 +71,7 @@ export type OuterFormLabels<OuterFormSchema> = {
|
|
|
71
71
|
[Form in keyof OuterFormSchema]: InnerFormLabels<OuterFormSchema[Form]>;
|
|
72
72
|
};
|
|
73
73
|
export interface Form<FormSchema> extends FormState<FormSchema> {
|
|
74
|
-
setData: (key:
|
|
74
|
+
setData: <Key extends keyof FormSchema>(key: Key, value: FormSchema[Key]) => void;
|
|
75
75
|
setValid: (key: keyof FormSchema, value: boolean) => void;
|
|
76
76
|
setErrors: (key: keyof FormSchema, value: ValidationRuleResult | null) => void;
|
|
77
77
|
setFieldProblems: (fieldProblems: Record<keyof FormSchema, boolean>) => void;
|