mfance-shark-v1 1.0.38 → 1.0.40
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/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
|
@@ -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;
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I,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;oDAAC;AAI5B;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gCAAW,CAAC;IAC3B,IAAA,oBAAU,EAAC,EAAE,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,iB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