@adyen/kyc-components 2.56.2 → 2.57.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 (161) hide show
  1. package/dist/es/adyen-kyc-components.es.js +2346 -4354
  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/instant-verification-method-NGPLGC6g.js +50 -0
  14. package/dist/es/{it-IT-Db2fDOwj.js → it-IT-BNGHjXBu.js} +1 -3
  15. package/dist/es/{lt-LT-YNRlk3E4.js → lt-LT-BDv4TY99.js} +1 -3
  16. package/dist/es/{lv-LV-Bs6ze43-.js → lv-LV-HfHaTFsC.js} +1 -3
  17. package/dist/es/{nl-NL-DaPcO0Ip.js → nl-NL-CSyNOXAT.js} +1 -3
  18. package/dist/es/{no-NO-COWxcdtp.js → no-NO-BzBtvG7T.js} +1 -3
  19. package/dist/es/{pl-PL-B9x4FJoF.js → pl-PL-CwUuiZyG.js} +1 -3
  20. package/dist/es/{pt-PT-CzVzrodv.js → pt-PT-CY_ZCE9N.js} +1 -3
  21. package/dist/es/{ro-RO-DdA0NkvN.js → ro-RO-C-OpimQU.js} +1 -3
  22. package/dist/es/{sk-SK-DZTRus9V.js → sk-SK-Vi54HLZU.js} +1 -3
  23. package/dist/es/{sl-SI-6y2JusJ9.js → sl-SI-2FDuP5IV.js} +1 -3
  24. package/dist/es/{sv-SE-NsI7llcr.js → sv-SE-lw5yiImq.js} +1 -3
  25. package/dist/es/tink-logo-WImtH5CL.js +8 -0
  26. package/dist/style.css +884 -493
  27. package/dist/types/components/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
  28. package/dist/types/components/AdditionalInformation/utils.d.ts +9 -0
  29. package/dist/types/components/BaseElement.d.ts +1 -1
  30. package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
  31. package/dist/types/components/BusinessDetails/types.d.ts +0 -2
  32. package/dist/types/components/BusinessSelection/types.d.ts +1 -2
  33. package/dist/types/components/Company/component/CompanyComponent.d.ts +2 -3
  34. package/dist/types/components/Company/rules.d.ts +2 -2
  35. package/dist/types/components/CompanyStructure/component/CompanyStructureComponent.d.ts +3 -3
  36. package/dist/types/components/CompanyStructure/types.d.ts +1 -4
  37. package/dist/types/components/CompanyType/types.d.ts +1 -2
  38. package/dist/types/components/Dropins/BusinessDetailsDropin/components/BusinessDetailsDropinComponent.d.ts +1 -1
  39. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
  40. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  41. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +1 -2
  42. package/dist/types/components/Individual/types.d.ts +1 -1
  43. package/dist/types/components/Individual/validators.d.ts +2 -1
  44. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +8 -4
  45. package/dist/types/components/PayoutDetails/types.d.ts +4 -1
  46. package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +9 -0
  47. package/dist/types/components/PayoutVerificationMethod/types.d.ts +5 -0
  48. package/dist/types/components/PersonalDetails/types.d.ts +1 -2
  49. package/dist/types/components/RegistrationAddress/types.d.ts +1 -4
  50. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +1 -1
  51. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  52. package/dist/types/components/TaskList/types.d.ts +0 -2
  53. package/dist/types/components/index.d.ts +1 -3
  54. package/dist/types/components/internal/AccountHolder/types.d.ts +0 -10
  55. package/dist/types/components/internal/Address/AddressComponent.d.ts +1 -1
  56. package/dist/types/components/internal/Address/constants.d.ts +2 -1
  57. package/dist/types/components/internal/Address/types.d.ts +2 -3
  58. package/dist/types/components/internal/Address/utils.d.ts +2 -3
  59. package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +2 -0
  60. package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  61. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  62. package/dist/types/components/internal/Button/types.d.ts +1 -0
  63. package/dist/types/components/internal/Card/Card.d.ts +1 -1
  64. package/dist/types/components/internal/Card/types.d.ts +3 -0
  65. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +3 -1
  66. package/dist/types/components/internal/Link/Link.d.ts +1 -1
  67. package/dist/types/components/internal/Link/types.d.ts +1 -0
  68. package/dist/types/components/internal/Svg/svgs.d.ts +1 -0
  69. package/dist/types/core/Context/ExperimentContext/types.d.ts +4 -4
  70. package/dist/types/core/Context/SettingsContext/types.d.ts +3 -1
  71. package/dist/types/core/Context/StateContext/types.d.ts +2 -3
  72. package/dist/types/core/hooks/useBusinessData/types.d.ts +1 -2
  73. package/dist/types/core/hooks/useBusinessData/useBusinessData.d.ts +3 -0
  74. package/dist/types/core/hooks/useForm/reducer.d.ts +3 -3
  75. package/dist/types/core/hooks/useForm/types.d.ts +2 -2
  76. package/dist/types/core/hooks/useForm/useForm.d.ts +1 -1
  77. package/dist/types/core/models/api/company-search.d.ts +0 -1
  78. package/dist/types/core/models/api/document.d.ts +2 -1
  79. package/dist/types/core/models/company.d.ts +0 -4
  80. package/dist/types/core/models/form-rules.d.ts +2 -0
  81. package/dist/types/core/models/form.d.ts +0 -1
  82. package/dist/types/core/process-field-configurations.d.ts +2 -3
  83. package/dist/types/utils/datasetUtil.d.ts +3 -1
  84. package/dist/types/utils/formUtils.d.ts +1 -0
  85. package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -2
  86. package/dist/types/utils/mapping/businessDetails/index.d.ts +1 -0
  87. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
  88. package/dist/types/utils/mapping/componentApiMapping.d.ts +5 -43
  89. package/dist/types/utils/mapping/mapping.d.ts +1 -2
  90. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +4 -0
  91. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +1 -0
  92. package/package.json +1 -1
  93. package/dist/es/tink-logo-CXMbO28D.js +0 -5
  94. package/dist/types/components/AdditionalInformation/index.d.ts +0 -1
  95. package/dist/types/components/BasicInformation/index.d.ts +0 -1
  96. package/dist/types/components/BusinessDetails/index.d.ts +0 -1
  97. package/dist/types/components/BusinessSelection/index.d.ts +0 -1
  98. package/dist/types/components/Company/index.d.ts +0 -1
  99. package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +0 -8
  100. package/dist/types/components/CompanyBasics/index.d.ts +0 -1
  101. package/dist/types/components/CompanyBasics/types.d.ts +0 -27
  102. package/dist/types/components/CompanyLookup/CompanyLookupResultsHeader.d.ts +0 -2
  103. package/dist/types/components/CompanyLookup/CompanyLookupResultsList.d.ts +0 -2
  104. package/dist/types/components/CompanyLookup/LookupResult.d.ts +0 -3
  105. package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +0 -5
  106. package/dist/types/components/CompanyLookup/index.d.ts +0 -1
  107. package/dist/types/components/CompanyLookup/types.d.ts +0 -66
  108. package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +0 -8
  109. package/dist/types/components/CompanyOtherDetails/index.d.ts +0 -1
  110. package/dist/types/components/CompanyOtherDetails/types.d.ts +0 -20
  111. package/dist/types/components/CompanyRegistrationDetails/index.d.ts +0 -1
  112. package/dist/types/components/CompanySearch/component/CompanySearchComponent.d.ts +0 -2
  113. package/dist/types/components/CompanySearch/forms.d.ts +0 -40
  114. package/dist/types/components/CompanySearch/index.d.ts +0 -1
  115. package/dist/types/components/CompanySearch/types.d.ts +0 -34
  116. package/dist/types/components/CompanyStructure/index.d.ts +0 -1
  117. package/dist/types/components/Dropins/BusinessDetailsDropin/index.d.ts +0 -1
  118. package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +0 -2
  119. package/dist/types/components/Dropins/CompanySearchDropin/index.d.ts +0 -1
  120. package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +0 -24
  121. package/dist/types/components/Dropins/CompanySearchDropin/utils.d.ts +0 -15
  122. package/dist/types/components/Dropins/FormNavigation/index.d.ts +0 -1
  123. package/dist/types/components/RegistrationAddress/index.d.ts +0 -1
  124. package/dist/types/components/RegistrationDocument/index.d.ts +0 -1
  125. package/dist/types/components/TaxDocument/index.d.ts +0 -1
  126. package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +0 -3
  127. package/dist/types/components/internal/AccountHolder/index.d.ts +0 -1
  128. package/dist/types/components/internal/AccountHolder/validate.d.ts +0 -3
  129. package/dist/types/components/internal/Alert/index.d.ts +0 -1
  130. package/dist/types/components/internal/BusinessNameField/index.d.ts +0 -1
  131. package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +0 -1
  132. package/dist/types/components/internal/Card/index.d.ts +0 -2
  133. package/dist/types/components/internal/CountryField/index.d.ts +0 -1
  134. package/dist/types/components/internal/CountryOfGoverningLawField/index.d.ts +0 -1
  135. package/dist/types/components/internal/DBANameField/index.d.ts +0 -1
  136. package/dist/types/components/internal/DateOfIncorporationField/index.d.ts +0 -1
  137. package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +0 -1
  138. package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +0 -3
  139. package/dist/types/components/internal/LegalCompanyNameField/index.d.ts +0 -1
  140. package/dist/types/components/internal/LegalFormField/index.d.ts +0 -1
  141. package/dist/types/components/internal/NaceCodeField/index.d.ts +0 -1
  142. package/dist/types/components/internal/StateField/index.d.ts +0 -1
  143. package/dist/types/components/internal/StockExchangeMICField/index.d.ts +0 -1
  144. package/dist/types/components/internal/StockISINField/index.d.ts +0 -1
  145. package/dist/types/components/internal/StockTickerSymbol/index.d.ts +0 -1
  146. package/dist/types/components/internal/TaxId/index.d.ts +0 -1
  147. package/dist/types/components/internal/TaxInformationField/index.d.ts +0 -1
  148. package/dist/types/components/internal/TradingNameField/index.d.ts +0 -1
  149. package/dist/types/core/hooks/useBusinessData/index.d.ts +0 -1
  150. package/dist/types/core/hooks/useCompanySearch/index.d.ts +0 -1
  151. package/dist/types/core/hooks/useCompanySearch/types.d.ts +0 -46
  152. package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +0 -5
  153. package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +0 -36
  154. package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +0 -1
  155. package/dist/types/core/hooks/useStaticValidator/index.d.ts +0 -1
  156. package/dist/types/types/index.d.ts +0 -9
  157. package/dist/types/utils/mapping/companySearch/index.d.ts +0 -4
  158. package/dist/types/utils/mapping/companySearch/mapCompanyDataResponseToFormSchema.d.ts +0 -3
  159. package/dist/types/utils/mapping/companySearch/mapCompanySearchSchemaToLegalEntity.d.ts +0 -5
  160. package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +0 -5
  161. /package/dist/types/utils/mapping/{companySearch → businessDetails}/mapOrganizationTypeToCompanyType.d.ts +0 -0
