@linkiez/jcm-library 7.1.0 → 8.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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/common/ifind-all-filter.d.ts +6 -0
- package/dist/interfaces/common/ifind-all-filter.d.ts.map +1 -0
- package/dist/interfaces/common/ifind-all-filter.js +2 -0
- package/dist/interfaces/common/ifind-all-filter.js.map +1 -0
- package/dist/interfaces/common/iparams-findall.d.ts +5 -0
- package/dist/interfaces/common/iparams-findall.d.ts.map +1 -1
- package/dist/interfaces/common/tfind-all-filter-match-mode.d.ts +2 -0
- package/dist/interfaces/common/tfind-all-filter-match-mode.d.ts.map +1 -0
- package/dist/interfaces/common/tfind-all-filter-match-mode.js +2 -0
- package/dist/interfaces/common/tfind-all-filter-match-mode.js.map +1 -0
- package/dist/interfaces/common/tfind-all-sort-order.d.ts +2 -0
- package/dist/interfaces/common/tfind-all-sort-order.d.ts.map +1 -0
- package/dist/interfaces/common/tfind-all-sort-order.js +2 -0
- package/dist/interfaces/common/tfind-all-sort-order.js.map +1 -0
- 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/dist/zod-validators/common/zparams-findall.d.ts +18 -0
- package/dist/zod-validators/common/zparams-findall.d.ts.map +1 -1
- package/dist/zod-validators/common/zparams-findall.js +26 -0
- package/dist/zod-validators/common/zparams-findall.js.map +1 -1
- package/dist/zod-validators/orcamento/zparams-findall-orcamento-item.d.ts +18 -0
- package/dist/zod-validators/orcamento/zparams-findall-orcamento-item.d.ts.map +1 -1
- package/dist/zod-validators/orcamento/zparams-findall-orcamento.d.ts +18 -0
- package/dist/zod-validators/orcamento/zparams-findall-orcamento.d.ts.map +1 -1
- package/dist/zod-validators/ordem-producao/zparams-findall-ordem-producao.d.ts +18 -0
- package/dist/zod-validators/ordem-producao/zparams-findall-ordem-producao.d.ts.map +1 -1
- package/dist/zod-validators/pedido-compra/zparams-findall-pedido-compra-item.d.ts +18 -0
- package/dist/zod-validators/pedido-compra/zparams-findall-pedido-compra-item.d.ts.map +1 -1
- package/dist/zod-validators/pessoa/zparams-findall-pessoa.d.ts +18 -0
- package/dist/zod-validators/pessoa/zparams-findall-pessoa.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
@@ -2,17 +2,17 @@ import { EBankTransactionType } from "../../enums/bank/e-bank-transaction-type.j
|
|
|
2
2
|
import type { IBankTransactionDto, IBankTransactionsResponse } from "../../interfaces/bank/ibank-transaction-endpoints.js";
|
|
3
3
|
import type { TBankPaginatedResult, TBankPagination } from "../../types/bank/t-bank-pagination.js";
|
|
4
4
|
import { BaseModel } from "../common/base-model.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CBank, CBankAccount } from "./bank.js";
|
|
6
6
|
type BankTransactionInput = Partial<IBankTransactionDto> & {
|
|
7
7
|
updatedAt?: string | Date | null;
|
|
8
|
-
account?: ConstructorParameters<typeof
|
|
9
|
-
bank?: ConstructorParameters<typeof
|
|
8
|
+
account?: ConstructorParameters<typeof CBankAccount>[0] | null;
|
|
9
|
+
bank?: ConstructorParameters<typeof CBank>[0] | null;
|
|
10
10
|
};
|
|
11
11
|
type BankTransactionPageInput = Partial<TBankPaginatedResult<IBankTransactionDto> & {
|
|
12
12
|
initial_balance?: number | string | null;
|
|
13
13
|
initialBalance?: number | string | null;
|
|
14
14
|
}>;
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class CBankTransaction extends BaseModel implements IBankTransactionDto {
|
|
16
16
|
id: number;
|
|
17
17
|
import_batch_id: number;
|
|
18
18
|
account_id: number;
|
|
@@ -30,21 +30,21 @@ export declare class cBankTransaction extends BaseModel implements IBankTransact
|
|
|
30
30
|
reconciled_at: string | null;
|
|
31
31
|
reconciliation_note: string | null;
|
|
32
32
|
createdAt: string;
|
|
33
|
-
account?:
|
|
34
|
-
bank?:
|
|
33
|
+
account?: CBankAccount | null;
|
|
34
|
+
bank?: CBank | null;
|
|
35
35
|
updatedAt?: string | null;
|
|
36
36
|
constructor(transaction?: Partial<IBankTransactionDto> | BankTransactionInput | null);
|
|
37
37
|
}
|
|
38
|
-
export declare class
|
|
39
|
-
rows:
|
|
38
|
+
export declare class CBankTransactionPage extends BaseModel {
|
|
39
|
+
rows: CBankTransaction[];
|
|
40
40
|
pagination: TBankPagination;
|
|
41
41
|
initial_balance: number;
|
|
42
42
|
get initialBalance(): number;
|
|
43
43
|
set initialBalance(value: number | string | null | undefined);
|
|
44
44
|
constructor(page?: BankTransactionPageInput | null);
|
|
45
45
|
}
|
|
46
|
-
export declare class
|
|
47
|
-
data:
|
|
46
|
+
export declare class CBankTransactionsResponse extends BaseModel implements IBankTransactionsResponse {
|
|
47
|
+
data: CBankTransactionPage;
|
|
48
48
|
constructor(response?: Partial<IBankTransactionsResponse> | null);
|
|
49
49
|
}
|
|
50
50
|
export {};
|
|
@@ -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
|
-
import {
|
|
3
|
+
import { CBank, CBankAccount } from "./bank.js";
|
|
4
4
|
function normalizeDateOnly(value) {
|
|
5
5
|
if (!value) {
|
|
6
6
|
return "";
|
|
@@ -19,7 +19,7 @@ function normalizeDateTime(value) {
|
|
|
19
19
|
}
|
|
20
20
|
return value;
|
|
21
21
|
}
|
|
22
|
-
export class
|
|
22
|
+
export class CBankTransaction extends BaseModel {
|
|
23
23
|
constructor(transaction) {
|
|
24
24
|
super(transaction);
|
|
25
25
|
this.id = 0;
|
|
@@ -64,13 +64,13 @@ export class cBankTransaction extends BaseModel {
|
|
|
64
64
|
this.reconciliation_note = normalized.reconciliation_note ?? null;
|
|
65
65
|
this.createdAt = normalizeDateTime(normalized.createdAt) ?? "";
|
|
66
66
|
this.account = normalized.account
|
|
67
|
-
? new
|
|
67
|
+
? new CBankAccount(normalized.account)
|
|
68
68
|
: null;
|
|
69
|
-
this.bank = normalized.bank ? new
|
|
69
|
+
this.bank = normalized.bank ? new CBank(normalized.bank) : null;
|
|
70
70
|
this.updatedAt = normalizeDateTime(normalized.updatedAt);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
export class
|
|
73
|
+
export class CBankTransactionPage extends BaseModel {
|
|
74
74
|
get initialBalance() {
|
|
75
75
|
return this.initial_balance;
|
|
76
76
|
}
|
|
@@ -90,7 +90,7 @@ export class cBankTransactionPage extends BaseModel {
|
|
|
90
90
|
if (!page) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
this.rows = this.toTypedArray(page.rows,
|
|
93
|
+
this.rows = this.toTypedArray(page.rows, CBankTransaction);
|
|
94
94
|
this.pagination = {
|
|
95
95
|
page: this.toNumber(page.pagination?.page) ?? 0,
|
|
96
96
|
pageCount: this.toNumber(page.pagination?.pageCount) ?? 0,
|
|
@@ -101,14 +101,14 @@ export class cBankTransactionPage extends BaseModel {
|
|
|
101
101
|
this.toNumber(page.initialBalance ?? page.initial_balance) ?? 0;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
export class
|
|
104
|
+
export class CBankTransactionsResponse extends BaseModel {
|
|
105
105
|
constructor(response) {
|
|
106
106
|
super(response);
|
|
107
|
-
this.data = new
|
|
107
|
+
this.data = new CBankTransactionPage();
|
|
108
108
|
if (!response) {
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
this.data = new
|
|
111
|
+
this.data = new CBankTransactionPage(response.data);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
//# sourceMappingURL=bank-transaction.js.map
|
|
@@ -27,7 +27,7 @@ type BankAccountInput = Partial<Omit<IBankAccount, "id" | "bank">> & Partial<Omi
|
|
|
27
27
|
enabled_capabilities?: TBankBoletoCapability[] | null;
|
|
28
28
|
bank?: BankInput | null;
|
|
29
29
|
};
|
|
30
|
-
export declare class
|
|
30
|
+
export declare class CBank extends BaseModel implements IBanco {
|
|
31
31
|
id: number;
|
|
32
32
|
compe: string;
|
|
33
33
|
ispb: string;
|
|
@@ -47,12 +47,12 @@ export declare class cBank extends BaseModel implements IBanco {
|
|
|
47
47
|
ativo: boolean;
|
|
48
48
|
constructor(bank?: BankInput | null);
|
|
49
49
|
}
|
|
50
|
-
export declare class
|
|
50
|
+
export declare class CBankAccount extends BaseModel implements IBankAccount {
|
|
51
51
|
id?: number;
|
|
52
52
|
company_id: number;
|
|
53
53
|
bank_id: number;
|
|
54
54
|
name: string;
|
|
55
|
-
bank?:
|
|
55
|
+
bank?: CBank | null;
|
|
56
56
|
branch: string;
|
|
57
57
|
account_number: string;
|
|
58
58
|
account_type: EBankAccountType;
|
package/dist/models/bank/bank.js
CHANGED
|
@@ -13,7 +13,7 @@ function resolveBankAccountType(value) {
|
|
|
13
13
|
return EBankAccountType.CHECKING;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export class
|
|
16
|
+
export class CBank extends BaseModel {
|
|
17
17
|
constructor(bank) {
|
|
18
18
|
super(bank);
|
|
19
19
|
this.id = 0;
|
|
@@ -53,7 +53,7 @@ export class cBank extends BaseModel {
|
|
|
53
53
|
this.ativo = Boolean(bank.ativo ?? false);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
export class
|
|
56
|
+
export class CBankAccount extends BaseModel {
|
|
57
57
|
constructor(account) {
|
|
58
58
|
super(account);
|
|
59
59
|
this.company_id = 0;
|
|
@@ -74,11 +74,11 @@ export class cBankAccount extends BaseModel {
|
|
|
74
74
|
this.name = account.name ?? "";
|
|
75
75
|
this.bank = null;
|
|
76
76
|
if (account.bank) {
|
|
77
|
-
this.bank = new
|
|
77
|
+
this.bank = new CBank(account.bank);
|
|
78
78
|
}
|
|
79
79
|
else if (typeof account.bank_name === "string" &&
|
|
80
80
|
account.bank_name.trim().length > 0) {
|
|
81
|
-
this.bank = new
|
|
81
|
+
this.bank = new CBank({ nome: account.bank_name, ispb: "", ativo: true });
|
|
82
82
|
}
|
|
83
83
|
this.branch = account.branch ?? "";
|
|
84
84
|
this.account_number = account.account_number ?? "";
|
|
@@ -3,7 +3,7 @@ import { IContato } from "../../interfaces/contato/icontato.js";
|
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
4
|
import { Orcamento } from "../orcamento/orcamento.js";
|
|
5
5
|
import { PedidoCompra } from "../pedido-compra/pedido-compra.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
7
7
|
export declare class Contato extends BaseModel implements IContato {
|
|
8
8
|
id?: number;
|
|
9
9
|
nome: string;
|
|
@@ -12,7 +12,7 @@ export declare class Contato extends BaseModel implements IContato {
|
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
deletedAt: Date;
|
|
14
14
|
createdAt: Date;
|
|
15
|
-
pessoas:
|
|
15
|
+
pessoas: CPessoa[];
|
|
16
16
|
orcamentos: Orcamento[];
|
|
17
17
|
pedidos_compra: PedidoCompra[];
|
|
18
18
|
id_avatar_file?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
2
|
import { Orcamento } from "../orcamento/orcamento.js";
|
|
3
3
|
import { PedidoCompra } from "../pedido-compra/pedido-compra.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
5
5
|
export class Contato extends BaseModel {
|
|
6
6
|
constructor(contato) {
|
|
7
7
|
super();
|
|
@@ -17,7 +17,7 @@ export class Contato extends BaseModel {
|
|
|
17
17
|
this.updatedAt = this.parseDate(contato.updatedAt);
|
|
18
18
|
this.deletedAt = this.parseDate(contato.deletedAt);
|
|
19
19
|
this.createdAt = this.parseDate(contato.createdAt);
|
|
20
|
-
this.pessoas = this.toTypedArray(contato.pessoas,
|
|
20
|
+
this.pessoas = this.toTypedArray(contato.pessoas, CPessoa);
|
|
21
21
|
this.orcamentos = this.toTypedArray(contato.orcamentos, Orcamento);
|
|
22
22
|
this.pedidos_compra = this.toTypedArray(contato.pedidos_compra, PedidoCompra);
|
|
23
23
|
this.id_avatar_file = this.toNumber(contato?.id_avatar_file);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { IEmpresa } from "../../interfaces/empresa/iempresa.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
|
-
import {
|
|
5
|
-
export declare class
|
|
4
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
5
|
+
export declare class CEmpresa extends BaseModel implements IEmpresa {
|
|
6
6
|
id: number;
|
|
7
7
|
deletedAt: Date;
|
|
8
8
|
updatedAt: Date;
|
|
9
9
|
createdAt: Date;
|
|
10
10
|
id_pessoa: number;
|
|
11
|
-
pessoa:
|
|
11
|
+
pessoa: CPessoa;
|
|
12
12
|
token_tiny: string;
|
|
13
|
-
logoColor:
|
|
14
|
-
logoBlack:
|
|
13
|
+
logoColor: CArquivo;
|
|
14
|
+
logoBlack: CArquivo;
|
|
15
15
|
id_file_logoBlack: number;
|
|
16
16
|
id_file_logoColor: number;
|
|
17
17
|
constructor(empresa?: Partial<IEmpresa>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
import {
|
|
4
|
-
export class
|
|
3
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
4
|
+
export class CEmpresa extends BaseModel {
|
|
5
5
|
constructor(empresa) {
|
|
6
6
|
super();
|
|
7
7
|
if (!empresa) {
|
|
@@ -14,10 +14,10 @@ export class cEmpresa extends BaseModel {
|
|
|
14
14
|
this.updatedAt = this.parseDate(empresa.updatedAt);
|
|
15
15
|
this.createdAt = this.parseDate(empresa.createdAt);
|
|
16
16
|
this.id_pessoa = this.toNumber(empresa?.id_pessoa);
|
|
17
|
-
this.pessoa = empresa?.pessoa ? new
|
|
17
|
+
this.pessoa = empresa?.pessoa ? new CPessoa(empresa.pessoa) : undefined;
|
|
18
18
|
this.token_tiny = empresa?.token_tiny;
|
|
19
|
-
this.logoColor = this.extractProperty(empresa, "logoColor",
|
|
20
|
-
this.logoBlack = this.extractProperty(empresa, "logoBlack",
|
|
19
|
+
this.logoColor = this.extractProperty(empresa, "logoColor", CArquivo);
|
|
20
|
+
this.logoBlack = this.extractProperty(empresa, "logoBlack", CArquivo);
|
|
21
21
|
this.id_file_logoBlack = this.toNumber(empresa?.id_file_logoBlack);
|
|
22
22
|
this.id_file_logoColor = this.toNumber(empresa?.id_file_logoColor);
|
|
23
23
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { IBoletoFinancialAccountPdfResponse, IBoletoRemittanceBatchHistoryItem, IBoletoRemittanceBatchHistoryResponse, IBoletoRemittanceBlockedItem, IBoletoRemittanceDownloadResponse, IBoletoRemittanceEligibleItem, IBoletoRemittanceGenerateResponse } from '../../interfaces/financial/iboleto-remittance.js';
|
|
2
2
|
import { BaseModel } from '../common/base-model.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CBoletoRemittanceBlockedItem extends BaseModel implements IBoletoRemittanceBlockedItem {
|
|
4
4
|
financialAccountId: number;
|
|
5
5
|
reasonCode: string;
|
|
6
6
|
reasonMessage: string;
|
|
7
7
|
financialAccount?: IBoletoRemittanceBlockedItem['financialAccount'];
|
|
8
8
|
constructor(item?: Partial<IBoletoRemittanceBlockedItem> | null);
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class CBoletoRemittanceEligibleItem extends BaseModel implements IBoletoRemittanceEligibleItem {
|
|
11
11
|
financialAccountId: number;
|
|
12
12
|
instructionFingerprint: string;
|
|
13
13
|
financialAccount?: IBoletoRemittanceEligibleItem['financialAccount'];
|
|
14
14
|
constructor(item?: Partial<IBoletoRemittanceEligibleItem> | null);
|
|
15
15
|
}
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class CBoletoRemittanceGenerateResponse extends BaseModel implements IBoletoRemittanceGenerateResponse {
|
|
17
17
|
batchId: number;
|
|
18
18
|
status: string;
|
|
19
19
|
eligibleCount: number;
|
|
20
20
|
blockedCount: number;
|
|
21
|
-
blockedItems:
|
|
21
|
+
blockedItems: CBoletoRemittanceBlockedItem[];
|
|
22
22
|
fileContent: string | null;
|
|
23
23
|
constructor(response?: Partial<IBoletoRemittanceGenerateResponse> | null);
|
|
24
24
|
}
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class CBoletoRemittanceBatchHistoryItem extends BaseModel implements IBoletoRemittanceBatchHistoryItem {
|
|
26
26
|
id: number;
|
|
27
27
|
bank_layout_key: string;
|
|
28
28
|
status: string;
|
|
@@ -37,16 +37,16 @@ export declare class cBoletoRemittanceBatchHistoryItem extends BaseModel impleme
|
|
|
37
37
|
updatedAt?: string | Date | null;
|
|
38
38
|
constructor(item?: Partial<IBoletoRemittanceBatchHistoryItem> | null);
|
|
39
39
|
}
|
|
40
|
-
export declare class
|
|
41
|
-
items:
|
|
40
|
+
export declare class CBoletoRemittanceBatchHistoryResponse extends BaseModel implements IBoletoRemittanceBatchHistoryResponse {
|
|
41
|
+
items: CBoletoRemittanceBatchHistoryItem[];
|
|
42
42
|
constructor(response?: Partial<IBoletoRemittanceBatchHistoryResponse> | null);
|
|
43
43
|
}
|
|
44
|
-
export declare class
|
|
44
|
+
export declare class CBoletoRemittanceDownloadResponse extends BaseModel implements IBoletoRemittanceDownloadResponse {
|
|
45
45
|
batch_id: number;
|
|
46
46
|
content: string;
|
|
47
47
|
constructor(response?: Partial<IBoletoRemittanceDownloadResponse> | null);
|
|
48
48
|
}
|
|
49
|
-
export declare class
|
|
49
|
+
export declare class CBoletoFinancialAccountPdfResponse extends BaseModel implements IBoletoFinancialAccountPdfResponse {
|
|
50
50
|
financial_account_id: number;
|
|
51
51
|
file_name: string;
|
|
52
52
|
mime_type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from '../common/base-model.js';
|
|
2
|
-
export class
|
|
2
|
+
export class CBoletoRemittanceBlockedItem extends BaseModel {
|
|
3
3
|
constructor(item) {
|
|
4
4
|
super(item);
|
|
5
5
|
this.financialAccountId = 0;
|
|
@@ -13,7 +13,7 @@ export class cBoletoRemittanceBlockedItem extends BaseModel {
|
|
|
13
13
|
this.financialAccount = item.financialAccount ?? null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export class
|
|
16
|
+
export class CBoletoRemittanceEligibleItem extends BaseModel {
|
|
17
17
|
constructor(item) {
|
|
18
18
|
super(item);
|
|
19
19
|
this.financialAccountId = 0;
|
|
@@ -25,7 +25,7 @@ export class cBoletoRemittanceEligibleItem extends BaseModel {
|
|
|
25
25
|
this.financialAccount = item.financialAccount ?? null;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export class
|
|
28
|
+
export class CBoletoRemittanceGenerateResponse extends BaseModel {
|
|
29
29
|
constructor(response) {
|
|
30
30
|
super(response);
|
|
31
31
|
this.batchId = 0;
|
|
@@ -40,11 +40,11 @@ export class cBoletoRemittanceGenerateResponse extends BaseModel {
|
|
|
40
40
|
this.status = response.status ?? '';
|
|
41
41
|
this.eligibleCount = this.toNumber(response.eligibleCount) ?? 0;
|
|
42
42
|
this.blockedCount = this.toNumber(response.blockedCount) ?? 0;
|
|
43
|
-
this.blockedItems = this.toTypedArray(response.blockedItems,
|
|
43
|
+
this.blockedItems = this.toTypedArray(response.blockedItems, CBoletoRemittanceBlockedItem);
|
|
44
44
|
this.fileContent = response.fileContent ?? null;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
export class
|
|
47
|
+
export class CBoletoRemittanceBatchHistoryItem extends BaseModel {
|
|
48
48
|
constructor(item) {
|
|
49
49
|
super(item);
|
|
50
50
|
this.id = 0;
|
|
@@ -72,16 +72,16 @@ export class cBoletoRemittanceBatchHistoryItem extends BaseModel {
|
|
|
72
72
|
this.updatedAt = item.updatedAt ?? null;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
export class
|
|
75
|
+
export class CBoletoRemittanceBatchHistoryResponse extends BaseModel {
|
|
76
76
|
constructor(response) {
|
|
77
77
|
super(response);
|
|
78
78
|
this.items = [];
|
|
79
79
|
if (!response)
|
|
80
80
|
return;
|
|
81
|
-
this.items = this.toTypedArray(response.items,
|
|
81
|
+
this.items = this.toTypedArray(response.items, CBoletoRemittanceBatchHistoryItem);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
export class
|
|
84
|
+
export class CBoletoRemittanceDownloadResponse extends BaseModel {
|
|
85
85
|
constructor(response) {
|
|
86
86
|
super(response);
|
|
87
87
|
this.batch_id = 0;
|
|
@@ -92,7 +92,7 @@ export class cBoletoRemittanceDownloadResponse extends BaseModel {
|
|
|
92
92
|
this.content = response.content ?? '';
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
export class
|
|
95
|
+
export class CBoletoFinancialAccountPdfResponse extends BaseModel {
|
|
96
96
|
constructor(response) {
|
|
97
97
|
super(response);
|
|
98
98
|
this.financial_account_id = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBoletoReturnOccurrenceResult, IBoletoReturnProcessingItem, IBoletoReturnProcessResponse, IBoletoReturnProcessingsResponse } from '../../interfaces/financial/iboleto-return.js';
|
|
2
2
|
import { BaseModel } from '../common/base-model.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CBoletoReturnOccurrenceResult extends BaseModel implements IBoletoReturnOccurrenceResult {
|
|
4
4
|
occurrenceCode: string;
|
|
5
5
|
action: string;
|
|
6
6
|
actionResult: 'APPLIED' | 'IGNORED' | 'CONFLICT' | 'FAILED';
|
|
@@ -13,13 +13,13 @@ export declare class cBoletoReturnOccurrenceResult extends BaseModel implements
|
|
|
13
13
|
resultReason?: string;
|
|
14
14
|
constructor(item?: Partial<IBoletoReturnOccurrenceResult> | null);
|
|
15
15
|
}
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class CBoletoReturnProcessResponse extends BaseModel implements IBoletoReturnProcessResponse {
|
|
17
17
|
normalizedCount: number;
|
|
18
18
|
appliedCount: number;
|
|
19
|
-
results:
|
|
19
|
+
results: CBoletoReturnOccurrenceResult[];
|
|
20
20
|
constructor(response?: Partial<IBoletoReturnProcessResponse> | null);
|
|
21
21
|
}
|
|
22
|
-
export declare class
|
|
22
|
+
export declare class CBoletoReturnProcessingItem extends BaseModel implements IBoletoReturnProcessingItem {
|
|
23
23
|
id: number;
|
|
24
24
|
uId: string;
|
|
25
25
|
bankLayoutKey: string;
|
|
@@ -32,13 +32,13 @@ export declare class cBoletoReturnProcessingItem extends BaseModel implements IB
|
|
|
32
32
|
appliedCount: number;
|
|
33
33
|
conflictCount: number;
|
|
34
34
|
ignoredCount: number;
|
|
35
|
-
occurrences:
|
|
35
|
+
occurrences: CBoletoReturnOccurrenceResult[];
|
|
36
36
|
processedAt: string | Date | null;
|
|
37
37
|
createdAt: string | Date | null;
|
|
38
38
|
constructor(item?: Partial<IBoletoReturnProcessingItem> | null);
|
|
39
39
|
}
|
|
40
|
-
export declare class
|
|
41
|
-
items:
|
|
40
|
+
export declare class CBoletoReturnProcessingsResponse extends BaseModel implements IBoletoReturnProcessingsResponse {
|
|
41
|
+
items: CBoletoReturnProcessingItem[];
|
|
42
42
|
constructor(response?: Partial<IBoletoReturnProcessingsResponse> | null);
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=boleto-return.d.ts.map
|