@cbm-common/cbm-types 0.0.326 → 0.0.328
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/domain/models/charges-for-order-vehicle.domain.model.d.ts +49 -10
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +92 -0
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- package/package.json +2 -2
|
@@ -261,21 +261,54 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
261
261
|
period_year: string;
|
|
262
262
|
document_nomenclature: string;
|
|
263
263
|
document_number: string;
|
|
264
|
+
ind_automatically_added_overnight?: boolean;
|
|
264
265
|
collection_origin_id: string;
|
|
265
266
|
collection_origin_name: string;
|
|
266
267
|
collection_origin_document_nomenclature_number: string;
|
|
267
268
|
event_module_origin: string;
|
|
269
|
+
vehicle_license_plate?: string;
|
|
270
|
+
sequence_order_vehicle?: string;
|
|
271
|
+
client_business_name?: string;
|
|
272
|
+
client_document_number?: string;
|
|
268
273
|
sales_account_id: string;
|
|
269
274
|
sales_account_sequence: string;
|
|
270
275
|
sales_account_created_at: number;
|
|
276
|
+
ind_accommodation?: boolean;
|
|
271
277
|
enabled: boolean;
|
|
272
278
|
deleted: boolean;
|
|
279
|
+
deleted_at?: number;
|
|
273
280
|
user_id: string;
|
|
274
281
|
created_user: string;
|
|
275
282
|
created_at: number;
|
|
283
|
+
charges_type?: string;
|
|
276
284
|
charges_detail: Data.Detail[];
|
|
285
|
+
data_origin?: Data.DataOrigin;
|
|
277
286
|
}
|
|
278
287
|
namespace Data {
|
|
288
|
+
interface DataOrigin {
|
|
289
|
+
vehicle_id?: string;
|
|
290
|
+
vehicle_license_plate?: string;
|
|
291
|
+
vehicle_type?: string;
|
|
292
|
+
vehicle_brand?: string;
|
|
293
|
+
vehicle_model?: string;
|
|
294
|
+
vehicle_color?: string;
|
|
295
|
+
vehicle_cylinder?: string;
|
|
296
|
+
vehicle_year?: string;
|
|
297
|
+
vehicle_registry_code?: string;
|
|
298
|
+
vehicle_chassis_number?: string;
|
|
299
|
+
vehicle_engine_number?: string;
|
|
300
|
+
vehicle_country_id?: string;
|
|
301
|
+
vehicle_country_name?: string;
|
|
302
|
+
vehicle_country_code?: string;
|
|
303
|
+
vehicle_country_short_name?: string;
|
|
304
|
+
vehicle_type_id?: string;
|
|
305
|
+
vehicle_type_name?: string;
|
|
306
|
+
vehicle_class?: string;
|
|
307
|
+
vehicle_fuel?: string;
|
|
308
|
+
order_document_nomenclature?: string;
|
|
309
|
+
order_document_number?: string;
|
|
310
|
+
order_document_date?: number;
|
|
311
|
+
}
|
|
279
312
|
interface Detail {
|
|
280
313
|
_id: string;
|
|
281
314
|
company_id: string;
|
|
@@ -285,6 +318,7 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
285
318
|
item_code: string;
|
|
286
319
|
item_name: string;
|
|
287
320
|
item_barcode: string;
|
|
321
|
+
type: string;
|
|
288
322
|
category_id: string;
|
|
289
323
|
category_name: string;
|
|
290
324
|
price_list_id: string;
|
|
@@ -296,11 +330,11 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
296
330
|
cost_center_father_name: string;
|
|
297
331
|
tax_iva_id: string;
|
|
298
332
|
tax_iva_rate: number;
|
|
299
|
-
unit_measure_id
|
|
300
|
-
unit_measure_type
|
|
301
|
-
unit_measure_abbreviation
|
|
302
|
-
unit_measure_name
|
|
303
|
-
unit_measure_quantity
|
|
333
|
+
unit_measure_id?: string;
|
|
334
|
+
unit_measure_type?: string;
|
|
335
|
+
unit_measure_abbreviation?: string;
|
|
336
|
+
unit_measure_name?: string;
|
|
337
|
+
unit_measure_quantity?: number;
|
|
304
338
|
amount: number;
|
|
305
339
|
price_type_id: string;
|
|
306
340
|
price_type: string;
|
|
@@ -310,7 +344,9 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
310
344
|
discount_rate: number;
|
|
311
345
|
unit_discount: number;
|
|
312
346
|
total_discount: number;
|
|
347
|
+
unit_price?: number;
|
|
313
348
|
created_user: string;
|
|
349
|
+
kit_data?: any[];
|
|
314
350
|
created_at: number;
|
|
315
351
|
charges_detail_tax: Detail.Tax[];
|
|
316
352
|
}
|
|
@@ -324,6 +360,7 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
324
360
|
item_code: string;
|
|
325
361
|
item_name: string;
|
|
326
362
|
item_barcode: string;
|
|
363
|
+
type?: string;
|
|
327
364
|
category_id: string;
|
|
328
365
|
category_name: string;
|
|
329
366
|
price_list_id: string;
|
|
@@ -335,11 +372,11 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
335
372
|
cost_center_father_name: string;
|
|
336
373
|
tax_iva_id: string;
|
|
337
374
|
tax_iva_rate: number;
|
|
338
|
-
unit_measure_id
|
|
339
|
-
unit_measure_type
|
|
340
|
-
unit_measure_abbreviation
|
|
341
|
-
unit_measure_name
|
|
342
|
-
unit_measure_quantity
|
|
375
|
+
unit_measure_id?: string;
|
|
376
|
+
unit_measure_type?: string;
|
|
377
|
+
unit_measure_abbreviation?: string;
|
|
378
|
+
unit_measure_name?: string;
|
|
379
|
+
unit_measure_quantity?: number;
|
|
343
380
|
amount: number;
|
|
344
381
|
price_type_id: string;
|
|
345
382
|
price_type: string;
|
|
@@ -349,7 +386,9 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
349
386
|
discount_rate: number;
|
|
350
387
|
unit_discount: number;
|
|
351
388
|
total_discount: number;
|
|
389
|
+
unit_price?: number;
|
|
352
390
|
created_user: string;
|
|
391
|
+
kit_data?: any[];
|
|
353
392
|
created_at: number;
|
|
354
393
|
charges_detail_tax: Tax[];
|
|
355
394
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|