mfance-shark-v1 1.0.40 → 1.0.41
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/common/entities/index.d.ts +2 -1
- package/dist/common/entities/index.js +2 -0
- package/dist/common/entities/index.js.map +1 -1
- package/dist/common/entities/kyc_request.entity.d.ts +22 -0
- package/dist/common/entities/kyc_request.entity.js +95 -0
- package/dist/common/entities/kyc_request.entity.js.map +1 -0
- package/dist/common/entities/user.entity.d.ts +1 -0
- package/dist/common/entities/user.entity.js +4 -0
- package/dist/common/entities/user.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -25,4 +25,5 @@ import { Agent } from './users/agent.entity';
|
|
|
25
25
|
import { TotupsAgent } from './totups/totups-agent.entity';
|
|
26
26
|
import { TotupsDist } from './totups/totups-dist.entity';
|
|
27
27
|
import { ThirdPartyProvider } from './thirdpartyprovider.entity';
|
|
28
|
-
|
|
28
|
+
import { KycRequest } from './kyc_request.entity';
|
|
29
|
+
export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof CaisseDailyWorker | typeof Caisse | typeof Operation | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof Audit | typeof ThirdPartyProvider | typeof KycRequest)[];
|
|
@@ -33,6 +33,7 @@ const totups_agent_entity_1 = require("./totups/totups-agent.entity");
|
|
|
33
33
|
const totups_dist_entity_1 = require("./totups/totups-dist.entity");
|
|
34
34
|
const thirdpartytype_entity_1 = require("./thirdpartytype.entity");
|
|
35
35
|
const thirdpartyprovider_entity_1 = require("./thirdpartyprovider.entity");
|
|
36
|
+
const kyc_request_entity_1 = require("./kyc_request.entity");
|
|
36
37
|
exports.entities = [
|
|
37
38
|
file_entity_1.File,
|
|
38
39
|
user_entity_1.User,
|
|
@@ -66,5 +67,6 @@ exports.entities = [
|
|
|
66
67
|
totups_dist_entity_1.TotupsDist,
|
|
67
68
|
thirdpartytype_entity_1.ThirdPartyType,
|
|
68
69
|
thirdpartyprovider_entity_1.ThirdPartyProvider,
|
|
70
|
+
kyc_request_entity_1.KycRequest,
|
|
69
71
|
];
|
|
70
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,+CAAqC;AACrC,oFAAwE;AACxE,0DAAgD;AAChD,8EAAmE;AACnE,wFAA4E;AAC5E,oEAAyD;AACzD,+CAAqC;AACrC,2DAAiD;AACjD,qDAA2C;AAC3C,2DAAgD;AAChD,uDAA6C;AAC7C,sEAA4D;AAC5D,0EAAgE;AAChE,4EAAkE;AAClE,iDAAuC;AACvC,iEAAsD;AACtD,uEAA2D;AAC3D,6EAAiE;AACjE,6DAAmD;AACnD,yDAA+C;AAC/C,iEAAuD;AACvD,mEAAwD;AACxD,+CAAqC;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AACzD,mEAAyD;AACzD,2EAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,+CAAqC;AACrC,oFAAwE;AACxE,0DAAgD;AAChD,8EAAmE;AACnE,wFAA4E;AAC5E,oEAAyD;AACzD,+CAAqC;AACrC,2DAAiD;AACjD,qDAA2C;AAC3C,2DAAgD;AAChD,uDAA6C;AAC7C,sEAA4D;AAC5D,0EAAgE;AAChE,4EAAkE;AAClE,iDAAuC;AACvC,iEAAsD;AACtD,uEAA2D;AAC3D,6EAAiE;AACjE,6DAAmD;AACnD,yDAA+C;AAC/C,iEAAuD;AACvD,mEAAwD;AACxD,+CAAqC;AACrC,mEAAyD;AACzD,iDAAuC;AACvC,uDAA4C;AAC5C,uDAA6C;AAC7C,sEAA2D;AAC3D,oEAAyD;AACzD,mEAAyD;AACzD,2EAAiE;AACjE,6DAAkD;AAMrC,QAAA,QAAQ,GAAG;IACpB,kBAAI;IACJ,kBAAI;IACJ,8CAAiB;IACjB,sBAAM;IACN,yCAAe;IACf,kDAAmB;IACnB,+BAAU;IACV,kBAAI;IACJ,8BAAU;IACV,wBAAO;IACP,6BAAS;IACT,0BAAQ;IACR,kCAAY;IACZ,sCAAc;IACd,wCAAe;IACf,oBAAK;IACL,mCAAY;IACZ,wCAAc;IACd,8CAAiB;IACjB,gCAAW;IACX,4BAAS;IACT,oCAAa;IACb,qCAAa;IACb,kBAAI;IACJ,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;IACV,sCAAc;IACd,8CAAkB;IAClB,+BAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AuditableEntity } from "../../auditable/auditable.entity";
|
|
2
|
+
import { User } from "./user.entity";
|
|
3
|
+
export declare class KycRequest extends AuditableEntity {
|
|
4
|
+
userId: string;
|
|
5
|
+
user: User;
|
|
6
|
+
status: string;
|
|
7
|
+
reason: string;
|
|
8
|
+
documentType: string;
|
|
9
|
+
idCardFront: string;
|
|
10
|
+
idCardBack: string;
|
|
11
|
+
selfie: string;
|
|
12
|
+
registrationDocument: string;
|
|
13
|
+
rccm: string;
|
|
14
|
+
isRegistrationDocument: boolean;
|
|
15
|
+
rccmSelfie: string;
|
|
16
|
+
isPending: boolean;
|
|
17
|
+
isAccepted: boolean;
|
|
18
|
+
isRejected: boolean;
|
|
19
|
+
approvedDate: Date;
|
|
20
|
+
rejectedDate: Date;
|
|
21
|
+
rejectedReason: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.KycRequest = void 0;
|
|
13
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
let KycRequest = class KycRequest extends auditable_entity_1.AuditableEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.KycRequest = KycRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], KycRequest.prototype, "userId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User),
|
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
26
|
+
__metadata("design:type", user_entity_1.User)
|
|
27
|
+
], KycRequest.prototype, "user", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], KycRequest.prototype, "status", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], KycRequest.prototype, "reason", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], KycRequest.prototype, "documentType", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], KycRequest.prototype, "idCardFront", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], KycRequest.prototype, "idCardBack", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], KycRequest.prototype, "selfie", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], KycRequest.prototype, "registrationDocument", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], KycRequest.prototype, "rccm", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], KycRequest.prototype, "isRegistrationDocument", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], KycRequest.prototype, "rccmSelfie", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], KycRequest.prototype, "isPending", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], KycRequest.prototype, "isAccepted", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], KycRequest.prototype, "isRejected", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], KycRequest.prototype, "approvedDate", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
+
__metadata("design:type", Date)
|
|
87
|
+
], KycRequest.prototype, "rejectedDate", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], KycRequest.prototype, "rejectedReason", void 0);
|
|
92
|
+
exports.KycRequest = KycRequest = __decorate([
|
|
93
|
+
(0, typeorm_1.Entity)()
|
|
94
|
+
], KycRequest);
|
|
95
|
+
//# sourceMappingURL=kyc_request.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kyc_request.entity.js","sourceRoot":"","sources":["../../../src/common/entities/kyc_request.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAA+D;AAC/D,+CAAqC;AAG9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAwD9C,CAAA;AAxDY,gCAAU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACZ;AAIf;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACpB,IAAA,oBAAU,EAAC,EAA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EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACb,IAAI;gDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACJ;qBAvDZ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAwDtB"}
|
|
@@ -64,6 +64,10 @@ __decorate([
|
|
|
64
64
|
(0, typeorm_1.Column)({ name: 'try_count', default: 0 }),
|
|
65
65
|
__metadata("design:type", Number)
|
|
66
66
|
], User.prototype, "tryCount", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ name: 'picture', nullable: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], User.prototype, "picture", void 0);
|
|
67
71
|
__decorate([
|
|
68
72
|
(0, typeorm_1.Column)({ name: 'is_customer', default: false }),
|
|
69
73
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/common/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAuE;AACvE,uEAAmE;AACnE,+CAAqC;AACrC,qDAA2C;AAC3C,iEAAsD;AAEtD,6EAAiE;AACjE,uDAA4C;AAIrC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAe;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/common/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAuE;AACvE,uEAAmE;AACnE,+CAAqC;AACrC,qDAA2C;AAC3C,iEAAsD;AAEtD,6EAAiE;AACjE,uDAA4C;AAIrC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAe;IAmEvC,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,GAAG,IAAI,CAAC;QAC7C,OAAO,cAAc,CAAC;IACxB,CAAC;CAOF,CAAA;AA7EY,oBAA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