@vpdev2/metakyc-sdk 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 +104 -0
- package/dist/client/config.d.ts +84 -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 +16 -0
- package/dist/components/CreateApplicantForm.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 +17 -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/PhoneInput.d.ts +11 -0
- package/dist/components/core/PhoneInput.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 +9 -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 +8 -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 +13 -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 +12 -0
- package/dist/components/steps/QuestionnaireStep.d.ts.map +1 -0
- package/dist/components/steps/RiskScoringStep.d.ts +13 -0
- package/dist/components/steps/RiskScoringStep.d.ts.map +1 -0
- package/dist/components/steps/UploadDocumentStep.d.ts +12 -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 +30 -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 +14 -0
- package/dist/hooks/useQuestionnaire.d.ts.map +1 -0
- package/dist/hooks/useRiskScoring.d.ts +15 -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 +36 -0
- package/dist/identity/providers/sumsub.d.ts.map +1 -0
- package/dist/index.cjs +19 -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 +4882 -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 +30 -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 +57 -0
- package/dist/theme/theme-manager.d.ts.map +1 -0
- package/dist/types/applicant.d.ts +135 -0
- package/dist/types/applicant.d.ts.map +1 -0
- package/dist/types/appropriateness-test.d.ts +70 -0
- package/dist/types/appropriateness-test.d.ts.map +1 -0
- package/dist/types/common.d.ts +76 -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 +18 -0
- package/dist/types/form-config.d.ts.map +1 -0
- package/dist/types/identity.d.ts +63 -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 +104 -0
- package/dist/types/risk-scoring.d.ts.map +1 -0
- package/dist/types/theme.d.ts +110 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/upload-document.d.ts +77 -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 +87 -0
|
@@ -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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,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;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,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/**
|
|
4
|
+
* Value data type for risk criteria
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ValueDataType {
|
|
7
|
+
String = 0,
|
|
8
|
+
Integer = 1,
|
|
9
|
+
Decimal = 2,
|
|
10
|
+
Boolean = 3,
|
|
11
|
+
Date = 4,
|
|
12
|
+
Country = 5,
|
|
13
|
+
DigitOnly = 6
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Risk criteria type
|
|
17
|
+
*/
|
|
18
|
+
export declare enum RiskCriteriaType {
|
|
19
|
+
Text = 0,
|
|
20
|
+
Radio = 1,
|
|
21
|
+
Checkbox = 2,
|
|
22
|
+
Dropdown = 3,
|
|
23
|
+
Country = 4
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Built-in criteria type enum
|
|
27
|
+
*/
|
|
28
|
+
export declare enum CriteriaBuiltInType {
|
|
29
|
+
None = 0,
|
|
30
|
+
Country = 1
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Risk criteria answer DTO (legacy - for full admin interface)
|
|
34
|
+
*/
|
|
35
|
+
export interface RiskCriteriaAnswerDto {
|
|
36
|
+
id: number;
|
|
37
|
+
text: string;
|
|
38
|
+
value: string;
|
|
39
|
+
score: number;
|
|
40
|
+
order: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Risk criteria DTO (light version from GetCriterias API)
|
|
44
|
+
*/
|
|
45
|
+
export interface RiskCriteriaDto {
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
displayName: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
builtInType?: CriteriaBuiltInType;
|
|
51
|
+
valueDataType: ValueDataType;
|
|
52
|
+
defaultValues?: string[];
|
|
53
|
+
multipleValue: boolean;
|
|
54
|
+
hasCustomValue: boolean;
|
|
55
|
+
hideCriteriaThresholds: boolean;
|
|
56
|
+
isRequired: boolean;
|
|
57
|
+
criteriaType?: RiskCriteriaType;
|
|
58
|
+
order?: number;
|
|
59
|
+
answers?: RiskCriteriaAnswerDto[];
|
|
60
|
+
min?: number;
|
|
61
|
+
max?: number;
|
|
62
|
+
regex?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Criteria value input (matches C# DTO)
|
|
66
|
+
*/
|
|
67
|
+
export interface CriteriaValueInput {
|
|
68
|
+
riskCriteriaId: number;
|
|
69
|
+
values: string[];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Risk calculation input (matches C# DTO exactly)
|
|
73
|
+
*/
|
|
74
|
+
export interface RiskCalculationInput {
|
|
75
|
+
applicantId?: number;
|
|
76
|
+
riskPlanId?: number;
|
|
77
|
+
criteriaValueInputs: CriteriaValueInput[];
|
|
78
|
+
}
|
|
79
|
+
export interface RiskCalculationItem {
|
|
80
|
+
criteriaId: number;
|
|
81
|
+
value: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Risk scoring result
|
|
85
|
+
*/
|
|
86
|
+
export interface RiskScoringResult {
|
|
87
|
+
success: boolean;
|
|
88
|
+
riskLevel: RiskLevel;
|
|
89
|
+
totalScore: number;
|
|
90
|
+
message?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Risk scoring plan DTO
|
|
94
|
+
*/
|
|
95
|
+
export interface RiskScoringPlanDto {
|
|
96
|
+
id: number;
|
|
97
|
+
name: string;
|
|
98
|
+
displayName: string;
|
|
99
|
+
description?: string;
|
|
100
|
+
lowRiskThreshold: number;
|
|
101
|
+
mediumRiskThreshold: number;
|
|
102
|
+
highRiskThreshold: number;
|
|
103
|
+
}
|
|
104
|
+
//# 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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AM,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,110 @@
|
|
|
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
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Typography configuration
|
|
34
|
+
*/
|
|
35
|
+
export interface TypographyConfig {
|
|
36
|
+
fontFamily: string;
|
|
37
|
+
headingFont?: string;
|
|
38
|
+
fontSize?: {
|
|
39
|
+
xs: string;
|
|
40
|
+
sm: string;
|
|
41
|
+
base: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
xl: string;
|
|
44
|
+
'2xl': string;
|
|
45
|
+
'3xl': string;
|
|
46
|
+
};
|
|
47
|
+
fontWeight?: {
|
|
48
|
+
normal: number;
|
|
49
|
+
medium: number;
|
|
50
|
+
semibold: number;
|
|
51
|
+
bold: number;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Spacing and layout configuration
|
|
56
|
+
*/
|
|
57
|
+
export interface SpacingConfig {
|
|
58
|
+
borderRadius: string;
|
|
59
|
+
cardPadding: string;
|
|
60
|
+
inputHeight: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Complete theme configuration
|
|
64
|
+
*/
|
|
65
|
+
export interface ThemeConfig {
|
|
66
|
+
/** Theme name/identifier */
|
|
67
|
+
name?: string;
|
|
68
|
+
/** Logo configuration */
|
|
69
|
+
logo?: LogoConfig;
|
|
70
|
+
/** Color palette */
|
|
71
|
+
colors: ColorPalette;
|
|
72
|
+
/** Typography settings */
|
|
73
|
+
typography?: TypographyConfig;
|
|
74
|
+
/** Spacing and layout */
|
|
75
|
+
spacing?: SpacingConfig;
|
|
76
|
+
/** Custom CSS to inject */
|
|
77
|
+
customCSS?: string;
|
|
78
|
+
/** Dark mode color overrides */
|
|
79
|
+
darkMode?: {
|
|
80
|
+
colors: Partial<ColorPalette>;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Predefined theme presets
|
|
85
|
+
*/
|
|
86
|
+
export declare enum ThemePreset {
|
|
87
|
+
Default = "default",
|
|
88
|
+
Corporate = "corporate",
|
|
89
|
+
Fintech = "fintech",
|
|
90
|
+
Healthcare = "healthcare",
|
|
91
|
+
Modern = "modern",
|
|
92
|
+
Minimal = "minimal"
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Theme configuration from backend
|
|
96
|
+
*/
|
|
97
|
+
export interface ThemeConfigurationDto {
|
|
98
|
+
tenantId?: number;
|
|
99
|
+
isEnabled: boolean;
|
|
100
|
+
preset?: ThemePreset;
|
|
101
|
+
logo?: LogoConfig;
|
|
102
|
+
colors?: Partial<ColorPalette>;
|
|
103
|
+
typography?: TypographyConfig;
|
|
104
|
+
spacing?: SpacingConfig;
|
|
105
|
+
customCSS?: string;
|
|
106
|
+
darkMode?: {
|
|
107
|
+
colors: Partial<ColorPalette>;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//# 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,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAE3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAA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,gCAAgC;IAChC,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;KAC/B,CAAC;CACH;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;KAC/B,CAAC;CACH"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File type enum
|
|
3
|
+
*/
|
|
4
|
+
export declare enum FileType {
|
|
5
|
+
Image = 0,
|
|
6
|
+
Video = 1,
|
|
7
|
+
PDF = 2,
|
|
8
|
+
OfficePDF = 3,
|
|
9
|
+
Custom = 4
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Document review status
|
|
13
|
+
*/
|
|
14
|
+
export declare enum DocumentReviewStatus {
|
|
15
|
+
Pending = 0,
|
|
16
|
+
Approved = 1,
|
|
17
|
+
Rejected = 2,
|
|
18
|
+
RequiresRevision = 3
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Upload document file DTO
|
|
22
|
+
*/
|
|
23
|
+
export interface UploadDocumentFileDto {
|
|
24
|
+
id: number;
|
|
25
|
+
name: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
subtitle?: string;
|
|
28
|
+
fileType: FileType;
|
|
29
|
+
maxEachFileSizeByte: number;
|
|
30
|
+
allowedTypes?: string;
|
|
31
|
+
multipleFile: boolean;
|
|
32
|
+
isRequired: boolean;
|
|
33
|
+
order: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Upload document output DTO
|
|
37
|
+
*/
|
|
38
|
+
export interface UploadDocumentOutputDto {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
displayName: string;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
description: string;
|
|
44
|
+
uploadDocumentFiles: UploadDocumentFileDto[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Upload document file result
|
|
48
|
+
*/
|
|
49
|
+
export interface UploadDocumentFileResult {
|
|
50
|
+
fileName: string;
|
|
51
|
+
fileData: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Upload document result
|
|
55
|
+
*/
|
|
56
|
+
export interface UploadDocumentResult {
|
|
57
|
+
uploadDocumentFileId: number;
|
|
58
|
+
valueList: UploadDocumentFileResult[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Fill upload document input
|
|
62
|
+
*/
|
|
63
|
+
export interface FillUploadDocumentInput {
|
|
64
|
+
applicantId: number;
|
|
65
|
+
uploadDocumentId: number;
|
|
66
|
+
uploadDocumentResults: UploadDocumentResult[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Review upload document DTO
|
|
70
|
+
*/
|
|
71
|
+
export interface ReviewUploadDocumentDto {
|
|
72
|
+
applicantId: number;
|
|
73
|
+
uploadDocumentResultId: number;
|
|
74
|
+
status: DocumentReviewStatus;
|
|
75
|
+
reviewNotes?: string;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=upload-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-document.d.ts","sourceRoot":"","s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C/C;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { WorkflowStepAction, WorkflowResultType, ApplicantProgressStatus, RiskLevel, KycStatus, ReviewStatus } from './enums';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Information about a specific workflow step
|
|
5
|
+
*/
|
|
6
|
+
export interface FlowStep {
|
|
7
|
+
order: number;
|
|
8
|
+
action: WorkflowStepAction;
|
|
9
|
+
name: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Detailed information about a workflow step
|
|
15
|
+
*/
|
|
16
|
+
export interface StepInfo {
|
|
17
|
+
action: WorkflowStepAction;
|
|
18
|
+
order: number;
|
|
19
|
+
name: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
subtitle: string;
|
|
22
|
+
description: string;
|
|
23
|
+
visibility?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Complete applicant progress result
|
|
27
|
+
* Contains all information about the current state of an applicant's workflow
|
|
28
|
+
*/
|
|
29
|
+
export interface ProgressApplicantResult {
|
|
30
|
+
applicantId: number;
|
|
31
|
+
workFlowKey: string;
|
|
32
|
+
workflowResult: WorkflowResultType | null;
|
|
33
|
+
riskLevel: RiskLevel | null;
|
|
34
|
+
kycStatus: KycStatus | null;
|
|
35
|
+
reviewStatus: ReviewStatus;
|
|
36
|
+
nextWorkflowKey: string;
|
|
37
|
+
nextWorkflowName: string;
|
|
38
|
+
status: ApplicantProgressStatus;
|
|
39
|
+
customMessage: string;
|
|
40
|
+
customMessageDE: string;
|
|
41
|
+
currentStep: FlowStep | null;
|
|
42
|
+
flowSteps: FlowStep[];
|
|
43
|
+
stepInfoList: StepInfo[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Simplified applicant progress status result
|
|
47
|
+
*/
|
|
48
|
+
export interface ProgressApplicantStatusResult {
|
|
49
|
+
applicantId: number;
|
|
50
|
+
workFlowKey: string;
|
|
51
|
+
workflowResult: WorkflowResultType | null;
|
|
52
|
+
riskLevel: RiskLevel | null;
|
|
53
|
+
kycStatus: KycStatus | null;
|
|
54
|
+
reviewStatus: ReviewStatus;
|
|
55
|
+
nextWorkflowKey: string;
|
|
56
|
+
nextWorkflowName: string;
|
|
57
|
+
status: ApplicantProgressStatus;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Workflow history entry
|
|
61
|
+
*/
|
|
62
|
+
export interface ApplicantProgressHistory {
|
|
63
|
+
id: number;
|
|
64
|
+
applicantProgressId: number;
|
|
65
|
+
workflowStepId: number | null;
|
|
66
|
+
title: string;
|
|
67
|
+
result: string;
|
|
68
|
+
additionalData: string;
|
|
69
|
+
creationTime: string;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/types/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,SAAS,EACT,SAAS,EACT,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC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AAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAE9E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert file to base64 string
|
|
3
|
+
*/
|
|
4
|
+
export declare function fileToBase64(file: File): Promise<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Validate file size
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateFileSize(file: File, maxSizeBytes: number): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Validate file type
|
|
11
|
+
*/
|
|
12
|
+
export declare function validateFileType(file: File, allowedTypes: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Format file size for display
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatFileSize(bytes: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Get accept attribute string for file input
|
|
19
|
+
*/
|
|
20
|
+
export declare function getAcceptString(allowedTypes: string): string;
|
|
21
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAY9D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAU1E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Local storage utilities for persisting workflow state
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Save applicant ID to local storage
|
|
6
|
+
*/
|
|
7
|
+
export declare function saveApplicantId(applicantId: number): void;
|
|
8
|
+
/**
|
|
9
|
+
* Get applicant ID from local storage
|
|
10
|
+
*/
|
|
11
|
+
export declare function getApplicantId(): number | null;
|
|
12
|
+
/**
|
|
13
|
+
* Clear applicant ID from local storage
|
|
14
|
+
*/
|
|
15
|
+
export declare function clearApplicantId(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Persisted workflow state interface
|
|
18
|
+
*/
|
|
19
|
+
export interface PersistedWorkflowState {
|
|
20
|
+
applicantId: number;
|
|
21
|
+
currentStepOrder?: number;
|
|
22
|
+
status: number;
|
|
23
|
+
lastUpdated: string;
|
|
24
|
+
workflowKey?: string;
|
|
25
|
+
nextWorkflowKey?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Save workflow state to local storage
|
|
29
|
+
*/
|
|
30
|
+
export declare function saveWorkflowState(state: PersistedWorkflowState): void;
|
|
31
|
+
/**
|
|
32
|
+
* Get workflow state from local storage
|
|
33
|
+
*/
|
|
34
|
+
export declare function getWorkflowState(): PersistedWorkflowState | null;
|
|
35
|
+
/**
|
|
36
|
+
* Clear workflow state from local storage
|
|
37
|
+
*/
|
|
38
|
+
export declare function clearWorkflowState(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Clear all MetaKYC data from local storage
|
|
41
|
+
*/
|
|
42
|
+
export declare function clearAllStorage(): void;
|
|
43
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAMzD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAQ9C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAMvC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAMrE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,sBAAsB,GAAG,IAAI,CAQhE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAMzC;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAGtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AppropriatenessTestOutputDto } from '../types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Generate zod schema from appropriateness test
|
|
6
|
+
*/
|
|
7
|
+
export declare function generateAppropriatenessSchema(test: AppropriatenessTestOutputDto): z.ZodObject<Record<string, z.ZodTypeAny>, "strip", z.ZodTypeAny, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const appropriatenessTestSchema: z.ZodAny;
|
|
13
|
+
//# sourceMappingURL=appropriateness-schema.d.ts.map
|