@cbm-common/cbm-types 0.0.254 → 0.0.255
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 +26 -1
- package/lib/components/pms-add-charge/pms-add-charge.d.ts +13 -3
- package/lib/domain/models/charge-type.domain.model.d.ts +20 -0
- package/lib/domain/models/charge.domain.model.d.ts +11 -2
- package/lib/domain/models/provider.domain.model.d.ts +6 -0
- package/lib/domain/models/type-of-service.domain.model.d.ts +20 -0
- package/lib/domain/repositories/charge-type.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/type-of-service.domain.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/charge-type.infrastrucuture.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/type-of-service.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/charge-type.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/type-of-service.infrastructure.service.d.ts +10 -0
- package/package.json +2 -2
- package/public-api.d.ts +9 -1
- package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +0 -10
- package/lib/components/record-detail-metadata/components/options/options.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +0 -9
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +0 -91
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +0 -7
- 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
|
@@ -18,6 +18,8 @@ import { TStatus } from './types';
|
|
|
18
18
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
19
19
|
import { AccountValidatorsDomainService } from '../../domain/services/account-validators.domain.service';
|
|
20
20
|
import { CbmAddProviderModel } from './add-provider.model';
|
|
21
|
+
import { CbmGeneralSettingsPartnersModel } from '../../domain/models/general-settings-partners.domain.model';
|
|
22
|
+
import { CbmGeneralSettingsPartnersDomainRepository } from '../../domain/repositories/general-settings-partners.domain.repository';
|
|
21
23
|
export declare class CbmAddProviderComponent {
|
|
22
24
|
private providerRepository;
|
|
23
25
|
private providerGroupRepository;
|
|
@@ -27,11 +29,14 @@ export declare class CbmAddProviderComponent {
|
|
|
27
29
|
private notificationService;
|
|
28
30
|
private destroyRef;
|
|
29
31
|
private readonly accountValidatorsDomainService;
|
|
30
|
-
|
|
32
|
+
private readonly generalSettingsPartnersRepository;
|
|
33
|
+
constructor(providerRepository: CbmProviderRepository, providerGroupRepository: CbmProviderGroupDomainRepository, documentTypeRepository: CbmDocumentTypeDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, billingRepository: CbmBillingDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, accountValidatorsDomainService: AccountValidatorsDomainService, generalSettingsPartnersRepository: CbmGeneralSettingsPartnersDomainRepository);
|
|
34
|
+
generalSettingsConfiguration: import("@angular/core").WritableSignal<CbmGeneralSettingsPartnersModel.ParametersListResponse.Data | null>;
|
|
31
35
|
confirmationModalRef: import("@angular/core").Signal<ConfirmationModal | undefined>;
|
|
32
36
|
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent | undefined>;
|
|
33
37
|
providerId: import("@angular/core").InputSignal<string | undefined>;
|
|
34
38
|
componentConfig: import("@angular/core").InputSignal<CbmAddProviderModel.ComponentConfig>;
|
|
39
|
+
resetForm: import("@angular/core").InputSignal<boolean>;
|
|
35
40
|
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
36
41
|
save: import("@angular/core").OutputEmitterRef<any>;
|
|
37
42
|
update: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -50,6 +55,18 @@ export declare class CbmAddProviderComponent {
|
|
|
50
55
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
51
56
|
statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
|
|
52
57
|
statusOfExtractProviderData: import("@angular/core").WritableSignal<TStatus>;
|
|
58
|
+
statusOfFetchGeneralSettingsConfiguration: import("@angular/core").WritableSignal<TStatus>;
|
|
59
|
+
readonly carDelear: import("@angular/core").Signal<boolean>;
|
|
60
|
+
readonly CAR_DEALER_TYPES: readonly [{
|
|
61
|
+
readonly label: "Empleado privado";
|
|
62
|
+
readonly value: "privat_sector_employee";
|
|
63
|
+
}, {
|
|
64
|
+
readonly label: "Empleado publico";
|
|
65
|
+
readonly value: "civil_servant";
|
|
66
|
+
}, {
|
|
67
|
+
readonly label: "Sociedad";
|
|
68
|
+
readonly value: "society";
|
|
69
|
+
}];
|
|
53
70
|
subjectToSearchDocumentType$: Subject<string>;
|
|
54
71
|
subjectToSearchCategory$: Subject<string>;
|
|
55
72
|
DOCUMENT_TYPES_CODES: {
|
|
@@ -71,6 +88,8 @@ export declare class CbmAddProviderComponent {
|
|
|
71
88
|
emails: FormControl<string[] | null>;
|
|
72
89
|
email: FormControl<string | null>;
|
|
73
90
|
economicActivity: FormControl<string | null>;
|
|
91
|
+
carDealerType: FormControl<"society" | "privat_sector_employee" | "civil_servant" | null>;
|
|
92
|
+
carDealerValue: FormControl<string | null>;
|
|
74
93
|
}>;
|
|
75
94
|
ngOnInit(): void;
|
|
76
95
|
get documentTypeControl(): FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
@@ -84,6 +103,8 @@ export declare class CbmAddProviderComponent {
|
|
|
84
103
|
get emailsControl(): FormControl<string[] | null>;
|
|
85
104
|
get emailControl(): FormControl<string | null>;
|
|
86
105
|
get economicActivityControl(): FormControl<string | null>;
|
|
106
|
+
get carDealerTypeControl(): FormControl<"society" | "privat_sector_employee" | "civil_servant" | null>;
|
|
107
|
+
get carDealerValueControl(): FormControl<string | null>;
|
|
87
108
|
compareWithId(a: {
|
|
88
109
|
_id: string;
|
|
89
110
|
}, b: {
|
|
@@ -94,6 +115,9 @@ export declare class CbmAddProviderComponent {
|
|
|
94
115
|
noWhitespaceValidator(): ValidatorFn;
|
|
95
116
|
emailsValidator(): ValidatorFn;
|
|
96
117
|
fetchProviderData(): void;
|
|
118
|
+
private fetchGeneralSettingsConfiguration;
|
|
119
|
+
private syncConfigurationDrivenControls;
|
|
120
|
+
private syncCarDealerControls;
|
|
97
121
|
fetchDocumentTypes(searchTerm?: string): void;
|
|
98
122
|
getDocumentNumberMaxLength(): number | undefined;
|
|
99
123
|
getDocumentNumberPattern(): string;
|
|
@@ -110,4 +134,5 @@ export declare class CbmAddProviderComponent {
|
|
|
110
134
|
updateProvider(): Promise<void>;
|
|
111
135
|
validateSaveProviderForm(saveOption: TSaveOptions): void;
|
|
112
136
|
onCancelModalConfirm(): void;
|
|
137
|
+
onCancelPress(): void;
|
|
113
138
|
}
|
|
@@ -23,6 +23,10 @@ import { CbmServiceDetails } from '../service-details/service-details';
|
|
|
23
23
|
import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
|
|
24
24
|
import { FoliosModal } from './folios-modal/folios-modal';
|
|
25
25
|
import { GeneralDomainService } from '../../domain/services/general.domain.service';
|
|
26
|
+
import { CbmTypeOfServiceModel } from '../../domain/models/type-of-service.domain.model';
|
|
27
|
+
import { CbmChargeTypeModel } from '../../domain/models/charge-type.domain.model';
|
|
28
|
+
import { CbmChargeTypeRepository } from '../../domain/repositories/charge-type.domain.repository';
|
|
29
|
+
import { CbmTypeOfServiceRepository } from '../../domain/repositories/type-of-service.domain.repository';
|
|
26
30
|
export declare class CbmPmsAddCharge implements OnInit {
|
|
27
31
|
private readonly destroyRef;
|
|
28
32
|
private readonly roomRepository;
|
|
@@ -34,13 +38,15 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
34
38
|
private readonly irbpnrService;
|
|
35
39
|
private readonly clientRepository;
|
|
36
40
|
private generalService;
|
|
37
|
-
|
|
41
|
+
private readonly chargeTypeRepository;
|
|
42
|
+
private readonly typeOfServiceRepository;
|
|
43
|
+
constructor(destroyRef: DestroyRef, roomRepository: CbmRoomRepository, chargeRepository: CbmChargeRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService, salesAccountRepository: CbmSalesAccountDomainRepository, costCenterRepository: CbmCostCenterRepository, irbpnrService: CbmIrbpnrDomainService, clientRepository: CbmClientDomainRepository, generalService: GeneralDomainService, chargeTypeRepository: CbmChargeTypeRepository, typeOfServiceRepository: CbmTypeOfServiceRepository);
|
|
38
44
|
disableGuard: boolean;
|
|
39
45
|
defaultPrintOption: import("@angular/core").WritableSignal<string | null>;
|
|
40
46
|
formDirty: () => boolean;
|
|
41
47
|
chargeFormGroup: FormGroup<{
|
|
42
|
-
service_type: FormControl<
|
|
43
|
-
charge_type: FormControl<
|
|
48
|
+
service_type: FormControl<Partial<CbmTypeOfServiceModel.ListResponse.Data> | null>;
|
|
49
|
+
charge_type: FormControl<Partial<CbmChargeTypeModel.ListResponse.Data> | null>;
|
|
44
50
|
room: FormControl<Partial<CbmRoomModel.RoomStateResponse.Items> | null>;
|
|
45
51
|
cost_center: FormControl<Partial<CbmCostCenterModel.ListResponse.Data> | null>;
|
|
46
52
|
order: FormControl<string>;
|
|
@@ -49,6 +55,8 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
49
55
|
protected rooms$: PaginatedListService<CbmRoomModel.RoomStateResponse, CbmRoomModel.RoomStateParams, CbmRoomModel.RoomStateResponse.Items[]>;
|
|
50
56
|
protected costCenter$: ListService<CbmCostCenterModel.ListResponse, CbmCostCenterModel.ListParams, CbmCostCenterModel.ListResponse.Data[]>;
|
|
51
57
|
firstCostCenter$: Subject<void>;
|
|
58
|
+
protected chargeTypes$: ListService<CbmChargeTypeModel.ListResponse, CbmChargeTypeModel.ListParams, CbmChargeTypeModel.ListResponse.Data[]>;
|
|
59
|
+
protected typesOfService$: ListService<CbmTypeOfServiceModel.ListResponse, CbmTypeOfServiceModel.ListParams, CbmTypeOfServiceModel.ListResponse.Data[]>;
|
|
52
60
|
private readonly printSettingsRepository;
|
|
53
61
|
protected foliosRoomId: import("@angular/core").WritableSignal<string | null>;
|
|
54
62
|
protected selectedFolio: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data | null>;
|
|
@@ -85,6 +93,8 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
85
93
|
printSettings$: ListService<import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListResponse, import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListParams, import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListResponse.Data[]>;
|
|
86
94
|
private initRooms;
|
|
87
95
|
private initCostCenter;
|
|
96
|
+
private initChargeType;
|
|
97
|
+
private initTypeOfService;
|
|
88
98
|
protected subObservers(): void;
|
|
89
99
|
private buildChargeDetail;
|
|
90
100
|
saveCharge(): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare namespace CbmChargeTypeModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
created_user: string;
|
|
17
|
+
created_at: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -7,8 +7,6 @@ export declare namespace CbmChargeModel {
|
|
|
7
7
|
company_trade_name: string;
|
|
8
8
|
company_business_name: string;
|
|
9
9
|
company_logo: string;
|
|
10
|
-
type_service: string;
|
|
11
|
-
type_charges: string;
|
|
12
10
|
num_vale?: string;
|
|
13
11
|
num_command?: string;
|
|
14
12
|
room_id: string;
|
|
@@ -76,6 +74,17 @@ export declare namespace CbmChargeModel {
|
|
|
76
74
|
guest_origin?: string;
|
|
77
75
|
guest_address?: string;
|
|
78
76
|
charges_detail: Save.ChargesDetail[];
|
|
77
|
+
charge_type_id: string;
|
|
78
|
+
charge_type_name: string;
|
|
79
|
+
type_of_service_id: string;
|
|
80
|
+
type_of_service_name: string;
|
|
81
|
+
room_type_id: string;
|
|
82
|
+
room_type_name: string;
|
|
83
|
+
default_cost_center_id: string;
|
|
84
|
+
default_cost_center_code: string;
|
|
85
|
+
default_cost_center_name: string;
|
|
86
|
+
default_cost_center_father_code: string;
|
|
87
|
+
default_cost_center_father_name: string;
|
|
79
88
|
}
|
|
80
89
|
namespace Save {
|
|
81
90
|
interface ChargesDetail {
|
|
@@ -137,6 +137,8 @@ export declare namespace CbmProviderModel {
|
|
|
137
137
|
legal_withholding_applies?: string;
|
|
138
138
|
provider_contact?: Data.ProviderContact[];
|
|
139
139
|
provider_category?: Data.ProviderCategory;
|
|
140
|
+
employee_type?: 'society' | 'privat_sector_employee' | 'civil_servant';
|
|
141
|
+
employee_salary?: number;
|
|
140
142
|
}
|
|
141
143
|
export namespace Data {
|
|
142
144
|
interface ProviderContact {
|
|
@@ -206,6 +208,8 @@ export declare namespace CbmProviderModel {
|
|
|
206
208
|
cellphone?: string;
|
|
207
209
|
economic_activity: string;
|
|
208
210
|
email?: string[];
|
|
211
|
+
employee_type?: 'society' | 'privat_sector_employee' | 'civil_servant';
|
|
212
|
+
employee_salary?: number;
|
|
209
213
|
}
|
|
210
214
|
interface UpdateBody {
|
|
211
215
|
category_provider_id?: string;
|
|
@@ -221,6 +225,8 @@ export declare namespace CbmProviderModel {
|
|
|
221
225
|
cellphone?: string;
|
|
222
226
|
economic_activity?: string;
|
|
223
227
|
email?: string[];
|
|
228
|
+
employee_type?: 'society' | 'privat_sector_employee' | 'civil_servant';
|
|
229
|
+
employee_salary?: number;
|
|
224
230
|
}
|
|
225
231
|
interface UpdateManagementBody {
|
|
226
232
|
bank_id?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare namespace CbmTypeOfServiceModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
created_user: string;
|
|
17
|
+
created_at: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CbmChargeTypeModel } from "../models/charge-type.domain.model";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { ICbmChargeTypeRepository } from "../../infrastructure/repositories/charge-type.infrastrucuture.repository";
|
|
4
|
+
export declare class CbmChargeTypeRepository implements ICbmChargeTypeRepository {
|
|
5
|
+
private readonly chargeTypeService;
|
|
6
|
+
constructor(chargeTypeService: ICbmChargeTypeRepository);
|
|
7
|
+
list(params: CbmChargeTypeModel.ListParams): Observable<CbmChargeTypeModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmTypeOfServiceModel } from "../models/type-of-service.domain.model";
|
|
3
|
+
import { ICbmTypeOfServiceRepository } from "../../infrastructure/repositories/type-of-service.infrastructure.repository";
|
|
4
|
+
export declare class CbmTypeOfServiceRepository implements ICbmTypeOfServiceRepository {
|
|
5
|
+
private readonly TypeOfServiceService;
|
|
6
|
+
constructor(TypeOfServiceService: ICbmTypeOfServiceRepository);
|
|
7
|
+
list(params: CbmTypeOfServiceModel.ListParams): Observable<CbmTypeOfServiceModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmTypeOfServiceModel } from "../../domain/models/type-of-service.domain.model";
|
|
3
|
+
export interface ICbmTypeOfServiceRepository {
|
|
4
|
+
list(request: CbmTypeOfServiceModel.ListParams): Observable<CbmTypeOfServiceModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICbmChargeTypeRepository } from "../repositories/charge-type.infrastrucuture.repository";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { CbmChargeTypeModel } from "../../domain/models/charge-type.domain.model";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export declare class CbmChargeTypeService implements ICbmChargeTypeRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmChargeTypeModel.ListParams): Observable<CbmChargeTypeModel.ListResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICbmTypeOfServiceRepository } from "../repositories/type-of-service.infrastructure.repository";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { CbmTypeOfServiceModel } from "../../domain/models/type-of-service.domain.model";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export declare class CbmTypeOfServiceService implements ICbmTypeOfServiceRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmTypeOfServiceModel.ListParams): Observable<CbmTypeOfServiceModel.ListResponse>;
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -578,4 +578,12 @@ export * from './lib/domain/repositories/person-type-uafe.domain.repository';
|
|
|
578
578
|
export * from './lib/domain/models/person-type-uafe.domain.model';
|
|
579
579
|
|
|
580
580
|
//#region fingerprinting domain service
|
|
581
|
-
export * from './lib/domain/services/fingerprinting.domain.service';
|
|
581
|
+
export * from './lib/domain/services/fingerprinting.domain.service';
|
|
582
|
+
|
|
583
|
+
//#region charge type domain repository
|
|
584
|
+
export * from './lib/domain/repositories/charge-type.domain.repository';
|
|
585
|
+
export * from './lib/domain/models/charge-type.domain.model';
|
|
586
|
+
|
|
587
|
+
//#region type Of Service domain repository
|
|
588
|
+
export * from './lib/domain/repositories/type-of-service.domain.repository';
|
|
589
|
+
export * from './lib/domain/models/type-of-service.domain.model';
|
|
@@ -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
|
-
}
|
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
|
-
}
|