@cbm-common/cbm-types 0.0.228 → 0.0.230

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 (26) hide show
  1. package/lib/components/alert/alert.component.d.ts +8 -0
  2. package/lib/components/electronic-receipt-monitor/electronic-receipt-monitor.d.ts +88 -0
  3. package/lib/components/user-history/components/sri-history/sri-history.component.d.ts +2 -0
  4. package/lib/domain/models/auth-reactive.domain.model.d.ts +1 -1
  5. package/lib/domain/models/electronic-receipt-monitor.model.d.ts +264 -0
  6. package/lib/domain/models/employee.model.d.ts +176 -0
  7. package/lib/domain/models/retention-sales.domain.model.d.ts +2 -0
  8. package/lib/domain/repositories/electronic-receipt-monitor.domain.repository.d.ts +9 -0
  9. package/lib/domain/services/general.domain.service.d.ts +9 -0
  10. package/lib/environments/environment.d.ts +1 -0
  11. package/lib/environments/environment.development.d.ts +1 -0
  12. package/lib/infrastructure/repositories/electronic-receipts-monitor.infrastructure.repository.d.ts +6 -0
  13. package/lib/infrastructure/services/electronic-receipts-monitor.infrastructure.service.d.ts +11 -0
  14. package/lib/types/get-date.d.ts +9 -0
  15. package/package.json +1 -1
  16. package/public-api.d.ts +10 -0
  17. package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +0 -13
  18. package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +0 -10
  19. package/lib/components/record-detail-metadata/components/options/options.d.ts +0 -13
  20. package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +0 -13
  21. package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +0 -9
  22. package/lib/domain/models/sales-pending-document.domain.model.d.ts +0 -91
  23. package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
  24. package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +0 -7
  25. package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +0 -5
  26. package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +0 -9