@@ -1,8 +0,0 @@
1
- import './CompanyOtherDetailsComponent.scss';
2
- import type { CompanySearchSchema } from '../../CompanySearch/types';
3
- import type { CompanyOtherDetailsProps, CompanyOtherDetailsSchema } from '../types';
4
- export declare const COMPANY_OTHER_DETAILS_FORM_ID: keyof CompanySearchSchema;
5
- export declare const companyOtherDetailsFields: Array<keyof CompanyOtherDetailsSchema>;
6
- declare function CompanyOtherDetails({ data, labels, placeholders, helperText, heading, description, readOnly, shouldValidate, formVerificationErrors, fieldValidationErrors, allFields, requiredFields, obscuredFields, optionalFields, readOnlyFields, country, legalCompanyName, companyType, }: CompanyOtherDetailsProps): import("preact/compat").JSX.Element;
7
- export declare const CompanyOtherDetailsComponent: typeof CompanyOtherDetails;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './component/CompanyOtherDetailsComponent';
@@ -1,20 +0,0 @@
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 { CompanySearchSchema } from '../CompanySearch/types';
5
- import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
6
- import type { DateOfIncorporationFieldSchema } from '../internal/DateOfIncorporationField/types';
7
- import type { StockExchangeMICFieldSchema } from '../internal/StockExchangeMICField/types';
8
- import type { StockISINFieldSchema } from '../internal/StockISINField/types';
9
- import type { StockTickerSymbolFieldSchema } from '../internal/StockTickerSymbol/types';
10
- import type { TaxInformationFieldSchema } from '../internal/TaxInformationField/types';
11
- import type { TradingNameFieldSchema } from '../internal/TradingNameField/types';
12
- import type { VatNumberFieldSchema } from '../internal/VatNumberField/types';
13
- export interface CompanyOtherDetailsSchema extends DateOfIncorporationFieldSchema, TradingNameFieldSchema, StockISINFieldSchema, StockExchangeMICFieldSchema, StockTickerSymbolFieldSchema, TaxInformationFieldSchema, BusinessRegistrationNumberFieldSchema, VatNumberFieldSchema {
14
- }
15
- export interface CompanyOtherDetailsProps extends BaseInnerFormProps<CompanyOtherDetailsSchema> {
16
- country: CountryCode;
17
- legalCompanyName: string | undefined;
18
- companyType: CompanyTypesValue | undefined;
19
- kompanyVerifiedData: CompanySearchSchema | undefined;
20
- }
@@ -1 +0,0 @@
1
- export * from './component/CompanyRegistrationDetailsComponent';
@@ -1,2 +0,0 @@
1
- import type { CompanySearchProps } from '../types';
2
- export declare function CompanySearchComponent(props: CompanySearchProps): import("preact").JSX.Element;
@@ -1,40 +0,0 @@
1
- import type { CompanySearchSchema } from './types';
2
- export declare const forms: {
3
- readonly companyBasics: {
4
- readonly formId: keyof CompanySearchSchema;
5
- readonly formName: "companyBasicsFormName";
6
- readonly fields: (keyof import("../CompanyBasics/types").CompanyBasicsSchema)[];
7
- };
8
- readonly companyRegistrationAddress: {
9
- readonly formId: keyof CompanySearchSchema;
10
- readonly formName: "companyRegistrationAddressFormName";
11
- readonly formDescription: "companyRegistrationAddressFormDescription";
12
- readonly fields: readonly ["registrationAddress", "operationalAddress", "operationalAddressIsSame"];
13
- };
14
- readonly companyStructure: {
15
- readonly formId: keyof CompanySearchSchema;
16
- readonly formName: "companyStructureFormName";
17
- readonly formDescription: "companyStructureFormDescription";
18
- readonly fields: (keyof import("../CompanyStructure/types").CompanyStructureSchema)[];
19
- };
20
- readonly companyOtherDetails: {
21
- readonly formId: keyof CompanySearchSchema;
22
- readonly formName: "companyOtherDetailsFormName";
23
- readonly fields: (keyof import("../CompanyOtherDetails/types").CompanyOtherDetailsSchema)[];
24
- };
25
- readonly companyRegistrationDocument: {
26
- readonly formId: keyof CompanySearchSchema;
27
- readonly formName: "companyRegistrationDocumentFormName";
28
- readonly formHeading: "companyRegistrationDocumentFormHeading";
29
- readonly formDescription: "companyRegistrationDocumentFormDescription";
30
- readonly fields: readonly ["registrationDocument"];
31
- };
32
- readonly companyTaxDocument: {
33
- readonly formId: keyof CompanySearchSchema;
34
- readonly formName: "companyTaxDocumentFormName";
35
- readonly formHeading: "companyTaxDocumentFormHeading";
36
- readonly formDescription: "companyTaxDocumentFormDescription";
37
- readonly fields: readonly ["taxDocument"];
38
- };
39
- };
40
- export declare const documentFormsIds: (keyof CompanySearchSchema)[];
@@ -1 +0,0 @@
1
- export * from './component/CompanySearchComponent';
@@ -1,34 +0,0 @@
1
- import type { BaseOuterFormProps } 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
- import type { FormModel } from '../../core/models/form';
5
- import type { BaseTrackingPayload } from '../../core/utils';
6
- import type { CompanyBasicsSchema } from '../CompanyBasics/types';
7
- import type { CompanyOtherDetailsSchema } from '../CompanyOtherDetails/types';
8
- import type { CompanyStructureSchema } from '../CompanyStructure/types';
9
- import type { DocumentUploadSchema } from '../DocumentUpload/types';
10
- import type { DropinAPIHandlers } from '../Dropins/types';
11
- import type { RegistrationAddressSchema } from '../RegistrationAddress/types';
12
- export interface CompanySearchSchema {
13
- companyBasics?: CompanyBasicsSchema;
14
- companyRegistrationAddress?: RegistrationAddressSchema;
15
- companyStructure?: CompanyStructureSchema;
16
- companyOtherDetails?: CompanyOtherDetailsSchema;
17
- companyRegistrationDocument?: DocumentUploadSchema;
18
- companyTaxDocument?: DocumentUploadSchema;
19
- }
20
- export interface CompanySearchProps extends BaseOuterFormProps<CompanySearchSchema> {
21
- country: CountryCode;
22
- isTopLevelEntity: boolean;
23
- baseTrackingPayload: BaseTrackingPayload;
24
- forms?: FormModel[];
25
- handleAddressSearch: DropinAPIHandlers['handleAddressSearch'];
26
- handleFindAddress: DropinAPIHandlers['handleFindAddress'];
27
- handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
28
- handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
29
- handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
30
- handleRefreshCompanyDataset: DropinAPIHandlers['handleRefreshCompanyDataset'];
31
- handleVerifyTin: DropinAPIHandlers['handleVerifyTin'];
32
- onSubmit?: (company: CompanySearchSchema) => void;
33
- onTypeSwitch?: (legalEntityType: LegalEntityType) => void;
34
- }
@@ -1 +0,0 @@
1
- export * from './component/CompanyStructureComponent';
@@ -1 +0,0 @@
1
- export * from './components/BusinessDetailsDropinComponent';
@@ -1,2 +0,0 @@
1
- import type { CompanySearchDropinProps } from '../types';
2
- export declare function CompanySearchDropinComponent({ country: parentCountry, problems: propProblems, legalEntityResponse, isTargetLegalEntityType, parentLegalEntity, trackingConfig, taskType, capabilities, taskName, hideDropinLayout, homeButtonLabel, onChange, onSubmit: onExternalSubmit, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, onTypeSwitch, trustedFields, }: CompanySearchDropinProps): import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export * from './components/CompanySearchDropinComponent';
@@ -1,24 +0,0 @@
1
- import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
2
- import type { CompanySearchProps } from '../../CompanySearch/types';
3
- import type { TrustMember } from '../../TrustMembers/types';
4
- import type { DropinAPIHandlers, DropinProps } from '../types';
5
- export declare enum CompanySearchEvents {
6
- TASK_START = "CompanySearch_TaskStarted",
7
- TASK_SUBMIT = "CompanySearch_TaskSubmitted",
8
- TASK_SAVED = "CompanySearch_TaskSaved",
9
- TASK_ERROR = "CompanySearch_TaskError",
10
- DOCUMENTS_SAVED = "CompanySearch_DocumentsSaved",
11
- DOCUMENTS_ERROR = "CompanySearch_DocumentsError",
12
- NO_SEARCH_RESULTS = "CompanySearch_NoSearchResults",
13
- TIN_MATCH = "CompanySearch_TinMatch",
14
- TIN_NO_MATCH = "CompanySearch_TinNoMatch",
15
- SELECTION_RESET = "CompanySearch_CompanySelectionReset",
16
- SELECTION_ERROR = "CompanySearch_CompanySelectionError"
17
- }
18
- export type CompanySearchDropinApihandler = Required<Pick<DropinAPIHandlers, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateLegalEntity'>>;
19
- export interface CompanySearchDropinProps extends Omit<CompanySearchProps, 'isTopLevelEntity' | 'baseTrackingPayload'>, CompanySearchDropinApihandler, DropinProps {
20
- legalEntityResponse: ExistingLegalEntity;
21
- isTargetLegalEntityType?: boolean;
22
- parentLegalEntity?: LegalEntity;
23
- associationDetail?: TrustMember;
24
- }
@@ -1,15 +0,0 @@
1
- import type { ParseConfiguration } from '../../../core/hooks/useScenarioConfiguration';
2
- import type { FormModelWithValidity } from '../../../core/models/form';
3
- import type Language from '../../../language';
4
- import type { TranslationKey } from '../../../language/types';
5
- import type { CompanySearchSchema } from '../../CompanySearch/types';
6
- export declare const parseConfiguration: ParseConfiguration;
7
- export declare const canSubmit: (data: CompanySearchSchema) => boolean;
8
- export declare const isDocumentsRequired: (forms: FormModelWithValidity[]) => boolean;
9
- export type InnerFormLabels<InnerFormSchema> = {
10
- [Field in keyof InnerFormSchema]: TranslationKey;
11
- };
12
- export type OuterFormLabels<OuterFormSchema> = {
13
- [Form in keyof OuterFormSchema]: InnerFormLabels<OuterFormSchema[Form]>;
14
- };
15
- export declare const formatDataForSummary: (data: CompanySearchSchema, forms: FormModelWithValidity[], labels: OuterFormLabels<CompanySearchSchema>, i18n: Language) => {};
@@ -1 +0,0 @@
1
- export * from './FormNavigation';
@@ -1 +0,0 @@
1
- export * from './component/RegistrationAddressComponent';
@@ -1 +0,0 @@
1
- export * from './RegistrationDocumentComponent';
@@ -1 +0,0 @@
1
- export * from './TaxDocumentComponent';
@@ -1,3 +0,0 @@
1
- import type { AccountHolderProps, AccountHolderSchema } from './types';
2
- export declare const accountHolderFields: Array<keyof AccountHolderSchema>;
3
- export default function AccountHolder(props: AccountHolderProps): import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export { accountHolderFields, default } from './AccountHolder';
@@ -1,3 +0,0 @@
1
- import type { ValidatorRules } from '../../../utils/validation/types';
2
- import type { AccountHolderSchema } from './types';
3
- export declare const accountHolderValidationRules: ValidatorRules<AccountHolderSchema>;
@@ -1 +0,0 @@
1
- export * from './Alert';
@@ -1 +0,0 @@
1
- export * from './BusinessNameField';
@@ -1 +0,0 @@
1
- export * from './BusinessRegistrationNumberField';
@@ -1,2 +0,0 @@
1
- export * from './Card';
2
- export * from './CardGroup';
@@ -1 +0,0 @@
1
- export * from './CountryField';
@@ -1 +0,0 @@
1
- export * from './CountryOfGoverningLawField';
@@ -1 +0,0 @@
1
- export * from './DBANameField';
@@ -1 +0,0 @@
1
- export * from './DateOfIncorporationField';
@@ -1 +0,0 @@
1
- export * from './MultiSelectList';
@@ -1,3 +0,0 @@
1
- export * from './RadioCard';
2
- export * from './RadioCardSelect';
3
- export * from './RadioGroupCard';
@@ -1 +0,0 @@
1
- export * from './LegalCompanyNameField';
@@ -1 +0,0 @@
1
- export * from './LegalFormField';
@@ -1 +0,0 @@
1
- export * from './NaceCodeField';
@@ -1 +0,0 @@
1
- export * from './StateField';
@@ -1 +0,0 @@
1
- export * from './StockExchangeMICField';
@@ -1 +0,0 @@
1
- export * from './StockISINField';
@@ -1 +0,0 @@
1
- export * from './StockTickerSymbolField';
@@ -1 +0,0 @@
1
- export * from './TaxId';
@@ -1 +0,0 @@
1
- export * from './TaxInformationField';
@@ -1 +0,0 @@
1
- export * from './TradingNameField';
@@ -1 +0,0 @@
1
- export * from './useBusinessData';
@@ -1 +0,0 @@
1
- export * from './useCompanySearch';
@@ -1,46 +0,0 @@
1
- import type { AxiosError } from 'axios';
2
- import type { Dispatch, StateUpdater } from 'preact/hooks';
3
- import type { CompanyBasicsSchema } from '../../../components/CompanyBasics/types';
4
- import type { DropinAPIHandlers } from '../../../components/Dropins/types';
5
- import type { ValidatorMode } from '../../../utils/validation/types';
6
- import type { CompanyDatasetResponse, CompanySearchResult } from '../../models/api/company-search';
7
- import type { CountryCode } from '../../models/country-code';
8
- import type { ProvinceCode } from '../../models/province-code';
9
- import type { StateCode, StateCodeUS } from '../../models/state-code';
10
- import type { BaseTrackingPayload } from '../../utils';
11
- import type { HookStatus } from '../types';
12
- export interface SearchCompaniesOptions {
13
- companyName: string;
14
- companyCountry: CountryCode;
15
- companyState: StateCodeUS;
16
- resultsLimit?: number;
17
- indexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
18
- deepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
19
- }
20
- export interface UseCompanySearchOptions {
21
- defaultData: CompanyBasicsSchema | undefined;
22
- legalCompanyName: string | undefined;
23
- country: CountryCode | undefined;
24
- stateOrProvince: StateCode | ProvinceCode | undefined;
25
- taxIdentificationNumber: string | undefined;
26
- canVerify: boolean;
27
- baseTrackingPayload: BaseTrackingPayload;
28
- limit?: number;
29
- setKompanyAddress: Dispatch<StateUpdater<string | undefined>>;
30
- handleChangeFor: (key: keyof CompanyBasicsSchema, mode?: ValidatorMode) => (e: any) => void;
31
- handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
32
- handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
33
- handleGetCompanyDataset: DropinAPIHandlers['handleGetCompanyDataset'];
34
- handleRefreshCompanyDataset: DropinAPIHandlers['handleRefreshCompanyDataset'];
35
- handleVerifyTin: DropinAPIHandlers['handleVerifyTin'];
36
- }
37
- export type UseCompanySearch = {
38
- results: readonly CompanySearchResult[];
39
- selectedCompanyId: string | undefined;
40
- status: HookStatus;
41
- error: AxiosError | undefined;
42
- verifiedCompany: CompanyDatasetResponse | undefined;
43
- retrySearch: () => Promise<void>;
44
- verify: (tin: string, company: CompanySearchResult) => Promise<void>;
45
- reset: () => void;
46
- };
@@ -1,5 +0,0 @@
1
- import type { UseCompanySearch, UseCompanySearchOptions } from './types';
2
- export declare const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 157766400000;
3
- export declare const MED_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 94694400000;
4
- export declare const HIGH_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 31536000000;
5
- export declare function useCompanySearch({ defaultData, legalCompanyName, country, stateOrProvince, taxIdentificationNumber, canVerify, limit, baseTrackingPayload, setKompanyAddress, handleChangeFor, handleCompanyIndexSearch, handleCompanyDeepSearch, handleGetCompanyDataset, handleRefreshCompanyDataset, handleVerifyTin, }: UseCompanySearchOptions): UseCompanySearch;
@@ -1,36 +0,0 @@
1
- import type { Dispatch, StateUpdater } from 'preact/hooks';
2
- import type { CompanySearchSchema } from '../../components/CompanySearch/types';
3
- import type { DropinAPIHandlers } from '../../components/Dropins/types';
4
- import type { AccountHolderOption } from '../../components/internal/AccountHolder/types';
5
- import type { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
6
- import { TaskTypes } from '../../components/TaskList/types';
7
- import type { DocumentApiUtils } from '../../utils/api/documentUtils';
8
- import type { ExistingLegalEntity } from '../models/api/legal-entity';
9
- import type { EntityProblems } from '../models/errors/entity-problems';
10
- import type { FormModelWithValidity } from '../models/form';
11
- import type { BaseTrackingPayload } from '../utils';
12
- export interface SubmitOptions<FormTaskSchema> {
13
- data: FormTaskSchema;
14
- }
15
- export interface SubmitDocumentsOptions<FormTaskSchema> extends SubmitOptions<FormTaskSchema> {
16
- legalEntity: ExistingLegalEntity;
17
- currentForms: FormModelWithValidity[];
18
- }
19
- export interface FormTaskSubmitOptions {
20
- task: TaskTypes;
21
- forms: FormModelWithValidity[];
22
- legalEntityResponse: ExistingLegalEntity;
23
- problems?: EntityProblems;
24
- baseTrackingPayload: BaseTrackingPayload;
25
- isTargetLegalEntityType: boolean;
26
- documentUtils: DocumentApiUtils;
27
- setProblems: Dispatch<StateUpdater<EntityProblems | undefined>>;
28
- setLoadingStatus: Dispatch<StateUpdater<LoadingStatus>>;
29
- onExternalSubmit?: (company: CompanySearchSchema) => void;
30
- handleUpdateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
31
- accountHolder: AccountHolderOption | null;
32
- }
33
- export type FormTaskSubmit<FormTaskSchema> = {
34
- submit: (options: SubmitOptions<FormTaskSchema>) => Promise<void>;
35
- };
36
- export declare function useCompanySearchTaskSubmit<FormTaskSchema extends CompanySearchSchema>({ task, forms, legalEntityResponse, problems, baseTrackingPayload, isTargetLegalEntityType, documentUtils, setProblems, setLoadingStatus, onExternalSubmit, handleUpdateLegalEntity, accountHolder, }: FormTaskSubmitOptions): FormTaskSubmit<FormTaskSchema>;
@@ -1 +0,0 @@
1
- export declare const useEnableNewEntryFlow: () => boolean;
@@ -1 +0,0 @@
1
- export * from './useStaticValidator';
@@ -1,9 +0,0 @@
1
- import type { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
2
- export type AddressField = (typeof ADDRESS_SCHEMA)[number];
3
- export type AddressSchema = {
4
- [key in AddressField]?: string;
5
- };
6
- /**
7
- * Visibility options for a fieldset
8
- */
9
- export type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
@@ -1,4 +0,0 @@
1
- export * from './mapCompanyDataResponseToFormSchema';
2
- export * from './mapCompanySearchSchemaToLegalEntity';
3
- export * from './mapLegalEntityToCompanySearchSchema';
4
- export * from './mapOrganizationTypeToCompanyType';
@@ -1,3 +0,0 @@
1
- import type { CompanySearchSchema } from '../../../components/CompanySearch/types';
2
- import type { CompanyDatasetResponse } from '../../../core/models/api/company-search';
3
- export declare const mapCompanyDataResponseToFormSchema: (company: CompanyDatasetResponse) => CompanySearchSchema;
@@ -1,5 +0,0 @@
1
- import type { CompanySearchSchema } from '../../../components/CompanySearch/types';
2
- import type { Document } from '../../../core/models/api/document';
3
- import type { LegalEntity } from '../../../core/models/api/legal-entity';
4
- export declare const mapCompanySearchDocumentToApiDocument: (data: CompanySearchSchema, entityId: string) => Promise<Document[]>;
5
- export declare const mapCompanySearchSchemaToLegalEntity: (data: CompanySearchSchema) => LegalEntity;
@@ -1,5 +0,0 @@
1
- import type { CompanySearchSchema } from '../../../components/CompanySearch/types';
2
- import type { AccountHolderOption } from '../../../components/internal/AccountHolder/types';
3
- import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
4
- export declare const mapApiDocumentToCompanySearchDocuments: (entityId: string) => CompanySearchSchema;
5
- export declare const mapLegalEntityToCompanySearchSchema: (legalEntity: ExistingLegalEntity, isChangingType: boolean, accountHolder?: AccountHolderOption) => CompanySearchSchema;