@devizovaburza/mdm-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/index.cjs +89 -0
- package/dist/v1/index.d.cts +2692 -0
- package/dist/v1/index.d.mts +2692 -0
- package/dist/v1/index.d.ts +2692 -0
- package/dist/v1/index.mjs +74 -0
- package/package.json +31 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const client = require('hono/client');
|
|
4
|
+
|
|
5
|
+
const createMdmClient = (baseUrl, options) => {
|
|
6
|
+
return client.hc(baseUrl, options);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const AddressTypeZod = [
|
|
10
|
+
"PERMANENT_ADDRESS",
|
|
11
|
+
"REGISTERED_OFFICE",
|
|
12
|
+
"CONTACT_ADDRESS"
|
|
13
|
+
];
|
|
14
|
+
const ContactTypeZod = [
|
|
15
|
+
"EMAIL",
|
|
16
|
+
"PHONE_AUTH",
|
|
17
|
+
"PHONE_CONTACT",
|
|
18
|
+
"PHONE_WORK"
|
|
19
|
+
];
|
|
20
|
+
const IdDocTypeZod = ["PASSPORT", "ID", "DRIVING_LICENSE"];
|
|
21
|
+
const IdDocStatusZod = [
|
|
22
|
+
"ACTIVE",
|
|
23
|
+
"EXPIRED",
|
|
24
|
+
"EXPIRE_SOON",
|
|
25
|
+
"REVOKED"
|
|
26
|
+
];
|
|
27
|
+
const PartyRelationshipTypeZod = [
|
|
28
|
+
"AUTHORIZED_SIGNATORY",
|
|
29
|
+
"POA_HOLDER",
|
|
30
|
+
"BOARD_MEMBER",
|
|
31
|
+
"UBO"
|
|
32
|
+
];
|
|
33
|
+
const CustomerStatusZod = [
|
|
34
|
+
// 'LEAD',
|
|
35
|
+
"NEW",
|
|
36
|
+
"ACTIVE",
|
|
37
|
+
"CLOSED",
|
|
38
|
+
"BLOCKED"
|
|
39
|
+
// 'FORMER',
|
|
40
|
+
// 'DECEASED',
|
|
41
|
+
];
|
|
42
|
+
const ClientStatusActionZod = [
|
|
43
|
+
"ON_CUSTOMER_FORM_COMPLETED",
|
|
44
|
+
"ON_MANUAL_KYC_VERIFICATION_COMPLETED",
|
|
45
|
+
"ON_MANUAL_RISK_ASSESSMENT_COMPLETED",
|
|
46
|
+
"ON_BLOCK_CLIENT",
|
|
47
|
+
"ON_CLOSE_CLIENT",
|
|
48
|
+
"ON_UNBLOCK_CLIENT"
|
|
49
|
+
];
|
|
50
|
+
const PartyTypeZod = [
|
|
51
|
+
"INDIVIDUAL",
|
|
52
|
+
"SELF_EMPLOYED",
|
|
53
|
+
"ORGANIZATION"
|
|
54
|
+
];
|
|
55
|
+
const AmlScoreTypeZod = [
|
|
56
|
+
"LOW",
|
|
57
|
+
"MEDIUM",
|
|
58
|
+
"HIGH",
|
|
59
|
+
"UNACCEPTABLE",
|
|
60
|
+
"UNVERIFIED",
|
|
61
|
+
"UNCLASSIFIED"
|
|
62
|
+
];
|
|
63
|
+
const IdentificationTypeZod = [
|
|
64
|
+
"FACE_TO_FACE",
|
|
65
|
+
"REMOTE_IDENTIFICATION"
|
|
66
|
+
];
|
|
67
|
+
const GenderZod = ["M", "F", "OTHER"];
|
|
68
|
+
const KycStatusZod = [
|
|
69
|
+
"NOT_APPROVED",
|
|
70
|
+
"VERIFIED",
|
|
71
|
+
"UNVERIFIED",
|
|
72
|
+
"REJECTED"
|
|
73
|
+
];
|
|
74
|
+
const TRADER_TYPE = ["PERSON", "COMPANY", "OSVC"];
|
|
75
|
+
|
|
76
|
+
exports.AddressTypeZod = AddressTypeZod;
|
|
77
|
+
exports.AmlScoreTypeZod = AmlScoreTypeZod;
|
|
78
|
+
exports.ClientStatusActionZod = ClientStatusActionZod;
|
|
79
|
+
exports.ContactTypeZod = ContactTypeZod;
|
|
80
|
+
exports.CustomerStatusZod = CustomerStatusZod;
|
|
81
|
+
exports.GenderZod = GenderZod;
|
|
82
|
+
exports.IdDocStatusZod = IdDocStatusZod;
|
|
83
|
+
exports.IdDocTypeZod = IdDocTypeZod;
|
|
84
|
+
exports.IdentificationTypeZod = IdentificationTypeZod;
|
|
85
|
+
exports.KycStatusZod = KycStatusZod;
|
|
86
|
+
exports.PartyRelationshipTypeZod = PartyRelationshipTypeZod;
|
|
87
|
+
exports.PartyTypeZod = PartyTypeZod;
|
|
88
|
+
exports.TRADER_TYPE = TRADER_TYPE;
|
|
89
|
+
exports.createMdmClient = createMdmClient;
|