@adyen/kyc-components 2.0.0 → 2.1.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.
Files changed (58) hide show
  1. package/dist/es/adyen-kyc-components.es.js +1413 -933
  2. package/dist/style.css +2 -1
  3. package/dist/types/components/DocumentUpload/types.d.ts +3 -3
  4. package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +1 -1
  5. package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +1 -0
  6. package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +1 -1
  7. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigationItem.d.ts +3 -0
  8. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +7 -11
  9. package/dist/types/components/Dropins/FormComposer/types.d.ts +2 -3
  10. package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +39 -0
  11. package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
  12. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
  13. package/dist/types/components/Dropins/PciDropin/validate.d.ts +1 -1
  14. package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +1 -1
  15. package/dist/types/components/Individual/component/IndividualComponent.d.ts +2 -2
  16. package/dist/types/components/Individual/types.d.ts +5 -4
  17. package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
  18. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  19. package/dist/types/components/TaskList/types.d.ts +3 -1
  20. package/dist/types/components/internal/Address/types.d.ts +4 -5
  21. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  22. package/dist/types/components/internal/Iban/ibanValidator.d.ts +1 -1
  23. package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +1 -1
  24. package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +1 -1
  25. package/dist/types/core/Context/StateContext/hasDataChanged.d.ts +1 -0
  26. package/dist/types/core/Services/get-images.d.ts +1 -1
  27. package/dist/types/core/hooks/useAsyncValidator.d.ts +2 -2
  28. package/dist/types/core/hooks/useForm/reducer.d.ts +35 -3
  29. package/dist/types/core/hooks/useForm/types.d.ts +28 -73
  30. package/dist/types/core/hooks/useForm/useForm.d.ts +7 -7
  31. package/dist/types/core/hooks/useForm/utils.d.ts +2 -0
  32. package/dist/types/core/hooks/useFormComposer.d.ts +22 -0
  33. package/dist/types/core/hooks/useScenarioConfiguration.d.ts +5 -5
  34. package/dist/types/core/models/errors/entity-problems.d.ts +1 -1
  35. package/dist/types/core/models/form-rules.d.ts +2 -2
  36. package/dist/types/core/models/form.d.ts +5 -3
  37. package/dist/types/core/process-field-configurations.d.ts +11 -26
  38. package/dist/types/language/config.d.ts +5 -0
  39. package/dist/types/utils/decision-maker-roles.d.ts +1 -1
  40. package/dist/types/utils/dropin-utils.d.ts +18 -0
  41. package/dist/types/utils/entity-status-util.d.ts +2 -2
  42. package/dist/types/utils/entriesOf.d.ts +2 -0
  43. package/dist/types/utils/formUtils.d.ts +1 -1
  44. package/dist/types/utils/get-props.d.ts +2 -3
  45. package/dist/types/utils/getFieldsWithExistingData.d.ts +8 -0
  46. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -2
  47. package/dist/types/utils/mapping/mapping.d.ts +2 -1
  48. package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +1 -1
  49. package/dist/types/utils/trackNavigation.d.ts +10 -0
  50. package/dist/types/utils/trust-util.d.ts +1 -1
  51. package/dist/types/utils/validation/ValidationResult.d.ts +1 -1
  52. package/dist/types/utils/validation/Validator.d.ts +4 -4
  53. package/dist/types/utils/validation/types.d.ts +19 -19
  54. package/dist/types/utils/validatorUtils.d.ts +2 -2
  55. package/package.json +1 -1
  56. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +0 -4
  57. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/index.d.ts +0 -1
  58. package/dist/types/core/models/errors/field-errors.d.ts +0 -4
package/dist/style.css CHANGED
@@ -93718,7 +93718,8 @@ a.adl-button:disabled, a.adl-button.adl-button--disabled {
93718
93718
  position: relative;
93719
93719
  }
93720
93720
  .adl-task-status-details-required,
