mfance-shark-v1 1.0.93 → 1.0.95

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.
@@ -41,4 +41,5 @@ import { ApiCallLogs } from './logs/api-call-logs.entity';
41
41
  import { B2WTransfert } from './transfert/b2w-transfert.entity';
42
42
  import { DistributorCommissionConfig } from './commission-config/distributor-commission-config.entity';
43
43
  import { BranchManagerCommissionConfig } from './commission-config/branch-manager-commission-config.entity';
44
- 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 ThirdPartyProvider | typeof Partner | typeof PartnerFees | 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 KycRequest | typeof Contact | typeof QrCode | typeof RateConfig | typeof CommissionWithdrawalAgent | typeof CommissionWithdrawalDistributor | typeof CommissionWithdrawalBranchManager | typeof PaymentCode | typeof SoldeInterne | typeof SubAccountCustomer | typeof ApiCallLogs | typeof B2WTransfert | typeof DistributorCommissionConfig | typeof BranchManagerCommissionConfig)[];
44
+ import { Provider } from './provider.entity';
45
+ 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 ThirdPartyProvider | typeof Partner | typeof PartnerFees | typeof Provider | 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 KycRequest | typeof Contact | typeof QrCode | typeof RateConfig | typeof CommissionWithdrawalAgent | typeof CommissionWithdrawalDistributor | typeof CommissionWithdrawalBranchManager | typeof PaymentCode | typeof SoldeInterne | typeof SubAccountCustomer | typeof ApiCallLogs | typeof B2WTransfert | typeof DistributorCommissionConfig | typeof BranchManagerCommissionConfig)[];
@@ -58,6 +58,8 @@ const api_call_logs_entity_1 = require("./logs/api-call-logs.entity");
58
58
  const b2w_transfert_entity_1 = require("./transfert/b2w-transfert.entity");
59
59
  const distributor_commission_config_entity_1 = require("./commission-config/distributor-commission-config.entity");
60
60
  const branch_manager_commission_config_entity_1 = require("./commission-config/branch-manager-commission-config.entity");
