mfance-shark-v1 1.0.61 → 1.0.62

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.
@@ -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 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)[];
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 Caisse | typeof CaisseDailyWorker | typeof CaisseOperationType | typeof CaisseOperation | typeof SoldeCaisses | typeof Audit | typeof ThirdPartyProvider | typeof KycRequest | typeof Contact | typeof QrCode | typeof RateConfig)[];
@@ -4,6 +4,9 @@ import { Operation } from './operation.entity';
4
4
  import { PaymentMethod } from './payment-method.entity';
5
5
  import { Distributor } from './users/distributor.entity';
6
6
  import { Agent } from './users/agent.entity';
7
+ import { SoldeAgent } from './soldes/solde-agent.entity';
8
+ import { SoldeDistributor } from './soldes/solde-distributor.entity';
9
+ import { SoldeCustomers } from './soldes/solde-customer.entity';
7
10
  export declare class Transaction extends AuditableEntity {
8
11
  amount: number;
9
12
  reference: string;
@@ -16,4 +19,7 @@ export declare class Transaction extends AuditableEntity {
16
19
  is_confirmed: boolean;
17
20
  libelle: string;
18
21
  receiver: User;
22
+ soldeAgent: SoldeAgent;
23
+ soldeDistributor: SoldeDistributor;
24
+ soldeCustomer: SoldeCustomers;
19
25
  }
@@ -19,6 +19,9 @@ const table_names_constant_1 = require("../utils/constants/table-names.constant"
19
19
  const payment_method_entity_1 = require("./payment-method.entity");
20
20
  const distributor_entity_1 = require("./users/distributor.entity");
21
21
  const agent_entity_1 = require("./users/agent.entity");
22
+ const solde_agent_entity_1 = require("./soldes/solde-agent.entity");
23
+ const solde_distributor_entity_1 = require("./soldes/solde-distributor.entity");
24
+ const solde_customer_entity_1 = require("./soldes/solde-customer.entity");
22
25
  let Transaction = class Transaction extends auditable_entity_1.AuditableEntity {
23
26
  };
24
27
  exports.Transaction = Transaction;
@@ -102,6 +105,18 @@ __decorate([
102
105
  (0, typeorm_1.JoinColumn)({ name: 'ReceiverId' }),
103
106
  __metadata("design:type", user_entity_1.User)
104
107
  ], Transaction.prototype, "receiver", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.OneToMany)(() => solde_agent_entity_1.SoldeAgent, (soldeAgent) => soldeAgent.transaction),
110
+ __metadata("design:type", solde_agent_entity_1.SoldeAgent)
111
+ ], Transaction.prototype, "soldeAgent", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.OneToMany)(() => solde_distributor_entity_1.SoldeDistributor, (soldeDistributor) => soldeDistributor.transaction),
114
+ __metadata("design:type", solde_distributor_entity_1.SoldeDistributor)
115
+ ], Transaction.prototype, "soldeDistributor", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.OneToMany)(() => solde_customer_entity_1.SoldeCustomers, (soldeCustomer) => soldeCustomer.transaction),
118
+ __metadata("design:type", solde_customer_entity_1.SoldeCustomers)
119
+ ], Transaction.prototype, "soldeCustomer", void 0);
105
120
  exports.Transaction = Transaction = __decorate([
106
121
  (0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.TRANSACTION)
107
122
  ], Transaction);
@@ -1 +1 @@
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;CAoG/C,CAAA;AApGY,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;AAOlB;IALC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAC;QAC5D,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BACzB,gCAAW;gDAAC;AAOzB;IALC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QAC3C,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,oBAAK;0CAAC;AAwBb;IAPC,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