@cbm-common/cbm-types 0.0.111 → 0.0.112

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 (27) hide show
  1. package/lib/components/add-down-payment/add-down-payment.d.ts +196 -0
  2. package/lib/components/relationship-bank-conciliation-alert/relationship-bank-conciliation-alert.component.d.ts +12 -0
  3. package/lib/domain/models/bank-conciliation.domain.model.d.ts +406 -0
  4. package/lib/domain/models/down-payment.domain.model.d.ts +353 -0
  5. package/lib/domain/models/general.domain.model.d.ts +7 -0
  6. package/lib/domain/models/income.domain.model.d.ts +479 -0
  7. package/lib/domain/repositories/bank-conciliation.domain.repository.d.ts +18 -0
  8. package/lib/domain/repositories/down-payment.domain.repository.d.ts +17 -0
  9. package/lib/domain/repositories/income.domain.repository.d.ts +18 -0
  10. package/lib/domain/services/cbm-validators.service.d.ts +12 -0
  11. package/lib/domain/services/general.domain.service.d.ts +11 -0
  12. package/lib/domain/services/relationship-movements.config.d.ts +23 -0
  13. package/lib/infrastructure/repositories/bank-conciliation.infrastructure.repository.d.ts +15 -0
  14. package/lib/infrastructure/repositories/down-payment.infrastructure.repository.d.ts +14 -0
  15. package/lib/infrastructure/repositories/income.infrastructure.repository.d.ts +15 -0
  16. package/lib/infrastructure/services/bank-conciliation.infrastructure.service.d.ts +21 -0
  17. package/lib/infrastructure/services/down-payment.infrastructure.service.d.ts +18 -0
  18. package/lib/infrastructure/services/income.infrastructure.service.d.ts +19 -0
  19. package/lib/types/collection-names.d.ts +207 -0
  20. package/lib/types/event-modules.d.ts +38 -0
  21. package/lib/types/event-routes.d.ts +2 -0
  22. package/lib/types/route.d.ts +12 -0
  23. package/package.json +1 -1
  24. package/public-api.d.ts +7 -0
  25. package/lib/remotes/services/auth.service.d.ts +0 -3
  26. package/lib/remotes/services/web-socket.service.d.ts +0 -4
  27. package/lib/remotes/services.remote.d.ts +0 -3
