mfance-shark-v1 1.0.47 → 1.0.49
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/config/action_type.entity.d.ts +0 -0
- package/dist/common/entities/config/action_type.entity.js +1 -0
- package/dist/common/entities/config/action_type.entity.js.map +1 -0
- package/dist/common/entities/config/balance_type.entity.d.ts +7 -0
- package/dist/common/entities/config/balance_type.entity.js +43 -0
- package/dist/common/entities/config/balance_type.entity.js.map +1 -0
- 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/qr_code.entity.d.ts +1 -0
- package/dist/common/entities/qr_code.entity.js +4 -0
- package/dist/common/entities/qr_code.entity.js.map +1 -1
- package/dist/common/entities/soldes/solde-agent.entity.d.ts +17 -0
- package/dist/common/entities/soldes/solde-agent.entity.js +84 -0
- package/dist/common/entities/soldes/solde-agent.entity.js.map +1 -0
- package/dist/common/entities/soldes/solde-distributor.entity.d.ts +17 -0
- package/dist/common/entities/soldes/solde-distributor.entity.js +84 -0
- package/dist/common/entities/soldes/solde-distributor.entity.js.map +1 -0
- package/dist/common/utils/constants/table-names.constant.d.ts +4 -0
- package/dist/common/utils/constants/table-names.constant.js +4 -0
- package/dist/common/utils/constants/table-names.constant.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=action_type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action_type.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/config/action_type.entity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.BalanceType = 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
|
+
const classes_1 = require("@automapper/classes");
|
|
17
|
+
let BalanceType = class BalanceType extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.BalanceType = BalanceType;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, classes_1.AutoMap)(),
|
|
22
|
+
(0, typeorm_1.Column)({ name: 'name', type: 'varchar', nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BalanceType.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, classes_1.AutoMap)(),
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'description', type: 'varchar', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BalanceType.prototype, "description", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, classes_1.AutoMap)(),
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', nullable: true }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], BalanceType.prototype, "isActive", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, classes_1.AutoMap)(),
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'is_deleted', type: 'boolean', nullable: true }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], BalanceType.prototype, "isDeleted", void 0);
|
|
40
|
+
exports.BalanceType = BalanceType = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.BALANCE_TYPE)
|
|
42
|
+
], BalanceType);
|
|
43
|
+
//# sourceMappingURL=balance_type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance_type.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/config/balance_type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,qFAAyE;AACzE,0EAAsE;AACtE,iDAA8C;AAGvC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CAa/C,CAAA;AAbY,kCAAW;AAGtB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC7C;AAGb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC7C;AAGpB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC7C;AAGlB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC7C;sBAZR,WAAW;IADvB,IAAA,gBAAM,EAAC,kCAAW,CAAC,YAAY,CAAC;GACpB,WAAW,CAavB"}
|
|
@@ -28,4 +28,6 @@ import { ThirdPartyProvider } from './thirdpartyprovider.entity';
|
|
|
28
28
|
import { KycRequest } from './kyc_request.entity';
|
|
29
29
|
import { Contact } from './contact.entity';
|
|
30
30
|
import { QrCode } from './qr_code.entity';
|
|
31
|
-
|
|
31
|
+
import { SoldeAgent } from './soldes/solde-agent.entity';
|
|
32
|
+
import { SoldeDistributor } from './soldes/solde-distributor.entity';
|
|
33
|
+
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 | typeof Contact | typeof QrCode | typeof SoldeAgent | typeof SoldeDistributor)[];
|
|
@@ -36,6 +36,9 @@ const thirdpartyprovider_entity_1 = require("./thirdpartyprovider.entity");
|
|
|
36
36
|
const kyc_request_entity_1 = require("./kyc_request.entity");
|
|
37
37
|
const contact_entity_1 = require("./contact.entity");
|
|
38
38
|
const qr_code_entity_1 = require("./qr_code.entity");
|
|
39
|
+
const solde_agent_entity_1 = require("./soldes/solde-agent.entity");
|
|
40
|
+
const solde_distributor_entity_1 = require("./soldes/solde-distributor.entity");
|
|
41
|
+
const balance_type_entity_1 = require("./config/balance_type.entity");
|
|
39
42
|
exports.entities = [
|
|
40
43
|
file_entity_1.File,
|
|
41
44
|
user_entity_1.User,
|
|
@@ -71,6 +74,9 @@ exports.entities = [
|
|
|
71
74
|
thirdpartyprovider_entity_1.ThirdPartyProvider,
|
|
72
75
|
kyc_request_entity_1.KycRequest,
|
|
73
76
|
qr_code_entity_1.QrCode,
|
|
77
|
+
balance_type_entity_1.BalanceType,
|
|
74
78
|
contact_entity_1.Contact,
|
|
79
|
+
solde_agent_entity_1.SoldeAgent,
|
|
80
|
+
solde_distributor_entity_1.SoldeDistributor,
|
|
75
81
|
];
|
|
76
82
|
//# 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;AACjE,6DAAkD;AAClD,qDAA2C;AAC3C,qDAA0C;
|
|
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;AAClD,qDAA2C;AAC3C,qDAA0C;AAC1C,oEAAyD;AACzD,gFAAqE;AACrE,sEAA2D;AAI9C,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;IACV,uBAAM;IACN,iCAAW;IAEX,wBAAO;IACP,+BAAU;IACV,2CAAgB;CACnB,CAAC"}
|
|
@@ -31,6 +31,10 @@ __decorate([
|
|
|
31
31
|
(0, typeorm_1.Column)({ default: false }),
|
|
32
32
|
__metadata("design:type", Boolean)
|
|
33
33
|
], QrCode.prototype, "isUsed", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], QrCode.prototype, "usedAt", void 0);
|
|
34
38
|
exports.QrCode = QrCode = __decorate([
|
|
35
39
|
(0, typeorm_1.Entity)()
|
|
36
40
|
], QrCode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr_code.entity.js","sourceRoot":"","sources":["../../../src/common/entities/qr_code.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAyC;AAGlC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,kCAAe;
|
|
1
|
+
{"version":3,"file":"qr_code.entity.js","sourceRoot":"","sources":["../../../src/common/entities/qr_code.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAyC;AAGlC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,kCAAe;CAkB1C,CAAA;AAlBY,wBAAM;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACX;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACnB,IAAI;yCAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;sCAAC;iBAfH,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAkBlB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuditableEntity } from "../../../auditable/auditable.entity";
|
|
2
|
+
import { Agent } from "../users/agent.entity";
|
|
3
|
+
import { BalanceType } from "../config/balance_type.entity";
|
|
4
|
+
import { SoldeOperations } from "./solde-operation.entity";
|
|
5
|
+
import { Transaction } from "../transaction.entity";
|
|
6
|
+
export declare class SoldeAgent extends AuditableEntity {
|
|
7
|
+
agentId: number;
|
|
8
|
+
balanceTypeId: number;
|
|
9
|
+
soldeOpsId: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
oldBalance: number;
|
|
12
|
+
newBalance: number;
|
|
13
|
+
agent: Agent;
|
|
14
|
+
balanceType: BalanceType;
|
|
15
|
+
soldeOpsType: SoldeOperations;
|
|
16
|
+
transaction: Transaction;
|
|
17
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.SoldeAgent = void 0;
|
|
13
|
+
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
16
|
+
const agent_entity_1 = require("../users/agent.entity");
|
|
17
|
+
const classes_1 = require("@automapper/classes");
|
|
18
|
+
const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
19
|
+
const solde_operation_entity_1 = require("./solde-operation.entity");
|
|
20
|
+
const transaction_entity_1 = require("../transaction.entity");
|
|
21
|
+
let SoldeAgent = class SoldeAgent extends auditable_entity_1.AuditableEntity {
|
|
22
|
+
};
|
|
23
|
+
exports.SoldeAgent = SoldeAgent;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, classes_1.AutoMap)(),
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'agent_id', type: 'int', nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], SoldeAgent.prototype, "agentId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, classes_1.AutoMap)(),
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'balance_type_id', type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], SoldeAgent.prototype, "balanceTypeId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, classes_1.AutoMap)(),
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'solde_ops_id', type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], SoldeAgent.prototype, "soldeOpsId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, classes_1.AutoMap)(),
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'amount', type: 'float', nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], SoldeAgent.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, classes_1.AutoMap)(),
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'old_balance', type: 'float', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SoldeAgent.prototype, "oldBalance", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, classes_1.AutoMap)(),
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], SoldeAgent.prototype, "newBalance", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, classes_1.AutoMap)(),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, (agent) => agent.id),
|
|
57
|
+
(0, typeorm_1.JoinColumn)(),
|
|
58
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
59
|
+
], SoldeAgent.prototype, "agent", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, classes_1.AutoMap)(),
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => balance_type_entity_1.BalanceType, (balanceType) => balanceType.id),
|
|
63
|
+
(0, typeorm_1.JoinColumn)(),
|
|
64
|
+
__metadata("design:type", balance_type_entity_1.BalanceType)
|
|
65
|
+
], SoldeAgent.prototype, "balanceType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, classes_1.AutoMap)(),
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => solde_operation_entity_1.SoldeOperations, (soldeOps) => soldeOps.id),
|
|
69
|
+
(0, typeorm_1.JoinColumn)(),
|
|
70
|
+
__metadata("design:type", solde_operation_entity_1.SoldeOperations)
|
|
71
|
+
], SoldeAgent.prototype, "soldeOpsType", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
|
|
74
|
+
nullable: true,
|
|
75
|
+
onDelete: 'CASCADE',
|
|
76
|
+
onUpdate: 'CASCADE',
|
|
77
|
+
}),
|
|
78
|
+
(0, typeorm_1.JoinColumn)(),
|
|
79
|
+
__metadata("design:type", transaction_entity_1.Transaction)
|
|
80
|
+
], SoldeAgent.prototype, "transaction", void 0);
|
|
81
|
+
exports.SoldeAgent = SoldeAgent = __decorate([
|
|
82
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_AGENT)
|
|
83
|
+
], SoldeAgent);
|
|
84
|
+
//# sourceMappingURL=solde-agent.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solde-agent.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAgE;AAChE,qFAAyE;AACzE,wDAA8C;AAC9C,iDAA8C;AAC9C,uEAA4D;AAC5D,qEAA2D;AAC3D,8DAAoD;AAI7C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kC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AAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;IAC7D,IAAA,oBAAU,GAAE;8BACA,iCAAW;+CAAC;AAKzB;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC3D,IAAA,oBAAU,GAAE;8BACC,wCAAe;gDAAC;AAQ9B;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;+CAAC;qBA5Cd,UAAU;IADtB,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,UAAU,CA8CtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuditableEntity } from "../../../auditable/auditable.entity";
|
|
2
|
+
import { BalanceType } from "../config/balance_type.entity";
|
|
3
|
+
import { Distributor } from "../users/distributor.entity";
|
|
4
|
+
import { SoldeOperations } from "./solde-operation.entity";
|
|
5
|
+
import { Transaction } from "../transaction.entity";
|
|
6
|
+
export declare class SoldeDistributor extends AuditableEntity {
|
|
7
|
+
distributorId: number;
|
|
8
|
+
balanceTypeId: number;
|
|
9
|
+
soldeOpsId: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
oldBalance: number;
|
|
12
|
+
newBalance: number;
|
|
13
|
+
distributor: Distributor;
|
|
14
|
+
balanceType: BalanceType;
|
|
15
|
+
soldeOpsType: SoldeOperations;
|
|
16
|
+
transaction: Transaction;
|
|
17
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.SoldeDistributor = 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
|
+
const classes_1 = require("@automapper/classes");
|
|
17
|
+
const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
18
|
+
const distributor_entity_1 = require("../users/distributor.entity");
|
|
19
|
+
const solde_operation_entity_1 = require("./solde-operation.entity");
|
|
20
|
+
const transaction_entity_1 = require("../transaction.entity");
|
|
21
|
+
let SoldeDistributor = class SoldeDistributor extends auditable_entity_1.AuditableEntity {
|
|
22
|
+
};
|
|
23
|
+
exports.SoldeDistributor = SoldeDistributor;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, classes_1.AutoMap)(),
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'distributor_id', type: 'int', nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], SoldeDistributor.prototype, "distributorId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, classes_1.AutoMap)(),
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'balance_type_id', type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], SoldeDistributor.prototype, "balanceTypeId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, classes_1.AutoMap)(),
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'solde_ops_id', type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], SoldeDistributor.prototype, "soldeOpsId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, classes_1.AutoMap)(),
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'amount', type: 'float', nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], SoldeDistributor.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, classes_1.AutoMap)(),
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'old_balance', type: 'float', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], SoldeDistributor.prototype, "oldBalance", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, classes_1.AutoMap)(),
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], SoldeDistributor.prototype, "newBalance", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, classes_1.AutoMap)(),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.id),
|
|
57
|
+
(0, typeorm_1.JoinColumn)(),
|
|
58
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
59
|
+
], SoldeDistributor.prototype, "distributor", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, classes_1.AutoMap)(),
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => balance_type_entity_1.BalanceType, (balanceType) => balanceType.id),
|
|
63
|
+
(0, typeorm_1.JoinColumn)(),
|
|
64
|
+
__metadata("design:type", balance_type_entity_1.BalanceType)
|
|
65
|
+
], SoldeDistributor.prototype, "balanceType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, classes_1.AutoMap)(),
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => solde_operation_entity_1.SoldeOperations, (soldeOps) => soldeOps.id),
|
|
69
|
+
(0, typeorm_1.JoinColumn)(),
|
|
70
|
+
__metadata("design:type", solde_operation_entity_1.SoldeOperations)
|
|
71
|
+
], SoldeDistributor.prototype, "soldeOpsType", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
|
|
74
|
+
nullable: true,
|
|
75
|
+
onDelete: 'CASCADE',
|
|
76
|
+
onUpdate: 'CASCADE',
|
|
77
|
+
}),
|
|
78
|
+
(0, typeorm_1.JoinColumn)(),
|
|
79
|
+
__metadata("design:type", transaction_entity_1.Transaction)
|
|
80
|
+
], SoldeDistributor.prototype, "transaction", void 0);
|
|
81
|
+
exports.SoldeDistributor = SoldeDistributor = __decorate([
|
|
82
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_DISTRIBUTOR)
|
|
83
|
+
], SoldeDistributor);
|
|
84
|
+
//# sourceMappingURL=solde-distributor.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solde-distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,qFAAyE;AACzE,0EAAsE;AACtE,iDAA8C;AAC9C,uEAA4D;AAE5D,oEAA0D;AAC1D,qEAA2D;AAC3D,8DAAoD;AAG7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,kCAAe;CA6CpD,CAAA;AA7CY,4CAAgB;AAG3B;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAA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AAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC3D,IAAA,oBAAU,GAAE;8BACC,wCAAe;sDAAC;AAQ9B;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;qDAAC;2BA3Cd,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,kCAAW,CAAC,iBAAiB,CAAC;GACzB,gBAAgB,CA6C5B"}
|
|
@@ -12,6 +12,8 @@ export declare const TABLE_NAMES: {
|
|
|
12
12
|
SOLDE_CAISSE: string;
|
|
13
13
|
SOLDE_CUSTOMER: string;
|
|
14
14
|
SOLDE_OPS: string;
|
|
15
|
+
SOLDE_AGENT: string;
|
|
16
|
+
SOLDE_DISTRIBUTOR: string;
|
|
15
17
|
SALE_POINT: string;
|
|
16
18
|
CURRENCY: string;
|
|
17
19
|
STOCK: string;
|
|
@@ -32,4 +34,6 @@ export declare const TABLE_NAMES: {
|
|
|
32
34
|
AGENT: string;
|
|
33
35
|
THIRD_PARTY_PROVIDER: string;
|
|
34
36
|
THIRD_PARTY_TYPE: string;
|
|
37
|
+
ACTION_TYPE: string;
|
|
38
|
+
BALANCE_TYPE: string;
|
|
35
39
|
};
|
|
@@ -15,6 +15,8 @@ exports.TABLE_NAMES = {
|
|
|
15
15
|
SOLDE_CAISSE: 'solde_caisses',
|
|
16
16
|
SOLDE_CUSTOMER: 'solde_customers',
|
|
17
17
|
SOLDE_OPS: 'solde_operations',
|
|
18
|
+
SOLDE_AGENT: 'solde_agents',
|
|
19
|
+
SOLDE_DISTRIBUTOR: 'solde_distributors',
|
|
18
20
|
SALE_POINT: 'sale_point',
|
|
19
21
|
CURRENCY: 'currencies',
|
|
20
22
|
STOCK: 'stocks',
|
|
@@ -35,5 +37,7 @@ exports.TABLE_NAMES = {
|
|
|
35
37
|
AGENT: 'agents',
|
|
36
38
|
THIRD_PARTY_PROVIDER: 'third_party_providers',
|
|
37
39
|
THIRD_PARTY_TYPE: 'third_party_types',
|
|
40
|
+
ACTION_TYPE: 'action_types',
|
|
41
|
+
BALANCE_TYPE: 'balance_types',
|
|
38
42
|
};
|
|
39
43
|
//# 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,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAG,YAAY;IACzB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;IACf,oBAAoB,EAAE,uBAAuB;IAC7C,gBAAgB,EAAE,mBAAmB;
|
|
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,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,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;IACf,oBAAoB,EAAE,uBAAuB;IAC7C,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;CAC9B,CAAC"}
|