@adyen/kyc-components 2.58.0 → 2.59.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/adyen-kyc-components.es.js +17927 -17464
- package/dist/es/cross-CzBW8i1Z.js +5 -0
- package/dist/es/hide-CWI5yHxd.js +9 -0
- package/dist/es/show-Cm_JGm0K.js +8 -0
- package/dist/style.css +127 -214
- package/dist/types/components/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/AutoResizer.d.ts +50 -0
- package/dist/types/components/BankDocument/component/BankDocumentComponent.d.ts +1 -1
- package/dist/types/components/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +3 -13
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +7 -19
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/types.d.ts +2 -3
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
- package/dist/types/components/Company/types.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +1 -1
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +2 -1
- package/dist/types/components/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +1 -1
- package/dist/types/components/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/IdVerification/types.d.ts +3 -3
- package/dist/types/components/IdVerificationMethod/types.d.ts +3 -3
- package/dist/types/components/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -2
- package/dist/types/components/Individual/types.d.ts +1 -1
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +3 -3
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -5
- package/dist/types/components/PayoutDetails/rules.d.ts +4 -5
- package/dist/types/components/PayoutDetails/types.d.ts +4 -4
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +2 -1
- package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +18 -3
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +15 -5
- package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +4 -5
- package/dist/types/components/ProofOfRelationship/index.d.ts +1 -1
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +1 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
- package/dist/types/components/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
- package/dist/types/components/SoleProp/types.d.ts +1 -1
- package/dist/types/components/Trust/types.d.ts +1 -1
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +1 -1
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessNameField/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +1 -1
- package/dist/types/components/internal/Button/Button.d.ts +0 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/types.d.ts +1 -5
- package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +1 -1
- package/dist/types/components/internal/DBANameField/types.d.ts +1 -1
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/internal/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +4 -5
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +1 -2
- package/dist/types/components/internal/Iban/types.d.ts +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +3 -7
- package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -2
- package/dist/types/components/internal/LegalFormField/types.d.ts +3 -2
- package/dist/types/components/internal/Modal/Modal.d.ts +2 -1
- package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -2
- package/dist/types/components/internal/NaceCodeField/types.d.ts +3 -2
- package/dist/types/components/internal/Name/Name.d.ts +1 -1
- package/dist/types/components/internal/Name/types.d.ts +1 -1
- package/dist/types/components/internal/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +1 -1
- package/dist/types/components/internal/StateField/types.d.ts +1 -1
- package/dist/types/components/internal/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/internal/Svg/Svg.d.ts +2 -2
- package/dist/types/components/internal/Svg/svgs.d.ts +73 -71
- package/dist/types/components/internal/SwiftCode/types.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +1 -1
- package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +2 -2
- package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -1
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +2 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +6 -6
- package/dist/types/core/hooks/useBusinessData/constants.d.ts +4 -0
- package/dist/types/core/hooks/useBusinessData/types.d.ts +10 -3
- package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +0 -3
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +0 -2
- package/dist/types/core/models/api/get-bankVerification-providers.d.ts +1 -2
- package/dist/types/core/models/api/get-configuration.d.ts +2 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -1
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/error-message.d.ts +0 -5
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -6
- package/dist/types/core/models/identity.d.ts +6 -0
- package/dist/types/core/models/province-code.d.ts +2 -1
- package/dist/types/core/process-field-configurations.d.ts +1 -1
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -6
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/entity-association-util.d.ts +1 -8
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/get-props.d.ts +1 -1
- package/dist/types/utils/isEmpty.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/perState.d.ts +0 -3
- package/dist/types/utils/range.d.ts +8 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +0 -2
- package/dist/types/utils/validation/types.d.ts +2 -16
- package/package.json +19 -17
- package/dist/es/cross-small-C1cWZC1v.js +0 -5
- package/dist/types/components/BankDocument/index.d.ts +0 -2
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BankCity/index.d.ts +0 -1
- package/dist/types/components/internal/BankCode/index.d.ts +0 -1
- package/dist/types/components/internal/BankName/index.d.ts +0 -1
- package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +0 -2
- package/dist/types/components/internal/Iban/index.d.ts +0 -1
- package/dist/types/components/internal/Name/index.d.ts +0 -1
- package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
- package/dist/types/components/internal/Toast/index.d.ts +0 -2
- package/dist/types/components/internal/VatNumberField/index.d.ts +0 -2
- package/dist/types/core/Services/componentApi/index.d.ts +0 -12
- package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -5
- package/dist/types/core/hooks/useForm/index.d.ts +0 -3
- package/dist/types/utils/LoadedValue.d.ts +0 -2
- package/dist/types/utils/mapping/businessDetails/index.d.ts +0 -3
- package/dist/types/utils/regex/index.d.ts +0 -7
|
@@ -11,76 +11,78 @@
|
|
|
11
11
|
* the object key and the svg filename.
|
|
12
12
|
*/
|
|
13
13
|
export declare const svgs: {
|
|
14
|
-
readonly 'arrow-left': import("preact").FunctionComponent<import("preact
|
|
15
|
-
readonly 'arrow-right': import("preact").FunctionComponent<import("preact
|
|
16
|
-
readonly bank: import("preact").FunctionComponent<import("preact
|
|
17
|
-
readonly bin: import("preact").FunctionComponent<import("preact
|
|
18
|
-
readonly check: import("preact").FunctionComponent<import("preact
|
|
19
|
-
readonly checkmark: import("preact").FunctionComponent<import("preact
|
|
20
|
-
readonly 'checkmark-circle-fill': import("preact").FunctionComponent<import("preact
|
|
21
|
-
readonly 'checkmark-small': import("preact").FunctionComponent<import("preact
|
|
22
|
-
readonly 'chevron-down': import("preact").FunctionComponent<import("preact
|
|
23
|
-
readonly 'chevron-right': import("preact").FunctionComponent<import("preact
|
|
24
|
-
readonly 'chevron-left': import("preact").FunctionComponent<import("preact
|
|
25
|
-
readonly 'chevron-up': import("preact").FunctionComponent<import("preact
|
|
26
|
-
readonly circle: import("preact").FunctionComponent<import("preact
|
|
27
|
-
readonly company: import("preact").FunctionComponent<import("preact
|
|
28
|
-
readonly 'company-2': import("preact").FunctionComponent<import("preact
|
|
29
|
-
readonly contract: import("preact").FunctionComponent<import("preact
|
|
30
|
-
readonly 'controlling-person': import("preact").FunctionComponent<import("preact
|
|
31
|
-
readonly cross: import("preact").FunctionComponent<import("preact
|
|
32
|
-
readonly 'decision-maker': import("preact").FunctionComponent<import("preact
|
|
33
|
-
readonly document: import("preact").FunctionComponent<import("preact
|
|
34
|
-
readonly download: import("preact").FunctionComponent<import("preact
|
|
35
|
-
readonly edit: import("preact").FunctionComponent<import("preact
|
|
36
|
-
readonly 'field-error': import("preact").FunctionComponent<import("preact
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly '
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly '
|
|
56
|
-
readonly
|
|
57
|
-
readonly '
|
|
58
|
-
readonly
|
|
59
|
-
readonly 'document-
|
|
60
|
-
readonly 'document-
|
|
61
|
-
readonly '
|
|
62
|
-
readonly '
|
|
63
|
-
readonly 'us-check
|
|
64
|
-
readonly '
|
|
65
|
-
readonly '
|
|
66
|
-
readonly 'id-
|
|
67
|
-
readonly 'id-
|
|
68
|
-
readonly '
|
|
69
|
-
readonly '
|
|
70
|
-
readonly 'passport-
|
|
71
|
-
readonly 'passport-
|
|
72
|
-
readonly '
|
|
73
|
-
readonly '
|
|
74
|
-
readonly '
|
|
75
|
-
readonly '
|
|
76
|
-
readonly '
|
|
77
|
-
readonly '
|
|
78
|
-
readonly '
|
|
79
|
-
readonly
|
|
80
|
-
readonly '
|
|
81
|
-
readonly
|
|
82
|
-
readonly '
|
|
83
|
-
readonly '
|
|
84
|
-
readonly '
|
|
14
|
+
readonly 'arrow-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
15
|
+
readonly 'arrow-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
16
|
+
readonly bank: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
17
|
+
readonly bin: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
18
|
+
readonly check: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
19
|
+
readonly checkmark: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
20
|
+
readonly 'checkmark-circle-fill': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
21
|
+
readonly 'checkmark-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
22
|
+
readonly 'chevron-down': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
23
|
+
readonly 'chevron-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
24
|
+
readonly 'chevron-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
25
|
+
readonly 'chevron-up': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
26
|
+
readonly circle: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
27
|
+
readonly company: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
28
|
+
readonly 'company-2': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
29
|
+
readonly contract: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
30
|
+
readonly 'controlling-person': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
31
|
+
readonly cross: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
32
|
+
readonly 'decision-maker': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
33
|
+
readonly document: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
34
|
+
readonly download: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
35
|
+
readonly edit: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
36
|
+
readonly 'field-error': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
37
|
+
readonly hide: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
38
|
+
readonly 'info-circle': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
39
|
+
readonly image: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
40
|
+
readonly 'light-bulb': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
41
|
+
readonly location: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
42
|
+
readonly 'more-horiz': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
43
|
+
readonly 'new-document': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
44
|
+
readonly payout: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
45
|
+
readonly pci: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
46
|
+
readonly plus: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
47
|
+
readonly 'plus-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
48
|
+
readonly remove: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
49
|
+
readonly save: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
50
|
+
readonly search: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
51
|
+
readonly show: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
52
|
+
readonly store: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
53
|
+
readonly trust: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
54
|
+
readonly user: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
55
|
+
readonly 'user-business': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
56
|
+
readonly upload: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
57
|
+
readonly 'users-3': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
58
|
+
readonly warning: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
59
|
+
readonly 'document-blurred': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
60
|
+
readonly 'document-cutoff': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
61
|
+
readonly 'document-expired': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
62
|
+
readonly 'document-front': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
63
|
+
readonly 'us-check': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
64
|
+
readonly 'us-check-routing-number': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
65
|
+
readonly 'us-check-account-number': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
66
|
+
readonly 'id-blurred': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
67
|
+
readonly 'id-cutoff': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
68
|
+
readonly 'id-front': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
69
|
+
readonly 'id-glare': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
70
|
+
readonly 'passport-blurred': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
71
|
+
readonly 'passport-cutoff': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
72
|
+
readonly 'passport-front': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
73
|
+
readonly 'passport-glare': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
74
|
+
readonly 'instant-verification-method': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
75
|
+
readonly 'id-verification-instant': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
76
|
+
readonly 'id-verification-manual': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
77
|
+
readonly 'payout-verification-instant': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
78
|
+
readonly 'payout-verification-manual': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
79
|
+
readonly 'singpass-verification-instant': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
80
|
+
readonly 'singpass-verification-manual': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
81
|
+
readonly review: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
82
|
+
readonly 'onfido-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
83
|
+
readonly 'tink-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
84
|
+
readonly 'singpass-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
85
|
+
readonly 'plaid-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
86
|
+
readonly 'trustly-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
85
87
|
};
|
|
86
88
|
export declare const unscalableIconNames: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
3
3
|
import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'preact';
|
|
2
2
|
import type { TaxInformationFieldProps, TaxInformationFieldSchema } from './types';
|
|
3
3
|
export declare const TAX_INFORMATION_FIELD: Array<keyof TaxInformationFieldSchema>;
|
|
4
|
-
export declare function TaxInformationField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, isUen, companyType, taxIdNumberType, setTaxIdNumberType, defaultData, }: TaxInformationFieldProps): JSX.Element;
|
|
4
|
+
export declare function TaxInformationField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, isUen, companyType, taxIdNumberType, setTaxIdNumberType, defaultData, }: TaxInformationFieldProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { VatNumberFieldProps, VatNumberFieldSchema } from '
|
|
1
|
+
import type { VatNumberFieldProps, VatNumberFieldSchema } from './types';
|
|
2
2
|
export declare const VAT_NUMBER_FIELD: Array<keyof VatNumberFieldSchema>;
|
|
3
|
-
export declare function VatNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, shouldValidate, handleChangeFor, canExempt, country, vatNumberType, setVatNumberType, }: VatNumberFieldProps): import("preact").JSX.Element;
|
|
3
|
+
export declare function VatNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, optional, shouldValidate, handleChangeFor, canExempt, country, vatNumberType, setVatNumberType, }: VatNumberFieldProps): import("preact").JSX.Element;
|
|
@@ -5,6 +5,7 @@ import type { ComponentChildren } from 'preact';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare enum ExperimentNames {
|
|
7
7
|
EnableNewBusinessDetailsFlow = "EnableNewBusinessDetailsFlow",
|
|
8
|
+
EnableKompanySearchByRegistrationNumber = "EnableKompanySearchByRegistrationNumber",
|
|
8
9
|
EnableNewAddressComponent = "EnableNewAddressComponent",
|
|
9
10
|
AllowOrganizationSettlorWithExemptionReason = "AllowOrganizationSettlorWithExemptionReason",
|
|
10
11
|
AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
|
|
@@ -22,7 +23,8 @@ export declare enum ExperimentNames {
|
|
|
22
23
|
EnableAUGovernmentalOrganizationSkipRegistrationNumber = "EnableAUGovernmentalOrganizationSkipRegistrationNumber",
|
|
23
24
|
EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation = "EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation",
|
|
24
25
|
EnableFinancialInformationComponentV4 = "EnableFinancialInformationComponentV4",
|
|
25
|
-
EnablePreferInstantVerificationFlow = "EnablePreferInstantVerificationFlow"
|
|
26
|
+
EnablePreferInstantVerificationFlow = "EnablePreferInstantVerificationFlow",
|
|
27
|
+
EnablePhoneFieldScenario = "EnablePhoneFieldScenario"
|
|
26
28
|
}
|
|
27
29
|
export type ExperimentName = `${ExperimentNames}`;
|
|
28
30
|
export type Experiments = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type Language from '../../../language/Language';
|
|
1
2
|
import type { BankVerificationVendorsResponse } from '../../models/api/get-bankVerification-providers';
|
|
2
3
|
import type { CountryCode } from '../../models/country-code';
|
|
3
4
|
import type { ComponentApiRequestContext } from '../types';
|
|
4
|
-
export declare const getBankVerificationVendor: (context: ComponentApiRequestContext, country: CountryCode, openBankingPartnerConfigId?: string) => Promise<BankVerificationVendorsResponse>;
|
|
5
|
+
export declare const getBankVerificationVendor: (context: ComponentApiRequestContext, country: CountryCode, openBankingPartnerConfigId?: string, locale?: Language["locale"]) => Promise<BankVerificationVendorsResponse>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { BankVerificationVendor } from '../../components/BankVerification/types';
|
|
1
2
|
import type { DropinAPIHandlers } from '../../components/Dropins/types';
|
|
2
3
|
import type { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
|
|
3
4
|
import type { ConfigurationApi } from '../Context/ConfigurationApiContext/ConfigurationApiContext';
|
|
4
5
|
import type { CapabilityName } from '../models/api/capability';
|
|
5
|
-
import type { BankVerificationVendorsResponse } from '../models/api/get-bankVerification-providers';
|
|
6
6
|
import type { GetConfigurationResponse } from '../models/api/get-configuration';
|
|
7
7
|
import type { LegalEntityType } from '../models/api/legal-entity-type';
|
|
8
8
|
import type { CountryCode } from '../models/country-code';
|
|
@@ -18,12 +18,12 @@ interface UseBankConfigurationHandlersProps {
|
|
|
18
18
|
setUseFreshProviderRedirectUrl: (UseFreshProviderRedirectUrl: boolean) => void;
|
|
19
19
|
}
|
|
20
20
|
/** **
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* In order to reduce the amount of re-renders necessary to fetch the bank verification vendor
|
|
22
|
+
* for the current country, we will fetch the vendors for the current country upfront for both
|
|
23
|
+
* HO and embedded flows
|
|
24
24
|
*/
|
|
25
|
-
export declare const useBankConfigurationHandlers: ({
|
|
25
|
+
export declare const useBankConfigurationHandlers: ({ handleGetBankVerificationVendors, bankAccountCountry, getConfiguration, legalEntityType, capabilities, setLoadingStatus, useFreshProviderRedirectUrl, setUseFreshProviderRedirectUrl, }: UseBankConfigurationHandlersProps) => {
|
|
26
26
|
getConfigurationData: () => Promise<GetConfigurationResponse>;
|
|
27
|
-
|
|
27
|
+
provider: BankVerificationVendor;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StateCode } from '../../models/state-code';
|
|
2
|
+
export declare const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 157766400000;
|
|
3
|
+
export declare const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS: Array<StateCode>;
|
|
4
|
+
export declare const KNOWN_DISALLOWED_INDEX_DATASET_STATES: Array<StateCode>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DropinAPIHandlers } from '../../../components/Dropins/types';
|
|
2
|
-
import type { CompanyDatasetResponse,
|
|
3
|
-
import type {
|
|
2
|
+
import type { CompanyDatasetResponse, CompanySearchResult } from '../../models/api/company-search';
|
|
3
|
+
import type { CountryCode } from '../../models/country-code';
|
|
4
|
+
import type { StateCode, StateCodeUS } from '../../models/state-code';
|
|
4
5
|
import type { HookStatus } from '../types';
|
|
5
6
|
export interface UseBusinessDataOptions {
|
|
6
7
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
@@ -11,7 +12,7 @@ export interface UseBusinessDataOptions {
|
|
|
11
12
|
handleClearCompanyData: DropinAPIHandlers['handleClearCompanyData'];
|
|
12
13
|
}
|
|
13
14
|
export type UseBusinessData = {
|
|
14
|
-
searchForBusiness: (data:
|
|
15
|
+
searchForBusiness: (data: SearchForBusinessRequest) => Promise<CompanySearchResult[] | undefined>;
|
|
15
16
|
fetchBusinessData: (company: CompanySearchResult, state?: StateCode) => Promise<CompanyDatasetResponse | undefined>;
|
|
16
17
|
verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
|
|
17
18
|
clearTrustedBusinessData: () => Promise<void>;
|
|
@@ -26,3 +27,9 @@ export type UseBusinessData = {
|
|
|
26
27
|
verifiedBusiness: CompanyDatasetResponse | undefined;
|
|
27
28
|
invalidTin: boolean;
|
|
28
29
|
};
|
|
30
|
+
export interface SearchForBusinessRequest {
|
|
31
|
+
name: string;
|
|
32
|
+
country: CountryCode;
|
|
33
|
+
state: StateCodeUS;
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import type { UseBusinessData, UseBusinessDataOptions } from './types';
|
|
2
|
-
export declare const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 157766400000;
|
|
3
|
-
export declare const MED_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 94694400000;
|
|
4
|
-
export declare const HIGH_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 31536000000;
|
|
5
2
|
export declare function useBusinessData({ handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, handleClearCompanyData, }: UseBusinessDataOptions): UseBusinessData;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { CountryBankVerificationVendors } from '../../components/BankVerification/types';
|
|
3
2
|
import type { BankAccountFormatType } from '../../components/internal/BankAccountFormat/types';
|
|
4
3
|
import type { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
|
|
5
4
|
import type { AccountFormatRequirements, PayoutAccountFormats } from '../../datasets/accountFormats/getAccountFormatForCountry';
|
|
@@ -23,6 +22,5 @@ export interface UseScenarioConfigurationOptions {
|
|
|
23
22
|
export interface ScenarioConfiguration {
|
|
24
23
|
fieldConfigurations: FieldConfigurations<any> | undefined;
|
|
25
24
|
requiredFields: AccountFormatRequirements | undefined;
|
|
26
|
-
bankVerificationVendors: CountryBankVerificationVendors | undefined;
|
|
27
25
|
}
|
|
28
26
|
export declare const useScenarioConfiguration: ({ getConfigurationData, getPayoutAccountFormatData, parseConfiguration, country, instantVerificationEnabled, setLoadingStatus, existingBankAccountFormat, }: UseScenarioConfigurationOptions) => ScenarioConfiguration;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { BankVerificationVendor
|
|
2
|
-
export type GetBankVerificationProvidersResponse = CountryBankVerificationVendors;
|
|
1
|
+
import type { BankVerificationVendor } from '../../../components/BankVerification/types';
|
|
3
2
|
export type BankVerificationVendorsResponse = BankVerificationVendor[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CountryBankVerificationVendors } from '../../../components/BankVerification/types';
|
|
1
|
+
import type { BankVerificationVendor, CountryBankVerificationVendors } from '../../../components/BankVerification/types';
|
|
2
2
|
import type { TaskTypes } from '../../../components/TaskList/types';
|
|
3
3
|
import type { CountryCode } from '../country-code';
|
|
4
4
|
import type { CapabilityName } from './capability';
|
|
@@ -12,5 +12,6 @@ export interface GetConfigurationRequest {
|
|
|
12
12
|
export interface GetConfigurationResponse {
|
|
13
13
|
matchingScenario?: GetScenariosResponse;
|
|
14
14
|
taskList?: TaskTypes[];
|
|
15
|
+
provider?: BankVerificationVendor;
|
|
15
16
|
bankVerificationProviders?: CountryBankVerificationVendors;
|
|
16
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Translatable, TranslationKey } from '../../language/types';
|
|
2
2
|
import type { ValidatorRule } from '../../utils/validation/types';
|
|
3
|
-
import type { MaskSettings } from '../hooks/useForm';
|
|
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, {
|
|
6
6
|
[field: string]: FieldMetadata<Record<string, string>, string> | ((options: Options) => FieldMetadata<Record<string, string>, string>);
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { TranslationKey } from '../../../language/types';
|
|
2
2
|
export type ErrorCode = Extract<TranslationKey, `errorMessage_${string}`> extends `errorMessage_${infer R}` ? R : never;
|
|
3
|
-
export interface ErrorMessage {
|
|
4
|
-
code: ErrorCode;
|
|
5
|
-
errorMessage: string;
|
|
6
|
-
remediationMessages?: string[];
|
|
7
|
-
}
|
|
@@ -13,6 +13,9 @@ export declare const idDocument: {
|
|
|
13
13
|
export declare const nationality: {
|
|
14
14
|
[key: string]: ScenarioFieldSettings;
|
|
15
15
|
};
|
|
16
|
+
export declare const phoneNumberBase: {
|
|
17
|
+
[key: string]: ScenarioFieldSettings;
|
|
18
|
+
};
|
|
16
19
|
export declare const fieldsPerScenario: {
|
|
17
20
|
L0: {
|
|
18
21
|
[key: string]: ScenarioFieldSettings<unknown>;
|
|
@@ -41,4 +44,7 @@ export declare const fieldsPerScenario: {
|
|
|
41
44
|
L1_IDDOC: {
|
|
42
45
|
[key: string]: ScenarioFieldSettings<unknown>;
|
|
43
46
|
};
|
|
47
|
+
L_PH: {
|
|
48
|
+
[key: string]: ScenarioFieldSettings<unknown>;
|
|
49
|
+
};
|
|
44
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type ProvinceCode = ProvinceCodeAU | ProvinceCodeCA | ProvinceCodeNZ;
|
|
2
2
|
export type ProvinceCodeAU = `${ProvinceCodesAU}`;
|
|
3
|
-
|
|
3
|
+
declare const enum ProvinceCodesAU {
|
|
4
4
|
AustralianCapitalTerritory = "ACT",
|
|
5
5
|
NewSouthWales = "NSW",
|
|
6
6
|
NorthernTerritory = "NT",
|
|
@@ -45,3 +45,4 @@ export declare const enum ProvinceCodesNZ {
|
|
|
45
45
|
WestCoast = "WTC",
|
|
46
46
|
ChathamIslandsTerritory = "CIT"
|
|
47
47
|
}
|
|
48
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import type { SolePropSchema } from '../components/SoleProp/types';
|
|
|
7
7
|
import type { TrustSchema } from '../components/Trust/types';
|
|
8
8
|
import type { AnyTLDSFieldName } from '../utils/getFieldsWithExistingData';
|
|
9
9
|
import type { ValidatorRules } from '../utils/validation/types';
|
|
10
|
-
import type { BaseOuterFormProps } from './hooks/useForm';
|
|
10
|
+
import type { BaseOuterFormProps } from './hooks/useForm/types';
|
|
11
11
|
import type { Scenario } from './models/api/get-scenarios';
|
|
12
12
|
import type { LegalEntityTrustedFields } from './models/api/legal-entity';
|
|
13
13
|
import type { LegalEntityType } from './models/api/legal-entity-type';
|
|
@@ -3,9 +3,7 @@ import type { CapabilityName } from '../../core/models/api/capability';
|
|
|
3
3
|
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
5
5
|
import type { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
6
|
-
import type { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
7
6
|
import type { Remediation } from '../../core/models/errors/remediation';
|
|
8
|
-
import type { RemediationActionContext } from '../../core/models/errors/remediation-action-context';
|
|
9
7
|
/** *
|
|
10
8
|
* Processes the capability problems and parses the problems into below form
|
|
11
9
|
* The resulting object segregates the errors based on form and fields they are mapped to
|
|
@@ -54,8 +52,6 @@ import type { RemediationActionContext } from '../../core/models/errors/remediat
|
|
|
54
52
|
* ```
|
|
55
53
|
*
|
|
56
54
|
* */
|
|
57
|
-
declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
|
|
58
|
-
declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems["entityType"], isExperimentEnabled?: (key: ExperimentName) => boolean) => any;
|
|
55
|
+
export declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
|
|
59
56
|
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
60
|
-
declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
|
|
61
|
-
export { getCapabilities, getCapabilityProblems, getComponentMappingFromLEFieldPath };
|
|
57
|
+
export declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const debounce: (func: Function, delay: number) => (...args: any[]) => void;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import type { AccountHolderOption } from '../components/internal/AccountHolder/types';
|
|
2
2
|
import { TaskTypes } from '../components/TaskList/types';
|
|
3
3
|
import type { ExistingLegalEntity, LegalEntity } from '../core/models/api/legal-entity';
|
|
4
|
-
import type { LegalEntityAssociation
|
|
4
|
+
import type { LegalEntityAssociation } from '../core/models/api/legal-entity-association';
|
|
5
5
|
import { LegalEntityType } from '../core/models/api/legal-entity-type';
|
|
6
6
|
import type { CapabilityProblems } from '../core/models/errors/capability-problems';
|
|
7
7
|
import type { EntityProblems } from '../core/models/errors/entity-problems';
|
|
8
|
-
import type { TranslationKey } from '../language/types';
|
|
9
|
-
export interface EntityAssociationRoleConfig<T extends LegalEntityAssociationType> {
|
|
10
|
-
id: T;
|
|
11
|
-
name: TranslationKey;
|
|
12
|
-
description: TranslationKey;
|
|
13
|
-
className: string;
|
|
14
|
-
}
|
|
15
8
|
/**
|
|
16
9
|
* Returns the entity associations from the root LE which have a {@link LegalEntityAssociation.associatorId} matching the given `legalEntityId`.
|
|
17
10
|
* Can be used to find members of a trust, or decision makers of a trustee company.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps, FieldData, MaskSettings } from '../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps, FieldData, MaskSettings } from '../core/hooks/useForm/types';
|
|
2
2
|
import type { FieldMetadata } from '../core/models/country-config';
|
|
3
3
|
import type Language from '../language/Language';
|
|
4
4
|
import type { Translatable, TranslationKey } from '../language/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from '../core/hooks/useForm';
|
|
1
|
+
import type { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from '../core/hooks/useForm/types';
|
|
2
2
|
export declare function getFormProps<OuterFormProps extends BaseOuterFormProps<OuterFormSchema>, NestedFormProps extends BaseFormProps<NestedFormSchema>, OuterFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormId: keyof OuterFormSchema): NestedFormProps | null;
|
|
3
3
|
/**
|
|
4
4
|
* we want to preserve getFormProps' utility of digging into the data structure without turning
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEmpty: (obj: unknown | unknown[], ignoreEmptyProperties?: boolean) => boolean;
|
|
@@ -3,6 +3,3 @@ export type PerState<T> = Partial<Record<StateCodeUS, T>>;
|
|
|
3
3
|
export type PerStateWithDefault<T> = PerState<T> & {
|
|
4
4
|
default: T;
|
|
5
5
|
};
|
|
6
|
-
export type PerStateAndOtherDiscriminant<T, Discriminant extends string, IncludeDefault extends boolean = true> = Partial<Record<StateCodeUS, (IncludeDefault extends true ? {
|
|
7
|
-
default: T;
|
|
8
|
-
} : object) & Partial<Record<Discriminant, T>>>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a range of numbers
|
|
3
|
+
* @param {number} start The first number in the range
|
|
4
|
+
* @param {number} stop The last number in the range
|
|
5
|
+
* @param {number} step The step between each number in the range
|
|
6
|
+
* @returns {number[]} A range of numbers
|
|
7
|
+
*/
|
|
8
|
+
export declare const range: (stop: number, start?: number, step?: number) => number[];
|
|
@@ -8,6 +8,4 @@ export declare class ValidationResult {
|
|
|
8
8
|
hasError(): boolean;
|
|
9
9
|
/** Returns the first validation result that returned an error */
|
|
10
10
|
getError(): ValidationRuleResult;
|
|
11
|
-
/** Returns all validation results that returned an error */
|
|
12
|
-
getAllErrors(): ValidationRuleResult[];
|
|
13
11
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { FormState } from '../../core/hooks/useForm';
|
|
1
|
+
import type { FormState } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
|
-
import type { Translatable
|
|
4
|
-
export type Ruleset = {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export type CountryRuleset = {
|
|
8
|
-
[country: string]: Ruleset;
|
|
9
|
-
};
|
|
3
|
+
import type { Translatable } from '../../language/types';
|
|
10
4
|
export type ValidatorMode = 'blur' | 'input';
|
|
11
5
|
export interface FieldData<FormSchema> {
|
|
12
6
|
key: keyof FormSchema;
|
|
@@ -41,17 +35,9 @@ export interface AsyncValidatorRule<ValueType, FormSchema> {
|
|
|
41
35
|
errorMessage?: Translatable | ((value: ValueType | null, context: FieldContext<FormSchema>) => Translatable);
|
|
42
36
|
modes: readonly ValidatorMode[];
|
|
43
37
|
}
|
|
44
|
-
export type FieldValidatorRule<ValueType, FormSchema> = ValidatorRule<ValueType, FormSchema> | AsyncValidatorRule<ValueType, FormSchema>;
|
|
45
38
|
export type ValidatorRules<FormSchema> = Partial<{
|
|
46
39
|
[field in keyof FormSchema]: ValidatorRule<FormSchema[field], FormSchema> | ValidatorRule<FormSchema[field], FormSchema>[];
|
|
47
40
|
}>;
|
|
48
41
|
export type AsyncValidatorRules<FormSchema> = Partial<{
|
|
49
42
|
[field in keyof FormSchema]: AsyncValidatorRule<FormSchema[field], FormSchema>;
|
|
50
43
|
}>;
|
|
51
|
-
export type FieldValidatorRules<FormSchema> = ValidatorRules<FormSchema> | AsyncValidatorRules<FormSchema>;
|
|
52
|
-
export type CountryBasedValidatorRules<FormSchema> = {
|
|
53
|
-
[country: string]: ValidatorRules<FormSchema>;
|
|
54
|
-
};
|
|
55
|
-
export type CountryBasedCustomValidatorRules<FormSchema> = {
|
|
56
|
-
[country: string]: Partial<Record<TranslationKey, ValidatorRules<FormSchema>>>;
|
|
57
|
-
};
|