mfance-shark-v1 1.0.38 → 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/common/entities/users/agent.entity.d.ts +1 -0
- package/dist/common/entities/users/agent.entity.js +4 -0
- package/dist/common/entities/users/agent.entity.js.map +1 -1
- package/dist/common/entities/users/distributor.entity.d.ts +3 -0
- package/dist/common/entities/users/distributor.entity.js +14 -4
- package/dist/common/entities/users/distributor.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,k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,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;8CACvB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACb,IAAI;gDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,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,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AAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;;sCAChC;eAzET,IAAI;IAFhB,IAAA,gBAAM,EAAC,OAAO,CAAC;IACf,IAAA,gBAAM,EAAC,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;GACpB,IAAI,CA6EhB"}
|
|
@@ -4,6 +4,7 @@ import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
|
4
4
|
import { TotupsAgent } from '../totups/totups-agent.entity';
|
|
5
5
|
export declare class Agent extends AuditableEntity {
|
|
6
6
|
userId: string;
|
|
7
|
+
agentName: string;
|
|
7
8
|
agentCode: string;
|
|
8
9
|
distributorId: string;
|
|
9
10
|
isVerified: boolean;
|
|
@@ -23,6 +23,10 @@ __decorate([
|
|
|
23
23
|
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], Agent.prototype, "userId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'agent_name', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Agent.prototype, "agentName", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, typeorm_1.Column)({ name: 'agent_code', nullable: true }),
|
|
28
32
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA0E;AAC1E,gDAAsC;AACtC,6DAAmD;AACnD,0EAAsE;AACtE,qFAAyE;AACzE,uEAA4D;AAKrD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kCAAe;
|
|
1
|
+
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA0E;AAC1E,gDAAsC;AACtC,6DAAmD;AACnD,0EAAsE;AACtE,q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E,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC1B,gCAAW;0CAAC;AAIzB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACpB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;mCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;;qCAC/B;gBAzCX,KAAK;IAHjB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,KAAK;KACxB,CAAC;GACW,KAAK,CA0CjB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuditableEntity } from "../../../auditable/auditable.entity";
|
|
2
2
|
import { TotupsAgent } from "../totups/totups-agent.entity";
|
|
3
3
|
import { TotupsDist } from "../totups/totups-dist.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
4
5
|
export declare class Distributor extends AuditableEntity {
|
|
5
6
|
name: string;
|
|
6
7
|
distributorCode: string;
|
|
@@ -17,4 +18,6 @@ export declare class Distributor extends AuditableEntity {
|
|
|
17
18
|
isBlocked: boolean;
|
|
18
19
|
totups: TotupsAgent[];
|
|
19
20
|
totupsDist: TotupsDist[];
|
|
21
|
+
userId: string;
|
|
22
|
+
user: User;
|
|
20
23
|
}
|
|
@@ -16,6 +16,7 @@ const classes_1 = require("@automapper/classes");
|
|
|
16
16
|
const typeorm_1 = require("typeorm");
|
|
17
17
|
const totups_agent_entity_1 = require("../totups/totups-agent.entity");
|
|
18
18
|
const totups_dist_entity_1 = require("../totups/totups-dist.entity");
|
|
19
|
+
const user_entity_1 = require("../user.entity");
|
|
19
20
|
let Distributor = class Distributor extends auditable_entity_1.AuditableEntity {
|
|
20
21
|
};
|
|
21
22
|
exports.Distributor = Distributor;
|
|
@@ -66,22 +67,22 @@ __decorate([
|
|
|
66
67
|
], Distributor.prototype, "registrationChannel", void 0);
|
|
67
68
|
__decorate([
|
|
68
69
|
(0, classes_1.AutoMap)(),
|
|
69
|
-
(0, typeorm_1.Column)({ nullable: false, type:
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: false, type: "boolean", default: true }),
|
|
70
71
|
__metadata("design:type", Boolean)
|
|
71
72
|
], Distributor.prototype, "isActive", void 0);
|
|
72
73
|
__decorate([
|
|
73
74
|
(0, classes_1.AutoMap)(),
|
|
74
|
-
(0, typeorm_1.Column)({ nullable: false, type:
|
|
75
|
+
(0, typeorm_1.Column)({ nullable: false, type: "boolean", default: false }),
|
|
75
76
|
__metadata("design:type", Boolean)
|
|
76
77
|
], Distributor.prototype, "isDeleted", void 0);
|
|
77
78
|
__decorate([
|
|
78
79
|
(0, classes_1.AutoMap)(),
|
|
79
|
-
(0, typeorm_1.Column)({ nullable: false, type:
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: false, type: "boolean", default: false }),
|
|
80
81
|
__metadata("design:type", Boolean)
|
|
81
82
|
], Distributor.prototype, "isVerified", void 0);
|
|
82
83
|
__decorate([
|
|
83
84
|
(0, classes_1.AutoMap)(),
|
|
84
|
-
(0, typeorm_1.Column)({ nullable: false, type:
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: false, type: "boolean", default: false }),
|
|
85
86
|
__metadata("design:type", Boolean)
|
|
86
87
|
], Distributor.prototype, "isBlocked", void 0);
|
|
87
88
|
__decorate([
|
|
@@ -92,6 +93,15 @@ __decorate([
|
|
|
92
93
|
(0, typeorm_1.OneToMany)(() => totups_dist_entity_1.TotupsDist, (totup) => totup.distributor),
|
|
93
94
|
__metadata("design:type", Array)
|
|
94
95
|
], Distributor.prototype, "totupsDist", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ name: "user_id" }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], Distributor.prototype, "userId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User),
|
|
102
|
+
(0, typeorm_1.JoinColumn)({ name: "user_id" }),
|
|
103
|
+
__metadata("design:type", user_entity_1.User)
|
|
104
|
+
], Distributor.prototype, "user", void 0);
|
|
95
105
|
exports.Distributor = Distributor = __decorate([
|
|
96
106
|
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.DISTRIBUTOR)
|
|
97
107
|
], Distributor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,iDAA8C;AAC9C,qCAA0E;AAC1E,uEAA4D;AAC5D,qEAA0D;AAC1D,gDAAsC;AAG/B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CAiE/C,CAAA;AAjEY,kCAAW;AAGtB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACf;AAIb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACH;AAIxB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC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