mfance-shark-v1 1.0.57 → 1.0.59
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 +1 -1
- package/dist/common/entities/soldes/solde-customer.entity.d.ts +2 -0
- package/dist/common/entities/soldes/solde-customer.entity.js +10 -0
- package/dist/common/entities/soldes/solde-customer.entity.js.map +1 -1
- package/dist/common/entities/transaction.entity.d.ts +6 -5
- package/dist/common/entities/transaction.entity.js +13 -23
- package/dist/common/entities/transaction.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ import { SoldeAgent } from './soldes/solde-agent.entity';
|
|
|
32
32
|
import { SoldeDistributor } from './soldes/solde-distributor.entity';
|
|
33
33
|
import { RateConfig } from './rateConfig.entity';
|
|
34
34
|
import { PinCode } from './pin_code.entity';
|
|
35
|
-
export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof
|
|
35
|
+
export declare const entities: (typeof File | typeof Permission | typeof Role | typeof User | typeof SalePoint | typeof Country | typeof Stock | typeof Currency | typeof Operation | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof PinCode | typeof Caisse | typeof CaisseDailyWorker | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof SoldeCustomers | typeof Audit | typeof ThirdPartyProvider | typeof KycRequest | typeof Contact | typeof QrCode | typeof SoldeAgent | typeof SoldeDistributor | typeof RateConfig)[];
|
|
@@ -2,11 +2,13 @@ import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
|
2
2
|
import { User } from '../user.entity';
|
|
3
3
|
import { SoldeOperations } from './solde-operation.entity';
|
|
4
4
|
import { Transaction } from '../transaction.entity';
|
|
5
|
+
import { BalanceType } from '../config/balance_type.entity';
|
|
5
6
|
export declare class SoldeCustomers extends AuditableEntity {
|
|
6
7
|
user: User;
|
|
7
8
|
amount: number;
|
|
8
9
|
oldBalance: number;
|
|
9
10
|
newBalance: number;
|
|
10
11
|
soldeOpsType: SoldeOperations;
|
|
12
|
+
balanceType: BalanceType;
|
|
11
13
|
transaction: Transaction;
|
|
12
14
|
}
|
|
@@ -17,6 +17,7 @@ const classes_1 = require("@automapper/classes");
|
|
|
17
17
|
const user_entity_1 = require("../user.entity");
|
|
18
18
|
const solde_operation_entity_1 = require("./solde-operation.entity");
|
|
19
19
|
const transaction_entity_1 = require("../transaction.entity");
|
|
20
|
+
const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
20
21
|
let SoldeCustomers = class SoldeCustomers extends auditable_entity_1.AuditableEntity {
|
|
21
22
|
};
|
|
22
23
|
exports.SoldeCustomers = SoldeCustomers;
|
|
@@ -50,6 +51,15 @@ __decorate([
|
|
|
50
51
|
(0, typeorm_1.JoinColumn)(),
|
|
51
52
|
__metadata("design:type", solde_operation_entity_1.SoldeOperations)
|
|
52
53
|
], SoldeCustomers.prototype, "soldeOpsType", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, classes_1.AutoMap)(),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => balance_type_entity_1.BalanceType, (balanceType) => balanceType.id, {
|
|
57
|
+
onDelete: 'CASCADE',
|
|
58
|
+
onUpdate: 'CASCADE',
|
|
59
|
+
}),
|
|
60
|
+
(0, typeorm_1.JoinColumn)(),
|
|
61
|
+
__metadata("design:type", balance_type_entity_1.BalanceType)
|
|
62
|
+
], SoldeCustomers.prototype, "balanceType", void 0);
|
|
53
63
|
__decorate([
|
|
54
64
|
(0, classes_1.AutoMap)(),
|
|
55
65
|
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solde-customer.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,qCAAgE;AAChE,iDAA8C;AAC9C,gDAAsC;AACtC,qEAA2D;AAC3D,8DAAoD;
|
|
1
|
+
{"version":3,"file":"solde-customer.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,qCAAgE;AAChE,iDAA8C;AAC9C,gDAAsC;AACtC,qEAA2D;AAC3D,8DAAoD;AACpD,uEAA4D;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAe;CAqClD,CAAA;AArCY,wCAAc;AAIzB;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;IACxC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAGX;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC3C;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC5C;AAGnB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC5C;AAOnB;IANC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC3D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACC,wCAAe;oDAAC;AAQ9B;IANC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,iCAAW;mDAAC;AAQzB;IAPC,IAAA,iBAAO,GAAE;IACT,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;mDAAC;yBApCd,cAAc;IAD1B,IAAA,gBAAM,EAAC,kCAAW,CAAC,cAAc,CAAC;GACtB,cAAc,CAqC1B"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { Caisse } from './caisse/caisse.entity';
|
|
2
1
|
import { User } from './user.entity';
|
|
3
2
|
import { AuditableEntity } from 'src/auditable/auditable.entity';
|
|
4
3
|
import { Operation } from './operation.entity';
|
|
5
4
|
import { PaymentMethod } from './payment-method.entity';
|
|
5
|
+
import { Distributor } from './users/distributor.entity';
|
|
6
|
+
import { Agent } from './users/agent.entity';
|
|
6
7
|
export declare class Transaction extends AuditableEntity {
|
|
7
8
|
amount: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
reference: string;
|
|
10
|
+
distributor: Distributor;
|
|
11
|
+
agent: Agent;
|
|
12
|
+
recipient: User;
|
|
11
13
|
user: User;
|
|
12
14
|
paymentMethod: PaymentMethod;
|
|
13
15
|
operation: Operation;
|
|
14
|
-
partner?: User;
|
|
15
16
|
is_done_by_admin: boolean;
|
|
16
17
|
is_confirmed: boolean;
|
|
17
18
|
libelle: string;
|
|
@@ -11,13 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Transaction = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const caisse_entity_1 = require("./caisse/caisse.entity");
|
|
15
14
|
const user_entity_1 = require("./user.entity");
|
|
16
15
|
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
17
16
|
const operation_entity_1 = require("./operation.entity");
|
|
18
17
|
const classes_1 = require("@automapper/classes");
|
|
19
18
|
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
20
19
|
const payment_method_entity_1 = require("./payment-method.entity");
|
|
20
|
+
const distributor_entity_1 = require("./users/distributor.entity");
|
|
21
|
+
const agent_entity_1 = require("./users/agent.entity");
|
|
21
22
|
let Transaction = class Transaction extends auditable_entity_1.AuditableEntity {
|
|
22
23
|
};
|
|
23
24
|
exports.Transaction = Transaction;
|
|
@@ -30,22 +31,21 @@ __decorate([
|
|
|
30
31
|
(0, classes_1.AutoMap)(),
|
|
31
32
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
|
-
], Transaction.prototype, "
|
|
34
|
+
], Transaction.prototype, "reference", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, classes_1.AutoMap)(),
|
|
36
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
], Transaction.prototype, "caisse", void 0);
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, (distributor) => distributor.id),
|
|
38
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
39
|
+
], Transaction.prototype, "distributor", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, classes_1.AutoMap)(),
|
|
42
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(0, typeorm_1.
|
|
48
|
-
__metadata("design:type",
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, (agent) => agent.id),
|
|
43
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
44
|
+
], Transaction.prototype, "agent", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, classes_1.AutoMap)(),
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id),
|
|
48
|
+
__metadata("design:type", user_entity_1.User)
|
|
49
49
|
], Transaction.prototype, "recipient", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, classes_1.AutoMap)(),
|
|
@@ -76,16 +76,6 @@ __decorate([
|
|
|
76
76
|
(0, typeorm_1.JoinColumn)({ name: 'OperationId' }),
|
|
77
77
|
__metadata("design:type", operation_entity_1.Operation)
|
|
78
78
|
], Transaction.prototype, "operation", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, classes_1.AutoMap)(),
|
|
81
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id, {
|
|
82
|
-
onDelete: 'CASCADE',
|
|
83
|
-
onUpdate: 'CASCADE',
|
|
84
|
-
nullable: true,
|
|
85
|
-
}),
|
|
86
|
-
(0, typeorm_1.JoinColumn)({ name: 'partnerId' }),
|
|
87
|
-
__metadata("design:type", user_entity_1.User)
|
|
88
|
-
], Transaction.prototype, "partner", void 0);
|
|
89
79
|
__decorate([
|
|
90
80
|
(0, classes_1.AutoMap)(),
|
|
91
81
|
(0, typeorm_1.Column)({ default: false, nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.entity.js","sourceRoot":"","sources":["../../../src/common/entities/transaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE
|
|
1
|
+
{"version":3,"file":"transaction.entity.js","sourceRoot":"","sources":["../../../src/common/entities/transaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,+CAAqC;AACrC,uEAAiE;AACjE,yDAA+C;AAC/C,iDAA8C;AAC9C,kFAAsE;AACtE,mEAAwD;AACxD,mEAAyD;AACzD,uDAA6C;AAItC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CA6F/C,CAAA;AA7FY,kCAAW;AAGtB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3B;AAaf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC1B;AAIlB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;8BACjD,gCAAW;gDAAC;AAIzB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACrC,oBAAK;0CAAC;AAMb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;8BAC9B,kBAAI;8CAAC;AAiBhB;IAPC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,C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