@cbm-common/cbm-types 0.0.45 → 0.0.47

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 (28) hide show
  1. package/lib/components/relationship-movements/animations.d.ts +2 -0
  2. package/lib/components/relationship-movements/relationship-movements.d.ts +58 -0
  3. package/lib/components/relationship-movements/type.d.ts +26 -0
  4. package/lib/domain/models/retention-sales.domain.model.d.ts +404 -0
  5. package/lib/domain/models/reverse-movements.domain.model.d.ts +9 -0
  6. package/lib/domain/models/sales-pending-document.domain.model.d.ts +70 -0
  7. package/lib/domain/models/transactions-purchases.domain.model.d.ts +170 -0
  8. package/lib/domain/repositories/retention-sales.domain.repository.d.ts +19 -0
  9. package/lib/domain/repositories/reverse-movements.domain.repository.d.ts +8 -0
  10. package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
  11. package/lib/domain/repositories/transactions-purchase.domain.repository.d.ts +9 -0
  12. package/lib/environments/environment.d.ts +1 -2
  13. package/lib/infrastructure/repositories/retention-sales.infrastructure.repository.d.ts +16 -0
  14. package/lib/infrastructure/repositories/reverse-movements.infrastructure.repository.d.ts +5 -0
  15. package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
  16. package/lib/infrastructure/repositories/transactions-purchase.infrastructure.repository.d.ts +6 -0
  17. package/lib/infrastructure/services/retention-sales.infrastructure.service.d.ts +20 -0
  18. package/lib/infrastructure/services/reverse-movements.infrastructure.service.d.ts +10 -0
  19. package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
  20. package/lib/infrastructure/services/transactions-purchase.infrastructure.service.d.ts +10 -0
  21. package/lib/remotes/components.remote.d.ts +1 -0
  22. package/lib/remotes/repositories/retention-sales.repository.d.ts +3 -0
  23. package/lib/remotes/repositories/reverse-movements.repository.d.ts +3 -0
  24. package/lib/remotes/repositories/sales-pending-document.repository.d.ts +3 -0
  25. package/lib/remotes/repositories/transactions-purchase.repository.d.ts +3 -0
  26. package/lib/remotes/repositories.remote.d.ts +4 -0
  27. package/package.json +1 -1
  28. package/public-api.d.ts +19 -0
