@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.
Files changed (65) hide show
  1. package/dist/models/arquivo/arquivo.d.ts +1 -1
  2. package/dist/models/arquivo/arquivo.js +1 -1
  3. package/dist/models/bank/bank-import.d.ts +10 -10
  4. package/dist/models/bank/bank-import.js +12 -12
  5. package/dist/models/bank/bank-reconciliation.d.ts +12 -12
  6. package/dist/models/bank/bank-reconciliation.js +13 -13
  7. package/dist/models/bank/bank-report.d.ts +26 -26
  8. package/dist/models/bank/bank-report.js +33 -33
  9. package/dist/models/bank/bank-transaction.d.ts +10 -10
  10. package/dist/models/bank/bank-transaction.js +9 -9
  11. package/dist/models/bank/bank.d.ts +3 -3
  12. package/dist/models/bank/bank.js +4 -4
  13. package/dist/models/contato/contato.d.ts +2 -2
  14. package/dist/models/contato/contato.js +2 -2
  15. package/dist/models/empresa/empresa.d.ts +6 -6
  16. package/dist/models/empresa/empresa.js +6 -6
  17. package/dist/models/financial/boleto-remittance.d.ts +9 -9
  18. package/dist/models/financial/boleto-remittance.js +9 -9
  19. package/dist/models/financial/boleto-return.d.ts +7 -7
  20. package/dist/models/financial/boleto-return.js +7 -7
  21. package/dist/models/financial/financial-account.d.ts +5 -5
  22. package/dist/models/financial/financial-account.js +5 -5
  23. package/dist/models/financial/financial-import.d.ts +14 -14
  24. package/dist/models/financial/financial-import.js +16 -16
  25. package/dist/models/form-site/form-site.d.ts +1 -1
  26. package/dist/models/form-site/form-site.js +1 -1
  27. package/dist/models/fornecedor/fornecedor.d.ts +3 -3
  28. package/dist/models/fornecedor/fornecedor.js +3 -3
  29. package/dist/models/lista-generica/lista-generica.d.ts +7 -7
  30. package/dist/models/lista-generica/lista-generica.js +11 -11
  31. package/dist/models/login/login.d.ts +1 -1
  32. package/dist/models/login/login.js +1 -1
  33. package/dist/models/marketing-campaign/campaign-event.d.ts +1 -1
  34. package/dist/models/marketing-campaign/campaign-event.js +1 -1
  35. package/dist/models/marketing-campaign/campaign-recipient.d.ts +1 -1
  36. package/dist/models/marketing-campaign/campaign-recipient.js +1 -1
  37. package/dist/models/marketing-campaign/campaign-recurrence-rule.d.ts +1 -1
  38. package/dist/models/marketing-campaign/campaign-recurrence-rule.js +1 -1
  39. package/dist/models/marketing-campaign/campaign.d.ts +1 -1
  40. package/dist/models/marketing-campaign/campaign.js +1 -1
  41. package/dist/models/marketing-campaign/whatsapp-opt-in.d.ts +1 -1
  42. package/dist/models/marketing-campaign/whatsapp-opt-in.js +1 -1
  43. package/dist/models/operador/operador.d.ts +3 -3
  44. package/dist/models/operador/operador.js +3 -3
  45. package/dist/models/orcamento/orcamento.d.ts +9 -9
  46. package/dist/models/orcamento/orcamento.js +9 -9
  47. package/dist/models/ordem-producao/ordem-producao.d.ts +9 -9
  48. package/dist/models/ordem-producao/ordem-producao.js +9 -9
  49. package/dist/models/pedido-compra/pedido-compra.d.ts +6 -6
  50. package/dist/models/pedido-compra/pedido-compra.js +6 -6
  51. package/dist/models/pessoa/pessoa.d.ts +13 -13
  52. package/dist/models/pessoa/pessoa.js +13 -13
  53. package/dist/models/produto/produto.d.ts +2 -2
  54. package/dist/models/produto/produto.js +2 -2
  55. package/dist/models/rir/rir.d.ts +6 -6
  56. package/dist/models/rir/rir.js +6 -6
  57. package/dist/models/rnc/rnc.d.ts +2 -2
  58. package/dist/models/rnc/rnc.js +2 -2
  59. package/dist/models/usuario/usuario.d.ts +3 -3
  60. package/dist/models/usuario/usuario.js +3 -3
  61. package/dist/models/vendatiny/vendatiny.d.ts +2 -2
  62. package/dist/models/vendatiny/vendatiny.js +2 -2
  63. package/dist/models/vendedor/vendedor.d.ts +3 -3
  64. package/dist/models/vendedor/vendedor.js +3 -3
  65. package/package.json +1 -1
