@hed-hog/finance 0.0.350 → 0.0.353
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/dto/create-financial-title.dto.d.ts +6 -0
- package/dist/dto/create-financial-title.dto.d.ts.map +1 -1
- package/dist/dto/create-financial-title.dto.js +27 -1
- package/dist/dto/create-financial-title.dto.js.map +1 -1
- package/dist/finance-data.controller.d.ts +12 -0
- package/dist/finance-data.controller.d.ts.map +1 -1
- package/dist/finance-installments.controller.d.ts +120 -0
- package/dist/finance-installments.controller.d.ts.map +1 -1
- package/dist/finance-realtime.controller.d.ts +7 -0
- package/dist/finance-realtime.controller.d.ts.map +1 -0
- package/dist/finance-realtime.controller.js +34 -0
- package/dist/finance-realtime.controller.js.map +1 -0
- package/dist/finance-realtime.service.d.ts +36 -0
- package/dist/finance-realtime.service.d.ts.map +1 -0
- package/dist/finance-realtime.service.js +59 -0
- package/dist/finance-realtime.service.js.map +1 -0
- package/dist/finance-statements.controller.d.ts +6 -0
- package/dist/finance-statements.controller.d.ts.map +1 -1
- package/dist/finance.module.d.ts.map +1 -1
- package/dist/finance.module.js +28 -0
- package/dist/finance.module.js.map +1 -1
- package/dist/finance.service.d.ts +142 -1
- package/dist/finance.service.d.ts.map +1 -1
- package/dist/finance.service.js +134 -19
- package/dist/finance.service.js.map +1 -1
- package/dist/mcp-tools/finance-audit-logs.mcp-tools.d.ts +8 -0
- package/dist/mcp-tools/finance-audit-logs.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-audit-logs.mcp-tools.js +60 -0
- package/dist/mcp-tools/finance-audit-logs.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-bank-accounts.mcp-tools.d.ts +16 -0
- package/dist/mcp-tools/finance-bank-accounts.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-bank-accounts.mcp-tools.js +121 -0
- package/dist/mcp-tools/finance-bank-accounts.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-categories.mcp-tools.d.ts +20 -0
- package/dist/mcp-tools/finance-categories.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-categories.mcp-tools.js +135 -0
- package/dist/mcp-tools/finance-categories.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-collections.mcp-tools.d.ts +16 -0
- package/dist/mcp-tools/finance-collections.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-collections.mcp-tools.js +91 -0
- package/dist/mcp-tools/finance-collections.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-cost-centers.mcp-tools.d.ts +16 -0
- package/dist/mcp-tools/finance-cost-centers.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-cost-centers.mcp-tools.js +114 -0
- package/dist/mcp-tools/finance-cost-centers.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-currencies.mcp-tools.d.ts +16 -0
- package/dist/mcp-tools/finance-currencies.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-currencies.mcp-tools.js +120 -0
- package/dist/mcp-tools/finance-currencies.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-data.mcp-tools.d.ts +15 -0
- package/dist/mcp-tools/finance-data.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-data.mcp-tools.js +80 -0
- package/dist/mcp-tools/finance-data.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-installments.mcp-tools.d.ts +93 -0
- package/dist/mcp-tools/finance-installments.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-installments.mcp-tools.js +646 -0
- package/dist/mcp-tools/finance-installments.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-period-close.mcp-tools.d.ts +9 -0
- package/dist/mcp-tools/finance-period-close.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-period-close.mcp-tools.js +79 -0
- package/dist/mcp-tools/finance-period-close.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-reports.mcp-tools.d.ts +10 -0
- package/dist/mcp-tools/finance-reports.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-reports.mcp-tools.js +89 -0
- package/dist/mcp-tools/finance-reports.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-statements.mcp-tools.d.ts +34 -0
- package/dist/mcp-tools/finance-statements.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-statements.mcp-tools.js +253 -0
- package/dist/mcp-tools/finance-statements.mcp-tools.js.map +1 -0
- package/dist/mcp-tools/finance-transfers.mcp-tools.d.ts +9 -0
- package/dist/mcp-tools/finance-transfers.mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools/finance-transfers.mcp-tools.js +79 -0
- package/dist/mcp-tools/finance-transfers.mcp-tools.js.map +1 -0
- package/hedhog/data/route.yaml +659 -1
- package/hedhog/frontend/app/_components/finance-title-actions-menu.tsx.ejs +9 -3
- package/hedhog/frontend/app/_lib/http-error.ts.ejs +105 -0
- package/hedhog/frontend/app/_lib/use-finance-realtime-refresh.ts.ejs +62 -0
- package/hedhog/frontend/app/accounts-payable/approvals/page.tsx.ejs +3 -0
- package/hedhog/frontend/app/accounts-payable/installments/[id]/page.tsx.ejs +5 -5
- package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +776 -344
- package/hedhog/frontend/app/accounts-receivable/collections-default/page.tsx.ejs +7 -13
- package/hedhog/frontend/app/accounts-receivable/installments/[id]/page.tsx.ejs +5 -5
- package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +802 -355
- package/hedhog/frontend/app/administration/categories/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/administration/cost-centers/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/administration/currencies/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/administration/period-close/page.tsx.ejs +9 -3
- package/hedhog/frontend/app/cash-and-banks/bank-accounts/page.tsx.ejs +7 -3
- package/hedhog/frontend/app/cash-and-banks/bank-reconciliation/page.tsx.ejs +3 -3
- package/hedhog/frontend/app/cash-and-banks/statements/page.tsx.ejs +28 -7
- package/hedhog/frontend/app/cash-and-banks/transfers/page.tsx.ejs +12 -3
- package/hedhog/frontend/messages/en.json +63 -3
- package/hedhog/frontend/messages/pt.json +63 -3
- package/hedhog/table/financial_title.yaml +10 -0
- package/package.json +5 -5
- package/src/dto/create-financial-title.dto.ts +23 -0
- package/src/finance-realtime.controller.ts +12 -0
- package/src/finance-realtime.service.ts +106 -0
- package/src/finance.module.ts +28 -0
- package/src/finance.service.ts +184 -45
- package/src/mcp-tools/finance-audit-logs.mcp-tools.ts +38 -0
- package/src/mcp-tools/finance-bank-accounts.mcp-tools.ts +76 -0
- package/src/mcp-tools/finance-categories.mcp-tools.ts +86 -0
- package/src/mcp-tools/finance-collections.mcp-tools.ts +50 -0
- package/src/mcp-tools/finance-cost-centers.mcp-tools.ts +69 -0
- package/src/mcp-tools/finance-currencies.mcp-tools.ts +75 -0
- package/src/mcp-tools/finance-data.mcp-tools.ts +43 -0
- package/src/mcp-tools/finance-installments.mcp-tools.ts +560 -0
- package/src/mcp-tools/finance-period-close.mcp-tools.ts +53 -0
- package/src/mcp-tools/finance-reports.mcp-tools.ts +59 -0
- package/src/mcp-tools/finance-statements.mcp-tools.ts +202 -0
- package/src/mcp-tools/finance-transfers.mcp-tools.ts +53 -0
|
@@ -0,0 +1,59 @@
|
|
|
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 FinanceRealtimeService_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.FinanceRealtimeService = void 0;
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
let FinanceRealtimeService = FinanceRealtimeService_1 = class FinanceRealtimeService {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.sequence = 0;
|
|
15
|
+
this.updatedAt = null;
|
|
16
|
+
this.eventLog = [];
|
|
17
|
+
this.listeners = new Map();
|
|
18
|
+
this.listenerSequence = 0;
|
|
19
|
+
}
|
|
20
|
+
publish(event) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const nextCursor = ++this.sequence;
|
|
23
|
+
const occurredAt = new Date().toISOString();
|
|
24
|
+
this.updatedAt = occurredAt;
|
|
25
|
+
const realtimeEvent = {
|
|
26
|
+
version: 'finance-realtime-v1',
|
|
27
|
+
eventId: String(nextCursor),
|
|
28
|
+
cursor: nextCursor,
|
|
29
|
+
occurredAt,
|
|
30
|
+
domain: event.domain,
|
|
31
|
+
type: event.type,
|
|
32
|
+
entityId: (_a = event.entityId) !== null && _a !== void 0 ? _a : null,
|
|
33
|
+
actorId: (_b = event.actorId) !== null && _b !== void 0 ? _b : null,
|
|
34
|
+
payload: event.payload,
|
|
35
|
+
};
|
|
36
|
+
this.eventLog.push(realtimeEvent);
|
|
37
|
+
if (this.eventLog.length > FinanceRealtimeService_1.EVENT_RETENTION_LIMIT) {
|
|
38
|
+
this.eventLog.splice(0, this.eventLog.length - FinanceRealtimeService_1.EVENT_RETENTION_LIMIT);
|
|
39
|
+
}
|
|
40
|
+
for (const listener of this.listeners.values()) {
|
|
41
|
+
listener.onEvent(realtimeEvent);
|
|
42
|
+
}
|
|
43
|
+
return { cursor: nextCursor, updatedAt: this.updatedAt };
|
|
44
|
+
}
|
|
45
|
+
getCursor() {
|
|
46
|
+
return { cursor: this.sequence, updatedAt: this.updatedAt };
|
|
47
|
+
}
|
|
48
|
+
subscribe(onEvent) {
|
|
49
|
+
const id = ++this.listenerSequence;
|
|
50
|
+
this.listeners.set(id, { onEvent });
|
|
51
|
+
return () => this.listeners.delete(id);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.FinanceRealtimeService = FinanceRealtimeService;
|
|
55
|
+
FinanceRealtimeService.EVENT_RETENTION_LIMIT = 500;
|
|
56
|
+
exports.FinanceRealtimeService = FinanceRealtimeService = FinanceRealtimeService_1 = __decorate([
|
|
57
|
+
(0, common_1.Injectable)()
|
|
58
|
+
], FinanceRealtimeService);
|
|
59
|
+
//# sourceMappingURL=finance-realtime.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance-realtime.service.js","sourceRoot":"","sources":["../src/finance-realtime.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA4C;AA0DrC,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAA5B;QAGG,aAAQ,GAAG,CAAC,CAAC;QACb,cAAS,GAAkB,IAAI,CAAC;QACvB,aAAQ,GAA2B,EAAE,CAAC;QACtC,cAAS,GAAG,IAAI,GAAG,EAAmC,CAAC;QAChE,qBAAgB,GAAG,CAAC,CAAC;IAwC/B,CAAC;IAtCC,OAAO,CAAC,KAAkC;;QACxC,MAAM,UAAU,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;QAE5B,MAAM,aAAa,GAAyB;YAC1C,OAAO,EAAE,qBAAqB;YAC9B,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC;YAC3B,MAAM,EAAE,UAAU;YAClB,UAAU;YACV,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,QAAQ,EAAE,MAAA,KAAK,CAAC,QAAQ,mCAAI,IAAI;YAChC,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,mCAAI,IAAI;YAC9B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,wBAAsB,CAAC,qBAAqB,EAAE,CAAC;YACxE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,wBAAsB,CAAC,qBAAqB,CAAC,CAAC;QAC/F,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC;YAC/C,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;IAED,SAAS;QACP,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IAC9D,CAAC;IAED,SAAS,CAAC,OAA8C;QACtD,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACnC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QACpC,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzC,CAAC;;AA9CU,wDAAsB;AACT,4CAAqB,GAAG,GAAG,AAAN,CAAO;iCADzC,sBAAsB;IADlC,IAAA,mBAAU,GAAE;GACA,sBAAsB,CA+ClC"}
|
|
@@ -57,6 +57,9 @@ export declare class FinanceStatementsController {
|
|
|
57
57
|
tags: unknown[];
|
|
58
58
|
parcelas: any;
|
|
59
59
|
canal: string;
|
|
60
|
+
isRecurring: any;
|
|
61
|
+
recurrenceFrequency: any;
|
|
62
|
+
recurrenceEndDate: any;
|
|
60
63
|
} | {
|
|
61
64
|
settlementId: string;
|
|
62
65
|
reconciliationId: string;
|
|
@@ -76,6 +79,9 @@ export declare class FinanceStatementsController {
|
|
|
76
79
|
tags: unknown[];
|
|
77
80
|
parcelas: any;
|
|
78
81
|
canal: string;
|
|
82
|
+
isRecurring: any;
|
|
83
|
+
recurrenceFrequency: any;
|
|
84
|
+
recurrenceEndDate: any;
|
|
79
85
|
}>;
|
|
80
86
|
exportBankStatementsCsv(bankAccountId: string, response: Response, search?: string, from?: string, to?: string): Promise<string>;
|
|
81
87
|
importBankStatements(file: MulterFile, bankAccountId: string, locale: string, user: any): Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-statements.controller.d.ts","sourceRoot":"","sources":["../src/finance-statements.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAiBpE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,kBAAkB,CACR,gBAAgB,EAAE,aAAa,EACnB,aAAa,CAAC,EAAE,MAAM,EAC/B,MAAM,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;IAepB,4BAA4B,CACN,aAAa,EAAE,MAAM;;;;IAY3C,wBAAwB,CACpB,IAAI,EAAE,2BAA2B,EAC/B,MAAM,EAAE,MAAM,EAChB,IAAI,KAAA
|
|
1
|
+
{"version":3,"file":"finance-statements.controller.d.ts","sourceRoot":"","sources":["../src/finance-statements.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAiBpE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAC9F,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,kBAAkB,CACR,gBAAgB,EAAE,aAAa,EACnB,aAAa,CAAC,EAAE,MAAM,EAC/B,MAAM,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;IAepB,4BAA4B,CACN,aAAa,EAAE,MAAM;;;;IAY3C,wBAAwB,CACpB,IAAI,EAAE,2BAA2B,EAC/B,MAAM,EAAE,MAAM,EAChB,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,uBAAuB,CACD,aAAa,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,EAC7B,MAAM,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM;IAyBpB,oBAAoB,CACR,IAAI,EAAE,UAAU,EACP,aAAa,EAAE,MAAM,EACpC,MAAM,EAAE,MAAM,EAChB,IAAI,KAAA;;;;;;IAiBR,6BAA6B,CACzB,IAAI,EAAE,gCAAgC,EACtC,IAAI,KAAA;;;;;;;;;IAMR,wBAAwB,CACpB,IAAI,EAAE,2BAA2B,EACjC,IAAI,KAAA;;;;;;;;;;;;;;IAMR,wBAAwB,CACD,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,2BAA2B,EACjC,IAAI,KAAA;;;;;;;;;;;;;;IAMR,wBAAwB,CACD,EAAE,EAAE,MAAM,EAC7B,IAAI,KAAA;;;CAIf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.module.d.ts","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"finance.module.d.ts","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":"AAoCA,qBA6Ca,aAAa;CAAG"}
|
package/dist/finance.module.js
CHANGED
|
@@ -27,7 +27,21 @@ const finance_statements_controller_1 = require("./finance-statements.controller
|
|
|
27
27
|
const finance_transfers_controller_1 = require("./finance-transfers.controller");
|
|
28
28
|
const finance_contract_activated_subscriber_1 = require("./finance.contract-activated.subscriber");
|
|
29
29
|
const finance_integration_example_subscriber_1 = require("./finance.integration-example.subscriber");
|
|
30
|
+
const finance_realtime_controller_1 = require("./finance-realtime.controller");
|
|
31
|
+
const finance_realtime_service_1 = require("./finance-realtime.service");
|
|
30
32
|
const finance_service_1 = require("./finance.service");
|
|
33
|
+
const finance_audit_logs_mcp_tools_1 = require("./mcp-tools/finance-audit-logs.mcp-tools");
|
|
34
|
+
const finance_bank_accounts_mcp_tools_1 = require("./mcp-tools/finance-bank-accounts.mcp-tools");
|
|
35
|
+
const finance_categories_mcp_tools_1 = require("./mcp-tools/finance-categories.mcp-tools");
|
|
36
|
+
const finance_collections_mcp_tools_1 = require("./mcp-tools/finance-collections.mcp-tools");
|
|
37
|
+
const finance_cost_centers_mcp_tools_1 = require("./mcp-tools/finance-cost-centers.mcp-tools");
|
|
38
|
+
const finance_currencies_mcp_tools_1 = require("./mcp-tools/finance-currencies.mcp-tools");
|
|
39
|
+
const finance_data_mcp_tools_1 = require("./mcp-tools/finance-data.mcp-tools");
|
|
40
|
+
const finance_installments_mcp_tools_1 = require("./mcp-tools/finance-installments.mcp-tools");
|
|
41
|
+
const finance_period_close_mcp_tools_1 = require("./mcp-tools/finance-period-close.mcp-tools");
|
|
42
|
+
const finance_reports_mcp_tools_1 = require("./mcp-tools/finance-reports.mcp-tools");
|
|
43
|
+
const finance_statements_mcp_tools_1 = require("./mcp-tools/finance-statements.mcp-tools");
|
|
44
|
+
const finance_transfers_mcp_tools_1 = require("./mcp-tools/finance-transfers.mcp-tools");
|
|
31
45
|
let FinanceModule = class FinanceModule {
|
|
32
46
|
};
|
|
33
47
|
exports.FinanceModule = FinanceModule;
|
|
@@ -43,6 +57,7 @@ exports.FinanceModule = FinanceModule = __decorate([
|
|
|
43
57
|
(0, common_1.forwardRef)(() => core_1.IntegrationModule),
|
|
44
58
|
],
|
|
45
59
|
controllers: [
|
|
60
|
+
finance_realtime_controller_1.FinanceRealtimeController,
|
|
46
61
|
finance_audit_logs_controller_1.FinanceAuditLogsController,
|
|
47
62
|
finance_data_controller_1.FinanceDataController,
|
|
48
63
|
finance_installments_controller_1.FinanceInstallmentsController,
|
|
@@ -57,9 +72,22 @@ exports.FinanceModule = FinanceModule = __decorate([
|
|
|
57
72
|
finance_transfers_controller_1.FinanceTransfersController,
|
|
58
73
|
],
|
|
59
74
|
providers: [
|
|
75
|
+
finance_realtime_service_1.FinanceRealtimeService,
|
|
60
76
|
finance_service_1.FinanceService,
|
|
61
77
|
finance_integration_example_subscriber_1.FinanceIntegrationExampleSubscriber,
|
|
62
78
|
finance_contract_activated_subscriber_1.FinanceContractActivatedSubscriber,
|
|
79
|
+
finance_audit_logs_mcp_tools_1.FinanceAuditLogsMcpTools,
|
|
80
|
+
finance_bank_accounts_mcp_tools_1.FinanceBankAccountsMcpTools,
|
|
81
|
+
finance_categories_mcp_tools_1.FinanceCategoriesMcpTools,
|
|
82
|
+
finance_collections_mcp_tools_1.FinanceCollectionsMcpTools,
|
|
83
|
+
finance_cost_centers_mcp_tools_1.FinanceCostCentersMcpTools,
|
|
84
|
+
finance_currencies_mcp_tools_1.FinanceCurrenciesMcpTools,
|
|
85
|
+
finance_data_mcp_tools_1.FinanceDataMcpTools,
|
|
86
|
+
finance_installments_mcp_tools_1.FinanceInstallmentsMcpTools,
|
|
87
|
+
finance_period_close_mcp_tools_1.FinancePeriodCloseMcpTools,
|
|
88
|
+
finance_reports_mcp_tools_1.FinanceReportsMcpTools,
|
|
89
|
+
finance_statements_mcp_tools_1.FinanceStatementsMcpTools,
|
|
90
|
+
finance_transfers_mcp_tools_1.FinanceTransfersMcpTools,
|
|
63
91
|
],
|
|
64
92
|
exports: [finance_service_1.FinanceService],
|
|
65
93
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.module.js","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,4DAA2D;AAC3D,oDAAmD;AACnD,wCAAwE;AACxE,2CAAoD;AACpD,2CAA8C;AAC9C,mFAA6E;AAC7E,yFAAmF;AACnF,mFAA8E;AAC9E,qFAAgF;AAChF,uFAAiF;AACjF,mFAA8E;AAC9E,uEAAkE;AAClE,uFAAkF;AAClF,uFAAiF;AACjF,6EAAwE;AACxE,mFAA8E;AAC9E,iFAA4E;AAC5E,mGAA6F;AAC7F,qGAA+F;AAC/F,uDAAmD;
|
|
1
|
+
{"version":3,"file":"finance.module.js","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,4DAA2D;AAC3D,oDAAmD;AACnD,wCAAwE;AACxE,2CAAoD;AACpD,2CAA8C;AAC9C,mFAA6E;AAC7E,yFAAmF;AACnF,mFAA8E;AAC9E,qFAAgF;AAChF,uFAAiF;AACjF,mFAA8E;AAC9E,uEAAkE;AAClE,uFAAkF;AAClF,uFAAiF;AACjF,6EAAwE;AACxE,mFAA8E;AAC9E,iFAA4E;AAC5E,mGAA6F;AAC7F,qGAA+F;AAC/F,+EAA0E;AAC1E,yEAAoE;AACpE,uDAAmD;AACnD,2FAAoF;AACpF,iGAA0F;AAC1F,2FAAqF;AACrF,6FAAuF;AACvF,+FAAwF;AACxF,2FAAqF;AACrF,+EAAyE;AACzE,+FAAyF;AACzF,+FAAwF;AACxF,qFAA+E;AAC/E,2FAAqF;AACrF,yFAAmF;AA+C5E,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IA7CzB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,EAAE;YACtB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,eAAQ,CAAC;YAC1B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAiB,CAAC;SACpC;QACD,WAAW,EAAE;YACX,uDAAyB;YACzB,0DAA0B;YAC1B,+CAAqB;YACrB,+DAA6B;YAC7B,qDAAwB;YACxB,gEAA6B;YAC7B,2DAA2B;YAC3B,6DAA4B;YAC5B,8DAA4B;YAC5B,2DAA2B;YAC3B,8DAA4B;YAC5B,2DAA2B;YAC3B,yDAA0B;SAC3B;QACD,SAAS,EAAE;YACT,iDAAsB;YACtB,gCAAc;YACd,4EAAmC;YACnC,0EAAkC;YAClC,uDAAwB;YACxB,6DAA2B;YAC3B,wDAAyB;YACzB,0DAA0B;YAC1B,2DAA0B;YAC1B,wDAAyB;YACzB,4CAAmB;YACnB,4DAA2B;YAC3B,2DAA0B;YAC1B,kDAAsB;YACtB,wDAAyB;YACzB,sDAAwB;SACzB;QACD,OAAO,EAAE,CAAC,gCAAc,CAAC;KAC1B,CAAC;GACW,aAAa,CAAG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PaginationDTO, PaginationService } from '@hed-hog/api-pagination';
|
|
2
2
|
import { PrismaService } from '@hed-hog/api-prisma';
|
|
3
3
|
import { AiService, FileService, IntegrationDeveloperApiService, SettingService } from '@hed-hog/core';
|
|
4
|
+
import { FinanceRealtimeService } from './finance-realtime.service';
|
|
4
5
|
import { CreateBankAccountDto } from './dto/create-bank-account.dto';
|
|
5
6
|
import { CreateBankReconciliationDto } from './dto/create-bank-reconciliation.dto';
|
|
6
7
|
import { CreateBankStatementAdjustmentDto } from './dto/create-bank-statement-adjustment.dto';
|
|
@@ -42,8 +43,9 @@ export declare class FinanceService {
|
|
|
42
43
|
private readonly settingService;
|
|
43
44
|
private readonly fileService;
|
|
44
45
|
private readonly integrationApi;
|
|
46
|
+
private readonly financeRealtime;
|
|
45
47
|
private readonly logger;
|
|
46
|
-
constructor(prisma: PrismaService, paginationService: PaginationService, ai: AiService, settingService: SettingService, fileService: FileService, integrationApi: IntegrationDeveloperApiService);
|
|
48
|
+
constructor(prisma: PrismaService, paginationService: PaginationService, ai: AiService, settingService: SettingService, fileService: FileService, integrationApi: IntegrationDeveloperApiService, financeRealtime: FinanceRealtimeService);
|
|
47
49
|
getAgentExtractInfoFromFile(file?: MulterFile, fileId?: number, titleType?: TitleType): Promise<{
|
|
48
50
|
documento: string;
|
|
49
51
|
fornecedorId: string;
|
|
@@ -122,6 +124,9 @@ export declare class FinanceService {
|
|
|
122
124
|
tags: unknown[];
|
|
123
125
|
parcelas: any;
|
|
124
126
|
canal: string;
|
|
127
|
+
isRecurring: any;
|
|
128
|
+
recurrenceFrequency: any;
|
|
129
|
+
recurrenceEndDate: any;
|
|
125
130
|
} | {
|
|
126
131
|
clienteId: string;
|
|
127
132
|
cliente: any;
|
|
@@ -139,6 +144,9 @@ export declare class FinanceService {
|
|
|
139
144
|
tags: unknown[];
|
|
140
145
|
parcelas: any;
|
|
141
146
|
canal: string;
|
|
147
|
+
isRecurring: any;
|
|
148
|
+
recurrenceFrequency: any;
|
|
149
|
+
recurrenceEndDate: any;
|
|
142
150
|
})[];
|
|
143
151
|
titulosReceber: ({
|
|
144
152
|
fornecedorId: string;
|
|
@@ -157,6 +165,9 @@ export declare class FinanceService {
|
|
|
157
165
|
tags: unknown[];
|
|
158
166
|
parcelas: any;
|
|
159
167
|
canal: string;
|
|
168
|
+
isRecurring: any;
|
|
169
|
+
recurrenceFrequency: any;
|
|
170
|
+
recurrenceEndDate: any;
|
|
160
171
|
} | {
|
|
161
172
|
clienteId: string;
|
|
162
173
|
cliente: any;
|
|
@@ -174,6 +185,9 @@ export declare class FinanceService {
|
|
|
174
185
|
tags: unknown[];
|
|
175
186
|
parcelas: any;
|
|
176
187
|
canal: string;
|
|
188
|
+
isRecurring: any;
|
|
189
|
+
recurrenceFrequency: any;
|
|
190
|
+
recurrenceEndDate: any;
|
|
177
191
|
})[];
|
|
178
192
|
extratos: {
|
|
179
193
|
id: string;
|
|
@@ -444,6 +458,9 @@ export declare class FinanceService {
|
|
|
444
458
|
tags: unknown[];
|
|
445
459
|
parcelas: any;
|
|
446
460
|
canal: string;
|
|
461
|
+
isRecurring: any;
|
|
462
|
+
recurrenceFrequency: any;
|
|
463
|
+
recurrenceEndDate: any;
|
|
447
464
|
} | {
|
|
448
465
|
clienteId: string;
|
|
449
466
|
cliente: any;
|
|
@@ -461,6 +478,9 @@ export declare class FinanceService {
|
|
|
461
478
|
tags: unknown[];
|
|
462
479
|
parcelas: any;
|
|
463
480
|
canal: string;
|
|
481
|
+
isRecurring: any;
|
|
482
|
+
recurrenceFrequency: any;
|
|
483
|
+
recurrenceEndDate: any;
|
|
464
484
|
})[];
|
|
465
485
|
total: any;
|
|
466
486
|
lastPage: number;
|
|
@@ -490,6 +510,9 @@ export declare class FinanceService {
|
|
|
490
510
|
tags: unknown[];
|
|
491
511
|
parcelas: any;
|
|
492
512
|
canal: string;
|
|
513
|
+
isRecurring: any;
|
|
514
|
+
recurrenceFrequency: any;
|
|
515
|
+
recurrenceEndDate: any;
|
|
493
516
|
} | {
|
|
494
517
|
clienteId: string;
|
|
495
518
|
cliente: any;
|
|
@@ -507,6 +530,9 @@ export declare class FinanceService {
|
|
|
507
530
|
tags: unknown[];
|
|
508
531
|
parcelas: any;
|
|
509
532
|
canal: string;
|
|
533
|
+
isRecurring: any;
|
|
534
|
+
recurrenceFrequency: any;
|
|
535
|
+
recurrenceEndDate: any;
|
|
510
536
|
})[];
|
|
511
537
|
total: any;
|
|
512
538
|
lastPage: number;
|
|
@@ -532,6 +558,9 @@ export declare class FinanceService {
|
|
|
532
558
|
tags: unknown[];
|
|
533
559
|
parcelas: any;
|
|
534
560
|
canal: string;
|
|
561
|
+
isRecurring: any;
|
|
562
|
+
recurrenceFrequency: any;
|
|
563
|
+
recurrenceEndDate: any;
|
|
535
564
|
} | {
|
|
536
565
|
clienteId: string;
|
|
537
566
|
cliente: any;
|
|
@@ -549,6 +578,9 @@ export declare class FinanceService {
|
|
|
549
578
|
tags: unknown[];
|
|
550
579
|
parcelas: any;
|
|
551
580
|
canal: string;
|
|
581
|
+
isRecurring: any;
|
|
582
|
+
recurrenceFrequency: any;
|
|
583
|
+
recurrenceEndDate: any;
|
|
552
584
|
}>;
|
|
553
585
|
getAccountsReceivableInstallment(id: number, locale: string): Promise<{
|
|
554
586
|
fornecedorId: string;
|
|
@@ -567,6 +599,9 @@ export declare class FinanceService {
|
|
|
567
599
|
tags: unknown[];
|
|
568
600
|
parcelas: any;
|
|
569
601
|
canal: string;
|
|
602
|
+
isRecurring: any;
|
|
603
|
+
recurrenceFrequency: any;
|
|
604
|
+
recurrenceEndDate: any;
|
|
570
605
|
} | {
|
|
571
606
|
clienteId: string;
|
|
572
607
|
cliente: any;
|
|
@@ -584,6 +619,9 @@ export declare class FinanceService {
|
|
|
584
619
|
tags: unknown[];
|
|
585
620
|
parcelas: any;
|
|
586
621
|
canal: string;
|
|
622
|
+
isRecurring: any;
|
|
623
|
+
recurrenceFrequency: any;
|
|
624
|
+
recurrenceEndDate: any;
|
|
587
625
|
}>;
|
|
588
626
|
createAccountsPayableTitle(data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
589
627
|
fornecedorId: string;
|
|
@@ -602,6 +640,9 @@ export declare class FinanceService {
|
|
|
602
640
|
tags: unknown[];
|
|
603
641
|
parcelas: any;
|
|
604
642
|
canal: string;
|
|
643
|
+
isRecurring: any;
|
|
644
|
+
recurrenceFrequency: any;
|
|
645
|
+
recurrenceEndDate: any;
|
|
605
646
|
} | {
|
|
606
647
|
clienteId: string;
|
|
607
648
|
cliente: any;
|
|
@@ -619,6 +660,9 @@ export declare class FinanceService {
|
|
|
619
660
|
tags: unknown[];
|
|
620
661
|
parcelas: any;
|
|
621
662
|
canal: string;
|
|
663
|
+
isRecurring: any;
|
|
664
|
+
recurrenceFrequency: any;
|
|
665
|
+
recurrenceEndDate: any;
|
|
622
666
|
}>;
|
|
623
667
|
updateAccountsPayableTitle(id: number, data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
624
668
|
fornecedorId: string;
|
|
@@ -637,6 +681,9 @@ export declare class FinanceService {
|
|
|
637
681
|
tags: unknown[];
|
|
638
682
|
parcelas: any;
|
|
639
683
|
canal: string;
|
|
684
|
+
isRecurring: any;
|
|
685
|
+
recurrenceFrequency: any;
|
|
686
|
+
recurrenceEndDate: any;
|
|
640
687
|
} | {
|
|
641
688
|
clienteId: string;
|
|
642
689
|
cliente: any;
|
|
@@ -654,6 +701,9 @@ export declare class FinanceService {
|
|
|
654
701
|
tags: unknown[];
|
|
655
702
|
parcelas: any;
|
|
656
703
|
canal: string;
|
|
704
|
+
isRecurring: any;
|
|
705
|
+
recurrenceFrequency: any;
|
|
706
|
+
recurrenceEndDate: any;
|
|
657
707
|
}>;
|
|
658
708
|
approveAccountsPayableTitle(id: number, locale: string, userId?: number): Promise<{
|
|
659
709
|
fornecedorId: string;
|
|
@@ -672,6 +722,9 @@ export declare class FinanceService {
|
|
|
672
722
|
tags: unknown[];
|
|
673
723
|
parcelas: any;
|
|
674
724
|
canal: string;
|
|
725
|
+
isRecurring: any;
|
|
726
|
+
recurrenceFrequency: any;
|
|
727
|
+
recurrenceEndDate: any;
|
|
675
728
|
} | {
|
|
676
729
|
clienteId: string;
|
|
677
730
|
cliente: any;
|
|
@@ -689,6 +742,9 @@ export declare class FinanceService {
|
|
|
689
742
|
tags: unknown[];
|
|
690
743
|
parcelas: any;
|
|
691
744
|
canal: string;
|
|
745
|
+
isRecurring: any;
|
|
746
|
+
recurrenceFrequency: any;
|
|
747
|
+
recurrenceEndDate: any;
|
|
692
748
|
}>;
|
|
693
749
|
rejectAccountsPayableTitle(id: number, data: RejectTitleDto, locale: string, userId?: number): Promise<{
|
|
694
750
|
fornecedorId: string;
|
|
@@ -707,6 +763,9 @@ export declare class FinanceService {
|
|
|
707
763
|
tags: unknown[];
|
|
708
764
|
parcelas: any;
|
|
709
765
|
canal: string;
|
|
766
|
+
isRecurring: any;
|
|
767
|
+
recurrenceFrequency: any;
|
|
768
|
+
recurrenceEndDate: any;
|
|
710
769
|
} | {
|
|
711
770
|
clienteId: string;
|
|
712
771
|
cliente: any;
|
|
@@ -724,6 +783,9 @@ export declare class FinanceService {
|
|
|
724
783
|
tags: unknown[];
|
|
725
784
|
parcelas: any;
|
|
726
785
|
canal: string;
|
|
786
|
+
isRecurring: any;
|
|
787
|
+
recurrenceFrequency: any;
|
|
788
|
+
recurrenceEndDate: any;
|
|
727
789
|
}>;
|
|
728
790
|
cancelAccountsPayableTitle(id: number, data: RejectTitleDto, locale: string, userId?: number): Promise<{
|
|
729
791
|
fornecedorId: string;
|
|
@@ -742,6 +804,9 @@ export declare class FinanceService {
|
|
|
742
804
|
tags: unknown[];
|
|
743
805
|
parcelas: any;
|
|
744
806
|
canal: string;
|
|
807
|
+
isRecurring: any;
|
|
808
|
+
recurrenceFrequency: any;
|
|
809
|
+
recurrenceEndDate: any;
|
|
745
810
|
} | {
|
|
746
811
|
clienteId: string;
|
|
747
812
|
cliente: any;
|
|
@@ -759,6 +824,9 @@ export declare class FinanceService {
|
|
|
759
824
|
tags: unknown[];
|
|
760
825
|
parcelas: any;
|
|
761
826
|
canal: string;
|
|
827
|
+
isRecurring: any;
|
|
828
|
+
recurrenceFrequency: any;
|
|
829
|
+
recurrenceEndDate: any;
|
|
762
830
|
}>;
|
|
763
831
|
settleAccountsPayableInstallment(id: number, data: SettleInstallmentDto, locale: string, userId?: number): Promise<{
|
|
764
832
|
settlementId: string;
|
|
@@ -779,6 +847,9 @@ export declare class FinanceService {
|
|
|
779
847
|
tags: unknown[];
|
|
780
848
|
parcelas: any;
|
|
781
849
|
canal: string;
|
|
850
|
+
isRecurring: any;
|
|
851
|
+
recurrenceFrequency: any;
|
|
852
|
+
recurrenceEndDate: any;
|
|
782
853
|
} | {
|
|
783
854
|
settlementId: string;
|
|
784
855
|
reconciliationId: string;
|
|
@@ -798,6 +869,9 @@ export declare class FinanceService {
|
|
|
798
869
|
tags: unknown[];
|
|
799
870
|
parcelas: any;
|
|
800
871
|
canal: string;
|
|
872
|
+
isRecurring: any;
|
|
873
|
+
recurrenceFrequency: any;
|
|
874
|
+
recurrenceEndDate: any;
|
|
801
875
|
}>;
|
|
802
876
|
reverseAccountsPayableSettlement(id: number, settlementId: number, data: ReverseSettlementDto, locale: string, userId?: number): Promise<{
|
|
803
877
|
fornecedorId: string;
|
|
@@ -816,6 +890,9 @@ export declare class FinanceService {
|
|
|
816
890
|
tags: unknown[];
|
|
817
891
|
parcelas: any;
|
|
818
892
|
canal: string;
|
|
893
|
+
isRecurring: any;
|
|
894
|
+
recurrenceFrequency: any;
|
|
895
|
+
recurrenceEndDate: any;
|
|
819
896
|
} | {
|
|
820
897
|
clienteId: string;
|
|
821
898
|
cliente: any;
|
|
@@ -833,6 +910,9 @@ export declare class FinanceService {
|
|
|
833
910
|
tags: unknown[];
|
|
834
911
|
parcelas: any;
|
|
835
912
|
canal: string;
|
|
913
|
+
isRecurring: any;
|
|
914
|
+
recurrenceFrequency: any;
|
|
915
|
+
recurrenceEndDate: any;
|
|
836
916
|
}>;
|
|
837
917
|
createAccountsReceivableTitle(data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
838
918
|
fornecedorId: string;
|
|
@@ -851,6 +931,9 @@ export declare class FinanceService {
|
|
|
851
931
|
tags: unknown[];
|
|
852
932
|
parcelas: any;
|
|
853
933
|
canal: string;
|
|
934
|
+
isRecurring: any;
|
|
935
|
+
recurrenceFrequency: any;
|
|
936
|
+
recurrenceEndDate: any;
|
|
854
937
|
} | {
|
|
855
938
|
clienteId: string;
|
|
856
939
|
cliente: any;
|
|
@@ -868,6 +951,9 @@ export declare class FinanceService {
|
|
|
868
951
|
tags: unknown[];
|
|
869
952
|
parcelas: any;
|
|
870
953
|
canal: string;
|
|
954
|
+
isRecurring: any;
|
|
955
|
+
recurrenceFrequency: any;
|
|
956
|
+
recurrenceEndDate: any;
|
|
871
957
|
}>;
|
|
872
958
|
updateAccountsReceivableTitle(id: number, data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
873
959
|
fornecedorId: string;
|
|
@@ -886,6 +972,9 @@ export declare class FinanceService {
|
|
|
886
972
|
tags: unknown[];
|
|
887
973
|
parcelas: any;
|
|
888
974
|
canal: string;
|
|
975
|
+
isRecurring: any;
|
|
976
|
+
recurrenceFrequency: any;
|
|
977
|
+
recurrenceEndDate: any;
|
|
889
978
|
} | {
|
|
890
979
|
clienteId: string;
|
|
891
980
|
cliente: any;
|
|
@@ -903,6 +992,9 @@ export declare class FinanceService {
|
|
|
903
992
|
tags: unknown[];
|
|
904
993
|
parcelas: any;
|
|
905
994
|
canal: string;
|
|
995
|
+
isRecurring: any;
|
|
996
|
+
recurrenceFrequency: any;
|
|
997
|
+
recurrenceEndDate: any;
|
|
906
998
|
}>;
|
|
907
999
|
approveAccountsReceivableTitle(id: number, locale: string, userId?: number): Promise<{
|
|
908
1000
|
fornecedorId: string;
|
|
@@ -921,6 +1013,9 @@ export declare class FinanceService {
|
|
|
921
1013
|
tags: unknown[];
|
|
922
1014
|
parcelas: any;
|
|
923
1015
|
canal: string;
|
|
1016
|
+
isRecurring: any;
|
|
1017
|
+
recurrenceFrequency: any;
|
|
1018
|
+
recurrenceEndDate: any;
|
|
924
1019
|
} | {
|
|
925
1020
|
clienteId: string;
|
|
926
1021
|
cliente: any;
|
|
@@ -938,6 +1033,9 @@ export declare class FinanceService {
|
|
|
938
1033
|
tags: unknown[];
|
|
939
1034
|
parcelas: any;
|
|
940
1035
|
canal: string;
|
|
1036
|
+
isRecurring: any;
|
|
1037
|
+
recurrenceFrequency: any;
|
|
1038
|
+
recurrenceEndDate: any;
|
|
941
1039
|
}>;
|
|
942
1040
|
cancelAccountsReceivableTitle(id: number, data: RejectTitleDto, locale: string, userId?: number): Promise<{
|
|
943
1041
|
fornecedorId: string;
|
|
@@ -956,6 +1054,9 @@ export declare class FinanceService {
|
|
|
956
1054
|
tags: unknown[];
|
|
957
1055
|
parcelas: any;
|
|
958
1056
|
canal: string;
|
|
1057
|
+
isRecurring: any;
|
|
1058
|
+
recurrenceFrequency: any;
|
|
1059
|
+
recurrenceEndDate: any;
|
|
959
1060
|
} | {
|
|
960
1061
|
clienteId: string;
|
|
961
1062
|
cliente: any;
|
|
@@ -973,6 +1074,9 @@ export declare class FinanceService {
|
|
|
973
1074
|
tags: unknown[];
|
|
974
1075
|
parcelas: any;
|
|
975
1076
|
canal: string;
|
|
1077
|
+
isRecurring: any;
|
|
1078
|
+
recurrenceFrequency: any;
|
|
1079
|
+
recurrenceEndDate: any;
|
|
976
1080
|
}>;
|
|
977
1081
|
settleAccountsReceivableInstallment(id: number, data: SettleInstallmentDto, locale: string, userId?: number): Promise<{
|
|
978
1082
|
settlementId: string;
|
|
@@ -993,6 +1097,9 @@ export declare class FinanceService {
|
|
|
993
1097
|
tags: unknown[];
|
|
994
1098
|
parcelas: any;
|
|
995
1099
|
canal: string;
|
|
1100
|
+
isRecurring: any;
|
|
1101
|
+
recurrenceFrequency: any;
|
|
1102
|
+
recurrenceEndDate: any;
|
|
996
1103
|
} | {
|
|
997
1104
|
settlementId: string;
|
|
998
1105
|
reconciliationId: string;
|
|
@@ -1012,6 +1119,9 @@ export declare class FinanceService {
|
|
|
1012
1119
|
tags: unknown[];
|
|
1013
1120
|
parcelas: any;
|
|
1014
1121
|
canal: string;
|
|
1122
|
+
isRecurring: any;
|
|
1123
|
+
recurrenceFrequency: any;
|
|
1124
|
+
recurrenceEndDate: any;
|
|
1015
1125
|
}>;
|
|
1016
1126
|
reverseAccountsReceivableSettlement(id: number, settlementId: number, data: ReverseSettlementDto, locale: string, userId?: number): Promise<{
|
|
1017
1127
|
fornecedorId: string;
|
|
@@ -1030,6 +1140,9 @@ export declare class FinanceService {
|
|
|
1030
1140
|
tags: unknown[];
|
|
1031
1141
|
parcelas: any;
|
|
1032
1142
|
canal: string;
|
|
1143
|
+
isRecurring: any;
|
|
1144
|
+
recurrenceFrequency: any;
|
|
1145
|
+
recurrenceEndDate: any;
|
|
1033
1146
|
} | {
|
|
1034
1147
|
clienteId: string;
|
|
1035
1148
|
cliente: any;
|
|
@@ -1047,6 +1160,9 @@ export declare class FinanceService {
|
|
|
1047
1160
|
tags: unknown[];
|
|
1048
1161
|
parcelas: any;
|
|
1049
1162
|
canal: string;
|
|
1163
|
+
isRecurring: any;
|
|
1164
|
+
recurrenceFrequency: any;
|
|
1165
|
+
recurrenceEndDate: any;
|
|
1050
1166
|
}>;
|
|
1051
1167
|
getTitleSettlementsHistory(titleId: number, locale: string): Promise<any[]>;
|
|
1052
1168
|
reverseSettlementById(settlementId: number, data: ReverseSettlementDto, locale: string, userId?: number): Promise<{
|
|
@@ -1066,6 +1182,9 @@ export declare class FinanceService {
|
|
|
1066
1182
|
tags: unknown[];
|
|
1067
1183
|
parcelas: any;
|
|
1068
1184
|
canal: string;
|
|
1185
|
+
isRecurring: any;
|
|
1186
|
+
recurrenceFrequency: any;
|
|
1187
|
+
recurrenceEndDate: any;
|
|
1069
1188
|
} | {
|
|
1070
1189
|
clienteId: string;
|
|
1071
1190
|
cliente: any;
|
|
@@ -1083,6 +1202,9 @@ export declare class FinanceService {
|
|
|
1083
1202
|
tags: unknown[];
|
|
1084
1203
|
parcelas: any;
|
|
1085
1204
|
canal: string;
|
|
1205
|
+
isRecurring: any;
|
|
1206
|
+
recurrenceFrequency: any;
|
|
1207
|
+
recurrenceEndDate: any;
|
|
1086
1208
|
}>;
|
|
1087
1209
|
unreconcileBankReconciliation(id: number, userId?: number): Promise<{
|
|
1088
1210
|
success: boolean;
|
|
@@ -1109,6 +1231,9 @@ export declare class FinanceService {
|
|
|
1109
1231
|
tags: unknown[];
|
|
1110
1232
|
parcelas: any;
|
|
1111
1233
|
canal: string;
|
|
1234
|
+
isRecurring: any;
|
|
1235
|
+
recurrenceFrequency: any;
|
|
1236
|
+
recurrenceEndDate: any;
|
|
1112
1237
|
} | {
|
|
1113
1238
|
clienteId: string;
|
|
1114
1239
|
cliente: any;
|
|
@@ -1126,6 +1251,9 @@ export declare class FinanceService {
|
|
|
1126
1251
|
tags: unknown[];
|
|
1127
1252
|
parcelas: any;
|
|
1128
1253
|
canal: string;
|
|
1254
|
+
isRecurring: any;
|
|
1255
|
+
recurrenceFrequency: any;
|
|
1256
|
+
recurrenceEndDate: any;
|
|
1129
1257
|
}>;
|
|
1130
1258
|
updateAccountsReceivableInstallmentTags(id: number, tagIds: number[], locale: string): Promise<{
|
|
1131
1259
|
fornecedorId: string;
|
|
@@ -1144,6 +1272,9 @@ export declare class FinanceService {
|
|
|
1144
1272
|
tags: unknown[];
|
|
1145
1273
|
parcelas: any;
|
|
1146
1274
|
canal: string;
|
|
1275
|
+
isRecurring: any;
|
|
1276
|
+
recurrenceFrequency: any;
|
|
1277
|
+
recurrenceEndDate: any;
|
|
1147
1278
|
} | {
|
|
1148
1279
|
clienteId: string;
|
|
1149
1280
|
cliente: any;
|
|
@@ -1161,6 +1292,9 @@ export declare class FinanceService {
|
|
|
1161
1292
|
tags: unknown[];
|
|
1162
1293
|
parcelas: any;
|
|
1163
1294
|
canal: string;
|
|
1295
|
+
isRecurring: any;
|
|
1296
|
+
recurrenceFrequency: any;
|
|
1297
|
+
recurrenceEndDate: any;
|
|
1164
1298
|
}>;
|
|
1165
1299
|
listBankAccounts(paginationParams?: PaginationDTO): Promise<{
|
|
1166
1300
|
data: {
|
|
@@ -1307,6 +1441,9 @@ export declare class FinanceService {
|
|
|
1307
1441
|
tags: unknown[];
|
|
1308
1442
|
parcelas: any;
|
|
1309
1443
|
canal: string;
|
|
1444
|
+
isRecurring: any;
|
|
1445
|
+
recurrenceFrequency: any;
|
|
1446
|
+
recurrenceEndDate: any;
|
|
1310
1447
|
} | {
|
|
1311
1448
|
settlementId: string;
|
|
1312
1449
|
reconciliationId: string;
|
|
@@ -1326,6 +1463,9 @@ export declare class FinanceService {
|
|
|
1326
1463
|
tags: unknown[];
|
|
1327
1464
|
parcelas: any;
|
|
1328
1465
|
canal: string;
|
|
1466
|
+
isRecurring: any;
|
|
1467
|
+
recurrenceFrequency: any;
|
|
1468
|
+
recurrenceEndDate: any;
|
|
1329
1469
|
}>;
|
|
1330
1470
|
getBankReconciliationSummary(bankAccountId: number): Promise<{
|
|
1331
1471
|
discrepancies: number;
|
|
@@ -1526,6 +1666,7 @@ export declare class FinanceService {
|
|
|
1526
1666
|
private getTitleById;
|
|
1527
1667
|
private createTitle;
|
|
1528
1668
|
private updateDraftTitle;
|
|
1669
|
+
private buildRecurrenceInstallments;
|
|
1529
1670
|
private normalizeAndValidateInstallments;
|
|
1530
1671
|
private approveTitle;
|
|
1531
1672
|
private rejectTitle;
|