mfance-shark-v1 1.0.30 → 1.0.31
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 +3 -1
- package/dist/common/entities/index.js +6 -0
- package/dist/common/entities/index.js.map +1 -1
- package/dist/common/entities/totups/totups-agent.entity.d.ts +16 -0
- package/dist/common/entities/totups/totups-agent.entity.js +76 -0
- package/dist/common/entities/totups/totups-agent.entity.js.map +1 -0
- package/dist/common/entities/totups/totups-dist.entity.d.ts +15 -0
- package/dist/common/entities/totups/totups-dist.entity.js +72 -0
- package/dist/common/entities/totups/totups-dist.entity.js.map +1 -0
- package/dist/common/entities/user.entity.d.ts +6 -0
- package/dist/common/entities/user.entity.js +24 -0
- package/dist/common/entities/user.entity.js.map +1 -1
- package/dist/common/entities/users/agent.entity.d.ts +15 -0
- package/dist/common/entities/users/agent.entity.js +66 -0
- package/dist/common/entities/users/agent.entity.js.map +1 -0
- package/dist/common/utils/constants/table-names.constant.d.ts +3 -1
- package/dist/common/utils/constants/table-names.constant.js +3 -1
- package/dist/common/utils/constants/table-names.constant.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -21,4 +21,6 @@ import { Rock } from './rock.entity';
|
|
|
21
21
|
import { Distributor } from './users/distributor.entity';
|
|
22
22
|
import { Audit } from './audit.entity';
|
|
23
23
|
import { OtpCode } from './otp-code.entity';
|
|
24
|
-
|
|
24
|
+
import { Agent } from './users/agent.entity';
|
|
25
|
+
import { TotupsDist } from './totups/totups-dist.entity';
|
|
26
|
+
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 Distributor | typeof Audit | typeof Agent | typeof TotupsDist)[];
|
|
@@ -28,6 +28,9 @@ const rock_entity_1 = require("./rock.entity");
|
|
|
28
28
|
const distributor_entity_1 = require("./users/distributor.entity");
|
|
29
29
|
const audit_entity_1 = require("./audit.entity");
|
|
30
30
|
const otp_code_entity_1 = require("./otp-code.entity");
|
|
31
|
+
const agent_entity_1 = require("./users/agent.entity");
|
|
32
|
+
const totups_agent_entity_1 = require("./totups/totups-agent.entity");
|
|
33
|
+
const totups_dist_entity_1 = require("./totups/totups-dist.entity");
|
|
31
34
|
exports.entities = [
|
|
32
35
|
file_entity_1.File,
|
|
33
36
|
user_entity_1.User,
|
|
@@ -58,5 +61,8 @@ exports.entities = [
|
|
|
58
61
|
distributor_entity_1.Distributor,
|
|
59
62
|
audit_entity_1.Audit,
|
|
60
63
|
otp_code_entity_1.OtpCode,
|
|
64
|
+
agent_entity_1.Agent,
|
|
65
|
+
totups_agent_entity_1.TotupsAgent,
|
|
66
|
+
totups_dist_entity_1.TotupsDist,
|
|
61
67
|
];
|
|
62
68
|
//# 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;
|
|
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;AAM5C,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,kBAAI;IACJ,kBAAI;IACJ,gCAAW;IACX,oBAAK;IACL,yBAAO;IACP,oBAAK;IACL,iCAAW;IACX,+BAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuditableEntity } from '@/auditable/auditable.entity';
|
|
2
|
+
export declare class TotupsAgent extends AuditableEntity {
|
|
3
|
+
agentId: number;
|
|
4
|
+
distributorId: number;
|
|
5
|
+
reference: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
status: string;
|
|
9
|
+
isApproved: boolean;
|
|
10
|
+
isRejected: boolean;
|
|
11
|
+
isPending: boolean;
|
|
12
|
+
isCancelled: boolean;
|
|
13
|
+
approvedDate: Date;
|
|
14
|
+
cancelledDate: Date;
|
|
15
|
+
approvedBy: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.TotupsAgent = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
|
+
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
16
|
+
let TotupsAgent = class TotupsAgent extends auditable_entity_1.AuditableEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.TotupsAgent = TotupsAgent;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ name: 'agent_id' }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], TotupsAgent.prototype, "agentId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ name: 'distributor_id' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], TotupsAgent.prototype, "distributorId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'reference', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], TotupsAgent.prototype, "reference", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'amount', nullable: true }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], TotupsAgent.prototype, "amount", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'currency', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TotupsAgent.prototype, "currency", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'status', nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], TotupsAgent.prototype, "status", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'is_approved', default: false }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], TotupsAgent.prototype, "isApproved", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'is_rejected', default: false }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], TotupsAgent.prototype, "isRejected", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'is_pending', default: false }),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], TotupsAgent.prototype, "isPending", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'is_cancelled', default: false }),
|
|
57
|
+
__metadata("design:type", Boolean)
|
|
58
|
+
], TotupsAgent.prototype, "isCancelled", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'approved_date', nullable: true }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], TotupsAgent.prototype, "approvedDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'cancelled_date', nullable: true }),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], TotupsAgent.prototype, "cancelledDate", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ name: 'approved_by', nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], TotupsAgent.prototype, "approvedBy", void 0);
|
|
71
|
+
exports.TotupsAgent = TotupsAgent = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)({
|
|
73
|
+
name: table_names_constant_1.TABLE_NAMES.TOTUPS_AGENT
|
|
74
|
+
})
|
|
75
|
+
], TotupsAgent);
|
|
76
|
+
//# sourceMappingURL=totups-agent.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"totups-agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,qFAA4E;AAC5E,0EAA+D;AAKxD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CAyC/C,CAAA;AAzCY,kCAAW;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;4CACb;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;kDACb;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,WAAW,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;8CAC5B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,QAAQ,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC5B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,UAAU,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;6CAC5B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,QAAQ,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;2CAC5B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;+CAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;+CAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,YAAY,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;8CAC5B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,cAAc,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;gDAC5B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,eAAe,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;iDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,gBAAgB,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;kDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;+CAC7B;sBAvCR,WAAW;IAHvB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,YAAY;KAC/B,CAAC;GACW,WAAW,CAyCvB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuditableEntity } from '@/auditable/auditable.entity';
|
|
2
|
+
export declare class TotupsDist extends AuditableEntity {
|
|
3
|
+
distributorId: number;
|
|
4
|
+
reference: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
currency: string;
|
|
7
|
+
status: string;
|
|
8
|
+
isApproved: boolean;
|
|
9
|
+
isRejected: boolean;
|
|
10
|
+
isPending: boolean;
|
|
11
|
+
isCancelled: boolean;
|
|
12
|
+
approvedDate: Date;
|
|
13
|
+
cancelledDate: Date;
|
|
14
|
+
approvedBy: number;
|
|
15
|
+
}
|
|
@@ -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.TotupsDist = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
|
+
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
16
|
+
let TotupsDist = class TotupsDist extends auditable_entity_1.AuditableEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.TotupsDist = TotupsDist;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ name: 'distributor_id' }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], TotupsDist.prototype, "distributorId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ name: 'reference', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], TotupsDist.prototype, "reference", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'amount', nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], TotupsDist.prototype, "amount", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'currency', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], TotupsDist.prototype, "currency", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'status', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TotupsDist.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'is_approved', default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], TotupsDist.prototype, "isApproved", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'is_rejected', default: false }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], TotupsDist.prototype, "isRejected", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'is_pending', default: false }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], TotupsDist.prototype, "isPending", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'is_cancelled', default: false }),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], TotupsDist.prototype, "isCancelled", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'approved_date', nullable: true }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], TotupsDist.prototype, "approvedDate", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'cancelled_date', nullable: true }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], TotupsDist.prototype, "cancelledDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'approved_by', nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], TotupsDist.prototype, "approvedBy", void 0);
|
|
67
|
+
exports.TotupsDist = TotupsDist = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)({
|
|
69
|
+
name: table_names_constant_1.TABLE_NAMES.TOTUPS_DIST
|
|
70
|
+
})
|
|
71
|
+
], TotupsDist);
|
|
72
|
+
//# sourceMappingURL=totups-dist.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"totups-dist.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/totups/totups-dist.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,qFAA4E;AAC5E,0EAA+D;AAKxD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAsC9C,CAAA;AAtCY,gCAAU;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;iDACb;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,WAAW,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;6CAC5B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,QAAQ,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;0CAC5B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,UAAU,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;4CAC5B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,QAAQ,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;0CAC5B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;8CAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;8CAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,YAAY,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;6CAC5B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,cAAc,EAAG,OAAO,EAAE,KAAK,EAAC,CAAC;;+CAC5B;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,eAAe,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;gDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,gBAAgB,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;8BACpC,IAAI;iDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAC,IAAI,EAAG,aAAa,EAAG,QAAQ,EAAE,IAAI,EAAC,CAAC;;8CAC7B;qBApCR,UAAU;IAHtB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kCAAW,CAAC,WAAW;KAC9B,CAAC;GACW,UAAU,CAsCtB"}
|
|
@@ -15,6 +15,12 @@ export declare class User extends AuditableEntity {
|
|
|
15
15
|
password: string;
|
|
16
16
|
isVerified: boolean;
|
|
17
17
|
passwordResetRequired: boolean;
|
|
18
|
+
tryCount: number;
|
|
19
|
+
isCustomer: boolean;
|
|
20
|
+
isLocked: boolean;
|
|
21
|
+
isKycVerified: boolean;
|
|
22
|
+
isKycPending: boolean;
|
|
23
|
+
isKycRejected: boolean;
|
|
18
24
|
isActive: boolean;
|
|
19
25
|
role: Role;
|
|
20
26
|
permissions: Permission[];
|
|
@@ -60,6 +60,30 @@ __decorate([
|
|
|
60
60
|
(0, typeorm_1.Column)({ name: 'password_reset_required', default: false }),
|
|
61
61
|
__metadata("design:type", Boolean)
|
|
62
62
|
], User.prototype, "passwordResetRequired", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'try_count', default: 0 }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], User.prototype, "tryCount", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ name: 'is_customer', default: false }),
|
|
69
|
+
__metadata("design:type", Boolean)
|
|
70
|
+
], User.prototype, "isCustomer", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ name: 'is_locked', default: false }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], User.prototype, "isLocked", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ name: 'is_kyc_verified', default: false }),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], User.prototype, "isKycVerified", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ name: 'is_kyc_pending', default: false }),
|
|
81
|
+
__metadata("design:type", Boolean)
|
|
82
|
+
], User.prototype, "isKycPending", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ name: 'is_kyc_rejected', default: false }),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], User.prototype, "isKycRejected", void 0);
|
|
63
87
|
__decorate([
|
|
64
88
|
(0, typeorm_1.Column)({ name: 'is_active', default: false }),
|
|
65
89
|
__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,uDAA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ACf,IAAA,gBAAM,EAAC,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;GACpB,IAAI,CA0EhB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from '../user.entity';
|
|
2
|
+
import { Distributor } from './distributor.entity';
|
|
3
|
+
import { AuditableEntity } from '@/auditable/auditable.entity';
|
|
4
|
+
export declare class Agent extends AuditableEntity {
|
|
5
|
+
userId: number;
|
|
6
|
+
agentCode: string;
|
|
7
|
+
distributorId: number;
|
|
8
|
+
isVerified: boolean;
|
|
9
|
+
balanceLimit: number;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
isAccountBreached: boolean;
|
|
12
|
+
isAccountBreachedReason: string;
|
|
13
|
+
distributor: Distributor;
|
|
14
|
+
user: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.Agent = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("../user.entity");
|
|
15
|
+
const distributor_entity_1 = require("./distributor.entity");
|
|
16
|
+
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
17
|
+
let Agent = class Agent extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.Agent = Agent;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Agent.prototype, "userId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'agent_code', nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Agent.prototype, "agentCode", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'distributor_id', nullable: true }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], Agent.prototype, "distributorId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'is_verified', default: false }),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], Agent.prototype, "isVerified", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'balance_limit', default: 0, nullable: true }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Agent.prototype, "balanceLimit", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'is_active', default: true }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], Agent.prototype, "isActive", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'is_account_breached', default: false }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], Agent.prototype, "isAccountBreached", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'is_account_breached_reason', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Agent.prototype, "isAccountBreachedReason", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'is_account_breached_date', nullable: true }),
|
|
54
|
+
(0, typeorm_1.OneToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.id),
|
|
55
|
+
(0, typeorm_1.JoinColumn)({ name: 'distributor_id' }),
|
|
56
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
57
|
+
], Agent.prototype, "distributor", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, (user) => user.id),
|
|
60
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
61
|
+
__metadata("design:type", user_entity_1.User)
|
|
62
|
+
], Agent.prototype, "user", void 0);
|
|
63
|
+
exports.Agent = Agent = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)()
|
|
65
|
+
], Agent);
|
|
66
|
+
//# sourceMappingURL=agent.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsI;AACtI,gDAAsC;AACtC,6DAAmD;AACnD,0EAA+D;AAGxD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,kCAAe;CAmCzC,CAAA;AAnCY,sBAAK;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qCACb;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAG,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAG,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC9B;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,e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|
|
32
|
+
AGENT: string;
|
|
31
33
|
};
|
|
@@ -27,9 +27,11 @@ exports.TABLE_NAMES = {
|
|
|
27
27
|
STOCK_STONE_PARTNER: 'stock_stone_partner',
|
|
28
28
|
CURRENCY_VALUE: 'currency_values',
|
|
29
29
|
DISTRIBUTOR: 'distributors',
|
|
30
|
-
|
|
30
|
+
TOTUPS_AGENT: 'totups_agents',
|
|
31
|
+
TOTUPS_DIST: 'totups_distributors',
|
|
31
32
|
SOLDE_DIST: 'solde_dist',
|
|
32
33
|
AUDIT: 'audits',
|
|
33
34
|
OTP_CODE: 'otp_codes',
|
|
35
|
+
AGENT: 'agents',
|
|
34
36
|
};
|
|
35
37
|
//# sourceMappingURL=table-names.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,
|
|
1
|
+
{"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAG,YAAY;IACzB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;CAChB,CAAC"}
|