61
+ const solde_partner_entity_1 = require("./soldes/solde-partner.entity");
62
+ const provider_entity_1 = require("./provider.entity");
61
63
  exports.entities = [
62
64
  file_entity_1.File,
63
65
  user_entity_1.User,
@@ -116,5 +118,7 @@ exports.entities = [
116
118
  b2w_transfert_entity_1.B2WTransfert,
117
119
  distributor_commission_config_entity_1.DistributorCommissionConfig,
118
120
  branch_manager_commission_config_entity_1.BranchManagerCommissionConfig,
121
+ solde_partner_entity_1.SoldePartner,
122
+ provider_entity_1.Provider,
119
123
  ];
120
124
  //# 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;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a;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;IACX,iCAAW;IAEX,wBAAO;IACP,+BAAU;IACV,2CAAgB;IAChB,8BAAU;IACV,8BAAU;IACV,yBAAO;IACP,8CAAiB;IACjB,+BAAU;IACV,8DAAyB;IACzB,0EAA+B;IAC/B,+EAAiC;IACjC,mCAAY;IACZ,wBAAO;IACP,iCAAW;IACX,gDAAkB;IAClB,gDAAkB;IAClB,kDAAmB;IACnB,kCAAW;IACX,mCAAY;IACZ,kEAA2B;IAC3B,uEAA6B;IAC7B,mCAAY;IACZ,0BAAQ;CACX,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { AuditableEntity } from "../../auditable/auditable.entity";
2
2
  import { ThirdPartyType } from "./thirdpartytype.entity";
3
3
  import { PartnerFees } from "./partner_fees.entity";
4
+ import { Provider } from "./provider.entity";
4
5
  export declare class Partner extends AuditableEntity {
5
6
  name: string;
6
7
  email: string;
@@ -8,6 +9,7 @@ export declare class Partner extends AuditableEntity {
8
9
  phone: string;
9
10
  thirdPartyType: ThirdPartyType;
10
11
  partnerFees: PartnerFees[];
12
+ provider: Provider;
11
13
  isActive: boolean;
12
14
  isArchived: boolean;
13
15
  isDeleted: boolean;
@@ -16,6 +16,7 @@ const auditable_entity_1 = require("../../auditable/auditable.entity");
16
16
  const thirdpartytype_entity_1 = require("./thirdpartytype.entity");
17
17
  const utils_1 = require("../utils");
18
18
  const partner_fees_entity_1 = require("./partner_fees.entity");
19
+ const provider_entity_1 = require("./provider.entity");
19
20
  let Partner = class Partner extends auditable_entity_1.AuditableEntity {
20
21
  };
21
22
  exports.Partner = Partner;
@@ -49,6 +50,11 @@ __decorate([
49
50
  (0, typeorm_1.OneToMany)(() => partner_fees_entity_1.PartnerFees, (partnerFees) => partnerFees.partner),
50
51
  __metadata("design:type", Array)
51
52
  ], Partner.prototype, "partnerFees", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.ManyToOne)(() => provider_entity_1.Provider, (provider) => provider.partners, { onDelete: 'CASCADE', onUpdate: 'CASCADE', nullable: true }),
55
+ (0, typeorm_1.JoinColumn)({ name: 'provider_id' }),
56
+ __metadata("design:type", provider_entity_1.Provider)
57
+ ], Partner.prototype, "provider", void 0);
52
58
  __decorate([
53
59
  (0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
54
60
  __metadata("design:type", Boolean)
@@ -1 +1 @@
1
- {"version":3,"file":"partner.entity.js","sourceRoot":"","sources":["../../../src/common/entities/partner.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8C;AAC9C,qCAA2E;AAC3E,uEAAmE;AACnE,mEAAyD;AACzD,oCAAuC;AACvC,+DAAoD;AAG7C,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,kCAAe;CA8B3C,CAAA;AA9BY,0BAAO;AAGhB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAC7C;AAGb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7C;AAGd;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC9C;AAGpB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7C;AA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;yCAC5C;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CAC7C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CAC7C;kBAjCV,OAAO;IADnB,IAAA,gBAAM,EAAC,mBAAW,CAAC,OAAO,CAAC;GACf,OAAO,CAkCnB"}
@@ -0,0 +1,16 @@
1
+ import { AuditableEntity } from "../../auditable/auditable.entity";
2
+ import { Partner } from "./partner.entity";
3
+ export declare class Provider extends AuditableEntity {
4
+ name: string;
5
+ contactEmail: string;
6
+ contactPhone: string;
7
+ contactName: string;
8
+ contactAddress: string;
9
+ contactCity: string;
10
+ contactState: string;
11
+ apiKey: string;
12
+ apiSecret: string;
13
+ isActive: boolean;
14
+ isBlocked: boolean;
15
+ partners: Partner[];
16
+ }
@@ -0,0 +1,71 @@
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.Provider = void 0;
13
+ const auditable_entity_1 = require("../../auditable/auditable.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const utils_1 = require("../utils");
16
+ const partner_entity_1 = require("./partner.entity");
17
+ let Provider = class Provider extends auditable_entity_1.AuditableEntity {
18
+ };
19
+ exports.Provider = Provider;
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'name', type: 'varchar', nullable: true }),
22
+ __metadata("design:type", String)
23
+ ], Provider.prototype, "name", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'contact_email', type: 'varchar', nullable: true }),
26
+ __metadata("design:type", String)
27
+ ], Provider.prototype, "contactEmail", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ name: 'contact_phone', type: 'varchar', nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], Provider.prototype, "contactPhone", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'contact_name', type: 'varchar', nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], Provider.prototype, "contactName", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ name: 'contact_address', type: 'varchar', nullable: true }),
38
+ __metadata("design:type", String)
39
+ ], Provider.prototype, "contactAddress", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ name: 'contact_city', type: 'varchar', nullable: true }),
42
+ __metadata("design:type", String)
43
+ ], Provider.prototype, "contactCity", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ name: 'contact_state', type: 'varchar', nullable: true }),
46
+ __metadata("design:type", String)
47
+ ], Provider.prototype, "contactState", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ name: 'api_key', type: 'varchar', nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], Provider.prototype, "apiKey", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ name: 'api_secret', type: 'varchar', nullable: true }),
54
+ __metadata("design:type", String)
55
+ ], Provider.prototype, "apiSecret", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
58
+ __metadata("design:type", Boolean)
59
+ ], Provider.prototype, "isActive", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ name: 'is_blocked', type: 'boolean', default: false }),
62
+ __metadata("design:type", Boolean)
63
+ ], Provider.prototype, "isBlocked", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.OneToMany)(() => partner_entity_1.Partner, (partner) => partner.provider),
66
+ __metadata("design:type", Array)
67
+ ], Provider.prototype, "partners", void 0);
68
+ exports.Provider = Provider = __decorate([
69
+ (0, typeorm_1.Entity)(utils_1.TABLE_NAMES.PROVIDERS)
70
+ ], Provider);
71
+ //# sourceMappingURL=provider.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.entity.js","sourceRoot":"","sources":["../../../src/common/entities/provider.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAoD;AACpD,oCAAuC;AACvC,qDAA2C;AAGpC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,kCAAe;CAsC5C,CAAA;AAtCY,4BAAQ;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC9C;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC9C;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC9C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC9C;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC9C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC9C;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC9C;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC9C;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0CAC5C;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CAC7C;AAInB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;0CACpC;mBAnCX,QAAQ;IADpB,IAAA,gBAAM,EAAC,mBAAW,CAAC,SAAS,CAAC;GACjB,QAAQ,CAsCpB"}
@@ -0,0 +1,16 @@
1
+ import { AuditableEntity } from "../../../auditable/auditable.entity";
2
+ import { ActionType } from "../action-type.entity";
3
+ import { Partner } from "../partner.entity";
4
+ import { Transaction } from "../transaction.entity";
5
+ import { SoldeOperations } from "./solde-operation.entity";
6
+ import { BalanceType } from "../config/balance_type.entity";
7
+ export declare class SoldePartner extends AuditableEntity {
8
+ amount: number;
9
+ oldBalance: number;
10
+ newBalance: number;
11
+ actionType: ActionType;
12
+ balanceType: BalanceType;
13
+ partner: Partner;
14
+ soldeOpsType: SoldeOperations;
15
+ transaction: Transaction;
16
+ }
@@ -0,0 +1,91 @@
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.SoldePartner = 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 classes_1 = require("@automapper/classes");
17
+ const action_type_entity_1 = require("../action-type.entity");
18
+ const partner_entity_1 = require("../partner.entity");
19
+ const transaction_entity_1 = require("../transaction.entity");
20
+ const solde_operation_entity_1 = require("./solde-operation.entity");
21
+ const balance_type_entity_1 = require("../config/balance_type.entity");
22
+ let SoldePartner = class SoldePartner extends auditable_entity_1.AuditableEntity {
23
+ };
24
+ exports.SoldePartner = SoldePartner;
25
+ __decorate([
26
+ (0, classes_1.AutoMap)(),
27
+ (0, typeorm_1.Column)({ name: 'amount', type: 'float', nullable: true }),
28
+ __metadata("design:type", Number)
29
+ ], SoldePartner.prototype, "amount", void 0);
30
+ __decorate([
31
+ (0, classes_1.AutoMap)(),
32
+ (0, typeorm_1.Column)({ name: 'old_balance', type: 'float', nullable: true }),
33
+ __metadata("design:type", Number)
34
+ ], SoldePartner.prototype, "oldBalance", void 0);
35
+ __decorate([
36
+ (0, classes_1.AutoMap)(),
37
+ (0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
38
+ __metadata("design:type", Number)
39
+ ], SoldePartner.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
+ ], SoldePartner.prototype, "actionType", void 0);
50
+ __decorate([
51
+ (0, classes_1.AutoMap)(),
52
+ (0, typeorm_1.ManyToOne)(() => balance_type_entity_1.BalanceType, (balanceType) => balanceType.id, {
53
+ onDelete: 'CASCADE',
54
+ onUpdate: 'CASCADE',
55
+ }),
56
+ (0, typeorm_1.JoinColumn)(),
57
+ __metadata("design:type", balance_type_entity_1.BalanceType)
58
+ ], SoldePartner.prototype, "balanceType", void 0);
59
+ __decorate([
60
+ (0, classes_1.AutoMap)(),
61
+ (0, typeorm_1.ManyToOne)(() => partner_entity_1.Partner, (partner) => partner.id, {
62
+ nullable: true,
63
+ onDelete: 'CASCADE',
64
+ onUpdate: 'CASCADE',
65
+ }),
66
+ (0, typeorm_1.JoinColumn)(),
67
+ __metadata("design:type", partner_entity_1.Partner)
68
+ ], SoldePartner.prototype, "partner", void 0);
69
+ __decorate([
70
+ (0, classes_1.AutoMap)(),
71
+ (0, typeorm_1.ManyToOne)(() => solde_operation_entity_1.SoldeOperations, (soldeOps) => soldeOps.id, {
72
+ onDelete: 'CASCADE',
73
+ onUpdate: 'CASCADE',
74
+ }),
75
+ (0, typeorm_1.JoinColumn)(),
76
+ __metadata("design:type", solde_operation_entity_1.SoldeOperations)
77
+ ], SoldePartner.prototype, "soldeOpsType", void 0);
78
+ __decorate([
79
+ (0, classes_1.AutoMap)(),
80
+ (0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
81
+ nullable: true,
82
+ onDelete: 'CASCADE',
83
+ onUpdate: 'CASCADE',
84
+ }),
85
+ (0, typeorm_1.JoinColumn)(),
86
+ __metadata("design:type", transaction_entity_1.Transaction)
87
+ ], SoldePartner.prototype, "transaction", void 0);
88
+ exports.SoldePartner = SoldePartner = __decorate([
89
+ (0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_PARTNER)
90
+ ], SoldePartner);
91
+ //# sourceMappingURL=solde-partner.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solde-partner.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-partner.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAgE;AAChE,qFAAyE;AACzE,iDAA8C;AAC9C,8DAAmD;AACnD,sDAA4C;AAC5C,8DAAoD;AACpD,qEAA2D;AAC3D,uEAA4D;AAGrD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,kCAAe;CAqDhD,CAAA;AArDY,oCAAY;AAGrB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC3C;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5C;AAGnB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5C;AASnB;IAPC,IAAA,iBAAO,GAAE;IACT,I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,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;iDAAC;uBApDhB,YAAY;IADxB,IAAA,gBAAM,EAAC,kCAAW,CAAC,aAAa,CAAC;GACrB,YAAY,CAqDxB"}
@@ -52,4 +52,6 @@ export declare const TABLE_NAMES: {
52
52
  B2W_TRANSFER: string;
53
53
  DISTRIBUTOR_COMMISSION_CONFIG: string;
54
54
  BRANCH_MANAGER_COMMISSION_CONFIG: string;
55
+ SOLDE_PARTNER: string;
56
+ PROVIDERS: string;
55
57
  };
