@cbm-common/cbm-types 0.0.356 → 0.0.357
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/add-provider/add-provider.d.ts +16 -1
- package/lib/domain/models/provider.domain.model.d.ts +2 -0
- package/package.json +2 -2
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +0 -92
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +0 -5
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +0 -9
|
@@ -29,6 +29,8 @@ import { CbmEconomicActivitiesDomainModel } from '../../domain/models/economic-a
|
|
|
29
29
|
import { CbmEconomicActivitiesDomainRepository } from '../../domain/repositories/economic-activities-uafe.domain.repository';
|
|
30
30
|
import { ListService, PaginatedListService } from '@cbm-common/data-access';
|
|
31
31
|
import { ModalMapComponent } from '../modal-map/modal-map.component';
|
|
32
|
+
import { CbmDeadlineModel } from '../../domain/models/deadline.domian.model';
|
|
33
|
+
import { CbmDeadlineDomainRepository } from '../../domain/repositories/deadline.domain.repository';
|
|
32
34
|
export declare class CbmAddProviderComponent implements OnInit, OnDestroy {
|
|
33
35
|
private providerRepository;
|
|
34
36
|
private providerGroupRepository;
|
|
@@ -43,7 +45,8 @@ export declare class CbmAddProviderComponent implements OnInit, OnDestroy {
|
|
|
43
45
|
private readonly territorialOrganizationRepository;
|
|
44
46
|
private readonly bankRepository;
|
|
45
47
|
private readonly generalService;
|
|
46
|
-
|
|
48
|
+
private readonly deadlineRepository;
|
|
49
|
+
constructor(providerRepository: CbmProviderRepository, providerGroupRepository: CbmProviderGroupDomainRepository, documentTypeRepository: CbmDocumentTypeDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, economicActivityRepository: CbmEconomicActivitiesDomainRepository, billingRepository: CbmBillingDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, accountValidatorsDomainService: AccountValidatorsDomainService, generalSettingsPartnersRepository: CbmGeneralSettingsPartnersDomainRepository, territorialOrganizationRepository: CbmTerritorialOrganizationRepository, bankRepository: CbmBankRepository, generalService: GeneralDomainService, deadlineRepository: CbmDeadlineDomainRepository);
|
|
47
50
|
ngOnDestroy(): void;
|
|
48
51
|
generalSettingsConfiguration: import("@angular/core").WritableSignal<CbmGeneralSettingsPartnersModel.ParametersListResponse.Data | null>;
|
|
49
52
|
confirmationModalRef: import("@angular/core").Signal<ConfirmationModal | undefined>;
|
|
@@ -107,8 +110,10 @@ export declare class CbmAddProviderComponent implements OnInit, OnDestroy {
|
|
|
107
110
|
carDealerValue: FormControl<string | null>;
|
|
108
111
|
isRelatedParty: FormControl<boolean>;
|
|
109
112
|
economicActivitySelector: FormControl<CbmEconomicActivitiesDomainModel.ListResponse.Data | null>;
|
|
113
|
+
paymentDeadlines: FormControl<number[]>;
|
|
110
114
|
}>;
|
|
111
115
|
subjectClass: import("@angular/core").Signal<CbmAddProviderModel.SubjectClass | null>;
|
|
116
|
+
selectedDeadlines: import("@angular/core").Signal<number[]>;
|
|
112
117
|
filteredDocumentTypes: import("@angular/core").Signal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
113
118
|
territorialForm: FormGroup<{
|
|
114
119
|
province: FormControl<CbmTerritorialOrganizationModel.ListProvincesResponse.Data | null>;
|
|
@@ -152,6 +157,9 @@ export declare class CbmAddProviderComponent implements OnInit, OnDestroy {
|
|
|
152
157
|
banks$: PaginatedListService<CbmBankModel.ListResponse, CbmBankModel.ListParams, CbmBankModel.ListResponse.Item[]>;
|
|
153
158
|
documentTypesPay$: ListService<CbmDocumentTypeModel.ListResponse, CbmDocumentTypeModel.ListParams, CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
154
159
|
economicActivity$: PaginatedListService<CbmEconomicActivitiesDomainModel.ListResponse, CbmEconomicActivitiesDomainModel.ListParams, CbmEconomicActivitiesDomainModel.ListResponse.Data[]>;
|
|
160
|
+
deadlines$: ListService<CbmDeadlineModel.ListResponse, CbmDeadlineModel.ListParams, CbmDeadlineModel.ListResponse.Data[]>;
|
|
161
|
+
deadlineOptions: import("@angular/core").Signal<CbmDeadlineModel.ListResponse.Data[]>;
|
|
162
|
+
allDeadlinesSelected: import("@angular/core").Signal<boolean>;
|
|
155
163
|
ngOnInit(): void;
|
|
156
164
|
private makeAdditionalInformationSubscriptions;
|
|
157
165
|
private loadAdditionalInformationCatalogs;
|
|
@@ -188,6 +196,13 @@ export declare class CbmAddProviderComponent implements OnInit, OnDestroy {
|
|
|
188
196
|
get economicActivitySelectorControl(): FormControl<CbmEconomicActivitiesDomainModel.ListResponse.Data | null>;
|
|
189
197
|
get carDealerValueControl(): FormControl<string | null>;
|
|
190
198
|
get isRelatedPartyControl(): FormControl<boolean>;
|
|
199
|
+
get paymentDeadlinesControl(): FormControl<number[]>;
|
|
200
|
+
private fetchDeadlines;
|
|
201
|
+
private applyDefaultDeadlines;
|
|
202
|
+
isDeadlineSelected(days: number | undefined): boolean;
|
|
203
|
+
toggleDeadline(days: number | undefined): void;
|
|
204
|
+
toggleAllDeadlines(): void;
|
|
205
|
+
formatDeadline(days: number | undefined): string;
|
|
191
206
|
compareWithId(a: {
|
|
192
207
|
_id: string;
|
|
193
208
|
}, b: {
|
|
@@ -234,6 +234,7 @@ export declare namespace CbmProviderModel {
|
|
|
234
234
|
economic_activity_id?: string;
|
|
235
235
|
economic_activity_code?: string;
|
|
236
236
|
is_related_party?: boolean;
|
|
237
|
+
payment_deadline?: number[];
|
|
237
238
|
subject_class_code: string;
|
|
238
239
|
subject_class_description: string;
|
|
239
240
|
}
|
|
@@ -255,6 +256,7 @@ export declare namespace CbmProviderModel {
|
|
|
255
256
|
employee_salary?: number;
|
|
256
257
|
economic_activity_id?: string;
|
|
257
258
|
economic_activity_code?: string;
|
|
259
|
+
payment_deadline?: number[];
|
|
258
260
|
subject_class_code?: string;
|
|
259
261
|
subject_class_description?: string;
|
|
260
262
|
}
|
package/package.json
CHANGED
|
@@ -1,92 +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_number: string;
|
|
28
|
-
document_emission_point_number: string;
|
|
29
|
-
document_sequence: string;
|
|
30
|
-
new_document_number: string;
|
|
31
|
-
balance: number;
|
|
32
|
-
client_id: string;
|
|
33
|
-
client_payment_deadline?: number;
|
|
34
|
-
client_credit_limit?: number;
|
|
35
|
-
client_business_name: string;
|
|
36
|
-
client_trade_name: string;
|
|
37
|
-
client_document_number: string;
|
|
38
|
-
client_credit_application: boolean;
|
|
39
|
-
client_price_list_id: string;
|
|
40
|
-
client_price_list_code: string;
|
|
41
|
-
client_price_list_name: string;
|
|
42
|
-
client_document_type_id: string;
|
|
43
|
-
client_document_type_name: string;
|
|
44
|
-
client_document_type_code: string;
|
|
45
|
-
client_category_id: string;
|
|
46
|
-
client_category_name: string;
|
|
47
|
-
client_branch_id: string;
|
|
48
|
-
client_branch_code: string;
|
|
49
|
-
client_branch_name: string;
|
|
50
|
-
client_branch_address: string;
|
|
51
|
-
client_branch_email: string[];
|
|
52
|
-
client_branch_phone_code?: string;
|
|
53
|
-
client_branch_phone?: string;
|
|
54
|
-
client_branch_cellphone?: string;
|
|
55
|
-
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
56
|
-
client_branch_province_id?: string;
|
|
57
|
-
client_branch_province_code?: string;
|
|
58
|
-
client_branch_province_name?: string;
|
|
59
|
-
client_branch_canton_id?: string;
|
|
60
|
-
client_branch_canton_code?: string;
|
|
61
|
-
client_branch_canton_name?: string;
|
|
62
|
-
client_branch_parish_id?: string;
|
|
63
|
-
client_branch_parish_code?: string;
|
|
64
|
-
client_branch_parish_name?: string;
|
|
65
|
-
client_branch_longitude?: number;
|
|
66
|
-
client_branch_latitude?: number;
|
|
67
|
-
client_branch_seller_id: string;
|
|
68
|
-
client_branch_seller_identification_number: string;
|
|
69
|
-
client_branch_seller_full_name: string;
|
|
70
|
-
client_branch_seller_address: string;
|
|
71
|
-
client_branch_seller_email: string[];
|
|
72
|
-
client_branch_seller_cellphone: string;
|
|
73
|
-
client_branch_contact_id?: string;
|
|
74
|
-
client_branch_contact_identification_number?: string;
|
|
75
|
-
client_branch_contact_full_name?: string;
|
|
76
|
-
client_branch_contact_cellphone?: string;
|
|
77
|
-
client_branch_contact_email?: string[];
|
|
78
|
-
date: number;
|
|
79
|
-
type: string;
|
|
80
|
-
checked?: boolean;
|
|
81
|
-
}
|
|
82
|
-
interface totales {
|
|
83
|
-
total_retention?: number;
|
|
84
|
-
total_down_payment?: number;
|
|
85
|
-
total_credit_note?: number;
|
|
86
|
-
total_initial_balance_retention?: number;
|
|
87
|
-
total_initial_balance_down_payment?: number;
|
|
88
|
-
total_initial_balance_credit_note?: number;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
export {};
|
|
92
|
-
}
|
|
@@ -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
|
-
}
|
package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts
DELETED
|
@@ -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
|
-
}
|