@@ -0,0 +1,2 @@
1
+ export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
2
+ export declare const modalAnimation: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1,58 @@
1
+ import { DestroyRef, ElementRef, OnInit, Renderer2 } from '@angular/core';
2
+ import { CbmBankMovementsModel } from '../../domain/models/bank-movements.domain.model';
3
+ import { CbmBankMovementsRepository } from '../../domain/repositories/bank-movements.domain.repository';
4
+ import { CbmNotificationService } from '../../remotes/services.remote';
5
+ import { CbmRelacionshipMovementsModel, TStatus } from './type';
6
+ interface IModuleAttribbutes {
7
+ collection_origin_name: string;
8
+ collection_origin_id: string;
9
+ event_module: string;
10
+ }
11
+ export declare class CbmRelationshipMovementsComponent implements OnInit {
12
+ private notificationService;
13
+ private bankMovementRepository;
14
+ private destroyRef;
15
+ private render2;
16
+ tittleText: import("@angular/core").InputSignal<string>;
17
+ isOpen: import("@angular/core").InputSignal<boolean | undefined>;
18
+ modalId: import("@angular/core").InputSignal<string>;
19
+ bankId: import("@angular/core").InputSignal<string>;
20
+ operationNumber: import("@angular/core").InputSignal<string>;
21
+ methodsGet: import("@angular/core").InputSignal<CbmRelacionshipMovementsModel.TMethodsGet>;
22
+ open: import("@angular/core").OutputEmitterRef<void>;
23
+ close: import("@angular/core").OutputEmitterRef<void>;
24
+ redirectTo: import("@angular/core").OutputEmitterRef<IModuleAttribbutes>;
25
+ modalRef: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
26
+ moduleAtributesResponse: import("@angular/core").WritableSignal<IModuleAttribbutes | null>;
27
+ operationNumbers: import("@angular/core").WritableSignal<CbmBankMovementsModel.ValidationOperationResponse.Data | null>;
28
+ statusOfFetchOperations: import("@angular/core").WritableSignal<TStatus>;
29
+ getData: import("@angular/core").WritableSignal<{
30
+ created_at: number;
31
+ date: number;
32
+ document_number: string;
33
+ document_nomenclature: string;
34
+ financials_bank_name: string;
35
+ financials_bank_account_number: string;
36
+ client_business_name: string;
37
+ client_document_number: string;
38
+ total_clients?: number;
39
+ operation_number: string;
40
+ movement_number: string;
41
+ beneficiary: string;
42
+ total: number;
43
+ } | null>;
44
+ constructor(notificationService: CbmNotificationService, bankMovementRepository: CbmBankMovementsRepository, destroyRef: DestroyRef, render2: Renderer2);
45
+ ngOnInit(): void;
46
+ openModal(): void;
47
+ closeModal(): void;
48
+ onDialogClick(event: Event, dialog: HTMLDialogElement): void;
49
+ handleCloseDialog(dialog: HTMLDialogElement): void;
50
+ makeInitialRequests(): void;
51
+ fetchOperations(): void;
52
+ getOne(collectionName: string, id: string): void;
53
+ getArrayLength<T>(obj: any, property: string, config?: CbmRelacionshipMovementsModel.IConfigMethods): number | undefined;
54
+ getPropertyValue<T>(obj: any, property: string, config: CbmRelacionshipMovementsModel.IConfigMethods): T;
55
+ private animationModal;
56
+ redirectToModule(): void;
57
+ }
58
+ export {};
@@ -0,0 +1,26 @@
1
+ export declare namespace CbmRelacionshipMovementsModel {
2
+ interface IObjectAlias {
3
+ created_at?: string | string[];
4
+ date?: string | string[];
5
+ document_number?: string | string[];
6
+ document_nomenclature?: string | string[];
7
+ financials_bank_name?: string | string[];
8
+ financials_bank_account_number?: string | string[];
9
+ client_business_name?: string | string[];
10
+ client_document_number?: string | string[];
11
+ operation_number?: string | string[];
12
+ movement_number?: string | string[];
13
+ beneficiary?: string | string[];
14
+ total?: string | string[];
15
+ }
16
+ export interface IConfigMethods {
17
+ repository: any;
18
+ methodName?: string;
19
+ objectAlias?: IObjectAlias;
20
+ }
21
+ export type TMethodsGet = {
22
+ [key: string]: IConfigMethods;
23
+ };
24
+ export {};
25
+ }
26
+ export type TStatus = 'init' | 'loading' | 'success' | 'failed';
@@ -0,0 +1,404 @@
1
+ export declare namespace CbmRetentionSalesModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ document_retention?: string;
6
+ company_branch_id?: string;
7
+ user_id?: string;
8
+ document_number?: string;
9
+ date_end?: number;
10
+ date_begin?: number;
11
+ client_id?: string;
12
+ retention_type?: string;
13
+ retention_balance?: boolean;
14
+ reverse_status?: boolean;
15
+ }
16
+ interface ListResponse {
17
+ success: boolean;
18
+ pageNum: number;
19
+ pageSize: number;
20
+ pages: number;
21
+ total: number;
22
+ items: ListResponse.Item[];
23
+ }
24
+ namespace ListResponse {
25
+ interface Item {
26
+ _id: string;
27
+ company_id: string;
28
+ company_branch_id: string;
29
+ client_id: string;
30
+ client_category_id: string;
31
+ document_nomenclature: string;
32
+ document_number: string;
33
+ document_sequence: string;
34
+ document_date: number;
35
+ account_date: number;
36
+ total: number;
37
+ type: string;
38
+ attached_invoice: boolean;
39
+ document_branch_identification_number: string;
40
+ document_emission_point_number: string;
41
+ document_authorization: string;
42
+ company_NIF: string;
43
+ company_trade_name: string;
44
+ company_business_name: string;
45
+ company_branch_identification_number: string;
46
+ company_branch_trade_name: string;
47
+ company_branch_logo: string;
48
+ company_branch_address: string;
49
+ company_branch_email: string;
50
+ company_branch_cellphone: string;
51
+ company_branch_phone: string;
52
+ client_document_number: string;
53
+ client_trade_name: string;
54
+ client_business_name: string;
55
+ client_phone_code: string;
56
+ client_address: string;
57
+ client_cellphone: string;
58
+ client_email: string;
59
+ client_province_id?: string;
60
+ client_canton_id?: string;
61
+ client_parish_id?: string;
62
+ client_province_code?: string;
63
+ client_province_name?: string;
64
+ client_canton_code?: string;
65
+ client_canton_name?: string;
66
+ client_parish_code?: string;
67
+ client_parish_name?: string;
68
+ enabled: boolean;
69
+ user_id: string;
70
+ created_user: string;
71
+ reverse_status: boolean;
72
+ created_at: number;
73
+ reverse_at?: number;
74
+ reverse_reason?: string;
75
+ reverse_user?: string;
76
+ retention_invoice: Item.RetentionInvoice[];
77
+ checked?: boolean;
78
+ }
79
+ namespace Item {
80
+ interface RetentionInvoice {
81
+ _id: string;
82
+ retention_id: string;
83
+ client_branch_id?: string;
84
+ client_branch_code?: string;
85
+ client_branch_name?: string;
86
+ client_branch_address?: string;
87
+ client_branch_email?: string;
88
+ client_branch_cellphone?: string;
89
+ client_branch_phone?: string;
90
+ client_branch_phone_code?: string;
91
+ invoice_id: string;
92
+ cost_center_id: string;
93
+ invoice_branch_identification_number: string;
94
+ invoice_emission_point_number: string;
95
+ invoice_document_number: string;
96
+ retention_type: string;
97
+ total: number;
98
+ liquidated_value: number;
99
+ cash_liquidation: number;
100
+ document_liquidation: number;
101
+ balance: number;
102
+ reverse: number;
103
+ invoice_date: number;
104
+ created_user: string;
105
+ created_at: number;
106
+ }
107
+ }
108
+ }
109
+ interface ListParamsRetentionForCard {
110
+ page: number;
111
+ size: number;
112
+ document_retention?: string;
113
+ company_branch_id?: string;
114
+ user_id?: string;
115
+ document_number?: string;
116
+ date_end?: number;
117
+ date_begin?: number;
118
+ client_id?: string;
119
+ }
120
+ interface ListResposeRetentionForCard {
121
+ success: boolean;
122
+ pageNum: number;
123
+ pageSize: number;
124
+ pages: number;
125
+ total: number;
126
+ items: ListResponseRetentionForCard.Item[];
127
+ }
128
+ namespace ListResponseRetentionForCard {
129
+ interface Item {
130
+ _id: string;
131
+ company_id: string;
132
+ company_branch_id: string;
133
+ client_id: string;
134
+ document_nomenclature: string;
135
+ document_number: string;
136
+ document_sequence: string;
137
+ type: string;
138
+ document_branch_identification_number: string;
139
+ document_emission_point_number: string;
140
+ client_document_number: string;
141
+ client_trade_name: string;
142
+ client_business_name: string;
143
+ client_province_id?: string;
144
+ client_canton_id?: string;
145
+ client_parish_id?: string;
146
+ client_province_code?: string;
147
+ client_province_name?: string;
148
+ client_canton_code?: string;
149
+ client_canton_name?: string;
150
+ client_parish_code?: string;
151
+ client_parish_name?: string;
152
+ user_id: string;
153
+ created_user: string;
154
+ reverse_status: boolean;
155
+ created_at: number;
156
+ retention_id: string;
157
+ cost_center_id: string;
158
+ retention_type: string;
159
+ total: number;
160
+ liquidated_value: number;
161
+ cash_liquidation: number;
162
+ document_liquidation: number;
163
+ balance: number;
164
+ reverse: number;
165
+ invoice_date: number;
166
+ card_settlement: number;
167
+ }
168
+ }
169
+ interface GetOneResponse {
170
+ success: boolean;
171
+ data: GetOneResponse.Data;
172
+ }
173
+ namespace GetOneResponse {
174
+ interface Data {
175
+ _id?: string;
176
+ company_id?: string;
177
+ company_branch_id?: string;
178
+ client_id?: string;
179
+ client_category_id: string;
180
+ document_nomenclature?: string;
181
+ document_number?: string;
182
+ document_sequence?: string;
183
+ document_date?: number;
184
+ account_date?: number;
185
+ total_rent_base?: number;
186
+ total_rent_value?: number;
187
+ total_iva_base?: number;
188
+ total_iva_value?: number;
189
+ total?: number;
190
+ type?: string;
191
+ attached_invoice?: boolean;
192
+ document_branch_identification_number?: string;
193
+ document_emission_point_number?: string;
194
+ document_authorization?: string;
195
+ company_NIF?: string;
196
+ company_address?: string;
197
+ company_trade_name?: string;
198
+ company_business_name?: string;
199
+ company_branch_identification_number?: string;
200
+ company_branch_trade_name?: string;
201
+ company_branch_logo?: string;
202
+ company_branch_address?: string;
203
+ company_branch_email?: string;
204
+ company_branch_cellphone?: string;
205
+ company_branch_phone?: string;
206
+ client_document_number?: string;
207
+ client_trade_name?: string;
208
+ client_business_name?: string;
209
+ client_phone_code?: string;
210
+ client_address?: string;
211
+ client_cellphone?: string;
212
+ client_email?: string;
213
+ client_province_id?: string;
214
+ client_canton_id?: string;
215
+ client_parish_id?: string;
216
+ client_province_code?: string;
217
+ client_province_name?: string;
218
+ client_canton_code?: string;
219
+ client_canton_name?: string;
220
+ client_parish_code?: string;
221
+ client_parish_name?: string;
222
+ enabled?: boolean;
223
+ deleted?: boolean;
224
+ created_user?: string;
225
+ reverse_status?: boolean;
226
+ reverse_at?: number;
227
+ reverse_user?: string;
228
+ reverse_reason?: string;
229
+ created_at?: number;
230
+ commentary?: string;
231
+ retention_invoice?: Data.RetentionInvoice[];
232
+ }
233
+ namespace Data {
234
+ interface RetentionInvoice {
235
+ _id: string;
236
+ retention_id: string;
237
+ invoice_id: string;
238
+ client_branch_id?: string;
239
+ client_branch_code?: string;
240
+ client_branch_name?: string;
241
+ client_branch_address?: string;
242
+ client_branch_email?: string;
243
+ client_branch_cellphone?: string;
244
+ client_branch_phone?: string;
245
+ client_branch_phone_code?: string;
246
+ cost_center_id: string;
247
+ invoice_branch_identification_number: string;
248
+ invoice_emission_point_number: string;
249
+ invoice_document_number: string;
250
+ retention_type: string;
251
+ total: number;
252
+ liquidated_value: number;
253
+ cash_liquidation: number;
254
+ document_liquidation: number;
255
+ balance: number;
256
+ reverse: number;
257
+ invoice_date: number;
258
+ created_user: string;
259
+ created_at: number;
260
+ retention_invoice_detail: RetentionInvoice.Detail[];
261
+ }
262
+ namespace RetentionInvoice {
263
+ interface Detail {
264
+ _id: string;
265
+ retention_invoice_id: string;
266
+ type: string;
267
+ retention_settings_id: string;
268
+ retention_settings_code: string;
269
+ retention_settings_description: string;
270
+ rate: number;
271
+ base: number;
272
+ value: number;
273
+ created_user: string;
274
+ created_at: number;
275
+ }
276
+ }
277
+ }
278
+ }
279
+ interface SaveBody {
280
+ client_id: string;
281
+ client_category_id: string;
282
+ document_date: number;
283
+ account_date: number;
284
+ total: number;
285
+ total_rent_base?: number;
286
+ total_rent_value?: number;
287
+ total_iva_base?: number;
288
+ total_iva_value?: number;
289
+ type: string;
290
+ attached_invoice: boolean;
291
+ document_branch_identification_number: string;
292
+ document_emission_point_number: string;
293
+ document_sequence: string;
294
+ document_authorization: string;
295
+ commentary: string;
296
+ client_document_number: string;
297
+ client_trade_name: string;
298
+ client_business_name: string;
299
+ client_phone_code: string;
300
+ client_address: string;
301
+ client_cellphone: string;
302
+ client_email: string;
303
+ client_province_id?: string;
304
+ client_canton_id?: string;
305
+ client_parish_id?: string;
306
+ client_province_code?: string;
307
+ client_province_name?: string;
308
+ client_canton_code?: string;
309
+ client_canton_name?: string;
310
+ client_parish_code?: string;
311
+ client_parish_name?: string;
312
+ company_branch_id?: string;
313
+ company_NIF?: string;
314
+ company_address?: string;
315
+ company_trade_name?: string;
316
+ company_business_name?: string;
317
+ company_branch_identification_number?: string;
318
+ company_branch_trade_name?: string;
319
+ company_branch_logo?: string;
320
+ company_branch_address?: string;
321
+ company_branch_email?: string;
322
+ company_branch_cellphone?: string;
323
+ company_branch_phone?: string;
324
+ retention_invoice: SaveBody.RetentionInvoice[];
325
+ }
326
+ namespace SaveBody {
327
+ interface RetentionInvoice {
328
+ invoice_id: string;
329
+ client_branch_id?: string;
330
+ client_branch_code?: string;
331
+ client_branch_name?: string;
332
+ client_branch_address?: string;
333
+ client_branch_email?: string;
334
+ client_branch_cellphone?: string;
335
+ client_branch_phone?: string;
336
+ client_branch_phone_code?: string;
337
+ credit_management_id: string;
338
+ cost_center_id: string;
339
+ invoice_branch_identification_number: string;
340
+ invoice_emission_point_number: string;
341
+ invoice_document_number: string;
342
+ invoice_date: number;
343
+ retention_type: string;
344
+ total: number;
345
+ retention_invoice_detail: RetentionInvoice.Detail[];
346
+ }
347
+ namespace RetentionInvoice {
348
+ interface Detail {
349
+ type: string;
350
+ retention_settings_id: string;
351
+ retention_settings_code: string;
352
+ retention_settings_description: string;
353
+ rate: number;
354
+ base: number;
355
+ value: number;
356
+ }
357
+ }
358
+ }
359
+ interface ConfirmResponse {
360
+ success: boolean;
361
+ message: string;
362
+ data?: any;
363
+ }
364
+ interface DownloadExcelParams {
365
+ date_begin?: number;
366
+ date_end?: number;
367
+ document_number?: string;
368
+ client_id?: string;
369
+ enabled?: boolean;
370
+ }
371
+ interface DownloadPdfParams {
372
+ date_begin?: number;
373
+ date_end?: number;
374
+ document_number?: string;
375
+ client_id?: string;
376
+ enabled?: boolean;
377
+ }
378
+ interface GetLastRetentionResponse {
379
+ success: boolean;
380
+ data: GetLastRetentionResponse.Data[];
381
+ }
382
+ namespace GetLastRetentionResponse {
383
+ interface Data {
384
+ _id: string;
385
+ retention_invoice_id?: string;
386
+ type?: string;
387
+ retention_settings_id?: string;
388
+ retention_settings_code?: string;
389
+ retention_settings_description?: string;
390
+ rate?: number;
391
+ base?: number;
392
+ value?: number;
393
+ created_user?: string;
394
+ created_at?: number;
395
+ updated_at?: number;
396
+ updated_user?: string;
397
+ }
398
+ }
399
+ interface SendEmailParams {
400
+ timezone: string;
401
+ locale: string;
402
+ emails?: string;
403
+ }
404
+ }
@@ -0,0 +1,9 @@
1
+ export declare namespace CbmReverseMovementsModel {
2
+ interface ValidationOperationParams {
3
+ type: string;
4
+ collection_origin_id: string;
5
+ }
6
+ interface ValidationOperationResponse {
7
+ success: boolean;
8
+ }
9
+ }
@@ -0,0 +1,70 @@
1
+ export declare namespace CbmSalesPendingDocumentModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ document_number?: string;
6
+ date_end?: number;
7
+ date_begin?: number;
8
+ client_id?: string;
9
+ client_branch_id?: string;
10
+ type?: string;
11
+ }
12
+ interface ListResponse {
13
+ success: boolean;
14
+ pageNum: number;
15
+ pageSize: number;
16
+ pages: number;
17
+ total: number;
18
+ totales: ListResponse.totales;
19
+ items: ListResponse.Item[];
20
+ }
21
+ namespace ListResponse {
22
+ interface Item {
23
+ _id: string;
24
+ created_at: number;
25
+ client_id: string;
26
+ document_nomenclature: string;
27
+ document_emission_point_number: string;
28
+ document_sequence: string;
29
+ balance: number;
30
+ client_category_id: string;
31
+ client_category_name: string;
32
+ client_address: string;
33
+ client_document_number: string;
34
+ client_trade_name: string;
35
+ client_business_name: string;
36
+ client_phone_code: string;
37
+ client_cellphone: string;
38
+ client_branch_id?: string;
39
+ client_branch_code?: string;
40
+ client_branch_phone_code?: string;
41
+ client_branch_name?: string;
42
+ client_branch_address?: string;
43
+ client_branch_email?: string;
44
+ client_branch_cellphone?: string;
45
+ client_branch_phone?: string;
46
+ client_province_id?: string;
47
+ client_canton_id?: string;
48
+ client_parish_id?: string;
49
+ client_province_code?: string;
50
+ client_province_name?: string;
51
+ client_canton_code?: string;
52
+ client_canton_name?: string;
53
+ client_parish_code?: string;
54
+ client_parish_name?: string;
55
+ client_email: string;
56
+ new_document_number: string;
57
+ date: number;
58
+ type: string;
59
+ checked?: boolean;
60
+ }
61
+ interface totales {
62
+ total_retention?: number;
63
+ total_down_payment?: number;
64
+ total_credit_note?: number;
65
+ total_initial_balance_retention?: number;
66
+ total_initial_balance_down_payment?: number;
67
+ total_initial_balance_credit_note?: number;
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,170 @@
1
+ export declare namespace CbmTransactionsPurchaseModel {
2
+ interface ListDownPaymentParams {
3
+ collection_origin_id?: string;
4
+ collection_origin_name?: string;
5
+ date_end?: number;
6
+ date_begin?: number;
7
+ liquidation_document_id?: string;
8
+ down_payment_id?: string;
9
+ }
10
+ interface ListDownPaymentResponse {
11
+ success: boolean;
12
+ data: ListDownPaymentResponse.Data[];
13
+ }
14
+ namespace ListDownPaymentResponse {
15
+ interface Data {
16
+ _id: string;
17
+ down_payment_id?: string;
18
+ date?: number;
19
+ description?: string;
20
+ document?: string;
21
+ previous_balance?: number;
22
+ subsequent_balance?: number;
23
+ collection_origin_name?: string;
24
+ collection_origin_id?: string;
25
+ created_user?: string;
26
+ created_at?: number;
27
+ liquidation_document_id?: string;
28
+ commentary?: string;
29
+ value?: number;
30
+ type?: string;
31
+ }
32
+ }
33
+ interface ListCreditNoteParams {
34
+ credit_note_id: string;
35
+ }
36
+ interface ListCreditNoteResponse {
37
+ success: boolean;
38
+ data: ListCreditNoteResponse.Data[];
39
+ }
40
+ namespace ListCreditNoteResponse {
41
+ interface Data {
42
+ _id: string;
43
+ credit_note_id?: string;
44
+ date?: number;
45
+ description?: string;
46
+ document?: string;
47
+ commentarty?: string;
48
+ value?: number;
49
+ type?: string;
50
+ previous_balance?: number;
51
+ subsequent_balance?: number;
52
+ collection_origin_name?: string;
53
+ collection_origin_id?: string;
54
+ created_at?: number;
55
+ created_user?: string;
56
+ }
57
+ }
58
+ interface ListCreditManagementParams {
59
+ enabled?: boolean;
60
+ initial_balance_id?: string;
61
+ invoice_id?: string;
62
+ client_id?: string;
63
+ date_end?: number;
64
+ date_begin?: number;
65
+ }
66
+ interface ListCreditManagementResponse {
67
+ success: boolean;
68
+ data: ListCreditManagementResponse.Data[];
69
+ }
70
+ namespace ListCreditManagementResponse {
71
+ interface Data {
72
+ _id: string;
73
+ company_id?: string;
74
+ company_branch_id?: string;
75
+ provider_id?: string;
76
+ purchase_receipt_id?: string;
77
+ document_nomenclature?: string;
78
+ document_number?: string;
79
+ date?: number;
80
+ credit?: number;
81
+ debit?: number;
82
+ retention?: number;
83
+ credit_note?: number;
84
+ return?: number;
85
+ balance?: number;
86
+ provider_document_number?: string;
87
+ provider_trade_name?: string;
88
+ provider_business_name?: string;
89
+ provider_phone_code?: string;
90
+ provider_address?: string;
91
+ provider_cellphone?: string;
92
+ provider_email?: string;
93
+ company_NIF?: string;
94
+ company_trade_name?: string;
95
+ company_business_name?: string;
96
+ company_branch_identification_number?: string;
97
+ company_branch_trade_name?: string;
98
+ company_branch_logo?: string;
99
+ company_branch_address?: string;
100
+ company_branch_email?: string;
101
+ company_branch_cellphone?: string;
102
+ company_branch_phone?: string;
103
+ enabled?: boolean;
104
+ user_id?: string;
105
+ created_at?: number;
106
+ created_user?: string;
107
+ reverse_status?: boolean;
108
+ cost_center_id?: string;
109
+ initial_balance_id?: string;
110
+ purchase_receipt_document_branch_identification_number?: string;
111
+ purchase_receipt_document_emission_point_number?: string;
112
+ purchase_receipt_document_sequence?: string;
113
+ installment_number?: number;
114
+ cost_center_code?: string;
115
+ cost_center_name?: string;
116
+ }
117
+ }
118
+ interface ListRetentionParams {
119
+ retention_id: string;
120
+ }
121
+ interface ListRetentionResponse {
122
+ success: boolean;
123
+ data: ListRetentionResponse.Data[];
124
+ }
125
+ namespace ListRetentionResponse {
126
+ interface Data {
127
+ _id: string;
128
+ retention_id?: string;
129
+ date?: number;
130
+ description?: string;
131
+ type?: string;
132
+ value?: number;
133
+ previous_balance?: number;
134
+ subsequent_balance?: number;
135
+ collection_origin_name?: string;
136
+ collection_origin_id?: string;
137
+ created_user?: string;
138
+ created_at?: number;
139
+ }
140
+ }
141
+ interface ListOutflowParams {
142
+ credit_management_detail_id?: string;
143
+ credit_management_id?: string;
144
+ outflow_id?: string;
145
+ }
146
+ interface ListOutflowResponse {
147
+ success: boolean;
148
+ data: ListOutflowResponse.Data[];
149
+ }
150
+ namespace ListOutflowResponse {
151
+ interface Data {
152
+ _id?: string;
153
+ outflow_id?: string;
154
+ outflow_detail_id?: string;
155
+ credit_management_id?: string;
156
+ credit_management_detail_id?: string;
157
+ date?: number;
158
+ description?: string;
159
+ document?: string;
160
+ value?: number;
161
+ previous_balance?: number;
162
+ subsequent_balance?: number;
163
+ created_at?: number;
164
+ created_user?: string;
165
+ collection_origin_name?: string;
166
+ collection_origin_id?: string;
167
+ commentary?: string;
168
+ }
169
+ }
170
+ }
@@ -0,0 +1,19 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmRetentionSalesModel } from '../models/retention-sales.domain.model';
3
+ import { HttpResponse } from '@angular/common/http';
4
+ import { ICbmRetentionSalesRepository } from '../../infrastructure/repositories/retention-sales.infrastructure.repository';
5
+ export declare class CbmRetentionSalesRepository implements ICbmRetentionSalesRepository {
6
+ private service;
7
+ constructor(service: ICbmRetentionSalesRepository);
8
+ list(params: CbmRetentionSalesModel.ListParams): Observable<CbmRetentionSalesModel.ListResponse>;
9
+ listRetentionForCard(params: CbmRetentionSalesModel.ListParamsRetentionForCard): Observable<CbmRetentionSalesModel.ListResposeRetentionForCard>;
10
+ getOne(id: string): Observable<CbmRetentionSalesModel.GetOneResponse>;
11
+ save(data: CbmRetentionSalesModel.SaveBody): Observable<CbmRetentionSalesModel.ConfirmResponse>;
12
+ downloadExcel(params: CbmRetentionSalesModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
13
+ downloadPdf(params: CbmRetentionSalesModel.DownloadPdfParams): Observable<HttpResponse<Blob>>;
14
+ downloadIndividualExcel(id: string): Observable<HttpResponse<Blob>>;
15
+ downloadIndividualPdf(id: string): Observable<HttpResponse<Blob>>;
16
+ sendEmail(id: string, params: CbmRetentionSalesModel.SendEmailParams): Observable<CbmRetentionSalesModel.ConfirmResponse>;
17
+ getLastRetention(clientId: string): Observable<CbmRetentionSalesModel.GetLastRetentionResponse>;
18
+ generateOrRegenerateSeat(invoiceId: string): Observable<CbmRetentionSalesModel.ConfirmResponse>;
19
+ }
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ICbmReverseMovementsRepository } from '../../infrastructure/repositories/reverse-movements.infrastructure.repository';
3
+ import { CbmReverseMovementsModel } from '../models/reverse-movements.domain.model';
4
+ export declare class CbmReverseMovementsRepository implements ICbmReverseMovementsRepository {
5
+ private service;
6
+ constructor(service: ICbmReverseMovementsRepository);
7
+ validation(params: CbmReverseMovementsModel.ValidationOperationParams): Observable<CbmReverseMovementsModel.ValidationOperationResponse>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
3
+ import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
4
+ export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
5
+ private service;
6
+ constructor(service: ICbmSalesPendingDocumentRepository);
7
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ICbmTransactionsPurchaseRepository } from '../../infrastructure/repositories/transactions-purchase.infrastructure.repository';
3
+ import { CbmTransactionsPurchaseModel } from '../models/transactions-purchases.domain.model';
4
+ export declare class CbmTransactionsPurchaseRepository implements ICbmTransactionsPurchaseRepository {
5
+ private service;
6
+ constructor(service: ICbmTransactionsPurchaseRepository);
7
+ listCreditNote(params: CbmTransactionsPurchaseModel.ListCreditNoteParams): Observable<CbmTransactionsPurchaseModel.ListCreditNoteResponse>;
8
+ listRetention(params: CbmTransactionsPurchaseModel.ListRetentionParams): Observable<CbmTransactionsPurchaseModel.ListRetentionResponse>;
9
+ }
@@ -4,8 +4,7 @@ export declare const environment: {
4
4
  readonly msCPC: string;
5
5
  readonly msCPP: string;
6
6
  readonly msSalesEc: string;
7
- readonly msSales: string;
8
- readonly msPurchases: string;
7
+ readonly msPurchasesEc: string;
9
8
  readonly msFinancials: string;
10
9
  readonly msInventory: string;
11
10
  readonly msGlobal: string;
@@ -0,0 +1,16 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmRetentionSalesModel } from "../../domain/models/retention-sales.domain.model";
3
+ import { HttpResponse } from "@angular/common/http";
4
+ export interface ICbmRetentionSalesRepository {
5
+ list(params: CbmRetentionSalesModel.ListParams): Observable<CbmRetentionSalesModel.ListResponse>;
6
+ listRetentionForCard(params: CbmRetentionSalesModel.ListParamsRetentionForCard): Observable<CbmRetentionSalesModel.ListResposeRetentionForCard>;
7
+ getOne(id: string): Observable<CbmRetentionSalesModel.GetOneResponse>;
8
+ save(data: CbmRetentionSalesModel.SaveBody): Observable<CbmRetentionSalesModel.ConfirmResponse>;
9
+ downloadExcel(params: CbmRetentionSalesModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
10
+ downloadPdf(params: CbmRetentionSalesModel.DownloadPdfParams): Observable<HttpResponse<Blob>>;
11
+ downloadIndividualExcel(id: string): Observable<HttpResponse<Blob>>;
12
+ downloadIndividualPdf(id: string): Observable<HttpResponse<Blob>>;
13
+ sendEmail(id: string, params: CbmRetentionSalesModel.SendEmailParams): Observable<CbmRetentionSalesModel.ConfirmResponse>;
14
+ getLastRetention(clientId: string): Observable<CbmRetentionSalesModel.GetLastRetentionResponse>;
15
+ generateOrRegenerateSeat(invoiceId: string): Observable<CbmRetentionSalesModel.ConfirmResponse>;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmReverseMovementsModel } from "../../domain/models/reverse-movements.domain.model";
3
+ export interface ICbmReverseMovementsRepository {
4
+ validation(params: CbmReverseMovementsModel.ValidationOperationParams): Observable<CbmReverseMovementsModel.ValidationOperationResponse>;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
3
+ export interface ICbmSalesPendingDocumentRepository {
4
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmTransactionsPurchaseModel } from '../../domain/models/transactions-purchases.domain.model';
3
+ export interface ICbmTransactionsPurchaseRepository {
4
+ listCreditNote(params: CbmTransactionsPurchaseModel.ListCreditNoteParams): Observable<CbmTransactionsPurchaseModel.ListCreditNoteResponse>;
5
+ listRetention(params: CbmTransactionsPurchaseModel.ListRetentionParams): Observable<CbmTransactionsPurchaseModel.ListRetentionResponse>;
6
+ }
@@ -0,0 +1,20 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClient, HttpResponse } from '@angular/common/http';
3
+ import { CbmRetentionSalesModel } from '../../domain/models/retention-sales.domain.model';
4
+ import { ICbmRetentionSalesRepository } from '../repositories/retention-sales.infrastructure.repository';
5
+ export declare class CbmRetentionSalesService implements ICbmRetentionSalesRepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly url;
9
+ list(params: CbmRetentionSalesModel.ListParams): Observable<CbmRetentionSalesModel.ListResponse>;
10
+ listRetentionForCard(params: CbmRetentionSalesModel.ListParamsRetentionForCard): Observable<CbmRetentionSalesModel.ListResposeRetentionForCard>;
11
+ getOne(id: string): Observable<CbmRetentionSalesModel.GetOneResponse>;
12
+ save(data: CbmRetentionSalesModel.SaveBody): Observable<CbmRetentionSalesModel.ConfirmResponse>;
13
+ downloadExcel(params: CbmRetentionSalesModel.DownloadExcelParams): Observable<HttpResponse<Blob>>;
14
+ downloadPdf(params: CbmRetentionSalesModel.DownloadPdfParams): Observable<HttpResponse<Blob>>;
15
+ downloadIndividualExcel(id: string): Observable<HttpResponse<Blob>>;
16
+ downloadIndividualPdf(id: string): Observable<HttpResponse<Blob>>;
17
+ sendEmail(id: string, params?: CbmRetentionSalesModel.SendEmailParams): Observable<CbmRetentionSalesModel.ConfirmResponse>;
18
+ getLastRetention(clientId: string): Observable<CbmRetentionSalesModel.GetLastRetentionResponse>;
19
+ generateOrRegenerateSeat(retentionId: string): Observable<CbmRetentionSalesModel.ConfirmResponse>;
20
+ }
@@ -0,0 +1,10 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { ICbmReverseMovementsRepository } from '../repositories/reverse-movements.infrastructure.repository';
4
+ import { CbmReverseMovementsModel } from '../../domain/models/reverse-movements.domain.model';
5
+ export declare class CbmReverseMovementsService implements ICbmReverseMovementsRepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly url;
9
+ validation(params: CbmReverseMovementsModel.ValidationOperationParams): Observable<CbmReverseMovementsModel.ValidationOperationResponse>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
4
+ export declare class CbmSalesPendingDocumentService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ private readonly url;
8
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmTransactionsPurchaseModel } from '../../domain/models/transactions-purchases.domain.model';
4
+ export declare class CbmTransactionsPurchaseService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ private readonly url;
8
+ listCreditNote(params: CbmTransactionsPurchaseModel.ListCreditNoteParams): Observable<CbmTransactionsPurchaseModel.ListCreditNoteResponse>;
9
+ listRetention(params: CbmTransactionsPurchaseModel.ListRetentionParams): Observable<CbmTransactionsPurchaseModel.ListRetentionResponse>;
10
+ }
@@ -18,3 +18,4 @@ export { CbmAvailabilityBoardComponent } from '../components/availability-board/
18
18
  export { CbmRelationshipMapComponent } from '../components/relationship-map/relationship-map';
