@vpdev2/metakyc 1.0.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/README.md +114 -0
- package/dist/client/config.d.ts +143 -0
- package/dist/client/config.d.ts.map +1 -0
- package/dist/client/endpoint-builder.d.ts +21 -0
- package/dist/client/endpoint-builder.d.ts.map +1 -0
- package/dist/client/error-handler.d.ts +36 -0
- package/dist/client/error-handler.d.ts.map +1 -0
- package/dist/client/http-client.d.ts +43 -0
- package/dist/client/http-client.d.ts.map +1 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/components/CreateApplicantForm.d.ts +10 -0
- package/dist/components/CreateApplicantForm.d.ts.map +1 -0
- package/dist/components/CreateCompanyApplicantForm.d.ts +10 -0
- package/dist/components/CreateCompanyApplicantForm.d.ts.map +1 -0
- package/dist/components/Header.d.ts +16 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/KycWorkflow.d.ts +17 -0
- package/dist/components/KycWorkflow.d.ts.map +1 -0
- package/dist/components/Logo.d.ts +13 -0
- package/dist/components/Logo.d.ts.map +1 -0
- package/dist/components/core/Badge.d.ts +11 -0
- package/dist/components/core/Badge.d.ts.map +1 -0
- package/dist/components/core/Button.d.ts +12 -0
- package/dist/components/core/Button.d.ts.map +1 -0
- package/dist/components/core/Card.d.ts +22 -0
- package/dist/components/core/Card.d.ts.map +1 -0
- package/dist/components/core/FileUpload.d.ts +16 -0
- package/dist/components/core/FileUpload.d.ts.map +1 -0
- package/dist/components/core/Input.d.ts +14 -0
- package/dist/components/core/Input.d.ts.map +1 -0
- package/dist/components/core/MultiSelect.d.ts +18 -0
- package/dist/components/core/MultiSelect.d.ts.map +1 -0
- package/dist/components/core/PhoneInput.d.ts +11 -0
- package/dist/components/core/PhoneInput.d.ts.map +1 -0
- package/dist/components/core/SearchableSelect.d.ts +27 -0
- package/dist/components/core/SearchableSelect.d.ts.map +1 -0
- package/dist/components/core/Select.d.ts +19 -0
- package/dist/components/core/Select.d.ts.map +1 -0
- package/dist/components/core/Spinner.d.ts +10 -0
- package/dist/components/core/Spinner.d.ts.map +1 -0
- package/dist/components/core/index.d.ts +11 -0
- package/dist/components/core/index.d.ts.map +1 -0
- package/dist/components/identity/IdentityVerificationStep.d.ts +13 -0
- package/dist/components/identity/IdentityVerificationStep.d.ts.map +1 -0
- package/dist/components/identity/index.d.ts +2 -0
- package/dist/components/identity/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/status/KycStatusDisplay.d.ts +17 -0
- package/dist/components/status/KycStatusDisplay.d.ts.map +1 -0
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/index.d.ts.map +1 -0
- package/dist/components/steps/AppropriatenessTestStep.d.ts +9 -0
- package/dist/components/steps/AppropriatenessTestStep.d.ts.map +1 -0
- package/dist/components/steps/InvestorCategorizationStep.d.ts +13 -0
- package/dist/components/steps/InvestorCategorizationStep.d.ts.map +1 -0
- package/dist/components/steps/OverviewStep.d.ts +12 -0
- package/dist/components/steps/OverviewStep.d.ts.map +1 -0
- package/dist/components/steps/QuestionnaireStep.d.ts +9 -0
- package/dist/components/steps/QuestionnaireStep.d.ts.map +1 -0
- package/dist/components/steps/RiskScoringStep.d.ts +9 -0
- package/dist/components/steps/RiskScoringStep.d.ts.map +1 -0
- package/dist/components/steps/UploadDocumentStep.d.ts +9 -0
- package/dist/components/steps/UploadDocumentStep.d.ts.map +1 -0
- package/dist/components/steps/index.d.ts +7 -0
- package/dist/components/steps/index.d.ts.map +1 -0
- package/dist/context/MetaKYCContext.d.ts +32 -0
- package/dist/context/MetaKYCContext.d.ts.map +1 -0
- package/dist/context/MetaKYCProvider.d.ts +16 -0
- package/dist/context/MetaKYCProvider.d.ts.map +1 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/useMetaKYC.d.ts +8 -0
- package/dist/context/useMetaKYC.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useApplicant.d.ts +14 -0
- package/dist/hooks/useApplicant.d.ts.map +1 -0
- package/dist/hooks/useAppropriatenessTest.d.ts +15 -0
- package/dist/hooks/useAppropriatenessTest.d.ts.map +1 -0
- package/dist/hooks/useIdentityVerification.d.ts +16 -0
- package/dist/hooks/useIdentityVerification.d.ts.map +1 -0
- package/dist/hooks/useKycWorkflow.d.ts +27 -0
- package/dist/hooks/useKycWorkflow.d.ts.map +1 -0
- package/dist/hooks/useOverview.d.ts +14 -0
- package/dist/hooks/useOverview.d.ts.map +1 -0
- package/dist/hooks/useQuestionnaire.d.ts +17 -0
- package/dist/hooks/useQuestionnaire.d.ts.map +1 -0
- package/dist/hooks/useRiskScoring.d.ts +18 -0
- package/dist/hooks/useRiskScoring.d.ts.map +1 -0
- package/dist/hooks/useUploadDocument.d.ts +15 -0
- package/dist/hooks/useUploadDocument.d.ts.map +1 -0
- package/dist/identity/index.d.ts +6 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/load-script.d.ts +13 -0
- package/dist/identity/load-script.d.ts.map +1 -0
- package/dist/identity/provider-manager.d.ts +20 -0
- package/dist/identity/provider-manager.d.ts.map +1 -0
- package/dist/identity/providers/onfido.d.ts +28 -0
- package/dist/identity/providers/onfido.d.ts.map +1 -0
- package/dist/identity/providers/sardin-ai.d.ts +56 -0
- package/dist/identity/providers/sardin-ai.d.ts.map +1 -0
- package/dist/identity/providers/sumsub.d.ts +31 -0
- package/dist/identity/providers/sumsub.d.ts.map +1 -0
- package/dist/index.cjs +103 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8166 -0
- package/dist/index.js.map +1 -0
- package/dist/services/applicant.service.d.ts +64 -0
- package/dist/services/applicant.service.d.ts.map +1 -0
- package/dist/services/appropriateness-test.service.d.ts +20 -0
- package/dist/services/appropriateness-test.service.d.ts.map +1 -0
- package/dist/services/base-information.service.d.ts +27 -0
- package/dist/services/base-information.service.d.ts.map +1 -0
- package/dist/services/identity.service.d.ts +35 -0
- package/dist/services/identity.service.d.ts.map +1 -0
- package/dist/services/index.d.ts +11 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/investor-categorization.service.d.ts +20 -0
- package/dist/services/investor-categorization.service.d.ts.map +1 -0
- package/dist/services/overview.service.d.ts +20 -0
- package/dist/services/overview.service.d.ts.map +1 -0
- package/dist/services/questionnaire.service.d.ts +20 -0
- package/dist/services/questionnaire.service.d.ts.map +1 -0
- package/dist/services/risk-scoring.service.d.ts +25 -0
- package/dist/services/risk-scoring.service.d.ts.map +1 -0
- package/dist/services/theme.service.d.ts +31 -0
- package/dist/services/theme.service.d.ts.map +1 -0
- package/dist/services/upload-document.service.d.ts +24 -0
- package/dist/services/upload-document.service.d.ts.map +1 -0
- package/dist/state/event-emitter.d.ts +27 -0
- package/dist/state/event-emitter.d.ts.map +1 -0
- package/dist/state/index.d.ts +5 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/step-router.d.ts +45 -0
- package/dist/state/step-router.d.ts.map +1 -0
- package/dist/state/workflow-orchestrator.d.ts +58 -0
- package/dist/state/workflow-orchestrator.d.ts.map +1 -0
- package/dist/state/workflow-state.d.ts +108 -0
- package/dist/state/workflow-state.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/presets.d.ts +35 -0
- package/dist/theme/presets.d.ts.map +1 -0
- package/dist/theme/theme-manager.d.ts +63 -0
- package/dist/theme/theme-manager.d.ts.map +1 -0
- package/dist/types/applicant.d.ts +167 -0
- package/dist/types/applicant.d.ts.map +1 -0
- package/dist/types/appropriateness-test.d.ts +71 -0
- package/dist/types/appropriateness-test.d.ts.map +1 -0
- package/dist/types/common.d.ts +78 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/enums.d.ts +118 -0
- package/dist/types/enums.d.ts.map +1 -0
- package/dist/types/form-config.d.ts +113 -0
- package/dist/types/form-config.d.ts.map +1 -0
- package/dist/types/identity.d.ts +72 -0
- package/dist/types/identity.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/investor-categorization.d.ts +34 -0
- package/dist/types/investor-categorization.d.ts.map +1 -0
- package/dist/types/overview.d.ts +26 -0
- package/dist/types/overview.d.ts.map +1 -0
- package/dist/types/questionnaire.d.ts +83 -0
- package/dist/types/questionnaire.d.ts.map +1 -0
- package/dist/types/risk-scoring.d.ts +107 -0
- package/dist/types/risk-scoring.d.ts.map +1 -0
- package/dist/types/theme.d.ts +158 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/upload-document.d.ts +78 -0
- package/dist/types/upload-document.d.ts.map +1 -0
- package/dist/types/workflow.d.ts +71 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +6 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/file.d.ts +21 -0
- package/dist/utils/file.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +43 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/validation/appropriateness-schema.d.ts +13 -0
- package/dist/validation/appropriateness-schema.d.ts.map +1 -0
- package/dist/validation/index.d.ts +5 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/questionnaire-schema.d.ts +17 -0
- package/dist/validation/questionnaire-schema.d.ts.map +1 -0
- package/dist/validation/risk-scoring-schema.d.ts +12 -0
- package/dist/validation/risk-scoring-schema.d.ts.map +1 -0
- package/dist/validation/upload-document-schema.d.ts +12 -0
- package/dist/validation/upload-document-schema.d.ts.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ApplicantFormField, CompanyApplicantFormField } from '../client/config';
|
|
2
|
+
|
|
3
|
+
export declare const CountriesType: {
|
|
4
|
+
readonly Nationality: 10;
|
|
5
|
+
readonly Address: 20;
|
|
6
|
+
readonly CountryOfBirth: 30;
|
|
7
|
+
readonly PhoneNumber: 40;
|
|
8
|
+
readonly UboAddress: 50;
|
|
9
|
+
};
|
|
10
|
+
export type CountriesTypeValue = typeof CountriesType[keyof typeof CountriesType];
|
|
11
|
+
export interface FieldMeta {
|
|
12
|
+
label: string;
|
|
13
|
+
type: 'text' | 'email' | 'tel' | 'date' | 'select' | 'multiselect';
|
|
14
|
+
/** For select/multiselect country fields: the default CountriesType passed to the API */
|
|
15
|
+
countriesType?: CountriesTypeValue;
|
|
16
|
+
}
|
|
17
|
+
/** A single field entry for the identity review page */
|
|
18
|
+
export interface ReviewFieldEntry {
|
|
19
|
+
/** Built-in field name from FIELD_METADATA (e.g. 'firstName', 'country') */
|
|
20
|
+
name: string;
|
|
21
|
+
/** true = rendered as an editable input; false / absent = read-only display */
|
|
22
|
+
editable?: boolean;
|
|
23
|
+
/** Optional label override */
|
|
24
|
+
displayText?: string;
|
|
25
|
+
/** Column span in the 4-column grid (1=quarter, 2=half, 3=three-quarter, 4=full) */
|
|
26
|
+
colSpan?: 1 | 2 | 3 | 4;
|
|
27
|
+
}
|
|
28
|
+
export declare const FIELD_METADATA: Record<string, FieldMeta>;
|
|
29
|
+
export declare const COMPANY_FIELD_METADATA: Record<string, FieldMeta>;
|
|
30
|
+
export declare const DEFAULT_COMPANY_VISIBLE_FIELDS: CompanyApplicantFormField[];
|
|
31
|
+
export declare const DEFAULT_VISIBLE_FIELDS: ApplicantFormField[];
|
|
32
|
+
export declare const ALLOWED_LANGUAGES: Array<{
|
|
33
|
+
value: string;
|
|
34
|
+
label: string;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* A single field entry inside a form page.
|
|
38
|
+
* Either refers to a built-in applicant field (name) or a custom field.
|
|
39
|
+
*/
|
|
40
|
+
export interface FormFieldEntry {
|
|
41
|
+
/** Built-in field identifier: 'firstName', 'lastName', 'email', etc. Omit for custom fields. */
|
|
42
|
+
name?: string;
|
|
43
|
+
/** Column span in the 4-column grid. 1 = quarter, 2 = half, 3 = three-quarter, 4 = full. */
|
|
44
|
+
colSpan: 1 | 2 | 3 | 4;
|
|
45
|
+
/** Whether this is a custom out-of-scope field */
|
|
46
|
+
isCustom?: boolean;
|
|
47
|
+
/** Type of custom field */
|
|
48
|
+
customType?: 'text' | 'checkbox' | 'link_checkbox' | 'link' | 'group_checkbox' | 'radio_group' | 'paragraph' | 'html' | 'br';
|
|
49
|
+
/** Override the label shown to the user. If empty, falls back to the default field name/label. */
|
|
50
|
+
displayText?: string;
|
|
51
|
+
/** Display label for the custom field */
|
|
52
|
+
label?: string;
|
|
53
|
+
/** Key under which the value is stored in applicantAdditionalData.paramName */
|
|
54
|
+
paramName?: string;
|
|
55
|
+
/** Whether the field is mandatory */
|
|
56
|
+
required?: boolean;
|
|
57
|
+
/** For link_checkbox: URL the hyperlink points to */
|
|
58
|
+
linkUrl?: string;
|
|
59
|
+
/** For link_checkbox: text of the hyperlink (e.g. "Terms & Conditions") */
|
|
60
|
+
linkText?: string;
|
|
61
|
+
/** For group_checkbox / radio_group: the selectable options */
|
|
62
|
+
options?: Array<{
|
|
63
|
+
value: string;
|
|
64
|
+
label: string;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* For group_checkbox: when true only one option can be checked at a time
|
|
68
|
+
* (mutually exclusive checkboxes, distinct from radio_group in appearance).
|
|
69
|
+
*/
|
|
70
|
+
singleSelect?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* For country-type built-in fields: overrides the default CountriesType used when fetching
|
|
73
|
+
* the country list from the API (e.g. Nationality=10, Address=20, CountryOfBirth=30, PhoneNumber=40).
|
|
74
|
+
* If omitted, the SDK uses the default from FIELD_METADATA for that field.
|
|
75
|
+
*/
|
|
76
|
+
countriesType?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Optional help/tooltip text shown next to the field as a clickable ? button.
|
|
79
|
+
* Applies to both built-in and custom fields.
|
|
80
|
+
*/
|
|
81
|
+
helpText?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Review-page mode only.
|
|
84
|
+
* true = field is rendered as an editable input; false / absent = rendered as read-only text.
|
|
85
|
+
*/
|
|
86
|
+
editable?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Per-field label display mode.
|
|
89
|
+
* 'label' (default) — a label element is shown above the input.
|
|
90
|
+
* 'placeholder' — no label element; the label text is used as the input placeholder instead.
|
|
91
|
+
* When absent, falls back to the global fieldLabelMode from theme/config.
|
|
92
|
+
*/
|
|
93
|
+
labelMode?: 'label' | 'placeholder';
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* A single page of the applicant form with optional header text and an ordered list of fields.
|
|
97
|
+
*/
|
|
98
|
+
export interface FormPage {
|
|
99
|
+
title?: string;
|
|
100
|
+
subtitle?: string;
|
|
101
|
+
description?: string;
|
|
102
|
+
fields: FormFieldEntry[];
|
|
103
|
+
/**
|
|
104
|
+
* If set, this page is only shown when the custom field with this paramName has value 'true'
|
|
105
|
+
* (or any non-empty value for radio/text). Typically tied to a checkbox on a previous page.
|
|
106
|
+
*/
|
|
107
|
+
conditionalOn?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional help/tooltip text shown as a ? button next to the conditional gate checkbox.
|
|
110
|
+
*/
|
|
111
|
+
conditionalHelpText?: string;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=form-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-config.d.ts","sourceRoot":"","sources":["../../src/types/form-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAItF,e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identity request input
|
|
5
|
+
*/
|
|
6
|
+
export interface IdentityRequest {
|
|
7
|
+
applicantId: number;
|
|
8
|
+
restart?: boolean;
|
|
9
|
+
redirectUrl?: string;
|
|
10
|
+
ttl?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Applicant registration request output (with identity token)
|
|
14
|
+
*/
|
|
15
|
+
export interface ApplicantRegistrationRequestOutput {
|
|
16
|
+
applicantId: number;
|
|
17
|
+
provider: IdentityVerificationProvider | null;
|
|
18
|
+
publicProviderTokenObject: Record<string, any> | null;
|
|
19
|
+
identityWorkflow?: string;
|
|
20
|
+
redirectUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Sumsub SDK configuration (passed to the JS Web SDK)
|
|
24
|
+
*/
|
|
25
|
+
export interface SumsubConfig {
|
|
26
|
+
accessToken: string;
|
|
27
|
+
applicantEmail?: string;
|
|
28
|
+
applicantPhone?: string;
|
|
29
|
+
externalUserId?: string;
|
|
30
|
+
flowName?: string;
|
|
31
|
+
lang?: string;
|
|
32
|
+
theme?: 'light' | 'dark';
|
|
33
|
+
/** WebSDK 2.0: name of a customization created in the Sumsub Dashboard. */
|
|
34
|
+
customizationName?: string;
|
|
35
|
+
/** WebSDK 1.0 fallback: URL to an external CSS file. */
|
|
36
|
+
customCss?: string;
|
|
37
|
+
/** WebSDK 1.0 fallback: inline CSS string injected into the SDK iframe. */
|
|
38
|
+
customCssStr?: string;
|
|
39
|
+
adaptIframeHeight?: boolean;
|
|
40
|
+
onTokenRefresh: () => Promise<string>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Onfido SDK configuration
|
|
44
|
+
*/
|
|
45
|
+
export interface OnfidoConfig {
|
|
46
|
+
token: string;
|
|
47
|
+
containerId?: string;
|
|
48
|
+
steps?: OnfidoStep[];
|
|
49
|
+
onComplete?: () => void;
|
|
50
|
+
onError?: (error: any) => void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Onfido step configuration
|
|
54
|
+
*/
|
|
55
|
+
export interface OnfidoStep {
|
|
56
|
+
type: 'welcome' | 'document' | 'face' | 'complete';
|
|
57
|
+
options?: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* SardinAI Risk SDK configuration
|
|
61
|
+
*/
|
|
62
|
+
export interface SardinAIConfig {
|
|
63
|
+
clientId: string;
|
|
64
|
+
sessionKey?: string;
|
|
65
|
+
environment?: 'production' | 'sandbox';
|
|
66
|
+
region?: 'us' | 'eu' | 'ca' | 'au';
|
|
67
|
+
flow?: string;
|
|
68
|
+
enableBiometrics?: boolean;
|
|
69
|
+
enablePortScanning?: boolean;
|
|
70
|
+
userIdHash?: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/types/identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAC9C,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE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;CACrB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './enums';
|
|
2
|
+
export * from './common';
|
|
3
|
+
export * from './workflow';
|
|
4
|
+
export * from './applicant';
|
|
5
|
+
export * from './questionnaire';
|
|
6
|
+
export * from './upload-document';
|
|
7
|
+
export * from './appropriateness-test';
|
|
8
|
+
export * from './overview';
|
|
9
|
+
export * from './risk-scoring';
|
|
10
|
+
export * from './identity';
|
|
11
|
+
export * from './investor-categorization';
|
|
12
|
+
export * from './form-config';
|
|
13
|
+
export * from './theme';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,YAAY,CAAC;AAG3B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,YAAY,CAAC;AAG3B,cAAc,2BAA2B,CAAC;AAG1C,cAAc,eAAe,CAAC;AAG9B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Investor categorization type (matches backend enum)
|
|
3
|
+
*/
|
|
4
|
+
export declare enum InvestorCategorizationType {
|
|
5
|
+
Individual = 0,
|
|
6
|
+
Sophisticated = 1,
|
|
7
|
+
HighNetWorth = 2,
|
|
8
|
+
Business = 3
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Investor categorization input
|
|
12
|
+
*/
|
|
13
|
+
export interface InvestorCategorizationInput {
|
|
14
|
+
applicantId: number;
|
|
15
|
+
investorType: InvestorCategorizationType;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Set investor categorization result
|
|
19
|
+
*/
|
|
20
|
+
export interface SetInvestorCategorizationResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
message?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare enum InvestorCategoryType {
|
|
25
|
+
Retail = 0,
|
|
26
|
+
Professional = 1,
|
|
27
|
+
EligibleCounterparty = 2
|
|
28
|
+
}
|
|
29
|
+
export interface InvestorCategorizationResult {
|
|
30
|
+
success: boolean;
|
|
31
|
+
category: InvestorCategoryType;
|
|
32
|
+
message?: string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=investor-categorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"investor-categorization.d.ts","sourceRoot":"","sources":["../../src/types/investor-categorization.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,0BAA0B;IACpC,UAAU,IAAI;IACd,aAAa,IAAI;IACjB,YAAY,IAAI;IAChB,QAAQ,IAAI;CACb;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,0BAA0B,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,oBAAY,oBAAoB;IAC9B,MAAM,IAAI;IACV,YAAY,IAAI;IAChB,oBAAoB,IAAI;CACzB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Overview step output (from API)
|
|
3
|
+
*/
|
|
4
|
+
export interface ApplicantOverviewStepOutput {
|
|
5
|
+
order: number;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Overview data DTO (matches API response)
|
|
11
|
+
*/
|
|
12
|
+
export interface OverviewDataDto {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
steps: ApplicantOverviewStepOutput[];
|
|
16
|
+
}
|
|
17
|
+
export interface OverviewDataItem {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
section?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OverviewSection {
|
|
23
|
+
title: string;
|
|
24
|
+
items: OverviewDataItem[];
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=overview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/types/overview.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC;AAGD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Question group DTO
|
|
3
|
+
*/
|
|
4
|
+
export interface QuestionGroupDto {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
order: number;
|
|
9
|
+
questions?: QuestionDto[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Question DTO
|
|
13
|
+
*/
|
|
14
|
+
export interface QuestionDto {
|
|
15
|
+
id: number;
|
|
16
|
+
text: string;
|
|
17
|
+
key: string;
|
|
18
|
+
questionGroupId?: number;
|
|
19
|
+
questionGroup?: QuestionGroupDto;
|
|
20
|
+
order: number;
|
|
21
|
+
pageNumber?: number;
|
|
22
|
+
canMultipleAnswer: boolean;
|
|
23
|
+
showAsDropdown: boolean;
|
|
24
|
+
isRequired: boolean;
|
|
25
|
+
regex?: string;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
errorMessage?: string;
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
defaultAnswers?: string[];
|
|
32
|
+
questionDefaultAnswers?: QuestionDefaultAnswerDto[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Question default answer DTO (full object from API)
|
|
36
|
+
*/
|
|
37
|
+
export interface QuestionDefaultAnswerDto {
|
|
38
|
+
answer: string;
|
|
39
|
+
isRejectionCause: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Default answer DTO (legacy - kept for compatibility)
|
|
43
|
+
*/
|
|
44
|
+
export interface DefaultAnswerDto {
|
|
45
|
+
id: number;
|
|
46
|
+
value: string;
|
|
47
|
+
order: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Questionnaire output DTO
|
|
51
|
+
*/
|
|
52
|
+
export interface QuestionnaireOutput {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
displayName: string;
|
|
56
|
+
subtitle: string;
|
|
57
|
+
description: string;
|
|
58
|
+
questionGroups: QuestionGroupDto[];
|
|
59
|
+
questions: QuestionDto[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Question result for submission
|
|
63
|
+
*/
|
|
64
|
+
export interface QuestionResult {
|
|
65
|
+
questionId: number;
|
|
66
|
+
values: string[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Fill questionnaire input
|
|
70
|
+
*/
|
|
71
|
+
export interface FillQuestionnarieInput {
|
|
72
|
+
applicantId: number;
|
|
73
|
+
questionnarieId: number;
|
|
74
|
+
questionResults: QuestionResult[];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Fill questionnaire result
|
|
78
|
+
*/
|
|
79
|
+
export interface FillQuestionnairesResult {
|
|
80
|
+
success: boolean;
|
|
81
|
+
message?: string;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=questionnaire.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"questionnaire.d.ts","sourceRoot":"","sources":["../../src/types/questionnaire.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,sBAAsB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,SAAS,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { RiskLevel } from './enums';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Value data type for risk criteria
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ValueDataType {
|
|
7
|
+
String = 0,
|
|
8
|
+
Integer = 1,
|
|
9
|
+
/** Backend value 2 — Money/currency type; triggers locale-aware number formatting in options */
|
|
10
|
+
Money = 2,
|
|
11
|
+
Boolean = 3,
|
|
12
|
+
Date = 4,
|
|
13
|
+
Country = 5,
|
|
14
|
+
DigitOnly = 6
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Risk criteria type
|
|
18
|
+
*/
|
|
19
|
+
export declare enum RiskCriteriaType {
|
|
20
|
+
Text = 0,
|
|
21
|
+
Radio = 1,
|
|
22
|
+
Checkbox = 2,
|
|
23
|
+
Dropdown = 3,
|
|
24
|
+
Country = 4
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Built-in criteria type enum
|
|
28
|
+
*/
|
|
29
|
+
export declare enum CriteriaBuiltInType {
|
|
30
|
+
None = 0,
|
|
31
|
+
Country = 1
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Risk criteria answer DTO (legacy - for full admin interface)
|
|
35
|
+
*/
|
|
36
|
+
export interface RiskCriteriaAnswerDto {
|
|
37
|
+
id: number;
|
|
38
|
+
text: string;
|
|
39
|
+
value: string;
|
|
40
|
+
score: number;
|
|
41
|
+
order: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Risk criteria DTO (light version from GetCriterias API)
|
|
45
|
+
*/
|
|
46
|
+
export interface RiskCriteriaDto {
|
|
47
|
+
id: number;
|
|
48
|
+
name: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
builtInType?: CriteriaBuiltInType;
|
|
52
|
+
valueDataType: ValueDataType;
|
|
53
|
+
defaultValues?: string[];
|
|
54
|
+
multipleValue: boolean;
|
|
55
|
+
hasCustomValue: boolean;
|
|
56
|
+
hideCriteriaThresholds: boolean;
|
|
57
|
+
isRequired: boolean;
|
|
58
|
+
pageNumber?: number;
|
|
59
|
+
criteriaType?: RiskCriteriaType;
|
|
60
|
+
order?: number;
|
|
61
|
+
answers?: RiskCriteriaAnswerDto[];
|
|
62
|
+
min?: number;
|
|
63
|
+
max?: number;
|
|
64
|
+
regex?: string;
|
|
65
|
+
errorMessage?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Criteria value input (matches C# DTO)
|
|
69
|
+
*/
|
|
70
|
+
export interface CriteriaValueInput {
|
|
71
|
+
riskCriteriaId: number;
|
|
72
|
+
values: string[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Risk calculation input (matches C# DTO exactly)
|
|
76
|
+
*/
|
|
77
|
+
export interface RiskCalculationInput {
|
|
78
|
+
applicantId?: number;
|
|
79
|
+
riskPlanId?: number;
|
|
80
|
+
criteriaValueInputs: CriteriaValueInput[];
|
|
81
|
+
}
|
|
82
|
+
export interface RiskCalculationItem {
|
|
83
|
+
criteriaId: number;
|
|
84
|
+
value: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Risk scoring result
|
|
88
|
+
*/
|
|
89
|
+
export interface RiskScoringResult {
|
|
90
|
+
success: boolean;
|
|
91
|
+
riskLevel: RiskLevel;
|
|
92
|
+
totalScore: number;
|
|
93
|
+
message?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Risk scoring plan DTO
|
|
97
|
+
*/
|
|
98
|
+
export interface RiskScoringPlanDto {
|
|
99
|
+
id: number;
|
|
100
|
+
name: string;
|
|
101
|
+
displayName: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
lowRiskThreshold: number;
|
|
104
|
+
mediumRiskThreshold: number;
|
|
105
|
+
highRiskThreshold: number;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=risk-scoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-scoring.d.ts","sourceRoot":"","sources":["../../src/types/risk-scoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,oBAAY,aAAa;IACvB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,gGAAgG;IAChG,KAAK,IAAI;IACT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MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;CAC3C;AAGD,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logo configuration
|
|
3
|
+
*/
|
|
4
|
+
export interface LogoConfig {
|
|
5
|
+
url?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Color palette configuration
|
|
13
|
+
*/
|
|
14
|
+
export interface ColorPalette {
|
|
15
|
+
primary: string;
|
|
16
|
+
primaryHover: string;
|
|
17
|
+
primaryLight: string;
|
|
18
|
+
primaryDark: string;
|
|
19
|
+
secondary: string;
|
|
20
|
+
secondaryHover: string;
|
|
21
|
+
success: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
danger: string;
|
|
24
|
+
info: string;
|
|
25
|
+
background: string;
|
|
26
|
+
surface: string;
|
|
27
|
+
border: string;
|
|
28
|
+
textPrimary: string;
|
|
29
|
+
textSecondary: string;
|
|
30
|
+
textMuted: string;
|
|
31
|
+
inputBg?: string;
|
|
32
|
+
inputText?: string;
|
|
33
|
+
inputBorder?: string;
|
|
34
|
+
inputBorderFocus?: string;
|
|
35
|
+
inputPlaceholder?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Typography configuration
|
|
39
|
+
*/
|
|
40
|
+
export interface TypographyConfig {
|
|
41
|
+
fontFamily: string;
|
|
42
|
+
headingFont?: string;
|
|
43
|
+
fontSize?: {
|
|
44
|
+
xs: string;
|
|
45
|
+
sm: string;
|
|
46
|
+
base: string;
|
|
47
|
+
lg: string;
|
|
48
|
+
xl: string;
|
|
49
|
+
'2xl': string;
|
|
50
|
+
'3xl': string;
|
|
51
|
+
};
|
|
52
|
+
fontWeight?: {
|
|
53
|
+
normal: number;
|
|
54
|
+
medium: number;
|
|
55
|
+
semibold: number;
|
|
56
|
+
bold: number;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Spacing and layout configuration
|
|
61
|
+
*/
|
|
62
|
+
export interface SpacingConfig {
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
cardPadding: string;
|
|
65
|
+
inputHeight: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Complete theme configuration
|
|
69
|
+
*/
|
|
70
|
+
export interface ThemeConfig {
|
|
71
|
+
/** Theme name/identifier */
|
|
72
|
+
name?: string;
|
|
73
|
+
/** Title/heading for the SDK */
|
|
74
|
+
title?: string;
|
|
75
|
+
/** Logo configuration */
|
|
76
|
+
logo?: LogoConfig;
|
|
77
|
+
/** Color palette */
|
|
78
|
+
colors: ColorPalette;
|
|
79
|
+
/** Typography settings */
|
|
80
|
+
typography?: TypographyConfig;
|
|
81
|
+
/** Spacing and layout */
|
|
82
|
+
spacing?: SpacingConfig;
|
|
83
|
+
/** Custom CSS to inject */
|
|
84
|
+
customCSS?: string;
|
|
85
|
+
/** Dark mode color overrides */
|
|
86
|
+
darkMode?: {
|
|
87
|
+
colors: Partial<ColorPalette>;
|
|
88
|
+
};
|
|
89
|
+
/** Applicant form visible fields (ordered) from backend config */
|
|
90
|
+
applicantFormVisibleFields?: string[];
|
|
91
|
+
/** Applicant form client-required fields from backend config */
|
|
92
|
+
applicantFormRequiredFields?: string[];
|
|
93
|
+
/** Allowed language codes for the Default Language dropdown e.g. ['EN','DE'] */
|
|
94
|
+
allowedLanguages?: string[];
|
|
95
|
+
/** Multi-page applicant form layout configuration */
|
|
96
|
+
applicantFormPages?: import('./form-config').FormPage[];
|
|
97
|
+
/** Identity review page — single FormPage with fields + editable flags */
|
|
98
|
+
reviewPageFields?: import('./form-config').FormPage[];
|
|
99
|
+
/**
|
|
100
|
+
* When true the identity review/confirmation page is skipped entirely.
|
|
101
|
+
* The SDK auto-requests identity on mount and shows the provider UI directly.
|
|
102
|
+
*/
|
|
103
|
+
reviewPageDisabled?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Controls how field labels are rendered in the applicant form.
|
|
106
|
+
* 'label' (default) — a label element is shown above each input.
|
|
107
|
+
* 'placeholder' — no label element; the label text is used as the input placeholder.
|
|
108
|
+
*/
|
|
109
|
+
fieldLabelMode?: 'label' | 'placeholder';
|
|
110
|
+
/** Company (KYB) form visible fields (ordered) from backend config */
|
|
111
|
+
companyFormVisibleFields?: string[];
|
|
112
|
+
/** Company form client-required fields from backend config */
|
|
113
|
+
companyFormRequiredFields?: string[];
|
|
114
|
+
/** Multi-page company form layout configuration */
|
|
115
|
+
companyFormPages?: import('./form-config').FormPage[];
|
|
116
|
+
/** Company review page fields */
|
|
117
|
+
companyReviewPageFields?: import('./form-config').FormPage[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Predefined theme presets
|
|
121
|
+
*/
|
|
122
|
+
export declare enum ThemePreset {
|
|
123
|
+
Default = "default",
|
|
124
|
+
Corporate = "corporate",
|
|
125
|
+
Fintech = "fintech",
|
|
126
|
+
Healthcare = "healthcare",
|
|
127
|
+
Modern = "modern",
|
|
128
|
+
Minimal = "minimal"
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Theme configuration from backend
|
|
132
|
+
*/
|
|
133
|
+
export interface ThemeConfigurationDto {
|
|
134
|
+
tenantId?: number;
|
|
135
|
+
isEnabled: boolean;
|
|
136
|
+
preset?: ThemePreset;
|
|
137
|
+
title?: string;
|
|
138
|
+
logo?: LogoConfig;
|
|
139
|
+
colors?: Partial<ColorPalette>;
|
|
140
|
+
typography?: TypographyConfig;
|
|
141
|
+
spacing?: SpacingConfig;
|
|
142
|
+
customCSS?: string;
|
|
143
|
+
darkMode?: {
|
|
144
|
+
colors: Partial<ColorPalette>;
|
|
145
|
+
};
|
|
146
|
+
applicantFormVisibleFields?: string[];
|
|
147
|
+
applicantFormRequiredFields?: string[];
|
|
148
|
+
allowedLanguages?: string[];
|
|
149
|
+
applicantFormPages?: import('./form-config').FormPage[];
|
|
150
|
+
reviewPageFields?: import('./form-config').FormPage[];
|
|
151
|
+
reviewPageDisabled?: boolean;
|
|
152
|
+
fieldLabelMode?: 'label' | 'placeholder';
|
|
153
|
+
companyFormVisibleFields?: string[];
|
|
154
|
+
companyFormRequiredFields?: string[];
|
|
155
|
+
companyFormPages?: import('./form-config').FormPage[];
|
|
156
|
+
companyReviewPageFields?: import('./form-config').FormPage[];
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,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