@adyen/kyc-components 3.30.2 → 3.31.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 (146) hide show
  1. package/dist/es/adyen-kyc-components.es.js +2933 -4887
  2. package/dist/es/{bg-BG-C4nC7lgg.js → bg-BG-Cg7uHZ7u.js} +1 -3
  3. package/dist/es/{cs-CZ-BxobhOz0.js → cs-CZ-MP5JPvEI.js} +1 -3
  4. package/dist/es/{da-DK-CJQ_v5bw.js → da-DK-Bf4-HdQJ.js} +1 -3
  5. package/dist/es/{de-DE-DyXEvGpl.js → de-DE-CpV6Dp0r.js} +1 -3
  6. package/dist/es/{el-GR-B87xOyEW.js → el-GR-DzwQKvWE.js} +1 -3
  7. package/dist/es/{es-ES-CQ080JE6.js → es-ES-E5qWUSQV.js} +1 -3
  8. package/dist/es/{et-EE-C59Hbpp8.js → et-EE-DRZrZKKJ.js} +1 -3
  9. package/dist/es/{fi-FI-CQ7Kqosi.js → fi-FI-Bk1rCYU6.js} +1 -3
  10. package/dist/es/{fr-FR-Ds-rVWJg.js → fr-FR-tlByDhb7.js} +1 -3
  11. package/dist/es/{hr-HR-qZTRHb6-.js → hr-HR-CZUCz_Lu.js} +1 -3
  12. package/dist/es/{hu-HU-u0MXZonO.js → hu-HU-CmEicftd.js} +1 -3
  13. package/dist/es/{it-IT-Db2fDOwj.js → it-IT-BNGHjXBu.js} +1 -3
  14. package/dist/es/{lt-LT-YNRlk3E4.js → lt-LT-BDv4TY99.js} +1 -3
  15. package/dist/es/{lv-LV-Bs6ze43-.js → lv-LV-HfHaTFsC.js} +1 -3
  16. package/dist/es/{nl-NL-DaPcO0Ip.js → nl-NL-CSyNOXAT.js} +1 -3
  17. package/dist/es/{no-NO-COWxcdtp.js → no-NO-BzBtvG7T.js} +1 -3
  18. package/dist/es/{pl-PL-B9x4FJoF.js → pl-PL-CwUuiZyG.js} +1 -3
  19. package/dist/es/{pt-PT-CzVzrodv.js → pt-PT-CY_ZCE9N.js} +1 -3
  20. package/dist/es/{ro-RO-DdA0NkvN.js → ro-RO-C-OpimQU.js} +1 -3
  21. package/dist/es/{sk-SK-DZTRus9V.js → sk-SK-Vi54HLZU.js} +1 -3
  22. package/dist/es/{sl-SI-6y2JusJ9.js → sl-SI-2FDuP5IV.js} +1 -3
  23. package/dist/es/{sv-SE-NsI7llcr.js → sv-SE-lw5yiImq.js} +1 -3
  24. package/dist/style.css +568 -233
  25. package/dist/types/components/BaseElement.d.ts +1 -1
  26. package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
  27. package/dist/types/components/BusinessDetails/types.d.ts +0 -2
  28. package/dist/types/components/Company/component/CompanyComponent.d.ts +2 -3
  29. package/dist/types/components/Company/rules.d.ts +1 -2
  30. package/dist/types/components/CompanyStructure/component/CompanyStructureComponent.d.ts +3 -3
  31. package/dist/types/components/CompanyStructure/types.d.ts +1 -4
  32. package/dist/types/components/CompanyType/types.d.ts +1 -2
  33. package/dist/types/components/Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent.d.ts +1 -1
  34. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
  35. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  36. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
  37. package/dist/types/components/Dropins/PciDropin/types.d.ts +3 -0
  38. package/dist/types/components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts +8 -0
  39. package/dist/types/components/EmbeddedDropins/ManagePCIComponent/ManagePCIComponent.d.ts +6 -0
  40. package/dist/types/components/EmbeddedDropins/ManageTermsOfServiceComponent/ManageTermsOfServiceComponent.d.ts +6 -0
  41. package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +9 -0
  42. package/dist/types/components/{ContractingStatus/ContractingStatus.d.ts → PCIStatus/PCIStatus.d.ts} +2 -2
  43. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +8 -4
  44. package/dist/types/components/PersonalDetails/types.d.ts +1 -2
  45. package/dist/types/components/RegistrationAddress/types.d.ts +0 -3
  46. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  47. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  48. package/dist/types/components/TaskList/types.d.ts +0 -2
  49. package/dist/types/components/TermsOfServiceStatus/TermsOfServiceStatus.d.ts +12 -0
  50. package/dist/types/components/index.d.ts +9 -7
  51. package/dist/types/components/internal/AccountHolder/types.d.ts +0 -10
  52. package/dist/types/components/internal/Address/types.d.ts +0 -1
  53. package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +2 -0
  54. package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  55. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +3 -1
  56. package/dist/types/core/Context/ExperimentContext/types.d.ts +2 -3
  57. package/dist/types/core/Context/StateContext/types.d.ts +2 -3
  58. package/dist/types/core/Services/componentApi/clear-company-data.d.ts +2 -0
  59. package/dist/types/core/Services/componentApi/company-deep-search.d.ts +3 -0
  60. package/dist/types/core/Services/componentApi/company-index-search.d.ts +3 -0
  61. package/dist/types/core/Services/componentApi/get-company-dataset.d.ts +3 -0
  62. package/dist/types/core/Services/componentApi/index.d.ts +6 -0
  63. package/dist/types/core/Services/componentApi/refresh-company-dataset.d.ts +3 -0
  64. package/dist/types/core/Services/componentApi/verify-tin.d.ts +3 -0
  65. package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +3 -0
  66. package/dist/types/core/hooks/useComponentApi.d.ts +6 -0
  67. package/dist/types/core/hooks/useForm/reducer.d.ts +1 -1
  68. package/dist/types/core/models/api/document.d.ts +2 -1
  69. package/dist/types/core/models/company.d.ts +0 -1
  70. package/dist/types/core/models/form.d.ts +0 -1
  71. package/dist/types/core/process-field-configurations.d.ts +0 -2
  72. package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -2
  73. package/dist/types/utils/mapping/businessDetails/index.d.ts +1 -0
  74. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
  75. package/dist/types/utils/mapping/componentApiMapping.d.ts +0 -31
  76. package/dist/types/utils/mapping/mapping.d.ts +1 -2
  77. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +4 -0
  78. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +1 -0
  79. package/package.json +1 -1
  80. package/dist/types/components/AdditionalInformation/index.d.ts +0 -1
  81. package/dist/types/components/BasicInformation/index.d.ts +0 -1
  82. package/dist/types/components/BusinessDetails/index.d.ts +0 -1
  83. package/dist/types/components/BusinessSelection/index.d.ts +0 -1
  84. package/dist/types/components/Company/index.d.ts +0 -1
  85. package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +0 -8
  86. package/dist/types/components/CompanyBasics/index.d.ts +0 -1
  87. package/dist/types/components/CompanyBasics/types.d.ts +0 -27
  88. package/dist/types/components/CompanyLookup/CompanyLookupResultsHeader.d.ts +0 -2
  89. package/dist/types/components/CompanyLookup/CompanyLookupResultsList.d.ts +0 -2
  90. package/dist/types/components/CompanyLookup/LookupResult.d.ts +0 -3
  91. package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +0 -5
  92. package/dist/types/components/CompanyLookup/index.d.ts +0 -1
  93. package/dist/types/components/CompanyLookup/types.d.ts +0 -66
  94. package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +0 -8
  95. package/dist/types/components/CompanyOtherDetails/index.d.ts +0 -1
  96. package/dist/types/components/CompanyOtherDetails/types.d.ts +0 -20
  97. package/dist/types/components/CompanyRegistrationDetails/index.d.ts +0 -1
  98. package/dist/types/components/CompanySearch/component/CompanySearchComponent.d.ts +0 -2
  99. package/dist/types/components/CompanySearch/forms.d.ts +0 -40
  100. package/dist/types/components/CompanySearch/index.d.ts +0 -1
  101. package/dist/types/components/CompanySearch/types.d.ts +0 -34
  102. package/dist/types/components/CompanyStructure/index.d.ts +0 -1
  103. package/dist/types/components/Dropins/BusinessDetailsDropin/index.d.ts +0 -1
  104. package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +0 -2
  105. package/dist/types/components/Dropins/CompanySearchDropin/index.d.ts +0 -1
  106. package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +0 -24
  107. package/dist/types/components/Dropins/CompanySearchDropin/utils.d.ts +0 -15
  108. package/dist/types/components/Dropins/FormNavigation/index.d.ts +0 -1
  109. package/dist/types/components/EmbeddedDropins/CreateContractingComponent/CreateContractingComponent.d.ts +0 -8
  110. package/dist/types/components/EmbeddedDropins/ManageContractingComponent/ManageContractingComponent.d.ts +0 -6
  111. package/dist/types/components/RegistrationAddress/index.d.ts +0 -1
  112. package/dist/types/components/RegistrationDocument/index.d.ts +0 -1
  113. package/dist/types/components/TaxDocument/index.d.ts +0 -1
  114. package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +0 -3
  115. package/dist/types/components/internal/AccountHolder/index.d.ts +0 -1
  116. package/dist/types/components/internal/AccountHolder/validate.d.ts +0 -3
  117. package/dist/types/components/internal/Alert/index.d.ts +0 -1
  118. package/dist/types/components/internal/BusinessNameField/index.d.ts +0 -1
  119. package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +0 -1
  120. package/dist/types/components/internal/CountryField/index.d.ts +0 -1
  121. package/dist/types/components/internal/CountryOfGoverningLawField/index.d.ts +0 -1
  122. package/dist/types/components/internal/DBANameField/index.d.ts +0 -1
  123. package/dist/types/components/internal/DateOfIncorporationField/index.d.ts +0 -1
  124. package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +0 -1
  125. package/dist/types/components/internal/LegalCompanyNameField/index.d.ts +0 -1
  126. package/dist/types/components/internal/LegalFormField/index.d.ts +0 -1
  127. package/dist/types/components/internal/NaceCodeField/index.d.ts +0 -1
  128. package/dist/types/components/internal/StateField/index.d.ts +0 -1
  129. package/dist/types/components/internal/StockExchangeMICField/index.d.ts +0 -1
  130. package/dist/types/components/internal/StockISINField/index.d.ts +0 -1
  131. package/dist/types/components/internal/StockTickerSymbol/index.d.ts +0 -1
  132. package/dist/types/components/internal/TaxId/index.d.ts +0 -1
  133. package/dist/types/components/internal/TaxInformationField/index.d.ts +0 -1
  134. package/dist/types/components/internal/TradingNameField/index.d.ts +0 -1
  135. package/dist/types/core/hooks/useBusinessData/index.d.ts +0 -1
  136. package/dist/types/core/hooks/useCompanySearch/index.d.ts +0 -1
  137. package/dist/types/core/hooks/useCompanySearch/types.d.ts +0 -46
  138. package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +0 -5
  139. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +0 -36
  140. package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +0 -1
  141. package/dist/types/core/hooks/useStaticValidator/index.d.ts +0 -1
  142. package/dist/types/utils/mapping/companySearch/index.d.ts +0 -4
  143. package/dist/types/utils/mapping/companySearch/mapCompanyDataResponseToFormSchema.d.ts +0 -3
  144. package/dist/types/utils/mapping/companySearch/mapCompanySearchSchemaToLegalEntity.d.ts +0 -5
  145. package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +0 -5
  146. /package/dist/types/utils/mapping/{companySearch → businessDetails}/mapOrganizationTypeToCompanyType.d.ts +0 -0
