@cbm-common/cbm-types 0.0.346 → 0.0.348
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-client/add-client.d.ts +8 -13
- package/lib/components/add-provider/add-provider.d.ts +4 -5
- package/lib/components/add-provider/add-provider.model.d.ts +4 -0
- package/lib/components/add-provider/constants.d.ts +2 -0
- package/lib/domain/models/client.domain.model.d.ts +6 -0
- package/lib/domain/models/provider.domain.model.d.ts +9 -0
- package/package.json +1 -1
|
@@ -28,6 +28,8 @@ import { AccountValidatorsDomainService } from '../../domain/services/account-va
|
|
|
28
28
|
import { CbmPersonTypeUAFEModel } from '../../domain/models/person-type-uafe.domain.model';
|
|
29
29
|
import { CbmPersonTypeUAFERepository } from '../../domain/repositories/person-type-uafe.domain.repository';
|
|
30
30
|
import { GeneralDomainService } from '../../domain/services/general.domain.service';
|
|
31
|
+
import { CbmEconomicActivitiesDomainRepository } from '../../domain/repositories/economic-activities-uafe.domain.repository';
|
|
32
|
+
import { CbmEconomicActivitiesDomainModel } from '../../domain/models/economic-activities-uafe.domain.model';
|
|
31
33
|
export type TSaveOptions = 'new' | 'view' | 'close';
|
|
32
34
|
export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
33
35
|
private destroyRef;
|
|
@@ -41,11 +43,12 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
41
43
|
private clientRepository;
|
|
42
44
|
private readonly generalSettingsPartnersRepository;
|
|
43
45
|
private rateRepository;
|
|
46
|
+
private economicActivityRepository;
|
|
44
47
|
private settingsProfessionsRepository;
|
|
45
48
|
private personTypeUAFERepository;
|
|
46
49
|
private readonly accountValidatorsDomainService;
|
|
47
50
|
private readonly generalService;
|
|
48
|
-
constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, generalSettingsPartnersRepository: CbmGeneralSettingsPartnersDomainRepository, rateRepository: CbmRateDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository, personTypeUAFERepository: CbmPersonTypeUAFERepository, accountValidatorsDomainService: AccountValidatorsDomainService, generalService: GeneralDomainService);
|
|
51
|
+
constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, generalSettingsPartnersRepository: CbmGeneralSettingsPartnersDomainRepository, rateRepository: CbmRateDomainRepository, economicActivityRepository: CbmEconomicActivitiesDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository, personTypeUAFERepository: CbmPersonTypeUAFERepository, accountValidatorsDomainService: AccountValidatorsDomainService, generalService: GeneralDomainService);
|
|
49
52
|
dropdownMenuRef: import("@angular/core").Signal<ElementRef<HTMLUListElement> | undefined>;
|
|
50
53
|
clientId: import("@angular/core").InputSignal<string | undefined>;
|
|
51
54
|
isFromOrigin: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -77,6 +80,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
77
80
|
priceLists$: ListService<CbmPriceListModel.ListResponse, CbmPriceListModel.ListParams, CbmPriceListModel.ListResponse.Data[]>;
|
|
78
81
|
countryCodes$: ListService<import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListResponse, import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListParams, import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListResponse.Data[]>;
|
|
79
82
|
subjectClasses$: PaginatedListService<CbmPersonTypeUAFEModel.ListResponse, CbmPersonTypeUAFEModel.ListParams, CbmPersonTypeUAFEModel.ListResponse.Item[]>;
|
|
83
|
+
economicActivity$: PaginatedListService<CbmEconomicActivitiesDomainModel.ListResponse, CbmEconomicActivitiesDomainModel.ListParams, CbmEconomicActivitiesDomainModel.ListResponse.Data[]>;
|
|
80
84
|
rate$: PaginatedListService<CbmRateModel.ListResponse, CbmRateModel.ListParams, CbmRateModel.ListResponse.Item[]>;
|
|
81
85
|
professions$: PaginatedListService<CbmSettingsProfessionsModel.ListResponse, CbmSettingsProfessionsModel.ListParams, CbmSettingsProfessionsModel.ListResponse.Item[]>;
|
|
82
86
|
defaultDocumentNumber: string | null;
|
|
@@ -90,16 +94,6 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
90
94
|
saveOption: import("@angular/core").WritableSignal<TSaveOptions | null>;
|
|
91
95
|
readonly carDelear: import("@angular/core").Signal<boolean>;
|
|
92
96
|
readonly pms: import("@angular/core").Signal<boolean>;
|
|
93
|
-
readonly CAR_DEALER_TYPES: readonly [{
|
|
94
|
-
readonly label: "Empleado privado";
|
|
95
|
-
readonly value: "privat_sector_employee";
|
|
96
|
-
}, {
|
|
97
|
-
readonly label: "Empleado publico";
|
|
98
|
-
readonly value: "civil_servant";
|
|
99
|
-
}, {
|
|
100
|
-
readonly label: "Sociedad";
|
|
101
|
-
readonly value: "society";
|
|
102
|
-
}];
|
|
103
97
|
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent | undefined>;
|
|
104
98
|
clientForm: FormGroup<{
|
|
105
99
|
documentType: FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
@@ -117,13 +111,13 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
117
111
|
rate: FormControl<CbmRateModel.ListResponse.Item | null>;
|
|
118
112
|
emails: FormControl<string[]>;
|
|
119
113
|
economicActivity: FormControl<string | null>;
|
|
114
|
+
economicActivitySelector: FormControl<CbmEconomicActivitiesDomainModel.ListResponse.Data | null>;
|
|
120
115
|
hasCellphone: FormControl<boolean>;
|
|
121
116
|
retentionAgent: FormControl<boolean>;
|
|
122
117
|
creditApplication: FormControl<boolean>;
|
|
123
118
|
requestCredit: FormControl<string | null>;
|
|
124
119
|
reasonOfCredit: FormControl<string | null>;
|
|
125
120
|
profession: FormControl<CbmSettingsProfessionsModel.ListResponse.Item | null>;
|
|
126
|
-
carDealerType: FormControl<"society" | "privat_sector_employee" | "civil_servant" | null>;
|
|
127
121
|
carDealerValue: FormControl<string | null>;
|
|
128
122
|
}>;
|
|
129
123
|
ngOnInit(): void;
|
|
@@ -144,16 +138,17 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
144
138
|
get sellerControl(): FormControl<CbmSellerModel.ListResponse.Data | null>;
|
|
145
139
|
get priceListControl(): FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
146
140
|
get economicActivityControl(): FormControl<string | null>;
|
|
141
|
+
get economicActivitySelectorControl(): FormControl<CbmEconomicActivitiesDomainModel.ListResponse.Data | null>;
|
|
147
142
|
get hasCellphoneControl(): FormControl<boolean>;
|
|
148
143
|
get retentionAgentControl(): FormControl<boolean>;
|
|
149
144
|
get creditApplicationControl(): FormControl<boolean>;
|
|
150
145
|
get requestCreditControl(): FormControl<string | null>;
|
|
151
146
|
get professionControl(): FormControl<CbmSettingsProfessionsModel.ListResponse.Item | null>;
|
|
152
|
-
get carDealerTypeControl(): FormControl<"society" | "privat_sector_employee" | "civil_servant" | null>;
|
|
153
147
|
get carDealerValueControl(): FormControl<string | null>;
|
|
154
148
|
private fetchGeneralSettingsConfiguration;
|
|
155
149
|
private syncConfigurationDrivenControls;
|
|
156
150
|
private syncCarDealerControls;
|
|
151
|
+
private syncEconomicActivityControls;
|
|
157
152
|
private syncRateControl;
|
|
158
153
|
compareWithId(a: {
|
|
159
154
|
_id: string;
|
|
@@ -48,7 +48,6 @@ export declare class CbmAddProviderComponent {
|
|
|
48
48
|
documentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
49
49
|
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
50
50
|
countryCodes: import("@angular/core").WritableSignal<CbmCountryCodeModel.ListResponse.Data[]>;
|
|
51
|
-
economicActivity: import("@angular/core").WritableSignal<CbmEconomicActivitiesDomainModel.ListResponse.Data[]>;
|
|
52
51
|
providerToUpdate: import("@angular/core").WritableSignal<CbmProviderModel.GetOneResponse.Data | null>;
|
|
53
52
|
isEmailInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
54
53
|
actionRegister: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -59,7 +58,6 @@ export declare class CbmAddProviderComponent {
|
|
|
59
58
|
statusOfUpdateProvider: import("@angular/core").WritableSignal<TStatus>;
|
|
60
59
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
61
60
|
statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
|
|
62
|
-
statusOfFetchEconomicActivity: import("@angular/core").WritableSignal<TStatus>;
|
|
63
61
|
statusOfExtractProviderData: import("@angular/core").WritableSignal<TStatus>;
|
|
64
62
|
statusOfFetchGeneralSettingsConfiguration: import("@angular/core").WritableSignal<TStatus>;
|
|
65
63
|
readonly carDelear: import("@angular/core").Signal<boolean>;
|
|
@@ -73,12 +71,14 @@ export declare class CbmAddProviderComponent {
|
|
|
73
71
|
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
74
72
|
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
75
73
|
};
|
|
74
|
+
SUBJECT_CLASSES: CbmAddProviderModel.SubjectClass[];
|
|
76
75
|
previousDealerConfiguration: import("@angular/core").WritableSignal<boolean>;
|
|
77
76
|
documentNumberDisplay: FormControl<string | null>;
|
|
78
77
|
providerForm: FormGroup<{
|
|
79
78
|
documentType: FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
80
79
|
documentNumber: FormControl<string | null>;
|
|
81
80
|
category: FormControl<CbmProviderGroupModel.ListAsTreeResponse.Category | null>;
|
|
81
|
+
subjectClass: FormControl<CbmAddProviderModel.SubjectClass | null>;
|
|
82
82
|
businessName: FormControl<string | null>;
|
|
83
83
|
tradename: FormControl<string | null>;
|
|
84
84
|
address: FormControl<string | null>;
|
|
@@ -91,11 +91,12 @@ export declare class CbmAddProviderComponent {
|
|
|
91
91
|
isRelatedParty: FormControl<boolean>;
|
|
92
92
|
economicActivitySelector: FormControl<CbmEconomicActivitiesDomainModel.ListResponse.Data | null>;
|
|
93
93
|
}>;
|
|
94
|
-
economicActivity$: PaginatedListService<CbmEconomicActivitiesDomainModel.ListResponse, CbmEconomicActivitiesDomainModel.ListParams, CbmEconomicActivitiesDomainModel.ListResponse>;
|
|
94
|
+
economicActivity$: PaginatedListService<CbmEconomicActivitiesDomainModel.ListResponse, CbmEconomicActivitiesDomainModel.ListParams, CbmEconomicActivitiesDomainModel.ListResponse.Data[]>;
|
|
95
95
|
ngOnInit(): void;
|
|
96
96
|
get documentTypeControl(): FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
97
97
|
get documentNumberControl(): FormControl<string | null>;
|
|
98
98
|
get categoryControl(): FormControl<CbmProviderGroupModel.ListAsTreeResponse.Category | null>;
|
|
99
|
+
get subjectClassControl(): FormControl<CbmAddProviderModel.SubjectClass | null>;
|
|
99
100
|
get businessNameControl(): FormControl<string | null>;
|
|
100
101
|
get tradenameControl(): FormControl<string | null>;
|
|
101
102
|
get addressControl(): FormControl<string | null>;
|
|
@@ -128,8 +129,6 @@ export declare class CbmAddProviderComponent {
|
|
|
128
129
|
fetchDataByCedula(): void;
|
|
129
130
|
fetchDataByRuc(): void;
|
|
130
131
|
fetchCountryCodes(): void;
|
|
131
|
-
fetchEconomicActivity(): Promise<void>;
|
|
132
|
-
private setExtractedEconomicActivity;
|
|
133
132
|
fetchCategories(searchTerm?: string): void;
|
|
134
133
|
addEmail(): void;
|
|
135
134
|
onEmailKeyDown(event: KeyboardEvent): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CbmAddProviderModel } from "./add-provider.model";
|
|
1
2
|
export declare const DOCUMENT_TYPES_CODES: {
|
|
2
3
|
readonly RUC: "04";
|
|
3
4
|
readonly CEDULA: "05";
|
|
@@ -5,3 +6,4 @@ export declare const DOCUMENT_TYPES_CODES: {
|
|
|
5
6
|
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
6
7
|
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
7
8
|
};
|
|
9
|
+
export declare const SUBJECT_CLASSES: CbmAddProviderModel.SubjectClass[];
|
|
@@ -148,6 +148,8 @@ export declare namespace CbmClientModel {
|
|
|
148
148
|
description_subject?: string;
|
|
149
149
|
employee_type?: 'society' | 'privat_sector_employee' | 'civil_servant';
|
|
150
150
|
employee_salary?: number;
|
|
151
|
+
economic_activity_id?: string;
|
|
152
|
+
economic_activity_code?: string;
|
|
151
153
|
}
|
|
152
154
|
namespace Data {
|
|
153
155
|
interface Branch {
|
|
@@ -334,6 +336,8 @@ export declare namespace CbmClientModel {
|
|
|
334
336
|
cellphone?: string;
|
|
335
337
|
emails: string[];
|
|
336
338
|
economic_activity?: string;
|
|
339
|
+
economic_activity_id?: string;
|
|
340
|
+
economic_activity_code?: string;
|
|
337
341
|
phone_code?: string;
|
|
338
342
|
payment_deadline?: SaveBody.PaymentDeadline[];
|
|
339
343
|
has_cellphone: boolean;
|
|
@@ -380,6 +384,8 @@ export declare namespace CbmClientModel {
|
|
|
380
384
|
trade_name?: string;
|
|
381
385
|
address?: string;
|
|
382
386
|
economic_activity?: string;
|
|
387
|
+
economic_activity_id?: string;
|
|
388
|
+
economic_activity_code?: string;
|
|
383
389
|
payment_deadline?: UpdateBody.PaymentDeadline[];
|
|
384
390
|
credit_application?: boolean;
|
|
385
391
|
ind_retention_agent?: boolean;
|
|
@@ -75,6 +75,9 @@ export declare namespace CbmProviderModel {
|
|
|
75
75
|
payment_destination_country_name?: string;
|
|
76
76
|
double_taxation_treaty_applies?: boolean;
|
|
77
77
|
legal_withholding_applies?: string;
|
|
78
|
+
is_related_party?: boolean;
|
|
79
|
+
subject_class_code?: string;
|
|
80
|
+
subject_class_description?: string;
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
83
|
interface GetOneResponse {
|
|
@@ -142,6 +145,8 @@ export declare namespace CbmProviderModel {
|
|
|
142
145
|
economic_activity_id?: string;
|
|
143
146
|
economic_activity_code?: string;
|
|
144
147
|
is_related_party?: boolean;
|
|
148
|
+
subject_class_code?: string;
|
|
149
|
+
subject_class_description?: string;
|
|
145
150
|
}
|
|
146
151
|
export namespace Data {
|
|
147
152
|
interface ProviderContact {
|
|
@@ -216,6 +221,8 @@ export declare namespace CbmProviderModel {
|
|
|
216
221
|
economic_activity_id?: string;
|
|
217
222
|
economic_activity_code?: string;
|
|
218
223
|
is_related_party?: boolean;
|
|
224
|
+
subject_class_code: string;
|
|
225
|
+
subject_class_description: string;
|
|
219
226
|
}
|
|
220
227
|
interface UpdateBody {
|
|
221
228
|
category_provider_id?: string;
|
|
@@ -235,6 +242,8 @@ export declare namespace CbmProviderModel {
|
|
|
235
242
|
employee_salary?: number;
|
|
236
243
|
economic_activity_id?: string;
|
|
237
244
|
economic_activity_code?: string;
|
|
245
|
+
subject_class_code?: string;
|
|
246
|
+
subject_class_description?: string;
|
|
238
247
|
}
|
|
239
248
|
interface UpdateManagementBody {
|
|
240
249
|
bank_id?: string;
|