@@ -55,5 +55,7 @@ exports.TABLE_NAMES = {
55
55
  B2W_TRANSFER: 'b2w_transfers',
56
56
  DISTRIBUTOR_COMMISSION_CONFIG: 'distributor_commission_configs',
57
57
  BRANCH_MANAGER_COMMISSION_CONFIG: 'branch_manager_commission_configs',
58
+ SOLDE_PARTNER: 'solde_partners',
59
+ PROVIDERS: 'providers',
58
60
  };
59
61
  //# 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,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,oBAAoB,EAAE,uBAAuB;IAC7C,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,mBAAmB,EAAE,qBAAqB;IAC1C,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,qBAAqB,EAAE,wBAAwB;IAC/C,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;IAC7B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,aAAa;IAC1B,6BAA6B,EAAE,+BAA+B;IAC9D,mCAAmC,EAAE,qCAAqC;IAC1E,sCAAsC,EAAE,wCAAwC;IAChF,oBAAoB,EAAE,uBAAuB;IAC7C,OAAO,EAAE,UAAU;IACnB,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,eAAe;IAC9B,YAAY,EAAE,eAAe;IAC7B,6BAA6B,EAAE,gCAAgC;IAC/D,gCAAgC,EAAE,mCAAmC;CACtE,CAAC"}
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,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