@linkiez/jcm-library 7.1.0 → 8.0.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/models/arquivo/arquivo.d.ts +1 -1
- package/dist/models/arquivo/arquivo.js +1 -1
- package/dist/models/bank/bank-import.d.ts +10 -10
- package/dist/models/bank/bank-import.js +12 -12
- package/dist/models/bank/bank-reconciliation.d.ts +12 -12
- package/dist/models/bank/bank-reconciliation.js +13 -13
- package/dist/models/bank/bank-report.d.ts +26 -26
- package/dist/models/bank/bank-report.js +33 -33
- package/dist/models/bank/bank-transaction.d.ts +10 -10
- package/dist/models/bank/bank-transaction.js +9 -9
- package/dist/models/bank/bank.d.ts +3 -3
- package/dist/models/bank/bank.js +4 -4
- package/dist/models/contato/contato.d.ts +2 -2
- package/dist/models/contato/contato.js +2 -2
- package/dist/models/empresa/empresa.d.ts +6 -6
- package/dist/models/empresa/empresa.js +6 -6
- package/dist/models/financial/boleto-remittance.d.ts +9 -9
- package/dist/models/financial/boleto-remittance.js +9 -9
- package/dist/models/financial/boleto-return.d.ts +7 -7
- package/dist/models/financial/boleto-return.js +7 -7
- package/dist/models/financial/financial-account.d.ts +5 -5
- package/dist/models/financial/financial-account.js +5 -5
- package/dist/models/financial/financial-import.d.ts +14 -14
- package/dist/models/financial/financial-import.js +16 -16
- package/dist/models/form-site/form-site.d.ts +1 -1
- package/dist/models/form-site/form-site.js +1 -1
- package/dist/models/fornecedor/fornecedor.d.ts +3 -3
- package/dist/models/fornecedor/fornecedor.js +3 -3
- package/dist/models/lista-generica/lista-generica.d.ts +7 -7
- package/dist/models/lista-generica/lista-generica.js +11 -11
- package/dist/models/login/login.d.ts +1 -1
- package/dist/models/login/login.js +1 -1
- package/dist/models/marketing-campaign/campaign-event.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-event.js +1 -1
- package/dist/models/marketing-campaign/campaign-recipient.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-recipient.js +1 -1
- package/dist/models/marketing-campaign/campaign-recurrence-rule.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-recurrence-rule.js +1 -1
- package/dist/models/marketing-campaign/campaign.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign.js +1 -1
- package/dist/models/marketing-campaign/whatsapp-opt-in.d.ts +1 -1
- package/dist/models/marketing-campaign/whatsapp-opt-in.js +1 -1
- package/dist/models/operador/operador.d.ts +3 -3
- package/dist/models/operador/operador.js +3 -3
- package/dist/models/orcamento/orcamento.d.ts +9 -9
- package/dist/models/orcamento/orcamento.js +9 -9
- package/dist/models/ordem-producao/ordem-producao.d.ts +9 -9
- package/dist/models/ordem-producao/ordem-producao.js +9 -9
- package/dist/models/pedido-compra/pedido-compra.d.ts +6 -6
- package/dist/models/pedido-compra/pedido-compra.js +6 -6
- package/dist/models/pessoa/pessoa.d.ts +13 -13
- package/dist/models/pessoa/pessoa.js +13 -13
- package/dist/models/produto/produto.d.ts +2 -2
- package/dist/models/produto/produto.js +2 -2
- package/dist/models/rir/rir.d.ts +6 -6
- package/dist/models/rir/rir.js +6 -6
- package/dist/models/rnc/rnc.d.ts +2 -2
- package/dist/models/rnc/rnc.js +2 -2
- package/dist/models/usuario/usuario.d.ts +3 -3
- package/dist/models/usuario/usuario.js +3 -3
- package/dist/models/vendatiny/vendatiny.d.ts +2 -2
- package/dist/models/vendatiny/vendatiny.js +2 -2
- package/dist/models/vendedor/vendedor.d.ts +3 -3
- package/dist/models/vendedor/vendedor.js +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IArquivo } from "../../interfaces/arquivo/iarquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CArquivo extends BaseModel implements IArquivo {
|
|
4
4
|
id?: number;
|
|
5
5
|
url: string;
|
|
6
6
|
originalfilename: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBankImportConfirmResponse, IBankImportPreviewData, IBankImportPreviewInvalidRow, IBankImportPreviewResponse, IBankImportPreviewRow } from "../../interfaces/bank/ibank-import-endpoints.js";
|
|
2
2
|
import type { TBankSourceFormat } from "../../types/bank/t-bank-source-format.js";
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class CBankImportPreviewLine extends BaseModel implements IBankImportPreviewRow {
|
|
5
5
|
line: number;
|
|
6
6
|
movement_date: string;
|
|
7
7
|
amount: number;
|
|
@@ -16,12 +16,12 @@ export declare class cBankImportPreviewLine extends BaseModel implements IBankIm
|
|
|
16
16
|
idempotencyHash?: string;
|
|
17
17
|
}) | null);
|
|
18
18
|
}
|
|
19
|
-
export declare class
|
|
19
|
+
export declare class CBankImportPreviewInvalidLine extends BaseModel implements IBankImportPreviewInvalidRow {
|
|
20
20
|
line: number;
|
|
21
21
|
error: string;
|
|
22
22
|
constructor(row?: Partial<IBankImportPreviewInvalidRow> | null);
|
|
23
23
|
}
|
|
24
|
-
export declare class
|
|
24
|
+
export declare class CBankImportPreviewResult extends BaseModel implements IBankImportPreviewData {
|
|
25
25
|
batch_id: number;
|
|
26
26
|
source_format: TBankSourceFormat;
|
|
27
27
|
total_rows: number;
|
|
@@ -30,8 +30,8 @@ export declare class cBankImportPreviewResult extends BaseModel implements IBank
|
|
|
30
30
|
truncated: boolean;
|
|
31
31
|
delimiter?: string;
|
|
32
32
|
headers?: string[];
|
|
33
|
-
preview_rows:
|
|
34
|
-
invalid_rows:
|
|
33
|
+
preview_rows: CBankImportPreviewLine[];
|
|
34
|
+
invalid_rows: CBankImportPreviewInvalidLine[];
|
|
35
35
|
constructor(result?: (Partial<IBankImportPreviewData> & {
|
|
36
36
|
batchId?: number | string;
|
|
37
37
|
sourceFormat?: TBankSourceFormat;
|
|
@@ -42,11 +42,11 @@ export declare class cBankImportPreviewResult extends BaseModel implements IBank
|
|
|
42
42
|
invalidRows?: unknown[];
|
|
43
43
|
}) | null);
|
|
44
44
|
}
|
|
45
|
-
export declare class
|
|
46
|
-
data:
|
|
45
|
+
export declare class CBankImportPreviewResponse extends BaseModel implements IBankImportPreviewResponse {
|
|
46
|
+
data: CBankImportPreviewResult;
|
|
47
47
|
constructor(response?: Partial<IBankImportPreviewResponse> | null);
|
|
48
48
|
}
|
|
49
|
-
export declare class
|
|
49
|
+
export declare class CBankImportConfirmResult extends BaseModel {
|
|
50
50
|
batch_id: number;
|
|
51
51
|
status: "processing";
|
|
52
52
|
total_valid_rows: number;
|
|
@@ -57,8 +57,8 @@ export declare class cBankImportConfirmResult extends BaseModel {
|
|
|
57
57
|
totalDuplicatedInPayload?: number | string;
|
|
58
58
|
}) | null);
|
|
59
59
|
}
|
|
60
|
-
export declare class
|
|
61
|
-
data:
|
|
60
|
+
export declare class CBankImportConfirmResponse extends BaseModel implements IBankImportConfirmResponse {
|
|
61
|
+
data: CBankImportConfirmResult;
|
|
62
62
|
constructor(response?: Partial<IBankImportConfirmResponse> | null);
|
|
63
63
|
}
|
|
64
64
|
//# sourceMappingURL=bank-import.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
|
-
export class
|
|
2
|
+
export class CBankImportPreviewLine extends BaseModel {
|
|
3
3
|
constructor(row) {
|
|
4
4
|
super(row);
|
|
5
5
|
this.line = 0;
|
|
@@ -21,7 +21,7 @@ export class cBankImportPreviewLine extends BaseModel {
|
|
|
21
21
|
this.idempotency_hash = row.idempotency_hash ?? row.idempotencyHash ?? "";
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export class
|
|
24
|
+
export class CBankImportPreviewInvalidLine extends BaseModel {
|
|
25
25
|
constructor(row) {
|
|
26
26
|
super(row);
|
|
27
27
|
this.line = 0;
|
|
@@ -33,7 +33,7 @@ export class cBankImportPreviewInvalidLine extends BaseModel {
|
|
|
33
33
|
this.error = row.error ?? "";
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
export class
|
|
36
|
+
export class CBankImportPreviewResult extends BaseModel {
|
|
37
37
|
constructor(result) {
|
|
38
38
|
super(result);
|
|
39
39
|
this.batch_id = 0;
|
|
@@ -57,21 +57,21 @@ export class cBankImportPreviewResult extends BaseModel {
|
|
|
57
57
|
this.truncated = Boolean(result.truncated);
|
|
58
58
|
this.delimiter = result.delimiter;
|
|
59
59
|
this.headers = this.toArray(result.headers ?? []);
|
|
60
|
-
this.preview_rows = this.toTypedArray(result.preview_rows ?? result.previewRows,
|
|
61
|
-
this.invalid_rows = this.toTypedArray(result.invalid_rows ?? result.invalidRows,
|
|
60
|
+
this.preview_rows = this.toTypedArray(result.preview_rows ?? result.previewRows, CBankImportPreviewLine);
|
|
61
|
+
this.invalid_rows = this.toTypedArray(result.invalid_rows ?? result.invalidRows, CBankImportPreviewInvalidLine);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
export class
|
|
64
|
+
export class CBankImportPreviewResponse extends BaseModel {
|
|
65
65
|
constructor(response) {
|
|
66
66
|
super(response);
|
|
67
|
-
this.data = new
|
|
67
|
+
this.data = new CBankImportPreviewResult();
|
|
68
68
|
if (!response) {
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
this.data = new
|
|
71
|
+
this.data = new CBankImportPreviewResult(response.data);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
export class
|
|
74
|
+
export class CBankImportConfirmResult extends BaseModel {
|
|
75
75
|
constructor(response) {
|
|
76
76
|
super(response);
|
|
77
77
|
this.batch_id = 0;
|
|
@@ -91,14 +91,14 @@ export class cBankImportConfirmResult extends BaseModel {
|
|
|
91
91
|
response.totalDuplicatedInPayload) ?? 0;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
export class
|
|
94
|
+
export class CBankImportConfirmResponse extends BaseModel {
|
|
95
95
|
constructor(response) {
|
|
96
96
|
super(response);
|
|
97
|
-
this.data = new
|
|
97
|
+
this.data = new CBankImportConfirmResult();
|
|
98
98
|
if (!response) {
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
this.data = new
|
|
101
|
+
this.data = new CBankImportConfirmResult(response.data);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
//# sourceMappingURL=bank-import.js.map
|
|
@@ -3,8 +3,8 @@ import type { TBankReconciliationEntityType } from "../../types/bank/t-bank-reco
|
|
|
3
3
|
import type { TBankReconciliationType } from "../../types/bank/t-bank-reconciliation-type.js";
|
|
4
4
|
import type { TBankPagination } from "../../types/bank/t-bank-pagination.js";
|
|
5
5
|
import { BaseModel } from "../common/base-model.js";
|
|
6
|
-
import {
|
|
7
|
-
export declare class
|
|
6
|
+
import { CBankTransaction } from "./bank-transaction.js";
|
|
7
|
+
export declare class CBankReconciliationCandidate extends BaseModel implements IBankReconciliationCandidate {
|
|
8
8
|
id: number | string;
|
|
9
9
|
amount: number;
|
|
10
10
|
movement_date: string;
|
|
@@ -12,7 +12,7 @@ export declare class cBankReconciliationCandidate extends BaseModel implements I
|
|
|
12
12
|
description?: string | null;
|
|
13
13
|
constructor(candidate?: Partial<IBankReconciliationCandidate> | null);
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class CBankReconciliationHistory extends BaseModel implements IBankReconciliationHistoryEvent {
|
|
16
16
|
id: number;
|
|
17
17
|
bank_transaction_id: number;
|
|
18
18
|
action: IBankReconciliationHistoryEvent["action"];
|
|
@@ -29,7 +29,7 @@ export declare class cBankReconciliationHistory extends BaseModel implements IBa
|
|
|
29
29
|
note: string | null;
|
|
30
30
|
constructor(event?: Partial<IBankReconciliationHistoryEvent> | null);
|
|
31
31
|
}
|
|
32
|
-
export declare class
|
|
32
|
+
export declare class CBankReconciliationTransactionResult extends BaseModel {
|
|
33
33
|
id: number;
|
|
34
34
|
status: string;
|
|
35
35
|
reconciliation_type: TBankReconciliationType | null;
|
|
@@ -40,29 +40,29 @@ export declare class cBankReconciliationTransactionResult extends BaseModel {
|
|
|
40
40
|
reconciliation_note: string | null;
|
|
41
41
|
constructor(result?: Partial<IBankReconciliationTransactionResponse["data"]> | null);
|
|
42
42
|
}
|
|
43
|
-
export declare class
|
|
44
|
-
data:
|
|
43
|
+
export declare class CBankReconciliationTransactionResponse extends BaseModel implements IBankReconciliationTransactionResponse {
|
|
44
|
+
data: CBankReconciliationTransactionResult;
|
|
45
45
|
constructor(response?: Partial<IBankReconciliationTransactionResponse> | null);
|
|
46
46
|
}
|
|
47
|
-
export declare class
|
|
47
|
+
export declare class CBankReconciliationAutoMatchResponse extends BaseModel implements IBankReconciliationAutoMatchResponse {
|
|
48
48
|
data: IBankReconciliationAutoMatchResponse["data"];
|
|
49
49
|
constructor(response?: Partial<IBankReconciliationAutoMatchResponse> | null);
|
|
50
50
|
}
|
|
51
|
-
export declare class
|
|
51
|
+
export declare class CBankReconciliationAutoApplyResponse extends BaseModel implements IBankReconciliationAutoApplyResponse {
|
|
52
52
|
data: IBankReconciliationAutoApplyResponse["data"];
|
|
53
53
|
constructor(response?: Partial<IBankReconciliationAutoApplyResponse> | null);
|
|
54
54
|
}
|
|
55
|
-
export declare class
|
|
55
|
+
export declare class CBankReconciliationHistoryResponse extends BaseModel implements IBankReconciliationHistoryResponse {
|
|
56
56
|
data: {
|
|
57
|
-
rows:
|
|
57
|
+
rows: CBankReconciliationHistory[];
|
|
58
58
|
applied_filters?: Partial<IBankReconciliationHistoryFilters>;
|
|
59
59
|
pagination: TBankPagination;
|
|
60
60
|
};
|
|
61
61
|
constructor(response?: Partial<IBankReconciliationHistoryResponse> | null);
|
|
62
62
|
}
|
|
63
|
-
export declare class
|
|
63
|
+
export declare class CBankReconciliationByEntityResponse extends BaseModel implements IBankReconciliationByEntityResponse {
|
|
64
64
|
data: {
|
|
65
|
-
rows:
|
|
65
|
+
rows: CBankTransaction[];
|
|
66
66
|
pagination: {
|
|
67
67
|
page: number;
|
|
68
68
|
pageCount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
|
-
import {
|
|
3
|
-
export class
|
|
2
|
+
import { CBankTransaction } from "./bank-transaction.js";
|
|
3
|
+
export class CBankReconciliationCandidate extends BaseModel {
|
|
4
4
|
constructor(candidate) {
|
|
5
5
|
super(candidate);
|
|
6
6
|
this.id = 0;
|
|
@@ -16,7 +16,7 @@ export class cBankReconciliationCandidate extends BaseModel {
|
|
|
16
16
|
this.description = candidate.description ?? null;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export class
|
|
19
|
+
export class CBankReconciliationHistory extends BaseModel {
|
|
20
20
|
constructor(event) {
|
|
21
21
|
super(event);
|
|
22
22
|
this.id = 0;
|
|
@@ -65,7 +65,7 @@ export class cBankReconciliationHistory extends BaseModel {
|
|
|
65
65
|
this.note = event.note ?? null;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
export class
|
|
68
|
+
export class CBankReconciliationTransactionResult extends BaseModel {
|
|
69
69
|
constructor(result) {
|
|
70
70
|
super(result);
|
|
71
71
|
this.id = 0;
|
|
@@ -90,17 +90,17 @@ export class cBankReconciliationTransactionResult extends BaseModel {
|
|
|
90
90
|
this.reconciliation_note = result.reconciliation_note ?? null;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
export class
|
|
93
|
+
export class CBankReconciliationTransactionResponse extends BaseModel {
|
|
94
94
|
constructor(response) {
|
|
95
95
|
super(response);
|
|
96
|
-
this.data = new
|
|
96
|
+
this.data = new CBankReconciliationTransactionResult();
|
|
97
97
|
if (!response) {
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
this.data = new
|
|
100
|
+
this.data = new CBankReconciliationTransactionResult(response.data);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
export class
|
|
103
|
+
export class CBankReconciliationAutoMatchResponse extends BaseModel {
|
|
104
104
|
constructor(response) {
|
|
105
105
|
super(response);
|
|
106
106
|
this.data = {
|
|
@@ -118,7 +118,7 @@ export class cBankReconciliationAutoMatchResponse extends BaseModel {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
export class
|
|
121
|
+
export class CBankReconciliationAutoApplyResponse extends BaseModel {
|
|
122
122
|
constructor(response) {
|
|
123
123
|
super(response);
|
|
124
124
|
this.data = {
|
|
@@ -139,7 +139,7 @@ export class cBankReconciliationAutoApplyResponse extends BaseModel {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
export class
|
|
142
|
+
export class CBankReconciliationHistoryResponse extends BaseModel {
|
|
143
143
|
constructor(response) {
|
|
144
144
|
super(response);
|
|
145
145
|
this.data = {
|
|
@@ -155,7 +155,7 @@ export class cBankReconciliationHistoryResponse extends BaseModel {
|
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
this.data = {
|
|
158
|
-
rows: this.toTypedArray(response.data.rows,
|
|
158
|
+
rows: this.toTypedArray(response.data.rows, CBankReconciliationHistory),
|
|
159
159
|
applied_filters: response.data.applied_filters,
|
|
160
160
|
pagination: {
|
|
161
161
|
page: this.toNumber(response.data.pagination?.page) ?? 0,
|
|
@@ -166,7 +166,7 @@ export class cBankReconciliationHistoryResponse extends BaseModel {
|
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
export class
|
|
169
|
+
export class CBankReconciliationByEntityResponse extends BaseModel {
|
|
170
170
|
constructor(response) {
|
|
171
171
|
super(response);
|
|
172
172
|
this.data = {
|
|
@@ -182,7 +182,7 @@ export class cBankReconciliationByEntityResponse extends BaseModel {
|
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
this.data = {
|
|
185
|
-
rows: this.toTypedArray(response.data.rows,
|
|
185
|
+
rows: this.toTypedArray(response.data.rows, CBankTransaction),
|
|
186
186
|
pagination: {
|
|
187
187
|
page: this.toNumber(response.data.pagination?.page) ?? 0,
|
|
188
188
|
pageCount: this.toNumber(response.data.pagination?.pageCount) ?? 0,
|
|
@@ -2,7 +2,7 @@ import { EBankTransactionType } from "../../enums/bank/e-bank-transaction-type.j
|
|
|
2
2
|
import type { IBankCashFlowReportData, IBankInternalCashStatementReportData, IBankInternalCashStatementReportResponse, IBankInternalCashStatementReportRow, IBankInternalCashStatementReportSummary, IBankCashFlowReportResponse, IBankCashFlowReportRow, IBankReconciliationSummaryReportData, IBankReconciliationSummaryReportResponse, IBankReconciliationSummaryReportTotals, IBankReconciliationSummaryStatusRow, IBankStatementReportData, IBankStatementReportResponse, IBankStatementReportSummary, IBankStatementReportTransaction } from "../../interfaces/bank/ibank-report-endpoints.js";
|
|
3
3
|
import type { TBankPagination } from "../../types/bank/t-bank-pagination.js";
|
|
4
4
|
import { BaseModel } from "../common/base-model.js";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class CBankStatementEntry extends BaseModel implements IBankStatementReportTransaction {
|
|
6
6
|
id: number;
|
|
7
7
|
account_id: number;
|
|
8
8
|
movement_date: string;
|
|
@@ -18,7 +18,7 @@ export declare class cBankStatementEntry extends BaseModel implements IBankState
|
|
|
18
18
|
createdAt: string;
|
|
19
19
|
constructor(row?: Partial<IBankStatementReportTransaction> | null);
|
|
20
20
|
}
|
|
21
|
-
export declare class
|
|
21
|
+
export declare class CBankStatementSummary extends BaseModel implements IBankStatementReportSummary {
|
|
22
22
|
initial_balance: number;
|
|
23
23
|
total_debits: number;
|
|
24
24
|
total_credits: number;
|
|
@@ -26,9 +26,9 @@ export declare class cBankStatementSummary extends BaseModel implements IBankSta
|
|
|
26
26
|
transaction_count: number;
|
|
27
27
|
constructor(summary?: Partial<IBankStatementReportSummary> | null);
|
|
28
28
|
}
|
|
29
|
-
export declare class
|
|
30
|
-
transactions:
|
|
31
|
-
summary:
|
|
29
|
+
export declare class CBankStatementReportData extends BaseModel implements IBankStatementReportData {
|
|
30
|
+
transactions: CBankStatementEntry[];
|
|
31
|
+
summary: CBankStatementSummary;
|
|
32
32
|
applied_filters: {
|
|
33
33
|
account_id: string;
|
|
34
34
|
start_date: string;
|
|
@@ -37,11 +37,11 @@ export declare class cBankStatementReportData extends BaseModel implements IBank
|
|
|
37
37
|
pagination: TBankPagination;
|
|
38
38
|
constructor(data?: Partial<IBankStatementReportData> | null);
|
|
39
39
|
}
|
|
40
|
-
export declare class
|
|
41
|
-
data:
|
|
40
|
+
export declare class CBankStatementReportResponse extends BaseModel implements IBankStatementReportResponse {
|
|
41
|
+
data: CBankStatementReportData;
|
|
42
42
|
constructor(response?: Partial<IBankStatementReportResponse> | null);
|
|
43
43
|
}
|
|
44
|
-
export declare class
|
|
44
|
+
export declare class CBankCashFlowEntry extends BaseModel implements IBankCashFlowReportRow {
|
|
45
45
|
date: string;
|
|
46
46
|
inflows: number;
|
|
47
47
|
outflows: number;
|
|
@@ -49,8 +49,8 @@ export declare class cBankCashFlowEntry extends BaseModel implements IBankCashFl
|
|
|
49
49
|
transaction_count: number;
|
|
50
50
|
constructor(row?: Partial<IBankCashFlowReportRow> | null);
|
|
51
51
|
}
|
|
52
|
-
export declare class
|
|
53
|
-
rows:
|
|
52
|
+
export declare class CBankCashFlowReportData extends BaseModel implements IBankCashFlowReportData {
|
|
53
|
+
rows: CBankCashFlowEntry[];
|
|
54
54
|
applied_filters: {
|
|
55
55
|
account_id: string;
|
|
56
56
|
start_date: string;
|
|
@@ -59,18 +59,18 @@ export declare class cBankCashFlowReportData extends BaseModel implements IBankC
|
|
|
59
59
|
};
|
|
60
60
|
constructor(data?: Partial<IBankCashFlowReportData> | null);
|
|
61
61
|
}
|
|
62
|
-
export declare class
|
|
63
|
-
data:
|
|
62
|
+
export declare class CBankCashFlowReportResponse extends BaseModel implements IBankCashFlowReportResponse {
|
|
63
|
+
data: CBankCashFlowReportData;
|
|
64
64
|
constructor(response?: Partial<IBankCashFlowReportResponse> | null);
|
|
65
65
|
}
|
|
66
|
-
export declare class
|
|
66
|
+
export declare class CBankReconciliationSummaryStatus extends BaseModel implements IBankReconciliationSummaryStatusRow {
|
|
67
67
|
status: string;
|
|
68
68
|
count: number;
|
|
69
69
|
amount: number;
|
|
70
70
|
percentage: string;
|
|
71
71
|
constructor(row?: Partial<IBankReconciliationSummaryStatusRow> | null);
|
|
72
72
|
}
|
|
73
|
-
export declare class
|
|
73
|
+
export declare class CBankReconciliationSummaryTotals extends BaseModel implements IBankReconciliationSummaryReportTotals {
|
|
74
74
|
total_transactions: number;
|
|
75
75
|
reconciled_count: number;
|
|
76
76
|
pending_count: number;
|
|
@@ -79,9 +79,9 @@ export declare class cBankReconciliationSummaryTotals extends BaseModel implemen
|
|
|
79
79
|
reconciled_amount: number;
|
|
80
80
|
constructor(summary?: Partial<IBankReconciliationSummaryReportTotals> | null);
|
|
81
81
|
}
|
|
82
|
-
export declare class
|
|
83
|
-
summary:
|
|
84
|
-
by_status:
|
|
82
|
+
export declare class CBankReconciliationSummaryReportData extends BaseModel implements IBankReconciliationSummaryReportData {
|
|
83
|
+
summary: CBankReconciliationSummaryTotals;
|
|
84
|
+
by_status: CBankReconciliationSummaryStatus[];
|
|
85
85
|
applied_filters: {
|
|
86
86
|
account_id: string;
|
|
87
87
|
start_date: string;
|
|
@@ -89,11 +89,11 @@ export declare class cBankReconciliationSummaryReportData extends BaseModel impl
|
|
|
89
89
|
};
|
|
90
90
|
constructor(data?: Partial<IBankReconciliationSummaryReportData> | null);
|
|
91
91
|
}
|
|
92
|
-
export declare class
|
|
93
|
-
data:
|
|
92
|
+
export declare class CBankReconciliationSummaryReportResponse extends BaseModel implements IBankReconciliationSummaryReportResponse {
|
|
93
|
+
data: CBankReconciliationSummaryReportData;
|
|
94
94
|
constructor(response?: Partial<IBankReconciliationSummaryReportResponse> | null);
|
|
95
95
|
}
|
|
96
|
-
export declare class
|
|
96
|
+
export declare class CBankInternalCashStatementEntry extends BaseModel implements IBankInternalCashStatementReportRow {
|
|
97
97
|
settlement_id: number;
|
|
98
98
|
occurred_at: string;
|
|
99
99
|
bank_account_id: number;
|
|
@@ -108,7 +108,7 @@ export declare class cBankInternalCashStatementEntry extends BaseModel implement
|
|
|
108
108
|
note: string | null;
|
|
109
109
|
constructor(row?: Partial<IBankInternalCashStatementReportRow> | null);
|
|
110
110
|
}
|
|
111
|
-
export declare class
|
|
111
|
+
export declare class CBankInternalCashStatementSummary extends BaseModel implements IBankInternalCashStatementReportSummary {
|
|
112
112
|
opening_balance: number;
|
|
113
113
|
total_inflows: number;
|
|
114
114
|
total_outflows: number;
|
|
@@ -117,9 +117,9 @@ export declare class cBankInternalCashStatementSummary extends BaseModel impleme
|
|
|
117
117
|
settlement_count: number;
|
|
118
118
|
constructor(summary?: Partial<IBankInternalCashStatementReportSummary> | null);
|
|
119
119
|
}
|
|
120
|
-
export declare class
|
|
121
|
-
rows:
|
|
122
|
-
summary:
|
|
120
|
+
export declare class CBankInternalCashStatementReportData extends BaseModel implements IBankInternalCashStatementReportData {
|
|
121
|
+
rows: CBankInternalCashStatementEntry[];
|
|
122
|
+
summary: CBankInternalCashStatementSummary;
|
|
123
123
|
applied_filters: {
|
|
124
124
|
account_id: string | null;
|
|
125
125
|
start_date: string;
|
|
@@ -130,8 +130,8 @@ export declare class cBankInternalCashStatementReportData extends BaseModel impl
|
|
|
130
130
|
pagination: TBankPagination;
|
|
131
131
|
constructor(data?: Partial<IBankInternalCashStatementReportData> | null);
|
|
132
132
|
}
|
|
133
|
-
export declare class
|
|
134
|
-
data:
|
|
133
|
+
export declare class CBankInternalCashStatementReportResponse extends BaseModel implements IBankInternalCashStatementReportResponse {
|
|
134
|
+
data: CBankInternalCashStatementReportData;
|
|
135
135
|
constructor(response?: Partial<IBankInternalCashStatementReportResponse> | null);
|
|
136
136
|
}
|
|
137
137
|
//# sourceMappingURL=bank-report.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EBankTransactionType } from "../../enums/bank/e-bank-transaction-type.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
export class
|
|
3
|
+
export class CBankStatementEntry extends BaseModel {
|
|
4
4
|
constructor(row) {
|
|
5
5
|
super(row);
|
|
6
6
|
this.id = 0;
|
|
@@ -35,7 +35,7 @@ export class cBankStatementEntry extends BaseModel {
|
|
|
35
35
|
this.createdAt = row.createdAt ?? "";
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
export class
|
|
38
|
+
export class CBankStatementSummary extends BaseModel {
|
|
39
39
|
constructor(summary) {
|
|
40
40
|
super(summary);
|
|
41
41
|
this.initial_balance = 0;
|
|
@@ -53,11 +53,11 @@ export class cBankStatementSummary extends BaseModel {
|
|
|
53
53
|
this.transaction_count = this.toNumber(summary.transaction_count) ?? 0;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
export class
|
|
56
|
+
export class CBankStatementReportData extends BaseModel {
|
|
57
57
|
constructor(data) {
|
|
58
58
|
super(data);
|
|
59
59
|
this.transactions = [];
|
|
60
|
-
this.summary = new
|
|
60
|
+
this.summary = new CBankStatementSummary();
|
|
61
61
|
this.applied_filters = {
|
|
62
62
|
account_id: "",
|
|
63
63
|
start_date: "",
|
|
@@ -72,8 +72,8 @@ export class cBankStatementReportData extends BaseModel {
|
|
|
72
72
|
if (!data) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
this.transactions = this.toTypedArray(data.transactions,
|
|
76
|
-
this.summary = new
|
|
75
|
+
this.transactions = this.toTypedArray(data.transactions, CBankStatementEntry);
|
|
76
|
+
this.summary = new CBankStatementSummary(data.summary);
|
|
77
77
|
this.applied_filters = {
|
|
78
78
|
account_id: data.applied_filters?.account_id ?? "",
|
|
79
79
|
start_date: data.applied_filters?.start_date ?? "",
|
|
@@ -87,17 +87,17 @@ export class cBankStatementReportData extends BaseModel {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
export class
|
|
90
|
+
export class CBankStatementReportResponse extends BaseModel {
|
|
91
91
|
constructor(response) {
|
|
92
92
|
super(response);
|
|
93
|
-
this.data = new
|
|
93
|
+
this.data = new CBankStatementReportData();
|
|
94
94
|
if (!response) {
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
this.data = new
|
|
97
|
+
this.data = new CBankStatementReportData(response.data);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
export class
|
|
100
|
+
export class CBankCashFlowEntry extends BaseModel {
|
|
101
101
|
constructor(row) {
|
|
102
102
|
super(row);
|
|
103
103
|
this.date = "";
|
|
@@ -117,7 +117,7 @@ export class cBankCashFlowEntry extends BaseModel {
|
|
|
117
117
|
this.toNumber(row.transaction_count ?? mixedRow.transactionCount) ?? 0;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
export class
|
|
120
|
+
export class CBankCashFlowReportData extends BaseModel {
|
|
121
121
|
constructor(data) {
|
|
122
122
|
super(data);
|
|
123
123
|
this.rows = [];
|
|
@@ -130,7 +130,7 @@ export class cBankCashFlowReportData extends BaseModel {
|
|
|
130
130
|
if (!data) {
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
this.rows = this.toTypedArray(data.rows,
|
|
133
|
+
this.rows = this.toTypedArray(data.rows, CBankCashFlowEntry);
|
|
134
134
|
this.applied_filters = {
|
|
135
135
|
account_id: data.applied_filters?.account_id ?? "",
|
|
136
136
|
start_date: data.applied_filters?.start_date ?? "",
|
|
@@ -139,17 +139,17 @@ export class cBankCashFlowReportData extends BaseModel {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
export class
|
|
142
|
+
export class CBankCashFlowReportResponse extends BaseModel {
|
|
143
143
|
constructor(response) {
|
|
144
144
|
super(response);
|
|
145
|
-
this.data = new
|
|
145
|
+
this.data = new CBankCashFlowReportData();
|
|
146
146
|
if (!response) {
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
|
-
this.data = new
|
|
149
|
+
this.data = new CBankCashFlowReportData(response.data);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
export class
|
|
152
|
+
export class CBankReconciliationSummaryStatus extends BaseModel {
|
|
153
153
|
constructor(row) {
|
|
154
154
|
super(row);
|
|
155
155
|
this.status = "";
|
|
@@ -165,7 +165,7 @@ export class cBankReconciliationSummaryStatus extends BaseModel {
|
|
|
165
165
|
this.percentage = row.percentage ?? "0";
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
export class
|
|
168
|
+
export class CBankReconciliationSummaryTotals extends BaseModel {
|
|
169
169
|
constructor(summary) {
|
|
170
170
|
super(summary);
|
|
171
171
|
this.total_transactions = 0;
|
|
@@ -194,10 +194,10 @@ export class cBankReconciliationSummaryTotals extends BaseModel {
|
|
|
194
194
|
this.toNumber(summary.reconciled_amount ?? mixedSummary.reconciledAmount) ?? 0;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
export class
|
|
197
|
+
export class CBankReconciliationSummaryReportData extends BaseModel {
|
|
198
198
|
constructor(data) {
|
|
199
199
|
super(data);
|
|
200
|
-
this.summary = new
|
|
200
|
+
this.summary = new CBankReconciliationSummaryTotals();
|
|
201
201
|
this.by_status = [];
|
|
202
202
|
this.applied_filters = {
|
|
203
203
|
account_id: "",
|
|
@@ -207,9 +207,9 @@ export class cBankReconciliationSummaryReportData extends BaseModel {
|
|
|
207
207
|
if (!data) {
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
|
-
this.summary = new
|
|
210
|
+
this.summary = new CBankReconciliationSummaryTotals(data.summary);
|
|
211
211
|
const mixedData = data;
|
|
212
|
-
this.by_status = this.toTypedArray(data.by_status ?? mixedData.byStatus,
|
|
212
|
+
this.by_status = this.toTypedArray(data.by_status ?? mixedData.byStatus, CBankReconciliationSummaryStatus);
|
|
213
213
|
this.applied_filters = {
|
|
214
214
|
account_id: data.applied_filters?.account_id ??
|
|
215
215
|
mixedData.appliedFilters?.accountId ??
|
|
@@ -223,17 +223,17 @@ export class cBankReconciliationSummaryReportData extends BaseModel {
|
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
export class
|
|
226
|
+
export class CBankReconciliationSummaryReportResponse extends BaseModel {
|
|
227
227
|
constructor(response) {
|
|
228
228
|
super(response);
|
|
229
|
-
this.data = new
|
|
229
|
+
this.data = new CBankReconciliationSummaryReportData();
|
|
230
230
|
if (!response) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
-
this.data = new
|
|
233
|
+
this.data = new CBankReconciliationSummaryReportData(response.data);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
export class
|
|
236
|
+
export class CBankInternalCashStatementEntry extends BaseModel {
|
|
237
237
|
constructor(row) {
|
|
238
238
|
super(row);
|
|
239
239
|
this.settlement_id = 0;
|
|
@@ -265,7 +265,7 @@ export class cBankInternalCashStatementEntry extends BaseModel {
|
|
|
265
265
|
this.note = row.note ?? null;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
export class
|
|
268
|
+
export class CBankInternalCashStatementSummary extends BaseModel {
|
|
269
269
|
constructor(summary) {
|
|
270
270
|
super(summary);
|
|
271
271
|
this.opening_balance = 0;
|
|
@@ -285,11 +285,11 @@ export class cBankInternalCashStatementSummary extends BaseModel {
|
|
|
285
285
|
this.settlement_count = this.toNumber(summary.settlement_count) ?? 0;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
export class
|
|
288
|
+
export class CBankInternalCashStatementReportData extends BaseModel {
|
|
289
289
|
constructor(data) {
|
|
290
290
|
super(data);
|
|
291
291
|
this.rows = [];
|
|
292
|
-
this.summary = new
|
|
292
|
+
this.summary = new CBankInternalCashStatementSummary();
|
|
293
293
|
this.applied_filters = {
|
|
294
294
|
account_id: null,
|
|
295
295
|
start_date: "",
|
|
@@ -306,8 +306,8 @@ export class cBankInternalCashStatementReportData extends BaseModel {
|
|
|
306
306
|
if (!data) {
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
|
-
this.rows = this.toTypedArray(data.rows,
|
|
310
|
-
this.summary = new
|
|
309
|
+
this.rows = this.toTypedArray(data.rows, CBankInternalCashStatementEntry);
|
|
310
|
+
this.summary = new CBankInternalCashStatementSummary(data.summary);
|
|
311
311
|
this.applied_filters = {
|
|
312
312
|
account_id: data.applied_filters?.account_id ?? null,
|
|
313
313
|
start_date: data.applied_filters?.start_date ?? "",
|
|
@@ -323,14 +323,14 @@ export class cBankInternalCashStatementReportData extends BaseModel {
|
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
export class
|
|
326
|
+
export class CBankInternalCashStatementReportResponse extends BaseModel {
|
|
327
327
|
constructor(response) {
|
|
328
328
|
super(response);
|
|
329
|
-
this.data = new
|
|
329
|
+
this.data = new CBankInternalCashStatementReportData();
|
|
330
330
|
if (!response) {
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
|
-
this.data = new
|
|
333
|
+
this.data = new CBankInternalCashStatementReportData(response.data);
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
//# sourceMappingURL=bank-report.js.map
|