@adyen/kyc-components 3.46.3 → 3.47.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/adyen-a-filled-NXWZwyuX.js +5 -0
- package/dist/es/adyen-kyc-components.es.js +1640 -1066
- package/dist/es/{bg-BG-Ihgju3Pi.js → bg-BG-CbW3hvQ1.js} +204 -169
- package/dist/es/capital-DR5WtYzz.js +8 -0
- package/dist/es/certificate--YOFQmBR.js +8 -0
- package/dist/es/coins-CEf5i6aD.js +8 -0
- package/dist/es/{cs-CZ-BwFstFmQ.js → cs-CZ-DLXbTL5j.js} +204 -169
- package/dist/es/{da-DK-8v1CN9Kj.js → da-DK-ufWSaKfu.js} +204 -169
- package/dist/es/{de-DE-DtR-ZoAt.js → de-DE-DhxNOEba.js} +204 -169
- package/dist/es/{el-GR-CBnu_V96.js → el-GR-K3SswoHB.js} +204 -169
- package/dist/es/{es-ES-kb2BRKrK.js → es-ES-Cy2y4xXA.js} +204 -169
- package/dist/es/{et-EE-UdwhQ1tL.js → et-EE-CMJqPmgi.js} +204 -169
- package/dist/es/{fi-FI-DX8-uQWW.js → fi-FI-DQTNBfwQ.js} +204 -169
- package/dist/es/{fr-FR-Dflt81Kj.js → fr-FR-Dw9osh-l.js} +204 -169
- package/dist/es/funds-in-6_PK4zOF.js +18 -0
- package/dist/es/gift-k_lkVRsK.js +5 -0
- package/dist/es/graph-HYYkabio.js +12 -0
- package/dist/es/graph-up-C2R98aXc.js +11 -0
- package/dist/es/house-PfmXThnE.js +12 -0
- package/dist/es/{hr-HR-DDW3mkAM.js → hr-HR-C-hECk_5.js} +204 -169
- package/dist/es/{hu-HU-B7KDp-GT.js → hu-HU-D3j_bDvr.js} +204 -169
- package/dist/es/{it-IT-Q6-mT16i.js → it-IT-COz-savY.js} +204 -169
- package/dist/es/{lt-LT-DKLjCNW_.js → lt-LT-WRBe_Qvp.js} +204 -169
- package/dist/es/{lv-LV-Cj-obzFe.js → lv-LV-DO0d-JBC.js} +204 -169
- package/dist/es/{nl-NL-C0DfxtrT.js → nl-NL-kryA0HPp.js} +204 -169
- package/dist/es/{no-NO-DRJeRltS.js → no-NO-SHMF6J2i.js} +204 -169
- package/dist/es/{pl-PL-DPYok5sp.js → pl-PL-DW0nlP9Z.js} +204 -169
- package/dist/es/{pt-PT-C5GFc3jY.js → pt-PT-PxRA6bF9.js} +204 -169
- package/dist/es/revenue-accelerate-CG6WXtBr.js +8 -0
- package/dist/es/{ro-RO-BhsqkN_s.js → ro-RO-BHE4-Av2.js} +204 -169
- package/dist/es/singpass-verification-instant-_DBtLgVD.js +31 -0
- package/dist/es/singpass-verification-manual-CiTnqp_1.js +25 -0
- package/dist/es/{sk-SK-HaK9kYN-.js → sk-SK-FbGBMBnE.js} +204 -169
- package/dist/es/{sl-SI-VeIDFOxi.js → sl-SI-Ck9rNGHP.js} +204 -169
- package/dist/es/{sv-SE-DEhZRTDK.js → sv-SE-BxjpNXvt.js} +204 -169
- package/dist/style.css +149 -16
- package/dist/types/components/Address/utils.d.ts +1 -1
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/types.d.ts +1 -1
- package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/ContextGuidance/ContextGuidance.d.ts +1 -1
- package/dist/types/components/ContextGuidance/types.d.ts +2 -0
- package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +1 -14
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -2
- package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +1 -1
- package/dist/types/components/Dropins/FormNavigation/types.d.ts +3 -3
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +1 -1
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/Dropins/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +1 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForDonation.d.ts +2 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForInheritance.d.ts +2 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +1 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +1 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/types.d.ts +6 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/utils.d.ts +5 -0
- package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +1 -4
- package/dist/types/components/Introduction/constants.d.ts +0 -14
- package/dist/types/components/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +3 -1
- package/dist/types/components/PersonalDetails/Identity/IdentityNZ/DriversLicense.d.ts +3 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +2 -0
- package/dist/types/components/Summary/types.d.ts +3 -2
- package/dist/types/components/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/TaskList/types.d.ts +0 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +24 -2
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +15 -0
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +13 -0
- package/dist/types/core/analytics.d.ts +16 -0
- package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -0
- package/dist/types/core/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/core/hooks/useAnalytics.d.ts +2 -2
- package/dist/types/core/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
- package/dist/types/core/services/componentApi/get-source-of-funds-types.d.ts +2 -0
- package/dist/types/core/user-events.d.ts +35 -23
- package/dist/types/core/utils.d.ts +0 -24
- package/dist/types/stores/globalStore/taskTypes.d.ts +2 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/types/utils/trackNavigation.d.ts +4 -4
- package/package.json +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PciDropinProps } from './types';
|
|
2
|
-
export declare function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType,
|
|
2
|
+
export declare function PciDropin({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleSign, taskType, asModal, needsSigning, // TODO: move up to upcoming layout
|
|
3
3
|
handleCloseClick, }: PciDropinProps): import("preact").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './ServiceAgreementDropin.scss';
|
|
2
2
|
import type { ServiceAgreementDropinProps } from './types';
|
|
3
|
-
export declare function ServiceAgreementDropin({ legalEntityResponse, handleGetServiceAgreement, handleViewAcceptedTermsOfServiceDocument, handleDownloadAcceptedTermsOfServiceDocument, handleDownloadUnacceptedTermsOfServiceDocument, handleHomeClick, handleAddSigner, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos,
|
|
3
|
+
export declare function ServiceAgreementDropin({ legalEntityResponse, handleGetServiceAgreement, handleViewAcceptedTermsOfServiceDocument, handleDownloadAcceptedTermsOfServiceDocument, handleDownloadUnacceptedTermsOfServiceDocument, handleHomeClick, handleAddSigner, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, asEmbedded, asModal, handleCloseClick, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SolePropDropinProps } from '../../SoleProp/types';
|
|
2
|
-
export declare function SolePropDropin({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, hideSidebar, onSubmit: onExternalSubmit, onChange, taskType,
|
|
2
|
+
export declare function SolePropDropin({ problems: problemsProp, capabilities, country: externalCountry, parentLegalEntity, legalEntityResponse, hideSidebar, onSubmit: onExternalSubmit, onChange, taskType, handleHomeClick, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, handleUpdateLegalEntity, handleCreateLegalEntity, }: SolePropDropinProps): import("preact").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SourceOfFundsDropinProps } from './types';
|
|
2
|
-
export declare function SourceOfFundsDropin({ legalEntityResponse, country, problems,
|
|
2
|
+
export declare function SourceOfFundsDropin({ legalEntityResponse, country, problems, handleHomeClick, }: SourceOfFundsDropinProps): import("preact").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { BusinessLinesType } from '../../../../core/models/api/source-of-fu
|
|
|
3
3
|
export interface SourceOfFundsGettingStartedProps {
|
|
4
4
|
handleCancelClick?: () => void;
|
|
5
5
|
handleHelpClick?: () => void;
|
|
6
|
-
handleSourceOfFundsClick: (SoF: SourceOfFundsSchema) => void;
|
|
6
|
+
handleSourceOfFundsClick: (SoF: SourceOfFundsSchema, businessLine: BusinessLinesType) => void;
|
|
7
7
|
handleGettingStartedClick: () => void;
|
|
8
8
|
businessLines: BusinessLinesType[];
|
|
9
9
|
}
|
|
@@ -10,6 +10,7 @@ import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity'
|
|
|
10
10
|
import type { BusinessLinesType, SourceOfFundsAmount, SourceOfFundsCategoryType, SourceOfFundsFinancierType } from '../../../core/models/api/source-of-funds';
|
|
11
11
|
import type { FormUtils } from '../../../utils/formUtils';
|
|
12
12
|
import type { ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
|
|
13
|
+
import type { DataSet } from '../../../core/models/api/data-set';
|
|
13
14
|
export interface SourceOfFundsProps extends BaseOuterFormProps<SourceOfFundsSchema> {
|
|
14
15
|
activeForm?: FormModel;
|
|
15
16
|
sourceOfFundsType?: SourceOfFundsCategoryType | undefined;
|
|
@@ -48,12 +49,16 @@ export interface SourceOfFundsAdditionalDataSchema {
|
|
|
48
49
|
cryptocurrencyExchange?: string;
|
|
49
50
|
dateOfSourceEvent?: string;
|
|
50
51
|
website?: string;
|
|
52
|
+
legalName?: string;
|
|
53
|
+
country?: CountryCode;
|
|
51
54
|
}
|
|
52
55
|
export interface SourceOfFundsTypeProps extends BaseInnerFormProps<SourceOfFundsTypeSchema> {
|
|
56
|
+
categories?: DataSet;
|
|
53
57
|
defaultData?: SourceOfFundsSchema;
|
|
54
58
|
}
|
|
55
59
|
export interface SourceOfFundsAdditionalDataProps extends BaseInnerFormProps<SourceOfFundsAdditionalDataSchema> {
|
|
56
60
|
defaultData?: SourceOfFundsSchema;
|
|
61
|
+
categories?: DataSet;
|
|
57
62
|
sourceOfFundsType?: SourceOfFundsCategoryType | undefined;
|
|
58
63
|
}
|
|
59
64
|
export declare const additionalDataSchemaKeys: (keyof SourceOfFundsAdditionalDataSchema)[];
|
|
@@ -65,4 +70,5 @@ export interface AdditionalDataComponentsProps {
|
|
|
65
70
|
valid: Record<keyof SourceOfFundsAdditionalDataSchema, boolean>;
|
|
66
71
|
fieldProblems: Record<keyof SourceOfFundsAdditionalDataSchema, boolean>;
|
|
67
72
|
handleAmountChange: (key: string) => (e: any) => void;
|
|
73
|
+
categories?: DataSet;
|
|
68
74
|
}
|
|
@@ -3,6 +3,7 @@ import type { SourceOfFundsCategoryType, SourceOfFundsFinancierType } from '../.
|
|
|
3
3
|
import type { SelectItem } from '../../ui/atoms/Select/Select.types';
|
|
4
4
|
import type { SOFFinancierModalInputError } from './SOFAdditionalData/SOFFinancierModal';
|
|
5
5
|
import type { Language } from '../../../language/Language';
|
|
6
|
+
import type { TranslationKey } from '../../../language/types';
|
|
6
7
|
export declare const allowedCurrencies: SelectItem[];
|
|
7
8
|
export declare const SOF_CHARACTERS_LIMIT = 200;
|
|
8
9
|
export declare const TODAY_DATE: string;
|
|
@@ -39,3 +40,7 @@ export declare const getInputErrors: ({ formErrors, data, key, value, i18n, }: {
|
|
|
39
40
|
value?: string | number | undefined;
|
|
40
41
|
i18n: Language;
|
|
41
42
|
}) => SOFFinancierModalInputError;
|
|
43
|
+
export declare const getPageHeadings: (type: SourceOfFundsCategoryType) => {
|
|
44
|
+
heading: TranslationKey;
|
|
45
|
+
description?: TranslationKey;
|
|
46
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TrustDropinProps } from '../../Trust/types';
|
|
2
|
-
export declare function TrustDropin({ parentLegalEntity, capabilities, country, legalEntityResponse, handleCreateLegalEntity, handleUpdateLegalEntity, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress,
|
|
2
|
+
export declare function TrustDropin({ parentLegalEntity, capabilities, country, legalEntityResponse, handleCreateLegalEntity, handleUpdateLegalEntity, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, taskType, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideSidebar, handleHomeClick, }: TrustDropinProps): import("preact").JSX.Element;
|
|
@@ -12,7 +12,7 @@ import type { ExistingTransferInstrument, TransferInstrument } from '../../core/
|
|
|
12
12
|
import type { BankVerificationErrorResponse, CreateTrustedTransferInstrumentResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
13
13
|
import type { OnboardingLinkConfig, OnboardingLinkResponse, OnboardingStatusResponse } from '../../core/models/api/view-verification-status';
|
|
14
14
|
import type { CountryCode } from '../../core/models/country-code';
|
|
15
|
-
import type { BaseTrackingPayload } from '../../core/
|
|
15
|
+
import type { BaseTrackingPayload } from '../../core/analytics';
|
|
16
16
|
import type { Language } from '../../language/Language';
|
|
17
17
|
import type { TranslationKey } from '../../language/types';
|
|
18
18
|
import type { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
@@ -81,9 +81,6 @@ export interface DropinProps {
|
|
|
81
81
|
handleBackClick?(): void;
|
|
82
82
|
handleCloseClick?(): void;
|
|
83
83
|
hideSidebar?: boolean;
|
|
84
|
-
trackingConfig?: {
|
|
85
|
-
topLevelLegalEntity: ExistingLegalEntity;
|
|
86
|
-
};
|
|
87
84
|
taskType?: TaskTypes;
|
|
88
85
|
taskName?: TranslationKey;
|
|
89
86
|
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
import { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
2
2
|
import { IntroductionScreens } from './types';
|
|
3
3
|
export declare const introductionScreensByLegalEntityType: Record<LegalEntityType, IntroductionScreens[]>;
|
|
4
|
-
export declare enum IntroductionScreenEvent {
|
|
5
|
-
EMPTY = "Introduction_Empty",
|
|
6
|
-
START_FLOW = "Introduction_StartFlow",
|
|
7
|
-
START_SCREEN = "Introduction_StartScreen",
|
|
8
|
-
STOP_SCREEN = "Introduction_StopScreen",
|
|
9
|
-
STOP_FLOW = "Introduction_StopFlow",
|
|
10
|
-
NEXT = "Introduction_Next",
|
|
11
|
-
BACK = "Introduction_Back",
|
|
12
|
-
SKIP = "Introduction_Skip"
|
|
13
|
-
}
|
|
14
|
-
export declare enum IntroductionScreenTiming {
|
|
15
|
-
VIEW_FLOW = "Introduction_ViewFlow",
|
|
16
|
-
VIEW_SCREEN = "Introduction_ViewScreen"
|
|
17
|
-
}
|
|
@@ -2,6 +2,7 @@ import type { FormUtils } from '../../../../utils/formUtils';
|
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../ui/atoms/Select/Select.types';
|
|
4
4
|
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
5
|
+
import type { BaseTrackingPayload } from '../../../../core/analytics';
|
|
5
6
|
interface AuDriversLicenseSchema {
|
|
6
7
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
7
8
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -18,6 +19,7 @@ interface DriversLicenseProps {
|
|
|
18
19
|
isValid: Record<keyof AuDriversLicenseSchema, boolean>;
|
|
19
20
|
errorMessages: Record<keyof AuDriversLicenseSchema, string | boolean>;
|
|
20
21
|
shouldValidate?: boolean;
|
|
22
|
+
baseTrackingPayload: BaseTrackingPayload;
|
|
21
23
|
}
|
|
22
|
-
export declare const DriversLicense: ({ driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
24
|
+
export declare const DriversLicense: ({ driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, baseTrackingPayload, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
23
25
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FormUtils } from '../../../../utils/formUtils';
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { AdditionalIdentityInfoSchema } from '../types';
|
|
4
|
+
import type { BaseTrackingPayload } from '../../../../core/analytics';
|
|
4
5
|
interface NZDriversLicenseSchema {
|
|
5
6
|
idNumber?: IdentityNumberSchema['idNumber'];
|
|
6
7
|
licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
|
|
@@ -15,6 +16,7 @@ interface DriversLicenseProps {
|
|
|
15
16
|
isValid: Record<keyof NZDriversLicenseSchema, boolean>;
|
|
16
17
|
errorMessages: Record<keyof NZDriversLicenseSchema, string | boolean>;
|
|
17
18
|
shouldValidate?: boolean;
|
|
19
|
+
baseTrackingPayload: BaseTrackingPayload;
|
|
18
20
|
}
|
|
19
|
-
export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
21
|
+
export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, shouldValidate, baseTrackingPayload, }: DriversLicenseProps) => import("preact").JSX.Element;
|
|
20
22
|
export {};
|
|
@@ -4,6 +4,7 @@ import type { FormModel } from '../../core/models/form';
|
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
5
5
|
import type { DropinAPIHandlers } from '../Dropins/types';
|
|
6
6
|
import type { AddressSchema } from '../Address/types';
|
|
7
|
+
import type { BaseTrackingPayload } from '../../core/analytics';
|
|
7
8
|
export interface RegistrationAddressSchema {
|
|
8
9
|
registrationAddress?: AddressSchema;
|
|
9
10
|
operationalAddress?: AddressSchema;
|
|
@@ -15,6 +16,7 @@ export interface RegistrationAddressProps extends BaseOuterFormProps<Registratio
|
|
|
15
16
|
country?: CountryCode;
|
|
16
17
|
handleAddressSearch?: DropinAPIHandlers['handleAddressSearch'];
|
|
17
18
|
handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
|
|
19
|
+
baseTrackingPayload: BaseTrackingPayload;
|
|
18
20
|
}
|
|
19
21
|
export declare enum operationalAddressIsSameIds {
|
|
20
22
|
OPERATIONAL_ADDRESS_IS_SAME = "OperationAddressAnswerYes",
|
|
@@ -2,6 +2,7 @@ import type { Schema } from 'type-fest';
|
|
|
2
2
|
import type { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
3
3
|
import type { FormModel } from '../../core/models/form';
|
|
4
4
|
import type { SummaryItem } from './summaryItem';
|
|
5
|
+
import type { TranslationKey } from '../../language/types';
|
|
5
6
|
export type SummaryOf<T> = Partial<Schema<T, string | SummaryItem>>;
|
|
6
7
|
export interface Omitted {
|
|
7
8
|
keys?: string[];
|
|
@@ -10,8 +11,8 @@ export interface Omitted {
|
|
|
10
11
|
}
|
|
11
12
|
export interface SummaryProps<Schema extends object> {
|
|
12
13
|
trackNavigation?: (props: {
|
|
13
|
-
fromForm:
|
|
14
|
-
toForm:
|
|
14
|
+
fromForm: TranslationKey;
|
|
15
|
+
toForm: TranslationKey;
|
|
15
16
|
component: string;
|
|
16
17
|
}) => void;
|
|
17
18
|
data: SummaryOf<Schema>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './TaskList.scss';
|
|
2
2
|
import type { TaskListProps } from './types';
|
|
3
|
-
export declare function TaskList({
|
|
3
|
+
export declare function TaskList({ onNavigateToTask, legalEntityResponse, capabilityProblems, onPciDownload, isReview, pciStatus, serviceAgreementTypes, serviceAgreementAcceptanceInfos, onTransferInstrumentDelete, singpassComponent, }: TaskListProps): import("preact").JSX.Element;
|
|
@@ -30,9 +30,6 @@ export interface TaskListProps {
|
|
|
30
30
|
onPciDownload?(): void;
|
|
31
31
|
country?: string;
|
|
32
32
|
onTransferInstrumentDelete: (id: string) => void;
|
|
33
|
-
trackingConfig?: {
|
|
34
|
-
topLevelLegalEntity: ExistingLegalEntity;
|
|
35
|
-
};
|
|
36
33
|
singpassComponent?: JSX.Element;
|
|
37
34
|
}
|
|
38
35
|
export interface TaskListGroupProps {
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
* the object key and the svg filename.
|
|
12
12
|
*/
|
|
13
13
|
export declare const icons: {
|
|
14
|
+
'adyen-a-filled': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
14
15
|
'arrow-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
15
16
|
'arrow-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
16
17
|
bank: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
17
18
|
bin: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
18
19
|
check: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
20
|
+
certificate: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
19
21
|
checkmark: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
20
22
|
'checkmark-circle-fill': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
21
23
|
'checkmark-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -23,19 +25,26 @@ export declare const icons: {
|
|
|
23
25
|
'chevron-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
24
26
|
'chevron-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
25
27
|
'chevron-up': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
28
|
+
'cash-stack': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
26
29
|
circle: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
27
30
|
company: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
31
|
+
capital: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
28
32
|
'company-2': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
29
33
|
contract: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
30
34
|
'controlling-person': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
31
35
|
cross: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
36
|
+
coins: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
32
37
|
'decision-maker': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
33
38
|
document: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
34
39
|
download: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
35
40
|
edit: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
36
41
|
'external-link': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
42
|
+
'graph-up': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
43
|
+
graph: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
44
|
+
gift: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
37
45
|
'field-error': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
38
46
|
hide: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
47
|
+
headquarter: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
39
48
|
'info-circle': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
40
49
|
image: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
41
50
|
'light-bulb': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -47,6 +56,7 @@ export declare const icons: {
|
|
|
47
56
|
plus: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
48
57
|
'plus-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
49
58
|
remove: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
59
|
+
'revenue-accelerate': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
50
60
|
save: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
51
61
|
search: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
52
62
|
show: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -58,10 +68,11 @@ export declare const icons: {
|
|
|
58
68
|
'users-3': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
59
69
|
warning: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
60
70
|
webinar: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
61
|
-
'cash-stack': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
62
71
|
};
|
|
63
72
|
export declare const customIcons: {
|
|
64
73
|
review: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
74
|
+
'funds-in': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
75
|
+
house: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
65
76
|
};
|
|
66
77
|
export declare const images: {
|
|
67
78
|
'document-blurred': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -123,11 +134,15 @@ export declare const svgs: {
|
|
|
123
134
|
readonly 'trustly-logo': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
124
135
|
readonly 'source-of-funds': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
125
136
|
readonly review: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
137
|
+
readonly 'funds-in': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
138
|
+
readonly house: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
139
|
+
readonly 'adyen-a-filled': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
126
140
|
readonly 'arrow-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
127
141
|
readonly 'arrow-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
128
142
|
readonly bank: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
129
143
|
readonly bin: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
130
144
|
readonly check: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
145
|
+
readonly certificate: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
131
146
|
readonly checkmark: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
132
147
|
readonly 'checkmark-circle-fill': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
133
148
|
readonly 'checkmark-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -135,19 +150,26 @@ export declare const svgs: {
|
|
|
135
150
|
readonly 'chevron-right': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
136
151
|
readonly 'chevron-left': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
137
152
|
readonly 'chevron-up': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
153
|
+
readonly 'cash-stack': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
138
154
|
readonly circle: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
139
155
|
readonly company: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
156
|
+
readonly capital: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
140
157
|
readonly 'company-2': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
141
158
|
readonly contract: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
142
159
|
readonly 'controlling-person': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
143
160
|
readonly cross: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
161
|
+
readonly coins: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
144
162
|
readonly 'decision-maker': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
145
163
|
readonly document: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
146
164
|
readonly download: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
147
165
|
readonly edit: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
148
166
|
readonly 'external-link': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
167
|
+
readonly 'graph-up': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
168
|
+
readonly graph: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
169
|
+
readonly gift: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
149
170
|
readonly 'field-error': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
150
171
|
readonly hide: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
172
|
+
readonly headquarter: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
151
173
|
readonly 'info-circle': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
152
174
|
readonly image: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
153
175
|
readonly 'light-bulb': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -159,6 +181,7 @@ export declare const svgs: {
|
|
|
159
181
|
readonly plus: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
160
182
|
readonly 'plus-small': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
161
183
|
readonly remove: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
184
|
+
readonly 'revenue-accelerate': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
162
185
|
readonly save: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
163
186
|
readonly search: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
164
187
|
readonly show: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
@@ -170,6 +193,5 @@ export declare const svgs: {
|
|
|
170
193
|
readonly 'users-3': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
171
194
|
readonly warning: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
172
195
|
readonly webinar: import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
173
|
-
readonly 'cash-stack': import("preact").FunctionComponent<import("preact").JSX.SVGAttributes<SVGSVGElement>>;
|
|
174
196
|
};
|
|
175
197
|
export declare const unscalableIconNames: string[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JSX } from 'preact';
|
|
2
|
+
import { type IconName } from '../Icon/Icon';
|
|
3
|
+
export type TileProps = {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon?: IconName;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isHorizontal?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
onChange?(newChecked: boolean): void;
|
|
12
|
+
subTitle?: string;
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function Tile({ checked, disabled, icon, id, isHorizontal, label, name, onChange, subTitle, value, }: TileProps): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TileProps } from '../Tile/Tile';
|
|
2
|
+
import type { JSX } from 'preact';
|
|
3
|
+
export interface TileGroupProps {
|
|
4
|
+
tiles: TileProps[];
|
|
5
|
+
selected: string[] | string;
|
|
6
|
+
allowMultiple?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
isHorizontal?: boolean;
|
|
9
|
+
maxSelected?: number;
|
|
10
|
+
errorMessage?: string | boolean | JSX.Element | null;
|
|
11
|
+
onChange?(selected: string[] | string): void;
|
|
12
|
+
}
|
|
13
|
+
export declare function TileGroup({ tiles, selected, allowMultiple, isHorizontal, name: nameProp, maxSelected, errorMessage, onChange, }: TileGroupProps): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LegalEntity } from './models/api/legal-entity';
|
|
2
|
+
import type { TaskIdentifier } from '../stores/globalStore/globalStore';
|
|
3
|
+
type BaseTrackingPayloadParams = {
|
|
4
|
+
task?: TaskIdentifier;
|
|
5
|
+
associatedLegalEntity?: LegalEntity;
|
|
6
|
+
associatedLegalEntityOrg?: LegalEntity;
|
|
7
|
+
};
|
|
8
|
+
export type BaseTrackingPayload = {
|
|
9
|
+
task: TaskIdentifier;
|
|
10
|
+
associatedLegalEntityId?: string;
|
|
11
|
+
associatedLegalEntityType?: string;
|
|
12
|
+
associatedLegalEntityOrgId?: string;
|
|
13
|
+
associatedLegalEntityOrgType?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const getAssociatedLeAnalyticsPayload: ({ task, associatedLegalEntity, associatedLegalEntityOrg, }: BaseTrackingPayloadParams) => BaseTrackingPayload;
|
|
16
|
+
export {};
|
|
@@ -20,5 +20,6 @@ export type ConfigurationApi = {
|
|
|
20
20
|
getLegalForms: (countryCode?: CountryCode) => Promise<DataSet>;
|
|
21
21
|
getNaceCodes: () => Promise<DataSet>;
|
|
22
22
|
getBusinessLines: (legalEntityId: string) => Promise<BusinessLinesType[]>;
|
|
23
|
+
getSourceOfFundsTypes: () => Promise<DataSet>;
|
|
23
24
|
};
|
|
24
25
|
export declare const ConfigurationApiContext: import("preact").Context<ConfigurationApi>;
|
|
@@ -9,6 +9,7 @@ export declare enum SettingNames {
|
|
|
9
9
|
AllowBankAccountFormatSelection = "allowBankAccountFormatSelection",
|
|
10
10
|
AllowDebugUi = "allowDebugUi",
|
|
11
11
|
AllowIntraRegionCrossBorderPayout = "allowIntraRegionCrossBorderPayout",
|
|
12
|
+
AllowAllCrossBorderPayout = "allowAllCrossBorderPayout",
|
|
12
13
|
AllowLegalEntityTypeChange = "changeLegalEntityType",
|
|
13
14
|
AllowPrefilledCountryEdit = "editPrefilledCountry",
|
|
14
15
|
RequirePciSignEcommerce = "requirePciSignEcommerce",
|
|
@@ -31,6 +32,7 @@ export interface Settings {
|
|
|
31
32
|
allowBankAccountFormatSelection: boolean;
|
|
32
33
|
allowDebugUi: boolean;
|
|
33
34
|
allowIntraRegionCrossBorderPayout: boolean;
|
|
35
|
+
allowAllCrossBorderPayout: boolean;
|
|
34
36
|
changeLegalEntityType: boolean;
|
|
35
37
|
editPrefilledCountry: boolean;
|
|
36
38
|
requirePciSignEcommerce: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentMap } from '../../components';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AnalyticsEventPayload, EventProperty, EventQueueItem, EventType, UserEventCallback } from '../user-events';
|
|
3
3
|
import type { EmbeddedAnalyticsSessionRequest } from '../models/api/analytics';
|
|
4
4
|
export type UseAnalyticsProps = {
|
|
5
5
|
onUserEvent?: UserEventCallback;
|
|
@@ -9,7 +9,7 @@ export type UseAnalyticsProps = {
|
|
|
9
9
|
type EmbeddedEventItem = {
|
|
10
10
|
eventType: EventType;
|
|
11
11
|
eventName: string;
|
|
12
|
-
eventData:
|
|
12
|
+
eventData: AnalyticsEventPayload | Record<string, EventProperty>;
|
|
13
13
|
};
|
|
14
14
|
export declare const convertToEmbeddedEvent: (eventQueueItem: EventQueueItem, sessionData: EmbeddedAnalyticsSessionRequest) => EmbeddedEventItem & EmbeddedAnalyticsSessionRequest;
|
|
15
15
|
export declare const useAnalytics: ({ onUserEvent, sdkVersion, componentName }: UseAnalyticsProps) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { EntityProblems } from '../models/errors/entity-problems';
|
|
3
3
|
import type { FormModelWithValidity } from '../models/form';
|
|
4
|
-
import type { BaseTrackingPayload } from '../
|
|
4
|
+
import type { BaseTrackingPayload } from '../analytics';
|
|
5
5
|
export interface FormComposer {
|
|
6
6
|
handleNextClick(): void;
|
|
7
7
|
handleBackClick?(): void;
|
|
@@ -38,4 +38,4 @@ export interface BusinessLinesWebDataType {
|
|
|
38
38
|
webAddressId: string;
|
|
39
39
|
}
|
|
40
40
|
export type BusinessLinesServiceType = 'banking' | 'issuing' | 'payment';
|
|
41
|
-
export type SourceOfFundsCategoryType = 'business' | 'employment' | 'donations' | 'inheritance' | 'financialAid' | 'rentalIncome' | 'dividendIncome' | 'royaltyIncome' | 'thirdPartyFunding' | 'pensionIncome' | 'insuranceSettlement' | 'cryptocurrencyIncome' | 'assetSale' | 'loans' | 'gamblingWinnings';
|
|
41
|
+
export type SourceOfFundsCategoryType = 'adyen' | 'business' | 'employment' | 'donations' | 'inheritance' | 'financialAid' | 'rentalIncome' | 'dividendIncome' | 'royaltyIncome' | 'thirdPartyFunding' | 'pensionIncome' | 'insuranceSettlement' | 'cryptocurrencyIncome' | 'assetSale' | 'loans' | 'gamblingWinnings';
|
|
@@ -1,15 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { TaskIdentifier } from '../stores/globalStore/globalStore';
|
|
2
|
+
import type { LegalEntityType } from './models/api/legal-entity-type';
|
|
3
|
+
export type EventProperty = string | number | boolean | any[] | null | undefined;
|
|
4
|
+
type ActionLevel = 'journey' | 'task' | 'page' | 'field';
|
|
5
|
+
type ActionType = 'start' | 'submit' | 'save' | 'add' | 'edit' | 'remove' | 'open' | 'close' | 'next' | 'back' | 'skip' | 'download' | 'upload' | 'sign' | 'navigate';
|
|
6
|
+
type BaseEventProperties = {
|
|
7
|
+
category: 'onboarding';
|
|
8
|
+
subCategory: 'hosted onboarding';
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
capabilities?: string[];
|
|
11
|
+
legalEntityId?: string;
|
|
12
|
+
entityType?: LegalEntityType;
|
|
13
|
+
};
|
|
14
|
+
export interface EventProperties {
|
|
15
|
+
actionType: ActionType;
|
|
16
|
+
actionLevel: ActionLevel;
|
|
17
|
+
entityType?: LegalEntityType;
|
|
18
|
+
task: TaskIdentifier;
|
|
19
|
+
page?: string;
|
|
20
|
+
field?: string;
|
|
21
|
+
returnType?: 'backend' | (string & {});
|
|
22
|
+
returnValue?: string | string[];
|
|
23
|
+
label?: string;
|
|
24
|
+
[key: string]: EventProperty;
|
|
7
25
|
}
|
|
8
|
-
type
|
|
9
|
-
|
|
26
|
+
export type AnalyticsEventPayload = BaseEventProperties & EventProperties;
|
|
27
|
+
export type EventName = 'Clicked button' | 'Clicked accordion' | 'Success' | 'Encountered error' | 'Landed on page' | (string & {});
|
|
28
|
+
export type EventType = 'add_event' | 'start_event';
|
|
29
|
+
export type EventQueueItem = {
|
|
30
|
+
type: EventType;
|
|
31
|
+
name: EventName;
|
|
32
|
+
properties?: AnalyticsEventPayload;
|
|
10
33
|
};
|
|
11
|
-
export type EventType = 'track_pageview' | 'add_event' | 'start_event' | 'end_event';
|
|
12
|
-
export type EventQueueItem = [EventType, string | UserEventWithKey];
|
|
13
34
|
export type UserEventCallback = (eventQueueItem: EventQueueItem) => void;
|
|
14
35
|
declare class UserEvents {
|
|
15
36
|
private readonly queue;
|
|
@@ -22,20 +43,11 @@ declare class UserEvents {
|
|
|
22
43
|
/**
|
|
23
44
|
* Adds an analytics event. Optionally can include a payload.
|
|
24
45
|
*/
|
|
25
|
-
addEvent(
|
|
26
|
-
/**
|
|
27
|
-
* Logs a page view event
|
|
28
|
-
* @param pageName - The name of the page/screen to log as viewed
|
|
29
|
-
*/
|
|
30
|
-
addPageView(pageName: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* Starts a new event which is expected to be ended with `endEvent` eventually
|
|
33
|
-
*/
|
|
34
|
-
startEvent(key: string): void;
|
|
46
|
+
addEvent(eventName: EventName, properties: EventProperties): void;
|
|
35
47
|
/**
|
|
36
|
-
*
|
|
48
|
+
* Starts a timer for an event to measure the time it takes for an event to occur. Time is ended when `addEvent` is executed with the same key
|
|
37
49
|
*/
|
|
38
|
-
|
|
50
|
+
startEvent(eventName: EventName): void;
|
|
39
51
|
/**
|
|
40
52
|
* Subscribes a callback to analytics events. It gets called every time
|
|
41
53
|
* one of the above public methods get called, and the event data is passed back as an array.
|
|
@@ -53,7 +65,7 @@ declare class UserEvents {
|
|
|
53
65
|
*/
|
|
54
66
|
subscribe(callback: UserEventCallback): void;
|
|
55
67
|
/** Sets params that are sent on every event */
|
|
56
|
-
|
|
68
|
+
updateBaseTrackingPayload(baseTrackingPayload: Partial<BaseEventProperties>): void;
|
|
57
69
|
/**
|
|
58
70
|
* Removes a subscribed callback
|
|
59
71
|
*/
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import type { TopLevelDataSchema } from './context/StateContext/types';
|
|
2
|
-
import type { LegalEntity } from './models/api/legal-entity';
|
|
3
|
-
import type { LegalEntityType } from './models/api/legal-entity-type';
|
|
4
|
-
import type { TaskTypes } from '../stores/globalStore/taskTypes';
|
|
5
|
-
import type { TaskIdentifier } from '../stores/globalStore/globalStore';
|
|
6
|
-
type BaseTrackingPayloadParams = {
|
|
7
|
-
trackingConfig?: {
|
|
8
|
-
topLevelLegalEntity: LegalEntity;
|
|
9
|
-
};
|
|
10
|
-
parentLegalEntity?: LegalEntity;
|
|
11
|
-
legalEntity?: LegalEntity;
|
|
12
|
-
task?: TaskIdentifier;
|
|
13
|
-
};
|
|
14
|
-
export type BaseTrackingPayload = {
|
|
15
|
-
task: TaskTypes;
|
|
16
|
-
flow: LegalEntityType;
|
|
17
|
-
topLevelLegalEntityId: string;
|
|
18
|
-
topLevelLegalEntityType: LegalEntityType;
|
|
19
|
-
parentLegalEntityId?: string;
|
|
20
|
-
parentLegalEntityType?: LegalEntityType;
|
|
21
|
-
legalEntityId?: string;
|
|
22
|
-
legalEntityType?: LegalEntityType;
|
|
23
|
-
};
|
|
24
|
-
export declare function getBaseTrackingPayload({ trackingConfig, parentLegalEntity, legalEntity, task, }: BaseTrackingPayloadParams): BaseTrackingPayload;
|
|
25
2
|
/**
|
|
26
3
|
* Set fields on the schema which have been removed to the appropriate "deleted" value.
|
|
27
4
|
*
|
|
@@ -34,4 +11,3 @@ export declare function getBaseTrackingPayload({ trackingConfig, parentLegalEnti
|
|
|
34
11
|
* @returns filtered data
|
|
35
12
|
*/
|
|
36
13
|
export declare const setRemovedFieldsOnSchemaToDeletedValue: <Schema extends TopLevelDataSchema>(newData: Schema, existingData: Schema) => Schema;
|
|
37
|
-
export {};
|
|
@@ -24,5 +24,6 @@ export declare enum TaskTypes {
|
|
|
24
24
|
CAPABILITY_REJECTED = "CAPABILITY_REJECTED",
|
|
25
25
|
SINGPASS_SELECTION = "SINGPASS_SELECTION",
|
|
26
26
|
LEGAL_REPRESENTATIVE_DETAILS = "LEGAL_REPRESENTATIVE_DETAILS",
|
|
27
|
-
SOURCE_OF_FUNDS = "SOURCE_OF_FUNDS"
|
|
27
|
+
SOURCE_OF_FUNDS = "SOURCE_OF_FUNDS",
|
|
28
|
+
HIGH_EXPOSURE = "HIGH_EXPOSURE"
|
|
28
29
|
}
|