@@ -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 { cBank, cBankAccount } from "./bank.js";
5
+ import { CBank, CBankAccount } from "./bank.js";
6
6
  type BankTransactionInput = Partial<IBankTransactionDto> & {
7
7
  updatedAt?: string | Date | null;
8
- account?: ConstructorParameters<typeof cBankAccount>[0] | null;
9
- bank?: ConstructorParameters<typeof cBank>[0] | null;
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 cBankTransaction extends BaseModel implements IBankTransactionDto {
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?: cBankAccount | null;
34
- bank?: cBank | null;
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 cBankTransactionPage extends BaseModel {
39
- rows: cBankTransaction[];
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 cBankTransactionsResponse extends BaseModel implements IBankTransactionsResponse {
47
- data: cBankTransactionPage;
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 { cBank, cBankAccount } from "./bank.js";
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 cBankTransaction extends BaseModel {
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 cBankAccount(normalized.account)
67
+ ? new CBankAccount(normalized.account)
68
68
  : null;
69
- this.bank = normalized.bank ? new cBank(normalized.bank) : null;
69
+ this.bank = normalized.bank ? new CBank(normalized.bank) : null;
70
70
  this.updatedAt = normalizeDateTime(normalized.updatedAt);
71
71
  }
72
72
  }
73
- export class cBankTransactionPage extends BaseModel {
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, cBankTransaction);
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 cBankTransactionsResponse extends BaseModel {
104
+ export class CBankTransactionsResponse extends BaseModel {
105
105
  constructor(response) {
106
106
  super(response);
107
- this.data = new cBankTransactionPage();
107
+ this.data = new CBankTransactionPage();
108
108
  if (!response) {
109
109
  return;
110
110
  }
111
- this.data = new cBankTransactionPage(response.data);
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 cBank extends BaseModel implements IBanco {
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 cBankAccount extends BaseModel implements IBankAccount {
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?: cBank | null;
55
+ bank?: CBank | null;
56
56
  branch: string;
57
57
  account_number: string;
58
58
  account_type: EBankAccountType;
@@ -13,7 +13,7 @@ function resolveBankAccountType(value) {
13
13
  return EBankAccountType.CHECKING;
14
14
  }
15
15
  }
16
- export class cBank extends BaseModel {
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 cBankAccount extends BaseModel {
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 cBank(account.bank);
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 cBank({ nome: account.bank_name, ispb: "", ativo: true });
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 { cPessoa } from "../pessoa/pessoa.js";
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: cPessoa[];
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 { cPessoa } from "../pessoa/pessoa.js";
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, cPessoa);
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 { cArquivo } from "../arquivo/arquivo.js";
2
+ import { CArquivo } from "../arquivo/arquivo.js";
3
3
  import { BaseModel } from "../common/base-model.js";
4
- import { cPessoa } from "../pessoa/pessoa.js";
5
- export declare class cEmpresa extends BaseModel implements IEmpresa {
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: cPessoa;
11
+ pessoa: CPessoa;
12
12
  token_tiny: string;
13
- logoColor: cArquivo;
14
- logoBlack: cArquivo;
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 { cArquivo } from "../arquivo/arquivo.js";
1
+ import { CArquivo } from "../arquivo/arquivo.js";
2
2
  import { BaseModel } from "../common/base-model.js";
3
- import { cPessoa } from "../pessoa/pessoa.js";
4
- export class cEmpresa extends BaseModel {
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 cPessoa(empresa.pessoa) : undefined;
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", cArquivo);
20
- this.logoBlack = this.extractProperty(empresa, "logoBlack", cArquivo);
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 cBoletoRemittanceBlockedItem extends BaseModel implements IBoletoRemittanceBlockedItem {
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 cBoletoRemittanceEligibleItem extends BaseModel implements IBoletoRemittanceEligibleItem {
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 cBoletoRemittanceGenerateResponse extends BaseModel implements IBoletoRemittanceGenerateResponse {
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: cBoletoRemittanceBlockedItem[];
21
+ blockedItems: CBoletoRemittanceBlockedItem[];
22
22
  fileContent: string | null;
23
23
  constructor(response?: Partial<IBoletoRemittanceGenerateResponse> | null);
24
24
  }
25
- export declare class cBoletoRemittanceBatchHistoryItem extends BaseModel implements IBoletoRemittanceBatchHistoryItem {
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 cBoletoRemittanceBatchHistoryResponse extends BaseModel implements IBoletoRemittanceBatchHistoryResponse {
41
- items: cBoletoRemittanceBatchHistoryItem[];
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 cBoletoRemittanceDownloadResponse extends BaseModel implements IBoletoRemittanceDownloadResponse {
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 cBoletoFinancialAccountPdfResponse extends BaseModel implements IBoletoFinancialAccountPdfResponse {
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 cBoletoRemittanceBlockedItem extends BaseModel {
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 cBoletoRemittanceEligibleItem extends BaseModel {
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 cBoletoRemittanceGenerateResponse extends BaseModel {
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, cBoletoRemittanceBlockedItem);
43
+ this.blockedItems = this.toTypedArray(response.blockedItems, CBoletoRemittanceBlockedItem);
44
44
  this.fileContent = response.fileContent ?? null;
45
45
  }
46
46
  }
47
- export class cBoletoRemittanceBatchHistoryItem extends BaseModel {
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 cBoletoRemittanceBatchHistoryResponse extends BaseModel {
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, cBoletoRemittanceBatchHistoryItem);
81
+ this.items = this.toTypedArray(response.items, CBoletoRemittanceBatchHistoryItem);
82
82
  }
83
83
  }
84
- export class cBoletoRemittanceDownloadResponse extends BaseModel {
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 cBoletoFinancialAccountPdfResponse extends BaseModel {
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 cBoletoReturnOccurrenceResult extends BaseModel implements IBoletoReturnOccurrenceResult {
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 cBoletoReturnProcessResponse extends BaseModel implements IBoletoReturnProcessResponse {
16
+ export declare class CBoletoReturnProcessResponse extends BaseModel implements IBoletoReturnProcessResponse {
17
17
  normalizedCount: number;
18
18
  appliedCount: number;
19
- results: cBoletoReturnOccurrenceResult[];
19
+ results: CBoletoReturnOccurrenceResult[];
20
20
  constructor(response?: Partial<IBoletoReturnProcessResponse> | null);
21
21
  }
22
- export declare class cBoletoReturnProcessingItem extends BaseModel implements IBoletoReturnProcessingItem {
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: cBoletoReturnOccurrenceResult[];
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 cBoletoReturnProcessingsResponse extends BaseModel implements IBoletoReturnProcessingsResponse {
41
- items: cBoletoReturnProcessingItem[];
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
@@ -1,5 +1,5 @@
1
1
  import { BaseModel } from '../common/base-model.js';
2
- export class cBoletoReturnOccurrenceResult extends BaseModel {
2
+ export class CBoletoReturnOccurrenceResult extends BaseModel {
3
3
  constructor(item) {
4
4
  super(item);
5
5
  this.occurrenceCode = '';
@@ -25,7 +25,7 @@ export class cBoletoReturnOccurrenceResult extends BaseModel {
25
25
  this.resultReason = item.resultReason;
26
26
  }
27
27
  }
28
- export class cBoletoReturnProcessResponse extends BaseModel {
28
+ export class CBoletoReturnProcessResponse extends BaseModel {
29
29
  constructor(response) {
30
30
  super(response);
31
31
  this.normalizedCount = 0;
@@ -35,10 +35,10 @@ export class cBoletoReturnProcessResponse extends BaseModel {
35
35
  return;
36
36
  this.normalizedCount = this.toNumber(response.normalizedCount) ?? 0;
37
37
  this.appliedCount = this.toNumber(response.appliedCount) ?? 0;
38
- this.results = this.toTypedArray(response.results, cBoletoReturnOccurrenceResult);
38
+ this.results = this.toTypedArray(response.results, CBoletoReturnOccurrenceResult);
39
39
  }
40
40
  }
41
- export class cBoletoReturnProcessingItem extends BaseModel {
41
+ export class CBoletoReturnProcessingItem extends BaseModel {
42
42
  constructor(item) {
43
43
  super(item);
44
44
  this.id = 0;
@@ -69,18 +69,18 @@ export class cBoletoReturnProcessingItem extends BaseModel {
69
69
  this.appliedCount = this.toNumber(item.appliedCount) ?? 0;
70
70
  this.conflictCount = this.toNumber(item.conflictCount) ?? 0;
71
71
  this.ignoredCount = this.toNumber(item.ignoredCount) ?? 0;
72
- this.occurrences = this.toTypedArray(item.occurrences, cBoletoReturnOccurrenceResult);
72
+ this.occurrences = this.toTypedArray(item.occurrences, CBoletoReturnOccurrenceResult);
73
73
  this.processedAt = item.processedAt ?? null;
74
74
  this.createdAt = item.createdAt ?? null;
75
75
  }
76
76
  }
77
- export class cBoletoReturnProcessingsResponse extends BaseModel {
77
+ export class CBoletoReturnProcessingsResponse extends BaseModel {
78
78
  constructor(response) {
79
79
  super(response);
80
80
  this.items = [];
81
81
  if (!response)
82
82
  return;
83
- this.items = this.toTypedArray(response.items, cBoletoReturnProcessingItem);
83
+ this.items = this.toTypedArray(response.items, CBoletoReturnProcessingItem);
84
84
  }
85
85
  }
86
86
  //# sourceMappingURL=boleto-return.js.map
@@ -5,8 +5,8 @@ import type { IFinancialAccount } from "../../interfaces/financial/ifinancial-ac
5
5
  import type { IFinancialAccountBoletoInfo } from "../../interfaces/financial/ifinancial-account-boleto.js";
6
6
  import type { IFinancialInstallment } from "../../interfaces/financial/ifinancial-installment.js";
7
7
  import type { IFinancialSettlement } from "../../interfaces/financial/ifinancial-settlement.js";
8
- import { cListaGenericaItem } from "../lista-generica/lista-generica.js";
9
- import { cArquivo } from "../arquivo/arquivo.js";
8
+ import { CListaGenericaItem } from "../lista-generica/lista-generica.js";
9
+ import { CArquivo } from "../arquivo/arquivo.js";
10
10
  import { BaseModel } from "../common/base-model.js";
11
11
  type NumericLike = number | string;
12
12
  type NullableNumericLike = NumericLike | null;
@@ -95,7 +95,7 @@ export interface IFinancialAccountApiResponse {
95
95
  updatedAt?: string | null;
96
96
  }
97
97
  type FinancialAccountInput = Partial<IFinancialAccount> | IFinancialAccountApiResponse;
98
- export declare class cFinancialAccount extends BaseModel implements IFinancialAccount {
98
+ export declare class CFinancialAccount extends BaseModel implements IFinancialAccount {
99
99
  id?: number;
100
100
  company_id: number;
101
101
  account_type: EFinancialAccountType;
@@ -110,7 +110,7 @@ export declare class cFinancialAccount extends BaseModel implements IFinancialAc
110
110
  title: string;
111
111
  category?: string | null;
112
112
  id_categoria_financeira?: number | null;
113
- categoria_financeira?: cListaGenericaItem | null;
113
+ categoria_financeira?: CListaGenericaItem | null;
114
114
  issue_date: string;
115
115
  due_date: string;
116
116
  original_amount: number;
@@ -129,7 +129,7 @@ export declare class cFinancialAccount extends BaseModel implements IFinancialAc
129
129
  account_number?: string | null;
130
130
  } | null;
131
131
  note?: string | null;
132
- files?: cArquivo[] | null;
132
+ files?: CArquivo[] | null;
133
133
  settlements?: IFinancialSettlement[] | null;
134
134
  installments?: IFinancialInstallment[] | null;
135
135
  boleto?: IFinancialAccountBoletoInfo | null;
@@ -1,6 +1,6 @@
1
1
  import { EFinancialAccountType } from "../../enums/financial/e-financial-account-type.js";
2
- import { cListaGenericaItem } from "../lista-generica/lista-generica.js";
3
- import { cArquivo } from "../arquivo/arquivo.js";
2
+ import { CListaGenericaItem } from "../lista-generica/lista-generica.js";
3
+ import { CArquivo } from "../arquivo/arquivo.js";
4
4
  import { BaseModel } from "../common/base-model.js";
5
5
  function mapConciliation(c) {
6
6
  return {
@@ -52,7 +52,7 @@ function mapSettlement(s) {
52
52
  updatedAt: s.updatedAt ?? null,
53
53
  };
54
54
  }
55
- export class cFinancialAccount extends BaseModel {
55
+ export class CFinancialAccount extends BaseModel {
56
56
  constructor(account) {
57
57
  super(account);
58
58
  if (!account) {
@@ -70,7 +70,7 @@ export class cFinancialAccount extends BaseModel {
70
70
  this.id_categoria_financeira =
71
71
  this.toNumber(raw.id_categoria_financeira) ?? null;
72
72
  this.categoria_financeira = raw.categoria_financeira
73
- ? new cListaGenericaItem(raw.categoria_financeira)
73
+ ? new CListaGenericaItem(raw.categoria_financeira)
74
74
  : null;
75
75
  this.issue_date = raw.issue_date ?? "";
76
76
  this.due_date = raw.due_date ?? "";
@@ -86,7 +86,7 @@ export class cFinancialAccount extends BaseModel {
86
86
  this.bank_account = raw.bank_account ?? null;
87
87
  this.note = raw.note ?? null;
88
88
  const rawFiles = raw.files;
89
- this.files = rawFiles ? rawFiles.map((f) => new cArquivo(f)) : null;
89
+ this.files = rawFiles ? rawFiles.map((f) => new CArquivo(f)) : null;
90
90
  const rawSettlements = raw.settlements ?? null;
91
91
  this.settlements = rawSettlements
92
92
  ? rawSettlements.map(mapSettlement)
@@ -1,7 +1,7 @@
1
1
  import type { IFinancialImportConfirmResponse, IFinancialImportFailedRow, IFinancialImportPreviewData, IFinancialImportPreviewInvalidRow, IFinancialImportPreviewResponse, IFinancialImportPreviewRow, TFinancialImportOperation } from "../../interfaces/financial/ifinancial-import-endpoints.js";
2
2
  import type { EFinancialAccountType } from "../../enums/financial/e-financial-account-type.js";
3
3
  import { BaseModel } from "../common/base-model.js";
4
- export declare class cFinancialImportPreviewLine extends BaseModel implements IFinancialImportPreviewRow {
4
+ export declare class CFinancialImportPreviewLine extends BaseModel implements IFinancialImportPreviewRow {
5
5
  line: number;
6
6
  operation: TFinancialImportOperation;
7
7
  financial_account_id?: number | null;
@@ -22,12 +22,12 @@ export declare class cFinancialImportPreviewLine extends BaseModel implements IF
22
22
  force_create: boolean;
23
23
  constructor(row?: Partial<IFinancialImportPreviewRow> | null);
24
24
  }
25
- export declare class cFinancialImportPreviewInvalidLine extends BaseModel implements IFinancialImportPreviewInvalidRow {
25
+ export declare class CFinancialImportPreviewInvalidLine extends BaseModel implements IFinancialImportPreviewInvalidRow {
26
26
  line: number;
27
27
  error: string;
28
28
  constructor(row?: Partial<IFinancialImportPreviewInvalidRow> | null);
29
29
  }
30
- export declare class cFinancialImportPreviewResult extends BaseModel implements IFinancialImportPreviewData {
30
+ export declare class CFinancialImportPreviewResult extends BaseModel implements IFinancialImportPreviewData {
31
31
  batch_id: number;
32
32
  total_rows: number;
33
33
  total_valid_rows: number;
@@ -35,21 +35,21 @@ export declare class cFinancialImportPreviewResult extends BaseModel implements
35
35
  truncated: boolean;
36
36
  delimiter?: string;
37
37
  headers?: string[];
38
- preview_rows: cFinancialImportPreviewLine[];
39
- invalid_rows: cFinancialImportPreviewInvalidLine[];
38
+ preview_rows: CFinancialImportPreviewLine[];
39
+ invalid_rows: CFinancialImportPreviewInvalidLine[];
40
40
  constructor(result?: Partial<IFinancialImportPreviewData> | null);
41
41
  }
42
- export declare class cFinancialImportFailedLine extends BaseModel implements IFinancialImportFailedRow {
42
+ export declare class CFinancialImportFailedLine extends BaseModel implements IFinancialImportFailedRow {
43
43
  line: number;
44
44
  idempotency_hash: string;
45
45
  error: string;
46
46
  constructor(row?: Partial<IFinancialImportFailedRow> | null);
47
47
  }
48
- export declare class cFinancialImportPreviewResponse extends BaseModel implements IFinancialImportPreviewResponse {
49
- data: cFinancialImportPreviewResult;
48
+ export declare class CFinancialImportPreviewResponse extends BaseModel implements IFinancialImportPreviewResponse {
49
+ data: CFinancialImportPreviewResult;
50
50
  constructor(response?: Partial<IFinancialImportPreviewResponse> | null);
51
51
  }
52
- export declare class cFinancialImportConfirmResult extends BaseModel {
52
+ export declare class CFinancialImportConfirmResult extends BaseModel {
53
53
  confirmed_by: number | string;
54
54
  confirmed_at: string;
55
55
  total_received_rows: number;
@@ -58,14 +58,14 @@ export declare class cFinancialImportConfirmResult extends BaseModel {
58
58
  total_failed_rows: number;
59
59
  total_created_rows: number;
60
60
  total_updated_rows: number;
61
- accepted_rows: cFinancialImportPreviewLine[];
62
- duplicated_rows_in_payload: cFinancialImportPreviewLine[];
63
- failed_rows: cFinancialImportFailedLine[];
61
+ accepted_rows: CFinancialImportPreviewLine[];
62
+ duplicated_rows_in_payload: CFinancialImportPreviewLine[];
63
+ failed_rows: CFinancialImportFailedLine[];
64
64
  batch_id: number;
65
65
  constructor(response?: Partial<IFinancialImportConfirmResponse["data"]> | null);
66
66
  }
67
- export declare class cFinancialImportConfirmResponse extends BaseModel implements IFinancialImportConfirmResponse {
68
- data: cFinancialImportConfirmResult;
67
+ export declare class CFinancialImportConfirmResponse extends BaseModel implements IFinancialImportConfirmResponse {
68
+ data: CFinancialImportConfirmResult;
69
69
  constructor(response?: Partial<IFinancialImportConfirmResponse> | null);
70
70
  }
71
71
  //# sourceMappingURL=financial-import.d.ts.map