@adyen/kyc-components 2.45.2 → 2.46.1

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 (85) hide show
  1. package/dist/es/adyen-kyc-components.es.js +3478 -1408
  2. package/dist/style.css +285 -508
  3. package/dist/types/components/AdditionalInformation/component/AdditionalInformationComponent.d.ts +6 -0
  4. package/dist/types/components/AdditionalInformation/index.d.ts +1 -0
  5. package/dist/types/components/AdditionalInformation/types.d.ts +18 -0
  6. package/dist/types/components/BasicInformation/component/BasicInformationComponent.d.ts +6 -0
  7. package/dist/types/components/BasicInformation/index.d.ts +1 -0
  8. package/dist/types/components/BasicInformation/types.d.ts +23 -0
  9. package/dist/types/components/BusinessDetails/forms.d.ts +47 -23
  10. package/dist/types/components/BusinessDetails/types.d.ts +2 -1
  11. package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
  12. package/dist/types/components/Company/rules.d.ts +1 -1
  13. package/dist/types/components/Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent.d.ts +1 -1
  14. package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +2 -0
  15. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureCompany.d.ts +1 -1
  16. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureBusinessInformation.d.ts +3 -0
  17. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureDropinComponent.d.ts +0 -1
  18. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +15 -0
  19. package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +1 -1
  20. package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +2 -0
  21. package/dist/types/components/Individual/validators.d.ts +13 -0
  22. package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -0
  23. package/dist/types/components/SingpassBanner/index.d.ts +2 -0
  24. package/dist/types/components/SingpassSelection/index.d.ts +1 -0
  25. package/dist/types/components/SingpassSelection/types.d.ts +4 -0
  26. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  27. package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -0
  28. package/dist/types/components/internal/Address/utils.d.ts +2 -2
  29. package/dist/types/components/internal/BusinessNameField/BusinessNameField.d.ts +3 -0
  30. package/dist/types/components/internal/BusinessNameField/fieldConfig.d.ts +3 -0
  31. package/dist/types/components/internal/BusinessNameField/index.d.ts +1 -0
  32. package/dist/types/components/internal/BusinessNameField/types.d.ts +5 -0
  33. package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +2 -0
  34. package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +2 -2
  35. package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +0 -1
  36. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  37. package/dist/types/components/internal/Button/types.d.ts +1 -6
  38. package/dist/types/components/internal/DBANameField/DBANameField.d.ts +4 -0
  39. package/dist/types/components/internal/DBANameField/fieldConfig.d.ts +3 -0
  40. package/dist/types/components/internal/DBANameField/index.d.ts +1 -0
  41. package/dist/types/components/internal/DBANameField/types.d.ts +6 -0
  42. package/dist/types/components/internal/Divider/Divider.d.ts +2 -0
  43. package/dist/types/components/internal/FormFields/InputEmail.d.ts +1 -1
  44. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -1
  45. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +1 -0
  46. package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +9 -2
  47. package/dist/types/components/internal/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  48. package/dist/types/components/internal/LegalCompanyNameField/fieldConfig.d.ts +9 -0
  49. package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +3 -0
  50. package/dist/types/components/internal/LegalFormField/index.d.ts +1 -0
  51. package/dist/types/components/internal/LegalFormField/types.d.ts +8 -0
  52. package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +3 -0
  53. package/dist/types/components/internal/NaceCodeField/index.d.ts +1 -0
  54. package/dist/types/components/internal/NaceCodeField/types.d.ts +5 -0
  55. package/dist/types/components/internal/StateField/StateField.d.ts +1 -1
  56. package/dist/types/components/internal/StateField/fieldConfig.d.ts +9 -0
  57. package/dist/types/components/internal/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  58. package/dist/types/components/internal/StockISINField/StockISINField.d.ts +1 -1
  59. package/dist/types/components/internal/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  60. package/dist/types/components/internal/TaxId/fieldConfig.d.ts +2 -2
  61. package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +1 -1
  62. package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -0
  63. package/dist/types/components/internal/Toast/Toast.d.ts +1 -1
  64. package/dist/types/components/internal/Toast/types.d.ts +2 -5
  65. package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +1 -1
  66. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +3 -0
  67. package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
  68. package/dist/types/core/Services/componentApi/get-legal-forms.d.ts +3 -0
  69. package/dist/types/core/Services/componentApi/get-nace-codes.d.ts +2 -0
  70. package/dist/types/core/hooks/useForm/types.d.ts +1 -0
  71. package/dist/types/core/hooks/useFormComposer.d.ts +2 -0
  72. package/dist/types/core/hooks/useHideButton.d.ts +2 -0
  73. package/dist/types/core/models/api/phone.d.ts +0 -1
  74. package/dist/types/core/process-field-configurations.d.ts +1 -1
  75. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  76. package/dist/types/utils/mapping/componentApiMapping.d.ts +10 -9
  77. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +213 -0
  78. package/dist/types/utils/perState.d.ts +8 -0
  79. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +54 -0
  80. package/dist/types/utils/verification/helpers/verify-id-number-helper.d.ts +8 -3
  81. package/dist/types/utils/verification/verificationUtils.d.ts +14 -4
  82. package/package.json +1 -1
  83. package/dist/types/components/internal/LegalCompanyNameField/validate.d.ts +0 -3
  84. package/dist/types/components/internal/StateField/validate.d.ts +0 -3
  85. package/dist/types/core/models/id-verification-status.d.ts +0 -7
