@linkiez/jcm-library 4.0.0 → 4.1.0
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/enums/financial/e-charge-channel.d.ts +7 -0
- package/dist/enums/financial/e-charge-channel.d.ts.map +1 -0
- package/dist/enums/financial/e-charge-channel.js +8 -0
- package/dist/enums/financial/e-charge-channel.js.map +1 -0
- package/dist/enums/financial/e-financial-account-status.d.ts +8 -0
- package/dist/enums/financial/e-financial-account-status.d.ts.map +1 -0
- package/dist/enums/financial/e-financial-account-status.js +9 -0
- package/dist/enums/financial/e-financial-account-status.js.map +1 -0
- package/dist/enums/financial/e-financial-account-type.d.ts +6 -0
- package/dist/enums/financial/e-financial-account-type.d.ts.map +1 -0
- package/dist/enums/financial/e-financial-account-type.js +7 -0
- package/dist/enums/financial/e-financial-account-type.js.map +1 -0
- package/dist/enums/financial/e-financial-origin-type.d.ts +8 -0
- package/dist/enums/financial/e-financial-origin-type.d.ts.map +1 -0
- package/dist/enums/financial/e-financial-origin-type.js +9 -0
- package/dist/enums/financial/e-financial-origin-type.js.map +1 -0
- package/dist/enums/financial/e-recurrence-frequency.d.ts +7 -0
- package/dist/enums/financial/e-recurrence-frequency.d.ts.map +1 -0
- package/dist/enums/financial/e-recurrence-frequency.js +8 -0
- package/dist/enums/financial/e-recurrence-frequency.js.map +1 -0
- package/dist/enums/financial/e-settlement-type.d.ts +6 -0
- package/dist/enums/financial/e-settlement-type.d.ts.map +1 -0
- package/dist/enums/financial/e-settlement-type.js +7 -0
- package/dist/enums/financial/e-settlement-type.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/bank/ibank-account-endpoints.d.ts +25 -30
- package/dist/interfaces/bank/ibank-account-endpoints.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-account.d.ts +15 -10
- package/dist/interfaces/bank/ibank-account.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-import-batch.d.ts +8 -8
- package/dist/interfaces/bank/ibank-import-batch.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-import-endpoints.d.ts +30 -30
- package/dist/interfaces/bank/ibank-import-endpoints.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-reconciliation-endpoints.d.ts +79 -36
- package/dist/interfaces/bank/ibank-reconciliation-endpoints.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-reconciliation.d.ts +7 -7
- package/dist/interfaces/bank/ibank-reconciliation.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-report-endpoints.d.ts +27 -27
- package/dist/interfaces/bank/ibank-report-endpoints.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-report.d.ts +10 -10
- package/dist/interfaces/bank/ibank-report.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-transaction-endpoints.d.ts +27 -28
- package/dist/interfaces/bank/ibank-transaction-endpoints.d.ts.map +1 -1
- package/dist/interfaces/bank/ibank-transaction.d.ts +10 -10
- package/dist/interfaces/bank/ibank-transaction.d.ts.map +1 -1
- package/dist/interfaces/common/ifile-association.d.ts +1 -1
- package/dist/interfaces/common/ifile-association.d.ts.map +1 -1
- package/dist/interfaces/financial/icreate-financial-account-request.d.ts +21 -0
- package/dist/interfaces/financial/icreate-financial-account-request.d.ts.map +1 -0
- package/dist/interfaces/financial/icreate-financial-account-request.js +2 -0
- package/dist/interfaces/financial/icreate-financial-account-request.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-account.d.ts +34 -0
- package/dist/interfaces/financial/ifinancial-account.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-account.js +2 -0
- package/dist/interfaces/financial/ifinancial-account.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-aging-summary.d.ts +23 -0
- package/dist/interfaces/financial/ifinancial-aging-summary.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-aging-summary.js +2 -0
- package/dist/interfaces/financial/ifinancial-aging-summary.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-conciliation.d.ts +16 -0
- package/dist/interfaces/financial/ifinancial-conciliation.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-conciliation.js +2 -0
- package/dist/interfaces/financial/ifinancial-conciliation.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-import-endpoints.d.ts +76 -0
- package/dist/interfaces/financial/ifinancial-import-endpoints.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-import-endpoints.js +2 -0
- package/dist/interfaces/financial/ifinancial-import-endpoints.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-installment.d.ts +15 -0
- package/dist/interfaces/financial/ifinancial-installment.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-installment.js +2 -0
- package/dist/interfaces/financial/ifinancial-installment.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-recurrence-rule.d.ts +10 -0
- package/dist/interfaces/financial/ifinancial-recurrence-rule.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-recurrence-rule.js +2 -0
- package/dist/interfaces/financial/ifinancial-recurrence-rule.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-recurrence.d.ts +10 -0
- package/dist/interfaces/financial/ifinancial-recurrence.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-recurrence.js +2 -0
- package/dist/interfaces/financial/ifinancial-recurrence.js.map +1 -0
- package/dist/interfaces/financial/ifinancial-settlement.d.ts +23 -0
- package/dist/interfaces/financial/ifinancial-settlement.d.ts.map +1 -0
- package/dist/interfaces/financial/ifinancial-settlement.js +2 -0
- package/dist/interfaces/financial/ifinancial-settlement.js.map +1 -0
- package/dist/interfaces/financial/ifind-all-financial-account-params.d.ts +14 -0
- package/dist/interfaces/financial/ifind-all-financial-account-params.d.ts.map +1 -0
- package/dist/interfaces/financial/ifind-all-financial-account-params.js +2 -0
- package/dist/interfaces/financial/ifind-all-financial-account-params.js.map +1 -0
- package/dist/interfaces/financial/ireconcile-settlement-request.d.ts +5 -0
- package/dist/interfaces/financial/ireconcile-settlement-request.d.ts.map +1 -0
- package/dist/interfaces/financial/ireconcile-settlement-request.js +2 -0
- package/dist/interfaces/financial/ireconcile-settlement-request.js.map +1 -0
- package/dist/interfaces/financial/ireverse-settlement-request.d.ts +7 -0
- package/dist/interfaces/financial/ireverse-settlement-request.d.ts.map +1 -0
- package/dist/interfaces/financial/ireverse-settlement-request.js +2 -0
- package/dist/interfaces/financial/ireverse-settlement-request.js.map +1 -0
- package/dist/interfaces/financial/ischedule-financial-recurrence-request.d.ts +6 -0
- package/dist/interfaces/financial/ischedule-financial-recurrence-request.d.ts.map +1 -0
- package/dist/interfaces/financial/ischedule-financial-recurrence-request.js +2 -0
- package/dist/interfaces/financial/ischedule-financial-recurrence-request.js.map +1 -0
- package/dist/interfaces/financial/isettle-account-request.d.ts +14 -0
- package/dist/interfaces/financial/isettle-account-request.d.ts.map +1 -0
- package/dist/interfaces/financial/isettle-account-request.js +2 -0
- package/dist/interfaces/financial/isettle-account-request.js.map +1 -0
- package/dist/interfaces/financial/iupdate-financial-account-request.d.ts +12 -0
- package/dist/interfaces/financial/iupdate-financial-account-request.d.ts.map +1 -0
- package/dist/interfaces/financial/iupdate-financial-account-request.js +2 -0
- package/dist/interfaces/financial/iupdate-financial-account-request.js.map +1 -0
- package/dist/interfaces/usuario/iusuario.d.ts +13 -0
- package/dist/interfaces/usuario/iusuario.d.ts.map +1 -1
- package/dist/models/bank/bank-import.d.ts +48 -24
- package/dist/models/bank/bank-import.d.ts.map +1 -1
- package/dist/models/bank/bank-import.js +49 -44
- package/dist/models/bank/bank-import.js.map +1 -1
- package/dist/models/bank/bank-reconciliation.d.ts +19 -19
- package/dist/models/bank/bank-reconciliation.d.ts.map +1 -1
- package/dist/models/bank/bank-reconciliation.js +57 -46
- package/dist/models/bank/bank-reconciliation.js.map +1 -1
- package/dist/models/bank/bank-report.d.ts +33 -33
- package/dist/models/bank/bank-report.d.ts.map +1 -1
- package/dist/models/bank/bank-report.js +80 -68
- package/dist/models/bank/bank-report.js.map +1 -1
- package/dist/models/bank/bank-transaction.d.ts +14 -31
- package/dist/models/bank/bank-transaction.d.ts.map +1 -1
- package/dist/models/bank/bank-transaction.js +37 -50
- package/dist/models/bank/bank-transaction.js.map +1 -1
- package/dist/models/bank/bank.d.ts +19 -19
- package/dist/models/bank/bank.d.ts.map +1 -1
- package/dist/models/bank/bank.js +35 -30
- package/dist/models/bank/bank.js.map +1 -1
- package/dist/models/financial/financial-account.d.ts +113 -0
- package/dist/models/financial/financial-account.d.ts.map +1 -0
- package/dist/models/financial/financial-account.js +91 -0
- package/dist/models/financial/financial-account.js.map +1 -0
- package/dist/models/financial/financial-import.d.ts +64 -0
- package/dist/models/financial/financial-import.d.ts.map +1 -0
- package/dist/models/financial/financial-import.js +133 -0
- package/dist/models/financial/financial-import.js.map +1 -0
- package/dist/types/bank/t-bank-reconciliation-entity-type.d.ts +1 -1
- package/dist/types/bank/t-bank-reconciliation-entity-type.d.ts.map +1 -1
- package/dist/zod-validators/login/zlogin-response.d.ts +49 -0
- package/dist/zod-validators/login/zlogin-response.d.ts.map +1 -1
- package/dist/zod-validators/usuario/zusuario.d.ts +98 -0
- package/dist/zod-validators/usuario/zusuario.d.ts.map +1 -1
- package/dist/zod-validators/usuario/zusuario.js +56 -0
- package/dist/zod-validators/usuario/zusuario.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,13 +7,13 @@ export type TBankReconciliationAction = "APPLY_AUTO" | "APPLY_MANUAL" | "UNRECON
|
|
|
7
7
|
export interface IBankReconciliationCandidate {
|
|
8
8
|
id: number | string;
|
|
9
9
|
amount: number;
|
|
10
|
-
|
|
10
|
+
movement_date: string;
|
|
11
11
|
document?: string | null;
|
|
12
12
|
description?: string | null;
|
|
13
13
|
}
|
|
14
14
|
export interface IBankReconciliationConfig {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
date_window_days?: number;
|
|
16
|
+
amount_tolerance?: number;
|
|
17
17
|
}
|
|
18
18
|
export interface IBankReconciliationAutoMatchRequest {
|
|
19
19
|
candidates: IBankReconciliationCandidate[];
|
|
@@ -21,54 +21,54 @@ export interface IBankReconciliationAutoMatchRequest {
|
|
|
21
21
|
}
|
|
22
22
|
export interface IBankReconciliationAutoMatchResponse {
|
|
23
23
|
data: {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
transaction_id: number;
|
|
25
|
+
best_match: TBankReconciliationSuggestion | null;
|
|
26
26
|
candidates: TBankReconciliationSuggestion[];
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export interface IBankReconciliationAutoApplyRequest extends IBankReconciliationAutoMatchRequest {
|
|
30
30
|
note?: string;
|
|
31
|
-
|
|
31
|
+
matched_entity_type?: TBankReconciliationEntityType;
|
|
32
32
|
}
|
|
33
33
|
export interface IBankReconciliationAutoApplyResponse {
|
|
34
34
|
data: {
|
|
35
|
-
|
|
35
|
+
transaction_id: number;
|
|
36
36
|
applied: boolean;
|
|
37
|
-
|
|
37
|
+
best_match: TBankReconciliationSuggestion | null;
|
|
38
38
|
candidates: TBankReconciliationSuggestion[];
|
|
39
39
|
reason?: string;
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export interface IBankReconciliationManualRequest {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
matched_entity_type: TBankReconciliationEntityType;
|
|
44
|
+
matched_entity_id: number | string;
|
|
45
45
|
note?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface IBankReconciliationTransactionResponse {
|
|
48
48
|
data: {
|
|
49
49
|
id: number;
|
|
50
50
|
status: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
reconciliation_type: TBankReconciliationType | null;
|
|
52
|
+
reconciliation_entity_type: TBankReconciliationEntityType | null;
|
|
53
|
+
reconciliation_entity_id: number | null;
|
|
54
|
+
reconciled_by: number | null;
|
|
55
|
+
reconciled_at: string | null;
|
|
56
|
+
reconciliation_note: string | null;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
export interface IBankReconciliationHistoryFilters {
|
|
60
60
|
page?: number;
|
|
61
|
-
|
|
61
|
+
page_count?: number;
|
|
62
62
|
action?: TBankReconciliationAction;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
operated_by?: number;
|
|
64
|
+
operated_start_date?: string;
|
|
65
|
+
operated_end_date?: string;
|
|
66
66
|
}
|
|
67
67
|
export interface IBankReconciliationByEntityFilters extends IBankReconciliationHistoryFilters {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
reconciliation_entity_type: TBankReconciliationEntityType;
|
|
69
|
+
reconciliation_entity_id: number;
|
|
70
|
+
reconciled_start_date?: string;
|
|
71
|
+
reconciled_end_date?: string;
|
|
72
72
|
}
|
|
73
73
|
export type IBankReconciliationByEntityRow = IBankTransactionDto;
|
|
74
74
|
export interface IBankReconciliationByEntityResponse {
|
|
@@ -76,25 +76,68 @@ export interface IBankReconciliationByEntityResponse {
|
|
|
76
76
|
}
|
|
77
77
|
export interface IBankReconciliationHistoryEvent {
|
|
78
78
|
id: number;
|
|
79
|
-
|
|
79
|
+
bank_transaction_id: number;
|
|
80
80
|
action: TBankReconciliationAction;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
previous_status: string | null;
|
|
82
|
+
new_status: string | null;
|
|
83
|
+
previous_reconciliation_type: TBankReconciliationType | null;
|
|
84
|
+
new_reconciliation_type: TBankReconciliationType | null;
|
|
85
|
+
previous_entity_type: TBankReconciliationEntityType | null;
|
|
86
|
+
new_entity_type: TBankReconciliationEntityType | null;
|
|
87
|
+
previous_entity_id: number | null;
|
|
88
|
+
new_entity_id: number | null;
|
|
89
|
+
operated_by: number | null;
|
|
90
|
+
operated_at: string | null;
|
|
91
91
|
note: string | null;
|
|
92
92
|
}
|
|
93
93
|
export interface IBankReconciliationHistoryResponse {
|
|
94
94
|
data: {
|
|
95
95
|
rows: IBankReconciliationHistoryEvent[];
|
|
96
|
-
|
|
96
|
+
applied_filters?: Partial<IBankReconciliationHistoryFilters>;
|
|
97
97
|
pagination: TBankPagination;
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
+
export interface IBankTransactionFinancialLinkRow {
|
|
101
|
+
conciliation_id: number | null;
|
|
102
|
+
account_id: number;
|
|
103
|
+
settlement_id: number | null;
|
|
104
|
+
account_type: TBankReconciliationEntityType;
|
|
105
|
+
person_id: number | null;
|
|
106
|
+
person_name: string | null;
|
|
107
|
+
title: string;
|
|
108
|
+
issue_date: string;
|
|
109
|
+
due_date: string;
|
|
110
|
+
original_amount: number;
|
|
111
|
+
paid_amount: number;
|
|
112
|
+
balance: number;
|
|
113
|
+
account_status: string;
|
|
114
|
+
origin_type: string | null;
|
|
115
|
+
origin_id: number | null;
|
|
116
|
+
account_bank_account_id: number | null;
|
|
117
|
+
account_note: string | null;
|
|
118
|
+
settlement_type: string | null;
|
|
119
|
+
settlement_amount: number | null;
|
|
120
|
+
settlement_discount: number | null;
|
|
121
|
+
settlement_fine: number | null;
|
|
122
|
+
settlement_interest: number | null;
|
|
123
|
+
settlement_effective_amount: number;
|
|
124
|
+
settlement_occurred_at: string | null;
|
|
125
|
+
settlement_bank_account_id: number | null;
|
|
126
|
+
settlement_note: string | null;
|
|
127
|
+
conciliation_status: string | null;
|
|
128
|
+
conciliation_note: string | null;
|
|
129
|
+
conciliated_at: string | null;
|
|
130
|
+
is_fallback: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface IBankTransactionFinancialLinksResponse {
|
|
133
|
+
data: {
|
|
134
|
+
transaction_id: number;
|
|
135
|
+
transaction_amount: number;
|
|
136
|
+
transaction_comparison_amount: number;
|
|
137
|
+
conciliated_total_amount: number;
|
|
138
|
+
difference_amount: number;
|
|
139
|
+
matches_transaction_total: boolean;
|
|
140
|
+
rows: IBankTransactionFinancialLinkRow[];
|
|
141
|
+
};
|
|
142
|
+
}
|
|
100
143
|
//# sourceMappingURL=ibank-reconciliation-endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-reconciliation-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-reconciliation-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ibank-reconciliation-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-reconciliation-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,oBAAoB,EACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uDAAuD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AACrG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,MAAM,yBAAyB,GACjC,YAAY,GACZ,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC;AAED,MAAM,WAAW,oCAAoC;I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AAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,6BAA6B,EAAE,MAAM,CAAC;QACtC,wBAAwB,EAAE,MAAM,CAAC;QACjC,iBAAiB,EAAE,MAAM,CAAC;QAC1B,yBAAyB,EAAE,OAAO,CAAC;QACnC,IAAI,EAAE,gCAAgC,EAAE,CAAC;KAC1C,CAAC;CACH"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EBankReconciliationStatus } from "../../enums/bank/e-bank-reconciliation-status.js";
|
|
2
2
|
export interface IBankReconciliation {
|
|
3
3
|
id?: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
company_id: number;
|
|
5
|
+
bank_transaction_id: number;
|
|
6
|
+
system_entry_id: number;
|
|
7
7
|
status: EBankReconciliationStatus;
|
|
8
8
|
score: number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
source: "auto" | "manual";
|
|
10
|
+
reconciled_by?: number | null;
|
|
11
|
+
reconciled_at?: string | Date | null;
|
|
12
|
+
note?: string | null;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=ibank-reconciliation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-reconciliation.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-reconciliation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"ibank-reconciliation.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-reconciliation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,yBAAyB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
|
@@ -2,41 +2,41 @@ import type { TBankPagination } from "../../types/bank/t-bank-pagination.js";
|
|
|
2
2
|
import type { TBankReportDateGroup } from "../../types/bank/t-bank-report-date-group.js";
|
|
3
3
|
import type { IBankTransactionDto } from "./ibank-transaction-endpoints.js";
|
|
4
4
|
export interface IBankReportBaseFilters {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
account_id: number;
|
|
6
|
+
start_date: string;
|
|
7
|
+
end_date: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IBankPaginatedReportFilters extends IBankReportBaseFilters {
|
|
10
10
|
page?: number;
|
|
11
|
-
|
|
11
|
+
page_count?: number;
|
|
12
12
|
}
|
|
13
13
|
export type IBankStatementReportFilters = IBankPaginatedReportFilters;
|
|
14
14
|
export interface IBankCashFlowReportFilters extends IBankReportBaseFilters {
|
|
15
|
-
|
|
15
|
+
group_by?: TBankReportDateGroup;
|
|
16
16
|
}
|
|
17
17
|
export interface IBankReportAppliedFilters {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
account_id: string;
|
|
19
|
+
start_date: string;
|
|
20
|
+
end_date: string;
|
|
21
21
|
}
|
|
22
22
|
export interface IBankCashFlowReportAppliedFilters extends IBankReportAppliedFilters {
|
|
23
|
-
|
|
23
|
+
group_by: TBankReportDateGroup;
|
|
24
24
|
}
|
|
25
25
|
export interface IBankReportResponse<TData> {
|
|
26
26
|
data: TData;
|
|
27
27
|
}
|
|
28
|
-
export type IBankStatementReportTransaction = Pick<IBankTransactionDto, "id" | "
|
|
28
|
+
export type IBankStatementReportTransaction = Pick<IBankTransactionDto, "id" | "account_id" | "movement_date" | "amount" | "transaction_type" | "description" | "document" | "balance" | "status" | "reconciliation_type" | "reconciliation_entity_id" | "reconciled_at" | "createdAt">;
|
|
29
29
|
export interface IBankStatementReportSummary {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
initial_balance: number;
|
|
31
|
+
total_debits: number;
|
|
32
|
+
total_credits: number;
|
|
33
|
+
final_balance: number;
|
|
34
|
+
transaction_count: number;
|
|
35
35
|
}
|
|
36
36
|
export interface IBankStatementReportData {
|
|
37
37
|
transactions: IBankStatementReportTransaction[];
|
|
38
38
|
summary: IBankStatementReportSummary;
|
|
39
|
-
|
|
39
|
+
applied_filters: IBankReportAppliedFilters;
|
|
40
40
|
pagination: TBankPagination;
|
|
41
41
|
}
|
|
42
42
|
export type IBankStatementReportResponse = IBankReportResponse<IBankStatementReportData>;
|
|
@@ -44,12 +44,12 @@ export interface IBankCashFlowReportRow {
|
|
|
44
44
|
date: string;
|
|
45
45
|
inflows: number;
|
|
46
46
|
outflows: number;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
net_flow: number;
|
|
48
|
+
transaction_count: number;
|
|
49
49
|
}
|
|
50
50
|
export interface IBankCashFlowReportData {
|
|
51
51
|
rows: IBankCashFlowReportRow[];
|
|
52
|
-
|
|
52
|
+
applied_filters: IBankCashFlowReportAppliedFilters;
|
|
53
53
|
}
|
|
54
54
|
export type IBankCashFlowReportResponse = IBankReportResponse<IBankCashFlowReportData>;
|
|
55
55
|
export interface IBankReconciliationSummaryStatusRow {
|
|
@@ -59,17 +59,17 @@ export interface IBankReconciliationSummaryStatusRow {
|
|
|
59
59
|
percentage: string;
|
|
60
60
|
}
|
|
61
61
|
export interface IBankReconciliationSummaryReportTotals {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
total_transactions: number;
|
|
63
|
+
reconciled_count: number;
|
|
64
|
+
pending_count: number;
|
|
65
|
+
reconciliation_percentage: number;
|
|
66
|
+
total_amount: number;
|
|
67
|
+
reconciled_amount: number;
|
|
68
68
|
}
|
|
69
69
|
export interface IBankReconciliationSummaryReportData {
|
|
70
70
|
summary: IBankReconciliationSummaryReportTotals;
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
by_status: IBankReconciliationSummaryStatusRow[];
|
|
72
|
+
applied_filters: IBankReportAppliedFilters;
|
|
73
73
|
}
|
|
74
74
|
export type IBankReconciliationSummaryReportResponse = IBankReportResponse<IBankReconciliationSummaryReportData>;
|
|
75
75
|
//# sourceMappingURL=ibank-report-endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-report-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-report-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,
|
|
1
|
+
{"version":3,"file":"ibank-report-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-report-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,C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AAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,EAAE,CAAC;IAC/B,eAAe,EAAE,iCAAiC,CAAC;CACpD;AAED,MAAM,MAAM,2BAA2B,GACrC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC;AAE/C,MAAM,WAAW,mCAAmC;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sCAAsC;IACrD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB,EAAE,MAAM,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,EAAE,sCAAsC,CAAC;IAChD,SAAS,EAAE,mCAAmC,EAAE,CAAC;IACjD,eAAe,EAAE,yBAAyB,CAAC;CAC5C;AAED,MAAM,MAAM,wCAAwC,GAClD,mBAAmB,CAAC,oCAAoC,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface IBankStatementRow {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
bank_transaction_id: number;
|
|
3
|
+
movement_date: string | Date;
|
|
4
|
+
description: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
transaction_type: string;
|
|
7
|
+
balance_after?: number | null;
|
|
8
8
|
}
|
|
9
9
|
export interface IBankCashFlowRow {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
reference_date: string | Date;
|
|
11
|
+
inflows: number;
|
|
12
|
+
outflows: number;
|
|
13
|
+
balance: number;
|
|
14
14
|
}
|
|
15
15
|
export interface IBankReconciliationSummary {
|
|
16
16
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-report.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-report.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,
|
|
1
|
+
{"version":3,"file":"ibank-report.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-report.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -2,55 +2,54 @@ import { EBankTransactionType } from "../../enums/bank/e-bank-transaction-type.j
|
|
|
2
2
|
import { TBankPaginatedResult } from "../../types/bank/t-bank-pagination.js";
|
|
3
3
|
export interface IBankTransactionDto {
|
|
4
4
|
id: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import_batch_id: number;
|
|
6
|
+
account_id: number;
|
|
7
|
+
movement_date: string;
|
|
8
8
|
amount: number;
|
|
9
|
-
|
|
9
|
+
transaction_type: EBankTransactionType;
|
|
10
10
|
description: string | null;
|
|
11
11
|
document: string | null;
|
|
12
12
|
balance: number | null;
|
|
13
13
|
status: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
reconciliation_type: string | null;
|
|
15
|
+
reconciliation_entity_type: string | null;
|
|
16
|
+
reconciliation_entity_id: number | null;
|
|
17
|
+
reconciled_by: number | null;
|
|
18
|
+
reconciled_at: string | null;
|
|
19
|
+
reconciliation_note: string | null;
|
|
20
20
|
createdAt: string;
|
|
21
21
|
account?: {
|
|
22
22
|
id?: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ativo?: boolean;
|
|
23
|
+
company_id?: number;
|
|
24
|
+
name?: string;
|
|
25
|
+
bank_name?: string | null;
|
|
26
|
+
branch?: string | null;
|
|
27
|
+
account_number?: string | null;
|
|
28
|
+
account_type?: string | null;
|
|
29
|
+
initial_balance?: number;
|
|
30
|
+
is_active?: boolean;
|
|
32
31
|
} | null;
|
|
33
32
|
bank?: {
|
|
34
33
|
id: number;
|
|
35
34
|
compe: string | null;
|
|
36
35
|
ispb: string;
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
name: string;
|
|
37
|
+
short_name: string | null;
|
|
39
38
|
} | null;
|
|
40
39
|
}
|
|
41
40
|
export interface IBankTransactionsFilters {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
account_id?: number;
|
|
42
|
+
import_batch_id?: number;
|
|
43
|
+
transaction_type?: EBankTransactionType;
|
|
45
44
|
status?: string;
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
start_date?: string;
|
|
46
|
+
end_date?: string;
|
|
48
47
|
page?: number;
|
|
49
|
-
|
|
48
|
+
page_count?: number;
|
|
50
49
|
}
|
|
51
50
|
export interface IBankTransactionsResponse {
|
|
52
51
|
data: TBankPaginatedResult<IBankTransactionDto> & {
|
|
53
|
-
|
|
52
|
+
initial_balance?: number;
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
//# sourceMappingURL=ibank-transaction-endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-transaction-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-transaction-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"ibank-transaction-endpoints.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-transaction-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,0BAA0B,EAAE,MAAM,G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AAE,oBAAoB,CAAC,mBAAmB,CAAC,GAAG;QAChD,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EBankTransactionType } from "../../enums/bank/e-bank-transaction-type.js";
|
|
2
2
|
export interface IBankTransaction {
|
|
3
3
|
id?: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
company_id: number;
|
|
5
|
+
bank_account_id: number;
|
|
6
|
+
import_batch_id?: number | null;
|
|
7
|
+
movement_date: string | Date;
|
|
8
|
+
amount: number;
|
|
9
|
+
transaction_type: EBankTransactionType;
|
|
10
|
+
description: string;
|
|
11
|
+
document?: string | null;
|
|
12
|
+
balance_after?: number | null;
|
|
13
|
+
reconciliation_status: string;
|
|
14
14
|
createdAt?: string | Date | null;
|
|
15
15
|
updatedAt?: string | Date | null;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibank-transaction.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"ibank-transaction.d.ts","sourceRoot":"","sources":["../../../src/interfaces/bank/ibank-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TFileAssociationType = "orcamento_item" | "produto" | "ordem_producao" | "pedido_compra" | "pessoa" | "rir";
|
|
1
|
+
export type TFileAssociationType = "orcamento_item" | "produto" | "ordem_producao" | "financial_account" | "pedido_compra" | "pessoa" | "rir";
|
|
2
2
|
export interface IFileSyncContext {
|
|
3
3
|
associationType: TFileAssociationType;
|
|
4
4
|
associationId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifile-association.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ifile-association.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,GAChB,SAAS,GACT,gBAAgB,GAChB,eAAe,GACf,QAAQ,GACR,KAAK,CAAC;AAEV,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,oBAAoB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB,CAAC,YAAY,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IACzE,QAAQ,EAAE,CACR,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE;QAAE,WAAW,EAAE,YAAY,CAAA;KAAE,KACnC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ifile-association.d.ts","sourceRoot":"","sources":["../../../src/interfaces/common/ifile-association.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,GAChB,SAAS,GACT,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,QAAQ,GACR,KAAK,CAAC;AAEV,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,oBAAoB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB,CAAC,YAAY,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IACzE,QAAQ,EAAE,CACR,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE;QAAE,WAAW,EAAE,YAAY,CAAA;KAAE,KACnC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EFinancialAccountType } from "../../enums/financial/e-financial-account-type.js";
|
|
2
|
+
import { EFinancialOriginType } from "../../enums/financial/e-financial-origin-type.js";
|
|
3
|
+
import { IArquivo } from "../arquivo/iarquivo.js";
|
|
4
|
+
import { TDateLike } from "../../utils/date.js";
|
|
5
|
+
export interface ICreateFinancialAccountRequest {
|
|
6
|
+
account_type: EFinancialAccountType;
|
|
7
|
+
person_id?: number | null;
|
|
8
|
+
title: string;
|
|
9
|
+
category?: string | null;
|
|
10
|
+
issue_date: TDateLike;
|
|
11
|
+
due_date: TDateLike;
|
|
12
|
+
original_amount: number;
|
|
13
|
+
origin_type: EFinancialOriginType;
|
|
14
|
+
origin_id?: number | null;
|
|
15
|
+
bank_account_id?: number | null;
|
|
16
|
+
source_bank_account_id?: number | null;
|
|
17
|
+
destination_bank_account_id?: number | null;
|
|
18
|
+
note?: string | null;
|
|
19
|
+
files?: IArquivo[] | null;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=icreate-financial-account-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icreate-financial-account-request.d.ts","sourceRoot":"","sources":["../../../src/interfaces/financial/icreate-financial-account-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,qBAAqB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icreate-financial-account-request.js","sourceRoot":"","sources":["../../../src/interfaces/financial/icreate-financial-account-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EFinancialAccountStatus } from "../../enums/financial/e-financial-account-status.js";
|
|
2
|
+
import { EFinancialAccountType } from "../../enums/financial/e-financial-account-type.js";
|
|
3
|
+
import { EFinancialOriginType } from "../../enums/financial/e-financial-origin-type.js";
|
|
4
|
+
import { TDateLike, TNullableDateLike } from "../../utils/date.js";
|
|
5
|
+
import { TNullable } from "../../utils/nullable.js";
|
|
6
|
+
import { IArquivo } from "../arquivo/iarquivo.js";
|
|
7
|
+
import { IFinancialInstallment } from "./ifinancial-installment.js";
|
|
8
|
+
import { IFinancialSettlement } from "./ifinancial-settlement.js";
|
|
9
|
+
export interface IFinancialAccount {
|
|
10
|
+
id?: number;
|
|
11
|
+
company_id: number;
|
|
12
|
+
account_type: EFinancialAccountType;
|
|
13
|
+
person_id?: number | null;
|
|
14
|
+
title: string;
|
|
15
|
+
category?: string | null;
|
|
16
|
+
issue_date: TDateLike;
|
|
17
|
+
due_date: TDateLike;
|
|
18
|
+
original_amount: number;
|
|
19
|
+
paid_amount: number;
|
|
20
|
+
saldo: number;
|
|
21
|
+
status: EFinancialAccountStatus;
|
|
22
|
+
origin_type: EFinancialOriginType;
|
|
23
|
+
origin_id?: number | null;
|
|
24
|
+
bank_account_id?: number | null;
|
|
25
|
+
note?: string | null;
|
|
26
|
+
files?: TNullable<IArquivo[]>;
|
|
27
|
+
settlements?: TNullable<IFinancialSettlement[]>;
|
|
28
|
+
installments?: TNullable<IFinancialInstallment[]>;
|
|
29
|
+
is_recurring: boolean;
|
|
30
|
+
recurrence_id?: number | null;
|
|
31
|
+
createdAt?: TNullableDateLike;
|
|
32
|
+
updatedAt?: TNullableDateLike;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=ifinancial-account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifinancial-account.d.ts","sourceRoot":"","sources":["../../../src/interfaces/financial/ifinancial-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,qBAAqB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,uBAAuB,CAAC;IAChC,WAAW,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,SAAS,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAClD,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifinancial-account.js","sourceRoot":"","sources":["../../../src/interfaces/financial/ifinancial-account.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EFinancialAccountType } from "../../enums/financial/e-financial-account-type.js";
|
|
2
|
+
import { EFinancialAccountStatus } from "../../enums/financial/e-financial-account-status.js";
|
|
3
|
+
export type TFinancialConciliationFilter = "CONCILIATED" | "UNCONCILIATED";
|
|
4
|
+
export interface IFinancialAgingSummary {
|
|
5
|
+
total_open_count: number;
|
|
6
|
+
total_open_balance: number;
|
|
7
|
+
payable_open_balance: number;
|
|
8
|
+
receivable_open_balance: number;
|
|
9
|
+
overdue_count: number;
|
|
10
|
+
overdue_balance: number;
|
|
11
|
+
due_today_count: number;
|
|
12
|
+
due_today_balance: number;
|
|
13
|
+
}
|
|
14
|
+
export interface IFindFinancialAgingSummaryParams {
|
|
15
|
+
account_type?: EFinancialAccountType;
|
|
16
|
+
status?: EFinancialAccountStatus;
|
|
17
|
+
person_id?: number;
|
|
18
|
+
conciliation_status?: TFinancialConciliationFilter;
|
|
19
|
+
only_overdue?: boolean;
|
|
20
|
+
due_date_start?: string;
|
|
21
|
+
due_date_end?: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ifinancial-aging-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifinancial-aging-summary.d.ts","sourceRoot":"","sources":["../../../src/interfaces/financial/ifinancial-aging-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAE9F,MAAM,MAAM,4BAA4B,GAAG,aAAa,GAAG,eAAe,CAAC;AAE3E,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,gCAAgC;IAC/C,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,4BAA4B,CAAC;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|