19
19
  export { CbmAddProviderComponent } from '../components/add-provider/add-provider';
20
20
  export { CbmTimelineComponent } from '../components/timeline/timeline';
21
+ export { CbmRelationshipMovementsComponent } from '../components/relationship-movements/relationship-movements';
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmRetentionSalesRepository } from "../../domain/repositories/retention-sales.domain.repository";
3
+ export declare function retentionSalesRepository(http: HttpClient): CbmRetentionSalesRepository;
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmReverseMovementsRepository } from "../../domain/repositories/reverse-movements.domain.repository";
3
+ export declare function reverseMovementsRepository(http: HttpClient): CbmReverseMovementsRepository;
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { CbmSalesPendingDocumentRepository } from '../../domain/repositories/sales-pending-document.domain.repository';
3
+ export declare function salesPendingDocumentFactory(http: HttpClient): CbmSalesPendingDocumentRepository;
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmTransactionsPurchaseRepository } from "../../domain/repositories/transactions-purchase.domain.repository";
3
+ export declare function transactionsFactory(http: HttpClient): CbmTransactionsPurchaseRepository;
@@ -62,3 +62,7 @@ export * from './repositories/user.repository';
62
62
  export * from './repositories/warehouse.repository';
63
63
  export * from './repositories/signature-settings.repository';