@@ -0,0 +1,6 @@
1
+ import './AdditionalInformationComponent.scss';
2
+ import type { BusinessDetailsSchema } from '../../BusinessDetails/types';
3
+ import { type AdditionalInformationProps, type AdditionalInformationSchema } from '../types';
4
+ export declare const ADDITIONAL_INFORMATION_FORM_ID: keyof BusinessDetailsSchema;
5
+ export declare const additionalInformationFields: Array<keyof AdditionalInformationSchema>;
6
+ export declare function AdditionalInformationComponent({ data, labels, placeholders, helperText, heading, description, readOnly, shouldValidate, formVerificationErrors, fieldValidationErrors, allFields, requiredFields, obscuredFields, optionalFields, readOnlyFields, country, companyType, }: AdditionalInformationProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './component/AdditionalInformationComponent';
@@ -0,0 +1,18 @@
1
+ import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
+ import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
3
+ import type { CountryCode } from '../../core/models/country-code';
4
+ import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
5
+ import type { DateOfIncorporationFieldSchema } from '../internal/DateOfIncorporationField/types';
6
+ import type { DBANameFieldSchema } from '../internal/DBANameField/types';
7
+ import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameField/types';
8
+ import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
9
+ import type { StockISINFieldSchema } from '../internal/StockISINField/types';
10
+ import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
11
+ import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
12
+ import type { VatNumberFieldSchema } from '../internal/VatNumberField';
13
+ export interface AdditionalInformationSchema extends LegalCompanyNameFieldSchema, DBANameFieldSchema, VatNumberFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, DateOfIncorporationFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, StockTickerSymbolFieldSchema {
14
+ }
15
+ export interface AdditionalInformationProps extends BaseInnerFormProps<AdditionalInformationSchema> {
16
+ country: CountryCode;
17
+ companyType: CompanyTypesValue | undefined;
18
+ }
@@ -0,0 +1,6 @@
1
+ import './BasicInformationComponent.scss';
2
+ import type { BusinessDetailsSchema } from '../../BusinessDetails/types';
3
+ import type { BasicInformationProps, BasicInformationSchema } from '../types';
4
+ export declare const BASIC_INFORMATION_FORM_ID: keyof BusinessDetailsSchema;
5
+ export declare const basicInformationFields: Array<keyof BasicInformationSchema>;
6
+ export declare function BasicInformationComponent({ data, labels, placeholders, helperText, heading, description, readOnly, shouldValidate, formVerificationErrors, fieldValidationErrors, allFields, requiredFields, obscuredFields, optionalFields, readOnlyFields, country, companyType, isTopLevelEntity, }: BasicInformationProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './component/BasicInformationComponent';
@@ -0,0 +1,23 @@
1
+ import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
+ import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
3
+ import type { CountryCode } from '../../core/models/country-code';
4
+ import type { BaseTrackingPayload } from '../../core/utils';
5
+ import type { DropinAPIHandlers } from '../Dropins/types';
6
+ import type { BusinessNameFieldSchema } from '../internal/BusinessNameField/types';
7
+ import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
8
+ import type { CountryFieldSchema } from '../internal/CountryField/types';
9
+ import type { StateFieldSchema } from '../internal/StateField/types';
10
+ import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
11
+ export interface BasicInformationSchema extends CountryFieldSchema, BusinessNameFieldSchema, StateFieldSchema, BusinessRegistrationNumberFieldSchema, TaxInformationFieldSchema {
12
+ }
13
+ export interface BasicInformationProps extends BaseInnerFormProps<BasicInformationSchema> {
14
+ country: CountryCode;
15
+ companyType: CompanyTypesValue | undefined;
16
+ isTopLevelEntity: boolean;
17
+ baseTrackingPayload: BaseTrackingPayload;
18
+ handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
19
+ handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
20
+ handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
21
+ handleRefreshCompanyDataset: DropinAPIHandlers['handleRefreshCompanyDataset'];
22
+ handleVerifyTin: DropinAPIHandlers['handleVerifyTin'];
23
+ }
@@ -1,24 +1,48 @@
1
- import { type CountryCode } from '../../core/models/country-code';
2
- import type { FormList } from '../../core/models/form';
3
- import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField';
4
- import type { CountryFieldSchema } from '../internal/CountryField/types';
5
- import type { DateOfIncorporationFieldSchema } from '../internal/DateOfIncorporationField/types';
6
- import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameField/types';
7
- import type { StateFieldSchema } from '../internal/StateField/types';
8
- import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
9
- import type { StockISINFieldSchema } from '../internal/StockISINField/types';
10
- import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
11
- import type { TaxInformationFieldSchema } from '../internal/TaxInformationField';
12
- import type { TradingNameFieldSchema } from '../internal/TradingNameField/types';
13
- import type { VatNumberFieldSchema } from '../internal/VatNumberField';
14
- interface BusinessNameFieldSchema {
15
- businessName?: string;
16
- }
17
- export interface BasicInformationSchema extends CountryFieldSchema, BusinessNameFieldSchema, StateFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema {
18
- }
19
- export interface AdditionalInformationSchema extends LegalCompanyNameFieldSchema, TradingNameFieldSchema, DateOfIncorporationFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, StockTickerSymbolFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, VatNumberFieldSchema {
20
- }
21
- export declare const FIELDS_NEEDED_FOR_COMPANY_SEARCH: Array<keyof BusinessNameFieldSchema | keyof BasicInformationSchema | keyof AdditionalInformationSchema>;
22
- export declare const getForms: (country: CountryCode) => FormList;
1
+ import type { CountryCode } from '../../core/models/country-code';
2
+ import type { AdditionalInformationSchema } from '../AdditionalInformation/types';
3
+ import type { BasicInformationSchema } from '../BasicInformation/types';
4
+ export declare const FIELDS_NEEDED_FOR_COMPANY_SEARCH: Array<keyof BasicInformationSchema | keyof AdditionalInformationSchema>;
5
+ export declare const getForms: (country: CountryCode) => {
6
+ readonly basicInformation: {
7
+ readonly formId: "basicInformation";
8
+ readonly formName: "basicInformationFormName";
9
+ readonly formHeading: "basicInformationFormHeading";
10
+ readonly formDescription: "basicInformationFormDescription";
11
+ readonly fields: (keyof BasicInformationSchema)[];
12
+ };
13
+ readonly companyStructure: {
14
+ readonly formId: "companyStructure";
15
+ readonly formName: "companyStructureFormName";
16
+ readonly formHeading: "companyStructureFormName";
17
+ readonly formDescription: "companyStructureFormDescription";
18
+ readonly fields: (keyof import("../CompanyStructure/types").CompanyStructureSchema)[];
19
+ };
20
+ readonly additionalInformation: {
21
+ readonly formId: "additionalInformation";
22
+ readonly formName: "additionalInformationFormName";
23
+ readonly formHeading: "additionalInformationFormHeading";
24
+ readonly formDescription: "additionalInformationFormDescription";
25
+ readonly fields: (keyof AdditionalInformationSchema)[];
26
+ };
27
+ readonly companyRegistrationAddress: {
28
+ readonly formId: "companyRegistrationAddress";
29
+ readonly formName: "companyRegistrationAddressFormName";
30
+ readonly formDescription: "companyRegistrationAddressFormDescription";
31
+ readonly fields: readonly ["registrationAddress", "operationalAddress", "operationalAddressIsSame"];
32
+ };
33
+ readonly companyRegistrationDocument: {
34
+ readonly formId: "companyRegistrationDocument";
35
+ readonly formName: "companyRegistrationDocumentFormName";
36
+ readonly formHeading: "companyRegistrationDocumentFormHeading";
37
+ readonly formDescription: "companyRegistrationDocumentFormDescription";
38
+ readonly fields: readonly ["registrationDocument"];
39
+ };
40
+ readonly companyTaxDocument: {
41
+ readonly formId: "companyTaxDocument";
42
+ readonly formName: "companyTaxDocumentFormName";
43
+ readonly formHeading: "companyTaxDocumentFormHeading";
44
+ readonly formDescription: "companyTaxDocumentFormDescription";
45
+ readonly fields: readonly ["taxDocument"];
46
+ };
47
+ };
23
48
  export declare const documentFormsIds: string[];
24
- export {};
@@ -3,11 +3,12 @@ import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
3
3
  import type { CountryCode } from '../../core/models/country-code';
4
4
  import type { FormModel } from '../../core/models/form';
5
5
  import type { BaseTrackingPayload } from '../../core/utils';
6
+ import type { AdditionalInformationSchema } from '../AdditionalInformation/types';
7
+ import type { BasicInformationSchema } from '../BasicInformation/types';
6
8
  import type { CompanyStructureSchema } from '../CompanyStructure/types';
7
9
  import type { DocumentUploadSchema } from '../DocumentUpload/types';
8
10
  import type { DropinAPIHandlers } from '../Dropins/types';
9
11
  import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
10
- import type { AdditionalInformationSchema, BasicInformationSchema } from './forms';
11
12
  export interface BusinessDetailsSchema {
12
13
  basicInformation?: BasicInformationSchema;
13
14
  companyStructure?: CompanyStructureSchema;
@@ -6,7 +6,7 @@ export declare const companyForms: {
6
6
  readonly companyNameAndCountry: {
7
7
  readonly formId: "companyNameAndCountry";
8
8
  readonly formName: "basicInformation";
9
- readonly fields: ("country" | "legalCompanyName" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
9
+ readonly fields: ("legalCompanyName" | "country" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
10
10
  };
11
11
  readonly companyType: {
12
12
  readonly formId: "companyType";
@@ -19,7 +19,7 @@ export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS: reado
19
19
  export declare const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION: CountryCode[];
20
20
  export declare const COUNTRIES_THAT_USES_UEN_OR_GST: CountryCode[];
21
21
  /**
22
- * @description These are the countries the currently have a search provider that requires their tax information (TIN, VAT, etc) to search and verify details.
22
+ * @description These are the countries that currently have a search provider that requires their tax information (TIN, VAT, etc) to search and verify details.
23
23
  */
24
24
  export declare const COUNTRIES_USING_COMPANY_SEARCH: readonly CountryCode[];
25
25
  export declare const rules: FormRules<CompanySchema | CompanySearchSchema | SolePropSchema | BusinessDetailsSchema>;
@@ -1,2 +1,2 @@
1
1
  import { type BusinessDetailsDropinProps } from '../types';
2
- export declare function BusinessDetailsDropinComponent({ country, problems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, capabilities, taskName, hideDropinLayout, homeButtonLabel, taskType, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
2
+ export declare function BusinessDetailsDropinComponent({ country, problems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, capabilities, accountHolder, taskName, hideDropinLayout, homeButtonLabel, taskType, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
@@ -6,6 +6,7 @@ import type { BaseTrackingPayload } from '../../../core/utils';
6
6
  import type Language from '../../../language/Language';
7
7
  import type { DocumentApiUtils } from '../../../utils/api/documentUtils';
8
8
  import type { BusinessDetailsProps, BusinessDetailsSchema } from '../../BusinessDetails/types';
9
+ import type { AccountHolderOption } from '../../internal/AccountHolder/types';
9
10
  import type { LoadingStatus } from '../../internal/LoaderWrapper/constants';
10
11
  import type { ToastOptions } from '../../internal/Toast';
11
12
  import type { TrustMember } from '../../TrustMembers/types';
@@ -29,6 +30,7 @@ export interface BusinessDetailsDropinProps extends Omit<BusinessDetailsProps, '
29
30
  isTargetLegalEntityType?: boolean;
30
31
  parentLegalEntity?: LegalEntity;
31
32
  associationDetail?: TrustMember;
33
+ accountHolder?: AccountHolderOption;
32
34
  }
33
35
  export interface SubmitDocumentsProps {
34
36
  data: BusinessDetailsSchema;
@@ -1,4 +1,4 @@
1
1
  import type { HighExposureCompanyDetailsProps, HighExposureCompanySchema } from '../types';
2
2
  export declare const highExposureCompanyDetailsFields: Array<keyof HighExposureCompanySchema>;
3
- declare function AdditionalFieldsForHighExposureCompany({ requiredFields, ...props }: HighExposureCompanyDetailsProps): import("preact").JSX.Element;
3
+ declare function AdditionalFieldsForHighExposureCompany(props: HighExposureCompanyDetailsProps): import("preact").JSX.Element;
4
4
  export default AdditionalFieldsForHighExposureCompany;
@@ -0,0 +1,3 @@
1
+ import type { HighExposureBusinessInformationProps } from '../types';
2
+ declare function HighExposureBusinessInformation({ formUtils, data, valid, errors, fieldProblems, handleChangeFor, country, }: HighExposureBusinessInformationProps): import("preact").JSX.Element;
3
+ export default HighExposureBusinessInformation;
@@ -1,6 +1,5 @@
1
1
  import type { FormList } from '../../../../core/models/form';
2
2
  import type { HighExposureDropinProps } from '../types';
3
3
  export declare const highExposureForms: FormList;
4
- export declare const ultimateParentCompanyFormId: string;
5
4
  declare function HighExposureDropinComponent(props: HighExposureDropinProps): import("preact").JSX.Element;
6
5
  export default HighExposureDropinComponent;
@@ -3,10 +3,14 @@ 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 { FormModel } from '../../../core/models/form';
6
+ import type { FormUtils } from '../../../utils/formUtils';
7
+ import type { ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
6
8
  import type { DropinProps } from '../types';
7
9
  export interface HighExposureCompanySchema {
8
10
  country?: CountryCode;
9
11
  numberOfEmployees?: number;
12
+ legalForm?: string;
13
+ naceCode?: string;
10
14
  }
11
15
  export type HighExposureParentCompanySchema = HighExposureCompanySchema;
12
16
  export type HighExposureUltimateParentCompanySchema = HighExposureCompanySchema;
@@ -20,6 +24,7 @@ export interface HighExposureDropinProps extends BaseOuterFormProps<HighExposure
20
24
  activeForm?: FormModel;
21
25
  forms?: FormModel[];
22
26
  country: CountryCode;
27
+ legalEntityId: ExistingLegalEntity['id'];
23
28
  }
24
29
  export interface HighExposureProps extends HighExposureDropinProps, DropinProps {
25
30
  legalEntityId: ExistingLegalEntity['id'];
@@ -29,6 +34,16 @@ export interface HighExposureProps extends HighExposureDropinProps, DropinProps
29
34
  }
30
35
  export interface HighExposureCompanyDetailsProps extends BaseInnerFormProps<HighExposureCompanySchema> {
31
36
  country: CountryCode;
37
+ legalEntityId: string;
32
38
  }
33
39
  export type HighExposureParentCompanyDetailsProps = HighExposureCompanyDetailsProps;
34
40
  export type HighExposureUltimateParentCompanyDetailsProps = HighExposureCompanyDetailsProps;
41
+ export interface HighExposureBusinessInformationProps extends BaseInnerFormProps<HighExposureCompanySchema> {
42
+ country: CountryCode;
43
+ data: HighExposureCompanySchema;
44
+ valid: Record<keyof HighExposureCompanySchema, boolean>;
45
+ formUtils: FormUtils<HighExposureCompanySchema>;
46
+ errors: Record<keyof HighExposureCompanySchema, ValidationRuleResult | null>;
47
+ fieldProblems: Record<keyof HighExposureCompanySchema, boolean>;
48
+ handleChangeFor: (key: keyof HighExposureCompanySchema, mode?: ValidatorMode) => (e: any) => void;
49
+ }
@@ -1,2 +1,2 @@
1
1
  import type { RoleAndTypeDropinProps } from '../types';
2
- export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, getLegalEntityHandler, isOrganizationSettlorWithExemptionEnabled, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
2
+ export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, getLegalEntityHandler, isOrganizationSettlorWithExemptionEnabled, country, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
+ import type { CountryCode } from '../../../core/models/country-code';
2
3
  import type { CompanyTrustMember, RegularTrustMember, TrustMember } from '../../TrustMembers/types';
3
4
  import type { TrustRoleAndEntityTypeSchema } from '../../TrustRoleAndEntityType/types';
4
5
  export interface RoleAndTypeDropinProps {
@@ -8,6 +9,7 @@ export interface RoleAndTypeDropinProps {
8
9
  addOrUpdateTrustMember: (newOrUpdated: TrustMember) => void;
9
10
  getLegalEntityHandler?(legalEntityId: string): Promise<ExistingLegalEntity>;
10
11
  isOrganizationSettlorWithExemptionEnabled?: boolean;
12
+ country?: CountryCode;
11
13
  }
12
14
  export interface TrustMemberSchema {
13
15
  roleAndEntityType: TrustRoleAndEntityTypeSchema;
@@ -0,0 +1,13 @@
1
+ import type { ExperimentName } from '../../core/Context/ExperimentContext/types';
2
+ import type { CountryCode } from '../../core/models/country-code';
3
+ import type { ValidatorRule, ValidatorRules } from '../../utils/validation/types';
4
+ import type { PersonalDetailsSchema } from '../PersonalDetails/types';
5
+ export declare const personalDetailsValidationRules: ValidatorRules<PersonalDetailsSchema>;
6
+ export declare const validators: ({ country, isExperimentEnabled, }: {
7
+ country: CountryCode;
8
+ isExperimentEnabled?: (experiment: ExperimentName) => boolean;
9
+ }) => {
10
+ birthDate: () => ValidatorRule<string, PersonalDetailsSchema>[];
11
+ nationality: () => ValidatorRule<PersonalDetailsSchema["nationality"], PersonalDetailsSchema>;
12
+ jobTitle: () => ValidatorRule<PersonalDetailsSchema["jobTitle"], PersonalDetailsSchema>;
13
+ };
@@ -1,2 +1,3 @@
1
1
  import type { CountryCode } from '../../core/models/country-code';
2
+ export declare const eeaCountries: CountryCode[];
2
3
  export declare const getAllowedBankCountries: (country: CountryCode) => CountryCode[];
@@ -1,5 +1,7 @@
1
+ import { LegalEntityType } from '../../core/models/api/legal-entity-type';
1
2
  interface SingpassBannerProps {
2
3
  onClick: () => void;
4
+ legalEntityType: LegalEntityType;
3
5
  }
4
6
  export declare const SingpassBanner: (props: SingpassBannerProps) => import("preact").JSX.Element;
5
7
  export {};
@@ -11,5 +11,6 @@ export interface SetupAccountMetadata {
11
11
  name: string;
12
12
  icon: JSX.Element;
13
13
  };
14
+ isOptionDisabled?: boolean;
14
15
  }
15
16
  export declare const SingpassSelection: (props: SetUpAccountMethodProps) => JSX.Element;
@@ -1,4 +1,6 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
+ import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
3
+ import type { AccountHolderOption } from '../internal/AccountHolder/types';
2
4
  export declare const setupAccountMethods: readonly ["singpass", "manual"];
3
5
  export type SetupAccountMethod = (typeof setupAccountMethods)[number];
4
6
  export interface SetupAccountMethodSchema {
@@ -6,4 +8,6 @@ export interface SetupAccountMethodSchema {
6
8
  }
7
9
  export interface SetUpAccountMethodProps extends BaseInnerFormProps<SetupAccountMethodSchema> {
8
10
  handleNextClick: (setupAccountMethod: SetupAccountMethod | undefined) => void;
11
+ accountHolder?: AccountHolderOption;
12
+ legalEntityType: LegalEntityType;
9
13
  }
@@ -3,7 +3,7 @@ export declare const solePropForms: {
3
3
  readonly solePropNameAndCountry: {
4
4
  readonly formId: "solePropNameAndCountry";
5
5
  readonly formName: "basicInformation";
6
- readonly fields: ("country" | "legalCompanyName" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
6
+ readonly fields: ("legalCompanyName" | "country" | keyof import("../../internal/CountryOfGoverningLawField/types").CountryOfGoverningLawFieldSchema)[];
7
7
  };
8
8
  readonly solePropRegistrationDetails: {
9
9
  readonly formId: "solePropRegistrationDetails";
@@ -26,6 +26,7 @@ export interface TrustRoleAndEntityTypeProps extends BaseInnerFormProps<TrustRol
26
26
  existingTrustMember?: TrustMember;
27
27
  getLegalEntityHandler?(legalEntityId: string): Promise<ExistingLegalEntity>;
28
28
  isOrganizationSettlorWithExemptionEnabled?: boolean;
29
+ country?: CountryCode;
29
30
  }
30
31
  export declare const couldBeExemptSettlor: (data: TrustRoleAndEntityTypeSchema) => boolean;
31
32
  export declare const isExemptSettlor: (data: TrustRoleAndEntityTypeSchema) => data is TrustRoleAndEntityTypeSchema & {
@@ -6,12 +6,12 @@ import type { 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) => import("../../../language/types").TranslationKey;
9
+ export declare const getKeyForField: (fieldName: string, country?: CountryCode) => import("../../../language/types").TranslationKey;
10
10
  /**
11
11
  * Returns the address schema of the selected country or the default address schema.
12
12
  * @param country - The selected country
13
13
  */
14
- export declare const getAddressSchemaForCountry: (country: CountryCode) => ("country" | "otherAddressInformation" | "postalCode" | "city" | "address" | "stateOrProvince")[];
14
+ export declare const getAddressSchemaForCountry: (country: CountryCode) => ("otherAddressInformation" | "postalCode" | "city" | "address" | "country" | "stateOrProvince")[];
15
15
  /**
16
16
  * Generates an object to be used as the initial data.
17
17
  * @param data - The data to pre-fill the address fields
@@ -0,0 +1,3 @@
1
+ import type { BusinessNameFieldProps, BusinessNameFieldSchema } from './types';
2
+ export declare const BUSINESS_NAME_FIELD: Array<keyof BusinessNameFieldSchema>;
3
+ export declare function BusinessNameField({ data, valid, errors, labels, readonly, handleChangeFor, }: BusinessNameFieldProps): import("preact").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { FieldMetadata } from '../../../core/models/country-config';
2
+ import type { BusinessNameFieldSchema } from './types';
3
+ export declare const businessNameFieldMetadata: FieldMetadata<BusinessNameFieldSchema, 'businessName'>;
@@ -0,0 +1 @@
1
+ export * from './BusinessNameField';
@@ -0,0 +1,5 @@
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ export interface BusinessNameFieldSchema {
3
+ businessName?: string;
4
+ }
5
+ export type BusinessNameFieldProps = BaseFormFieldProps<BusinessNameFieldSchema>;
@@ -1,11 +1,13 @@
1
1
  import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
2
  import type { FieldMetadata } from '../../../core/models/country-config';
3
3
  import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
4
+ import type { StateCodeUS } from '../../../core/models/state-code';
4
5
  import type { CompanyRegistrationNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
5
6
  import type { BusinessRegistrationNumberSchema } from './types';
6
7
  interface FieldConfigParams {
7
8
  companyType: CompanyTypesValue | 'trust' | undefined;
8
9
  registrationNumberType: CompanyRegistrationNumberType | undefined;
10
+ state?: StateCodeUS | undefined;
9
11
  }
10
12
  export declare const defaultFieldMetadata: FieldMetadata<BusinessRegistrationNumberSchema, 'registrationNumber'>;
11
13
  export declare const defaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberSchema, 'registrationNumber', FieldConfigParams>;
@@ -1,3 +1,3 @@
1
- import type { BusinessRegistrationNumberFieldProps, BusinessRegistrationNumberFieldSchema } from '.';
1
+ import type { BusinessRegistrationNumberFieldProps, BusinessRegistrationNumberFieldSchema } from './types';
2
2
  export declare const BUSINESS_REGISTRATION_NUMBER_FIELD: Array<keyof BusinessRegistrationNumberFieldSchema>;
3
- export declare function BusinessRegistrationNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, handleChangeFor, country, canExempt, companyType, registrationNumberOptions, registrationNumberType, setRegistrationNumberType, }: BusinessRegistrationNumberFieldProps): import("preact").JSX.Element;
3
+ export declare function BusinessRegistrationNumberField({ data, valid, errors, labels, mask, guidanceText, placeholders, readonly, shouldValidate, optional, handleChangeFor, country, canExempt, companyType, registrationNumberOptions, registrationNumberType, setRegistrationNumberType, }: BusinessRegistrationNumberFieldProps): import("preact").JSX.Element;
@@ -1,2 +1 @@
1
1
  export * from './BusinessRegistrationNumberField';
2
- export * from './types';
@@ -2,5 +2,5 @@ import './_button.component.scss';
2
2
  import '../Link/_link.component.scss';
3
3
  import type { JSX } from 'preact';
4
4
  import type { ButtonProps } from './types';
5
- export declare const Button: ({ showAsLink, secondary, tertiary, ghost, positive, negative, className, labelHoverBox, role, small, block, circle, label, icon, title, disabled, type, onClick, onKeyDown, status, testId, }: ButtonProps) => JSX.Element;
5
+ export declare const Button: ({ showAsLink, secondary, tertiary, className, role, small, block, label, icon, title, disabled, type, onClick, onKeyDown, status, testId, }: ButtonProps) => JSX.Element;
6
6
  export default Button;
@@ -4,15 +4,10 @@ export interface ButtonProps {
4
4
  showAsLink?: boolean;
5
5
  secondary?: boolean;
6
6
  tertiary?: boolean;
7
- ghost?: boolean;
8
7
  className?: string;
9
- positive?: boolean;
10
- negative?: boolean;
11
- labelHoverBox?: boolean;
12
8
  role?: JSX.AriaRole;
13
9
  small?: boolean;
14
10
  block?: boolean;
15
- circle?: boolean;
16
11
  label?: string;
17
12
  icon?: IconName;
18
13
  iconOnly?: boolean;
@@ -21,6 +16,6 @@ export interface ButtonProps {
21
16
  type?: 'submit' | 'button';
22
17
  onClick: (e: JSX.TargetedMouseEvent<HTMLButtonElement>) => void;
23
18
  onKeyDown?: (e: JSX.TargetedKeyboardEvent<HTMLButtonElement>) => void;
24
- status?: 'loading' | 'redirect' | 'default';
19
+ status?: 'loading' | 'default';
25
20
  testId?: string;
26
21
  }
@@ -0,0 +1,4 @@
1
+ import './DBANameField.scss';
2
+ import type { DBANameFieldProps, DBANameFieldSchema } from './types';
3
+ export declare const DBA_NAME_FIELD: Array<keyof DBANameFieldSchema>;
4
+ export declare function DBANameField({ data, valid, errors, labels, helperText, readonly, handleChangeFor, }: DBANameFieldProps): import("preact").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { FieldMetadata } from '../../../core/models/country-config';
2
+ import type { DBANameFieldSchema } from './types';
3
+ export declare const dbaNameFieldMetadata: FieldMetadata<DBANameFieldSchema, 'dbaName'>;
@@ -0,0 +1 @@
1
+ export * from './DBANameField';
@@ -0,0 +1,6 @@
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ export interface DBANameFieldSchema {
3
+ hasDBA?: boolean;
4
+ dbaName?: string;
5
+ }
6
+ export type DBANameFieldProps = BaseFormFieldProps<DBANameFieldSchema>;
@@ -0,0 +1,2 @@
1
+ import './Divider.scss';
2
+ export declare const Divider: () => import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { InputBaseProps } from './InputBase';
2
- export default function InputEmail(props: InputBaseProps): import("preact").JSX.Element;
2
+ export declare function InputEmail(props: InputBaseProps): import("preact").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import './RadioGroup.scss';
2
2
  import type { RadioGroupProps } from './types';
3
- export default function RadioGroup({ items, name, onChange, value, isInvalid, uniqueId, className, disabled, }: RadioGroupProps): import("preact").JSX.Element;
3
+ export default function RadioGroup({ items, name, onChange, value, isInvalid, uniqueId, className, disabled, horizontal, }: RadioGroupProps): import("preact").JSX.Element;
@@ -13,5 +13,6 @@ export interface RadioGroupProps {
13
13
  value?: string;
14
14
  uniqueId?: string;
15
15
  disabled?: boolean;
16
+ horizontal?: boolean;
16
17
  }
17
18
  export {};
@@ -117,10 +117,10 @@ export declare const taxIdNumberOptions: {
117
117
  readonly name: "NumeroDeTVA";
118
118
  }];
119
119
  readonly SG: readonly [{
120
- readonly id: "gst";
120
+ readonly id: "GST";
121
121
  readonly name: "gst";
122
122
  }, {
123
- readonly id: "uen";
123
+ readonly id: "UEN";
124
124
  readonly name: "uen";
125
125
  }];
126
126
  readonly JE: readonly [{
@@ -131,6 +131,13 @@ export declare const taxIdNumberOptions: {
131
131
  readonly name: "socialSecurityNumber";
132
132
  readonly applicableOnlyFor: readonly [CompanyTypesValue.SOLE_PROPRIETORSHIP];
133
133
  }];
134
+ readonly US: readonly [{
135
+ readonly id: "EIN";
136
+ readonly name: "ein";
137
+ }, {
138
+ readonly id: "SSN";
139
+ readonly name: "ssn";
140
+ }];
134
141
  };
135
142
  export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => readonly TaxIdNumberOption[] | undefined;
136
143
  export type TaxIdNumberType = (typeof taxIdNumberOptions)[keyof typeof taxIdNumberOptions][number]['id'];
@@ -10,4 +10,4 @@ import type { TaxIdNumberType } from './countryIdNumberTypes';
10
10
  * @param country the country of the LE
11
11
  * @param companyType the company type, e.g. `nonProfit`
12
12
  */
13
- export declare const inferTaxIdNumberType: (taxId: string, country: CountryCode, companyType: CompanyTypesValue | LegalEntityType.TRUST | undefined) => TaxIdNumberType | undefined;
13
+ export declare const inferTaxIdNumberType: (taxId: string, country: CountryCode, companyType?: CompanyTypesValue | LegalEntityType.TRUST) => TaxIdNumberType | undefined;
@@ -0,0 +1,9 @@
1
+ import type { FieldMetadata } from '../../../core/models/country-config';
2
+ import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
3
+ import type { LegalCompanyNameFieldSchema } from './types';
4
+ interface FieldConfigParams {
5
+ isBusiness?: boolean;
6
+ }
7
+ export declare const defaultFieldMetadata: FieldMetadata<LegalCompanyNameFieldSchema, 'legalCompanyName'>;
8
+ export declare const defaultFieldConfig: PerCountryFieldConfig<LegalCompanyNameFieldSchema, 'legalCompanyName', FieldConfigParams>;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { LegalFormFieldProps, LegalFormFieldSchema } from './types';
2
+ export declare const LEGAL_FORM_FIELD: Array<keyof LegalFormFieldSchema>;
3
+ export declare function LegalFormField({ name, data, valid, errors, labels, readonly, handleChangeFor, helperText, countryCode, classNameModifiers, }: LegalFormFieldProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './LegalFormField';
@@ -0,0 +1,8 @@
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ import type { CountryCode } from '../../../core/models/country-code';
3
+ export interface LegalFormFieldSchema {
4
+ legalForm?: string;
5
+ }
6
+ export interface LegalFormFieldProps extends BaseFormFieldProps<LegalFormFieldSchema> {
7
+ countryCode?: CountryCode;
8
+ }
@@ -0,0 +1,3 @@
1
+ import type { NaceCodeFieldProps, NaceCodeFieldSchema } from './types';
2
+ export declare const NACE_CODE_FIELD: Array<keyof NaceCodeFieldSchema>;
3
+ export declare function NaceCodeField({ name, data, valid, errors, labels, readonly, handleChangeFor, helperText, classNameModifiers, }: NaceCodeFieldProps): import("preact").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './NaceCodeField';
@@ -0,0 +1,5 @@
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ export interface NaceCodeFieldSchema {
3
+ naceCode?: string;
4
+ }
5
+ export type NaceCodeFieldProps = BaseFormFieldProps<NaceCodeFieldSchema>;
@@ -1,3 +1,3 @@
1
1
  import type { StateFieldProps, StateFieldSchema } from './types';
2
2
  export declare const STATE_FIELD: Array<keyof StateFieldSchema>;
3
- export declare function StateField({ data, valid, errors, labels, readonly, handleChangeFor, selectedCountry, classNameModifiers, }: StateFieldProps): import("preact").JSX.Element;
3
+ export declare function StateField({ data, valid, errors, labels, placeholders, readonly, handleChangeFor, selectedCountry, classNameModifiers, }: StateFieldProps): import("preact").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { FieldMetadata } from '../../../core/models/country-config';
2
+ import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
3
+ import type { StateFieldSchema } from './types';
4
+ interface FieldConfigParams {
5
+ isBusiness?: boolean;
6
+ }
7
+ export declare const defaultFieldMetadata: FieldMetadata<StateFieldSchema, 'stateOrProvince'>;
8
+ export declare const defaultFieldConfig: PerCountryFieldConfig<StateFieldSchema, 'stateOrProvince', FieldConfigParams>;
9
+ export {};