@adyen/kyc-components 3.34.1 → 3.35.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 (113) hide show
  1. package/dist/es/adyen-kyc-components.es.js +1293 -1034
  2. package/dist/es/hide-CWI5yHxd.js +9 -0
  3. package/dist/es/show-Cm_JGm0K.js +8 -0
  4. package/dist/style.css +46 -28
  5. package/dist/types/components/AdditionalInformation/types.d.ts +1 -1
  6. package/dist/types/components/BankDocument/types.d.ts +1 -1
  7. package/dist/types/components/BankVerification/types.d.ts +1 -9
  8. package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +7 -19
  9. package/dist/types/components/BasicInformation/types.d.ts +1 -1
  10. package/dist/types/components/BusinessDetails/types.d.ts +1 -1
  11. package/dist/types/components/Company/types.d.ts +1 -1
  12. package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -1
  13. package/dist/types/components/CompanyRegistrationDetails/types.d.ts +1 -1
  14. package/dist/types/components/CompanyStructure/types.d.ts +1 -1
  15. package/dist/types/components/CompanyType/types.d.ts +1 -1
  16. package/dist/types/components/ContactDetails/types.d.ts +1 -1
  17. package/dist/types/components/DocumentUpload/types.d.ts +1 -1
  18. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
  19. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
  20. package/dist/types/components/Dropins/RoleAndTypeDropin/components/formatRoleAndEntityTypeSummary.d.ts +5 -0
  21. package/dist/types/components/Dropins/types.d.ts +2 -1
  22. package/dist/types/components/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
  23. package/dist/types/components/FinancialInformation/types.d.ts +2 -1
  24. package/dist/types/components/IdDocumentUpload/types.d.ts +3 -3
  25. package/dist/types/components/IdVerification/types.d.ts +3 -3
  26. package/dist/types/components/IdVerificationMethod/types.d.ts +3 -3
  27. package/dist/types/components/IdentityNumber/type.d.ts +1 -1
  28. package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -2
  29. package/dist/types/components/Individual/types.d.ts +1 -1
  30. package/dist/types/components/PayoutAccount/types.d.ts +4 -3
  31. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +1 -4
  32. package/dist/types/components/PayoutDetails/rules.d.ts +1 -0
  33. package/dist/types/components/PayoutDetails/types.d.ts +1 -1
  34. package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +2 -1
  35. package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +16 -3
  36. package/dist/types/components/PayoutVerificationMethod/types.d.ts +13 -4
  37. package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +1 -1
  38. package/dist/types/components/PersonalDetails/types.d.ts +3 -4
  39. package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
  40. package/dist/types/components/SingpassSelection/types.d.ts +1 -1
  41. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +8 -0
  42. package/dist/types/components/SoleProp/types.d.ts +3 -1
  43. package/dist/types/components/Trust/types.d.ts +1 -1
  44. package/dist/types/components/TrustRegistrationDetails/types.d.ts +1 -1
  45. package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
  46. package/dist/types/components/embedded-ui/EmbeddedStatus/EmbeddedStatus.d.ts +4 -4
  47. package/dist/types/components/internal/Address/types.d.ts +1 -1
  48. package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -1
  49. package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -1
  50. package/dist/types/components/internal/BankCity/types.d.ts +1 -1
  51. package/dist/types/components/internal/BankCode/types.d.ts +1 -1
  52. package/dist/types/components/internal/BankName/types.d.ts +1 -1
  53. package/dist/types/components/internal/BranchCode/types.d.ts +1 -1
  54. package/dist/types/components/internal/BusinessNameField/types.d.ts +1 -1
  55. package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +1 -1
  56. package/dist/types/components/internal/CountryField/types.d.ts +1 -5
  57. package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
  58. package/dist/types/components/internal/Currency/types.d.ts +1 -1
  59. package/dist/types/components/internal/DBANameField/types.d.ts +1 -1
  60. package/dist/types/components/internal/DecisionMakerRole/types.d.ts +1 -1
  61. package/dist/types/components/internal/FinancialReportingDate/types.d.ts +1 -1
  62. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +4 -5
  63. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +1 -1
  64. package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -1
  65. package/dist/types/components/internal/FormFields/utils.d.ts +1 -2
  66. package/dist/types/components/internal/Iban/types.d.ts +1 -1
  67. package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -2
  68. package/dist/types/components/internal/LegalFormField/types.d.ts +3 -2
  69. package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -2
  70. package/dist/types/components/internal/NaceCodeField/types.d.ts +3 -2
  71. package/dist/types/components/internal/Name/types.d.ts +1 -1
  72. package/dist/types/components/internal/NumberOfEmployees/types.d.ts +1 -1
  73. package/dist/types/components/internal/PhoneInput/types.d.ts +1 -1
  74. package/dist/types/components/internal/StateField/types.d.ts +1 -1
  75. package/dist/types/components/internal/StockTickerSymbol/types.d.ts +1 -1
  76. package/dist/types/components/internal/Summary/Summary.d.ts +1 -2
  77. package/dist/types/components/internal/Summary/summaryItem.d.ts +11 -0
  78. package/dist/types/components/internal/Summary/types.d.ts +5 -2
  79. package/dist/types/components/internal/Svg/svgs.d.ts +2 -0
  80. package/dist/types/components/internal/SwiftCode/types.d.ts +1 -1
  81. package/dist/types/components/internal/TaxId/types.d.ts +1 -1
  82. package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
  83. package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +2 -1
  84. package/dist/types/core/hooks/useBusinessData/constants.d.ts +0 -2
  85. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -1
  86. package/dist/types/core/models/company.d.ts +0 -3
  87. package/dist/types/core/models/country-config.d.ts +1 -1
  88. package/dist/types/core/models/errors/error-message.d.ts +0 -5
  89. package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -6
  90. package/dist/types/core/models/identity.d.ts +6 -0
  91. package/dist/types/core/models/province-code.d.ts +2 -1
  92. package/dist/types/core/process-field-configurations.d.ts +1 -1
  93. package/dist/types/utils/entity-association-util.d.ts +1 -8
  94. package/dist/types/utils/formUtils.d.ts +1 -1
  95. package/dist/types/utils/get-props.d.ts +1 -1
  96. package/dist/types/utils/logger.d.ts +0 -1
  97. package/dist/types/utils/perState.d.ts +0 -3
  98. package/dist/types/utils/validation/ValidationResult.d.ts +0 -2
  99. package/dist/types/utils/validation/types.d.ts +2 -16
  100. package/package.json +1 -1
  101. package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
  102. package/dist/types/components/internal/BankCity/index.d.ts +0 -1
  103. package/dist/types/components/internal/BankCode/index.d.ts +0 -1
  104. package/dist/types/components/internal/BankName/index.d.ts +0 -1
  105. package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
  106. package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
  107. package/dist/types/components/internal/Iban/index.d.ts +0 -1
  108. package/dist/types/components/internal/Name/index.d.ts +0 -1
  109. package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
  110. package/dist/types/core/Services/componentApi/index.d.ts +0 -19
  111. package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -6
  112. package/dist/types/core/hooks/useForm/index.d.ts +0 -3
  113. package/dist/types/utils/regex/index.d.ts +0 -7
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
2
2
  import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