@@ -0,0 +1,8 @@
1
+ export declare class CbmAlertComponent {
2
+ type: import("@angular/core").InputSignal<"success" | "warning" | "danger" | "info">;
3
+ title: import("@angular/core").InputSignal<string>;
4
+ message: import("@angular/core").InputSignal<string>;
5
+ icon: import("@angular/core").InputSignal<string>;
6
+ isVisible: import("@angular/core").WritableSignal<boolean>;
7
+ closeAlert(): void;
8
+ }
@@ -0,0 +1,88 @@
1
+ import { DestroyRef, OnInit } from '@angular/core';
2
+ import { FormControl, FormGroup } from '@angular/forms';
3
+ import { Router } from '@angular/router';
4
+ import { PaginatedListService } from '@cbm-common/data-access';
5
+ import { CbmElectronicReceiptMonitorModel } from '../../domain/models/electronic-receipt-monitor.model';
6
+ import { CbmElectronicReceiptMonitorDomainRepository } from '../../domain/repositories/electronic-receipt-monitor.domain.repository';
7
+ import { GeneralDomainService } from '../../domain/services/general.domain.service';
8
+ import { CbmAuthReactiveService } from '../../domain/services/auth-reactive.domain.service';
9
+ import { CbmNotificationService } from '../../remotes/services.remote';
10
+ import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
11
+ import { CbmProviderRepository } from '../../domain/repositories/provider.domain.repository';
12
+ import { CbmClientModel } from '../../domain/models/client.domain.model';
13
+ import { CbmProviderModel } from '../../domain/models/provider.domain.model';
14
+ export declare class CbmElectronicReceiptMonitor implements OnInit {
15
+ private router;
16
+ private destroyRef;
17
+ generalService: GeneralDomainService;
18
+ private electronicReceiptMonitorRepository;
19
+ private readonly providerRepository;
20
+ private readonly clientRepository;
21
+ private readonly notificationService;
22
+ private readonly authService;
23
+ constructor(router: Router, destroyRef: DestroyRef, generalService: GeneralDomainService, electronicReceiptMonitorRepository: CbmElectronicReceiptMonitorDomainRepository, providerRepository: CbmProviderRepository, clientRepository: CbmClientDomainRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService);
24
+ totalAmountClient: import("@angular/core").WritableSignal<CbmElectronicReceiptMonitorModel.TotalAmoun[]>;
25
+ totalAmountProvider: import("@angular/core").WritableSignal<CbmElectronicReceiptMonitorModel.TotalAmoun[]>;
26
+ activeFilter: import("@angular/core").WritableSignal<string>;
27
+ signatureDaysRemaining: import("@angular/core").WritableSignal<number | null>;
28
+ filterFormClient: FormGroup<{
29
+ date_begin: FormControl<string>;
30
+ date_end: FormControl<string>;
31
+ client: FormControl<CbmClientModel.ListResponse.Item | null>;
32
+ sequential: FormControl<string | null>;
33
+ collection_origin_name: FormControl<string | null>;
34
+ sri_state: FormControl<"pending" | "in_process" | "authorized" | "rejected" | null>;
35
+ }>;
36
+ filterFormProvider: FormGroup<{
37
+ date_begin: FormControl<string>;
38
+ date_end: FormControl<string>;
39
+ provider: FormControl<CbmProviderModel.ListResponse.Item | null>;
40
+ sequential: FormControl<string | null>;
41
+ collection_origin_name: FormControl<string | null>;
42
+ sri_state: FormControl<"pending" | "in_process" | "authorized" | "rejected" | null>;
43
+ }>;
44
+ clients$: PaginatedListService<CbmClientModel.ListResponse, CbmClientModel.ListParams, CbmClientModel.ListResponse.Item[]>;
45
+ providers$: PaginatedListService<CbmProviderModel.ListResponse, CbmProviderModel.ListParams, CbmProviderModel.ListResponse.Item[]>;
46
+ clientsDocuments$: PaginatedListService<CbmElectronicReceiptMonitorModel.ListResponseClient, CbmElectronicReceiptMonitorModel.ListParams.Client, CbmElectronicReceiptMonitorModel.ListResponse.Client[]>;
47
+ providersDocuments$: PaginatedListService<CbmElectronicReceiptMonitorModel.ListResponseProvider, CbmElectronicReceiptMonitorModel.ListParams.Provider, CbmElectronicReceiptMonitorModel.ListResponse.Provider[]>;
48
+ readonly documentTypeTranslation: Record<string, string>;
49
+ clientDocumentTypes: string[];
50
+ providerDocumentTypes: string[];
51
+ summaryCards: import("@angular/core").WritableSignal<({
52
+ key: string;
53
+ label: string;
54
+ color: string;
55
+ filterKey: string;
56
+ customStyle?: undefined;
57
+ customBg?: undefined;
58
+ } | {
59
+ key: string;
60
+ label: string;
61
+ color: string;
62
+ filterKey: string;
63
+ customStyle: string;
64
+ customBg: string;
65
+ })[]>;
66
+ getSummaryData(key: string): {
67
+ count: number;
68
+ percentage: string;
69
+ };
70
+ getMassiveShipmentData(): {
71
+ total: number;
72
+ pending: number;
73
+ rejected: number;
74
+ inProcess: number;
75
+ };
76
+ showSignatureAlert: import("@angular/core").Signal<boolean>;
77
+ pendingDocsCount: import("@angular/core").Signal<number>;
78
+ ngOnInit(): void;
79
+ fetchClientsDocuments(resetPagination?: boolean): void;
80
+ fetchProvidersDocuments(resetPagination?: boolean): void;
81
+ compareWithId(a: {
82
+ _id: string;
83
+ }, b: {
84
+ _id: string;
85
+ }): boolean;
86
+ redirectTo(event_module: string, collection_origin_name: string, collection_origin_id: string): void;
87
+ setFilter(sriState: string): void;
88
+ }
@@ -7,6 +7,7 @@ import { CbmSriHistoryDomainRepository } from '../../../../domain/repositories/s
7
7
  import { CbmUserDomainRepository } from '../../../../domain/repositories/user.domain.repository';
8
8
  import { CbmAuthReactiveService } from '../../../../domain/services/auth-reactive.domain.service';
9
9
  import { CbmNotificationService } from "../../../../domain/services/notification/notification.service";
10
+ import { CbmJsonModalComponent } from "../../../json-modal/json-modal";
10
11
  import { CbmUserHistory } from '../../types';
