mfance-shark-v1 1.0.63 → 1.0.65
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/commission-withdrawal-agent.entity.d.ts +14 -0
- package/dist/common/entities/commission-withdrawal-agent.entity.js +65 -0
- package/dist/common/entities/commission-withdrawal-agent.entity.js.map +1 -0
- package/dist/common/entities/commission-withdrawal-distributor.entity.d.ts +14 -0
- package/dist/common/entities/commission-withdrawal-distributor.entity.js +65 -0
- package/dist/common/entities/commission-withdrawal-distributor.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 +11 -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 +15 -4
- package/dist/common/entities/soldes/solde-distributor.entity.js.map +1 -1
- package/dist/common/enums/index.d.ts +1 -0
- package/dist/common/enums/index.js +1 -0
- package/dist/common/enums/index.js.map +1 -1
- package/dist/common/enums/status_commission.enum.d.ts +5 -0
- package/dist/common/enums/status_commission.enum.js +10 -0
- package/dist/common/enums/status_commission.enum.js.map +1 -0
- package/dist/common/utils/constants/table-names.constant.d.ts +2 -0
- package/dist/common/utils/constants/table-names.constant.js +2 -0
- package/dist/common/utils/constants/table-names.constant.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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { Agent } from './users/agent.entity';
|
|
3
|
+
import { PaymentMethodType } from './payment-method-type.entity';
|
|
4
|
+
import { Transaction } from './transaction.entity';
|
|
5
|
+
import { StatusCommission } from '../enums/status_commission.enum';
|
|
6
|
+
export declare class CommissionWithdrawalAgent extends AuditableEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
agent: Agent;
|
|
9
|
+
amount: number;
|
|
10
|
+
paymentMethod: PaymentMethodType;
|
|
11
|
+
status: StatusCommission;
|
|
12
|
+
justification?: string;
|
|
13
|
+
transaction: Transaction;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.CommissionWithdrawalAgent = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const agent_entity_1 = require("./users/agent.entity");
|
|
16
|
+
const payment_method_type_entity_1 = require("./payment-method-type.entity");
|
|
17
|
+
const transaction_entity_1 = require("./transaction.entity");
|
|
18
|
+
const status_commission_enum_1 = require("../enums/status_commission.enum");
|
|
19
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
20
|
+
let CommissionWithdrawalAgent = class CommissionWithdrawalAgent extends auditable_entity_1.AuditableEntity {
|
|
21
|
+
};
|
|
22
|
+
exports.CommissionWithdrawalAgent = CommissionWithdrawalAgent;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CommissionWithdrawalAgent.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, { onDelete: 'CASCADE' }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|
|
30
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
31
|
+
], CommissionWithdrawalAgent.prototype, "agent", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CommissionWithdrawalAgent.prototype, "amount", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => payment_method_type_entity_1.PaymentMethodType, { eager: true }),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: 'payment_method_id' }),
|
|
39
|
+
__metadata("design:type", payment_method_type_entity_1.PaymentMethodType)
|
|
40
|
+
], CommissionWithdrawalAgent.prototype, "paymentMethod", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
type: 'enum',
|
|
44
|
+
enum: status_commission_enum_1.StatusCommission,
|
|
45
|
+
default: status_commission_enum_1.StatusCommission.PENDING,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CommissionWithdrawalAgent.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CommissionWithdrawalAgent.prototype, "justification", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, {
|
|
55
|
+
nullable: true,
|
|
56
|
+
onDelete: 'CASCADE',
|
|
57
|
+
onUpdate: 'CASCADE',
|
|
58
|
+
}),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
60
|
+
__metadata("design:type", transaction_entity_1.Transaction)
|
|
61
|
+
], CommissionWithdrawalAgent.prototype, "transaction", void 0);
|
|
62
|
+
exports.CommissionWithdrawalAgent = CommissionWithdrawalAgent = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.COMMISSION_WITHDRAWALS_AGENTS)
|
|
64
|
+
], CommissionWithdrawalAgent);
|
|
65
|
+
//# sourceMappingURL=commission-withdrawal-agent.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commission-withdrawal-agent.entity.js","sourceRoot":"","sources":["../../../src/common/entities/commission-withdrawal-agent.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,uEAAmE;AACnE,uDAA6C;AAC7C,6EAAiE;AACjE,6DAAmD;AACnD,4EAAmE;AACnE,kFAAsE;AAI/D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,kCAAe;CAgC7D,CAAA;AAhCY,8DAAyB;AAEpC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qDACpB;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,oBAAK;wDAAC;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yDAC5B;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;8BAC3B,8CAAiB;gEAAC;AAOjC;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yCAAgB;QACtB,OAAO,EAAE,yCAAgB,CAAC,OAAO;KAClC,CAAC;;yDACuB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEAClB;AAQvB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE;QAC5B,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC1B,gCAAW;8DAAC;oCA/Bd,yBAAyB;IADrC,IAAA,gBAAM,EAAC,kCAAW,CAAC,6BAA6B,CAAC;GACrC,yBAAyB,CAgCrC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { Distributor } from './users/distributor.entity';
|
|
3
|
+
import { PaymentMethodType } from './payment-method-type.entity';
|
|
4
|
+
import { Transaction } from './transaction.entity';
|
|
5
|
+
import { StatusCommission } from '../enums/status_commission.enum';
|
|
6
|
+
export declare class CommissionWithdrawalDistributor extends AuditableEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
distributor: Distributor;
|
|
9
|
+
amount: number;
|
|
10
|
+
paymentMethod: PaymentMethodType;
|
|
11
|
+
status: StatusCommission;
|
|
12
|
+
justification?: string;
|
|
13
|
+
transaction: Transaction;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.CommissionWithdrawalDistributor = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const distributor_entity_1 = require("./users/distributor.entity");
|
|
16
|
+
const payment_method_type_entity_1 = require("./payment-method-type.entity");
|
|
17
|
+
const transaction_entity_1 = require("./transaction.entity");
|
|
18
|
+
const status_commission_enum_1 = require("../enums/status_commission.enum");
|
|
19
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
20
|
+
let CommissionWithdrawalDistributor = class CommissionWithdrawalDistributor extends auditable_entity_1.AuditableEntity {
|
|
21
|
+
};
|
|
22
|
+
exports.CommissionWithdrawalDistributor = CommissionWithdrawalDistributor;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CommissionWithdrawalDistributor.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => distributor_entity_1.Distributor, { onDelete: 'CASCADE' }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: 'distributor_id' }),
|
|
30
|
+
__metadata("design:type", distributor_entity_1.Distributor)
|
|
31
|
+
], CommissionWithdrawalDistributor.prototype, "distributor", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CommissionWithdrawalDistributor.prototype, "amount", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => payment_method_type_entity_1.PaymentMethodType, { eager: true }),
|
|
38
|
+
(0, typeorm_1.JoinColumn)({ name: 'payment_method_id' }),
|
|
39
|
+
__metadata("design:type", payment_method_type_entity_1.PaymentMethodType)
|
|
40
|
+
], CommissionWithdrawalDistributor.prototype, "paymentMethod", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
type: 'enum',
|
|
44
|
+
enum: status_commission_enum_1.StatusCommission,
|
|
45
|
+
default: status_commission_enum_1.StatusCommission.PENDING,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CommissionWithdrawalDistributor.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CommissionWithdrawalDistributor.prototype, "justification", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, {
|
|
55
|
+
nullable: true,
|
|
56
|
+
onDelete: 'CASCADE',
|
|
57
|
+
onUpdate: 'CASCADE',
|
|
58
|
+
}),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
60
|
+
__metadata("design:type", transaction_entity_1.Transaction)
|
|
61
|
+
], CommissionWithdrawalDistributor.prototype, "transaction", void 0);
|
|
62
|
+
exports.CommissionWithdrawalDistributor = CommissionWithdrawalDistributor = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.COMMISSION_WITHDRAWALS_DISTRIBUTORS)
|
|
64
|
+
], CommissionWithdrawalDistributor);
|
|
65
|
+
//# sourceMappingURL=commission-withdrawal-distributor.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commission-withdrawal-distributor.entity.js","sourceRoot":"","sources":["../../../src/common/entities/commission-withdrawal-distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,uEAAmE;AACnE,mEAAyD;AACzD,6EAAiE;AACjE,6DAAmD;AACnD,4EAAmE;AACnE,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
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,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5C;AASnB;IAPC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE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
|
|
@@ -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,16 @@ __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
|
+
nullable: true,
|
|
61
|
+
}),
|
|
62
|
+
(0, typeorm_1.JoinColumn)(),
|
|
63
|
+
__metadata("design:type", action_type_entity_1.ActionType)
|
|
64
|
+
], SoldeCustomers.prototype, "actionType", void 0);
|
|
54
65
|
__decorate([
|
|
55
66
|
(0, classes_1.AutoMap)(),
|
|
56
67
|
(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;CA+ClD,CAAA;AA/CY,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,IA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W,CAAC,cAAc,CAAC;GACtB,cAAc,CA+C1B"}
|
|
@@ -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,19 @@ __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
|
+
nullable: true,
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.JoinColumn)(),
|
|
84
|
+
__metadata("design:type", action_type_entity_1.ActionType)
|
|
85
|
+
], SoldeDistributor.prototype, "actionType", void 0);
|
|
75
86
|
exports.SoldeDistributor = SoldeDistributor = __decorate([
|
|
76
87
|
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_DISTRIBUTOR)
|
|
77
88
|
], 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;CAuDpD,CAAA;AAvDY,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,EAAE;QAC7D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,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um"), exports);
|
|
31
31
|
__exportStar(require("./caisse-ops.enum"), exports);
|
|
32
32
|
__exportStar(require("./crud-doc.enum"), exports);
|
|
33
|
+
__exportStar(require("./status_commission.enum"), exports);
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,8CAA4B;AAC5B,4DAA0C;AAC1C,0DAAwC;AACxC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,qDAAmC;AACnC,8CAA4B;AAC5B,4DAA0C;AAC1C,0DAAwC;AACxC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC;AACnC,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC;AAChC,2DAAyC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusCommission = void 0;
|
|
4
|
+
var StatusCommission;
|
|
5
|
+
(function (StatusCommission) {
|
|
6
|
+
StatusCommission["PENDING"] = "PENDING";
|
|
7
|
+
StatusCommission["ACCEPTED"] = "ACCEPTED";
|
|
8
|
+
StatusCommission["REJECTED"] = "REJECTED";
|
|
9
|
+
})(StatusCommission || (exports.StatusCommission = StatusCommission = {}));
|
|
10
|
+
//# sourceMappingURL=status_commission.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status_commission.enum.js","sourceRoot":"","sources":["../../../src/common/enums/status_commission.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -42,5 +42,7 @@ exports.TABLE_NAMES = {
|
|
|
42
42
|
BALANCE_TYPE: 'balance_types',
|
|
43
43
|
RATE_METHOD: 'rate_methods',
|
|
44
44
|
RATE_CONFIG: 'rate_config',
|
|
45
|
+
COMMISSION_WITHDRAWALS_AGENTS: 'commission_withdrawals_agents',
|
|
46
|
+
COMMISSION_WITHDRAWALS_DISTRIBUTORS: 'commission_withdrawals_distributors',
|
|
45
47
|
};
|
|
46
48
|
//# 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,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,mBAAmB,EAAE,qBAAqB;IAC1C,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;IAC7B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,aAAa;
|
|
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,mBAAmB,EAAE,qBAAqB;IAC1C,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;IAC7B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,aAAa;IAC1B,6BAA6B,EAAE,+BAA+B;IAC9D,mCAAmC,EAAE,qCAAqC;CAC3E,CAAC"}
|