@frankieone/one-sdk 0.1.0-poc.15
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 +25 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/types/api/ExternalIdvClient.d.ts +19 -0
- package/dist/types/api/FrankieApiClient.d.ts +54 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/facades/POC/reactComponent.d.ts +644 -0
- package/dist/types/facades/POC/routing.d.ts +3 -0
- package/dist/types/facades/POC/viewWrapper.d.ts +4 -0
- package/dist/types/facades/POC/webEntry.d.ts +6 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/models/Address.d.ts +67 -0
- package/dist/types/models/Admin.d.ts +1295 -0
- package/dist/types/models/Applicant.d.ts +115 -0
- package/dist/types/models/CheckSummary.d.ts +164 -0
- package/dist/types/models/ConfigurationReader.d.ts +7 -0
- package/dist/types/models/Core.d.ts +2725 -0
- package/dist/types/models/Document.d.ts +112 -0
- package/dist/types/models/General.d.ts +196 -0
- package/dist/types/models/Organisation.d.ts +36 -0
- package/dist/types/models/Profile.d.ts +27 -0
- package/dist/types/models/SupportingDocument.d.ts +95 -0
- package/dist/types/models/User.d.ts +27 -0
- package/dist/types/models/index.d.ts +14 -0
- package/dist/types/models/transformers/apiState.d.ts +23 -0
- package/dist/types/models/utils/address.d.ts +2 -0
- package/dist/types/models/utils/base64.d.ts +11 -0
- package/dist/types/models/utils/buildCycleUtils.d.ts +1 -0
- package/dist/types/models/utils/constants.d.ts +75 -0
- package/dist/types/models/utils/date.d.ts +5 -0
- package/dist/types/models/utils/getCountryDetails.d.ts +9 -0
- package/dist/types/models/utils/getDocumentDetails.d.ts +8 -0
- package/dist/types/models/utils/helper.d.ts +4 -0
- package/dist/types/models/utils/index.d.ts +11 -0
- package/dist/types/models/utils/isEmpty.d.ts +5 -0
- package/dist/types/models/utils/sanitiser.d.ts +8 -0
- package/dist/types/modules/router/ReactDictionaryRouter.d.ts +15 -0
- package/dist/types/modules/router/common/routing.d.ts +25 -0
- package/dist/types/modules/store/ReactInMemoryStore.d.ts +24 -0
- package/dist/types/uiComponents/reactWeb.d.ts +8 -0
- package/dist/types/utils/base64.d.ts +11 -0
- package/dist/types/utils/env2Url.d.ts +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { TValidation, Nullable, ICloneable } from "./General";
|
|
2
|
+
import { Core } from "./Core";
|
|
3
|
+
declare type TFileUploadUuid = string;
|
|
4
|
+
export declare type TScan = {
|
|
5
|
+
scanId: Nullable<TFileUploadUuid>;
|
|
6
|
+
fileUploadUuid?: Nullable<string>;
|
|
7
|
+
file?: Nullable<string>;
|
|
8
|
+
mimeType?: Nullable<string>;
|
|
9
|
+
side?: Nullable<string>;
|
|
10
|
+
scanCreated?: Nullable<string>;
|
|
11
|
+
scanName?: Nullable<string>;
|
|
12
|
+
};
|
|
13
|
+
declare type TDocumentValidation = {
|
|
14
|
+
manual: {
|
|
15
|
+
isValid: Nullable<boolean>;
|
|
16
|
+
};
|
|
17
|
+
electronic: {
|
|
18
|
+
validationReport: Nullable<Scan>;
|
|
19
|
+
isValid: Nullable<boolean>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare type TDocumentVerification = {
|
|
23
|
+
electronic: Nullable<boolean>;
|
|
24
|
+
manual: Nullable<boolean>;
|
|
25
|
+
};
|
|
26
|
+
export interface IDocumentPayload {
|
|
27
|
+
documentId: Nullable<string>;
|
|
28
|
+
verified: TDocumentVerification;
|
|
29
|
+
dateOfBirth: Nullable<string>;
|
|
30
|
+
idType: Nullable<Core["enumIdType"]>;
|
|
31
|
+
idSubType: Nullable<string>;
|
|
32
|
+
country: Nullable<string>;
|
|
33
|
+
region: Nullable<string>;
|
|
34
|
+
idNumber: Nullable<string>;
|
|
35
|
+
idExpiry: Nullable<string>;
|
|
36
|
+
gender: Nullable<Core["enumGender"]>;
|
|
37
|
+
extraData: {
|
|
38
|
+
[field: string]: Nullable<string | boolean | number>;
|
|
39
|
+
};
|
|
40
|
+
docScan: TScan[];
|
|
41
|
+
scans: TScan[];
|
|
42
|
+
validation: TDocumentValidation;
|
|
43
|
+
}
|
|
44
|
+
export declare class Document implements IDocumentPayload, ICloneable<Document> {
|
|
45
|
+
documentId: Nullable<string>;
|
|
46
|
+
verified: TDocumentVerification;
|
|
47
|
+
dateOfBirth: Nullable<string>;
|
|
48
|
+
idType: Nullable<Core["enumIdType"]>;
|
|
49
|
+
idSubType: Nullable<string>;
|
|
50
|
+
country: Nullable<string>;
|
|
51
|
+
region: Nullable<string>;
|
|
52
|
+
idNumber: Nullable<string>;
|
|
53
|
+
idExpiry: Nullable<string>;
|
|
54
|
+
extraData: {
|
|
55
|
+
[field: string]: Nullable<string | boolean | number>;
|
|
56
|
+
};
|
|
57
|
+
gender: Nullable<Core["enumGender"]>;
|
|
58
|
+
scans: Scan[];
|
|
59
|
+
validation: TDocumentValidation;
|
|
60
|
+
constructor();
|
|
61
|
+
constructor(d: IDocumentConstructor);
|
|
62
|
+
get docScan(): Scan[];
|
|
63
|
+
set docScan(v: Scan[]);
|
|
64
|
+
isNewDocument(): boolean;
|
|
65
|
+
getUploadedScanUuids(): string[];
|
|
66
|
+
includeUploadFile(uploadUuid: string, s: Scan): void;
|
|
67
|
+
clone(): Document;
|
|
68
|
+
toJSON(): IDocumentPayload;
|
|
69
|
+
static fromJSON(payload: IDocumentPayload): Document;
|
|
70
|
+
static default(): Document;
|
|
71
|
+
}
|
|
72
|
+
export declare class Scan {
|
|
73
|
+
scanId: Nullable<string>;
|
|
74
|
+
fileUploadUuid: Nullable<string>;
|
|
75
|
+
file: Nullable<string>;
|
|
76
|
+
mimeType: Nullable<string>;
|
|
77
|
+
side: Nullable<string>;
|
|
78
|
+
scanCreated: Nullable<string>;
|
|
79
|
+
scanName: Nullable<string>;
|
|
80
|
+
constructor(scan: TScan);
|
|
81
|
+
toJSON(): TScan;
|
|
82
|
+
static fromJSON(payload: TScan): Scan;
|
|
83
|
+
}
|
|
84
|
+
export interface IDocumentConstructor {
|
|
85
|
+
documentId: string | null;
|
|
86
|
+
verified?: {
|
|
87
|
+
electronic: TValidation;
|
|
88
|
+
manual: TValidation;
|
|
89
|
+
};
|
|
90
|
+
dateOfBirth: string | null;
|
|
91
|
+
idType: Core["enumIdType"];
|
|
92
|
+
idSubType: string | null;
|
|
93
|
+
country: string | null;
|
|
94
|
+
region: string | null;
|
|
95
|
+
idNumber: string | null;
|
|
96
|
+
idExpiry: string | null;
|
|
97
|
+
gender: Core["enumGender"] | null;
|
|
98
|
+
extraData?: {
|
|
99
|
+
[field: string]: Nullable<string | boolean | number>;
|
|
100
|
+
};
|
|
101
|
+
scans?: Scan[];
|
|
102
|
+
validation?: {
|
|
103
|
+
manual: {
|
|
104
|
+
isValid: TValidation;
|
|
105
|
+
};
|
|
106
|
+
electronic: {
|
|
107
|
+
validationReport: Scan | null;
|
|
108
|
+
isValid: TValidation;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { Applicant, IApplicantPayload } from "./Applicant";
|
|
2
|
+
import { IDocumentPayload, Document } from "./Document";
|
|
3
|
+
import { SupportingDocument, ISupportingDocumentPayload } from "./SupportingDocument";
|
|
4
|
+
import { ICheckSummaryPayload, CheckSummary } from "./CheckSummary";
|
|
5
|
+
import { OrganisationPayload } from "./Organisation";
|
|
6
|
+
import { Admin } from "./Admin";
|
|
7
|
+
import { Core } from "./Core";
|
|
8
|
+
import { PartialDeep } from "type-fest";
|
|
9
|
+
export declare type Nullable<T> = T | null;
|
|
10
|
+
export declare type IStringOrNull = string | null;
|
|
11
|
+
export declare type Dictionary<T = any> = {
|
|
12
|
+
[key: string]: T;
|
|
13
|
+
};
|
|
14
|
+
export declare type Kvp = (AdminKvpWithoutValue | CoreKvpWithoutValue) & {
|
|
15
|
+
kvpValue: any;
|
|
16
|
+
};
|
|
17
|
+
export declare type DictionaryReturnTypes<D extends Dictionary<(...args: any) => any>> = {
|
|
18
|
+
[P in keyof D]: ReturnType<D[P]>;
|
|
19
|
+
};
|
|
20
|
+
export declare type DeepPartial<T> = PartialDeep<T>;
|
|
21
|
+
export declare interface ICloneable<T> {
|
|
22
|
+
clone(): T;
|
|
23
|
+
}
|
|
24
|
+
declare type AdminKvpWithoutValue = Omit<Admin["KeyValuePairObject"], "kvpValue">;
|
|
25
|
+
declare type CoreKvpWithoutValue = Omit<Core["KeyValuePairObject"], "kvpValue">;
|
|
26
|
+
export declare type TDOBTypeSupport = "gregorian" | "buddhist";
|
|
27
|
+
export declare type DateObject = {
|
|
28
|
+
dd: IStringOrNull;
|
|
29
|
+
mm: IStringOrNull;
|
|
30
|
+
yyyy: IStringOrNull;
|
|
31
|
+
};
|
|
32
|
+
export declare type ExtraData = {
|
|
33
|
+
[field: string]: Nullable<string | boolean | number>;
|
|
34
|
+
};
|
|
35
|
+
export declare type TValidation = boolean | null;
|
|
36
|
+
export declare type TValidationFieldIssues = string[];
|
|
37
|
+
export declare type TValidationResult = {
|
|
38
|
+
[field: string]: TValidationFieldIssues;
|
|
39
|
+
};
|
|
40
|
+
export declare type TFieldIssuesTuple = [string, TValidationFieldIssues];
|
|
41
|
+
export declare type TApplicantStatus = {
|
|
42
|
+
type: TStatusType | null;
|
|
43
|
+
label: string;
|
|
44
|
+
key: string;
|
|
45
|
+
action?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type TStatusType = "failed" | "passed" | "fail_manual" | "pass_manual" | "refer" | "wait" | "unchecked" | "archived" | "inactive";
|
|
48
|
+
export declare interface IMachineCredential {
|
|
49
|
+
customerId: string;
|
|
50
|
+
customerChildId?: string | null;
|
|
51
|
+
apiKey: string;
|
|
52
|
+
}
|
|
53
|
+
export declare interface IUserCredential {
|
|
54
|
+
username: string;
|
|
55
|
+
password: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type IFrankieClientCredentials = IMachineCredential | IUserCredential;
|
|
58
|
+
export declare interface IApplicantInformation {
|
|
59
|
+
applicant: Applicant;
|
|
60
|
+
documents?: Document[];
|
|
61
|
+
supportingDocuments?: SupportingDocument[];
|
|
62
|
+
}
|
|
63
|
+
export declare interface ICreateApplicantResponse {
|
|
64
|
+
entityId: string;
|
|
65
|
+
requestId: string;
|
|
66
|
+
}
|
|
67
|
+
export declare type SearchOptions = {
|
|
68
|
+
reference: string;
|
|
69
|
+
entityId: string;
|
|
70
|
+
};
|
|
71
|
+
export declare interface IUserRole {
|
|
72
|
+
id: number;
|
|
73
|
+
role: string;
|
|
74
|
+
isHidden: boolean;
|
|
75
|
+
permissions: [];
|
|
76
|
+
createdAt: {
|
|
77
|
+
date: Date;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export declare interface ICreateUser {
|
|
81
|
+
userData: ICreateUserData;
|
|
82
|
+
}
|
|
83
|
+
export declare interface ICreateUserData {
|
|
84
|
+
realname: string;
|
|
85
|
+
username: string;
|
|
86
|
+
email: string;
|
|
87
|
+
roleIds: number[];
|
|
88
|
+
}
|
|
89
|
+
export declare interface ITriggerChecksResponse {
|
|
90
|
+
hasCreditHeaderIssue: boolean;
|
|
91
|
+
detailLevel: TDetailLevel;
|
|
92
|
+
}
|
|
93
|
+
export declare interface IGetExternalIdvToken {
|
|
94
|
+
token: string;
|
|
95
|
+
}
|
|
96
|
+
export declare type TDetailLevel = "full";
|
|
97
|
+
export declare interface IGetApplicantDetailsResponse {
|
|
98
|
+
applicant: IApplicantPayload;
|
|
99
|
+
documents: IDocumentPayload[];
|
|
100
|
+
checkSummary: ICheckSummaryPayload;
|
|
101
|
+
}
|
|
102
|
+
export declare interface IGetApplicantInformationResponse {
|
|
103
|
+
applicant: IApplicantPayload;
|
|
104
|
+
documents: IDocumentPayload[];
|
|
105
|
+
supportingDocuments: ISupportingDocumentPayload[];
|
|
106
|
+
}
|
|
107
|
+
export interface ICreateIDVTokenResponse {
|
|
108
|
+
token: string;
|
|
109
|
+
applicant: IApplicantPayload;
|
|
110
|
+
documents: IDocumentPayload[];
|
|
111
|
+
checkSummary: ICheckSummaryPayload;
|
|
112
|
+
docTypesRequiredToCheck: IDocumentPayload["idType"][];
|
|
113
|
+
idvTwoDocuments: boolean;
|
|
114
|
+
}
|
|
115
|
+
export interface IApplicantDetails {
|
|
116
|
+
applicant: Applicant;
|
|
117
|
+
documents: Document[];
|
|
118
|
+
checkSummary: CheckSummary;
|
|
119
|
+
}
|
|
120
|
+
export interface IGetCommits {
|
|
121
|
+
coreApiCommitId: string;
|
|
122
|
+
adminApiCommitId: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface IAnalyticsData {
|
|
125
|
+
[organizationId: string]: IOrganizationAnalytics;
|
|
126
|
+
}
|
|
127
|
+
export declare type IOrganizationAnalytics = {
|
|
128
|
+
pass_rate: TPassRateAnalytics;
|
|
129
|
+
risk_level: TRiskLevelAnalytics;
|
|
130
|
+
issues: TIssueCount[];
|
|
131
|
+
};
|
|
132
|
+
export declare type TPassRateAnalytics = {
|
|
133
|
+
passed: number;
|
|
134
|
+
manually_passed: number;
|
|
135
|
+
failed: number;
|
|
136
|
+
manually_failed: number;
|
|
137
|
+
needs_attention: number;
|
|
138
|
+
unchecked: number;
|
|
139
|
+
pending: number;
|
|
140
|
+
duplicate: number;
|
|
141
|
+
archived: number;
|
|
142
|
+
inactive: number;
|
|
143
|
+
};
|
|
144
|
+
export declare type TRiskLevelAnalytics = {
|
|
145
|
+
high: number;
|
|
146
|
+
low: number;
|
|
147
|
+
medium: number;
|
|
148
|
+
unacceptable: number;
|
|
149
|
+
unknown: number;
|
|
150
|
+
};
|
|
151
|
+
export declare type TIssueCount = {
|
|
152
|
+
type: string;
|
|
153
|
+
count: number;
|
|
154
|
+
};
|
|
155
|
+
export declare type TEventPayload = {
|
|
156
|
+
customerId: string;
|
|
157
|
+
sessionId: string;
|
|
158
|
+
data: {
|
|
159
|
+
[field: string]: Nullable<string | boolean | number>;
|
|
160
|
+
};
|
|
161
|
+
channel: Nullable<string>;
|
|
162
|
+
version: Nullable<string>;
|
|
163
|
+
deviceType: Nullable<string>;
|
|
164
|
+
browser: Nullable<string>;
|
|
165
|
+
};
|
|
166
|
+
export declare type TIssueType = "warning" | "action" | "alert" | "success";
|
|
167
|
+
export interface IIssue {
|
|
168
|
+
term: string;
|
|
169
|
+
type: TIssueType;
|
|
170
|
+
}
|
|
171
|
+
export interface IIssueAction extends IIssue {
|
|
172
|
+
type: "action";
|
|
173
|
+
extra: {
|
|
174
|
+
action: string;
|
|
175
|
+
label?: string;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
export declare type TKycMethod = "electronic" | "manual";
|
|
179
|
+
export interface IChangeStamp {
|
|
180
|
+
channel: ChannelString;
|
|
181
|
+
userId: string;
|
|
182
|
+
by: string;
|
|
183
|
+
timestamp: string;
|
|
184
|
+
}
|
|
185
|
+
export declare enum ChannelString {
|
|
186
|
+
PORTAL = "PORTAL",
|
|
187
|
+
SMART_UI = "SMART_UI",
|
|
188
|
+
API = "API"
|
|
189
|
+
}
|
|
190
|
+
export declare function isMachineCredential(cred: any): cred is IMachineCredential;
|
|
191
|
+
export declare function isUserCredential(cred: any): cred is IUserCredential;
|
|
192
|
+
export interface ICreateMachineSessionResponse {
|
|
193
|
+
organisation: OrganisationPayload;
|
|
194
|
+
[configurations: string]: any;
|
|
195
|
+
}
|
|
196
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
import { Nullable } from "./General";
|
|
3
|
+
export declare type OrganisationPayload = {
|
|
4
|
+
id: Nullable<number>;
|
|
5
|
+
parentId: Nullable<number>;
|
|
6
|
+
customerId: Nullable<string>;
|
|
7
|
+
customerChildId: Nullable<string>;
|
|
8
|
+
name: Nullable<string>;
|
|
9
|
+
nickName: Nullable<string>;
|
|
10
|
+
authType: Nullable<string>;
|
|
11
|
+
isRoot: Nullable<boolean>;
|
|
12
|
+
denyOldPasswordCount: Nullable<number>;
|
|
13
|
+
timezone: Nullable<string>;
|
|
14
|
+
parent: Nullable<OrganisationPayload>;
|
|
15
|
+
children: OrganisationPayload[];
|
|
16
|
+
organisations: OrganisationPayload[];
|
|
17
|
+
users: User[];
|
|
18
|
+
};
|
|
19
|
+
export declare class Organisation {
|
|
20
|
+
id: Nullable<number>;
|
|
21
|
+
parentId: Nullable<number>;
|
|
22
|
+
customerId: Nullable<string>;
|
|
23
|
+
customerChildId: Nullable<string>;
|
|
24
|
+
name: Nullable<string>;
|
|
25
|
+
nickName: Nullable<string>;
|
|
26
|
+
authType: Nullable<string>;
|
|
27
|
+
isRoot: Nullable<boolean>;
|
|
28
|
+
denyOldPasswordCount: Nullable<number>;
|
|
29
|
+
timezone: Nullable<string>;
|
|
30
|
+
parent: Nullable<Organisation>;
|
|
31
|
+
children: Organisation[];
|
|
32
|
+
users: User[];
|
|
33
|
+
organisations: Organisation[];
|
|
34
|
+
toJSON(): OrganisationPayload;
|
|
35
|
+
static fromJSON(payload: OrganisationPayload): Organisation;
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IProfilePayload {
|
|
2
|
+
profileType: string | null;
|
|
3
|
+
kycMethod: string;
|
|
4
|
+
countryAlpha3: string | null;
|
|
5
|
+
dob: string | null;
|
|
6
|
+
checkTypes: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class Profile {
|
|
9
|
+
private kycMethod;
|
|
10
|
+
private country;
|
|
11
|
+
private profileType;
|
|
12
|
+
private config;
|
|
13
|
+
private dob;
|
|
14
|
+
private _hadcodedCheckTypes;
|
|
15
|
+
constructor(profileType: string | null, kycMethod: string);
|
|
16
|
+
constructor(profileType: string | null, kycMethod: string, countryAlpha3: string | null, dob: string | null, configOrCheckType: {
|
|
17
|
+
checkTypes: string[];
|
|
18
|
+
} | any);
|
|
19
|
+
initialiseConfigOrCheckType(profileType: string | null, configOrCheckType: any): string;
|
|
20
|
+
setConfiguration(config: any): void;
|
|
21
|
+
getConfiguration(): string[];
|
|
22
|
+
getProfileType(): string;
|
|
23
|
+
get checkTypes(): string[];
|
|
24
|
+
toJSON(): IProfilePayload;
|
|
25
|
+
static fromJSON(payload: IProfilePayload): Profile;
|
|
26
|
+
static default(): Profile;
|
|
27
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Scan, TScan } from "./Document";
|
|
2
|
+
import { Nullable, ICloneable, IChangeStamp } from "./General";
|
|
3
|
+
export declare enum DocumentType {
|
|
4
|
+
DRIVERS_LICENCE = "DRIVERS_LICENCE",
|
|
5
|
+
PASSPORT = "PASSPORT",
|
|
6
|
+
VISA = "VISA",
|
|
7
|
+
IMMIGRATION = "IMMIGRATION",
|
|
8
|
+
NATIONAL_ID = "NATIONAL_ID",
|
|
9
|
+
NATIONAL_HEALTH_ID = "NATIONAL_HEALTH_ID",
|
|
10
|
+
CONCESSION = "CONCESSION",
|
|
11
|
+
HEALTH_CONCESSION = "HEALTH_CONCESSION",
|
|
12
|
+
PENSION = "PENSION",
|
|
13
|
+
MILITARY_ID = "MILITARY_ID",
|
|
14
|
+
BIRTH_CERT = "BIRTH_CERT",
|
|
15
|
+
CITIZENSHIP = "CITIZENSHIP",
|
|
16
|
+
MARRIAGE_CERT = "MARRIAGE_CERT",
|
|
17
|
+
DEATH_CERT = "DEATH_CERT",
|
|
18
|
+
NAME_CHANGE = "NAME_CHANGE",
|
|
19
|
+
UTILITY_BILL = "UTILITY_BILL",
|
|
20
|
+
BANK_STATEMENT = "BANK_STATEMENT",
|
|
21
|
+
BANK_ACCOUNT = "BANK_ACCOUNT",
|
|
22
|
+
INTENT_PROOF = "INTENT_PROOF",
|
|
23
|
+
SELF_IMAGE = "SELF_IMAGE",
|
|
24
|
+
EMAIL_ADDRESS = "EMAIL_ADDRESS",
|
|
25
|
+
MSISDN = "MSISDN",
|
|
26
|
+
DEVICE = "DEVICE",
|
|
27
|
+
VEHICLE_REGISTRATION = "VEHICLE_REGISTRATION",
|
|
28
|
+
PROOF_OF_ADDRESS = "PROOF_OF_ADDRESS",
|
|
29
|
+
EXTERNAL_ADMIN = "EXTERNAL_ADMIN",
|
|
30
|
+
CHARGES = "CHARGES",
|
|
31
|
+
PRE_ASIC = "PRE_ASIC",
|
|
32
|
+
ANNUAL_RETURN = "ANNUAL_RETURN",
|
|
33
|
+
REPORT = "REPORT",
|
|
34
|
+
TRUST_DEED = "TRUST_DEED",
|
|
35
|
+
PARTNERSHIP_AGREEMENT = "PARTNERSHIP_AGREEMENT",
|
|
36
|
+
ADMIN_CHANGE = "ADMIN_CHANGE",
|
|
37
|
+
COMPANY_REPORT = "COMPANY_REPORT",
|
|
38
|
+
CHECK_RESULTS = "CHECK_RESULTS",
|
|
39
|
+
OTHER = "OTHER",
|
|
40
|
+
RENTAL_AGREEMENT = "RENTAL_AGREEMENT",
|
|
41
|
+
TAX_STATEMENT = "TAX_STATEMENT",
|
|
42
|
+
HOUSE_REGISTRATION = "HOUSE_REGISTRATION",
|
|
43
|
+
YELLOW_HOUSE_REGISTRATION = "YELLOW_HOUSE_REGISTRATION",
|
|
44
|
+
WORK_PERMIT = "WORK_PERMIT",
|
|
45
|
+
EMPLOYMENT_CERTIFICATE = "EMPLOYMENT_CERTIFICATE",
|
|
46
|
+
NOTARY_PUBLIC_ID = "NOTARY_PUBLIC_ID"
|
|
47
|
+
}
|
|
48
|
+
export declare enum DocumentStatus {
|
|
49
|
+
APPROVED = "APPROVED",
|
|
50
|
+
DECLINED = "DECLINED",
|
|
51
|
+
NEEDS_REVIEW = "NEEDS_REVIEW"
|
|
52
|
+
}
|
|
53
|
+
export declare type SupportingDocumentReference = {
|
|
54
|
+
uuid: string;
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const ALLOWED_MIME_TYPES: string[];
|
|
58
|
+
export declare const ALLOWED_MIME_TYPES_STRING: string;
|
|
59
|
+
export interface ISupportingDocument {
|
|
60
|
+
id?: Nullable<string>;
|
|
61
|
+
type: DocumentType;
|
|
62
|
+
label: string;
|
|
63
|
+
file: Nullable<Scan>;
|
|
64
|
+
status?: Nullable<DocumentStatus>;
|
|
65
|
+
modified?: Nullable<IChangeStamp>;
|
|
66
|
+
reviewed?: Nullable<IChangeStamp>;
|
|
67
|
+
refer?: Nullable<SupportingDocumentReference>;
|
|
68
|
+
smartUiDocOrder?: Nullable<number>;
|
|
69
|
+
}
|
|
70
|
+
export interface ISupportingDocumentPayload {
|
|
71
|
+
id?: Nullable<string>;
|
|
72
|
+
type: DocumentType;
|
|
73
|
+
label: string;
|
|
74
|
+
file: Nullable<TScan>;
|
|
75
|
+
status?: Nullable<DocumentStatus>;
|
|
76
|
+
modified?: Nullable<IChangeStamp>;
|
|
77
|
+
reviewed?: Nullable<IChangeStamp>;
|
|
78
|
+
refer?: Nullable<SupportingDocumentReference>;
|
|
79
|
+
smartUiDocOrder?: Nullable<number>;
|
|
80
|
+
}
|
|
81
|
+
export declare class SupportingDocument implements ISupportingDocument, ICloneable<SupportingDocument> {
|
|
82
|
+
id: Nullable<string>;
|
|
83
|
+
type: DocumentType;
|
|
84
|
+
label: string;
|
|
85
|
+
file: Nullable<Scan>;
|
|
86
|
+
status: Nullable<DocumentStatus>;
|
|
87
|
+
modified: Nullable<IChangeStamp>;
|
|
88
|
+
reviewed: Nullable<IChangeStamp>;
|
|
89
|
+
refer: Nullable<SupportingDocumentReference>;
|
|
90
|
+
smartUiDocOrder: Nullable<number>;
|
|
91
|
+
constructor(payload: ISupportingDocument);
|
|
92
|
+
clone(): SupportingDocument;
|
|
93
|
+
toJSON(): ISupportingDocument;
|
|
94
|
+
static fromJSON(payload: ISupportingDocumentPayload): SupportingDocument;
|
|
95
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare type UserPayload = User;
|
|
2
|
+
export interface User {
|
|
3
|
+
id: number;
|
|
4
|
+
organizationId: number | null;
|
|
5
|
+
username: string;
|
|
6
|
+
password: string;
|
|
7
|
+
salt: string;
|
|
8
|
+
realname: string | null;
|
|
9
|
+
email: string;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare type TUser = {
|
|
13
|
+
id?: number;
|
|
14
|
+
organizationId?: number | null;
|
|
15
|
+
username?: string;
|
|
16
|
+
password?: string;
|
|
17
|
+
realname?: string | null;
|
|
18
|
+
email?: string;
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
loggedAt?: Date | null;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date | null;
|
|
23
|
+
deletedAt?: Date | null;
|
|
24
|
+
isLocked?: boolean;
|
|
25
|
+
latestChildViewed?: string | null;
|
|
26
|
+
[field: string]: any;
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./ConfigurationReader";
|
|
2
|
+
export * from "./Applicant";
|
|
3
|
+
export * from "./Document";
|
|
4
|
+
export * from "./CheckSummary";
|
|
5
|
+
export * from "./Document";
|
|
6
|
+
export * from "./SupportingDocument";
|
|
7
|
+
export * from "./Address";
|
|
8
|
+
export * from "./Profile";
|
|
9
|
+
export * from "./Organisation";
|
|
10
|
+
export * from "./General";
|
|
11
|
+
export * from "./Core";
|
|
12
|
+
export * from "./Admin";
|
|
13
|
+
export * from "./User";
|
|
14
|
+
export { default as countryData } from "./data/country.json";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TApplicantStatus } from "../General";
|
|
2
|
+
export declare const STATE_FAILED = "failed";
|
|
3
|
+
export declare const STATE_PASSED = "passed";
|
|
4
|
+
export declare const STATE_FAIL = "fail";
|
|
5
|
+
export declare const STATE_PASS = "pass";
|
|
6
|
+
export declare const STATE_MANUAL_FAILED = "fail_manual";
|
|
7
|
+
export declare const STATE_MANUAL_PASSED = "pass_manual";
|
|
8
|
+
export declare const STATE_NEEDS_ATTENTION = "refer";
|
|
9
|
+
export declare const STATE_WAITING_ON_CUSTOMER = "wait";
|
|
10
|
+
export declare const STATE_UNCHECKED = "unchecked";
|
|
11
|
+
export declare enum STATE_TYPES {
|
|
12
|
+
FAILED = "failed",
|
|
13
|
+
PASSED = "passed",
|
|
14
|
+
MANUAL_FAILED = "fail_manual",
|
|
15
|
+
MANUAL_PASSED = "pass_manual",
|
|
16
|
+
NEEDS_ATTENTION = "refer",
|
|
17
|
+
WAITING_ON_CUSTOMER = "wait",
|
|
18
|
+
UNCHECKED = "unchecked",
|
|
19
|
+
ARCHIVED = "archived",
|
|
20
|
+
INACTIVE = "inactive"
|
|
21
|
+
}
|
|
22
|
+
export default function stateBackend(state: string): TApplicantStatus;
|
|
23
|
+
export declare const sortStatus: (a: TApplicantStatus, b: TApplicantStatus) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Buffer } from "buffer";
|
|
3
|
+
export declare function stringToBase64(s: string): string;
|
|
4
|
+
export declare function bufferToBase64(b: Buffer): string;
|
|
5
|
+
export declare function base64ToString(bs: string): string;
|
|
6
|
+
export declare function bufferToString(b: Buffer): string;
|
|
7
|
+
export declare function hexToByteString(hex: string): string;
|
|
8
|
+
export declare function hexToBytes(hex: string): number[];
|
|
9
|
+
export declare function bytesToBase64(byt: number[]): string;
|
|
10
|
+
export declare function bufferToByteString(buff: Buffer): number[];
|
|
11
|
+
export declare function stringToByteString(str: string): number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function webpackChainEnableShadowDOM(config: any): void;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const ID_TYPES: {
|
|
2
|
+
DRIVERS_LICENCE: string;
|
|
3
|
+
PASSPORT: string;
|
|
4
|
+
VISA: string;
|
|
5
|
+
MEDICARE_CARD: string;
|
|
6
|
+
IMMIGRATION: string;
|
|
7
|
+
BIRTH_CERT: string;
|
|
8
|
+
CITIZENSHIP: string;
|
|
9
|
+
NAME_CHANGE: string;
|
|
10
|
+
MARRIAGE_CERT: string;
|
|
11
|
+
ATTESTATION: string;
|
|
12
|
+
VEHICLE_REGISTRATION: string;
|
|
13
|
+
SELF_IMAGE: string;
|
|
14
|
+
OTHER: string;
|
|
15
|
+
NATIONAL_ID: string;
|
|
16
|
+
BANK_STATEMENT: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const ID_COUNTRY_CODES: {
|
|
19
|
+
AUSTRALIA: string;
|
|
20
|
+
NEW_ZEALAND: string;
|
|
21
|
+
UNITED_KINGDOM: string;
|
|
22
|
+
INDIA: string;
|
|
23
|
+
PHILIPPINES: string;
|
|
24
|
+
CHINA: string;
|
|
25
|
+
HONG_KONG: string;
|
|
26
|
+
INDONESIA: string;
|
|
27
|
+
MALAYSIA: string;
|
|
28
|
+
SPAIN: string;
|
|
29
|
+
SWEDEN: string;
|
|
30
|
+
ITALY: string;
|
|
31
|
+
BRAZIL: string;
|
|
32
|
+
MEXICO: string;
|
|
33
|
+
RUSSIA: string;
|
|
34
|
+
TURKEY: string;
|
|
35
|
+
SINGAPORE: string;
|
|
36
|
+
SOUTH_AFRICA: string;
|
|
37
|
+
ARGENTINA: string;
|
|
38
|
+
JORDAN: string;
|
|
39
|
+
KUWAIT: string;
|
|
40
|
+
OMAN: string;
|
|
41
|
+
SAUDI_ARABIA: string;
|
|
42
|
+
EGYPT: string;
|
|
43
|
+
ROMANIA: string;
|
|
44
|
+
VIETNAM: string;
|
|
45
|
+
CAMBODIA: string;
|
|
46
|
+
DEFAULT: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const ID_COUNTRY_OPTIONS: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}[];
|
|
52
|
+
export declare const ID_SUB_TYPE: {
|
|
53
|
+
[x: string]: {
|
|
54
|
+
PAN_CARD: string;
|
|
55
|
+
EPIC_CARD: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const CATEGORY_PRIMARY_PHOTO = "primary_photographic";
|
|
59
|
+
export declare const CATEGORY_PRIMARY_NONPHOTO = "primary_nonphotographic";
|
|
60
|
+
export declare const CATEGORY_SECONDARY = "secondary";
|
|
61
|
+
export declare const ID_OPTIONS: ({
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
available: string[];
|
|
65
|
+
idSubType?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
label: string;
|
|
68
|
+
value: string;
|
|
69
|
+
idSubType: string;
|
|
70
|
+
available: string[];
|
|
71
|
+
})[];
|
|
72
|
+
export declare const CONSENT_FLAGS: {
|
|
73
|
+
general: string[];
|
|
74
|
+
flagWhenSplitTheConsent: string[];
|
|
75
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DateObject, Nullable, TDOBTypeSupport } from "../General";
|
|
2
|
+
export declare const transformDateToGregorian: (input: Nullable<string>, type: TDOBTypeSupport) => string;
|
|
3
|
+
export declare const transformGregorianDateTo: (input: Nullable<string>, type: TDOBTypeSupport) => string;
|
|
4
|
+
export declare const breakDateToObject: (input: string | null) => DateObject;
|
|
5
|
+
export declare const serialiseDateObject: (obj: DateObject) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare type TCountryObject = {
|
|
2
|
+
label: string;
|
|
3
|
+
};
|
|
4
|
+
export default function getCountryDetails(code3: string): TCountryObject;
|
|
5
|
+
declare type TStateObject = {
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function getAustralianStateDetails(code3: string): TStateObject | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function checkIncludes(arr: string[], value: string | undefined | null): boolean;
|
|
2
|
+
export declare const mergeObject: (defaultObj: any, targetObj: any | undefined) => any;
|
|
3
|
+
export declare const mergeArray: (defaultArray: any[], targetArray: any[] | undefined) => any[];
|
|
4
|
+
export declare const getNameLabel: (displayName: any) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./base64";
|
|
2
|
+
export * from "./constants";
|
|
3
|
+
export * from "./getCountryDetails";
|
|
4
|
+
export { default as getCountryDetails } from "./getCountryDetails";
|
|
5
|
+
export * from "./getDocumentDetails";
|
|
6
|
+
export * from "./helper";
|
|
7
|
+
export * from "./isEmpty";
|
|
8
|
+
export * from "./date";
|
|
9
|
+
export * from "./address";
|
|
10
|
+
export * from "./sanitiser";
|
|
11
|
+
export * as buildCycleUtils from "./buildCycleUtils";
|