3
3
  import type { AccountHolderOption } from '../internal/AccountHolder/types';
4
4
  export declare const setupAccountMethods: readonly ["singpass", "manual"];
@@ -1,3 +1,4 @@
1
+ import type { FinancialInformationSchema } from '../../FinancialInformation/types';
1
2
  import type { SolePropProps } from '../types';
2
3
  export declare const solePropForms: {
3
4
  readonly solePropNameAndCountry: {
@@ -20,6 +21,13 @@ export declare const solePropForms: {
20
21
  readonly formName: "constitutionalDocument";
21
22
  readonly fields: readonly ["constitutionalDocument"];
22
23
  };
24
+ readonly solePropFinancialInformation: {
25
+ readonly formId: "solePropFinancialInformation";
26
+ readonly formName: "financialInformation";
27
+ readonly formHeading: "companyFinancialInformationFormHeading";
28
+ readonly formDescription: "companyFinancialInformationFormDescription";
29
+ readonly fields: (keyof FinancialInformationSchema)[];
30
+ };
23
31
  };
24
32
  export declare const solePropDocumentFormId: "solePropConstitutionalDocument";
25
33
  declare function SolePropComponent(props: SolePropProps): import("preact").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { BaseOuterFormProps } from '../../core/hooks/useForm';
1
+ import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
2
2
  import type { CapabilityName } from '../../core/models/api/capability';
3
3
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
4
4
  import type { CountryCode } from '../../core/models/country-code';
@@ -7,6 +7,7 @@ import type { CompanyNameAndCountrySchema } from '../CompanyNameAndCountry/types
7
7
  import type { CompanyRegistrationDetailsSchema } from '../CompanyRegistrationDetails/types';
8
8
  import type { DocumentUploadSchema } from '../DocumentUpload/types';
9
9
  import type { DropinAPIHandlers, DropinProps } from '../Dropins/types';
10
+ import type { FinancialInformationSchema } from '../FinancialInformation/types';
10
11
  import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
11
12
  export type SolePropNameAndCountrySchema = CompanyNameAndCountrySchema;
12
13
  export type SolePropRegistrationDetailsSchema = CompanyRegistrationDetailsSchema;
@@ -15,6 +16,7 @@ export interface SolePropSchema {
15
16
  solePropRegistrationDetails?: SolePropRegistrationDetailsSchema;
16
17
  solePropRegistrationAddress?: RegistrationAddressSchema;
17
18
  solePropConstitutionalDocument?: DocumentUploadSchema;
19
+ solePropFinancialInformation?: FinancialInformationSchema;
18
20
  }
19
21
  export interface SolePropProps extends BaseOuterFormProps<SolePropSchema> {
20
22
  capabilities?: CapabilityName[];
@@ -1,4 +1,4 @@
1
- import type { BaseOuterFormProps } from '../../core/hooks/useForm';
1
+ import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
2
2
  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';
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
2
2
  import { TrustTypes } from '../../core/models/api/trust-types-value';
3
3
  import type { CountryCode } from '../../core/models/country-code';
4
4
  import type { TranslationKey } from '../../language/types';
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
2
2
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
3
3
  import { LegalEntityType } from '../../core/models/api/legal-entity-type';
4
4
  import type { TrustMemberType } from '../../core/models/api/trust-member-type';
@@ -14,13 +14,13 @@ export interface EmbeddedStatusProps {
14
14
  onClick?: () => void;
15
15
  light?: boolean;
16
16
  className?: string;
17
- actionButton?: ActionButton;
17
+ actionIndicator?: ActionIndicator;
18
18
  }
19
- export interface ActionButton {
19
+ interface ActionIndicator {
20
20
  labelKey: TranslationKey;
21
- onClick: () => void;
22
21
  }
23
22
  /**
24
23
  * UI-only component used to display a tag based on status or an action button
25
24
  */
26
- export declare const EmbeddedStatus: ({ title, subtitle, status, iconName, loading, tagLabel, tagVariant, onClick, light, className, actionButton, ...props }: EmbeddedStatusProps) => import("preact").JSX.Element;
25
+ export declare const EmbeddedStatus: ({ title, subtitle, status, iconName, loading, tagLabel, tagVariant, onClick, light, className, actionIndicator, ...props }: EmbeddedStatusProps) => import("preact").JSX.Element;
26
+ export {};
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CompanyDatasetResponse } from '../../../core/models/api/company-search';
3
3
  import type { CountryCode } from '../../../core/models/country-code';
4
4
  import type { TranslationKey } from '../../../language/types';
@@ -1,3 +1,2 @@
1
1
  import type { VerificationErrorAlertProps } from '../types';
2
2
  export declare const VerificationErrorAlert: ({ className, problems, children, }: VerificationErrorAlertProps) => import("preact").JSX.Element;
3
- export default VerificationErrorAlert;
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { defaultFieldConfig } from './fieldConfig';
4
4
  export interface BankAccountNumberSchema {
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  export interface BankCitySchema {
3
3
  bankCity?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { defaultFieldConfig } from './fieldConfig';
4
4
  export interface BankCodeSchema {
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  export interface BankNameSchema {
3
3
  bankName?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { defaultFieldConfig } from './fieldConfig';
4
4
  export interface BranchCodeSchema {
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  export interface BusinessNameFieldSchema {
3
3
  businessName?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
3
3
  import type { CountryCode } from '../../../core/models/country-code';
4
4
  import type { defaultFieldConfig } from './fieldConfig';
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  export interface CountryFieldSchema {
4
4
  country?: CountryCode | undefined;
@@ -6,7 +6,3 @@ export interface CountryFieldSchema {
6
6
  export interface CountryFieldProps extends BaseFormFieldProps<CountryFieldSchema> {
7
7
  allowedCountries?: readonly CountryCode[];
8
8
  }
9
- export interface CountryFieldItem {
10
- id: CountryCode;
11
- name: string;
12
- }
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  export interface CountryOfGoverningLawFieldSchema {
4
4
  countryOfGoverningLaw?: CountryCode;
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { Currency } from '../../../core/models/currency';
4
4
  export interface CurrencySchema {
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  export interface DBANameFieldSchema {
3
3
  hasDba?: boolean;
4
4
  dbaName?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
3
3
  import type { LegalEntityAssociation } from '../../../core/models/api/legal-entity-association';
4
4
  import type { TaskTypes } from '../../TaskList/types';
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  export interface FinancialReportingDateFieldSchema {
3
3
  financialReportingDate?: any;
4
4
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Returns either the date input is supported or not in the current browser
3
3
  */
4
- declare const checkDateInputSupport: () => boolean;
4
+ export declare const checkDateInputSupport: () => boolean;
5
5
  /**
6
6
  * Returns a formatted date
7
7
  * @param value -
@@ -9,7 +9,7 @@ declare const checkDateInputSupport: () => boolean;
9
9
  * formatDate('22111990');
10
10
  * // '22/11/1990'
11
11
  */
12
- declare const formatDate: (value: string) => string;
12
+ export declare const formatDate: (value: string) => string;
13
13
  /**
14
14
  * Receives a formatted date and returns it as the API expects it
15
15
  * @param value -
@@ -17,6 +17,5 @@ declare const formatDate: (value: string) => string;
17
17
  * unformatDate('22/11/1990');
18
18
  * // '1990-11-22'
19
19
  */
20
- declare const unformatDate: (value?: string) => string | null;
21
- declare const formatDateObj: (date: Date) => string;
22
- export { checkDateInputSupport, formatDate, formatDateObj, unformatDate };
20
+ export declare const unformatDate: (value?: string) => string | null;
21
+ export declare const formatDateObj: (date: Date) => string;
@@ -1,6 +1,6 @@
1
1
  import './MaskedInputText.scss';
2
2
  import type { JSX } from 'preact';
3
- import type { MaskSettings } from '../../../../core/hooks/useForm';
3
+ import type { MaskSettings } from '../../../../core/hooks/useForm/types';
4
4
  import type { MismatchResult } from '../../../../utils/masking/matchAgainstMask';
5
5
  export interface MaskedInputTextProps extends MaskSettings {
6
6
  value: string;
@@ -51,7 +51,6 @@ export interface SingleSelectOnChangeProps {
51
51
  export interface MultiSelectOnChangeProps {
52
52
  target: MultiSelectOnChangeTarget;
53
53
  }
54
- export type SelectOnChangeProps = SingleSelectOnChangeProps | MultiSelectOnChangeProps;
55
54
  interface SingleSelectProps extends BaseSelectProps {
56
55
  isMulti?: false;
57
56
  onChange: (e: SingleSelectOnChangeProps) => void;
@@ -3,5 +3,4 @@
3
3
  *
4
4
  * E.g. `test@email123.com` -> `test@email123.com`
5
5
  */
6
- declare const convertFullToHalf: (str: string) => string;
7
- export { convertFullToHalf };
6
+ export declare const convertFullToHalf: (str: string) => string;
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { defaultFieldConfig } from './fieldConfig';
4
4
  export interface IbanSchema {
@@ -1,3 +1,2 @@
1
- import type { LegalFormFieldProps, LegalFormFieldSchema } from './types';
2
- export declare const LEGAL_FORM_FIELD: Array<keyof LegalFormFieldSchema>;
1
+ import type { LegalFormFieldProps } from './types';
3
2
  export declare function LegalFormField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText, countryCode, classNameModifiers, }: LegalFormFieldProps): import("preact").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { JSX } from 'preact';
2
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
2
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
3
3
  import type { CountryCode } from '../../../core/models/country-code';
4
- export interface LegalFormFieldSchema {
4
+ interface LegalFormFieldSchema {
5
5
  legalForm?: string;
6
6
  }
7
7
  export interface LegalFormFieldProps extends Omit<BaseFormFieldProps<LegalFormFieldSchema>, 'errors' | 'labels'> {
@@ -9,3 +9,4 @@ export interface LegalFormFieldProps extends Omit<BaseFormFieldProps<LegalFormFi
9
9
  countryCode?: CountryCode;
10
10
  label?: string;
11
11
  }
12
+ export {};
@@ -1,3 +1,2 @@
1
- import type { NaceCodeFieldProps, NaceCodeFieldSchema } from './types';
2
- export declare const NACE_CODE_FIELD: Array<keyof NaceCodeFieldSchema>;
1
+ import type { NaceCodeFieldProps } from './types';
3
2
  export declare function NaceCodeField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText, classNameModifiers, }: NaceCodeFieldProps): import("preact").JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import type { JSX } from 'preact';
2
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
3
- export interface NaceCodeFieldSchema {
2
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
3
+ interface NaceCodeFieldSchema {
4
4
  naceCode?: string;
5
5
  }
6
6
  export interface NaceCodeFieldProps extends Omit<BaseFormFieldProps<NaceCodeFieldSchema>, 'errors' | 'labels'> {
7
7
  errorMessage?: string | boolean | JSX.Element | null;
8
8
  label?: string;
9
9
  }
10
+ export {};
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  export interface NameSchema {
3
3
  firstName?: string;
4
4
  lastName?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  export interface NumberOfEmployeesFieldSchema {
3
3
  numberOfEmployees: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  export interface PhoneInputSchema {
4
4
  phoneNumber?: string;
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CountryCode } from '../../../core/models/country-code';
3
3
  import type { ProvinceCode } from '../../../core/models/province-code';
4
4
  import type { StateCode } from '../../../core/models/state-code';
@@ -1,4 +1,4 @@
1
- import type { BaseFormFieldProps } from '../../../core/hooks/useForm';
1
+ import type { BaseFormFieldProps } from '../../../core/hooks/useForm/types';
2
2
  export interface StockTickerSymbolFieldSchema {
3
3
  stockTickerSymbol?: string;
4
4
  }
@@ -1,7 +1,6 @@
1
1
  import './Summary.scss';
2
- import type { PartialDeep } from 'type-fest';
3
2
  import type { TopLevelDataSchema } from '../../../core/Context/StateContext/types';
4
3
  import type { FormModel } from '../../../core/models/form';
5
4
  import type { SummaryProps } from './types';
6
5
  export declare const summaryStep: FormModel;
7
- export declare function Summary<TLDS extends PartialDeep<TopLevelDataSchema>>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, showFormHeader, showSectionHeader, showLegalCaption, showTaxExemptedLegalCaption, }: SummaryProps<TLDS>): import("preact").JSX.Element;
6
+ export declare function Summary<TLDS extends TopLevelDataSchema>({ data, forms, omittedKeys, gotoForm, labels, problems, trackNavigation, omittedForms, showFormHeader, showSectionHeader, showLegalCaption, showTaxExemptedLegalCaption, }: SummaryProps<TLDS>): import("preact").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { JSX } from 'preact';
2
+ import type { Translatable } from '../../../language/types';
3
+ export interface SummaryItem {
4
+ summaryLabel: Translatable;
5
+ summaryValue: string | null | JSX.Element;
6
+ }
7
+ export declare const isSummaryItem: (val: unknown) => val is SummaryItem;
8
+ export declare const summaryItem: (summaryLabel: SummaryItem["summaryLabel"], summaryValue: SummaryItem["summaryValue"]) => {
9
+ summaryLabel: Translatable;
10
+ summaryValue: string | JSX.Element;
11
+ };
@@ -1,12 +1,15 @@
1
+ import type { Schema } from 'type-fest';
1
2
  import type { EntityProblems } from '../../../core/models/errors/entity-problems';
2
3
  import type { FormModel } from '../../../core/models/form';
3
- export interface SummaryProps<Schema> {
4
+ import type { SummaryItem } from './summaryItem';
5
+ export type SummaryOf<T> = Partial<Schema<T, string | SummaryItem>>;
6
+ export interface SummaryProps<Schema extends object> {
4
7
  trackNavigation?: (props: {
5
8
  fromForm: FormModel;
6
9
  toForm: FormModel;
7
10
  component: string;
8
11
  }) => void;
9
- data: Schema;
12
+ data: SummaryOf<Schema>;
10
13
  forms: FormModel[];
11
14
  omittedKeys?: string[];
12
15
  omittedForms?: string[];
@@ -34,6 +34,7 @@ export declare const svgs: {
34
34
  readonly download: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
35
35
  readonly edit: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
36
36
  readonly 'field-error': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
37
+ readonly hide: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
37
38
  readonly 'info-circle': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
38
39
  readonly image: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
39
40
  readonly 'light-bulb': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
@@ -47,6 +48,7 @@ export declare const svgs: {
47
48
  readonly remove: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
48
49
  readonly save: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
49
50
  readonly search: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
51
+ readonly show: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
50
52
  readonly store: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
51
53
  readonly trust: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
52
54
  readonly user: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  export interface SwiftCodeSchema {
3
3
  swiftCode?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
1
+ import type { BaseInnerFormProps } from '../../../core/hooks/useForm/types';
2
2
  import type { CompanyTypesValue } from '../../../core/models/api/company-types-value';
3
3
  import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
4
4
  import type { CountryCode } from '../../../core/models/country-code';
@@ -24,7 +24,9 @@ export declare enum ExperimentNames {
24
24
  EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation = "EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation",
25
25
  EnableFinancialInformationComponentV4 = "EnableFinancialInformationComponentV4",
26
26
  EnablePreferInstantVerificationFlow = "EnablePreferInstantVerificationFlow",
27
- EnableAUIncorporatedPartnershipSkipRegistrationNumber = "EnableAUIncorporatedPartnershipSkipRegistrationNumber"
27
+ EnablePhoneFieldScenario = "EnablePhoneFieldScenario",
28
+ EnableAUIncorporatedPartnershipSkipRegistrationNumber = "EnableAUIncorporatedPartnershipSkipRegistrationNumber",
29
+ EnableCompanyTrusteeSkipABN = "EnableCompanyTrusteeSkipABN"
28
30
  }
29
31
  export type ExperimentName = `${ExperimentNames}`;
30
32
  export type Experiments = {
@@ -1,4 +1,5 @@
1
+ import type Language from '../../../language/Language';
1
2
  import type { BankVerificationVendorsResponse } from '../../models/api/get-bankVerification-providers';
2
3
  import type { CountryCode } from '../../models/country-code';
3
4
  import type { ComponentApiRequestContext } from '../types';
4
- export declare const getBankVerificationVendor: (context: ComponentApiRequestContext, country: CountryCode, openBankingPartnerConfigId?: string) => Promise<BankVerificationVendorsResponse>;
5
+ export declare const getBankVerificationVendor: (context: ComponentApiRequestContext, country: CountryCode, openBankingPartnerConfigId?: string, locale?: Language["locale"]) => Promise<BankVerificationVendorsResponse>;
@@ -1,6 +1,4 @@
1
1
  import type { StateCode } from '../../models/state-code';
2
2
  export declare const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 157766400000;
3
- export declare const MED_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 94694400000;
4
- export declare const HIGH_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 31536000000;
5
3
  export declare const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS: Array<StateCode>;
6
4
  export declare const KNOWN_DISALLOWED_INDEX_DATASET_STATES: Array<StateCode>;
@@ -1,5 +1,6 @@
1
1
  import type { CountryCodes } from '../country-code';
2
2
  import type { Address } from './address';
3
+ import type { FinancialReport } from './financialReport';
3
4
  import type { TaxInformation, VatAbsenceReason } from './organization';
4
5
  export interface LegalArrangement {
5
6
  name: string;
@@ -13,5 +14,5 @@ export interface LegalArrangement {
13
14
  vatAbsenceReason?: VatAbsenceReason;
14
15
  registrationNumber?: string;
15
16
  principalPlaceOfBusiness?: Address;
17
+ financialReports?: FinancialReport[];
16
18
  }
17
- export type LegalArrangementType = 'trust' | 'soleProprietorship';
@@ -13,9 +13,6 @@ export declare const companyBase: {
13
13
  export declare const businessDetailsBase: {
14
14
  [key: string]: ScenarioFieldSettings;
15
15
  };
16
- export declare const taxInformationBase: {
17
- [key: string]: ScenarioFieldSettings;
18
- };
19
16
  export declare const companyTypes: readonly CompanyTypeModel[];
20
17
  export declare const fieldsPerScenario: ScenarioFields<typeof companyBase>;
21
18
  export declare const businessDetailsFieldsPerScenario: ScenarioFields<typeof businessDetailsBase>;
@@ -1,6 +1,6 @@
1
1
  import type { Translatable, TranslationKey } from '../../language/types';
2
2
  import type { ValidatorRule } from '../../utils/validation/types';
3
- import type { MaskSettings } from '../hooks/useForm';
3
+ import type { MaskSettings } from '../hooks/useForm/types';
4
4
  import type { CountryCode } from './country-code';
5
5
  export type CountryConfig<Options = unknown> = Partial<Record<CountryCode, {
6
6
  [field: string]: FieldMetadata<Record<string, string>, string> | ((options: Options) => FieldMetadata<Record<string, string>, string>);
@@ -1,7 +1,2 @@
1
1
  import type { TranslationKey } from '../../../language/types';
2
2
  export type ErrorCode = Extract<TranslationKey, `errorMessage_${string}`> extends `errorMessage_${infer R}` ? R : never;
3
- export interface ErrorMessage {
4
- code: ErrorCode;
5
- errorMessage: string;
6
- remediationMessages?: string[];
7
- }
@@ -1,7 +1 @@
1
- export interface MaintenanceModeError {
2
- message: string;
3
- messageCode: 'maintenanceMode';
4
- reference: string;
5
- statusCode: 503;
6
- }
7
1
  export declare const isMaintenanceModeError: (error: Error | undefined) => boolean;
@@ -13,6 +13,9 @@ export declare const idDocument: {
13
13
  export declare const nationality: {
14
14
  [key: string]: ScenarioFieldSettings;
15
15
  };
16
+ export declare const phoneNumberBase: {
17
+ [key: string]: ScenarioFieldSettings;
18
+ };
16
19
  export declare const fieldsPerScenario: {
17
20
  L0: {
18
21
  [key: string]: ScenarioFieldSettings<unknown>;
@@ -41,4 +44,7 @@ export declare const fieldsPerScenario: {
41
44
  L1_IDDOC: {
42
45
  [key: string]: ScenarioFieldSettings<unknown>;
43
46
  };
47
+ L_PH: {
48
+ [key: string]: ScenarioFieldSettings<unknown>;
49
+ };
44
50
  };
@@ -1,6 +1,6 @@
1
1
  export type ProvinceCode = ProvinceCodeAU | ProvinceCodeCA | ProvinceCodeNZ;
2
2
  export type ProvinceCodeAU = `${ProvinceCodesAU}`;
3
- export declare const enum ProvinceCodesAU {
3
+ declare const enum ProvinceCodesAU {
4
4
  AustralianCapitalTerritory = "ACT",
5
5
  NewSouthWales = "NSW",
6
6
  NorthernTerritory = "NT",
@@ -45,3 +45,4 @@ export declare const enum ProvinceCodesNZ {
45
45
  WestCoast = "WTC",
46
46
  ChathamIslandsTerritory = "CIT"
47
47
  }
48
+ export {};
@@ -7,7 +7,7 @@ import type { SolePropSchema } from '../components/SoleProp/types';
7
7
  import type { TrustSchema } from '../components/Trust/types';
8
8
  import type { AnyTLDSFieldName } from '../utils/getFieldsWithExistingData';
9
9
  import type { ValidatorRules } from '../utils/validation/types';
10
- import type { BaseOuterFormProps } from './hooks/useForm';
10
+ import type { BaseOuterFormProps } from './hooks/useForm/types';
11
11
  import type { Scenario } from './models/api/get-scenarios';
12
12
  import type { LegalEntityTrustedFields } from './models/api/legal-entity';
13
13
  import type { LegalEntityType } from './models/api/legal-entity-type';
@@ -1,17 +1,10 @@
1
1
  import type { AccountHolderOption } from '../components/internal/AccountHolder/types';
2
2
  import { TaskTypes } from '../components/TaskList/types';
3
3
  import type { ExistingLegalEntity, LegalEntity } from '../core/models/api/legal-entity';
4
- import type { LegalEntityAssociation, LegalEntityAssociationType } from '../core/models/api/legal-entity-association';
4
+ import type { LegalEntityAssociation } from '../core/models/api/legal-entity-association';
5
5
  import { LegalEntityType } from '../core/models/api/legal-entity-type';
6
6
  import type { CapabilityProblems } from '../core/models/errors/capability-problems';
7
7
  import type { EntityProblems } from '../core/models/errors/entity-problems';
8
- import type { TranslationKey } from '../language/types';
9
- export interface EntityAssociationRoleConfig<T extends LegalEntityAssociationType> {
10
- id: T;
11
- name: TranslationKey;
12
- description: TranslationKey;
13
- className: string;
14
- }
15
8
  /**
16
9
  * Returns the entity associations from the root LE which have a {@link LegalEntityAssociation.associatorId} matching the given `legalEntityId`.
17
10
  * Can be used to find members of a trust, or decision makers of a trustee company.
@@ -1,4 +1,4 @@
1
- import type { BaseInnerFormProps, FieldData, MaskSettings } from '../core/hooks/useForm';
1
+ import type { BaseInnerFormProps, FieldData, MaskSettings } from '../core/hooks/useForm/types';
2
2
  import type { FieldMetadata } from '../core/models/country-config';
3
3
  import type Language from '../language/Language';
4
4
  import type { Translatable, TranslationKey } from '../language/types';
@@ -1,4 +1,4 @@
1
- import type { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from '../core/hooks/useForm';
1
+ import type { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from '../core/hooks/useForm/types';
2
2
  export declare function getFormProps<OuterFormProps extends BaseOuterFormProps<OuterFormSchema>, NestedFormProps extends BaseFormProps<NestedFormSchema>, OuterFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormId: keyof OuterFormSchema): NestedFormProps | null;
3
3
  /**
4
4
  * we want to preserve getFormProps' utility of digging into the data structure without turning
@@ -1,4 +1,3 @@
1
- export declare const suppressLogs: () => void;
2
1
  export interface LoggerMethods {
3
2
  debug: (...args: any[]) => void;
4
3
  info: (...args: any[]) => void;
@@ -3,6 +3,3 @@ export type PerState<T> = Partial<Record<StateCodeUS, T>>;
3
3
  export type PerStateWithDefault<T> = PerState<T> & {
4
4
  default: T;
5
5
  };
6
- export type PerStateAndOtherDiscriminant<T, Discriminant extends string, IncludeDefault extends boolean = true> = Partial<Record<StateCodeUS, (IncludeDefault extends true ? {
7
- default: T;
8
- } : object) & Partial<Record<Discriminant, T>>>>;
@@ -8,6 +8,4 @@ export declare class ValidationResult {
8
8
  hasError(): boolean;
9
9
  /** Returns the first validation result that returned an error */
10
10
  getError(): ValidationRuleResult;
11
- /** Returns all validation results that returned an error */
12
- getAllErrors(): ValidationRuleResult[];
13
11
  }