@cbm-common/cbm-types 0.0.203 → 0.0.205
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/advanced-item-search-modal/item-list/item-list.d.ts +2 -0
- package/lib/domain/models/item.domain.model.d.ts +65 -46
- package/package.json +1 -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
|
@@ -79,6 +79,7 @@ export declare class ItemListComponent implements OnInit {
|
|
|
79
79
|
provider: FormControl<CbmProviderModel.ListResponse.Item | null>;
|
|
80
80
|
manage_by: FormControl<CbmItemModel.EManageBy | null>;
|
|
81
81
|
location: FormControl<string | null>;
|
|
82
|
+
providerItemCode: FormControl<string | null>;
|
|
82
83
|
}>;
|
|
83
84
|
company: import("@angular/core").Signal<import("../../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.Company>;
|
|
84
85
|
tableConfig: TableConfigurationService;
|
|
@@ -87,6 +88,7 @@ export declare class ItemListComponent implements OnInit {
|
|
|
87
88
|
providers$: PaginatedListService<import("../../../domain/models/provider.domain.model").CbmProviderModel.ListResponse, import("../../../domain/models/provider.domain.model").CbmProviderModel.ListParams, import("../../../domain/models/provider.domain.model").CbmProviderModel.ListResponse.Item[]>;
|
|
88
89
|
categories$: ListService<CbmGroupModel.ListAsTreeResponse, any, CbmGroupModel.ListAsTreeResponse.Children>;
|
|
89
90
|
warehouses$: ListService<import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListResponse, import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListParams, import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListResponse.Data[]>;
|
|
91
|
+
getLocation(warehouseId: string | undefined, locations: CbmItemModel.AdvancedItemListResponse.Item.ItemWarehouse[]): string | null;
|
|
90
92
|
ngOnInit(): void;
|
|
91
93
|
protected onColumnDrop(event: CdkDragDrop<any>): void;
|
|
92
94
|
protected resetTableConfig(): void;
|
|
@@ -207,15 +207,21 @@ export declare namespace CbmItemModel {
|
|
|
207
207
|
interface AdvancedItemListParams {
|
|
208
208
|
page: number;
|
|
209
209
|
size: number;
|
|
210
|
+
purchases?: boolean;
|
|
211
|
+
sales?: boolean;
|
|
212
|
+
user_id?: string;
|
|
213
|
+
tax_iva_id?: string;
|
|
214
|
+
manage_by?: string;
|
|
215
|
+
name?: string;
|
|
210
216
|
name_code_filter?: string;
|
|
217
|
+
provider_item_code?: string;
|
|
211
218
|
category_id?: string;
|
|
212
|
-
manage_by?: string;
|
|
213
219
|
manufacturer_id?: string;
|
|
214
|
-
property_id?: string;
|
|
215
|
-
warehouse_id?: string;
|
|
216
|
-
provider_id?: string;
|
|
217
220
|
stock?: boolean;
|
|
221
|
+
warehouse_id?: string;
|
|
218
222
|
provider_code?: boolean;
|
|
223
|
+
property_id?: string;
|
|
224
|
+
provider_id?: string;
|
|
219
225
|
location?: string;
|
|
220
226
|
}
|
|
221
227
|
interface AdvancedItemListResponse {
|
|
@@ -231,59 +237,51 @@ export declare namespace CbmItemModel {
|
|
|
231
237
|
_id: string;
|
|
232
238
|
category_id: string;
|
|
233
239
|
unit_measure_id: string;
|
|
240
|
+
tax_iva_id: string;
|
|
241
|
+
manufacturer_id?: string;
|
|
242
|
+
manufacturer_name?: string;
|
|
234
243
|
code: string;
|
|
235
244
|
barcode: string;
|
|
236
245
|
name: string;
|
|
246
|
+
iva: number;
|
|
247
|
+
tax_ice: boolean;
|
|
248
|
+
tax_irbpn: boolean;
|
|
237
249
|
manage_by: TManageBy;
|
|
238
|
-
enabled: boolean;
|
|
239
|
-
unit_measure_name: string;
|
|
240
|
-
unit_measure_code: string;
|
|
241
|
-
category_name: string;
|
|
242
|
-
created_at: number;
|
|
243
|
-
item_price: number;
|
|
244
|
-
item_price_name: string;
|
|
245
|
-
manufacturer_id?: string;
|
|
246
|
-
manufacturer_name?: string;
|
|
247
250
|
tax_iva_code: string;
|
|
248
251
|
tax_iva_percentage: number;
|
|
249
252
|
tax_iva_description: string;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
253
|
+
unit_measure_name: string;
|
|
254
|
+
unit_measure_code: string;
|
|
255
|
+
category_name: string;
|
|
256
|
+
unit_cost_kardex?: number;
|
|
257
|
+
provider_id?: string;
|
|
258
|
+
provider_item_barcode?: string;
|
|
259
|
+
provider_item_document_number?: string;
|
|
260
|
+
provider_item_name?: string;
|
|
261
|
+
provider_item_trade_name?: string;
|
|
262
|
+
in_stock: number;
|
|
263
|
+
committed: number;
|
|
264
|
+
stock_in_transit: number;
|
|
265
|
+
warehouse_id?: string;
|
|
266
|
+
warehouse_code?: string;
|
|
267
|
+
warehouse_name?: string;
|
|
268
|
+
location_warehouse?: string | null;
|
|
269
|
+
base_price: number;
|
|
270
|
+
tax_price: number;
|
|
271
|
+
warehouse_in_stock: number;
|
|
272
|
+
warehouse_committed: number;
|
|
273
|
+
warehouse_available_stock: number;
|
|
274
|
+
warehouse_stock_in_transit: number;
|
|
275
|
+
last_purchases: Item.LastPurchases;
|
|
269
276
|
}
|
|
270
277
|
namespace Item {
|
|
271
|
-
interface
|
|
278
|
+
interface ItemWarehouse {
|
|
272
279
|
_id: string;
|
|
273
|
-
|
|
274
|
-
code: string;
|
|
275
|
-
provider_id: string;
|
|
276
|
-
provider_name: string;
|
|
280
|
+
location?: string | null;
|
|
277
281
|
}
|
|
278
|
-
interface
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
percentage: number;
|
|
282
|
-
description: string;
|
|
283
|
-
}
|
|
284
|
-
interface Category {
|
|
285
|
-
_id: string;
|
|
286
|
-
name: string;
|
|
282
|
+
interface LastPurchases {
|
|
283
|
+
_id1: string;
|
|
284
|
+
unit_cost: number;
|
|
287
285
|
}
|
|
288
286
|
}
|
|
289
287
|
}
|
|
@@ -688,6 +686,27 @@ export declare namespace CbmItemModel {
|
|
|
688
686
|
observation?: string;
|
|
689
687
|
stock_in_stock: number;
|
|
690
688
|
loading: boolean;
|
|
689
|
+
user_id?: string;
|
|
690
|
+
tax_iva_percentage?: number;
|
|
691
|
+
tax_iva_description?: string;
|
|
692
|
+
unit_measure_name?: string;
|
|
693
|
+
category_name?: string;
|
|
694
|
+
provider_code?: boolean;
|
|
695
|
+
unit_cost_kardex?: number;
|
|
696
|
+
warehouse_location?: string | null;
|
|
697
|
+
updated_user_id?: string;
|
|
698
|
+
provider_id?: string;
|
|
699
|
+
provider_item_code?: string;
|
|
700
|
+
provider_item_detail_id?: string;
|
|
701
|
+
tax_ice_code?: string;
|
|
702
|
+
tax_ice_description?: string;
|
|
703
|
+
tax_ice_end_range?: number;
|
|
704
|
+
tax_ice_id?: string;
|
|
705
|
+
tax_ice_percentage?: number;
|
|
706
|
+
tax_ice_start_range?: number;
|
|
707
|
+
tax_ice_type?: string;
|
|
708
|
+
tax_ice_value?: number;
|
|
709
|
+
tax_ice_vehicle?: boolean;
|
|
691
710
|
}
|
|
692
711
|
namespace Item {
|
|
693
712
|
interface Category {
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|