@@ -0,0 +1,479 @@
1
+ export declare namespace IIncomeModel {
2
+ type DetailType = 'automatic' | 'manual';
3
+ type TTypeEstablishment = 'matrix' | 'branch';
4
+ enum ETypeIncome {
5
+ AUTOMATIC = "automatic",
6
+ MANUAL = "manual"
7
+ }
8
+ namespace ETypeIncome {
9
+ function fromString(value: string): ETypeIncome;
10
+ function toString(value: ETypeIncome): TTypeIncome;
11
+ }
12
+ type TTypeIncome = `${ETypeIncome}`;
13
+ interface ListParams {
14
+ page: number;
15
+ size: number;
16
+ document_number?: string;
17
+ date_end?: number;
18
+ date_begin?: number;
19
+ reverse_status?: boolean;
20
+ seller_id?: string;
21
+ client_id?: string;
22
+ }
23
+ interface ListResponse {
24
+ success: boolean;
25
+ pageNum: number;
26
+ pageSize: number;
27
+ pages: number;
28
+ total: number;
29
+ items: ListResponse.Item[];
30
+ }
31
+ namespace ListResponse {
32
+ interface Item {
33
+ _id: string;
34
+ company_id: string;
35
+ user_id: string;
36
+ date_document: number;
37
+ date_account: number;
38
+ document_nomenclature: string;
39
+ document_number: string;
40
+ movement_number?: string;
41
+ total: number;
42
+ company_NIF: string;
43
+ company_address: string;
44
+ company_trade_name: string;
45
+ company_business_name: string;
46
+ cost_center_id: string;
47
+ cost_center_code: string;
48
+ cost_center_name: string;
49
+ created_user: string;
50
+ reverse_status: boolean;
51
+ enabled?: boolean;
52
+ created_at: number;
53
+ commentary?: string;
54
+ detail_income: Item.DetailIncome[];
55
+ detail_payment_options: Item.DetailPaymentOption[];
56
+ clientsDetail?: string[];
57
+ paymentsDetails?: string[];
58
+ sellersDetail?: string[];
59
+ checked?: boolean;
60
+ total_credits?: number;
61
+ type?: TTypeIncome;
62
+ }
63
+ namespace Item {
64
+ interface DetailIncome {
65
+ _id: string;
66
+ income_id: string;
67
+ credit_management_id: string;
68
+ credit_management_detail_id: string;
69
+ installment: string;
70
+ paid: number;
71
+ previous_balance: number;
72
+ subsequent_balance: number;
73
+ date_expired: number;
74
+ origin_credit: string;
75
+ period: number;
76
+ created_user: string;
77
+ counter?: number;
78
+ invoice_date: number;
79
+ invoice_number: string;
80
+ client_id: string;
81
+ client_credit_limit?: number;
82
+ client_payment_deadline?: number;
83
+ client_business_name: string;
84
+ client_trade_name: string;
85
+ client_document_number: string;
86
+ client_credit_application: boolean;
87
+ client_document_type_id: string;
88
+ client_document_type_name: string;
89
+ client_document_type_code: string;
90
+ client_category_id: string;
91
+ client_category_name: string;
92
+ client_branch_id: string;
93
+ client_branch_code: string;
94
+ client_branch_name: string;
95
+ client_branch_address: string;
96
+ client_branch_email: string[];
97
+ client_branch_phone_code?: string;
98
+ client_branch_phone?: string;
99
+ client_branch_cellphone?: string;
100
+ client_branch_type_establishment: `${TTypeEstablishment}`;
101
+ client_branch_province_id?: string;
102
+ client_branch_province_code?: string;
103
+ client_branch_province_name?: string;
104
+ client_branch_canton_id?: string;
105
+ client_branch_canton_code?: string;
106
+ client_branch_canton_name?: string;
107
+ client_branch_parish_id?: string;
108
+ client_branch_parish_code?: string;
109
+ client_branch_parish_name?: string;
110
+ client_branch_longitude?: number;
111
+ client_branch_latitude?: number;
112
+ client_branch_seller_id: string;
113
+ client_branch_seller_identification_number: string;
114
+ client_branch_seller_full_name: string;
115
+ client_branch_seller_address: string;
116
+ client_branch_seller_email: string[];
117
+ client_branch_seller_cellphone: string;
118
+ client_branch_contact_id?: string;
119
+ client_branch_contact_identification_number?: string;
120
+ client_branch_contact_full_name?: string;
121
+ client_branch_contact_cellphone?: string;
122
+ client_branch_contact_email?: string[];
123
+ }
124
+ interface DetailPaymentOption {
125
+ _id: string;
126
+ income_id: string;
127
+ payment_term_id: string;
128
+ global_bank_id?: string;
129
+ global_bank_code?: string;
130
+ financial_bank_id?: string;
131
+ financial_bank_account_number?: string;
132
+ date: number;
133
+ value: number;
134
+ card_type?: string;
135
+ batch_code?: string;
136
+ financial_bank_name?: string;
137
+ account_name: string;
138
+ number_cheque?: string;
139
+ bank_cheque?: string;
140
+ operation_number: string;
141
+ payment_term_code: string;
142
+ payment_term_name: string;
143
+ created_user: string;
144
+ account_id?: string;
145
+ account_code?: string;
146
+ }
147
+ }
148
+ }
149
+ interface GetOneResponse {
150
+ success: boolean;
151
+ data: GetOneResponse.Data;
152
+ }
153
+ namespace GetOneResponse {
154
+ interface Data {
155
+ _id?: string;
156
+ company_id?: string;
157
+ user_id?: string;
158
+ date_document?: number;
159
+ date_account?: number;
160
+ document_nomenclature?: string;
161
+ document_number?: string;
162
+ movement_number?: string;
163
+ total?: number;
164
+ company_NIF?: string;
165
+ company_address?: string;
166
+ company_trade_name?: string;
167
+ company_business_name?: string;
168
+ cost_center_id?: string;
169
+ cost_center_code?: string;
170
+ cost_center_name?: string;
171
+ enabled?: boolean;
172
+ deleted?: boolean;
173
+ created_user?: string;
174
+ reverse_status?: boolean;
175
+ reverse_reason?: string;
176
+ reverse_at?: number;
177
+ reverse_user?: string;
178
+ commentary?: string;
179
+ detail_income?: Data.DetailIncome[];
180
+ detail_payment_options?: Data.DetailPayment[];
181
+ created_at?: number;
182
+ clientsDetail?: string[];
183
+ paymentsDetails?: string[];
184
+ sellersDetail?: string[];
185
+ type?: TTypeIncome;
186
+ }
187
+ namespace Data {
188
+ interface DetailIncome {
189
+ _id: string;
190
+ income_id: string;
191
+ credit_management_id: string;
192
+ credit_management_detail_id: string;
193
+ credit_document_number: string;
194
+ credit_document_nomenclature: string;
195
+ cost_center_id: string;
196
+ installment: string;
197
+ paid: number;
198
+ previous_balance: number;
199
+ subsequent_balance: number;
200
+ date_expired: number;
201
+ origin_credit: string;
202
+ period: number;
203
+ cost_center_code: string;
204
+ cost_center_name: string;
205
+ created_user: string;
206
+ invoice_number: string;
207
+ invoice_date: number;
208
+ created_at: number;
209
+ client_id: string;
210
+ client_credit_limit?: number;
211
+ client_payment_deadline?: number;
212
+ client_business_name: string;
213
+ client_trade_name: string;
214
+ client_document_number: string;
215
+ client_credit_application: boolean;
216
+ client_document_type_id: string;
217
+ client_document_type_name: string;
218
+ client_document_type_code: string;
219
+ client_category_id: string;
220
+ client_category_name: string;
221
+ client_branch_id: string;
222
+ client_branch_code: string;
223
+ client_branch_name: string;
224
+ client_branch_address: string;
225
+ client_branch_email: string[];
226
+ client_branch_phone_code?: string;
227
+ client_branch_phone?: string;
228
+ client_branch_cellphone?: string;
229
+ client_branch_type_establishment: `${TTypeEstablishment}`;
230
+ client_branch_province_id?: string;
231
+ client_branch_province_code?: string;
232
+ client_branch_province_name?: string;
233
+ client_branch_canton_id?: string;
234
+ client_branch_canton_code?: string;
235
+ client_branch_canton_name?: string;
236
+ client_branch_parish_id?: string;
237
+ client_branch_parish_code?: string;
238
+ client_branch_parish_name?: string;
239
+ client_branch_longitude?: number;
240
+ client_branch_latitude?: number;
241
+ client_branch_seller_id: string;
242
+ client_branch_seller_identification_number: string;
243
+ client_branch_seller_full_name: string;
244
+ client_branch_seller_address: string;
245
+ client_branch_seller_email: string[];
246
+ client_branch_seller_cellphone: string;
247
+ client_branch_contact_id?: string;
248
+ client_branch_contact_identification_number?: string;
249
+ client_branch_contact_full_name?: string;
250
+ client_branch_contact_cellphone?: string;
251
+ client_branch_contact_email?: string[];
252
+ }
253
+ interface DetailPayment {
254
+ _id: string;
255
+ income_id: string;
256
+ payment_term_id: string;
257
+ global_bank_id?: string;
258
+ global_bank_code?: string;
259
+ financial_bank_id?: string;
260
+ financial_bank_account_number?: string;
261
+ date: number;
262
+ value: number;
263
+ card_type?: string;
264
+ batch_code?: string;
265
+ financial_bank_name?: string;
266
+ account_name: string;
267
+ number_cheque?: string;
268
+ bank_cheque?: string;
269
+ operation_number: string;
270
+ payment_term_code: string;
271
+ payment_term_name: string;
272
+ created_user: string;
273
+ account_id?: string;
274
+ account_code?: string;
275
+ }
276
+ }
277
+ }
278
+ interface SaveBody {
279
+ company_NIF: string;
280
+ company_address: string;
281
+ company_trade_name: string;
282
+ company_business_name: string;
283
+ company_logo: string;
284
+ user_id: string;
285
+ date_document: number;
286
+ date_account: number;
287
+ total: number;
288
+ cost_center_id: string;
289
+ cost_center_code: string;
290
+ cost_center_name: string;
291
+ commentary?: string;
292
+ detail_income: SaveBody.DetailIncome[];
293
+ detail_payment_options: SaveBody.DetailPaymentOption[];
294
+ }
295
+ namespace SaveBody {
296
+ interface DetailIncome {
297
+ credit_management_id: string;
298
+ credit_management_detail_id: string;
299
+ cost_center_id: string;
300
+ client_id: string;
301
+ client_business_name: string;
302
+ client_trade_name: string;
303
+ client_document_number: string;
304
+ client_credit_application: boolean;
305
+ client_document_type_id: string;
306
+ client_document_type_code: string;
307
+ client_document_type_name: string;
308
+ client_category_id: string;
309
+ client_category_name: string;
310
+ client_price_list_id: string;
311
+ client_price_list_code: string;
312
+ client_price_list_name: string;
313
+ client_branch_id: string;
314
+ client_branch_code: string;
315
+ client_branch_name: string;
316
+ client_branch_address: string;
317
+ client_branch_email: string[];
318
+ client_branch_phone_code: string;
319
+ client_branch_phone: string;
320
+ client_branch_cellphone: string;
321
+ client_branch_type_establishment: string;
322
+ client_branch_province_id: string;
323
+ client_branch_province_code: string;
324
+ client_branch_province_name: string;
325
+ client_branch_canton_id: string;
326
+ client_branch_canton_code: string;
327
+ client_branch_canton_name: string;
328
+ client_branch_parish_id: string;
329
+ client_branch_parish_code: string;
330
+ client_branch_parish_name: string;
331
+ client_branch_longitude: number;
332
+ client_branch_latitude: number;
333
+ client_branch_seller_id: string;
334
+ client_branch_seller_identification_number: string;
335
+ client_branch_seller_full_name: string;
336
+ client_branch_seller_address: string;
337
+ client_branch_seller_email: string[];
338
+ client_branch_seller_cellphone: string;
339
+ client_branch_contact_id: string;
340
+ client_branch_contact_identification_number: string;
341
+ client_branch_contact_full_name: string;
342
+ client_branch_contact_cellphone: string;
343
+ client_branch_contact_email: string[];
344
+ installment: string;
345
+ paid: number;
346
+ previous_balance: number;
347
+ subsequent_balance: number;
348
+ cost_center_code: string;
349
+ cost_center_name: string;
350
+ credit_document_nomenclature: string;
351
+ credit_document_number: string;
352
+ invoice_date: number;
353
+ invoice_number: string;
354
+ date_expired: number;
355
+ origin_credit: string;
356
+ period: number;
357
+ }
358
+ interface DetailPaymentOption {
359
+ global_bank_id?: string;
360
+ global_bank_code?: string;
361
+ financial_bank_id?: string;
362
+ financial_bank_account_number?: string;
363
+ payment_term_id: string;
364
+ account_id?: string;
365
+ date?: number;
366
+ value: number;
367
+ card_type?: string;
368
+ batch_code?: string;
369
+ financial_bank_name?: string;
370
+ account_name?: string;
371
+ account_code?: string;
372
+ operation_number?: string;
373
+ payment_term_code: string;
374
+ payment_term_name: string;
375
+ bank_cheque?: string;
376
+ number_cheque?: string;
377
+ }
378
+ }
379
+ interface ListDetailsResponse {
380
+ success: boolean;
381
+ data: ListDetailsResponse.Data[];
382
+ }
383
+ namespace ListDetailsResponse {
384
+ interface Data {
385
+ _id: string;
386
+ income_id?: string;
387
+ credit_management_id?: string;
388
+ credit_management_detail_id?: string;
389
+ cost_center_id?: string;
390
+ installment?: string;
391
+ invoice_number?: string;
392
+ invoice_date?: number;
393
+ paid?: number;
394
+ previous_balance?: number;
395
+ subsequent_balance?: number;
396
+ created_user?: string;
397
+ created_at?: number;
398
+ type?: TTypeIncome;
399
+ client_id: string;
400
+ client_credit_limit?: number;
401
+ client_payment_deadline?: number;
402
+ client_business_name: string;
403
+ client_trade_name: string;
404
+ client_document_number: string;
405
+ client_credit_application: boolean;
406
+ client_document_type_id: string;
407
+ client_document_type_name: string;
408
+ client_document_type_code: string;
409
+ client_category_id: string;
410
+ client_category_name: string;
411
+ client_branch_id: string;
412
+ client_branch_code: string;
413
+ client_branch_name: string;
414
+ client_branch_address: string;
415
+ client_branch_email: string[];
416
+ client_branch_phone_code?: string;
417
+ client_branch_phone?: string;
418
+ client_branch_cellphone?: string;
419
+ client_branch_type_establishment: `${TTypeEstablishment}`;
420
+ client_branch_province_id?: string;
421
+ client_branch_province_code?: string;
422
+ client_branch_province_name?: string;
423
+ client_branch_canton_id?: string;
424
+ client_branch_canton_code?: string;
425
+ client_branch_canton_name?: string;
426
+ client_branch_parish_id?: string;
427
+ client_branch_parish_code?: string;
428
+ client_branch_parish_name?: string;
429
+ client_branch_longitude?: number;
430
+ client_branch_latitude?: number;
431
+ client_branch_seller_id: string;
432
+ client_branch_seller_identification_number: string;
433
+ client_branch_seller_full_name: string;
434
+ client_branch_seller_address: string;
435
+ client_branch_seller_email: string[];
436
+ client_branch_seller_cellphone: string;
437
+ client_branch_contact_id?: string;
438
+ client_branch_contact_identification_number?: string;
439
+ client_branch_contact_full_name?: string;
440
+ client_branch_contact_cellphone?: string;
441
+ client_branch_contact_email?: string[];
442
+ }
443
+ }
444
+ interface DownloadExcelParams {
445
+ seller_id?: string;
446
+ client_id?: string;
447
+ document_number?: string;
448
+ date_end?: number;
449
+ date_begin?: number;
450
+ reverse_status?: boolean;
451
+ timezone: string;
452
+ locale: string;
453
+ }
454
+ interface DownloadGeneralPdfParams {
455
+ seller_id?: string;
456
+ client_id?: string;
457
+ document_number?: string;
458
+ date_end?: number;
459
+ date_begin?: number;
460
+ reverse_status?: boolean;
461
+ timezone: string;
462
+ locale: string;
463
+ }
464
+ interface DownloadIndividualPdfParams {
465
+ timezone: string;
466
+ locale: string;
467
+ id: string;
468
+ }
469
+ interface DownloadIndividualExcelParams {
470
+ timezone: string;
471
+ locale: string;
472
+ id: string;
473
+ }
474
+ interface SendEmailParams {
475
+ timezone: string;
476
+ locale: string;
477
+ emails?: string;
478
+ }
479
+ }
@@ -0,0 +1,18 @@
1
+ import { Observable } from 'rxjs';
2
+ import { IBankConciliationInfrastructureRepository } from '../../infrastructure/repositories/bank-conciliation.infrastructure.repository';
3
+ import { IBankConciliation } from '../models/bank-conciliation.domain.model';
4
+ import { IGeneral } from '../models/general.domain.model';
5
+ export declare class BankConciliationDomainRepository {
6
+ private service;
7
+ constructor(service: IBankConciliationInfrastructureRepository);
8
+ list(request: IBankConciliation.ListRequest): Observable<IBankConciliation.ListResponse>;
9
+ save(request: IBankConciliation.SaveBody): Observable<IGeneral.Confirm>;
10
+ conciliatePendingMovements(request: IBankConciliation.ConciliatePendingMovementsBody): Observable<IGeneral.Confirm>;
11
+ conciliateMovementsWithFileBody(id: string, body: IBankConciliation.ConciliateMovementsWithFileBody): Observable<IGeneral.Confirm>;
12
+ getOne(params: IBankConciliation.GetOneParams): Observable<IBankConciliation.GetOneResponse>;
13
+ updateConciliationValues(id: string, request: IBankConciliation.UpdateConciliationValuesBody): Observable<IGeneral.Confirm>;
14
+ delete(id: string): Observable<IGeneral.Confirm>;
15
+ deleteConciliatedMovement(id: string): Observable<IGeneral.Confirm>;
16
+ listMovements(params: IBankConciliation.FindAllMovementsPendingRequest): Observable<IBankConciliation.FindAllMovementsPendingResponse>;
17
+ findAccountingMovements(params: IBankConciliation.FindAccountingMovementsRequest): Observable<IBankConciliation.FindAccountingMovementsResponse>;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { HttpResponse } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IDownPaymentInfrastructureRepository } from '../../infrastructure/repositories/down-payment.infrastructure.repository';
4
+ import { IDownPaymentModel } from '../models/down-payment.domain.model';
5
+ import { IGeneral } from '../models/general.domain.model';
6
+ export declare class DownPaymentDomainRepository {
7
+ private readonly service;
8
+ constructor(service: IDownPaymentInfrastructureRepository);
9
+ list(params: IDownPaymentModel.ListParams): Observable<IDownPaymentModel.ListResponse>;
10
+ getOne(id: string): Observable<IDownPaymentModel.GetOneResponse>;
11
+ save(data: IDownPaymentModel.SaveBody): Observable<IGeneral.Confirm>;
12
+ downloadExcel(params: IDownPaymentModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
13
+ downloadGeneralPdf(params: IDownPaymentModel.DownloadGeneralPdfParams): Observable<HttpResponse<Blob>>;
14
+ downloadIndividualPdf(params: IDownPaymentModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
15
+ downloadIndividualExcel(params: IDownPaymentModel.DownloadIndividualExcelParams): Observable<HttpResponse<Blob>>;
16
+ sendEmail(id: string, params: IDownPaymentModel.SendEmailParams): Observable<IGeneral.Confirm>;
17
+ }
@@ -0,0 +1,18 @@
1
+ import { HttpResponse } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IIncomeModel } from '../models/income.domain.model';
4
+ import { IGeneral } from '../models/general.domain.model';
5
+ import { IIncomeInfrastructureRepository } from '../../infrastructure/repositories/income.infrastructure.repository';
6
+ export declare class IncomeDomainRepository {
7
+ private service;
8
+ constructor(service: IIncomeInfrastructureRepository);
9
+ list(params: IIncomeModel.ListParams): Observable<IIncomeModel.ListResponse>;
10
+ getOne(id: string): Observable<IIncomeModel.GetOneResponse>;
11
+ save(data: IIncomeModel.SaveBody): Observable<IGeneral.Confirm>;
12
+ listDetails(incomeId: string): Observable<IIncomeModel.ListDetailsResponse>;
13
+ downloadExcel(params: IIncomeModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
14
+ downloadGeneralPdf(params: IIncomeModel.DownloadGeneralPdfParams): Observable<HttpResponse<Blob>>;
15
+ downloadIndividualPdf(params: IIncomeModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
16
+ downloadIndividualExcel(params: IIncomeModel.DownloadIndividualExcelParams): Observable<HttpResponse<Blob>>;
17
+ sendEmail(id: string, params: IIncomeModel.SendEmailParams): Observable<IGeneral.Confirm>;
18
+ }
@@ -0,0 +1,12 @@
1
+ import { AbstractControl, ValidationErrors, ValidatorFn } from "@angular/forms";
2
+ export declare class CbmValidators {
3
+ static textFull(control: AbstractControl): ValidationErrors | null;
4
+ static emailArray(control: AbstractControl): ValidationErrors | null;
5
+ static uniqueValues(control: AbstractControl): ValidationErrors | null;
6
+ static minDate(date: Date | {
7
+ dateFn: (control: AbstractControl) => string;
8
+ }): ValidatorFn;
9
+ static maxDate(date: Date | {
10
+ dateFn: (control: AbstractControl) => string;
11
+ }): ValidatorFn;
12
+ }
@@ -0,0 +1,11 @@
1
+ export declare class GeneralDomainService {
2
+ }
3
+ export declare function getDateTimestamp(localDate: string): number;
4
+ export declare function findRoute(eventModule: string, collectionName: string): {
5
+ event: string | undefined;
6
+ route: {
7
+ panel: string;
8
+ path: string;
9
+ collection: string;
10
+ } | undefined;
11
+ };
@@ -0,0 +1,23 @@
1
+ import { CbmRelationShipMovementsModel } from '@cbm-common/cbm-types';
2
+ import { ECollectionNames } from '../../types/collection-names';
3
+ import { CbmOutgoingBankingTransactionRepository } from '../repositories/outgoing-banking-transaction.domain.repository';
4
+ import { CbmIncomeBankingTransactionRepository } from '../repositories/income-banking-transaction.domain.repository';
5
+ import { CbmDepositChequeRepository } from '../repositories/deposit-cheque.domain.repository';
6
+ import { CbmCardSettlementRepository } from '../repositories/card-settlement.domain.repository';
7
+ import { CbmCashLiquidationRepository } from '../repositories/cash-liquidation.domain.repository';
8
+ import { IncomeDomainRepository } from '../repositories/income.domain.repository';
9
+ import { DownPaymentDomainRepository } from '../repositories/down-payment.domain.repository';
10
+ type TConfig = Partial<Record<ECollectionNames, CbmRelationShipMovementsModel.IConfigMethods>>;
11
+ export declare class RelationshipMovementsConfig {
12
+ private readonly apiOutgoingBankingTransactionUseCase;
13
+ private readonly apiIncomeBankingUseCase;
14
+ private readonly depositChequeRepository;
15
+ private readonly apiCardSettlementUseCaseService;
16
+ private readonly incomeRepository;
17
+ private readonly cashLiquidationRepository;
18
+ private readonly downPaymentRepository;
19
+ constructor(apiOutgoingBankingTransactionUseCase: CbmOutgoingBankingTransactionRepository, apiIncomeBankingUseCase: CbmIncomeBankingTransactionRepository, depositChequeRepository: CbmDepositChequeRepository, apiCardSettlementUseCaseService: CbmCardSettlementRepository, incomeRepository: IncomeDomainRepository, cashLiquidationRepository: CbmCashLiquidationRepository, downPaymentRepository: DownPaymentDomainRepository);
20
+ private relationshipMovementsConfig;
21
+ config(methods: ECollectionNames[]): TConfig;
22
+ }
23
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Observable } from 'rxjs';
2
+ import { IBankConciliation } from '../../domain/models/bank-conciliation.domain.model';
3
+ import { IGeneral } from '../../domain/models/general.domain.model';
4
+ export interface IBankConciliationInfrastructureRepository {
5
+ list(request: IBankConciliation.ListRequest): Observable<IBankConciliation.ListResponse>;
6
+ save(request: IBankConciliation.SaveBody): Observable<IGeneral.Confirm>;
7
+ conciliatePendingMovements(request: IBankConciliation.ConciliatePendingMovementsBody): Observable<IGeneral.Confirm>;
8
+ conciliateMovementsWithFileBody(id: string, body: IBankConciliation.ConciliateMovementsWithFileBody): Observable<IGeneral.Confirm>;
9
+ getOne(params: IBankConciliation.GetOneParams): Observable<IBankConciliation.GetOneResponse>;
10
+ updateConciliationValues(id: string, request: IBankConciliation.UpdateConciliationValuesBody): Observable<IGeneral.Confirm>;
11
+ delete(id: string): Observable<IGeneral.Confirm>;
12
+ deleteConciliatedMovement(id: string): Observable<IGeneral.Confirm>;
13
+ listMovements(params: IBankConciliation.FindAllMovementsPendingRequest): Observable<IBankConciliation.FindAllMovementsPendingResponse>;
14
+ findAccountingMovements(params: IBankConciliation.FindAccountingMovementsRequest): Observable<IBankConciliation.FindAccountingMovementsResponse>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import { HttpResponse } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IDownPaymentModel } from '../../domain/models/down-payment.domain.model';
4
+ import { IGeneral } from '../../domain/models/general.domain.model';
5
+ export interface IDownPaymentInfrastructureRepository {
6
+ list(params: IDownPaymentModel.ListParams): Observable<IDownPaymentModel.ListResponse>;
7
+ getOne(id: string): Observable<IDownPaymentModel.GetOneResponse>;
8
+ save(data: IDownPaymentModel.SaveBody): Observable<IGeneral.Confirm>;
9
+ downloadExcel(params: IDownPaymentModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
10
+ downloadGeneralPdf(params: IDownPaymentModel.DownloadGeneralPdfParams): Observable<HttpResponse<Blob>>;
11
+ downloadIndividualPdf(params: IDownPaymentModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
12
+ downloadIndividualExcel(params: IDownPaymentModel.DownloadIndividualExcelParams): Observable<HttpResponse<Blob>>;
13
+ sendEmail(id: string, params: IDownPaymentModel.SendEmailParams): Observable<IGeneral.Confirm>;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { HttpResponse } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IIncomeModel } from '../../domain/models/income.domain.model';
4
+ import { IGeneral } from '../../domain/models/general.domain.model';
5
+ export interface IIncomeInfrastructureRepository {
6
+ list(params: IIncomeModel.ListParams): Observable<IIncomeModel.ListResponse>;
7
+ getOne(id: string): Observable<IIncomeModel.GetOneResponse>;
8
+ save(data: IIncomeModel.SaveBody): Observable<IGeneral.Confirm>;
9
+ listDetails(incomeId: string): Observable<IIncomeModel.ListDetailsResponse>;
10
+ downloadExcel(params: IIncomeModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
11
+ downloadGeneralPdf(params: IIncomeModel.DownloadGeneralPdfParams): Observable<HttpResponse<Blob>>;
12
+ downloadIndividualPdf(params: IIncomeModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
13
+ downloadIndividualExcel(params: IIncomeModel.DownloadIndividualExcelParams): Observable<HttpResponse<Blob>>;
14
+ sendEmail(id: string, params: IIncomeModel.SendEmailParams): Observable<IGeneral.Confirm>;
15
+ }
@@ -0,0 +1,21 @@
1
+ import { HttpClient, HttpResponse } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IBankConciliationInfrastructureRepository } from '../repositories/bank-conciliation.infrastructure.repository';
4
+ import { IBankConciliation } from '../../domain/models/bank-conciliation.domain.model';
5
+ import { IGeneral } from '../../domain/models/general.domain.model';
6
+ export declare class BankConciliationInfrastructureService implements IBankConciliationInfrastructureRepository {
7
+ private http;
8
+ constructor(http: HttpClient);
9
+ private readonly urlBankConciliation;
10
+ list(request: IBankConciliation.ListRequest): Observable<IBankConciliation.ListResponse>;
11
+ save(request: IBankConciliation.SaveBody): Observable<IGeneral.Confirm>;
12
+ conciliatePendingMovements(request: IBankConciliation.ConciliatePendingMovementsBody): Observable<IGeneral.Confirm>;
13
+ conciliateMovementsWithFileBody(id: string, body: IBankConciliation.ConciliateMovementsWithFileBody): Observable<IGeneral.Confirm>;
14
+ getOne(params: IBankConciliation.GetOneParams): Observable<IBankConciliation.GetOneResponse>;
15
+ updateConciliationValues(id: string, request: IBankConciliation.UpdateConciliationValuesBody): Observable<IGeneral.Confirm>;
16
+ delete(id: string): Observable<IGeneral.Confirm>;
17
+ deleteConciliatedMovement(id: string): Observable<IGeneral.Confirm>;
18
+ listMovements(params: IBankConciliation.FindAllMovementsPendingRequest): Observable<IBankConciliation.FindAllMovementsPendingResponse>;
19
+ downloadExcelTemplate(): Observable<HttpResponse<Blob>>;
20
+ findAccountingMovements(params: IBankConciliation.FindAccountingMovementsRequest): Observable<IBankConciliation.FindAccountingMovementsResponse>;
21
+ }