@@ -34,7 +34,7 @@ export declare abstract class BaseElement<P extends BaseElementProps> {
34
34
  /**
35
35
  * Unmounts an element and mounts it again on the same node
36
36
  */
37
- remount(component?: JSX.Element): this;
37
+ remount(): this;
38
38
  /**
39
39
  * Unmounts a payment element from the DOM
40
40
  */
@@ -15,7 +15,7 @@ export declare const getForms: (country: CountryCode) => {
15
15
  readonly formName: "companyStructureFormName";
16
16
  readonly formHeading: "companyStructureFormName";
17
17
  readonly formDescription: "companyStructureFormDescription";
18
- readonly fields: (keyof import("../CompanyStructure/types").CompanyStructureSchema)[];
18
+ readonly fields: "entityType"[];
19
19
  };
20
20
  readonly additionalInformation: {
21
21
  readonly formId: "additionalInformation";
@@ -2,7 +2,6 @@ import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { HookStatus } from '../../core/hooks/types';
3
3
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
4
4
  import type { CompanyDatasetResponse, CompanySearchRequest, CompanySearchResult } from '../../core/models/api/company-search';
5
- import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
6
5
  import type { CountryCode } from '../../core/models/country-code';
7
6
  import type { FormModel } from '../../core/models/form';
8
7
  import type { BaseTrackingPayload } from '../../core/utils';
@@ -43,5 +42,4 @@ export interface BusinessDetailsProps extends BaseOuterFormProps<BusinessDetails
43
42
  verifyBusinessData: (data: CompanyDatasetResponse, tin: string) => Promise<boolean | undefined>;
44
43
  proceedToManualDataEntry: () => Promise<void>;
45
44
  onSubmit?: (company: BusinessDetailsSchema) => void;
46
- onTypeSwitch?: (legalEntityType: LegalEntityType) => void;
47
45
  }
@@ -1,5 +1,4 @@
1
1
  import './CompanyComponent.scss';
2
- import type { CompanyTypeSchema } from '../../CompanyType/types';
3
2
  import type { CompanyProps } from '../types';
4
3
  export declare const companyForms: {
5
4
  readonly companyNameAndCountry: {
@@ -10,12 +9,12 @@ export declare const companyForms: {
10
9
  readonly companyType: {
11
10
  readonly formId: "companyType";
12
11
  readonly formName: "companyStructure";
13
- readonly fields: (keyof CompanyTypeSchema)[];
12
+ readonly fields: "entityType"[];
14
13
  };
15
14
  readonly companyRegistrationDetails: {
16
15
  readonly formId: "companyRegistrationDetails";
17
16
  readonly formName: "registrationDetails";
18
- readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
17
+ readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
19
18
  };
20
19
  readonly companyRegistrationAddress: {
21
20
  readonly formId: "companyRegistrationAddress";
@@ -1,7 +1,6 @@
1
1
  import type { CountryCode } from '../../core/models/country-code';
2
2
  import type { FormRules } from '../../core/models/form-rules';
3
3
  import type { BusinessDetailsSchema } from '../BusinessDetails/types';
4
- import type { CompanySearchSchema } from '../CompanySearch/types';
5
4
  import type { SolePropSchema } from '../SoleProp/types';
6
5
  import type { CompanySchema } from './types';
7
6
  export declare const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION: CountryCode[];
@@ -22,4 +21,4 @@ export declare const COUNTRIES_THAT_USES_UEN_OR_GST: CountryCode[];
22
21
  * @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
22
  */
24
23
  export declare const COUNTRIES_USING_COMPANY_SEARCH: readonly CountryCode[];
25
- export declare const rules: FormRules<CompanySchema | CompanySearchSchema | SolePropSchema | BusinessDetailsSchema>;
24
+ export declare const rules: FormRules<CompanySchema | SolePropSchema | BusinessDetailsSchema>;
@@ -1,6 +1,6 @@
1
1
  import './CompanyStructureComponent.scss';
2
- import type { CompanySearchSchema } from '../../CompanySearch/types';
2
+ import type { BusinessDetailsSchema } from '../../BusinessDetails/types';
3
3
  import type { CompanyStructureProps, CompanyStructureSchema } from '../types';
4
- export declare const COMPANY_STRUCTURE_FORM_ID: keyof CompanySearchSchema;
4
+ export declare const COMPANY_STRUCTURE_FORM_ID: keyof BusinessDetailsSchema;
5
5
  export declare const companyStructureFields: Array<keyof CompanyStructureSchema>;
6
- export declare function CompanyStructureComponent({ id, data, labels, heading, description, formVerificationErrors, fieldValidationErrors, requiredFields, country, verifiedBusiness, kompanyVerifiedData, showCompanyStructure, shouldValidate, ...props }: CompanyStructureProps): import("preact").JSX.Element;
6
+ export declare function CompanyStructureComponent({ data, labels, heading, description, formVerificationErrors, fieldValidationErrors, requiredFields, country, verifiedBusiness, showCompanyStructure, shouldValidate, }: CompanyStructureProps): import("preact").JSX.Element;
@@ -2,14 +2,11 @@ import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
3
  import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
4
4
  import type { CountryCode } from '../../core/models/country-code';
5
- import type { CompanySearchSchema } from '../CompanySearch/types';
6
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
7
- export interface CompanyStructureSchema extends AccountHolderSchema {
5
+ export interface CompanyStructureSchema {
8
6
  entityType?: CompanyTypesValue;
9
7
  }
10
8
  export interface CompanyStructureProps extends BaseInnerFormProps<CompanyStructureSchema> {
11
9
  country: CountryCode;
12
10
  verifiedBusiness?: CompanyDatasetResponse | undefined;
13
- kompanyVerifiedData?: CompanySearchSchema;
14
11
  showCompanyStructure?: boolean;
15
12
  }
@@ -1,8 +1,7 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
3
3
  import type { CountryCode } from '../../core/models/country-code';
4
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
5
- export interface CompanyTypeSchema extends AccountHolderSchema {
4
+ export interface CompanyTypeSchema {
6
5
  entityType?: CompanyTypesValue;
7
6
  }
8
7
  export interface CompanyTypeProps extends BaseInnerFormProps<CompanyTypeSchema> {
@@ -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, handleClearCompanyData, onTypeSwitch, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
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, handleClearCompanyData, }: BusinessDetailsDropinProps): import("preact").JSX.Element;
@@ -10,4 +10,4 @@ export declare const isDocumentsRequired: (forms: FormModelWithValidity[]) => bo
10
10
  export declare const removeConditionalForms: (forms: FormModelWithValidity[], isSkippingCompanyStructure: boolean) => FormModelWithValidity[];
11
11
  export declare const formatDataForSummary: (data: BusinessDetailsSchema, forms: FormModelWithValidity[], labels: OuterFormLabels<BusinessDetailsSchema>, i18n: Language) => {};
12
12
  export declare function submitDocuments({ data, legalEntity, forms, documentUtils, baseTrackingPayload, }: SubmitDocumentsProps): Promise<void>;
13
- export declare function submit({ data, legalEntityResponse, isTargetLegalEntityType, baseTrackingPayload, forms, problems, documentUtils, i18n, setLoadingStatus, setProblems, showToast, clearToasts, handleUpdateLegalEntity, onExternalSubmit, accountHolder, }: SubmitProps): Promise<void>;
13
+ export declare function submit({ data, legalEntityResponse, baseTrackingPayload, forms, problems, documentUtils, i18n, setLoadingStatus, setProblems, showToast, clearToasts, handleUpdateLegalEntity, onExternalSubmit, accountHolder, }: SubmitProps): Promise<void>;
@@ -1,2 +1,2 @@
1
1
  import type { CompanyDropinProps } from '../types';
2
- export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, trustedFields, }: CompanyDropinProps): import("preact").JSX.Element;
2
+ export declare function CompanyDropinComponent({ country: parentCountry, problems: propProblems, hideDropinLayout, taskName, capabilities, homeButtonLabel, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, onSubmit: onExternalSubmit, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, onChange, trustedFields, }: CompanyDropinProps): import("preact").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { PciDropinProps } from '../types';
2
- export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
2
+ export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, trackingConfig, asEmbedded, asModal, handleCloseClick, }: PciDropinProps): import("preact").JSX.Element;
@@ -10,4 +10,7 @@ export interface PciDropinProps extends DropinProps {
10
10
  pciTemplateResponse: PciTemplateResponse;
11
11
  handleHomeClick(): void;
12
12
  handleSign(legalEntityId: string, signedBy: SignedBy): Promise<void>;
13
+ handleCloseClick?(): void;
14
+ asEmbedded?: boolean;
15
+ asModal?: boolean;
13
16
  }
@@ -0,0 +1,8 @@
1
+ interface AcceptTermsOfServiceProps {
2
+ legalEntityId: string;
3
+ modalView?: boolean;
4
+ onClose?(): void;
5
+ onUnmount?(): void;
6
+ }
7
+ export declare function AcceptTermsOfServiceComponent({ legalEntityId, modalView, onClose, onUnmount, }: AcceptTermsOfServiceProps): import("preact").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
+ export interface ManageTermsOfServiceComponentProps {
3
+ legalEntityId: ExistingLegalEntity['id'];
4
+ onClick?(): void;
5
+ }
6
+ export declare function ManagePCIComponent({ legalEntityId, onClick }: ManageTermsOfServiceComponentProps): import("preact").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
+ export interface ManageTermsOfServiceComponentProps {
3
+ legalEntityId: ExistingLegalEntity['id'];
4
+ onClick?(): void;
5
+ }
6
+ export declare function ManageTermsOfServiceComponent({ legalEntityId, onClick, }: ManageTermsOfServiceComponentProps): import("preact").JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface SignPCIComponentProps {
2
+ legalEntityId: string;
3
+ modalView?: boolean;
4
+ onClose?(): void;
5
+ onSigned?(): void;
6
+ onUnmount?(): void;
7
+ }
8
+ export declare function SignPCIComponent({ legalEntityId, modalView, onClose, onSigned, onUnmount, }: SignPCIComponentProps): import("preact").JSX.Element;
9
+ export {};
@@ -1,4 +1,4 @@
1
- interface ContractingStatusProps {
1
+ interface PCIStatusProps {
2
2
  legalEntityId: string;
3
3
  onClick?: () => void;
4
4
  title: string;
@@ -8,5 +8,5 @@ interface ContractingStatusProps {
8
8
  * Wrapper around UI-only EmbeddedStatus that adds integration
9
9
  * with contracting-specific api calls. Polling not needed
10
10
  */
11
- export declare function ContractingStatus({ legalEntityId, onClick, title, subtitle, }: ContractingStatusProps): import("preact").JSX.Element;
11
+ export declare function PCIStatus({ legalEntityId, onClick, title, subtitle }: PCIStatusProps): import("preact").JSX.Element;
12
12
  export {};
@@ -1,9 +1,9 @@
1
1
  import '../PayoutDetails.scss';
2
- import type { FormList, FormModel } from '../../../core/models/form';
2
+ import type { FormList } from '../../../core/models/form';
3
3
  import type { BankDocumentSchema } from '../../BankDocument';
4
4
  import type { AccountVerificationSchema } from '../../BankVerification/types';
5
+ import type { PayoutAccountSchema } from '../../PayoutAccount/types';
5
6
  import type { PayoutVerificationMethodSchema } from '../../PayoutVerificationMethod/types';
6
- import { TaskTypes } from '../../TaskList/types';
7
7
  import type { PayoutDetailsProps } from '../types';
8
8
  export declare const payoutSteps: {
9
9
  readonly payoutVerificationMethod: {
@@ -11,7 +11,11 @@ export declare const payoutSteps: {
11
11
  readonly formName: "verificationMethod";
12
12
  readonly fields: (keyof PayoutVerificationMethodSchema)[];
13
13
  };
14
- readonly payoutAccountDetails: (tasktype: TaskTypes, isNewEntryFlowExperimentEnabled: boolean) => FormModel;
14
+ readonly payoutAccountDetails: {
15
+ readonly formId: "payoutAccountDetails";
16
+ readonly formName: "bankAccount";
17
+ readonly fields: (keyof PayoutAccountSchema)[];
18
+ };
15
19
  readonly payoutAccountDocuments: {
16
20
  readonly formId: "payoutAccountDocuments";
17
21
  readonly formName: "bankDocument";
@@ -25,5 +29,5 @@ export declare const payoutSteps: {
25
29
  readonly fields: (keyof AccountVerificationSchema)[];
26
30
  };
27
31
  };
28
- export declare const getAppropriatePayoutDetailsSteps: (currentTask: TaskTypes, isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean, isNewEntryFlowExperimentEnabled: boolean) => FormList;
32
+ export declare const getAppropriatePayoutDetailsSteps: (isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
29
33
  export declare function PayoutDetailsComponent(props: PayoutDetailsProps): import("preact").JSX.Element;
@@ -7,13 +7,12 @@ import type { TranslationKey } from '../../language/types';
7
7
  import type { ValidationRuleResults } from '../../utils/validation/types';
8
8
  import type { ContactDetailsSchema } from '../ContactDetails/types';
9
9
  import type { IdentityNumberSchema } from '../IdentityNumber/type';
10
- import type { AccountHolderSchema } from '../internal/AccountHolder/types';
11
10
  import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole';
12
11
  import type { IndividualIdNumberType } from '../internal/IdFieldTypeSelector/countryIdNumberTypes';
13
12
  import type { NameSchema } from '../internal/Name/types';
14
13
  import type { TaskTypes } from '../TaskList/types';
15
14
  import type { AdditionalIdentityInfoSchema } from './component/IdentityComponent/types';
16
- export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema, AccountHolderSchema {
15
+ export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema {
17
16
  birthDate?: string;
18
17
  residencyCountry?: CountryCode;
19
18
  nationality?: CountryCode;
@@ -1,5 +1,4 @@
1
1
  import type { BaseOuterFormProps } from '../../core/hooks/useForm';
2
- import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
3
2
  import type { CountryCode } from '../../core/models/country-code';
4
3
  import type { FormModel } from '../../core/models/form';
5
4
  import type { TranslationKey } from '../../language/types';
@@ -16,8 +15,6 @@ export interface RegistrationAddressProps extends BaseOuterFormProps<Registratio
16
15
  country?: CountryCode;
17
16
  handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
18
17
  handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
19
- verifiedBusiness?: CompanyDatasetResponse | undefined;
20
- kompanyAddress?: string;
21
18
  }
22
19
  export declare enum operationalAddressIsSameIds {
23
20
  OPERATIONAL_ADDRESS_IS_SAME = "OperationAddressAnswerYes",
@@ -8,7 +8,7 @@ export declare const solePropForms: {
8
8
  readonly solePropRegistrationDetails: {
9
9
  readonly formId: "solePropRegistrationDetails";
10
10
  readonly formName: "registrationDetails";
11
- readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
11
+ readonly fields: ("dateOfIncorporation" | "stockExchangeMIC" | "stockISIN" | "stockTickerSymbol" | keyof import("../../internal/VatNumberField").VatNumberFieldSchema | keyof import("../../internal/BusinessRegistrationNumberField/types").BusinessRegistrationNumberFieldSchema | keyof import("../../internal/TaxInformationField/types").TaxInformationFieldSchema | keyof import("../../internal/TradingNameField/types").TradingNameFieldSchema)[];
12
12
  };
13
13
  readonly solePropRegistrationAddress: {
14
14
  readonly formId: "solePropRegistrationAddress";
@@ -1,4 +1,4 @@
1
1
  import '../TaskListItem.scss';
2
2
  import type { TaskListItemProps } from '../types';
3
- declare const TaskListItem: ({ title, tagline, icon, status, statusLabel, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, showWarningAlert, warningMessage, removeEntity, isRemoveDisabled, handleIsRemoveDisabled, testId, }: TaskListItemProps) => import("preact").JSX.Element;
3
+ declare const TaskListItem: ({ title, icon, status, statusLabel, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, showWarningAlert, warningMessage, removeEntity, isRemoveDisabled, handleIsRemoveDisabled, testId, }: TaskListItemProps) => import("preact").JSX.Element;
4
4
  export default TaskListItem;
@@ -15,7 +15,6 @@ export declare enum TaskTypes {
15
15
  REVIEW = "REVIEW",
16
16
  INDIVIDUAL = "INDIVIDUAL",
17
17
  COMPANY = "COMPANY",
18
- COMPANY_SEARCH = "COMPANY_SEARCH",
19
18
  BUSINESS_DETAILS = "BUSINESS_DETAILS",
20
19
  PAYOUT = "PAYOUT",
21
20
  PAYIN = "PAYIN",
@@ -83,7 +82,6 @@ export interface TaskListItemProps extends TaskStatusProps {
83
82
  icon: IconName;
84
83
  title: string;
85
84
  statusLabel?: string;
86
- tagline?: string;
87
85
  disabled?: boolean;
88
86
  problems?: EntityProblems;
89
87
  actions?: ActionsMenuOption[];
@@ -0,0 +1,12 @@
1
+ interface TermsOfServiceStatusProps {
2
+ legalEntityId: string;
3
+ onClick?: () => void;
4
+ title: string;
5
+ subtitle?: string;
6
+ }
7
+ /**
8
+ * Wrapper around UI-only EmbeddedStatus that adds integration
9
+ * with contracting-specific api calls. Polling not needed
10
+ */
11
+ export declare function TermsOfServiceStatus({ legalEntityId, onClick, title, subtitle, }: TermsOfServiceStatusProps): import("preact").JSX.Element;
12
+ export {};
@@ -2,22 +2,23 @@ import type { CoreProviderProps } from '../core/Context/CoreProvider';
2
2
  import type { ExperimentsProps } from '../core/Context/ExperimentContext/types';
3
3
  import type { SettingsProps } from '../core/Context/SettingsContext/types';
4
4
  import type { UserEventCallback } from '../core/user-events';
5
- import { BusinessDetailsDropinComponent } from './Dropins/BusinessDetailsDropin';
5
+ import { BusinessDetailsDropinComponent } from './Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent';
6
6
  import { CompanyDropinComponent } from './Dropins/CompanyDropin';
7
- import { CompanySearchDropinComponent } from './Dropins/CompanySearchDropin';
8
7
  import { DropinComposerComponent } from './Dropins/DropinComposer';
9
8
  import { IndividualDropinComponent } from './Dropins/IndividualDropin';
10
9
  import { PayoutDetailsDropinComponent } from './Dropins/PayoutDetailsDropin';
11
10
  import { PciDropinComponent } from './Dropins/PciDropin';
12
11
  import { SolePropDropinComponent } from './Dropins/SolePropDropin';
13
12
  import { TrustDropinComponent } from './Dropins/TrustDropin';
14
- import { CreateContractingComponent } from './EmbeddedDropins/CreateContractingComponent/CreateContractingComponent';
13
+ import { AcceptTermsOfServiceComponent } from './EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent';
15
14
  import { CreateIndividualComponent } from './EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent';
16
15
  import { CreateTransferInstrumentComponent } from './EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent';
17
- import { ManageContractingComponent } from './EmbeddedDropins/ManageContractingComponent/ManageContractingComponent';
18
16
  import { ManageIndividualComponent } from './EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent';
17
+ import { ManagePCIComponent } from './EmbeddedDropins/ManagePCIComponent/ManagePCIComponent';
18
+ import { ManageTermsOfServiceComponent } from './EmbeddedDropins/ManageTermsOfServiceComponent/ManageTermsOfServiceComponent';
19
19
  import { ManageTransferInstrumentComponent } from './EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent';
20
20
  import { OnboardingDropinComponent } from './EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent';
21
+ import { SignPCIComponent } from './EmbeddedDropins/SignPCIComponent/SignPCIComponent';
21
22
  import { UpdateLegalEntityForHighExposure } from './EmbeddedDropins/UpdateLegalEntityForHighExposure/UpdateLegalEntityForHighExposure';
22
23
  import { ViewVerificationStatusComponent } from './EmbeddedDropins/ViewVerificationStatus';
23
24
  import type EventEmitter from './EventEmitter';
@@ -28,7 +29,6 @@ export declare const componentsMap: {
28
29
  readonly individualDropin: typeof IndividualDropinComponent;
29
30
  readonly businessDetailsDropin: typeof BusinessDetailsDropinComponent;
30
31
  readonly companyDropin: typeof CompanyDropinComponent;
31
- readonly companySearchDropin: typeof CompanySearchDropinComponent;
32
32
  readonly taskList: typeof DropinComposerComponent;
33
33
  readonly payoutAccount: typeof PayoutDetailsDropinComponent;
34
34
  readonly trustDropin: typeof TrustDropinComponent;
@@ -39,8 +39,10 @@ export declare const componentsMap: {
39
39
  readonly manageTransferInstrumentComponent: typeof ManageTransferInstrumentComponent;
40
40
  readonly onboardingDropinComponent: typeof OnboardingDropinComponent;
41
41
  readonly manageIndividualComponent: typeof ManageIndividualComponent;
42
- readonly createContractingComponent: typeof CreateContractingComponent;
43
- readonly manageContractingComponent: typeof ManageContractingComponent;
42
+ readonly acceptTermsOfServiceComponent: typeof AcceptTermsOfServiceComponent;
43
+ readonly manageTermsOfServiceComponent: typeof ManageTermsOfServiceComponent;
44
+ readonly managePCIComponent: typeof ManagePCIComponent;
45
+ readonly signPCIComponent: typeof SignPCIComponent;
44
46
  readonly viewVerificationStatusComponent: typeof ViewVerificationStatusComponent;
45
47
  readonly updateLegalEntityForHighExposureComponent: typeof UpdateLegalEntityForHighExposure;
46
48
  };
@@ -1,12 +1,2 @@
1
- import type { BaseInnerFormProps } from '../../../core/hooks/useForm';
2
- import type { LegalEntityType } from '../../../core/models/api/legal-entity-type';
3
- import type { CountryCode } from '../../../core/models/country-code';
4
1
  export type LegalArrangementOption = 'aTrust' | 'partnershipIncorporated' | 'partnershipUnincorporated' | 'associationIncorporated';
5
2
  export type AccountHolderOption = 'myName' | 'mySoleProprietorName' | 'theCompanyIWorkFor' | 'aTrust';
6
- export interface AccountHolderSchema {
7
- accountHolder?: AccountHolderOption;
8
- }
9
- export interface AccountHolderProps extends BaseInnerFormProps<AccountHolderSchema> {
10
- legalEntityType: LegalEntityType;
11
- country: CountryCode;
12
- }
@@ -25,7 +25,6 @@ export interface AddressProps extends BaseInnerFormProps<AddressSchema> {
25
25
  handleFindAddress: DropinAPIHandlers['handleFindAddress'];
26
26
  legalEntityId?: string;
27
27
  verifiedBusiness?: CompanyDatasetResponse | undefined;
28
- kompanyAddress?: string;
29
28
  verifiedAddress?: AddressSchema;
30
29
  }
31
30
  export interface FieldContainerProps {
@@ -1,3 +1,4 @@
1
+ import type { ExperimentName } from '../../../core/Context/ExperimentContext/types';
1
2
  import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
3
  import type { FieldMetadata } from '../../../core/models/country-config';
3
4
  import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
@@ -8,6 +9,7 @@ interface FieldConfigParams {
8
9
  companyType: CompanyTypesValue | 'trust' | undefined;
9
10
  registrationNumberType: CompanyRegistrationNumberType | undefined;
10
11
  state?: StateCodeUS | undefined;
12
+ isExperimentEnabled?: (experiment: ExperimentName) => boolean;
11
13
  }
12
14
  export declare const defaultFieldMetadata: FieldMetadata<BusinessRegistrationNumberSchema, 'registrationNumber'>;
13
15
  export declare const defaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberSchema, 'registrationNumber', FieldConfigParams>;
@@ -1,3 +1,3 @@
1
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, shouldValidate, optional, 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, helperText, }: BusinessRegistrationNumberFieldProps): import("preact").JSX.Element;
@@ -23,5 +23,7 @@ export interface MaskedInputTextProps extends MaskSettings {
23
23
  input?: string[];
24
24
  };
25
25
  acceptObscuredValue?: boolean;
26
+ helper?: string | JSX.Element;
27
+ helperPosition?: 'above' | 'below';
26
28
  }
27
- export declare const MaskedInputText: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, readonly, disabled, optional, formatGuidance, classNameModifiers, acceptObscuredValue, }: MaskedInputTextProps) => JSX.Element;
29
+ export declare const MaskedInputText: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, readonly, disabled, optional, formatGuidance, classNameModifiers, acceptObscuredValue, helper, helperPosition, }: MaskedInputTextProps) => JSX.Element;
@@ -4,10 +4,8 @@ import type { ComponentChildren } from 'preact';
4
4
  * This list is defined in the BE.
5
5
  */
6
6
  export declare enum ExperimentNames {
7
- EnableCompanySearchFlow = "EnableCompanySearchFlow",
8
7
  EnableNewBusinessDetailsFlow = "EnableNewBusinessDetailsFlow",
9
8
  EnableNewAddressComponent = "EnableNewAddressComponent",
10
- EnableNewEntryFlow = "EnableNewEntryFlow",
11
9
  AllowOrganizationSettlorWithExemptionReason = "AllowOrganizationSettlorWithExemptionReason",
12
10
  AllowMoreRolesForMainRootTrustee = "AllowMoreRolesForMainRootTrustee",
13
11
  ShowUnsupportedEntityType = "ShowUnsupportedEntityType",
@@ -21,7 +19,8 @@ export declare enum ExperimentNames {
21
19
  PreserveMismatchedInitialValues = "PreserveMismatchedInitialValues",
22
20
  StrictNameAndAddressValidationV4 = "StrictNameAndAddressValidationV4",
23
21
  EnableIdentificationNationalityCrossBorderAssociateCheck = "EnableIdentificationNationalityCrossBorderAssociateCheck",
24
- EnableAUGovernmentalOrganizationSkipRegistrationNumber = "EnableAUGovernmentalOrganizationSkipRegistrationNumber"
22
+ EnableAUGovernmentalOrganizationSkipRegistrationNumber = "EnableAUGovernmentalOrganizationSkipRegistrationNumber",
23
+ EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation = "EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation"
25
24
  }
26
25
  export type ExperimentName = `${ExperimentNames}`;
27
26
  export type Experiments = {
@@ -1,6 +1,5 @@
1
1
  import type { BusinessDetailsSchema } from '../../../components/BusinessDetails/types';
2
2
  import type { CompanySchema } from '../../../components/Company/types';
3
- import type { CompanySearchSchema } from '../../../components/CompanySearch/types';
4
3
  import type { HighExposureSchema } from '../../../components/Dropins/HighExposureDropin/types';
5
4
  import type { TrustMemberSchema } from '../../../components/Dropins/RoleAndTypeDropin/types';
6
5
  import type { IndividualSchema } from '../../../components/Individual/types';
@@ -49,8 +48,8 @@ export type StateModel<TLDS extends TopLevelDataSchema = TopLevelDataSchema> = {
49
48
  prevState?: State<TLDS>;
50
49
  };
51
50
  };
52
- export type TopLevelDataSchema = IndividualSchema | BusinessDetailsSchema | CompanySchema | CompanySearchSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema;
53
- export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof CompanySchema | keyof CompanySearchSchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema | keyof SolePropSchema;
51
+ export type TopLevelDataSchema = IndividualSchema | BusinessDetailsSchema | CompanySchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | SolePropSchema | HighExposureSchema;
52
+ export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof CompanySchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema | keyof SolePropSchema;
54
53
  export interface State<TLDS extends TopLevelDataSchema> {
55
54
  data: TLDS;
56
55
  allData: TLDS;
@@ -0,0 +1,2 @@
1
+ import type { ComponentApiRequestContext } from '../types';
2
+ export declare const clearCompanyData: (context: ComponentApiRequestContext) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import type { CompanySearchRequest, CompanySearchResponse } from '../../models/api/company-search';
2
+ import type { ComponentApiRequestContext } from '../types';
3
+ export declare const companyDeepSearch: (context: ComponentApiRequestContext, data: CompanySearchRequest) => Promise<CompanySearchResponse>;
@@ -0,0 +1,3 @@
1
+ import type { CompanySearchRequest, CompanySearchResponse } from '../../models/api/company-search';
2
+ import type { ComponentApiRequestContext } from '../types';
3
+ export declare const companyIndexSearch: (context: ComponentApiRequestContext, data: CompanySearchRequest) => Promise<CompanySearchResponse>;
@@ -0,0 +1,3 @@
1
+ import type { CompanyDatasetRequest, CompanyDatasetResponse } from '../../models/api/company-search';
2
+ import type { ComponentApiRequestContext } from '../types';
3
+ export declare const getCompanyDataset: (context: ComponentApiRequestContext, data: CompanyDatasetRequest) => Promise<CompanyDatasetResponse>;
@@ -1,13 +1,19 @@
1
+ export * from './clear-company-data';
2
+ export * from './company-deep-search';
3
+ export * from './company-index-search';
1
4
  export * from './create-document';
2
5
  export * from './create-legal-entity';
3
6
  export * from './create-transferInstrument';
4
7
  export * from './get-bankVerification-vendor';
8
+ export * from './get-company-dataset';
5
9
  export * from './get-document';
6
10
  export * from './get-legal-entity';
7
11
  export * from './get-scenarios';
8
12
  export * from './get-tasks';
9
13
  export * from './get-transfer-instrument';
10
14
  export * from './get-transfer-instruments';
15
+ export * from './refresh-company-dataset';
11
16
  export * from './update-document';
12
17
  export * from './update-legal-entity';
13
18
  export * from './update-transferInstrument';
19
+ export * from './verify-tin';
@@ -0,0 +1,3 @@
1
+ import type { CompanyDatasetRequest, CompanyDatasetResponse } from '../../models/api/company-search';
2
+ import type { ComponentApiRequestContext } from '../types';
3
+ export declare const refreshCompanyDataset: (context: ComponentApiRequestContext, data: CompanyDatasetRequest) => Promise<CompanyDatasetResponse>;
@@ -0,0 +1,3 @@
1
+ import type { TinVerificationRequest, TinVerificationResponse } from '../../models/api/company-search';
2
+ import type { ComponentApiRequestContext } from '../types';
3
+ export declare const verifyTin: (context: ComponentApiRequestContext, data: TinVerificationRequest) => Promise<TinVerificationResponse>;
@@ -1,2 +1,5 @@
1
1
  import type { UseBusinessData, UseBusinessDataOptions } from './types';
2
+ export declare const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 157766400000;
3
+ export declare const MED_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 94694400000;
4
+ export declare const HIGH_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 31536000000;
2
5
  export declare function useBusinessData({ handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, handleClearCompanyData, }: UseBusinessDataOptions): UseBusinessData;
@@ -37,6 +37,12 @@ export type ComponentApi = {
37
37
  downloadUnacceptedServiceAgreement: Required<DropinAPIHandlers>['handleDownloadUnacceptedTermsOfServiceDocument'];
38
38
  confirmDataReview: Required<DropinAPIHandlers>['handleReviewConfirm'];
39
39
  getProviderStatus: (request: ProviderStatusRequest) => Promise<ProviderStatusResponse>;
40
+ companyIndexSearch: Required<DropinAPIHandlers>['handleCompanyIndexSearch'];
41
+ companyDeepSearch: Required<DropinAPIHandlers>['handleCompanyDeepSearch'];
42
+ getCompanyDataset: Required<DropinAPIHandlers>['handleGetCompanyDataset'];
43
+ refreshCompanyDataset: Required<DropinAPIHandlers>['handleRefreshCompanyDataset'];
44
+ clearCompanyData: Required<DropinAPIHandlers>['handleClearCompanyData'];
45
+ verifyTin: Required<DropinAPIHandlers>['handleVerifyTin'];
40
46
  };
41
47
  export declare const COMPONENTS_API_VERSION = "v1";
42
48
  /**
@@ -1,7 +1,7 @@
1
1
  import type { Reducer } from 'preact/hooks';
2
2
  import type { FormatRules, ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
3
3
  import type { TriggerAsyncValidation } from '../useAsyncValidator';
4
- import type { TriggerStaticValidation } from '../useStaticValidator';
4
+ import type { TriggerStaticValidation } from '../useStaticValidator/useStaticValidator';
5
5
  import type { FieldValue, FormState } from './types';
6
6
  export interface InitOptions<FormSchema> {
7
7
  schema: (keyof FormSchema)[];
@@ -32,5 +32,6 @@ export declare enum DocumentType {
32
32
  NATIONAL_IDENTITY_CARD = "national_identity_card",
33
33
  RESIDENCE_PERMIT = "residence_permit",
34
34
  PROOF_OF_ORGANIZATION_TAX_INFO = "proofOfOrganizationTaxInfo",
35
- PROOF_OF_RELATIONSHIP = "proofOfRelationship"
35
+ PROOF_OF_RELATIONSHIP = "proofOfRelationship",
36
+ PROOF_OF_DIRECTOR = "proofOfDirector"
36
37
  }
@@ -21,7 +21,6 @@ export declare const taxInformationBase: {
21
21
  };
22
22
  export declare const companyTypes: readonly CompanyTypeModel[];
23
23
  export declare const fieldsPerScenario: ScenarioFields<typeof companyBase>;
24
- export declare const companySearchFieldsPerScenario: ScenarioFields<typeof companySearchBase>;
25
24
  export declare const businessDetailsFieldsPerScenario: ScenarioFields<typeof businessDetailsBase>;
26
25
  export declare const countryConfig: CountryConfig;
27
26
  export {};
@@ -9,7 +9,6 @@ export interface FormModel {
9
9
  hideActionBar?: boolean;
10
10
  verifyForm?(formId?: string): Promise<boolean>;
11
11
  triggerValidation?(): void;
12
- customNavigationHandler?(): void;
13
12
  }
14
13
  export interface FormModelWithValidity extends FormModel {
15
14
  isValid: boolean;
@@ -1,6 +1,5 @@
1
1
  import type { BusinessDetailsSchema } from '../components/BusinessDetails/types';
2
2
  import type { CompanySchema } from '../components/Company/types';
3
- import type { CompanySearchSchema } from '../components/CompanySearch/types';
4
3
  import type { HighExposureSchema } from '../components/Dropins/HighExposureDropin/types';
5
4
  import type { IndividualSchema } from '../components/Individual/types';
6
5
  import type { PayoutAccountSchema } from '../components/PayoutAccount/types';
@@ -19,7 +18,6 @@ import type { FormList } from './models/form';
19
18
  export declare const parseIndividualScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<IndividualSchema>;
20
19
  export declare function parseBusinessDetailsScenarios(scenario: Scenario[] | undefined, country: CountryCode): FieldConfigurations<BusinessDetailsSchema>;
21
20
  export declare function parseCompanyScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<CompanySchema>;
22
- export declare function parseCompanySearchScenarios(scenario: Scenario[] | undefined, country: CountryCode): FieldConfigurations<CompanySearchSchema>;
23
21
  export declare function parseTrustScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<TrustSchema>;
24
22
  export declare const parseHighExposureScenarios: (scenario: Scenario[] | undefined) => FieldConfigurations<HighExposureSchema>;
25
23
  export declare function parseSolePropScenarios(scenario: Scenario[], country: CountryCode): FieldConfigurations<SolePropSchema>;