mfance-shark-v1 1.0.63 → 1.0.64
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/action-type.entity.d.ts +7 -0
- package/dist/common/entities/action-type.entity.js +39 -0
- package/dist/common/entities/action-type.entity.js.map +1 -0
- package/dist/common/entities/index.d.ts +2 -2
- package/dist/common/entities/index.js +2 -0
- package/dist/common/entities/index.js.map +1 -1
- package/dist/common/entities/soldes/solde-agent.entity.d.ts +2 -0
- package/dist/common/entities/soldes/solde-agent.entity.js +11 -0
- package/dist/common/entities/soldes/solde-agent.entity.js.map +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/soldes/solde-distributor.entity.d.ts +2 -0
- package/dist/common/entities/soldes/solde-distributor.entity.js +14 -4
- package/dist/common/entities/soldes/solde-distributor.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
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.ActionType = void 0;
|
|
13
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let ActionType = class ActionType extends auditable_entity_1.AuditableEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.ActionType = ActionType;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ActionType.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ActionType.prototype, "description", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Date)
|
|
29
|
+
], ActionType.prototype, "createdAt", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], ActionType.prototype, "updatedAt", void 0);
|
|
34
|
+
exports.ActionType = ActionType = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({
|
|
36
|
+
name: "action_type",
|
|
37
|
+
})
|
|
38
|
+
], ActionType);
|
|
39
|
+
//# sourceMappingURL=action-type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-type.entity.js","sourceRoot":"","sources":["../../../src/common/entities/action-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAiE;AAK1D,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAa9C,CAAA;AAbY,gCAAU;AAGrB;IADC,IAAA,gBAAM,GAAE;;wCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;+CACW;AAGpB;IADC,IAAA,gBAAM,GAAE;8BACE,IAAI;6CAAC;AAGhB;IADC,IAAA,gBAAM,GAAE;8BACE,IAAI;6CAAC;qBAZL,UAAU;IAHtB,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,aAAa;KACtB,CAAC;GACW,UAAU,CAatB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { File } from './file.entity';
|
|
2
2
|
import { User } from './user.entity';
|
|
3
3
|
import { CaisseDailyWorker } from './caisse/caisse-daily-worker.entity';
|
|
4
|
-
import { Caisse } from './caisse/caisse.entity';
|
|
5
4
|
import { CaisseOperation } from './caisse/caisse-operation.entity';
|
|
6
5
|
import { CaisseOperationType } from './caisse/caisse-operation-type.entity';
|
|
7
6
|
import { Role } from './role.entity';
|
|
@@ -30,6 +29,7 @@ import { Contact } from './contact.entity';
|
|
|
30
29
|
import { QrCode } from './qr_code.entity';
|
|
31
30
|
import { SoldeAgent } from './soldes/solde-agent.entity';
|
|
32
31
|
import { SoldeDistributor } from './soldes/solde-distributor.entity';
|
|
32
|
+
import { ActionType } from './action-type.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 Operation | typeof Agent | typeof Distributor | typeof TotupsAgent | typeof TotupsDist | typeof SoldeAgent | typeof SoldeDistributor | typeof SoldeCustomers | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof PinCode | 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 ActionType | typeof SoldeAgent | typeof SoldeDistributor | typeof SoldeCustomers | typeof StockSalePoint | typeof CurrencyValue | typeof StockPartner | typeof Rock | typeof StockStonePartner | typeof OtpCode | typeof PinCode | typeof CaisseDailyWorker | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof Audit | typeof ThirdPartyProvider | typeof KycRequest | typeof Contact | typeof QrCode | typeof RateConfig)[];
|
|
@@ -39,6 +39,7 @@ const qr_code_entity_1 = require("./qr_code.entity");
|
|
|
39
39
|
const solde_agent_entity_1 = require("./soldes/solde-agent.entity");
|
|
40
40
|
const solde_distributor_entity_1 = require("./soldes/solde-distributor.entity");
|
|
41
41
|
const balance_type_entity_1 = require("./config/balance_type.entity");
|
|
42
|
+
const action_type_entity_1 = require("./action-type.entity");
|
|
42
43
|
const rateMethod_entity_1 = require("./rateMethod.entity");
|
|
43
44
|
const rateConfig_entity_1 = require("./rateConfig.entity");
|
|
44
45
|
const pin_code_entity_1 = require("./pin_code.entity");
|
|
@@ -86,5 +87,6 @@ exports.entities = [
|
|
|
86
87
|
rateConfig_entity_1.RateConfig,
|
|
87
88
|
pin_code_entity_1.PinCode,
|
|
88
89
|
payment_method_type_entity_1.PaymentMethodType,
|
|
90
|
+
action_type_entity_1.ActionType,
|
|
89
91
|
];
|
|
90
92
|
//# 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;AAC1C,oEAAyD;AACzD,gFAAqE;AACrE,sEAA2D;
|
|
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;AAC3D,6DAAkD;AAClD,2DAAiD;AACjD,2DAAiD;AACjD,uDAA4C;AAC5C,6EAAiE;AAGpD,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;IAChB,8BAAU;IACV,8BAAU;IACV,yBAAO;IACP,8CAAiB;IACjB,+BAAU;CACb,CAAC"}
|
|
@@ -3,10 +3,12 @@ import { Agent } from "../users/agent.entity";
|
|
|
3
3
|
import { BalanceType } from "../config/balance_type.entity";
|
|
4
4
|
import { SoldeOperations } from "./solde-operation.entity";
|
|
5
5
|
import { Transaction } from "../transaction.entity";
|
|
6
|
+
import { ActionType } from "../action-type.entity";
|
|
6
7
|
export declare class SoldeAgent extends AuditableEntity {
|
|
7
8
|
amount: number;
|
|
8
9
|
oldBalance: number;
|
|
9
10
|
newBalance: number;
|
|
11
|
+
actionType: ActionType;
|
|
10
12
|
agent: Agent;
|
|
11
13
|
balanceType: BalanceType;
|
|
12
14
|
soldeOpsType: SoldeOperations;
|
|
@@ -18,6 +18,7 @@ const classes_1 = require("@automapper/classes");
|
|
|
18
18
|
const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
19
19
|
const solde_operation_entity_1 = require("./solde-operation.entity");
|
|
20
20
|
const transaction_entity_1 = require("../transaction.entity");
|
|
21
|
+
const action_type_entity_1 = require("../action-type.entity");
|
|
21
22
|
let SoldeAgent = class SoldeAgent extends auditable_entity_1.AuditableEntity {
|
|
22
23
|
};
|
|
23
24
|
exports.SoldeAgent = SoldeAgent;
|
|
@@ -36,6 +37,16 @@ __decorate([
|
|
|
36
37
|
(0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
|
|
37
38
|
__metadata("design:type", Number)
|
|
38
39
|
], SoldeAgent.prototype, "newBalance", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, classes_1.AutoMap)(),
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => action_type_entity_1.ActionType, (actionType) => actionType.id, {
|
|
43
|
+
onDelete: 'CASCADE',
|
|
44
|
+
onUpdate: 'CASCADE',
|
|
45
|
+
nullable: true,
|
|
46
|
+
}),
|
|
47
|
+
(0, typeorm_1.JoinColumn)(),
|
|
48
|
+
__metadata("design:type", action_type_entity_1.ActionType)
|
|
49
|
+
], SoldeAgent.prototype, "actionType", void 0);
|
|
39
50
|
__decorate([
|
|
40
51
|
(0, classes_1.AutoMap)(),
|
|
41
52
|
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, (agent) => agent.id),
|
|
@@ -1 +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;
|
|
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;AACpD,8DAAmD;AAI5C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAmD9C,CAAA;AAnDY,gCAAU;AAIrB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3C;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5C;AAGnB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAA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E,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;+CAAC;qBAjDd,UAAU;IADtB,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,UAAU,CAmDtB"}
|
|
@@ -3,12 +3,14 @@ import { User } from '../user.entity';
|
|
|
3
3
|
import { SoldeOperations } from './solde-operation.entity';
|
|
4
4
|
import { Transaction } from '../transaction.entity';
|
|
5
5
|
import { BalanceType } from '../config/balance_type.entity';
|
|
6
|
+
import { ActionType } from '../action-type.entity';
|
|
6
7
|
export declare class SoldeCustomers extends AuditableEntity {
|
|
7
8
|
user: User;
|
|
8
9
|
amount: number;
|
|
9
10
|
oldBalance: number;
|
|
10
11
|
newBalance: number;
|
|
11
12
|
soldeOpsType: SoldeOperations;
|
|
13
|
+
actionType: ActionType;
|
|
12
14
|
balanceType: BalanceType;
|
|
13
15
|
transaction: Transaction;
|
|
14
16
|
}
|
|
@@ -18,6 +18,7 @@ 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
20
|
const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
21
|
+
const action_type_entity_1 = require("../action-type.entity");
|
|
21
22
|
let SoldeCustomers = class SoldeCustomers extends auditable_entity_1.AuditableEntity {
|
|
22
23
|
};
|
|
23
24
|
exports.SoldeCustomers = SoldeCustomers;
|
|
@@ -51,6 +52,15 @@ __decorate([
|
|
|
51
52
|
(0, typeorm_1.JoinColumn)(),
|
|
52
53
|
__metadata("design:type", solde_operation_entity_1.SoldeOperations)
|
|
53
54
|
], SoldeCustomers.prototype, "soldeOpsType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, classes_1.AutoMap)(),
|
|
57
|
+
(0, typeorm_1.ManyToOne)(() => action_type_entity_1.ActionType, (actionType) => actionType.id, {
|
|
58
|
+
onDelete: 'CASCADE',
|
|
59
|
+
onUpdate: 'CASCADE',
|
|
60
|
+
}),
|
|
61
|
+
(0, typeorm_1.JoinColumn)(),
|
|
62
|
+
__metadata("design:type", action_type_entity_1.ActionType)
|
|
63
|
+
], SoldeCustomers.prototype, "actionType", void 0);
|
|
54
64
|
__decorate([
|
|
55
65
|
(0, classes_1.AutoMap)(),
|
|
56
66
|
(0, typeorm_1.ManyToOne)(() => balance_type_entity_1.BalanceType, (balanceType) => balanceType.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;AACpD,uEAA4D;
|
|
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;AAC5D,8DAAmD;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,kCAAe;CA8ClD,CAAA;AA9CY,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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S;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;mDAAC;yBA7Cd,cAAc;IAD1B,IAAA,gBAAM,EAAC,kCAAW,CAAC,cAAc,CAAC;GACtB,cAAc,CA8C1B"}
|
|
@@ -3,6 +3,7 @@ import { BalanceType } from "../config/balance_type.entity";
|
|
|
3
3
|
import { Distributor } from "../users/distributor.entity";
|
|
4
4
|
import { SoldeOperations } from "./solde-operation.entity";
|
|
5
5
|
import { Transaction } from "../transaction.entity";
|
|
6
|
+
import { ActionType } from "../action-type.entity";
|
|
6
7
|
export declare class SoldeDistributor extends AuditableEntity {
|
|
7
8
|
amount: number;
|
|
8
9
|
oldBalance: number;
|
|
@@ -11,4 +12,5 @@ export declare class SoldeDistributor extends AuditableEntity {
|
|
|
11
12
|
balanceType: BalanceType;
|
|
12
13
|
soldeOpsType: SoldeOperations;
|
|
13
14
|
transaction: Transaction;
|
|
15
|
+
actionType: ActionType;
|
|
14
16
|
}
|
|
@@ -18,6 +18,7 @@ const balance_type_entity_1 = require("../config/balance_type.entity");
|
|
|
18
18
|
const distributor_entity_1 = require("../users/distributor.entity");
|
|
19
19
|
const solde_operation_entity_1 = require("./solde-operation.entity");
|
|
20
20
|
const transaction_entity_1 = require("../transaction.entity");
|
|
21
|
+
const action_type_entity_1 = require("../action-type.entity");
|
|
21
22
|
let SoldeDistributor = class SoldeDistributor extends auditable_entity_1.AuditableEntity {
|
|
22
23
|
};
|
|
23
24
|
exports.SoldeDistributor = SoldeDistributor;
|
|
@@ -42,7 +43,7 @@ __decorate([
|
|
|
42
43
|
onDelete: 'CASCADE',
|
|
43
44
|
onUpdate: 'CASCADE',
|
|
44
45
|
}),
|
|
45
|
-
(0, typeorm_1.JoinColumn)(
|
|
46
|
+
(0, typeorm_1.JoinColumn)(),
|
|
46
47
|
__metadata("design:type", distributor_entity_1.Distributor)
|
|
47
48
|
], SoldeDistributor.prototype, "distributor", void 0);
|
|
48
49
|
__decorate([
|
|
@@ -51,7 +52,7 @@ __decorate([
|
|
|
51
52
|
onDelete: 'CASCADE',
|
|
52
53
|
onUpdate: 'CASCADE',
|
|
53
54
|
}),
|
|
54
|
-
(0, typeorm_1.JoinColumn)(
|
|
55
|
+
(0, typeorm_1.JoinColumn)(),
|
|
55
56
|
__metadata("design:type", balance_type_entity_1.BalanceType)
|
|
56
57
|
], SoldeDistributor.prototype, "balanceType", void 0);
|
|
57
58
|
__decorate([
|
|
@@ -60,7 +61,7 @@ __decorate([
|
|
|
60
61
|
onDelete: 'CASCADE',
|
|
61
62
|
onUpdate: 'CASCADE',
|
|
62
63
|
}),
|
|
63
|
-
(0, typeorm_1.JoinColumn)(
|
|
64
|
+
(0, typeorm_1.JoinColumn)(),
|
|
64
65
|
__metadata("design:type", solde_operation_entity_1.SoldeOperations)
|
|
65
66
|
], SoldeDistributor.prototype, "soldeOpsType", void 0);
|
|
66
67
|
__decorate([
|
|
@@ -69,9 +70,18 @@ __decorate([
|
|
|
69
70
|
onDelete: 'CASCADE',
|
|
70
71
|
onUpdate: 'CASCADE',
|
|
71
72
|
}),
|
|
72
|
-
(0, typeorm_1.JoinColumn)(
|
|
73
|
+
(0, typeorm_1.JoinColumn)(),
|
|
73
74
|
__metadata("design:type", transaction_entity_1.Transaction)
|
|
74
75
|
], SoldeDistributor.prototype, "transaction", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, classes_1.AutoMap)(),
|
|
78
|
+
(0, typeorm_1.ManyToOne)(() => action_type_entity_1.ActionType, (actionType) => actionType.id, {
|
|
79
|
+
onDelete: 'CASCADE',
|
|
80
|
+
onUpdate: 'CASCADE',
|
|
81
|
+
}),
|
|
82
|
+
(0, typeorm_1.JoinColumn)(),
|
|
83
|
+
__metadata("design:type", action_type_entity_1.ActionType)
|
|
84
|
+
], SoldeDistributor.prototype, "actionType", void 0);
|
|
75
85
|
exports.SoldeDistributor = SoldeDistributor = __decorate([
|
|
76
86
|
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_DISTRIBUTOR)
|
|
77
87
|
], SoldeDistributor);
|
|
@@ -1 +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;
|
|
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;AACpD,8DAAmD;AAG5C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,kCAAe;CAsDpD,CAAA;AAtDY,4CAAgB;AAI3B;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC3C;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC5C;AAInB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC5C;AAQnB;IANC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EA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