11
12
  export declare class SriHistoryComponent implements OnChanges, OnInit {
12
13
  private sriHistoryRepository;
@@ -63,4 +64,5 @@ export declare class SriHistoryComponent implements OnChanges, OnInit {
63
64
  onPreviousPage(page: number): void;
64
65
  onPageSizeChange(size: number): void;
65
66
  onDropdownMenuClick(event: MouseEvent, dropdownMenu: HTMLUListElement): void;
67
+ openJsonModal(item: CbmSriHistoryModel.ListResponse.Item, type: 'request' | 'response', modal: CbmJsonModalComponent): void;
66
68
  }
@@ -91,7 +91,7 @@ export declare namespace CbmAuthReactiveModel {
91
91
  regime_name: string;
92
92
  withholding_agent_number: string;
93
93
  withholding_agent: boolean;
94
- expiration_signature_date: string;
94
+ expiration_signature_date: number;
95
95
  }
96
96
  interface CompanyBranchData {
97
97
  _id: string;
@@ -0,0 +1,264 @@
1
+ export declare namespace CbmElectronicReceiptMonitorModel {
2
+ type TStateSRI = 'authorized' | 'pending' | 'rejected' | 'in_process';
3
+ namespace ListParams {
4
+ interface Client {
5
+ page: number;
6
+ size: number;
7
+ collection_origin_name?: string;
8
+ client_id?: string;
9
+ company_environment?: string;
10
+ SRI_state?: TStateSRI;
11
+ date_begin?: number;
12
+ date_end?: number;
13
+ sequential?: string;
14
+ }
15
+ interface Provider {
16
+ page: number;
17
+ size: number;
18
+ collection_origin_name?: string;
19
+ provider_id?: string;
20
+ company_environment?: string;
21
+ SRI_state?: TStateSRI;
22
+ date_begin?: number;
23
+ date_end?: number;
24
+ sequential?: string;
25
+ }
26
+ }
27
+ interface ListResponseClient {
28
+ success: boolean;
29
+ pageNum: number;
30
+ pageSize: number;
31
+ pages: number;
32
+ total: number;
33
+ items: ListResponse.Client[];
34
+ totalAmount: TotalAmoun[];
35
+ }
36
+ interface ListResponseProvider {
37
+ success: boolean;
38
+ pageNum: number;
39
+ pageSize: number;
40
+ pages: number;
41
+ total: number;
42
+ items: ListResponse.Provider[];
43
+ totalAmount: TotalAmoun[];
44
+ }
45
+ interface TotalAmoun {
46
+ _id: string;
47
+ sum_sri_state: number;
48
+ }
49
+ namespace ListResponse {
50
+ interface Client {
51
+ _id: string;
52
+ company_id: string;
53
+ company_NIF: string;
54
+ company_address: string;
55
+ company_trade_name: string;
56
+ company_business_name: string;
57
+ company_mandatory_accounting: boolean;
58
+ company_withholding_agent: boolean;
59
+ company_special_taxpayer: boolean;
60
+ company_artisanal_qualification: boolean;
61
+ company_withholding_agent_number: string;
62
+ company_regime_id: string;
63
+ company_regime_name: string;
64
+ company_branch_id: string;
65
+ company_branch_environment: number;
66
+ company_branch_identification_number: string;
67
+ company_branch_trade_name: string;
68
+ company_branch_logo: string;
69
+ company_branch_address: string;
70
+ company_branch_email: string[];
71
+ company_branch_cellphone: string;
72
+ company_branch_phone: string;
73
+ country_id: string;
74
+ country_code: string;
75
+ country_name: string;
76
+ country_short_name: string;
77
+ period_id: string;
78
+ period_year: string;
79
+ client_id: string;
80
+ client_business_name: string;
81
+ client_trade_name: string;
82
+ client_document_number: string;
83
+ client_credit_application: boolean;
84
+ client_document_type_id: string;
85
+ client_document_type_name: string;
86
+ client_document_type_code: string;
87
+ client_category_id: string;
88
+ client_category_name: string;
89
+ client_price_list_id: string;
90
+ client_price_list_code: string;
91
+ client_price_list_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: string;
101
+ client_branch_seller_id: string;
102
+ client_branch_seller_identification_number: string;
103
+ client_branch_seller_full_name: string;
104
+ client_branch_seller_address: string;
105
+ client_branch_seller_email: string[];
106
+ client_branch_seller_cellphone: string;
107
+ document_type: string;
108
+ environment: number;
109
+ document_nomenclature: string;
110
+ document_number: string;
111
+ document_date: number;
112
+ SRI_state: TStateSRI;
113
+ document_branch_identification_number: string;
114
+ document_emission_point_number: string;
115
+ document_emission_point_id: string;
116
+ document_sequence: string;
117
+ authorization_number: string;
118
+ payment_term: string;
119
+ tax_base: number;
120
+ discount: number;
121
+ service: number;
122
+ commentary: string;
123
+ tax_base_iva: number;
124
+ tax_base_iva_rate_0: number;
125
+ tax_base_iva_exempt: number;
126
+ tax_base_iva_not_subject: number;
127
+ tax_base_irbpnr: number;
128
+ tax_base_ice: number;
129
+ tax_iva: number;
130
+ tax_irbpnr: number;
131
+ tax_ice: number;
132
+ total: number;
133
+ invoice_type: string;
134
+ enabled: boolean;
135
+ deleted: boolean;
136
+ user_id: string;
137
+ created_user: string;
138
+ reverse_status: boolean;
139
+ deleted_at: number;
140
+ default_cost_center_id: string;
141
+ default_cost_center_code: string;
142
+ default_cost_center_name: string;
143
+ default_cost_center_father_code: string;
144
+ default_cost_center_father_name: string;
145
+ default_discount_rate: number;
146
+ additional_information: AdditionalInformation[];
147
+ locale: string;
148
+ timezone: string;
149
+ terms_and_conditions: boolean;
150
+ created_at: number;
151
+ document_origin_name: string;
152
+ related_documents: RelatedDocument[];
153
+ SRI_authorization_date: number;
154
+ SRI_authorization_type: string;
155
+ SRI_message: string;
156
+ SRI_user_name: string;
157
+ updated_at: number;
158
+ updated_user: string;
159
+ url_authorized_document: string;
160
+ retry_count: number;
161
+ collection_origin_name_consultation: string;
162
+ event_module: string;
163
+ }
164
+ interface AdditionalInformation {
165
+ _id: string;
166
+ description: string;
167
+ value: string;
168
+ type: string;
169
+ }
170
+ interface RelatedDocument {
171
+ _id: string;
172
+ collection_origin_id: string;
173
+ collection_origin_name: string;
174
+ document_number: string;
175
+ secuencial: string;
176
+ date: number;
177
+ total: number;
178
+ }
179
+ interface Provider {
180
+ _id: string;
181
+ company_id: string;
182
+ company_NIF: string;
183
+ company_address: string;
184
+ company_trade_name: string;
185
+ company_mandatory_accounting: boolean;
186
+ company_withholding_agent: boolean;
187
+ company_special_taxpayer: boolean;
188
+ company_artisanal_qualification: boolean;
189
+ company_artisanal_qualification_number: string;
190
+ company_withholding_agent_number: string;
191
+ company_regime_name: string;
192
+ company_environment: number;
193
+ company_business_name: string;
194
+ company_logo: string;
195
+ purchase_liquidation_origin: string;
196
+ locale: string;
197
+ timezone: string;
198
+ document_type_code: string;
199
+ document_type_name: string;
200
+ document_type_id: string;
201
+ company_regime_id: string;
202
+ provider_id: string;
203
+ provider_business_name: string;
204
+ provider_trade_name: string;
205
+ provider_document_number: string;
206
+ provider_address: string;
207
+ provider_email: string[];
208
+ provider_phone_code: string;
209
+ provider_cellphone: string;
210
+ provider_category_id: string;
211
+ provider_category_name: string;
212
+ provider_document_type_id: string;
213
+ provider_document_type_code: string;
214
+ provider_document_type_name: string;
215
+ country_id: string;
216
+ period_id: string;
217
+ tax_support_id: string;
218
+ document_emission_point_id: string;
219
+ default_cost_center_id: string;
220
+ credit_SRI_payment_term_id: string;
221
+ credit_SRI_payment_term_code: string;
222
+ credit_SRI_payment_term_name: string;
223
+ user_id: string;
224
+ country_code: string;
225
+ country_name: string;
226
+ country_short_name: string;
227
+ period_year: string;
228
+ document_nomenclature: string;
229
+ document_number: string;
230
+ document_date: number;
231
+ SRI_state: TStateSRI;
232
+ document_branch_identification_number: string;
233
+ document_emission_point_number: string;
234
+ document_sequence: string;
235
+ authorization_number: string;
236
+ tax_support_code: string;
237
+ tax_support_name: string;
238
+ tax_base: number;
239
+ tax_base_iva: number;
240
+ tax_base_iva_rate_0: number;
241
+ tax_base_iva_exempt: number;
242
+ tax_base_iva_not_subject: number;
243
+ tax_iva: number;
244
+ total: number;
245
+ commentary: string;
246
+ default_cost_center_code: string;
247
+ default_cost_center_name: string;
248
+ default_cost_center_father_code: string;
249
+ default_cost_center_father_name: string;
250
+ deleted: boolean;
251
+ retention: boolean;
252
+ created_user: string;
253
+ reverse_status: boolean;
254
+ created_at: number;
255
+ SRI_authorization_date: number;
256
+ url_authorized_document: string;
257
+ retry_count: number;
258
+ SRI_last_attempt: number;
259
+ SRI_message: string;
260
+ collection_origin_name: string;
261
+ event_module: string;
262
+ }
263
+ }
264
+ }
@@ -0,0 +1,176 @@
1
+ export declare namespace CbmEmployeeModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ department_id?: string;
6
+ position_id?: string;
7
+ marital_status_id?: string;
8
+ document_type_id?: string;
9
+ name_surname?: string;
10
+ enabled?: boolean;
11
+ }
12
+ interface ListResponse {
13
+ success: boolean;
14
+ items: ListResponse.Data[];
15
+ }
16
+ namespace ListResponse {
17
+ interface Data {
18
+ _id: string;
19
+ company_id: string;
20
+ company_NIF: string;
21
+ company_trade_name: string;
22
+ company_business_name: string;
23
+ company_address: string;
24
+ company_logo: string;
25
+ country_id: string;
26
+ country_code: string;
27
+ country_name: string;
28
+ country_short_name: string;
29
+ period_id: string;
30
+ period_year: string;
31
+ department_id: string;
32
+ department_code: number;
33
+ department_name: string;
34
+ position_id: string;
35
+ position_code: number;
36
+ position_name: string;
37
+ marital_status_id: string;
38
+ marital_status_code: string;
39
+ marital_status_name: string;
40
+ document_type_id: string;
41
+ document_type_code: string;
42
+ document_type_name: string;
43
+ sequence_number: number;
44
+ document_number: string;
45
+ names: string;
46
+ surnames: string;
47
+ address: string;
48
+ phone_code: string;
49
+ phone: string;
50
+ cellphone: string;
51
+ email: string[];
52
+ gender: string;
53
+ birthdate: number;
54
+ enabled: boolean;
55
+ deleted: boolean;
56
+ user_id: string;
57
+ created_user: string;
58
+ created_at: number;
59
+ }
60
+ }
61
+ interface SaveBody {
62
+ company_NIF: string;
63
+ company_trade_name: string;
64
+ company_business_name: string;
65
+ company_address: string;
66
+ company_email?: string;
67
+ company_logo: string;
68
+ department_id: string;
69
+ department_code: number;
70
+ department_name: string;
71
+ position_id: string;
72
+ position_code: number;
73
+ position_name: string;
74
+ marital_status_id: string;
75
+ marital_status_code: string;
76
+ marital_status_name: string;
77
+ document_type_id: string;
78
+ document_type_code: string;
79
+ document_type_name: string;
80
+ document_number: string;
81
+ names: string;
82
+ surnames: string;
83
+ address: string;
84
+ phone_code: string;
85
+ phone: string;
86
+ cellphone: string;
87
+ email: string[];
88
+ email_business: string[];
89
+ gender: string;
90
+ birthdate: number;
91
+ }
92
+ interface UpdateBody {
93
+ company_NIF: string;
94
+ company_trade_name: string;
95
+ company_business_name: string;
96
+ company_address: string;
97
+ company_email?: string;
98
+ company_logo: string;
99
+ department_id: string;
100
+ department_code: number;
101
+ department_name: string;
102
+ position_id: string;
103
+ position_code: number;
104
+ position_name: string;
105
+ marital_status_id: string;
106
+ marital_status_code: string;
107
+ marital_status_name: string;
108
+ document_type_id: string;
109
+ document_type_code: string;
110
+ document_type_name: string;
111
+ document_number: string;
112
+ names: string;
113
+ surnames: string;
114
+ address: string;
115
+ phone_code: string;
116
+ phone: string;
117
+ cellphone: string;
118
+ email: string[];
119
+ email_business: string[];
120
+ gender: string;
121
+ birthdate: number;
122
+ }
123
+ interface GetOneResponse {
124
+ success: boolean;
125
+ data: GetOneResponse.Data;
126
+ }
127
+ namespace GetOneResponse {
128
+ interface Data {
129
+ _id: string;
130
+ company_id: string;
131
+ company_NIF: string;
132
+ company_trade_name: string;
133
+ company_business_name: string;
134
+ company_address: string;
135
+ company_logo: string;
136
+ country_id: string;
137
+ country_code: string;
138
+ country_name: string;
139
+ country_short_name: string;
140
+ period_id: string;
141
+ period_year: string;
142
+ department_id: string;
143
+ department_code: number;
144
+ department_name: string;
145
+ position_id: string;
146
+ position_code: number;
147
+ position_name: string;
148
+ marital_status_id: string;
149
+ marital_status_code: string;
150
+ marital_status_name: string;
151
+ document_type_id: string;
152
+ document_type_code: string;
153
+ document_type_name: string;
154
+ sequence_number: number;
155
+ document_number: string;
156
+ names: string;
157
+ surnames: string;
158
+ address: string;
159
+ phone_code: string;
160
+ phone: string;
161
+ cellphone: string;
162
+ email: string[];
163
+ emails_company: string[];
164
+ gender: string;
165
+ birthdate: number;
166
+ enabled: boolean;
167
+ deleted: boolean;
168
+ user_id: string;
169
+ user_inactive_at: number;
170
+ disabled_reason: string;
171
+ user_inactive_name: string;
172
+ created_user: string;
173
+ created_at: number;
174
+ }
175
+ }
176
+ }
@@ -153,6 +153,8 @@ export declare namespace CbmRetentionSalesModel {
153
153
  created_user: string;
154
154
  reverse_status: boolean;
155
155
  created_at: number;
156
+ document_date: number;
157
+ account_date: number;
156
158
  retention_id: string;
157
159
  cost_center_id: string;
158
160
  retention_type: string;
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmElectronicReceiptMonitorModel } from '../models/electronic-receipt-monitor.model';
3
+ import { ICbmElectronicReceiptMonitorInfrastructureRepository } from '../../infrastructure/repositories/electronic-receipts-monitor.infrastructure.repository';
4
+ export declare class CbmElectronicReceiptMonitorDomainRepository implements ICbmElectronicReceiptMonitorInfrastructureRepository {
5
+ private service;
6
+ constructor(service: ICbmElectronicReceiptMonitorInfrastructureRepository);
7
+ listProvider(request: CbmElectronicReceiptMonitorModel.ListParams.Provider): Observable<CbmElectronicReceiptMonitorModel.ListResponseProvider>;
8
+ listClient(request: CbmElectronicReceiptMonitorModel.ListParams.Client): Observable<CbmElectronicReceiptMonitorModel.ListResponseClient>;
9
+ }
@@ -1,6 +1,15 @@
1
1
  export declare class GeneralDomainService {
2
2
  modalShow(modalId: string): void;
3
3
  modalHide(modalId: string): void;
4
+ getTimestampFromDate(localDate: string): number;
5
+ findRoute(eventModule: string, collectionName: string): {
6
+ event: string | undefined;
7
+ route: {
8
+ panel: string;
9
+ path: string;
10
+ collection: string;
11
+ } | undefined;
12
+ };
4
13
  }
