@cbm-common/cbm-types 0.0.269 → 0.0.271
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/order-vehicle-add-charge/order-vehicle-add-charge.d.ts +13 -1
- package/lib/domain/models/charges-for-order-vehicle.domain.model.d.ts +2 -0
- package/lib/domain/models/employee.model.d.ts +176 -0
- package/lib/domain/models/replacement-request.domain.model.d.ts +71 -0
- package/lib/domain/repositories/replacement-request.domain.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/replacement-request.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/replacement-request.infrastructure.service.d.ts +10 -0
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ import { CbmCostCenterRepository } from '../../domain/repositories/cost-center.d
|
|
|
23
23
|
import { CbmItemDomainRepository } from '../../domain/repositories/item.domain.repository';
|
|
24
24
|
import { CbmOutsourcingServicesMovementsDomainRepository } from '../../domain/repositories/outsourcing-services-movements.domain.repository';
|
|
25
25
|
import { CbmPriceListDomainRepository } from '../../domain/repositories/price-list.domain.repository';
|
|
26
|
+
import { CbmReplacementRequestDomainRepository } from '../../domain/repositories/replacement-request.domain.repository';
|
|
26
27
|
import { CbmSalePriceDomainRepository } from '../../domain/repositories/sale-price.domain.repository';
|
|
27
28
|
import { CbmSalesAccountDomainRepository } from '../../domain/repositories/sales-account.domain.repository';
|
|
28
29
|
import { CbmServiceOutsourcingDomainRepository } from '../../domain/repositories/service-outsourcing.domain.repository';
|
|
@@ -87,7 +88,8 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
87
88
|
private readonly costCenterRepository;
|
|
88
89
|
private readonly serviceRepository;
|
|
89
90
|
private readonly outsourcingRepository;
|
|
90
|
-
|
|
91
|
+
private readonly replacementRequestRepository;
|
|
92
|
+
constructor(router: Router, route: ActivatedRoute, destroyRef: DestroyRef, generalService: GeneralDomainService, salePriceRepository: CbmSalePriceDomainRepository, chargesForOrderVehicleRepository: CbmChargesForOrderVehicleDomainRepository, salesAccountDomainRepository: CbmSalesAccountDomainRepository, outsourcingServiceMovementsRepository: CbmOutsourcingServicesMovementsDomainRepository, priceListRepository: CbmPriceListDomainRepository, taxIrbpnrRepository: CbmTaxIrbpnrDomainRepository, companyCustomRepository: CbmCompanyCustomRepository, authService: CbmAuthReactiveService, notificationService: CbmNotificationService, itemRepository: CbmItemDomainRepository, unitMeasureRepository: CbmUnitMeasureRepository, costCenterRepository: CbmCostCenterRepository, serviceRepository: CbmServiceDomainRepository, outsourcingRepository: CbmServiceOutsourcingDomainRepository, replacementRequestRepository: CbmReplacementRequestDomainRepository);
|
|
91
93
|
ngSelectsRefs: import("@angular/core").Signal<readonly NgSelectComponent[]>;
|
|
92
94
|
itemDetailsTableContainer: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
93
95
|
itemDetailsTableRef: import("@angular/core").Signal<ElementRef<HTMLTableElement> | undefined>;
|
|
@@ -113,6 +115,7 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
113
115
|
statusOfSave: import("@angular/core").WritableSignal<IGeneral.STATUS>;
|
|
114
116
|
statusOfFetchItemById: import("@angular/core").WritableSignal<IGeneral.STATUS>;
|
|
115
117
|
modeSaleOrWo: import("@angular/core").InputSignal<"sale" | "wo">;
|
|
118
|
+
modeAutoLoad: import("@angular/core").InputSignal<boolean>;
|
|
116
119
|
saleAccountId: import("@angular/core").InputSignal<string | null>;
|
|
117
120
|
actionType: import("@angular/core").InputSignal<"add" | "update">;
|
|
118
121
|
onCancel: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -170,6 +173,7 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
170
173
|
} | null>;
|
|
171
174
|
tip: import("@angular/core").WritableSignal<number>;
|
|
172
175
|
registerDetails: import("@angular/core").WritableSignal<boolean>;
|
|
176
|
+
itemsUploaded: import("@angular/core").WritableSignal<boolean>;
|
|
173
177
|
advanceServiceModalSearchId: string;
|
|
174
178
|
advanceOutsourcingModalSearchId: string;
|
|
175
179
|
itemDiscountGroupPriceNames: CbmSalePriceModel.TName[];
|
|
@@ -193,6 +197,9 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
193
197
|
servicesTotalValue: import("@angular/core").WritableSignal<number>;
|
|
194
198
|
outsourcingsTotalValue: import("@angular/core").WritableSignal<number>;
|
|
195
199
|
deletedDetailIds: import("@angular/core").WritableSignal<string[]>;
|
|
200
|
+
statusOfLoadDeliveredItems: import("@angular/core").WritableSignal<IGeneral.STATUS>;
|
|
201
|
+
loadedReplacementDetailIds: import("@angular/core").WritableSignal<Set<string>>;
|
|
202
|
+
loadedReplacementCount: import("@angular/core").Signal<number>;
|
|
196
203
|
orderHasTaxes(): boolean;
|
|
197
204
|
toNumber(value: string): number;
|
|
198
205
|
codeInputs: import("@angular/core").Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
@@ -210,6 +217,8 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
210
217
|
detailId: FormControl<string | null>;
|
|
211
218
|
code: FormControl<string | null>;
|
|
212
219
|
item: FormControl<CbmItemModel.ListResponse.Item | null>;
|
|
220
|
+
vehicleOrderRequestId: FormControl<string | null>;
|
|
221
|
+
vehicleOrderRequestDetailId: FormControl<string | null>;
|
|
213
222
|
amount: FormControl<string | null>;
|
|
214
223
|
freeAmount: FormControl<string | null>;
|
|
215
224
|
price: FormControl<string | null>;
|
|
@@ -311,6 +320,7 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
311
320
|
updatePriceRequest(): Promise<string>;
|
|
312
321
|
populateFormWithExistingDetails(details: CbmSalesAccountModel.GetOneResponse.Data.Detail[]): Promise<void>;
|
|
313
322
|
fetchCompanyCustom(): Promise<void>;
|
|
323
|
+
loadDeliveredItems(): Promise<void>;
|
|
314
324
|
saveRequest(): Promise<string>;
|
|
315
325
|
onCancelPress(): void;
|
|
316
326
|
visibleTabs: import("@angular/core").Signal<TTab[]>;
|
|
@@ -371,5 +381,7 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
371
381
|
private calculateTax;
|
|
372
382
|
sendDataToOrder(type: 'item' | 'service' | 'outsourcing'): void;
|
|
373
383
|
private getSortDetailsArray;
|
|
384
|
+
sortDetailFormArray(data: ISortDetailModel.Data[]): void;
|
|
385
|
+
private sortOriginalArray;
|
|
374
386
|
sanitizeCoinInput(control: AbstractControl): void;
|
|
375
387
|
}
|
|
@@ -111,6 +111,8 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
111
111
|
total_discount: number;
|
|
112
112
|
commentary_item?: string;
|
|
113
113
|
replace_item_name?: string;
|
|
114
|
+
vehicle_order_request_id?: string;
|
|
115
|
+
vehicle_order_request_detail_id?: string;
|
|
114
116
|
charges_detail_tax: Tax[];
|
|
115
117
|
}
|
|
116
118
|
interface Tax {
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare namespace CbmReplacementRequestModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
order_vehicular_id: string;
|
|
4
|
+
type: 'replacement_request' | 'supplies_request';
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.RequestItem[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface RequestItem {
|
|
12
|
+
_id: string;
|
|
13
|
+
document_nomenclature: string;
|
|
14
|
+
document_number: string;
|
|
15
|
+
commentary: string;
|
|
16
|
+
warehouse_name: string;
|
|
17
|
+
order_vehicle_license_plate: string;
|
|
18
|
+
order_vehicle_status: string;
|
|
19
|
+
order_vehicle_stage: string;
|
|
20
|
+
created_user: string;
|
|
21
|
+
created_at: number;
|
|
22
|
+
status_request: string;
|
|
23
|
+
status_delivery: string;
|
|
24
|
+
vehicle_order_request_detail: RequestDetail[];
|
|
25
|
+
}
|
|
26
|
+
interface RequestDetail {
|
|
27
|
+
_id: string;
|
|
28
|
+
service_name: string;
|
|
29
|
+
item: RequestDetailItem[];
|
|
30
|
+
}
|
|
31
|
+
interface RequestDetailItem {
|
|
32
|
+
item_id: string;
|
|
33
|
+
item_name: string;
|
|
34
|
+
item_code: string;
|
|
35
|
+
item_barcode: string;
|
|
36
|
+
item_manage_by: string;
|
|
37
|
+
ind_sales_account: boolean;
|
|
38
|
+
vehicle_order_request_detail_id: string;
|
|
39
|
+
vehicle_order_request_id: string;
|
|
40
|
+
type: string;
|
|
41
|
+
commentary_item: string;
|
|
42
|
+
replace_item_name: string;
|
|
43
|
+
amount: number;
|
|
44
|
+
stock_afected: number;
|
|
45
|
+
category_id: string;
|
|
46
|
+
category_name: string;
|
|
47
|
+
unit_measure_id: string;
|
|
48
|
+
unit_measure_name: string;
|
|
49
|
+
cost_center_id: string;
|
|
50
|
+
cost_center_code: string;
|
|
51
|
+
cost_center_name: string;
|
|
52
|
+
cost_center_father_code: string;
|
|
53
|
+
cost_center_father_name: string;
|
|
54
|
+
manage_by: string;
|
|
55
|
+
unit_measure_code: string;
|
|
56
|
+
delivery_amount: number;
|
|
57
|
+
return_amount: number;
|
|
58
|
+
balance_amount: number;
|
|
59
|
+
documented_amount: number;
|
|
60
|
+
documented_delivery_amount: number;
|
|
61
|
+
documented_balance_amount: number;
|
|
62
|
+
documented_return_amount: number;
|
|
63
|
+
collection_origin_name: string;
|
|
64
|
+
collection_origin_id: string;
|
|
65
|
+
collection_origin_sequence: string;
|
|
66
|
+
collection_origin_detail_id: string;
|
|
67
|
+
created_user: number;
|
|
68
|
+
created_at: number;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmReplacementRequestModel } from '../models/replacement-request.domain.model';
|
|
3
|
+
import { ICbmReplacementRequestInfrastructureRepository } from '../../infrastructure/repositories/replacement-request.infrastructure.repository';
|
|
4
|
+
export declare class CbmReplacementRequestDomainRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmReplacementRequestInfrastructureRepository);
|
|
7
|
+
transactionsByOrderVehicular(params: CbmReplacementRequestModel.ListParams): Observable<CbmReplacementRequestModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmReplacementRequestModel } from '../../domain/models/replacement-request.domain.model';
|
|
3
|
+
export interface ICbmReplacementRequestInfrastructureRepository {
|
|
4
|
+
transactionsByOrderVehicular(params: CbmReplacementRequestModel.ListParams): Observable<CbmReplacementRequestModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmReplacementRequestModel } from '../../domain/models/replacement-request.domain.model';
|
|
4
|
+
import { ICbmReplacementRequestInfrastructureRepository } from '../repositories/replacement-request.infrastructure.repository';
|
|
5
|
+
export declare class CbmReplacementRequestInfrastructureService implements ICbmReplacementRequestInfrastructureRepository {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
transactionsByOrderVehicular(params: CbmReplacementRequestModel.ListParams): Observable<CbmReplacementRequestModel.ListResponse>;
|
|
10
|
+
}
|