@venturialstd/workflow 0.1.118 → 0.1.121
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/modules/capa/services/create-user-kyc.service.d.ts.map +1 -1
- package/dist/modules/capa/services/create-user-kyc.service.js +37 -5
- package/dist/modules/capa/services/create-user-kyc.service.js.map +1 -1
- package/dist/modules/capa/services/create-user.service.d.ts.map +1 -1
- package/dist/modules/capa/services/create-user.service.js +11 -1
- package/dist/modules/capa/services/create-user.service.js.map +1 -1
- package/dist/modules/email/actions/send-template-email.action.d.ts.map +1 -1
- package/dist/modules/email/actions/send-template-email.action.js.map +1 -1
- package/dist/modules/email/auth/email-auth.service.d.ts.map +1 -1
- package/dist/modules/email/auth/email-auth.service.js.map +1 -1
- package/dist/modules/email/services/email-template-options.service.d.ts.map +1 -1
- package/dist/modules/email/services/email-template-options.service.js +1 -3
- package/dist/modules/email/services/email-template-options.service.js.map +1 -1
- package/dist/modules/email/services/send-template-email.service.d.ts.map +1 -1
- package/dist/modules/email/services/send-template-email.service.js +9 -3
- package/dist/modules/email/services/send-template-email.service.js.map +1 -1
- package/dist/modules/email/utils/template-options.util.d.ts +2 -2
- package/dist/modules/email/utils/template-options.util.d.ts.map +1 -1
- package/dist/modules/email/utils/template-options.util.js +1 -1
- package/dist/modules/email/utils/template-options.util.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +5 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/kyc/actions/add-kyc-document-by-provider.action.d.ts +3 -0
- package/dist/modules/kyc/actions/add-kyc-document-by-provider.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/add-kyc-document-by-provider.action.js +270 -0
- package/dist/modules/kyc/actions/add-kyc-document-by-provider.action.js.map +1 -0
- package/dist/modules/kyc/actions/check-kyc-status.action.d.ts +3 -0
- package/dist/modules/kyc/actions/check-kyc-status.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/check-kyc-status.action.js +65 -0
- package/dist/modules/kyc/actions/check-kyc-status.action.js.map +1 -0
- package/dist/modules/kyc/actions/create-kyc-document.action.d.ts +3 -0
- package/dist/modules/kyc/actions/create-kyc-document.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/create-kyc-document.action.js +197 -0
- package/dist/modules/kyc/actions/create-kyc-document.action.js.map +1 -0
- package/dist/modules/kyc/actions/create-kyc-profile.action.d.ts +3 -0
- package/dist/modules/kyc/actions/create-kyc-profile.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/create-kyc-profile.action.js +189 -0
- package/dist/modules/kyc/actions/create-kyc-profile.action.js.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-document.action.d.ts +3 -0
- package/dist/modules/kyc/actions/get-kyc-document.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-document.action.js +65 -0
- package/dist/modules/kyc/actions/get-kyc-document.action.js.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-documents-by-profile.action.d.ts +3 -0
- package/dist/modules/kyc/actions/get-kyc-documents-by-profile.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-documents-by-profile.action.js +41 -0
- package/dist/modules/kyc/actions/get-kyc-documents-by-profile.action.js.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-profile.action.d.ts +3 -0
- package/dist/modules/kyc/actions/get-kyc-profile.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/get-kyc-profile.action.js +86 -0
- package/dist/modules/kyc/actions/get-kyc-profile.action.js.map +1 -0
- package/dist/modules/kyc/actions/index.d.ts +12 -0
- package/dist/modules/kyc/actions/index.d.ts.map +1 -0
- package/dist/modules/kyc/actions/index.js +28 -0
- package/dist/modules/kyc/actions/index.js.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-document.action.d.ts +3 -0
- package/dist/modules/kyc/actions/update-kyc-document.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-document.action.js +98 -0
- package/dist/modules/kyc/actions/update-kyc-document.action.js.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-profile.action.d.ts +3 -0
- package/dist/modules/kyc/actions/update-kyc-profile.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-profile.action.js +109 -0
- package/dist/modules/kyc/actions/update-kyc-profile.action.js.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-status.action.d.ts +3 -0
- package/dist/modules/kyc/actions/update-kyc-status.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-status.action.js +86 -0
- package/dist/modules/kyc/actions/update-kyc-status.action.js.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-verification-by-provider.action.d.ts +3 -0
- package/dist/modules/kyc/actions/update-kyc-verification-by-provider.action.d.ts.map +1 -0
- package/dist/modules/kyc/actions/update-kyc-verification-by-provider.action.js +345 -0
- package/dist/modules/kyc/actions/update-kyc-verification-by-provider.action.js.map +1 -0
- package/dist/modules/kyc/auth/index.d.ts +2 -0
- package/dist/modules/kyc/auth/index.d.ts.map +1 -0
- package/dist/modules/kyc/auth/index.js +18 -0
- package/dist/modules/kyc/auth/index.js.map +1 -0
- package/dist/modules/kyc/auth/kyc-auth.service.d.ts +5 -0
- package/dist/modules/kyc/auth/kyc-auth.service.d.ts.map +1 -0
- package/dist/modules/kyc/auth/kyc-auth.service.js +23 -0
- package/dist/modules/kyc/auth/kyc-auth.service.js.map +1 -0
- package/dist/modules/kyc/credentials.d.ts +3 -0
- package/dist/modules/kyc/credentials.d.ts.map +1 -0
- package/dist/modules/kyc/credentials.js +5 -0
- package/dist/modules/kyc/credentials.js.map +1 -0
- package/dist/modules/kyc/kyc-nest.module.d.ts +3 -0
- package/dist/modules/kyc/kyc-nest.module.d.ts.map +1 -0
- package/dist/modules/kyc/kyc-nest.module.js +52 -0
- package/dist/modules/kyc/kyc-nest.module.js.map +1 -0
- package/dist/modules/kyc/kyc.module.d.ts +3 -0
- package/dist/modules/kyc/kyc.module.d.ts.map +1 -0
- package/dist/modules/kyc/kyc.module.js +30 -0
- package/dist/modules/kyc/kyc.module.js.map +1 -0
- package/dist/modules/kyc/services/add-kyc-document-by-provider.service.d.ts +10 -0
- package/dist/modules/kyc/services/add-kyc-document-by-provider.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/add-kyc-document-by-provider.service.js +125 -0
- package/dist/modules/kyc/services/add-kyc-document-by-provider.service.js.map +1 -0
- package/dist/modules/kyc/services/check-kyc-status.service.d.ts +8 -0
- package/dist/modules/kyc/services/check-kyc-status.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/check-kyc-status.service.js +43 -0
- package/dist/modules/kyc/services/check-kyc-status.service.js.map +1 -0
- package/dist/modules/kyc/services/create-kyc-document.service.d.ts +9 -0
- package/dist/modules/kyc/services/create-kyc-document.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/create-kyc-document.service.js +75 -0
- package/dist/modules/kyc/services/create-kyc-document.service.js.map +1 -0
- package/dist/modules/kyc/services/create-kyc-profile.service.d.ts +8 -0
- package/dist/modules/kyc/services/create-kyc-profile.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/create-kyc-profile.service.js +84 -0
- package/dist/modules/kyc/services/create-kyc-profile.service.js.map +1 -0
- package/dist/modules/kyc/services/get-kyc-document.service.d.ts +9 -0
- package/dist/modules/kyc/services/get-kyc-document.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/get-kyc-document.service.js +68 -0
- package/dist/modules/kyc/services/get-kyc-document.service.js.map +1 -0
- package/dist/modules/kyc/services/get-kyc-documents-by-profile.service.d.ts +9 -0
- package/dist/modules/kyc/services/get-kyc-documents-by-profile.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/get-kyc-documents-by-profile.service.js +66 -0
- package/dist/modules/kyc/services/get-kyc-documents-by-profile.service.js.map +1 -0
- package/dist/modules/kyc/services/get-kyc-profile.service.d.ts +8 -0
- package/dist/modules/kyc/services/get-kyc-profile.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/get-kyc-profile.service.js +72 -0
- package/dist/modules/kyc/services/get-kyc-profile.service.js.map +1 -0
- package/dist/modules/kyc/services/index.d.ts +12 -0
- package/dist/modules/kyc/services/index.d.ts.map +1 -0
- package/dist/modules/kyc/services/index.js +28 -0
- package/dist/modules/kyc/services/index.js.map +1 -0
- package/dist/modules/kyc/services/update-kyc-document.service.d.ts +9 -0
- package/dist/modules/kyc/services/update-kyc-document.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/update-kyc-document.service.js +103 -0
- package/dist/modules/kyc/services/update-kyc-document.service.js.map +1 -0
- package/dist/modules/kyc/services/update-kyc-profile.service.d.ts +8 -0
- package/dist/modules/kyc/services/update-kyc-profile.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/update-kyc-profile.service.js +93 -0
- package/dist/modules/kyc/services/update-kyc-profile.service.js.map +1 -0
- package/dist/modules/kyc/services/update-kyc-status.service.d.ts +8 -0
- package/dist/modules/kyc/services/update-kyc-status.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/update-kyc-status.service.js +53 -0
- package/dist/modules/kyc/services/update-kyc-status.service.js.map +1 -0
- package/dist/modules/kyc/services/update-kyc-verification-by-provider.service.d.ts +9 -0
- package/dist/modules/kyc/services/update-kyc-verification-by-provider.service.d.ts.map +1 -0
- package/dist/modules/kyc/services/update-kyc-verification-by-provider.service.js +126 -0
- package/dist/modules/kyc/services/update-kyc-verification-by-provider.service.js.map +1 -0
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +3 -0
- package/dist/workflow.module.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetKYCProfileService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const kyc_1 = require("@venturialstd/kyc");
|
|
15
|
+
let GetKYCProfileService = class GetKYCProfileService {
|
|
16
|
+
kycService;
|
|
17
|
+
constructor(kycService) {
|
|
18
|
+
this.kycService = kycService;
|
|
19
|
+
}
|
|
20
|
+
async perform(inputs, _context) {
|
|
21
|
+
let profile;
|
|
22
|
+
if (inputs.profileId) {
|
|
23
|
+
profile = await this.kycService.findOne({
|
|
24
|
+
where: { id: inputs.profileId },
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else if (inputs.userId) {
|
|
28
|
+
profile = await this.kycService.findByUserId(inputs.userId);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
throw new Error('Either profileId or userId must be provided');
|
|
32
|
+
}
|
|
33
|
+
if (!profile) {
|
|
34
|
+
throw new Error('KYC profile not found');
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
id: profile.id,
|
|
38
|
+
userId: profile.userId,
|
|
39
|
+
status: profile.status,
|
|
40
|
+
verificationLevel: profile.verificationLevel,
|
|
41
|
+
firstName: profile.firstName,
|
|
42
|
+
lastName: profile.lastName,
|
|
43
|
+
dateOfBirth: profile.dateOfBirth,
|
|
44
|
+
nationality: profile.nationality,
|
|
45
|
+
occupation: profile.occupation,
|
|
46
|
+
sourceOfFunds: profile.sourceOfFunds,
|
|
47
|
+
taxId: profile.taxId,
|
|
48
|
+
addressLine1: profile.addressLine1,
|
|
49
|
+
addressLine2: profile.addressLine2,
|
|
50
|
+
city: profile.city,
|
|
51
|
+
state: profile.state,
|
|
52
|
+
postalCode: profile.postalCode,
|
|
53
|
+
country: profile.country,
|
|
54
|
+
residenceType: profile.residenceType,
|
|
55
|
+
submittedAt: profile.submittedAt?.toISOString(),
|
|
56
|
+
reviewedAt: profile.reviewedAt?.toISOString(),
|
|
57
|
+
approvedAt: profile.approvedAt?.toISOString(),
|
|
58
|
+
rejectedAt: profile.rejectedAt?.toISOString(),
|
|
59
|
+
rejectionReason: profile.rejectionReason,
|
|
60
|
+
reviewNotes: profile.reviewNotes,
|
|
61
|
+
reviewedBy: profile.reviewedBy,
|
|
62
|
+
createdAt: profile.createdAt?.toISOString() || new Date().toISOString(),
|
|
63
|
+
updatedAt: profile.updatedAt?.toISOString() || new Date().toISOString(),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.GetKYCProfileService = GetKYCProfileService;
|
|
68
|
+
exports.GetKYCProfileService = GetKYCProfileService = __decorate([
|
|
69
|
+
(0, common_1.Injectable)(),
|
|
70
|
+
__metadata("design:paramtypes", [kyc_1.KYCService])
|
|
71
|
+
], GetKYCProfileService);
|
|
72
|
+
//# sourceMappingURL=get-kyc-profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-kyc-profile.service.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/get-kyc-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAKxC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACF;IAA7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAE/B,IAAI,OAAO,CAAC;QAEZ,IAAI,MAAM,C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AAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACvE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACxE,CAAC;IACJ,CAAC;CACF,CAAA;AArDY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAE8B,gBAAU;GADxC,oBAAoB,CAqDhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './add-kyc-document-by-provider.service';
|
|
2
|
+
export * from './check-kyc-status.service';
|
|
3
|
+
export * from './create-kyc-document.service';
|
|
4
|
+
export * from './create-kyc-profile.service';
|
|
5
|
+
export * from './get-kyc-document.service';
|
|
6
|
+
export * from './get-kyc-documents-by-profile.service';
|
|
7
|
+
export * from './get-kyc-profile.service';
|
|
8
|
+
export * from './update-kyc-document.service';
|
|
9
|
+
export * from './update-kyc-profile.service';
|
|
10
|
+
export * from './update-kyc-status.service';
|
|
11
|
+
export * from './update-kyc-verification-by-provider.service';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/kyc/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+CAA+C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./add-kyc-document-by-provider.service"), exports);
|
|
18
|
+
__exportStar(require("./check-kyc-status.service"), exports);
|
|
19
|
+
__exportStar(require("./create-kyc-document.service"), exports);
|
|
20
|
+
__exportStar(require("./create-kyc-profile.service"), exports);
|
|
21
|
+
__exportStar(require("./get-kyc-document.service"), exports);
|
|
22
|
+
__exportStar(require("./get-kyc-documents-by-profile.service"), exports);
|
|
23
|
+
__exportStar(require("./get-kyc-profile.service"), exports);
|
|
24
|
+
__exportStar(require("./update-kyc-document.service"), exports);
|
|
25
|
+
__exportStar(require("./update-kyc-profile.service"), exports);
|
|
26
|
+
__exportStar(require("./update-kyc-status.service"), exports);
|
|
27
|
+
__exportStar(require("./update-kyc-verification-by-provider.service"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yEAAuD;AACvD,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,6DAA2C;AAC3C,yEAAuD;AACvD,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,gFAA8D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KYCDocument } from '@venturialstd/kyc';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
4
|
+
export declare class UpdateKYCDocumentService implements IWorkflowActionService {
|
|
5
|
+
private readonly kycDocumentRepository;
|
|
6
|
+
constructor(kycDocumentRepository: Repository<KYCDocument>);
|
|
7
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=update-kyc-document.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-document.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-document.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6D,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,wBAAyB,YAAW,sBAAsB;IAGnE,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,UAAU,CAAC,WAAW,CAAC;IAG3D,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAiEpC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateKYCDocumentService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const kyc_1 = require("@venturialstd/kyc");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
let UpdateKYCDocumentService = class UpdateKYCDocumentService {
|
|
21
|
+
kycDocumentRepository;
|
|
22
|
+
constructor(kycDocumentRepository) {
|
|
23
|
+
this.kycDocumentRepository = kycDocumentRepository;
|
|
24
|
+
}
|
|
25
|
+
async perform(inputs, _context) {
|
|
26
|
+
const documentId = inputs.documentId;
|
|
27
|
+
if (!documentId) {
|
|
28
|
+
throw new Error('documentId is required');
|
|
29
|
+
}
|
|
30
|
+
const document = await this.kycDocumentRepository.findOne({
|
|
31
|
+
where: { id: documentId },
|
|
32
|
+
});
|
|
33
|
+
if (!document) {
|
|
34
|
+
throw new Error('KYC document not found');
|
|
35
|
+
}
|
|
36
|
+
if (inputs.documentType !== undefined)
|
|
37
|
+
document.documentType = inputs.documentType;
|
|
38
|
+
if (inputs.side !== undefined)
|
|
39
|
+
document.side = inputs.side;
|
|
40
|
+
if (inputs.status !== undefined)
|
|
41
|
+
document.status = inputs.status;
|
|
42
|
+
if (inputs.documentNumber !== undefined)
|
|
43
|
+
document.documentNumber = inputs.documentNumber;
|
|
44
|
+
if (inputs.issuingCountry !== undefined)
|
|
45
|
+
document.issuingCountry = inputs.issuingCountry;
|
|
46
|
+
if (inputs.issueDate !== undefined)
|
|
47
|
+
document.issueDate = inputs.issueDate;
|
|
48
|
+
if (inputs.expiryDate !== undefined)
|
|
49
|
+
document.expiryDate = inputs.expiryDate;
|
|
50
|
+
if (inputs.frontFileUrl !== undefined)
|
|
51
|
+
document.frontFileUrl = inputs.frontFileUrl;
|
|
52
|
+
if (inputs.frontFileName !== undefined)
|
|
53
|
+
document.frontFileName = inputs.frontFileName;
|
|
54
|
+
if (inputs.frontFileType !== undefined)
|
|
55
|
+
document.frontFileType = inputs.frontFileType;
|
|
56
|
+
if (inputs.frontFileSize !== undefined)
|
|
57
|
+
document.frontFileSize = inputs.frontFileSize;
|
|
58
|
+
if (inputs.backFileUrl !== undefined)
|
|
59
|
+
document.backFileUrl = inputs.backFileUrl;
|
|
60
|
+
if (inputs.backFileName !== undefined)
|
|
61
|
+
document.backFileName = inputs.backFileName;
|
|
62
|
+
if (inputs.backFileType !== undefined)
|
|
63
|
+
document.backFileType = inputs.backFileType;
|
|
64
|
+
if (inputs.backFileSize !== undefined)
|
|
65
|
+
document.backFileSize = inputs.backFileSize;
|
|
66
|
+
if (inputs.verificationNotes !== undefined)
|
|
67
|
+
document.verificationNotes = inputs.verificationNotes;
|
|
68
|
+
if (inputs.rejectionReason !== undefined)
|
|
69
|
+
document.rejectionReason = inputs.rejectionReason;
|
|
70
|
+
const updatedDocument = await this.kycDocumentRepository.save(document);
|
|
71
|
+
return {
|
|
72
|
+
id: updatedDocument.id,
|
|
73
|
+
kycProfileId: updatedDocument.kycProfileId,
|
|
74
|
+
documentType: updatedDocument.documentType,
|
|
75
|
+
side: updatedDocument.side,
|
|
76
|
+
status: updatedDocument.status,
|
|
77
|
+
documentNumber: updatedDocument.documentNumber,
|
|
78
|
+
issuingCountry: updatedDocument.issuingCountry,
|
|
79
|
+
issueDate: updatedDocument.issueDate,
|
|
80
|
+
expiryDate: updatedDocument.expiryDate,
|
|
81
|
+
frontFileUrl: updatedDocument.frontFileUrl,
|
|
82
|
+
frontFileName: updatedDocument.frontFileName,
|
|
83
|
+
frontFileType: updatedDocument.frontFileType,
|
|
84
|
+
frontFileSize: updatedDocument.frontFileSize,
|
|
85
|
+
backFileUrl: updatedDocument.backFileUrl,
|
|
86
|
+
backFileName: updatedDocument.backFileName,
|
|
87
|
+
backFileType: updatedDocument.backFileType,
|
|
88
|
+
backFileSize: updatedDocument.backFileSize,
|
|
89
|
+
verifiedAt: updatedDocument.verifiedAt?.toISOString(),
|
|
90
|
+
verificationNotes: updatedDocument.verificationNotes,
|
|
91
|
+
rejectionReason: updatedDocument.rejectionReason,
|
|
92
|
+
createdAt: updatedDocument.createdAt?.toISOString() || new Date().toISOString(),
|
|
93
|
+
updatedAt: updatedDocument.updatedAt?.toISOString() || new Date().toISOString(),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
exports.UpdateKYCDocumentService = UpdateKYCDocumentService;
|
|
98
|
+
exports.UpdateKYCDocumentService = UpdateKYCDocumentService = __decorate([
|
|
99
|
+
(0, common_1.Injectable)(),
|
|
100
|
+
__param(0, (0, typeorm_1.InjectRepository)(kyc_1.KYCDocument)),
|
|
101
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
102
|
+
], UpdateKYCDocumentService);
|
|
103
|
+
//# sourceMappingURL=update-kyc-document.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-document.service.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-document.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,2CAA2G;AAC3G,qCAAqC;AAK9B,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAGhB;IAFnB,YAEmB,qBAA8C;QAA9C,0BAAqB,GAArB,qBAAqB,CAAyB;IAC9D,CAAC;IAEJ,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAE/B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAoB,CAAC;QAC/C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE;SAC1B,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAGD,IAAI,MAAM,CAAC,YAAY,KAAK,SAAS;YACnC,QAAQ,CAAC,YAAY,GAAG,MAAM,CAAC,YAAiC,CAAC;QACnE,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;YAAE,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAC,IAAyB,CAAC;QAChF,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;YAAE,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAA6B,CAAC;QACxF,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS;YACrC,QAAQ,CAAC,cAAc,GAAG,MAAM,CAAC,cAAwB,CAAC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BAAgB,EAAC,iBAAW,CAAC,CAAA;qCACU,oBAAU;GAHzC,wBAAwB,CA0EpC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KYCService } from '@venturialstd/kyc';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class UpdateKYCProfileService implements IWorkflowActionService {
|
|
4
|
+
private readonly kycService;
|
|
5
|
+
constructor(kycService: KYCService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=update-kyc-profile.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-profile.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-profile.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAsC,MAAM,mBAAmB,CAAC;AAEnF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,uBAAwB,YAAW,sBAAsB;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE7C,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CA4DpC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateKYCProfileService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const kyc_1 = require("@venturialstd/kyc");
|
|
15
|
+
let UpdateKYCProfileService = class UpdateKYCProfileService {
|
|
16
|
+
kycService;
|
|
17
|
+
constructor(kycService) {
|
|
18
|
+
this.kycService = kycService;
|
|
19
|
+
}
|
|
20
|
+
async perform(inputs, _context) {
|
|
21
|
+
const profileId = inputs.profileId;
|
|
22
|
+
if (!profileId) {
|
|
23
|
+
throw new Error('profileId is required');
|
|
24
|
+
}
|
|
25
|
+
const updateData = {};
|
|
26
|
+
if (inputs.status !== undefined)
|
|
27
|
+
updateData.status = inputs.status;
|
|
28
|
+
if (inputs.verificationLevel !== undefined)
|
|
29
|
+
updateData.verificationLevel = inputs.verificationLevel;
|
|
30
|
+
if (inputs.firstName !== undefined)
|
|
31
|
+
updateData.firstName = inputs.firstName;
|
|
32
|
+
if (inputs.lastName !== undefined)
|
|
33
|
+
updateData.lastName = inputs.lastName;
|
|
34
|
+
if (inputs.dateOfBirth !== undefined)
|
|
35
|
+
updateData.dateOfBirth = inputs.dateOfBirth;
|
|
36
|
+
if (inputs.nationality !== undefined)
|
|
37
|
+
updateData.nationality = inputs.nationality;
|
|
38
|
+
if (inputs.occupation !== undefined)
|
|
39
|
+
updateData.occupation = inputs.occupation;
|
|
40
|
+
if (inputs.sourceOfFunds !== undefined)
|
|
41
|
+
updateData.sourceOfFunds = inputs.sourceOfFunds;
|
|
42
|
+
if (inputs.taxId !== undefined)
|
|
43
|
+
updateData.taxId = inputs.taxId;
|
|
44
|
+
if (inputs.addressLine1 !== undefined)
|
|
45
|
+
updateData.addressLine1 = inputs.addressLine1;
|
|
46
|
+
if (inputs.addressLine2 !== undefined)
|
|
47
|
+
updateData.addressLine2 = inputs.addressLine2;
|
|
48
|
+
if (inputs.city !== undefined)
|
|
49
|
+
updateData.city = inputs.city;
|
|
50
|
+
if (inputs.state !== undefined)
|
|
51
|
+
updateData.state = inputs.state;
|
|
52
|
+
if (inputs.postalCode !== undefined)
|
|
53
|
+
updateData.postalCode = inputs.postalCode;
|
|
54
|
+
if (inputs.country !== undefined)
|
|
55
|
+
updateData.country = inputs.country;
|
|
56
|
+
if (inputs.residenceType !== undefined)
|
|
57
|
+
updateData.residenceType = inputs.residenceType;
|
|
58
|
+
const profile = await this.kycService.repo.findOne({ where: { id: profileId } });
|
|
59
|
+
if (!profile) {
|
|
60
|
+
throw new Error('KYC profile not found');
|
|
61
|
+
}
|
|
62
|
+
Object.assign(profile, updateData);
|
|
63
|
+
const updatedProfile = await this.kycService.repo.save(profile);
|
|
64
|
+
return {
|
|
65
|
+
id: updatedProfile.id,
|
|
66
|
+
userId: updatedProfile.userId,
|
|
67
|
+
status: updatedProfile.status,
|
|
68
|
+
verificationLevel: updatedProfile.verificationLevel,
|
|
69
|
+
firstName: updatedProfile.firstName,
|
|
70
|
+
lastName: updatedProfile.lastName,
|
|
71
|
+
dateOfBirth: updatedProfile.dateOfBirth,
|
|
72
|
+
nationality: updatedProfile.nationality,
|
|
73
|
+
occupation: updatedProfile.occupation,
|
|
74
|
+
sourceOfFunds: updatedProfile.sourceOfFunds,
|
|
75
|
+
taxId: updatedProfile.taxId,
|
|
76
|
+
addressLine1: updatedProfile.addressLine1,
|
|
77
|
+
addressLine2: updatedProfile.addressLine2,
|
|
78
|
+
city: updatedProfile.city,
|
|
79
|
+
state: updatedProfile.state,
|
|
80
|
+
postalCode: updatedProfile.postalCode,
|
|
81
|
+
country: updatedProfile.country,
|
|
82
|
+
residenceType: updatedProfile.residenceType,
|
|
83
|
+
createdAt: updatedProfile.createdAt?.toISOString() || new Date().toISOString(),
|
|
84
|
+
updatedAt: updatedProfile.updatedAt?.toISOString() || new Date().toISOString(),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.UpdateKYCProfileService = UpdateKYCProfileService;
|
|
89
|
+
exports.UpdateKYCProfileService = UpdateKYCProfileService = __decorate([
|
|
90
|
+
(0, common_1.Injectable)(),
|
|
91
|
+
__metadata("design:paramtypes", [kyc_1.KYCService])
|
|
92
|
+
], UpdateKYCProfileService);
|
|
93
|
+
//# sourceMappingURL=update-kyc-profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-profile.service.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAAmF;AAK5E,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACL;IAA7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,CAAC,SAAmB,CAAC;QAC7C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,MAAM,UAAU,GAA4B,EAAE,CAAC;QAG/C,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;YAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAoB,CAAC;QACjF,IAAI,MAAM,CAAC,iBAAiB,KAAK,SAAS;YACxC,UAAU,CAAC,iBAAiB,GAAG,MAAM,CAAC,iBAA2C,CAAC;QACpF,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;YAAE,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,SA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,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SAC/E,CAAC;IACJ,CAAC;CACF,CAAA;AAlEY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAE8B,gBAAU;GADxC,uBAAuB,CAkEnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KYCService } from '@venturialstd/kyc';
|
|
2
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
3
|
+
export declare class UpdateKYCStatusService implements IWorkflowActionService {
|
|
4
|
+
private readonly kycService;
|
|
5
|
+
constructor(kycService: KYCService);
|
|
6
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=update-kyc-status.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-status.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-status.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAc,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,sBAAuB,YAAW,sBAAsB;IACvD,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE7C,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CA8BpC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateKYCStatusService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const kyc_1 = require("@venturialstd/kyc");
|
|
15
|
+
let UpdateKYCStatusService = class UpdateKYCStatusService {
|
|
16
|
+
kycService;
|
|
17
|
+
constructor(kycService) {
|
|
18
|
+
this.kycService = kycService;
|
|
19
|
+
}
|
|
20
|
+
async perform(inputs, _context) {
|
|
21
|
+
const profileId = inputs.profileId;
|
|
22
|
+
const status = inputs.status;
|
|
23
|
+
const reviewedBy = inputs.reviewedBy;
|
|
24
|
+
const notes = inputs.notes;
|
|
25
|
+
if (!profileId) {
|
|
26
|
+
throw new Error('profileId is required');
|
|
27
|
+
}
|
|
28
|
+
if (!status) {
|
|
29
|
+
throw new Error('status is required');
|
|
30
|
+
}
|
|
31
|
+
const profile = await this.kycService.updateStatus(profileId, status, reviewedBy, notes);
|
|
32
|
+
return {
|
|
33
|
+
id: profile.id,
|
|
34
|
+
userId: profile.userId,
|
|
35
|
+
status: profile.status,
|
|
36
|
+
verificationLevel: profile.verificationLevel,
|
|
37
|
+
reviewedBy: profile.reviewedBy,
|
|
38
|
+
reviewNotes: profile.reviewNotes,
|
|
39
|
+
submittedAt: profile.submittedAt?.toISOString(),
|
|
40
|
+
reviewedAt: profile.reviewedAt?.toISOString(),
|
|
41
|
+
approvedAt: profile.approvedAt?.toISOString(),
|
|
42
|
+
rejectedAt: profile.rejectedAt?.toISOString(),
|
|
43
|
+
rejectionReason: profile.rejectionReason,
|
|
44
|
+
updatedAt: profile.updatedAt?.toISOString() || new Date().toISOString(),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.UpdateKYCStatusService = UpdateKYCStatusService;
|
|
49
|
+
exports.UpdateKYCStatusService = UpdateKYCStatusService = __decorate([
|
|
50
|
+
(0, common_1.Injectable)(),
|
|
51
|
+
__metadata("design:paramtypes", [kyc_1.KYCService])
|
|
52
|
+
], UpdateKYCStatusService);
|
|
53
|
+
//# sourceMappingURL=update-kyc-status.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-status.service.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-status.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA2D;AAKpD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACJ;IAA7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,CAAC,SAAmB,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,CAAC,MAAoB,CAAC;QAC3C,MAAM,UAAU,GAAG,MAAM,CAAC,UAAgC,CAAC;QAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,KAA2B,CAAC;QAEjD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QACD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACxC,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAEzF,OAAO;YACL,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE;YAC/C,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE;YAC7C,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACxE,CAAC;IACJ,CAAC;CACF,CAAA;AApCY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAE8B,gBAAU;GADxC,sBAAsB,CAoClC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KYCVerification } from '@venturialstd/kyc';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { IWorkflowActionService, WorkflowActionContext } from '../../types';
|
|
4
|
+
export declare class UpdateKYCVerificationByProviderService implements IWorkflowActionService {
|
|
5
|
+
private readonly kycVerificationRepository;
|
|
6
|
+
constructor(kycVerificationRepository: Repository<KYCVerification>);
|
|
7
|
+
perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=update-kyc-verification-by-provider.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-verification-by-provider.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-verification-by-provider.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,sCAAuC,YAAW,sBAAsB;IAGjF,OAAO,CAAC,QAAQ,CAAC,yBAAyB;gBAAzB,yBAAyB,EAAE,UAAU,CAAC,eAAe,CAAC;IAGnE,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CA2GpC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateKYCVerificationByProviderService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const kyc_1 = require("@venturialstd/kyc");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
let UpdateKYCVerificationByProviderService = class UpdateKYCVerificationByProviderService {
|
|
21
|
+
kycVerificationRepository;
|
|
22
|
+
constructor(kycVerificationRepository) {
|
|
23
|
+
this.kycVerificationRepository = kycVerificationRepository;
|
|
24
|
+
}
|
|
25
|
+
async perform(inputs, _context) {
|
|
26
|
+
const provider = inputs.provider;
|
|
27
|
+
const providerVerificationId = inputs.providerVerificationId;
|
|
28
|
+
const status = inputs.status;
|
|
29
|
+
const verificationType = inputs.verificationType;
|
|
30
|
+
const confidenceScore = inputs.confidenceScore !== undefined
|
|
31
|
+
? typeof inputs.confidenceScore === 'string'
|
|
32
|
+
? parseFloat(inputs.confidenceScore)
|
|
33
|
+
: inputs.confidenceScore
|
|
34
|
+
: undefined;
|
|
35
|
+
const notes = inputs.notes;
|
|
36
|
+
const rejectionReason = inputs.rejectionReason;
|
|
37
|
+
const verifiedBy = inputs.verifiedBy;
|
|
38
|
+
const selfie = inputs.selfie;
|
|
39
|
+
const selfieVideo = inputs.selfieVideo;
|
|
40
|
+
const providerResponse = inputs.providerResponse
|
|
41
|
+
? typeof inputs.providerResponse === 'string'
|
|
42
|
+
? JSON.parse(inputs.providerResponse)
|
|
43
|
+
: inputs.providerResponse
|
|
44
|
+
: undefined;
|
|
45
|
+
const metadata = inputs.metadata
|
|
46
|
+
? typeof inputs.metadata === 'string'
|
|
47
|
+
? JSON.parse(inputs.metadata)
|
|
48
|
+
: inputs.metadata
|
|
49
|
+
: undefined;
|
|
50
|
+
if (!provider) {
|
|
51
|
+
throw new Error('provider is required');
|
|
52
|
+
}
|
|
53
|
+
if (!providerVerificationId) {
|
|
54
|
+
throw new Error('providerVerificationId is required');
|
|
55
|
+
}
|
|
56
|
+
const verification = await this.kycVerificationRepository.findOne({
|
|
57
|
+
where: {
|
|
58
|
+
provider,
|
|
59
|
+
providerVerificationId,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
if (!verification) {
|
|
63
|
+
throw new Error(`Verification not found for provider ${provider} with verification ID ${providerVerificationId}`);
|
|
64
|
+
}
|
|
65
|
+
if (status !== undefined) {
|
|
66
|
+
verification.status = status;
|
|
67
|
+
}
|
|
68
|
+
if (verificationType !== undefined) {
|
|
69
|
+
verification.verificationType = verificationType;
|
|
70
|
+
}
|
|
71
|
+
if (confidenceScore !== undefined) {
|
|
72
|
+
verification.confidenceScore = confidenceScore;
|
|
73
|
+
}
|
|
74
|
+
if (notes !== undefined) {
|
|
75
|
+
verification.notes = notes;
|
|
76
|
+
}
|
|
77
|
+
if (rejectionReason !== undefined) {
|
|
78
|
+
verification.rejectionReason = rejectionReason;
|
|
79
|
+
}
|
|
80
|
+
if (verifiedBy !== undefined) {
|
|
81
|
+
verification.verifiedBy = verifiedBy;
|
|
82
|
+
}
|
|
83
|
+
if (selfie !== undefined) {
|
|
84
|
+
verification.selfie = selfie;
|
|
85
|
+
}
|
|
86
|
+
if (selfieVideo !== undefined) {
|
|
87
|
+
verification.selfieVideo = selfieVideo;
|
|
88
|
+
}
|
|
89
|
+
if (providerResponse !== undefined) {
|
|
90
|
+
verification.providerResponse = providerResponse;
|
|
91
|
+
}
|
|
92
|
+
if (metadata !== undefined) {
|
|
93
|
+
verification.metadata = {
|
|
94
|
+
...verification.metadata,
|
|
95
|
+
...metadata,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (status === kyc_1.KYC_STATUS.APPROVED && !verification.verifiedAt) {
|
|
99
|
+
verification.verifiedAt = new Date();
|
|
100
|
+
}
|
|
101
|
+
const updatedVerification = await this.kycVerificationRepository.save(verification);
|
|
102
|
+
return {
|
|
103
|
+
id: updatedVerification.id,
|
|
104
|
+
kycProfileId: updatedVerification.kycProfileId,
|
|
105
|
+
verificationType: updatedVerification.verificationType,
|
|
106
|
+
status: updatedVerification.status,
|
|
107
|
+
provider: updatedVerification.provider,
|
|
108
|
+
providerVerificationId: updatedVerification.providerVerificationId,
|
|
109
|
+
confidenceScore: updatedVerification.confidenceScore,
|
|
110
|
+
notes: updatedVerification.notes,
|
|
111
|
+
rejectionReason: updatedVerification.rejectionReason,
|
|
112
|
+
verifiedAt: updatedVerification.verifiedAt?.toISOString() || null,
|
|
113
|
+
verifiedBy: updatedVerification.verifiedBy,
|
|
114
|
+
selfie: updatedVerification.selfie,
|
|
115
|
+
selfieVideo: updatedVerification.selfieVideo,
|
|
116
|
+
updatedAt: updatedVerification.updatedAt?.toISOString() || new Date().toISOString(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
exports.UpdateKYCVerificationByProviderService = UpdateKYCVerificationByProviderService;
|
|
121
|
+
exports.UpdateKYCVerificationByProviderService = UpdateKYCVerificationByProviderService = __decorate([
|
|
122
|
+
(0, common_1.Injectable)(),
|
|
123
|
+
__param(0, (0, typeorm_1.InjectRepository)(kyc_1.KYCVerification)),
|
|
124
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
125
|
+
], UpdateKYCVerificationByProviderService);
|
|
126
|
+
//# sourceMappingURL=update-kyc-verification-by-provider.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-kyc-verification-by-provider.service.js","sourceRoot":"","sources":["../../../../src/modules/kyc/services/update-kyc-verification-by-provider.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,2CAG2B;AAC3B,qCAAqC;AAK9B,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAG9B;IAFnB,YAEmB,yBAAsD;QAAtD,8BAAyB,GAAzB,yBAAyB,CAA6B;IACtE,CAAC;IAEJ,KAAK,CAAC,OAAO,CACX,MAA+B,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,0BAAgB,EAAC,qBAAe,CAAC,CAAA;qCACU,oBAAU;GAH7C,sCAAsC,CAoHlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.module.d.ts","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AA2BnB,qBAiDa,cAAc;CAAG"}
|
package/dist/workflow.module.js
CHANGED
|
@@ -21,6 +21,7 @@ const events_nest_module_1 = require("./modules/events/events-nest.module");
|
|
|
21
21
|
const fintech_nest_module_1 = require("./modules/fintech/fintech-nest.module");
|
|
22
22
|
const inbestgo_nest_module_1 = require("./modules/inbestgo/inbestgo-nest.module");
|
|
23
23
|
const kira_nest_module_1 = require("./modules/kira/kira-nest.module");
|
|
24
|
+
const kyc_nest_module_1 = require("./modules/kyc/kyc-nest.module");
|
|
24
25
|
const session_nest_module_1 = require("./modules/session/session-nest.module");
|
|
25
26
|
const slack_nest_module_1 = require("./modules/slack/slack-nest.module");
|
|
26
27
|
const toolbox_nest_module_1 = require("./modules/toolbox/toolbox-nest.module");
|
|
@@ -49,6 +50,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
49
50
|
fintech_nest_module_1.FintechNestModule,
|
|
50
51
|
inbestgo_nest_module_1.InbestgoNestModule,
|
|
51
52
|
kira_nest_module_1.KiraNestModule,
|
|
53
|
+
kyc_nest_module_1.KYCNestModule,
|
|
52
54
|
session_nest_module_1.SessionNestModule,
|
|
53
55
|
slack_nest_module_1.SlackNestModule,
|
|
54
56
|
toolbox_nest_module_1.ToolboxNestModule,
|
|
@@ -71,6 +73,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
71
73
|
fintech_nest_module_1.FintechNestModule,
|
|
72
74
|
inbestgo_nest_module_1.InbestgoNestModule,
|
|
73
75
|
kira_nest_module_1.KiraNestModule,
|
|
76
|
+
kyc_nest_module_1.KYCNestModule,
|
|
74
77
|
session_nest_module_1.SessionNestModule,
|
|
75
78
|
slack_nest_module_1.SlackNestModule,
|
|
76
79
|
toolbox_nest_module_1.ToolboxNestModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,yEAAoE;AACpE,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,+EAA0E;AAC1E,yEAAoE;AACpE,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../src/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,qBAAmB;AAEnB,2CAAwC;AACxC,6CAAkD;AAElD,gEAA2D;AAC3D,sEAAiE;AACjE,+EAA0E;AAC1E,+EAA0E;AAC1E,4EAAuE;AACvE,2FAAsF;AACtF,yEAAoE;AACpE,4EAAuE;AACvE,+EAA0E;AAC1E,kFAA6E;AAC7E,sEAAiE;AACjE,mEAA8D;AAC9D,+EAA0E;AAC1E,yEAAoE;AACpE,+EAA0E;AAC1E,4EAAuE;AACvE,sEAAiE;AACjE,wFAAmF;AACnF,yEAAoE;AACpE,+EAA0E;AAC1E,iEAA4D;AAmDrD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAjD1B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,+BAAa;YACb,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;SAClB;QACD,OAAO,EAAE;YACP,yCAAkB;YAClB,6BAAY;YACZ,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,qCAAgB;YAChB,+CAAqB;YACrB,mCAAe;YACf,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,iCAAc;YACd,+BAAa;YACb,uCAAiB;YACjB,mCAAe;YACf,uCAAiB;YACjB,qCAAgB;YAChB,iCAAc;YACd,6CAAoB;YACpB,mCAAe;YACf,uCAAiB;SAClB;KACF,CAAC;GACW,cAAc,CAAG"}
|