@adyen/kyc-components 2.36.3 → 2.37.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.
- package/dist/es/AT-0q_5SJBQ.js +24 -0
- package/dist/es/AT-BgQV6hNb.js +29 -0
- package/dist/es/AT-njBxlQEe.js +25 -0
- package/dist/es/AU-C8Ubk0YW.js +19 -0
- package/dist/es/AU-DFQDmtVS.js +22 -0
- package/dist/es/AU-Dqj7rU9m.js +31 -0
- package/dist/es/BE-B9YzjIbl.js +21 -0
- package/dist/es/BE-C2-55587.js +20 -0
- package/dist/es/BE-DXN0rypg.js +25 -0
- package/dist/es/BR-B9ECFEsA.js +30 -0
- package/dist/es/BR-Cm5wlqzu.js +26 -0
- package/dist/es/BR-DRRnRMe_.js +24 -0
- package/dist/es/CA-CcUb1PsZ.js +28 -0
- package/dist/es/CA-DF_5NHUp.js +16 -0
- package/dist/es/CA-GPzRNbT4.js +19 -0
- package/dist/es/CH-BN1IKzah.js +20 -0
- package/dist/es/CH-DQ7wM16k.js +20 -0
- package/dist/es/CH-DS_pPGGY.js +20 -0
- package/dist/es/CZ-BC067qOt.js +24 -0
- package/dist/es/CZ-BC6mPfpV.js +28 -0
- package/dist/es/CZ-CGN19Iaf.js +24 -0
- package/dist/es/DE-BPXDYsIg.js +31 -0
- package/dist/es/DE-C2b48uc9.js +26 -0
- package/dist/es/DE-CWIcy4sf.js +25 -0
- package/dist/es/DK-CUV7SrN_.js +23 -0
- package/dist/es/DK-DQdJTd7G.js +24 -0
- package/dist/es/DK-DzkpuGcK.js +22 -0
- package/dist/es/ES-CXBTHBlj.js +24 -0
- package/dist/es/ES-DlS7RO1p.js +24 -0
- package/dist/es/ES-kwu_f0TB.js +33 -0
- package/dist/es/FI-D9lkf5Ag.js +20 -0
- package/dist/es/FI-DJJ7pR5Q.js +22 -0
- package/dist/es/FI-DrPckuaI.js +25 -0
- package/dist/es/FR-C62B055T.js +22 -0
- package/dist/es/FR-CgtCG2F8.js +28 -0
- package/dist/es/FR-CmqiYchK.js +26 -0
- package/dist/es/GB-BsDyOPB2.js +19 -0
- package/dist/es/GB-C3gyya0v.js +23 -0
- package/dist/es/GB-CyOmxXhp.js +31 -0
- package/dist/es/HK-BHvvteyC.js +16 -0
- package/dist/es/HK-DL3Ev2gw.js +22 -0
- package/dist/es/HK-aqSN9boX.js +19 -0
- package/dist/es/HR-BYmZgEjN.js +22 -0
- package/dist/es/HR-BuR2eqt5.js +23 -0
- package/dist/es/HR-lqt3S_K0.js +24 -0
- package/dist/es/HU-BeWCk1sl.js +21 -0
- package/dist/es/HU-CXniaSYg.js +21 -0
- package/dist/es/HU-Cy7JJAmz.js +24 -0
- package/dist/es/IE-BqkOpYi0.js +29 -0
- package/dist/es/IE-DY6xU4Nq.js +16 -0
- package/dist/es/IE-ncc5PJTM.js +19 -0
- package/dist/es/IT-DIpVZHWq.js +25 -0
- package/dist/es/IT-DUpC-s62.js +24 -0
- package/dist/es/IT-o8X0Ep0w.js +24 -0
- package/dist/es/LT-DYEMsFLH.js +25 -0
- package/dist/es/LT-YEft7Aof.js +27 -0
- package/dist/es/LT-vsmh_veZ.js +16 -0
- package/dist/es/NL-Bl-zh21O.js +24 -0
- package/dist/es/NL-C0CXV7LQ.js +26 -0
- package/dist/es/NL-D4GPWO-k.js +18 -0
- package/dist/es/NO-6kmy-zV2.js +24 -0
- package/dist/es/NO-BWDB_9Zh.js +28 -0
- package/dist/es/NO-C2rMiNW_.js +16 -0
- package/dist/es/PL-B6DmYhdz.js +23 -0
- package/dist/es/PL-Cci2LxIN.js +24 -0
- package/dist/es/PL-DfF0yMD3.js +25 -0
- package/dist/es/PT-CiWuVvP4.js +23 -0
- package/dist/es/PT-ClgahH9J.js +25 -0
- package/dist/es/PT-_SJeajc_.js +29 -0
- package/dist/es/RO-B_4Ca0mt.js +20 -0
- package/dist/es/RO-CbO4Kr4f.js +16 -0
- package/dist/es/RO-DzjKAzZD.js +24 -0
- package/dist/es/SE-BJB_aDpP.js +26 -0
- package/dist/es/SE-ClnBSAdx.js +21 -0
- package/dist/es/SE-L3pYtteT.js +24 -0
- package/dist/es/SG-BCG6hbHH.js +19 -0
- package/dist/es/SG-Bys5Yryz.js +25 -0
- package/dist/es/SG-CQ7yymJt.js +21 -0
- package/dist/es/SI-CKmjaPXK.js +22 -0
- package/dist/es/SI-Dba9CKmF.js +25 -0
- package/dist/es/SI-DdcTeBdP.js +24 -0
- package/dist/es/SK-BHbQeHKV.js +21 -0
- package/dist/es/SK-DOx6jvRF.js +24 -0
- package/dist/es/SK-DdRSQwOF.js +28 -0
- package/dist/es/US-BfGmXLD9.js +19 -0
- package/dist/es/US-CtLttEVX.js +26 -0
- package/dist/es/US-Dxp45Utb.js +17 -0
- package/dist/es/adyen-kyc-components.es.js +928 -506
- package/dist/es/company-2-JG34IScE.js +8 -0
- package/dist/es/user-D6swzlYs.js +11 -0
- package/dist/es/user-business-CwS5j1qX.js +11 -0
- package/dist/es/users-3-BdjQ9rEA.js +8 -0
- package/dist/style.css +7777 -5851
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +5 -5
- package/dist/types/components/BusinessTypeSelection/component/EntityTypeRadioGroupCard.d.ts +11 -0
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +6 -3
- package/dist/types/components/Company/component/CompanyComponent.d.ts +4 -0
- package/dist/types/components/Company/types.d.ts +2 -1
- package/dist/types/components/CompanyBasics/types.d.ts +3 -3
- package/dist/types/components/CompanyLookup/types.d.ts +4 -4
- package/dist/types/components/CompanySearch/forms.d.ts +2 -0
- package/dist/types/components/DocumentUpload/types.d.ts +4 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +0 -3
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +1 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +6 -2
- package/dist/types/components/Dropins/types.d.ts +4 -2
- package/dist/types/components/Individual/types.d.ts +2 -3
- package/dist/types/components/PayoutAccount/types.d.ts +2 -1
- package/dist/types/components/PayoutDetails/types.d.ts +4 -3
- package/dist/types/components/RegistrationDocument/RegistrationDocumentComponent.d.ts +2 -0
- package/dist/types/components/RegistrationDocument/config.d.ts +3 -0
- package/dist/types/components/RegistrationDocument/index.d.ts +1 -0
- package/dist/types/components/RegistrationDocument/types.d.ts +15 -0
- package/dist/types/components/SoleProp/types.d.ts +2 -1
- package/dist/types/components/TaskList/types.d.ts +2 -2
- package/dist/types/components/TaxDocument/TaxDocumentComponent.d.ts +2 -0
- package/dist/types/components/TaxDocument/config.d.ts +3 -0
- package/dist/types/components/TaxDocument/index.d.ts +1 -0
- package/dist/types/components/TaxDocument/types.d.ts +15 -0
- package/dist/types/components/Trust/types.d.ts +2 -1
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/internal/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +3 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +9 -3
- package/dist/types/components/internal/Icon/Icon.d.ts +4 -0
- package/dist/types/components/internal/Remove/types.d.ts +3 -3
- package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
- package/dist/types/components/internal/Summary/types.d.ts +1 -0
- package/dist/types/components/internal/TaxInformationField/types.d.ts +2 -2
- package/dist/types/components/internal/VatNumberField/types.d.ts +2 -2
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +1 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +2 -1
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -2
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +3 -3
- package/dist/types/core/hooks/useForm/types.d.ts +11 -10
- package/dist/types/core/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/core/hooks/useLocalStorage.d.ts +2 -2
- package/dist/types/core/models/api/contracts.d.ts +6 -0
- package/dist/types/core/models/api/get-configuration.d.ts +2 -1
- package/dist/types/core/models/form-rules.d.ts +2 -0
- package/dist/types/core/models/form.d.ts +1 -0
- package/dist/types/datasets/localized/companyTypeExamples/getCompanyTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/datasets/localized/legalEntityTypeExamples/getBusinessTypeExamplesForCountry.d.ts +5 -0
- package/dist/types/utils/accountHolderUtils.d.ts +2 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +4 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +3 -0
- package/dist/types/utils/useStateFromProp.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,5 +3,5 @@ export interface UseHasSeenIntroductionProps {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const useHasSeenIntroduction: ({ legalEntityId }: UseHasSeenIntroductionProps) => {
|
|
5
5
|
hasSeenIntroduction: boolean;
|
|
6
|
-
setHasSeenIntroduction: import("preact/hooks").
|
|
6
|
+
setHasSeenIntroduction: import("preact/hooks").StateUpdater<boolean>;
|
|
7
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DropinAPIHandlers } from '../../components/Dropins/types';
|
|
2
2
|
import { ConfigurationApi } from '../Context/ConfigurationApiContext/ConfigurationApiContext';
|
|
3
|
+
import { CapabilityName } from '../models/api/capability';
|
|
3
4
|
import { BankVerificationVendorsResponse } from '../models/api/get-bankVerification-providers';
|
|
4
5
|
import { GetConfigurationResponse } from '../models/api/get-configuration';
|
|
5
6
|
import { LegalEntityType } from '../models/api/legal-entity-type';
|
|
@@ -10,7 +11,7 @@ interface UseBankConfigurationHandlersProps {
|
|
|
10
11
|
bankAccountCountry: CountryCode;
|
|
11
12
|
getConfiguration: ConfigurationApi['getConfiguration'];
|
|
12
13
|
legalEntityType: LegalEntityType;
|
|
13
|
-
capabilities?:
|
|
14
|
+
capabilities?: CapabilityName[];
|
|
14
15
|
}
|
|
15
16
|
/** **
|
|
16
17
|
* There are some differences in the response provided by bankVerificationVendors
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosError } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StateUpdater } from 'preact/hooks';
|
|
3
3
|
import type { CompanyBasicsSchema } from '../../../components/CompanyBasics/types';
|
|
4
4
|
import type { DropinAPIHandlers } from '../../../components/Dropins/types';
|
|
5
5
|
import type { ValidatorMode } from '../../../utils/validation/types';
|
|
@@ -26,7 +26,7 @@ export interface UseCompanySearchOptions {
|
|
|
26
26
|
canVerify: boolean;
|
|
27
27
|
baseTrackingPayload: BaseTrackingPayload;
|
|
28
28
|
limit?: number;
|
|
29
|
-
setKompanyAddress:
|
|
29
|
+
setKompanyAddress: StateUpdater<string | undefined>;
|
|
30
30
|
handleChangeFor: (key: keyof CompanyBasicsSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
31
31
|
handleCompanyIndexSearch: DropinAPIHandlers['handleCompanyIndexSearch'];
|
|
32
32
|
handleCompanyDeepSearch: DropinAPIHandlers['handleCompanyDeepSearch'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { CompanySearchSchema } from '../../components/CompanySearch/types';
|
|
3
3
|
import { DropinAPIHandlers } from '../../components/Dropins/types';
|
|
4
4
|
import { LoadingStatus } from '../../components/internal/LoaderWrapper/constants';
|
|
@@ -22,8 +22,8 @@ export interface FormTaskSubmitOptions {
|
|
|
22
22
|
problems?: EntityProblems;
|
|
23
23
|
baseTrackingPayload: BaseTrackingPayload;
|
|
24
24
|
documentUtils: DocumentApiUtils;
|
|
25
|
-
setProblems:
|
|
26
|
-
setLoadingStatus:
|
|
25
|
+
setProblems: StateUpdater<EntityProblems | undefined>;
|
|
26
|
+
setLoadingStatus: StateUpdater<LoadingStatus>;
|
|
27
27
|
onExternalSubmit?: (company: CompanySearchSchema) => void;
|
|
28
28
|
handleUpdateLegalEntity: Required<DropinAPIHandlers>['handleUpdateLegalEntity'];
|
|
29
29
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { Translatable, TranslationKey } from '../../../language/types';
|
|
3
3
|
import { Mask } from '../../../utils/masking/maskTypes';
|
|
4
4
|
import type { ValidationRuleResult, ValidatorMode, ValidatorRules } from '../../../utils/validation/types';
|
|
5
5
|
import type { AnyFormIdOfTLDS } from '../../Context/StateContext/types';
|
|
6
|
+
import { CapabilityName } from '../../models/api/capability';
|
|
6
7
|
import type { CountryCode } from '../../models/country-code';
|
|
7
8
|
import type { EntityProblems } from '../../models/errors/entity-problems';
|
|
8
9
|
import type { FormVerificationErrors } from '../../models/errors/form-verification-errors';
|
|
@@ -87,7 +88,7 @@ export interface BaseFormProps<FormSchema> {
|
|
|
87
88
|
}
|
|
88
89
|
export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
89
90
|
problems?: EntityProblems;
|
|
90
|
-
capabilities?:
|
|
91
|
+
capabilities?: CapabilityName[];
|
|
91
92
|
country?: CountryCode;
|
|
92
93
|
activeForm?: FormModel;
|
|
93
94
|
requiredFields?: {
|
|
@@ -107,13 +108,13 @@ export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
107
108
|
};
|
|
108
109
|
evaluateConfiguration?: (data: FormSchema) => void;
|
|
109
110
|
setCustomFormNavigationHandlers?(formId: string, onNext: () => void, onBack: () => void): void;
|
|
110
|
-
setHideDropinLayout?:
|
|
111
|
-
setHideNavigation?:
|
|
112
|
-
setHideFooter?:
|
|
113
|
-
setHideOnHomeButton?:
|
|
114
|
-
setHideBackButton?:
|
|
115
|
-
setSubmitButtonLabel?:
|
|
116
|
-
setSkipSubmit?:
|
|
111
|
+
setHideDropinLayout?: StateUpdater<boolean>;
|
|
112
|
+
setHideNavigation?: StateUpdater<boolean>;
|
|
113
|
+
setHideFooter?: StateUpdater<boolean>;
|
|
114
|
+
setHideOnHomeButton?: StateUpdater<boolean>;
|
|
115
|
+
setHideBackButton?: StateUpdater<boolean>;
|
|
116
|
+
setSubmitButtonLabel?: StateUpdater<TranslationKey>;
|
|
117
|
+
setSkipSubmit?: StateUpdater<boolean>;
|
|
117
118
|
}
|
|
118
119
|
export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
119
120
|
formVerificationErrors?: FormVerificationErrors;
|
|
@@ -125,5 +126,5 @@ export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
125
126
|
readOnlyFields?: Array<keyof FormSchema>;
|
|
126
127
|
id?: string;
|
|
127
128
|
dataStoreId?: string;
|
|
128
|
-
capabilities?:
|
|
129
|
+
capabilities?: CapabilityName[];
|
|
129
130
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
import { TranslationKey } from '../../language/types';
|
|
3
3
|
import { EntityProblems } from '../models/errors/entity-problems';
|
|
4
4
|
import { FormModelWithValidity } from '../models/form';
|
|
@@ -10,7 +10,7 @@ export interface FormComposer {
|
|
|
10
10
|
gotoFormByFormIndex(index: number): void;
|
|
11
11
|
activeForm: FormModelWithValidity;
|
|
12
12
|
shouldValidate: boolean;
|
|
13
|
-
setShouldValidate:
|
|
13
|
+
setShouldValidate: StateUpdater<boolean>;
|
|
14
14
|
}
|
|
15
15
|
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, externalBackClick, onSubmit, skipSubmit, onSkipSubmit, }: {
|
|
16
16
|
problems?: EntityProblems;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
type Serializer<T> = (object: T | undefined) => string;
|
|
3
3
|
type Parser<T> = (val: string) => T | undefined;
|
|
4
4
|
type Options<T> = Partial<{
|
|
@@ -10,5 +10,5 @@ export declare const useLocalStorage: <T>(key: string, defaultValue: T, options?
|
|
|
10
10
|
serializer: Serializer<T>;
|
|
11
11
|
parser: Parser<T>;
|
|
12
12
|
syncData: boolean;
|
|
13
|
-
}>) => [T,
|
|
13
|
+
}>) => [T, StateUpdater<T>];
|
|
14
14
|
export {};
|
|
@@ -54,6 +54,12 @@ export interface ServiceAgreementSignResponse extends ServiceAgreementSignReques
|
|
|
54
54
|
export interface ServiceAgreementStatus {
|
|
55
55
|
termsOfServiceTypes: ServiceAgreementType[];
|
|
56
56
|
}
|
|
57
|
+
export interface ServiceAgreementAcceptedDocumentResponse {
|
|
58
|
+
id: string;
|
|
59
|
+
document: string;
|
|
60
|
+
termsOfServiceAcceptanceReference: string;
|
|
61
|
+
termsOfServiceDocumentFormat: string;
|
|
62
|
+
}
|
|
57
63
|
export interface ServiceAgreementAcceptanceInfos {
|
|
58
64
|
data: ServiceAgreementAcceptanceInfo[];
|
|
59
65
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { CountryBankVerificationVendors } from '../../../components/BankVerification/types';
|
|
2
2
|
import type { TaskTypes } from '../../../components/TaskList/types';
|
|
3
3
|
import type { CountryCode } from '../country-code';
|
|
4
|
+
import { CapabilityName } from './capability';
|
|
4
5
|
import type { GetScenariosResponse } from './get-scenarios';
|
|
5
6
|
import type { LegalEntityType } from './legal-entity-type';
|
|
6
7
|
export interface GetConfigurationRequest {
|
|
7
8
|
country: CountryCode;
|
|
8
|
-
capabilities?:
|
|
9
|
+
capabilities?: CapabilityName[];
|
|
9
10
|
legalEntityType: LegalEntityType;
|
|
10
11
|
}
|
|
11
12
|
export interface GetConfigurationResponse {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TaskTypes } from '../../components/TaskList/types';
|
|
2
2
|
import { AccountFormatRequirements } from '../../datasets/accountFormats/getAccountFormatForCountry';
|
|
3
|
+
import { ExperimentName } from '../Context/ExperimentContext/types';
|
|
3
4
|
import { SettingName } from '../Context/SettingsContext/types';
|
|
4
5
|
import { TopLevelDataSchema } from '../Context/StateContext/types';
|
|
5
6
|
import { CountryCode } from './country-code';
|
|
@@ -8,6 +9,7 @@ export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
|
|
|
8
9
|
country: CountryCode;
|
|
9
10
|
taskType: TaskTypes;
|
|
10
11
|
isSettingEnabled?: (setting: SettingName) => boolean;
|
|
12
|
+
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
11
13
|
requiredFields?: Partial<AccountFormatRequirements>;
|
|
12
14
|
isEmbeddedDropin?: boolean;
|
|
13
15
|
}
|
package/dist/types/datasets/localized/companyTypeExamples/getCompanyTypeExamplesForCountry.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
3
|
+
export type CompanyTypeExamples = Partial<Record<CompanyTypesValue, string[]>>;
|
|
4
|
+
export declare const getCompanyTypeExamplesForCountry: (country: CountryCode) => Promise<CompanyTypeExamples>;
|
|
5
|
+
export declare const useCompanyTypeExamples: (country: CountryCode) => Partial<Record<CompanyTypesValue, string[]>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LegalArrangementOption } from '../../../components/internal/AccountHolder/types';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
3
|
+
export type LegalArrangementTypeExamples = Partial<Record<LegalArrangementOption, string[]>>;
|
|
4
|
+
export declare const getLegalArrangementTypeExamplesForCountry: (country: CountryCode) => Promise<LegalArrangementTypeExamples>;
|
|
5
|
+
export declare const useLegalArrangementTypeExamples: (country: CountryCode) => Partial<Record<LegalArrangementOption, string[]>>;
|
package/dist/types/datasets/localized/legalEntityTypeExamples/getBusinessTypeExamplesForCountry.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BusinessType } from '../../../components/BusinessTypeSelection/types';
|
|
2
|
+
import { CountryCode } from '../../../core/models/country-code';
|
|
3
|
+
export type BusinessTypeExamples = Partial<Record<BusinessType, string[]>>;
|
|
4
|
+
export declare const getBusinessTypeExamplesForCountry: (country: CountryCode) => Promise<BusinessTypeExamples>;
|
|
5
|
+
export declare const useBusinessTypeExamples: (country: CountryCode) => Partial<Record<BusinessType, string[]>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccountHolderOption } from '../components/internal/AccountHolder/types';
|
|
2
|
+
import { CapabilityName } from '../core/models/api/capability';
|
|
2
3
|
import { LegalEntity } from '../core/models/api/legal-entity';
|
|
3
4
|
import { LegalEntityType } from '../core/models/api/legal-entity-type';
|
|
4
5
|
export declare const entityTypeToCorrespondingAccountHolderOption: Record<LegalEntityType, AccountHolderOption>;
|
|
@@ -7,3 +8,4 @@ export declare const entityTypeToCorrespondingAccountHolderOption: Record<LegalE
|
|
|
7
8
|
** The value is computed in the front end based on the associations and current flow of the legalEntity
|
|
8
9
|
* */
|
|
9
10
|
export declare const getDefaultAccountHolderType: (legalEntityResponse: LegalEntity | undefined, isTypeChanging?: boolean) => AccountHolderOption | undefined;
|
|
11
|
+
export declare const allowIndividualWithoutSoleProp: (capabilities: CapabilityName[]) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExperimentName } from '../../core/Context/ExperimentContext/types';
|
|
2
|
-
import {
|
|
2
|
+
import { CapabilityName } from '../../core/models/api/capability';
|
|
3
|
+
import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import { CountryCode } from '../../core/models/country-code';
|
|
4
5
|
import { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
5
6
|
import { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
@@ -56,4 +57,5 @@ import { RemediationActionContext } from '../../core/models/errors/remediation-a
|
|
|
56
57
|
declare function getCapabilityProblems(response: LegalEntity, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
|
|
57
58
|
declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems['entityType'], isExperimentEnabled?: (key: ExperimentName) => boolean) => any;
|
|
58
59
|
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
59
|
-
|
|
60
|
+
declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
|
|
61
|
+
export { getCapabilities, getCapabilityProblems, getComponentMappingFromLEFieldPath };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateUpdater } from 'preact/hooks';
|
|
2
2
|
type UseStateFromPropParams<T> = {
|
|
3
3
|
initialValue?: T;
|
|
4
4
|
passedValue: T;
|
|
5
5
|
skipUpdate?: boolean;
|
|
6
6
|
};
|
|
7
|
-
type UseStateFromPropReturn<T> = [T | undefined,
|
|
7
|
+
type UseStateFromPropReturn<T> = [T | undefined, StateUpdater<T | undefined>];
|
|
8
8
|
declare const useStateFromProp: <T>({ initialValue, passedValue, skipUpdate, }: UseStateFromPropParams<T>) => UseStateFromPropReturn<T>;
|
|
9
9
|
export default useStateFromProp;
|