64
64
  export * from './repositories/print-settings.repository';
65
+ export * from './repositories/retention-sales.repository';
66
+ export * from './repositories/reverse-movements.repository';
67
+ export * from './repositories/sales-pending-document.repository';
68
+ export * from './repositories/transactions-purchase.repository';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -340,3 +340,22 @@ export * from './lib/domain/models/print-settings.domain.model';
340
340
  //#region credit request repository
341
341
  export * from './lib/domain/repositories/credit-request.domain.repository';
342
342
  export * from './lib/domain/models/credit-request.model';
343
+
344
+ //#region reverse movements repository
345
+ export * from './lib/domain/repositories/reverse-movements.domain.repository';
346
+ export * from './lib/domain/models/reverse-movements.domain.model';
347
+
348
+ //#region retention sales repository
349
+ export * from './lib/domain/repositories/retention-sales.domain.repository';
350
+ export * from './lib/domain/models/retention-sales.domain.model';
351
+
352
+ //#region sales pending document repository
353
+ export * from './lib/domain/repositories/sales-pending-document.domain.repository';
354
+ export * from './lib/domain/models/sales-pending-document.domain.model';
355
+
356
+ //#region transactions purchase repository
357
+ export * from './lib/domain/repositories/transactions-purchase.domain.repository';
358
+ export * from './lib/domain/models/transactions-purchases.domain.model';
359
+
360
+ //#region relationship movements repository
361
+ export * from './lib/components/relationship-movements/relationship-movements';