93721
- .adl-task-status-sign {
93721
+ .adl-task-status-sign,
93722
+ .adl-task-status-submit {
93722
93723
  font-size: 14px;
93723
93724
  margin-right: 8px;
93724
93725
  padding-top: 1px;
@@ -4,8 +4,8 @@ import { DocumentType } from '../../core/models/api/document';
4
4
  import { TranslationKey } from '../../language/types';
5
5
  export type DocumentUploadSchema = Record<string, any>;
6
6
  export interface DocumentUploadProps extends BaseInnerFormProps<DocumentUploadSchema> {
7
- documentType: DocumentType;
8
- documentField: string;
7
+ documentField?: string;
8
+ documentType?: DocumentType;
9
9
  guidanceContent?: ComponentChild;
10
10
  guidanceHeader?: ComponentChild;
11
11
  documentTypeSelect?: {
@@ -16,5 +16,5 @@ export interface DocumentUploadProps extends BaseInnerFormProps<DocumentUploadSc
16
16
  name: TranslationKey;
17
17
  }>;
18
18
  };
19
- requiredFields: Array<keyof DocumentUploadSchema>;
19
+ requiredFields?: (keyof DocumentUploadSchema)[];
20
20
  }
@@ -1,4 +1,4 @@
1
1
  import './_action-bar.component.scss';
2
2
  import { ActionBarProps } from './type';
3
- declare const ActionBar: ({ onNext, onBack, onHome, homeButtonLabel, backButtonLabel, nextButtonLabel, hideOnHomeButton, hideBackButton, }: ActionBarProps) => import("preact").JSX.Element;
3
+ declare const ActionBar: ({ onNext, onBack, onHome, homeButtonLabel, backButtonLabel, nextButtonLabel, hideOnHomeButton, hideBackButton, nextButtonDisabled, }: ActionBarProps) => import("preact").JSX.Element;
4
4
  export default ActionBar;
@@ -7,4 +7,5 @@ export interface ActionBarProps {
7
7
  homeButtonLabel?: string;
8
8
  hideOnHomeButton?: boolean;
9
9
  hideBackButton?: boolean;
10
+ nextButtonDisabled?: boolean;
10
11
  }
@@ -30,5 +30,5 @@ export interface FormComposerProps<Schema> {
30
30
  navigateBackToTaskList?: () => void;
31
31
  handleGetIdVerificationToken?: DropinAPIHandlers['handleGetIdVerificationToken'];
32
32
  }
33
- declare function withFormComposer<Props extends DropinProps & BaseOuterFormProps<Schema>, Schema>(WrappedComponent: ComponentType<Props>, { getComponentForms, parseConfiguration, rules, labels, defaultTaskName, getConfigFor, }: FormComposerConfig): (props: Props & FormComposerProps<Schema>) => import("preact").JSX.Element;
33
+ declare function withFormComposer<Props extends DropinProps & BaseOuterFormProps<Schema>, Schema extends object>(WrappedComponent: ComponentType<Props>, { getComponentForms, parseConfiguration, rules, labels, defaultTaskName, getConfigFor, }: FormComposerConfig): (props: Props & FormComposerProps<Schema>) => import("preact").JSX.Element;
34
34
  export default withFormComposer;
@@ -0,0 +1,3 @@
1
+ import './FormNavigationItem.scss';
2
+ import { FormNavigationItemProps } from './types';
3
+ export declare const FormNavigationItem: ({ form, isActive, onClick, hasVerificationErrors, }: FormNavigationItemProps) => import("preact").JSX.Element;
@@ -1,17 +1,14 @@
1
1
  import { EntityProblems } from '../../../../../core/models/errors/entity-problems';
2
- import { FormModel } from '../../../../../core/models/form';
2
+ import { FormModel, FormModelWithValidity } from '../../../../../core/models/form';
3
3
  import { TranslationKey } from '../../../../../language/types';
4
- export interface FormWithValidity extends FormModel {
5
- isValid: boolean;
6
- }
7
4
  export interface FormNavigationProps {
8
- forms?: FormModel[];
9
- activeForm?: FormModel;
10
- gotoForm?(nextFormIndex: number): void;
11
- validateForm?(): any;
5
+ forms: FormModelWithValidity[];
6
+ activeForm: FormModelWithValidity;
7
+ gotoForm: (nextFormIndex: number) => void;
8
+ validateForm?: () => void;
12
9
  problems?: EntityProblems;
13
10
  className?: string;
14
- taskName?: TranslationKey;
11
+ taskName: TranslationKey;
15
12
  hasVerificationErrors?: boolean;
16
13
  trackNavigation?: (props: {
17
14
  fromForm: FormModel;
@@ -20,9 +17,8 @@ export interface FormNavigationProps {
20
17
  }) => void;
21
18
  }
22
19
  export interface FormNavigationItemProps {
23
- form: FormModel;
20
+ form: FormModelWithValidity;
24
21
  isActive: boolean;
25
- trackNavigation?: () => void;
26
22
  onClick?: () => void;
27
23
  hasVerificationErrors: boolean;
28
24
  }
@@ -1,10 +1,9 @@
1
- import { FormModel } from '../../../core/models/form';
1
+ import { FormModel, FormModelWithValidity } from '../../../core/models/form';
2
2
  import EventEmitter from '../../EventEmitter';
3
- import { FormWithValidity } from './components/FormNavigation/types';
4
3
  export interface DropinWrapperProps {
5
4
  eventEmitter: EventEmitter;
6
5
  forms?: FormModel[];
7
- activeForm?: FormWithValidity;
6
+ activeForm?: FormModelWithValidity;
8
7
  hideDropinLayout?: boolean;
9
8
  showSpinner?: boolean;
10
9
  toastMessage?: string;
@@ -0,0 +1,39 @@
1
+ import '../FormComposer/FormComposer.scss';
2
+ import { ComponentChildren } from 'preact';
3
+ import { EntityProblems } from '../../../core/models/errors/entity-problems';
4
+ import { FormModelWithValidity } from '../../../core/models/form';
5
+ import { BaseTrackingPayload } from '../../../core/utils';
6
+ import { TranslationKey } from '../../../language/types';
7
+ import { LoadingStatus } from '../../internal/LoaderWrapper/constants';
8
+ import { DropinAPIHandlers } from '../types';
9
+ export interface FormWrapperProps {
10
+ summary?: {
11
+ data?: any;
12
+ omittedKeys?: string[];
13
+ omittedForms?: string[];
14
+ labels?: any;
15
+ };
16
+ handleGetIdVerificationToken?: DropinAPIHandlers['handleGetIdVerificationToken'];
17
+ children: ComponentChildren;
18
+ taskName: TranslationKey;
19
+ handleNextClick(): void;
20
+ handleBackClick(): void;
21
+ gotoFormByFormIndex(index: number): void;
22
+ handleHomeClick(): void;
23
+ nextButtonLabel: string;
24
+ homeButtonLabel: string;
25
+ loadingStatus: LoadingStatus;
26
+ forms: FormModelWithValidity[];
27
+ activeForm: FormModelWithValidity;
28
+ validateForm(): void;
29
+ baseTrackingPayload: BaseTrackingPayload;
30
+ hideDropinLayout?: boolean;
31
+ hideFooter?: boolean;
32
+ hideHomeButton?: boolean;
33
+ hideBackButton?: boolean;
34
+ hideNavigation?: boolean;
35
+ problems?: EntityProblems;
36
+ canSubmit?: boolean;
37
+ onSubmit(): void;
38
+ }
39
+ export declare const FormWrapper: ({ summary, taskName, children, handleNextClick, handleBackClick, handleHomeClick, nextButtonLabel, homeButtonLabel, loadingStatus, gotoFormByFormIndex, forms, activeForm, handleGetIdVerificationToken, validateForm, baseTrackingPayload, hideDropinLayout, hideFooter, hideHomeButton, hideBackButton, hideNavigation, canSubmit, onSubmit, problems, }: FormWrapperProps) => import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { IndividualDropinProps } from '../../../Individual/types';
2
- export declare function IndividualDropinComponent(props: IndividualDropinProps): import("preact").JSX.Element;
2
+ export declare function IndividualDropinComponent({ handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleGetIdVerificationToken, handleGetIdVerificationStartCheck, taskType, trackingConfig, parentLegalEntity, legalEntityResponse, taskName, eventEmitter, handleHomeClick, homeButtonLabel, isTargetLegalEntityType, country: parentCountry, handleCreateLegalEntity, capabilities, onChange, problems: propProblems, handleUpdateLegalEntity, associationDetail, onSubmit: externalOnSubmit, onTypeSwitch, }: IndividualDropinProps): import("preact").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { LegalEntity } from '../../../../core/models/api/legal-entity';
2
2
  import { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
3
- export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
3
+ export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => "ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
4
4
  export declare function PayoutDetailsDropinComponent(props: PayoutDetailsDropinProps): import("preact").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ValidatorRules } from '../../../utils/validation/types';
2
- import { PciSchema } from './types';
2
+ import type { PciSchema } from './types';
3
3
  export declare const pciValidationRules: ValidatorRules<PciSchema>;
@@ -1,4 +1,4 @@
1
1
  import '../IdentityNumber.scss';
2
2
  import { IdentityNumberProps, IdentityNumberSchema } from '../type';
3
- export declare const idNumberFields: Array<keyof IdentityNumberSchema>;
3
+ export declare const idNumberFields: (keyof IdentityNumberSchema)[];
4
4
  export declare const IdentityNumberComponent: import("preact").FunctionComponent<IdentityNumberProps>;
@@ -1,7 +1,7 @@
1
1
  import '../Individual.scss';
2
2
  import { FormList } from '../../../core/models/form';
3
- import { IndividualDropinProps } from '../types';
3
+ import { IndividualProps } from '../types';
4
4
  export declare const individualForms: FormList;
5
5
  export declare const individualDocumentForms: string[];
6
- declare function IndividualComponent(props: IndividualDropinProps): import("preact").JSX.Element;
6
+ declare function IndividualComponent(props: IndividualProps): import("preact").JSX.Element;
7
7
  export default IndividualComponent;
@@ -1,8 +1,10 @@
1
+ import { StateUpdater } from 'preact/hooks';
1
2
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
3
  import { DecisionMakerType } from '../../core/models/api/decision-maker-type';
3
4
  import { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
4
- import { LegalEntity, PatchLegalEntity } from '../../core/models/api/legal-entity';
5
+ import { LegalEntity } from '../../core/models/api/legal-entity';
5
6
  import { LegalEntityType } from '../../core/models/api/legal-entity-type';
7
+ import { CountryCode } from '../../core/models/country-code';
6
8
  import { FormModel } from '../../core/models/form';
7
9
  import { AddressSchema } from '../../types';
8
10
  import { ContactDetailsSchema } from '../ContactDetails/types';
@@ -34,8 +36,7 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
34
36
  taskType?: TaskTypes;
35
37
  allowedRoles?: DecisionMakerType[];
36
38
  onTypeSwitch?(legalEntityType: LegalEntityType): void;
37
- onCountryChange?(country: string): void;
38
- onSubmit?(data: IndividualSchema | PatchLegalEntity): void;
39
+ onCountryChange?: StateUpdater<CountryCode>;
39
40
  onNext?(e: any, callbacks: any, isValid: any): void;
40
41
  onBack?(): void;
41
42
  }
@@ -43,5 +44,5 @@ export interface IndividualDropinProps extends IndividualProps, DropinAPIHandler
43
44
  parentLegalEntity?: LegalEntity;
44
45
  associationDetail?: UniqueTrustMember;
45
46
  isTargetLegalEntityType?: boolean;
46
- isReview?: boolean;
47
+ onSubmit(dataSubmitted: any): void;
47
48
  }
@@ -1,2 +1,2 @@
1
1
  import { CountryCode } from '../../core/models/country-code';
2
- export declare const getAllowedBankCountries: (country: CountryCode) => ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
2
+ export declare const getAllowedBankCountries: (country: CountryCode) => ("ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW")[];
@@ -1,5 +1,5 @@
1
1
  import '../TaskListItem.scss';
2
2
  import { JSX } from 'preact';
3
3
  import { TaskListItemProps } from '../types';
4
- declare const TaskListItem: ({ title, tagline, icon, status, onNavigateToTask, disabled, problems, downloadHandler, actions, info, loading, }: TaskListItemProps) => JSX.Element;
4
+ declare const TaskListItem: ({ title, tagline, icon, status, onNavigateToTask, disabled, problems, downloadHandler, actions, info, loading, showErrorAlerts, }: TaskListItemProps) => JSX.Element;
5
5
  export default TaskListItem;
@@ -36,7 +36,8 @@ export declare enum TaskStatus {
36
36
  SIGN = 4,
37
37
  DOWNLOAD = 5,
38
38
  ERROR = 6,
39
- SIGNED = 7
39
+ SIGNED = 7,
40
+ SUBMIT = 8
40
41
  }
41
42
  export interface TaskStatusProps {
42
43
  status: TaskStatus;
@@ -68,4 +69,5 @@ export interface TaskListItemProps extends TaskStatusProps {
68
69
  info?: string;
69
70
  onNavigateToTask?: () => void;
70
71
  loading?: boolean;
72
+ showErrorAlerts?: 'onErrorStatus' | 'always';
71
73
  }
@@ -1,10 +1,9 @@
1
1
  import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
2
2
  import { CountryCode } from '../../../core/models/country-code';
3
- import { FieldErrors } from '../../../core/models/errors/field-errors';
4
3
  import { TranslationKey } from '../../../language/types';
5
4
  import type { AddressField } from '../../../types';
6
5
  import { RecordWithDefault } from '../../../utils/recordWithDefault';
7
- import type { ValidatorMode } from '../../../utils/validation/types';
6
+ import type { ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
8
7
  import type { DropinAPIHandlers } from '../../Dropins/types';
9
8
  export interface AddressSchema {
10
9
  street?: string;
@@ -30,9 +29,9 @@ export interface FieldContainerProps {
30
29
  classNameModifiers?: string[];
31
30
  data: AddressSchema;
32
31
  fieldName: keyof AddressSchema;
33
- valid?: object;
34
- errors?: any;
35
- fieldProblems?: FieldErrors;
32
+ valid?: Record<keyof AddressSchema, boolean>;
33
+ errors?: Record<keyof AddressSchema, ValidationRuleResult | null>;
34
+ fieldProblems?: Record<keyof AddressSchema, boolean>;
36
35
  onInput: (e: Event) => void;
37
36
  onBlur: (e: Event) => void;
38
37
  onDropdownChange: (e: {
@@ -6,7 +6,7 @@ import { DatasetUtil } from '../../../utils/datasetUtil';
6
6
  * @param fieldName - The data to pre-fill the address fields
7
7
  * @param country - The selected country
8
8
  */
9
- export declare const getKeyForField: (fieldName: string, country: CountryCode) => "SST" | "RFC" | "CNPJ" | "CVR-nummer" | "close" | "individual" | "payoutAccount" | "payinAccount" | "firstName" | "lastName" | "country" | "street" | "houseNumber" | "houseNumberOptional" | "houseNumberOrName" | "postalCode" | "city" | "cityTown" | "state" | "provinceOrTerritory" | "selectProvinceOrTerritory" | "zipCode" | "apartmentSuite" | "apartmentSuiteOptional" | "phoneNumber" | "email" | "birthdate" | "code" | "invalidEmail" | "pleaseEnterAPhoneNumberPrefixedWithCountryCode" | "invalidPhoneNumber" | "birthDate" | "idNumber" | "selectState" | "selectCountry" | "search" | "noOptionsFound" | "SSNFormatUS" | "SSNFormatUS9Digits" | "SINFormatCA" | "invalidFormat" | "fieldIsRequired" | "tooManyFiles" | "duplicatedFiles" | "unsupportedFiletype" | "maximumFileSizeExceeded" | "personalDetails" | "invalidBirthDate" | "address" | "contactDetails" | "uploadDocument" | "individualDetails" | "socialSecurityNumber" | "socialSecurityNumber9Digits" | "codiceFiscale" | "personnummer" | "dni" | "peselNumber" | "detCentralePersonregister" | "codNumericPersonal" | "cadastroDePessoasFisicas" | "invalidFormatExpects" | "invalidFormatForAuPassportNumber" | "invalidFormatForAuDriversLicenseNumber" | "invalidFormatForAuDriversLicenseCardNumber" | "invalidFormatForAuProofOfIdentityCardNumber" | "invalidFormatIdentityNumberBR" | "invalidFormatIdentityNumberDK" | "invalidFormatIdentityNumberCA" | "invalidFormatIdentityNumberIT" | "invalidFormatIdentityNumberPL" | "invalidFormatIdentityNumberRO" | "invalidFormatIdentityNumberES" | "invalidFormatIdentityNumberSE" | "invalidFormatIdentityNumberUS" | "invalidFormatIdentityNumberUS9" | "invalidFormatIdentityNumberSG" | "residencyCountry" | "stateOrProvince" | "selectStateOrProvince" | "dragYourFilesHereOr" | "browse" | "supports" | "complete" | "summary" | "selectDocument" | "passport" | "passportNumber" | "id" | "driversLicense" | "issuerState" | "licenseNumber" | "licenseCardNumber" | "documents" | "idDocument" | "documentType" | "frontPage" | "backPage" | "fileName" | "proofOfNationality" | "uploadDocumentForSsn" | "operationalAddressHeader" | "operationalAddressHeaderDescription" | "operationalAddressIsSame" | "operationalAddressIsSameItemName" | "operationalAddressIsNotSameItemName" | "verifyPrefilledInfoIsCorrect" | "legalStructureHeader" | "whatTypeOfCompanyDoYouHave" | "privateCompanyTitle" | "privateCompanyDescription" | "publicCompanyTitle" | "publicCompanyDescription" | "incorporatedPartnershipTitle" | "incorporatedPartnershipDescription" | "nonProfitOrCharitableOrgTitle" | "nonProfitOrCharitableOrgDescription" | "governmentalOrganizationTitle" | "governmentalOrganizationDescription" | "associationIncorporatedTitle" | "associationIncorporatedDescription" | "jobTitle" | "legalStructure" | "entityType" | "registrationDetails" | "registeredAddress" | "registrationAddress" | "registeredAddressHeaderDescription" | "registeredAddressHeaderDescription__US" | "registeredAddressTrustHeaderDescription" | "operationalAddress" | "provideRegistrationDetails" | "companyStructure" | "providePersonalAddress" | "provideContactDetails" | "correctErrorsResubmit" | "registrationDocument" | "taxDocument" | "companyDetails" | "invalidRegistrationNumber" | "tradingName" | "chamberOfCommerceRegistrationNumber" | "taxId" | "exemptedFromTax" | "doNotHaveTaxIdNumber" | "doNotHaveFirmenbuchnummer" | "doNotHaveOrganisationsnummer" | "doNotHaveYTunnus" | "doNotHaveLtRegistrationNumber" | "doNotHaveLuRegistrationNumber" | "doNotHaveChRegistrationNumber" | "doNotHaveHandelsregisternummer" | "taxIdAbsenceReason" | "vatNumberExempted" | "vatNumberAbsenceReason" | "belowTaxThreshold" | "industryExemption" | "validationPleaseEnterAValidRegistrationNumber" | "validationPleaseEnterAValidRegistrationNumberWithFormat" | "validationPleaseEnterAValidVatNumber" | "validationPleaseEnterAValidVatNumberWithFormat" | "validationPleaseEnterAValidTaxIdNumberWithFormat" | "aValidAbnShouldBe11Digits" | "aValidUenOrGstShouldBe9To10Characters" | "validationPleaseEnterAValidUen" | "validationPleaseEnterAValidIban" | "yourIbanShouldBeginWith_" | "validation8Or11Characters" | "validationCharacters" | "validationDigitsBetween" | "validationDigits" | "enterValidRegistrationNumber" | "stockExchangeMIC" | "stockExchangeMICHelper" | "stockISINHelper" | "stockISIN" | "validationPleaseEnterAValidMarketIdentifier" | "validationPleaseEnterAValidStockISIN" | "shareholderDocument" | "role" | "selectTheApplicableRoles" | "back" | "next" | "submit" | "submitSuccessful" | "submitFailed" | "submitReviewOfYourData" | "completeReview" | "submitReview" | "pleaseNote" | "byClickingSubmitReview" | "nameAndCountry" | "companyCountry" | "legalCompanyName" | "legalCompanyNameHelper" | "legalCompanyNameHelper__AU" | "legalCompanyNameHelper__US" | "accountDetailsDescription" | "provideDetails" | "payoutAccountsDescription" | "payoutAccountsDescriptionReview" | "payinAccountsDescription" | "addExtraPayoutAccount" | "addExtraPayinAccount" | "payoutDetails" | "payinDetails" | "addPayoutAccount" | "addPayinAccount" | "failedToFetchPayoutAccount" | "failedToDeletePayoutAccount" | "transferInstrumentDeleted" | "toCompleteProcessReviewAndSignOfficialDocumentation" | "sign" | "signer" | "selectSigner" | "pciSignedSuccessfully" | "pciSignFailed" | "byClickingSignIAcknowledgeAndAgree" | "acknowledgePciRequirements" | "basedOnTheAboveSignatory" | "failedToGetPciStatus" | "failedToGetPciTemplate" | "failedToGetPciTemplateInSelectedLanguageFallbackToEn" | "failedToDownloadPci" | "signServiceAgreement" | "signedDocuments" | "paymentProcessingTerms" | "accountHolderTerms" | "capitalUserTerms" | "businessAccountTerms" | "cardUserTerms" | "franchiseesTAndCs" | "pciDssQuestionnaire" | "serviceAgreementSignedSuccessfully" | "serviceAgreementSignFailed" | "failedToGetServiceAgreementStatus" | "failedToGetServiceAgreement" | "failedToGetServiceAgreementInSelectedLanguageFallbackToEn" | "iHaveReadAndIAcceptTheseTerms" | "verified" | "signed" | "invalidRole" | "unableToVerifyTheIdNumber" | "download" | "accountHolder" | "accountHolderDescriptionCompany" | "accountHolderDescriptionIndividual" | "accountHolderDescriptionSoleProp" | "bankAccountToHaveSameNameAsTrust" | "bankCountry" | "bankAccountCountry" | "currency" | "currencyCode" | "currencyPlaceholder" | "bankAccountNumber" | "iban" | "swiftCode" | "bic" | "bsbNumber" | "branchCode" | "transitNumber" | "listitemVoidedChequeBankLetterBankStatementOnline" | "instructionNumber" | "institutionNumber" | "sortCode" | "bankCityTown" | "clearingCode" | "bankCode" | "bankName" | "achRoutingNumber" | "decisionMaker" | "decisionMakerDescription" | "owner" | "ownerDescription" | "controllingPerson" | "controllingPersonDescription" | "signatory" | "signatoryDescription" | "director" | "directorDescription" | "provideAllDirectors" | "addDecisionMaker" | "decisionMakers" | "goToOverview" | "saveAndGoToOverview" | "pleaseEnsureTheFollowing" | "edit" | "remove" | "toggleAssociationMenu" | "editDecisionMakerDetails" | "removeDecisionMaker" | "verifyDecisionMakerDetails" | "goToMenu" | "confirm" | "goToDecisionMakers" | "theSubmitWasSuccessful" | "thereWasAnErrorTryAgain" | "proofOfIdentityCard" | "proofOfIdentityCardNumber" | "proofOfResidence" | "proofOfNationalId" | "backToTaskList" | "proofOfResidenceDocumentTypeLabel" | "utilityBill" | "governmentIssuedCorrespondence" | "taxationDocument" | "extractFromMunicipalPersonalRecordsDatabase" | "salarySlip" | "mortgageStatement" | "certificateOfVoterRegistration" | "businessAccountDetailsDescription" | "businessAccountDetailsDescriptionReview" | "documentAddressedToName" | "showAddressStateCountry" | "dateOnDocumentNoOlderThanXMonths" | "fullDocumentVisibleWithReadableText" | "documentCannotBeDamaged" | "verify" | "add" | "idUploadDocumentSubtitle" | "documentNotExpiredOrDamaged" | "weAccept" | "includeFrontAndBack" | "fullDocumentVisible" | "imagesInColor" | "birthDatePlaceholder" | "onlyEnterNormalCharacters" | "verifyCompanyInfoIsUpToDate" | "failedToFetchRelevantDocuments" | "failedToFetchRelevantAccounts" | "processing" | "inReview" | "unsuccessful" | "invalidDateOfBirth" | "successfullyUpdatedDetails" | "failedToUpdateDetails" | "successfullyVerifiedIdNumber" | "failedFetchingDecisionMaker" | "fileUpload" | "bankStatement" | "bankStatementOptional" | "bankAccountVerification" | "bankStatementDocument" | "bankStatementDocumentTypeLabel" | "requirements" | "accountHolderNameMatchesWithBusinessOrTradingName" | "accountNumberOrIbanVisible" | "accountNumberVisible" | "routingNumberVisible" | "showsCountryOfBankAccount" | "hasToBeOfficialDocumentFromBank" | "ifDocumentMoreThan12months" | "whyDoINeedToFillInThisInformation" | "reasonForFillingCompanyRegistrationDetails" | "reasonForFillingCompanyAddressDetails" | "reasonForFillingIndividualPersonalDetails" | "reasonForFillingIndividualAddressDetails" | "reasonForFillingPayoutAccountDetails" | "reasonForFillingPayoutDetails" | "whatIsTheDifferenceBetweenTheseRoles" | "ownerGuideDescription" | "controllingPersonGuideDescription" | "signatoryGuideDescription" | "directorGuideDescription" | "someoneAppointedToManageACompanysBusinessAndAffairs" | "whatIfDocumentIsMoreThan12MonthsOld" | "descriptionHelper" | "depositTicket" | "screenshotOfOnlineBankingEnviroment" | "officialEmailOrALetterFromYourBank" | "cheques" | "releveDidentiteBancaire" | "successFullyRemovedDecisionMaker" | "failedToRemoveDecisionMaker" | "chamberOfCommerceExtract" | "taxNumberCorporateNumber" | "companyLegalName" | "companyName" | "companyType" | "taxReferenceNumber" | "companyProfile" | "companyNumber" | "RfcDocument" | "companyRegistrationDocument" | "businessName" | "typeOfCompany" | "typeOfIdentity" | "typeOfIdentitySubtitle" | "businessNumber" | "doingBusinessAs" | "taxIdentificationNumber" | "irdDocument" | "irdNumber" | "australianBusinessNumberAbn" | "australianBusinessNumberAcn" | "enterpriseNumber" | "NIP" | "NIPC" | "numerodeIVA" | "NIF" | "uen" | "nric" | "NIFdeIVA" | "partitaIVA" | "organisationsnummer" | "momsregistreringsnummer" | "codiceFiscaleOrCCIAA" | "UST-ID" | "DIC" | "ICO" | "USt-IdNr" | "handelsregisternummer" | "NumeroDeTVA" | "organisasjonsnummer" | "skattenummer" | "verificationErrorMessage" | "remediationFormErrorMessage" | "youHaveUnsavedChanges" | "areYouSureToLeave" | "cancel" | "save&Leave" | "leave" | "taxIdNumber" | "companyRegistrationNumber" | "euVatNumber" | "vatNumber" | "regonKrsNumber" | "registrationNumber" | "registrationNumber__nonProfit__FR" | "registrationNumber__FR" | "charityNumber" | "firmenbuchnummer" | "firmenbuchnummerOrZVR" | "stepsX/YofForm" | "no" | "yes" | "informationCouldNotBeSubmitted" | "fieldHasUnsupportedFormats" | "updateTheInformation" | "andResubmit" | "someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit" | "trustType" | "cashManagementTrust" | "corporateUnitTrust" | "deceasedEstate" | "discretionaryInvestmentTrust" | "discretionaryServicesManagementTrust" | "discretionaryTradingTrust" | "firstHomeSaverAccountsTrust" | "fixedTrust" | "fixedUnitTrust" | "hybridTrust" | "listedPublicUnitTrust" | "otherTrust" | "pooledSuperannuationTrust" | "publicTradingTrust" | "unlistedPublicUnitTrust" | "countryOfEstablishment" | "nameOfTrustAgreement" | "typeOfTrustAgreement" | "weFoundTheFollowingIssues" | "reviewTheInformationBelowAndCorrectMistakesOr" | "uploadTheRequestedDocuments" | "uploadTheFollowingDocuments" | "uploadDocumentAndDocument" | "thenResubmit" | "isTrustOperationAddressSame" | "trustDetails" | "trustDetailsDescription" | "trustDocumentDescription" | "nameOfTrust" | "fullLegalNamesOfAnyAppointers" | "dateDeedWasSigned" | "settlerDetailsIncl" | "trusteeDetailsIncl" | "beneficiariesDetailsIncl" | "trustMembers" | "trustMembersDescription" | "trustee" | "obligatory" | "requiredIfApplicable" | "provideAtLeastOneSettlor" | "provideAtLeastOneProtector" | "provideAllBeneficiaries" | "provideAllTrustees" | "provideAllControllingPersons" | "settlorGuideDescription" | "trusteeGuideDescription" | "protectorGuideDescription" | "beneficiaryGuideDescription" | "uboThroughControlGuideDescription" | "uboThroughOwnershipGuideDescription" | "beneficiary" | "protector" | "settlor" | "ultimateBeneficialOwner" | "addTrustMember" | "personAppointmentUnderTrustInstrument" | "legalOwnerOfProperty" | "entityEstablishingTrust" | "entityOwning25OrMoreOfTrust" | "controllingPersonOfTrust" | "failedToFetchTrustDetails" | "failedToFetchTrustMemberDetails" | "failedToFetchLegalEntityDetails" | "editTrustMember" | "removeTrustMember" | "successFullyRemovedTrustMember" | "failedToRemoveTrustMember" | "editEntityDetails" | "editOwnerOfTrustMember" | "editEntityOwner" | "addEntityOwner" | "addOwnerToTrustMember" | "whatTypeOfYourMembersEntity" | "naturalPersonTitle" | "naturalPersonDescription" | "businessEntityTitle" | "businessEntityDescription" | "roleAndEntityType" | "helpUsVerifyCompany" | "providePersonalDetailsOfOwner" | "memberDetails" | "good" | "notCutOff" | "notBlurry" | "notExpired" | "noGlare" | "selectDocumentType" | "registrationDocumentSubTitle" | "documentIssuedByGovernmentAuthority" | "uploadTaxationDocument" | "containsNameOfCompany" | "documentShowsTaxIdOfCompany" | "issuedByTheTaxAuthority" | "providePageWithPhotoAndCode" | "constitutionalDocument" | "solePropDetails" | "soleProprietorDetails" | "selectAccountHolder" | "nameOfBankAccountHolder" | "myName" | "myNameDescription" | "mySoleTraderName" | "mySoleTraderNameDescription" | "theCompanyIWorkFor" | "theCompanyIWorkForDescription" | "aTrust" | "aTrustDescription" | "aPartnership" | "aPartnershipDescription" | "anAssociation" | "anAssociationDescription" | "legalNameOfSoleProprietor" | "failedToFetchSoleProp" | "uniqueIdentificationCode" | "identifikacionenNomerDDS" | "MBS" | "PDVIdBrojOIB" | "cyRegistrationNumber" | "arithmosEngraphes" | "momsregistreringsnummerOrStamregister" | "registrikood" | "kaibemaksukohustuslaseNumber" | "YTunnus" | "arvonlisaveronumeroMervardesskattenummer" | "GEMI-number" | "grTaxId" | "huRegistrationNumber" | "huTaxId" | "valueAddedTaxIdentificationNumber" | "lvRegistrationNumber" | "lvTaxId" | "ltRegistrationNumber" | "mcRegistrationNumberSoleProp" | "PVMmoketojoKodas" | "luRegistrationNumber" | "numeroDIdentificationALATaxe" | "numarOrdineRegistrulComertului" | "codulDeIdentificareFiscala" | "skRegistrationNumber" | "skTaxId" | "siRegistrationNumber" | "siTaxId" | "chRegistrationNumber" | "mcRegistrationNumber" | "liRegistrationNumber" | "Mehrwertsteuernummer" | "Xdigits" | "upToXdigits" | "XtoYdigits" | "XorYdigits" | "Xcharacters" | "XtoYcharacters" | "XdigitsAndYcharacters" | "1character5to7digits" | "1char8digits" | "1charXalphanumeric" | "2characters6or7digits" | "7or8or12characters" | "2digits1to3letters5digits" | "Cchar5digits" | "cop1to8digits" | "8digitsOptional-" | "provideAllOwners" | "ifNoOwnersSpecifyControllingPersons" | "provideAtLeastOneSignatory" | "provideOneControllingPerson" | "textToVerifyAccount" | "theBankAccountHolderMustHaveTheSameNameAsYourCompany_" | "theBankAccountHolderMustBeInYourName_" | "weDoNotYetSupportInstantVerificationForBankAccountsIn_" | "youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered" | "youCanOnlyUseABankAccountInTheCountryWhereYouLive" | "mobileApplication" | "onOnlineBankingEnvironment" | "dontHaveAccessOnlineBanking" | "confirmPayoutManually" | "noteManualTakesLonger" | "accountVerification" | "verifyWith" | "documentVerification" | "youHaveSuccessfullyProvidedTheIdDocument" | "submitIdDocumentsAgain" | "madeAMistake" | "canNotCompleteInstantVerification" | "goBackAndProvideDocumentScans" | "identityCard" | "uploadOneOfTheFollowing" | "documentIssuedWithinLastYear" | "learnMore" | "doingBusinessAsNameFiling" | "taxFiling" | "continueAsCompany" | "continueAsIndividual" | "indicatedPayoutToCompany" | "continueSigningUpAsCompany" | "indicatedPayoutToPersonalAccount" | "continueSigningUpAsIndividual" | "continue" | "noGoBack" | "continueCompany" | "continueIndividual" | "addManually" | "searchAddress" | "startTypingTheAddress" | "addresses" | "loading" | "businessIncorporationNumber" | "doNotHaveBusinessIncorporationNumber" | "socialInsuranceNumber" | "verificationMethod" | "verifyViaMobileBankAppOrBankWebsite" | "provideAccountDetailsAndUploadBankStatement" | "instantVerificationDescription" | "couldNotEstablishBankConnection" | "sorryAnErrorOccurred" | "ranIntoTechnicalError" | "failedInitializeInstantVerification" | "couldNotCompleteAccountCheck" | "tryAgainOrManualAccountDetails" | "manualVerificationDescription" | "poweredBy" | "youSuccessfullyVerifiedAccount" | "verifyBankAccountAgain" | "accountName" | "mayTakeAFewHoursOrDays" | "instant" | "tink" | "trustly" | "isOurTrustedPartnerHelpingSpeedUpSetup" | "howDoesVerificationWithOurPartnerWorks" | "selectTheBankToReceivePayouts" | "bankAccountFormat" | "ibanFormat" | "localFormat" | "payoutInOnly_" | "payoutIn_Or_" | "loginIntoYourBankingEnvironment" | "yourBankWillConfirmYourAccountDetails" | "adyenWillOnlyGetTemporaryAccess" | "instantVerification" | "xCharactersLeft" | "goBack" | "businessRegistrationNumber" | "doNotHaveBusinessNumber" | "UEN/GST" | "IRD/GST" | "enterNameExactlyAsAppearInID" | "enterLastNameExactlyAsAppearInID" | "takePhotoOriginalDocumentWithPhone" | "instantIDVerificationDescription" | "manualIDVerificationDescription" | "uploadScanOriginalIDDocument" | "takesLonger" | "howVerificationWithOnfidoWork" | "onfidoIsOurTrustedPartner" | "usePhoneToScanId" | "onfidoWillGiveFeedbackInRealTime" | "theIdCheckWillBeAutomaticallyValidated" | "adyenKeepsDataAsLongAsLegallyRequired" | "requiresSignatory" | "requiresDecisionMakers" | "definedBeneficiary" | "definedBeneficiaryDescription" | "undefinedBeneficiary" | "undefinedBeneficiaryDescription" | "description" | "descriptionOptional" | "describeWhoIsABeneficiaryInYourTrust" | "descriptionUndefinedBeneficiary" | "undefinedBeneficiaryGuideDescription" | "identityCardBack" | "identityCardFront" | "drivinglicenseBack" | "drivinglicenseFront" | "passportPhotoPage" | "residencePermitBack" | "residencePermitFront" | "manualUpload" | "errorMessage_1_10" | "errorMessage_1_11" | "errorMessage_1_12" | "errorMessage_1_30" | "errorMessage_1_31" | "errorMessage_1_32" | "errorMessage_1_33" | "errorMessage_1_34" | "errorMessage_1_35" | "errorMessage_1_36" | "errorMessage_1_37" | "errorMessage_1_38" | "errorMessage_1_39" | "errorMessage_1_40" | "errorMessage_1_41" | "errorMessage_1_50" | "errorMessage_1_51" | "errorMessage_1_52" | "errorMessage_1_53" | "errorMessage_1_54" | "errorMessage_1_55" | "errorMessage_1_56" | "errorMessage_1_57" | "errorMessage_1_60" | "errorMessage_1_61" | "errorMessage_1_62" | "errorMessage_1_70" | "errorMessage_1_71" | "errorMessage_1_72" | "errorMessage_1_73" | "errorMessage_1_74" | "errorMessage_1_75" | "errorMessage_1_76" | "errorMessage_1_1000" | "errorMessage_1_1001" | "errorMessage_1_1002" | "errorMessage_1_1003" | "errorMessage_1_3000" | "errorMessage_1_3001" | "errorMessage_1_3002" | "errorMessage_1_3003" | "errorMessage_1_3004" | "errorMessage_1_3005" | "errorMessage_1_3006" | "errorMessage_1_3007" | "errorMessage_1_3008" | "errorMessage_1_3009" | "errorMessage_1_3010" | "errorMessage_1_3011" | "errorMessage_1_3012" | "errorMessage_1_3013" | "errorMessage_1_3014" | "errorMessage_1_3015" | "errorMessage_1_3016" | "errorMessage_1_3017" | "errorMessage_1_3018" | "errorMessage_1_3019" | "errorMessage_1_3020" | "errorMessage_1_3021" | "errorMessage_1_3022" | "errorMessage_1_3023" | "errorMessage_1_3024" | "errorMessage_1_3025" | "errorMessage_1_3026" | "errorMessage_1_3027" | "errorMessage_1_3028" | "errorMessage_1_3029" | "errorMessage_1_3030" | "errorMessage_1_3031" | "errorMessage_1_3032" | "errorMessage_1_3033" | "errorMessage_1_3034" | "errorMessage_1_3035" | "errorMessage_1_3036" | "errorMessage_1_3037" | "errorMessage_1_3038" | "errorMessage_1_3039" | "errorMessage_1_3040" | "errorMessage_1_3041" | "errorMessage_1_3042" | "errorMessage_1_3043" | "errorMessage_1_3044" | "errorMessage_1_3045" | "errorMessage_1_3046" | "errorMessage_1_3047" | "errorMessage_1_3048" | "errorMessage_1_3049" | "errorMessage_1_3050" | "errorMessage_1_3051" | "errorMessage_1_3062" | "errorMessage_1_5000" | "errorMessage_1_5001" | "errorMessage_1_5002" | "errorMessage_1_5003" | "errorMessage_1_5004" | "errorMessage_1_5005" | "errorMessage_1_5006" | "errorMessage_1_5007" | "errorMessage_1_5008" | "errorMessage_1_5009" | "errorMessage_1_5010" | "errorMessage_1_5011" | "errorMessage_1_5012" | "errorMessage_1_5013" | "errorMessage_1_5014" | "errorMessage_1_5015" | "errorMessage_1_5016" | "errorMessage_1_5017" | "errorMessage_1_5018" | "errorMessage_1_5019" | "errorMessage_1_5020" | "errorMessage_1_5021" | "errorMessage_1_5022" | "errorMessage_1_5023" | "errorMessage_1_5024" | "errorMessage_1_5025" | "errorMessage_1_5026" | "errorMessage_1_5027" | "errorMessage_1_5028" | "errorMessage_1_5029" | "errorMessage_1_5030" | "errorMessage_1_5031" | "errorMessage_1_5032" | "errorMessage_1_5033" | "errorMessage_1_5034" | "errorMessage_1_5035" | "errorMessage_1_5036" | "errorMessage_1_5037" | "errorMessage_1_5038" | "errorMessage_1_5039" | "errorMessage_1_5040" | "errorMessage_1_5041" | "errorMessage_1_5042" | "errorMessage_1_5043" | "errorMessage_1_5044" | "errorMessage_1_5045" | "errorMessage_1_5046" | "errorMessage_1_5047" | "errorMessage_1_5048" | "errorMessage_1_5049" | "errorMessage_1_5050" | "errorMessage_1_5051" | "errorMessage_1_5052" | "errorMessage_1_5053" | "errorMessage_1_6000" | "errorMessage_1_6001" | "errorMessage_1_6002" | "errorMessage_1_6003" | "errorMessage_1_6004" | "errorMessage_1_6005" | "errorMessage_1_6006" | "errorMessage_1_6007" | "errorMessage_1_6008" | "errorMessage_1_6009" | "errorMessage_1_6010" | "errorMessage_1_6011" | "errorMessage_1_6022" | "errorMessage_1_6027" | "errorMessage_1_7000" | "errorMessage_1_7001" | "errorMessage_1_7002" | "errorMessage_1_7003" | "errorMessage_1_7004" | "errorMessage_1_7005" | "errorMessage_1_7006" | "errorMessage_1_7007" | "errorMessage_1_7008" | "errorMessage_1_7009" | "errorMessage_1_7010" | "errorMessage_1_7011" | "errorMessage_1_7012" | "errorMessage_1_7013" | "errorMessage_1_7014" | "errorMessage_1_7015" | "errorMessage_1_7016" | "errorMessage_1_7017" | "errorMessage_1_7018" | "errorMessage_1_7019" | "errorMessage_1_7020" | "errorMessage_1_7021" | "errorMessage_1_7022" | "remediationMessage_1_100" | "remediationMessage_1_101" | "remediationMessage_1_102" | "remediationMessage_2_158" | "remediationMessage_1_300" | "remediationMessage_1_301" | "remediationMessage_1_302" | "remediationMessage_1_303" | "remediationMessage_1_304" | "remediationMessage_1_305" | "remediationMessage_1_306" | "remediationMessage_1_307" | "remediationMessage_1_308" | "remediationMessage_1_309" | "remediationMessage_1_316" | "remediationMessage_1_500" | "remediationMessage_1_501" | "remediationMessage_1_502" | "remediationMessage_1_503" | "remediationMessage_1_504" | "remediationMessage_1_505" | "remediationMessage_1_506" | "remediationMessage_1_507" | "remediationMessage_1_508" | "remediationMessage_1_509" | "remediationMessage_1_510" | "remediationMessage_1_511" | "remediationMessage_1_600" | "remediationMessage_1_601" | "remediationMessage_1_602" | "remediationMessage_1_700" | "remediationMessage_1_701" | "remediationMessage_1_702" | "remediationMessage_1_703" | "remediationMessage_1_704" | "remediationMessage_1_705" | "sameNameAsLegalName" | "whereCanIFindTheseNumbersOnMyDriversLicense" | "whereToFindNumbersOnDriversLicense" | "iStillCantFindIt" | "patriotActDisclosureTitle" | "patriotActDisclosureTextParagraph1" | "patriotActDisclosureTextParagraph2" | "trusteeAsTrusteeForTrust" | "trustDeed" | "trustInstrument" | "makeSureToHaveYourTrustDeed" | "maintenanceModeMessage" | "individualTrusteeDetails" | "companyTrusteeDetails" | "trusteePersonalDetails" | "byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms";
9
+ export declare const getKeyForField: (fieldName: string, country: CountryCode) => "SST" | "RFC" | "CNPJ" | "CVR-nummer" | "close" | "individual" | "payoutAccount" | "payinAccount" | "firstName" | "lastName" | "country" | "street" | "houseNumber" | "houseNumberOptional" | "houseNumberOrName" | "postalCode" | "city" | "cityTown" | "state" | "provinceOrTerritory" | "selectProvinceOrTerritory" | "zipCode" | "apartmentSuite" | "apartmentSuiteOptional" | "phoneNumber" | "email" | "birthdate" | "code" | "invalidEmail" | "pleaseEnterAPhoneNumberPrefixedWithCountryCode" | "invalidPhoneNumber" | "birthDate" | "idNumber" | "selectState" | "selectCountry" | "search" | "noOptionsFound" | "SSNFormatUS" | "SSNFormatUS9Digits" | "SINFormatCA" | "invalidFormat" | "fieldIsRequired" | "tooManyFiles" | "duplicatedFiles" | "unsupportedFiletype" | "maximumFileSizeExceeded" | "personalDetails" | "invalidBirthDate" | "address" | "contactDetails" | "uploadDocument" | "individualDetails" | "socialSecurityNumber" | "socialSecurityNumber9Digits" | "codiceFiscale" | "personnummer" | "dni" | "peselNumber" | "detCentralePersonregister" | "codNumericPersonal" | "cadastroDePessoasFisicas" | "invalidFormatExpects" | "invalidFormatForAuPassportNumber" | "invalidFormatForAuDriversLicenseNumber" | "invalidFormatForAuDriversLicenseCardNumber" | "invalidFormatForAuProofOfIdentityCardNumber" | "invalidFormatIdentityNumberBR" | "invalidFormatIdentityNumberDK" | "invalidFormatIdentityNumberCA" | "invalidFormatIdentityNumberIT" | "invalidFormatIdentityNumberPL" | "invalidFormatIdentityNumberRO" | "invalidFormatIdentityNumberES" | "invalidFormatIdentityNumberSE" | "invalidFormatIdentityNumberUS" | "invalidFormatIdentityNumberUS9" | "invalidFormatIdentityNumberSG" | "residencyCountry" | "stateOrProvince" | "selectStateOrProvince" | "dragYourFilesHereOr" | "browse" | "supports" | "complete" | "summary" | "selectDocument" | "passport" | "passportNumber" | "id" | "driversLicense" | "issuerState" | "licenseNumber" | "licenseCardNumber" | "documents" | "idDocument" | "documentType" | "frontPage" | "backPage" | "fileName" | "proofOfNationality" | "uploadDocumentForSsn" | "operationalAddressHeader" | "operationalAddressHeaderDescription" | "operationalAddressIsSame" | "operationalAddressIsSameItemName" | "operationalAddressIsNotSameItemName" | "verifyPrefilledInfoIsCorrect" | "legalStructureHeader" | "whatTypeOfCompanyDoYouHave" | "privateCompanyTitle" | "privateCompanyDescription" | "publicCompanyTitle" | "publicCompanyDescription" | "incorporatedPartnershipTitle" | "incorporatedPartnershipDescription" | "nonProfitOrCharitableOrgTitle" | "nonProfitOrCharitableOrgDescription" | "governmentalOrganizationTitle" | "governmentalOrganizationDescription" | "associationIncorporatedTitle" | "associationIncorporatedDescription" | "jobTitle" | "legalStructure" | "entityType" | "registrationDetails" | "registeredAddress" | "registrationAddress" | "registeredAddressHeaderDescription" | "registeredAddressHeaderDescription__US" | "registeredAddressTrustHeaderDescription" | "operationalAddress" | "provideRegistrationDetails" | "companyStructure" | "providePersonalAddress" | "provideContactDetails" | "correctErrorsResubmit" | "registrationDocument" | "taxDocument" | "companyDetails" | "invalidRegistrationNumber" | "tradingName" | "chamberOfCommerceRegistrationNumber" | "taxId" | "exemptedFromTax" | "doNotHaveTaxIdNumber" | "doNotHaveFirmenbuchnummer" | "doNotHaveOrganisationsnummer" | "doNotHaveYTunnus" | "doNotHaveLtRegistrationNumber" | "doNotHaveLuRegistrationNumber" | "doNotHaveChRegistrationNumber" | "doNotHaveHandelsregisternummer" | "doNotHaveRegonKrsNumber" | "taxIdAbsenceReason" | "vatNumberExempted" | "vatNumberAbsenceReason" | "belowTaxThreshold" | "industryExemption" | "validationPleaseEnterAValidRegistrationNumber" | "validationPleaseEnterAValidRegistrationNumberWithFormat" | "validationPleaseEnterAValidVatNumber" | "validationPleaseEnterAValidVatNumberWithFormat" | "validationPleaseEnterAValidTaxIdNumberWithFormat" | "aValidAbnShouldBe11Digits" | "aValidUenOrGstShouldBe9To10Characters" | "validationPleaseEnterAValidUen" | "validationPleaseEnterAValidIban" | "yourIbanShouldBeginWith_" | "validation8Or11Characters" | "validationCharacters" | "validationDigitsBetween" | "validationDigits" | "enterValidRegistrationNumber" | "stockExchangeMIC" | "stockExchangeMICHelper" | "stockISINHelper" | "stockISIN" | "validationPleaseEnterAValidMarketIdentifier" | "validationPleaseEnterAValidStockISIN" | "shareholderDocument" | "role" | "selectTheApplicableRoles" | "back" | "next" | "submit" | "submitSuccessful" | "submitFailed" | "submitReviewOfYourData" | "completeReview" | "submitReview" | "pleaseNote" | "byClickingSubmitReview" | "nameAndCountry" | "companyCountry" | "legalCompanyName" | "legalCompanyNameHelper" | "legalCompanyNameHelper__AU" | "legalCompanyNameHelper__US" | "accountDetailsDescription" | "provideDetails" | "payoutAccountsDescription" | "payoutAccountsDescriptionReview" | "payinAccountsDescription" | "addExtraPayoutAccount" | "addExtraPayinAccount" | "payoutDetails" | "payinDetails" | "addPayoutAccount" | "addPayinAccount" | "failedToFetchPayoutAccount" | "failedToDeletePayoutAccount" | "transferInstrumentDeleted" | "toCompleteProcessReviewAndSignOfficialDocumentation" | "sign" | "signer" | "selectSigner" | "pciSignedSuccessfully" | "pciSignFailed" | "byClickingSignIAcknowledgeAndAgree" | "acknowledgePciRequirements" | "basedOnTheAboveSignatory" | "failedToGetPciStatus" | "failedToGetPciTemplate" | "failedToGetPciTemplateInSelectedLanguageFallbackToEn" | "failedToDownloadPci" | "signServiceAgreement" | "signedDocuments" | "paymentProcessingTerms" | "accountHolderTerms" | "capitalUserTerms" | "businessAccountTerms" | "cardUserTerms" | "franchiseesTAndCs" | "pciDssQuestionnaire" | "serviceAgreementSignedSuccessfully" | "serviceAgreementSignFailed" | "failedToGetServiceAgreementStatus" | "failedToGetServiceAgreement" | "failedToGetServiceAgreementInSelectedLanguageFallbackToEn" | "iHaveReadAndIAcceptTheseTerms" | "verified" | "signed" | "invalidRole" | "unableToVerifyTheIdNumber" | "download" | "accountHolder" | "accountHolderDescriptionCompany" | "accountHolderDescriptionIndividual" | "accountHolderDescriptionSoleProp" | "bankAccountToHaveSameNameAsTrust" | "bankCountry" | "bankAccountCountry" | "currency" | "currencyCode" | "currencyPlaceholder" | "bankAccountNumber" | "iban" | "swiftCode" | "bic" | "bsbNumber" | "branchCode" | "transitNumber" | "listitemVoidedChequeBankLetterBankStatementOnline" | "instructionNumber" | "institutionNumber" | "sortCode" | "bankCityTown" | "clearingCode" | "bankCode" | "bankName" | "achRoutingNumber" | "decisionMaker" | "decisionMakerDescription" | "owner" | "ownerDescription" | "controllingPerson" | "controllingPersonDescription" | "signatory" | "signatoryDescription" | "director" | "directorDescription" | "provideAllDirectors" | "addDecisionMaker" | "decisionMakers" | "goToOverview" | "saveAndGoToOverview" | "pleaseEnsureTheFollowing" | "edit" | "remove" | "toggleAssociationMenu" | "editDecisionMakerDetails" | "removeDecisionMaker" | "verifyDecisionMakerDetails" | "goToMenu" | "confirm" | "goToDecisionMakers" | "theSubmitWasSuccessful" | "thereWasAnErrorTryAgain" | "proofOfIdentityCard" | "proofOfIdentityCardNumber" | "proofOfResidence" | "proofOfNationalId" | "backToTaskList" | "proofOfResidenceDocumentTypeLabel" | "utilityBill" | "governmentIssuedCorrespondence" | "taxationDocument" | "extractFromMunicipalPersonalRecordsDatabase" | "salarySlip" | "mortgageStatement" | "certificateOfVoterRegistration" | "businessAccountDetailsDescription" | "businessAccountDetailsDescriptionReview" | "documentAddressedToName" | "showAddressStateCountry" | "dateOnDocumentNoOlderThanXMonths" | "fullDocumentVisibleWithReadableText" | "documentCannotBeDamaged" | "verify" | "add" | "idUploadDocumentSubtitle" | "documentNotExpiredOrDamaged" | "weAccept" | "includeFrontAndBack" | "fullDocumentVisible" | "imagesInColor" | "birthDatePlaceholder" | "onlyEnterNormalCharacters" | "verifyCompanyInfoIsUpToDate" | "failedToFetchRelevantDocuments" | "failedToFetchRelevantAccounts" | "processing" | "inReview" | "unsuccessful" | "invalidDateOfBirth" | "successfullyUpdatedDetails" | "failedToUpdateDetails" | "successfullyVerifiedIdNumber" | "failedFetchingDecisionMaker" | "fileUpload" | "bankStatement" | "bankStatementOptional" | "bankAccountVerification" | "bankStatementDocument" | "bankStatementDocumentTypeLabel" | "requirements" | "accountHolderNameMatchesWithBusinessOrTradingName" | "accountNumberOrIbanVisible" | "accountNumberVisible" | "routingNumberVisible" | "showsCountryOfBankAccount" | "hasToBeOfficialDocumentFromBank" | "ifDocumentMoreThan12months" | "whyDoINeedToFillInThisInformation" | "reasonForFillingCompanyRegistrationDetails" | "reasonForFillingCompanyAddressDetails" | "reasonForFillingIndividualPersonalDetails" | "reasonForFillingIndividualAddressDetails" | "reasonForFillingPayoutAccountDetails" | "reasonForFillingPayoutDetails" | "whatIsTheDifferenceBetweenTheseRoles" | "ownerGuideDescription" | "controllingPersonGuideDescription" | "signatoryGuideDescription" | "directorGuideDescription" | "someoneAppointedToManageACompanysBusinessAndAffairs" | "whatIfDocumentIsMoreThan12MonthsOld" | "descriptionHelper" | "depositTicket" | "screenshotOfOnlineBankingEnviroment" | "officialEmailOrALetterFromYourBank" | "cheques" | "releveDidentiteBancaire" | "successFullyRemovedDecisionMaker" | "failedToRemoveDecisionMaker" | "chamberOfCommerceExtract" | "taxNumberCorporateNumber" | "companyLegalName" | "companyName" | "companyType" | "taxReferenceNumber" | "companyProfile" | "companyNumber" | "RfcDocument" | "companyRegistrationDocument" | "businessName" | "typeOfCompany" | "typeOfIdentity" | "typeOfIdentitySubtitle" | "businessNumber" | "doingBusinessAs" | "taxIdentificationNumber" | "irdDocument" | "irdNumber" | "australianBusinessNumberAbn" | "australianBusinessNumberAcn" | "enterpriseNumber" | "NIP" | "NIPC" | "numerodeIVA" | "NIF" | "uen" | "nric" | "NIFdeIVA" | "partitaIVA" | "organisationsnummer" | "momsregistreringsnummer" | "codiceFiscaleOrCCIAA" | "UST-ID" | "DIC" | "ICO" | "USt-IdNr" | "handelsregisternummer" | "NumeroDeTVA" | "organisasjonsnummer" | "skattenummer" | "verificationErrorMessage" | "remediationFormErrorMessage" | "youHaveUnsavedChanges" | "areYouSureToLeave" | "cancel" | "save&Leave" | "leave" | "taxIdNumber" | "companyRegistrationNumber" | "euVatNumber" | "vatNumber" | "regonKrsNumber" | "registrationNumber" | "registrationNumber__nonProfit__FR" | "registrationNumber__FR" | "registrationNumber__PR" | "charityNumber" | "firmenbuchnummer" | "firmenbuchnummerOrZVR" | "stepsX/YofForm" | "no" | "yes" | "informationCouldNotBeSubmitted" | "fieldHasUnsupportedFormats" | "updateTheInformation" | "andResubmit" | "someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit" | "trustType" | "cashManagementTrust" | "corporateUnitTrust" | "deceasedEstate" | "discretionaryInvestmentTrust" | "discretionaryServicesManagementTrust" | "discretionaryTradingTrust" | "firstHomeSaverAccountsTrust" | "fixedTrust" | "fixedUnitTrust" | "hybridTrust" | "listedPublicUnitTrust" | "otherTrust" | "pooledSuperannuationTrust" | "publicTradingTrust" | "unlistedPublicUnitTrust" | "countryOfEstablishment" | "nameOfTrustAgreement" | "typeOfTrustAgreement" | "weFoundTheFollowingIssues" | "reviewTheInformationBelowAndCorrectMistakesOr" | "uploadTheRequestedDocuments" | "uploadTheFollowingDocuments" | "uploadDocumentAndDocument" | "thenResubmit" | "isTrustOperationAddressSame" | "trustDetails" | "trustDetailsDescription" | "trustDocumentDescription" | "nameOfTrust" | "fullLegalNamesOfAnyAppointers" | "dateDeedWasSigned" | "settlerDetailsIncl" | "trusteeDetailsIncl" | "beneficiariesDetailsIncl" | "trustMembers" | "trustMembersDescription" | "trustee" | "obligatory" | "requiredIfApplicable" | "provideAtLeastOneSettlor" | "provideAtLeastOneProtector" | "provideAllBeneficiaries" | "provideAllTrustees" | "provideAllControllingPersons" | "settlorGuideDescription" | "trusteeGuideDescription" | "protectorGuideDescription" | "beneficiaryGuideDescription" | "uboThroughControlGuideDescription" | "uboThroughOwnershipGuideDescription" | "beneficiary" | "protector" | "settlor" | "ultimateBeneficialOwner" | "addTrustMember" | "personAppointmentUnderTrustInstrument" | "legalOwnerOfProperty" | "entityEstablishingTrust" | "entityOwning25OrMoreOfTrust" | "controllingPersonOfTrust" | "failedToFetchTrustDetails" | "failedToFetchTrustMemberDetails" | "failedToFetchLegalEntityDetails" | "editTrustMember" | "removeTrustMember" | "successFullyRemovedTrustMember" | "failedToRemoveTrustMember" | "editEntityDetails" | "editOwnerOfTrustMember" | "editEntityOwner" | "addEntityOwner" | "addOwnerToTrustMember" | "whatTypeOfYourMembersEntity" | "naturalPersonTitle" | "naturalPersonDescription" | "businessEntityTitle" | "businessEntityDescription" | "roleAndEntityType" | "helpUsVerifyCompany" | "providePersonalDetailsOfOwner" | "memberDetails" | "good" | "notCutOff" | "notBlurry" | "notExpired" | "noGlare" | "selectDocumentType" | "registrationDocumentSubTitle" | "documentIssuedByGovernmentAuthority" | "uploadTaxationDocument" | "containsNameOfCompany" | "documentShowsTaxIdOfCompany" | "issuedByTheTaxAuthority" | "providePageWithPhotoAndCode" | "constitutionalDocument" | "solePropDetails" | "soleProprietorDetails" | "selectAccountHolder" | "nameOfBankAccountHolder" | "myName" | "myNameDescription" | "mySoleTraderName" | "mySoleTraderNameDescription" | "theCompanyIWorkFor" | "theCompanyIWorkForDescription" | "aTrust" | "aTrustDescription" | "aPartnership" | "aPartnershipDescription" | "anAssociation" | "anAssociationDescription" | "legalNameOfSoleProprietor" | "failedToFetchSoleProp" | "uniqueIdentificationCode" | "identifikacionenNomerDDS" | "MBS" | "PDVIdBrojOIB" | "cyRegistrationNumber" | "arithmosEngraphes" | "momsregistreringsnummerOrStamregister" | "registrikood" | "kaibemaksukohustuslaseNumber" | "YTunnus" | "arvonlisaveronumeroMervardesskattenummer" | "GEMI-number" | "grTaxId" | "huRegistrationNumber" | "huTaxId" | "valueAddedTaxIdentificationNumber" | "lvRegistrationNumber" | "lvTaxId" | "ltRegistrationNumber" | "mcRegistrationNumberSoleProp" | "PVMmoketojoKodas" | "luRegistrationNumber" | "numeroDIdentificationALATaxe" | "numarOrdineRegistrulComertului" | "codulDeIdentificareFiscala" | "skRegistrationNumber" | "skTaxId" | "siRegistrationNumber" | "siTaxId" | "chRegistrationNumber" | "mcRegistrationNumber" | "liRegistrationNumber" | "Mehrwertsteuernummer" | "Xdigits" | "upToXdigits" | "XtoYdigits" | "XorYdigits" | "Xcharacters" | "XtoYcharacters" | "XdigitsAndYcharacters" | "1character5to7digits" | "1char8digits" | "1charXalphanumeric" | "2characters6or7digits" | "7or8or12characters" | "2digits1to3letters5digits" | "Cchar5digits" | "characterPlusXToYDigitsWithOptionalSpace" | "cop1to8digits" | "8digitsOptional-" | "provideAllOwners" | "ifNoOwnersSpecifyControllingPersons" | "provideAtLeastOneSignatory" | "provideOneControllingPerson" | "textToVerifyAccount" | "theBankAccountHolderMustHaveTheSameNameAsYourCompany_" | "theBankAccountHolderMustBeInYourName_" | "weDoNotYetSupportInstantVerificationForBankAccountsIn_" | "youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered" | "youCanOnlyUseABankAccountInTheCountryWhereYouLive" | "mobileApplication" | "onOnlineBankingEnvironment" | "dontHaveAccessOnlineBanking" | "confirmPayoutManually" | "noteManualTakesLonger" | "accountVerification" | "verifyWith" | "documentVerification" | "youHaveSuccessfullyProvidedTheIdDocument" | "submitIdDocumentsAgain" | "madeAMistake" | "canNotCompleteInstantVerification" | "goBackAndProvideDocumentScans" | "identityCard" | "uploadOneOfTheFollowing" | "documentIssuedWithinLastYear" | "learnMore" | "doingBusinessAsNameFiling" | "taxFiling" | "continueAsCompany" | "continueAsIndividual" | "indicatedPayoutToCompany" | "continueSigningUpAsCompany" | "indicatedPayoutToPersonalAccount" | "continueSigningUpAsIndividual" | "continue" | "noGoBack" | "continueCompany" | "continueIndividual" | "addManually" | "searchAddress" | "startTypingTheAddress" | "addresses" | "loading" | "businessIncorporationNumber" | "doNotHaveBusinessIncorporationNumber" | "socialInsuranceNumber" | "verificationMethod" | "verifyViaMobileBankAppOrBankWebsite" | "provideAccountDetailsAndUploadBankStatement" | "instantVerificationDescription" | "couldNotEstablishBankConnection" | "sorryAnErrorOccurred" | "ranIntoTechnicalError" | "failedInitializeInstantVerification" | "couldNotCompleteAccountCheck" | "tryAgainOrManualAccountDetails" | "manualVerificationDescription" | "poweredBy" | "youSuccessfullyVerifiedAccount" | "verifyBankAccountAgain" | "accountName" | "mayTakeAFewHoursOrDays" | "instant" | "tink" | "trustly" | "isOurTrustedPartnerHelpingSpeedUpSetup" | "howDoesVerificationWithOurPartnerWorks" | "selectTheBankToReceivePayouts" | "bankAccountFormat" | "ibanFormat" | "localFormat" | "payoutInOnly_" | "payoutIn_Or_" | "loginIntoYourBankingEnvironment" | "yourBankWillConfirmYourAccountDetails" | "adyenWillOnlyGetTemporaryAccess" | "instantVerification" | "xCharactersLeft" | "goBack" | "businessRegistrationNumber" | "doNotHaveBusinessNumber" | "UEN/GST" | "IRD/GST" | "enterNameExactlyAsAppearInID" | "enterLastNameExactlyAsAppearInID" | "takePhotoOriginalDocumentWithPhone" | "instantIDVerificationDescription" | "manualIDVerificationDescription" | "uploadScanOriginalIDDocument" | "takesLonger" | "howVerificationWithOnfidoWork" | "onfidoIsOurTrustedPartner" | "usePhoneToScanId" | "onfidoWillGiveFeedbackInRealTime" | "theIdCheckWillBeAutomaticallyValidated" | "adyenKeepsDataAsLongAsLegallyRequired" | "requiresSignatory" | "requiresDecisionMakers" | "definedBeneficiary" | "definedBeneficiaryDescription" | "undefinedBeneficiary" | "undefinedBeneficiaryDescription" | "description" | "descriptionOptional" | "describeWhoIsABeneficiaryInYourTrust" | "descriptionUndefinedBeneficiary" | "undefinedBeneficiaryGuideDescription" | "identityCardBack" | "identityCardFront" | "drivinglicenseBack" | "drivinglicenseFront" | "passportPhotoPage" | "residencePermitBack" | "residencePermitFront" | "manualUpload" | "errorMessage_1_10" | "errorMessage_1_11" | "errorMessage_1_12" | "errorMessage_1_30" | "errorMessage_1_31" | "errorMessage_1_32" | "errorMessage_1_33" | "errorMessage_1_34" | "errorMessage_1_35" | "errorMessage_1_36" | "errorMessage_1_37" | "errorMessage_1_38" | "errorMessage_1_39" | "errorMessage_1_40" | "errorMessage_1_41" | "errorMessage_1_50" | "errorMessage_1_51" | "errorMessage_1_52" | "errorMessage_1_53" | "errorMessage_1_54" | "errorMessage_1_55" | "errorMessage_1_56" | "errorMessage_1_57" | "errorMessage_1_60" | "errorMessage_1_61" | "errorMessage_1_62" | "errorMessage_1_70" | "errorMessage_1_71" | "errorMessage_1_72" | "errorMessage_1_73" | "errorMessage_1_74" | "errorMessage_1_75" | "errorMessage_1_76" | "errorMessage_1_1000" | "errorMessage_1_1001" | "errorMessage_1_1002" | "errorMessage_1_1003" | "errorMessage_1_3000" | "errorMessage_1_3001" | "errorMessage_1_3002" | "errorMessage_1_3003" | "errorMessage_1_3004" | "errorMessage_1_3005" | "errorMessage_1_3006" | "errorMessage_1_3007" | "errorMessage_1_3008" | "errorMessage_1_3009" | "errorMessage_1_3010" | "errorMessage_1_3011" | "errorMessage_1_3012" | "errorMessage_1_3013" | "errorMessage_1_3014" | "errorMessage_1_3015" | "errorMessage_1_3016" | "errorMessage_1_3017" | "errorMessage_1_3018" | "errorMessage_1_3019" | "errorMessage_1_3020" | "errorMessage_1_3021" | "errorMessage_1_3022" | "errorMessage_1_3023" | "errorMessage_1_3024" | "errorMessage_1_3025" | "errorMessage_1_3026" | "errorMessage_1_3027" | "errorMessage_1_3028" | "errorMessage_1_3029" | "errorMessage_1_3030" | "errorMessage_1_3031" | "errorMessage_1_3032" | "errorMessage_1_3033" | "errorMessage_1_3034" | "errorMessage_1_3035" | "errorMessage_1_3036" | "errorMessage_1_3037" | "errorMessage_1_3038" | "errorMessage_1_3039" | "errorMessage_1_3040" | "errorMessage_1_3041" | "errorMessage_1_3042" | "errorMessage_1_3043" | "errorMessage_1_3044" | "errorMessage_1_3045" | "errorMessage_1_3046" | "errorMessage_1_3047" | "errorMessage_1_3048" | "errorMessage_1_3049" | "errorMessage_1_3050" | "errorMessage_1_3051" | "errorMessage_1_3062" | "errorMessage_1_5000" | "errorMessage_1_5001" | "errorMessage_1_5002" | "errorMessage_1_5003" | "errorMessage_1_5004" | "errorMessage_1_5005" | "errorMessage_1_5006" | "errorMessage_1_5007" | "errorMessage_1_5008" | "errorMessage_1_5009" | "errorMessage_1_5010" | "errorMessage_1_5011" | "errorMessage_1_5012" | "errorMessage_1_5013" | "errorMessage_1_5014" | "errorMessage_1_5015" | "errorMessage_1_5016" | "errorMessage_1_5017" | "errorMessage_1_5018" | "errorMessage_1_5019" | "errorMessage_1_5020" | "errorMessage_1_5021" | "errorMessage_1_5022" | "errorMessage_1_5023" | "errorMessage_1_5024" | "errorMessage_1_5025" | "errorMessage_1_5026" | "errorMessage_1_5027" | "errorMessage_1_5028" | "errorMessage_1_5029" | "errorMessage_1_5030" | "errorMessage_1_5031" | "errorMessage_1_5032" | "errorMessage_1_5033" | "errorMessage_1_5034" | "errorMessage_1_5035" | "errorMessage_1_5036" | "errorMessage_1_5037" | "errorMessage_1_5038" | "errorMessage_1_5039" | "errorMessage_1_5040" | "errorMessage_1_5041" | "errorMessage_1_5042" | "errorMessage_1_5043" | "errorMessage_1_5044" | "errorMessage_1_5045" | "errorMessage_1_5046" | "errorMessage_1_5047" | "errorMessage_1_5048" | "errorMessage_1_5049" | "errorMessage_1_5050" | "errorMessage_1_5051" | "errorMessage_1_5052" | "errorMessage_1_5053" | "errorMessage_1_6000" | "errorMessage_1_6001" | "errorMessage_1_6002" | "errorMessage_1_6003" | "errorMessage_1_6004" | "errorMessage_1_6005" | "errorMessage_1_6006" | "errorMessage_1_6007" | "errorMessage_1_6008" | "errorMessage_1_6009" | "errorMessage_1_6010" | "errorMessage_1_6011" | "errorMessage_1_6022" | "errorMessage_1_6027" | "errorMessage_1_7000" | "errorMessage_1_7001" | "errorMessage_1_7002" | "errorMessage_1_7003" | "errorMessage_1_7004" | "errorMessage_1_7005" | "errorMessage_1_7006" | "errorMessage_1_7007" | "errorMessage_1_7008" | "errorMessage_1_7009" | "errorMessage_1_7010" | "errorMessage_1_7011" | "errorMessage_1_7012" | "errorMessage_1_7013" | "errorMessage_1_7014" | "errorMessage_1_7015" | "errorMessage_1_7016" | "errorMessage_1_7017" | "errorMessage_1_7018" | "errorMessage_1_7019" | "errorMessage_1_7020" | "errorMessage_1_7021" | "errorMessage_1_7022" | "errorMessage_3_10" | "remediationMessage_1_100" | "remediationMessage_1_101" | "remediationMessage_1_102" | "remediationMessage_2_158" | "remediationMessage_1_300" | "remediationMessage_1_301" | "remediationMessage_1_302" | "remediationMessage_1_303" | "remediationMessage_1_304" | "remediationMessage_1_305" | "remediationMessage_1_306" | "remediationMessage_1_307" | "remediationMessage_1_308" | "remediationMessage_1_309" | "remediationMessage_1_316" | "remediationMessage_1_500" | "remediationMessage_1_501" | "remediationMessage_1_502" | "remediationMessage_1_503" | "remediationMessage_1_504" | "remediationMessage_1_505" | "remediationMessage_1_506" | "remediationMessage_1_507" | "remediationMessage_1_508" | "remediationMessage_1_509" | "remediationMessage_1_510" | "remediationMessage_1_511" | "remediationMessage_1_600" | "remediationMessage_1_601" | "remediationMessage_1_602" | "remediationMessage_1_700" | "remediationMessage_1_701" | "remediationMessage_1_702" | "remediationMessage_1_703" | "remediationMessage_1_704" | "remediationMessage_1_705" | "remediationMessage_3_100" | "sameNameAsLegalName" | "whereCanIFindTheseNumbersOnMyDriversLicense" | "whereToFindNumbersOnDriversLicense" | "iStillCantFindIt" | "patriotActDisclosureTitle" | "patriotActDisclosureTextParagraph1" | "patriotActDisclosureTextParagraph2" | "trusteeAsTrusteeForTrust" | "trustDeed" | "trustInstrument" | "makeSureToHaveYourTrustDeed" | "maintenanceModeMessage" | "individualTrusteeDetails" | "companyTrusteeDetails" | "trusteePersonalDetails" | "byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms";
10
10
  /**
11
11
  * Returns the address schema of the selected country or the default address schema.
12
12
  * @param country - The selected country
@@ -1,4 +1,4 @@
1
1
  import { ErrorMessage, FormatRules } from '../../../utils/validation/types';
2
2
  import { IbanSchema } from './types';
3
- export declare function ibanValidator(input: string | undefined, bankCountries: string[]): ErrorMessage | undefined;
3
+ export declare function ibanValidator(input: string | undefined | null, bankCountries: string[]): ErrorMessage | undefined;
4
4
  export declare const ibanFormatter: FormatRules<IbanSchema>;
@@ -1,5 +1,5 @@
1
1
  import { PhoneInputProps, PhoneInputSchema } from './types';
2
- export declare const phoneFields: Array<keyof PhoneInputSchema>;
2
+ export declare const phoneFields: (keyof PhoneInputSchema)[];
3
3
  declare function PhoneInputComponent(props: PhoneInputProps): import("preact/compat").JSX.Element;
4
4
  declare namespace PhoneInputComponent {
5
5
  var defaultProps: {
@@ -1,5 +1,5 @@
1
1
  import type { CountryCode } from '../../../core/models/country-code';
2
- export declare const validateVatNumber: (input: string, fallbackCountryCode?: CountryCode | null) => {
2
+ export declare const validateVatNumber: (input: string | undefined | null, fallbackCountryCode?: CountryCode | null) => {
3
3
  isValid: boolean;
4
4
  message?: string;
5
5
  };
@@ -0,0 +1 @@
1
+ export declare const hasDataChanged: <T extends object>(initialData: T, currentData: T) => boolean;
@@ -1,2 +1,2 @@
1
- export declare const loadFlags: (loadingContext?: string) => Promise<void>;
1
+ export declare const loadFlags: (loadingContext: string) => Promise<void>;
2
2
  export declare const loadDocumentGuidance: (loadingContext?: string) => Promise<void>;
@@ -4,8 +4,8 @@ import { FormState } from './useForm/types';
4
4
  export type AsyncValidationResults<FormSchema> = Partial<Record<keyof FormSchema, ValidationResult>>;
5
5
  export type AsyncValidate<FormSchema> = (field: keyof FormSchema, formState: FormState<FormSchema>, mode: ValidatorMode) => void;
6
6
  export type UseAsyncValidator<FormSchema> = {
7
- asyncValidationResults: AsyncValidationResults<FormSchema>;
8
7
  asyncValidate: AsyncValidate<FormSchema>;
8
+ asyncValidationResults: AsyncValidationResults<FormSchema>;
9
9
  clearAsyncValidationResults: () => void;
10
10
  };
11
- export declare const useAsyncValidator: <FormSchema>(asyncRules: Partial<{ [field in keyof FormSchema]: import("../../utils/validation/types").AsyncValidatorRule<FormSchema[field], FormSchema>; }>) => UseAsyncValidator<FormSchema>;
11
+ export declare const useAsyncValidator: <FormSchema>(asyncRules?: Partial<{ [field in keyof FormSchema]: import("../../utils/validation/types").AsyncValidatorRule<FormSchema[field], FormSchema>; }>) => UseAsyncValidator<FormSchema>;
@@ -1,6 +1,38 @@
1
- import { FormState, InitFormStateOptions, ProcessFieldOptions, ProcessFieldResult, ReducerAction } from './types';
1
+ import { Reducer } from 'preact/hooks';
2
+ import type { FormatRules, ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
3
+ import type { Validator } from '../../../utils/validation/Validator';
4
+ import type { AsyncValidate } from '../useAsyncValidator';
5
+ import type { FieldValue, FormState } from './types';
6
+ export interface InitOptions<FormSchema> {
7
+ schema: (keyof FormSchema)[];
8
+ synchronusValidate: Validator<FormSchema>;
9
+ asynchronusValidate: AsyncValidate<FormSchema>;
10
+ defaultData?: FormSchema;
11
+ maskedFields?: (keyof FormSchema)[];
12
+ fieldProblems?: Record<keyof FormSchema, boolean>;
13
+ formatters?: FormatRules<FormSchema>;
14
+ }
2
15
  /**
3
16
  * Processes default data and sets initial state
4
17
  */
5
- export declare function init<FormSchema>({ schema, defaultData, processField, fieldProblems, maskedFields, }: InitFormStateOptions<FormSchema>): FormState<FormSchema>;
6
- export declare function getReducer<FormSchema>(processField: <Field extends keyof FormSchema>(options: ProcessFieldOptions<FormSchema, Field>) => ProcessFieldResult): (state: FormState<FormSchema>, { type, key, value, mode, schema, defaultData, formValue, selectedSchema, maskedFields, fieldProblems, }: ReducerAction<FormSchema>) => FormState<FormSchema>;
18
+ export declare function init<FormSchema>({ schema, defaultData, fieldProblems, maskedFields, formatters, synchronusValidate, asynchronusValidate, }: InitOptions<FormSchema>): FormState<FormSchema>;
19
+ export type ReducerActionType = 'setData' | 'setValid' | 'setErrors' | 'setFieldProblems' | 'updateField' | 'mergeForm' | 'setSchema' | 'validateForm';
20
+ export interface ReducerAction<FormSchema> {
21
+ type: ReducerActionType;
22
+ key?: keyof FormSchema;
23
+ mode?: ValidatorMode;
24
+ value?: FieldValue<FormSchema> | ValidationRuleResult | boolean;
25
+ schema?: (keyof FormSchema)[];
26
+ defaultData?: FormSchema;
27
+ formValue?: FormState<FormSchema>;
28
+ selectedSchema?: (keyof FormSchema)[];
29
+ maskedFields?: (keyof FormSchema)[];
30
+ fieldProblems?: Record<keyof FormSchema, boolean>;
31
+ }
32
+ export interface GetReducerOptions<FormSchema> {
33
+ synchronusValidate: Validator<FormSchema>;
34
+ asynchronusValidate: AsyncValidate<FormSchema>;
35
+ formatters?: FormatRules<FormSchema>;
36
+ }
37
+ export type GetReducerResults<FormSchema> = Reducer<FormState<FormSchema>, ReducerAction<FormSchema>>;
38
+ export declare function reducer<FormSchema>({ synchronusValidate, asynchronusValidate, formatters, }: GetReducerOptions<FormSchema>): GetReducerResults<FormSchema>;