5
14
  export declare function getDateTimestamp(localDate: string): number;
6
15
  export declare function findRoute(eventModule: string, collectionName: string): {
@@ -21,6 +21,7 @@ export declare const environment: {
21
21
  readonly msService: string;
22
22
  readonly msReportService: string;
23
23
  readonly msRrhhEc: string;
24
+ readonly msAssistant: string;
24
25
  webSocket: string;
25
26
  hostAuth: string;
26
27
  hostApp: string;
@@ -21,6 +21,7 @@ export declare const environment: {
21
21
  readonly msService: string;
22
22
  readonly msReportService: string;
23
23
  readonly msRrhhEc: string;
24
+ readonly msAssistant: string;
24
25
  webSocket: string;
25
26
  hostAuth: string;
26
27
  hostApp: string;
@@ -0,0 +1,6 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmElectronicReceiptMonitorModel } from '../../domain/models/electronic-receipt-monitor.model';
3
+ export interface ICbmElectronicReceiptMonitorInfrastructureRepository {
4
+ listProvider(params: CbmElectronicReceiptMonitorModel.ListParams.Provider): Observable<CbmElectronicReceiptMonitorModel.ListResponseProvider>;
5
+ listClient(params: CbmElectronicReceiptMonitorModel.ListParams.Client): Observable<CbmElectronicReceiptMonitorModel.ListResponseClient>;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmElectronicReceiptMonitorModel } from '../../domain/models/electronic-receipt-monitor.model';
4
+ import { ICbmElectronicReceiptMonitorInfrastructureRepository } from '../repositories/electronic-receipts-monitor.infrastructure.repository';
5
+ export declare class CbmElectronicReceiptMonitorInfrastructureService implements ICbmElectronicReceiptMonitorInfrastructureRepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly baseUrl;
9
+ listProvider(params: CbmElectronicReceiptMonitorModel.ListParams.Provider): Observable<CbmElectronicReceiptMonitorModel.ListResponseProvider>;
10
+ listClient(params: CbmElectronicReceiptMonitorModel.ListParams.Client): Observable<CbmElectronicReceiptMonitorModel.ListResponseClient>;
11
+ }
@@ -0,0 +1,9 @@
1
+ export declare const getDate: {
2
+ current: () => string;
3
+ firstYear: () => string;
4
+ firstMonth: () => string;
5
+ lastMonth: () => string;
6
+ lastYear: () => string;
7
+ firstNextYear: () => string;
8
+ lastNextMonth: () => string;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.228",
3
+ "version": "0.0.230",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -190,6 +190,10 @@ export * from './lib/domain/models/provider-group.domain.model';
190
190
  export * from './lib/domain/repositories/rate.domain.repository';
191
191
  export * from './lib/domain/models/rate.domain.model';
192
192
 
193
+ //#region electronic-receipt-monitor repository
194
+ export * from './lib/domain/repositories/electronic-receipt-monitor.domain.repository';
195
+ export * from './lib/domain/models/electronic-receipt-monitor.model';
196
+
193
197
  //#region reason country repository
194
198
  export * from './lib/domain/repositories/reason-country.domain.repository';
195
199
  export * from './lib/domain/models/reason-country.domain.model';
@@ -222,6 +226,12 @@ export {
222
226
  TOptionType as TDocumentsReferenceOptionType,
223
227
  } from './lib/components/documents-reference/types';
224
228
 
229
+ //#region electronic-receipt-monitor
230
+ export * from './lib/components/electronic-receipt-monitor/electronic-receipt-monitor';
231
+
232
+ //#region alert
233
+ export * from './lib/components/alert/alert.component';
234
+
225
235
  //#region dropzone component
226
236
  export * from './lib/components/dropzone/dropzone';
227
237
 
@@ -1,13 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
2
- export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
3
- private element;
4
- private renderer2;
5
- hiddenMenu: import("@angular/core").InputSignal<boolean>;
6
- hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
7
- constructor(element: ElementRef, renderer2: Renderer2);
8
- ngAfterViewInit(): void;
9
- ngOnChanges(changes: SimpleChanges): void;
10
- toggle(event: Event): void;
11
- private toggleMenu;
12
- initStyle(): void;
13
- }
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- export declare class DropdownDirective implements AfterViewInit {
3
- private elementRef;
4
- private renderer;
5
- private isOpen;
6
- constructor(elementRef: ElementRef, renderer: Renderer2);
7
- ngAfterViewInit(): void;
8
- toggleDropdown(event: MouseEvent): void;
9
- closeDropdown(event: MouseEvent): void;
10
- }
@@ -1,13 +0,0 @@
1
- import { WritableSignal } from '@angular/core';
2
- import { Router, ActivatedRoute, Params } from '@angular/router';
3
- import { CbmRecordDetailMetadataModel } from "../../types";
4
- export declare class OptionsComponent {
5
- private router;
6
- private route;
7
- constructor(router: Router, route: ActivatedRoute);
8
- metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
9
- options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
10
- optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
11
- executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
12
- navigate(routerLink?: string, queryParams?: Params): void;
13
- }
@@ -1,13 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
2
- export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
3
- private element;
4
- private renderer2;
5
- hiddenMenu: import("@angular/core").InputSignal<boolean>;
6
- hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
7
- constructor(element: ElementRef, renderer2: Renderer2);
8
- ngAfterViewInit(): void;
9
- ngOnChanges(changes: SimpleChanges): void;
10
- toggle(event: Event): void;
11
- private toggleMenu;
12
- initStyle(): void;
13
- }
@@ -1,9 +0,0 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
2
- export declare class DropdownDirective {
3
- private elementRef;
4
- private renderer;
5
- private isOpen;
6
- constructor(elementRef: ElementRef, renderer: Renderer2);
7
- toggleDropdown(event: MouseEvent): void;
8
- closeDropdown(event: MouseEvent): void;
9
- }
@@ -1,91 +0,0 @@
1
- export declare namespace CbmSalesPendingDocumentModel {
2
- type TTypeEstablishment = 'matrix' | 'branch';
3
- export interface ListParams {
4
- page: number;
5
- size: number;
6
- document_number?: string;
7
- date_end?: number;
8
- date_begin?: number;
9
- client_id?: string;
10
- client_branch_id?: string;
11
- type?: string;
12
- }
13
- export interface ListResponse {
14
- success: boolean;
15
- pageNum: number;
16
- pageSize: number;
17
- pages: number;
18
- total: number;
19
- totales: ListResponse.totales;
20
- items: ListResponse.Item[];
21
- }
22
- export namespace ListResponse {
23
- interface Item {
24
- _id: string;
25
- created_at: number;
26
- document_nomenclature: string;
27
- document_emission_point_number: string;
28
- document_sequence: string;
29
- balance: number;
30
- client_id: string;
31
- client_payment_deadline?: number;
32
- client_credit_limit?: number;
33
- client_business_name: string;
34
- client_trade_name: string;
35
- client_document_number: string;
36
- client_credit_application: boolean;
37
- client_price_list_id: string;
38
- client_price_list_code: string;
39
- client_price_list_name: string;
40
- client_document_type_id: string;
41
- client_document_type_name: string;
42
- client_document_type_code: string;
43
- client_category_id: string;
44
- client_category_name: string;
45
- client_branch_id: string;
46
- client_branch_code: string;
47
- client_branch_name: string;
48
- client_branch_address: string;
49
- client_branch_email: string[];
50
- client_branch_phone_code?: string;
51
- client_branch_phone?: string;
52
- client_branch_cellphone?: string;
53
- client_branch_type_establishment: `${TTypeEstablishment}`;
54
- client_branch_province_id?: string;
55
- client_branch_province_code?: string;
56
- client_branch_province_name?: string;
57
- client_branch_canton_id?: string;
58
- client_branch_canton_code?: string;
59
- client_branch_canton_name?: string;
60
- client_branch_parish_id?: string;
61
- client_branch_parish_code?: string;
62
- client_branch_parish_name?: string;
63
- client_branch_longitude?: number;
64
- client_branch_latitude?: number;
65
- client_branch_seller_id: string;
66
- client_branch_seller_identification_number: string;
67
- client_branch_seller_full_name: string;
68
- client_branch_seller_address: string;
69
- client_branch_seller_email: string[];
70
- client_branch_seller_cellphone: string;
71
- client_branch_contact_id?: string;
72
- client_branch_contact_identification_number?: string;
73
- client_branch_contact_full_name?: string;
74
- client_branch_contact_cellphone?: string;
75
- client_branch_contact_email?: string[];
76
- new_document_number: string;
77
- date: number;
78
- type: string;
79
- checked?: boolean;
80
- }
81
- interface totales {
82
- total_retention?: number;
83
- total_down_payment?: number;
84
- total_credit_note?: number;
85
- total_initial_balance_retention?: number;
86
- total_initial_balance_down_payment?: number;
87
- total_initial_balance_credit_note?: number;
88
- }
89
- }
90
- export {};
91
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
3
- export interface ICbmBlanketAgreementCategoryServiceRepository {
4
- list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
5
- save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
6
- delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
7
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }