@cbm-common/cbm-types 0.0.197 → 0.0.199
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/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
- package/lib/components/additional-data-modal/additional-data/additional-data.d.ts +0 -1
- package/lib/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +7 -3
- package/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +39 -28
- package/lib/components/record-detail-metadata/components/options/options.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +1 -1
- package/lib/domain/models/item.domain.model.d.ts +73 -0
- package/lib/domain/models/provider.domain.model.d.ts +2 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
- package/lib/domain/repositories/item.domain.repository.d.ts +1 -0
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/item.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/item.infrastructure.service.d.ts +1 -0
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
export declare class AdditionalDataComponent {
|
|
3
|
-
constructor();
|
|
4
3
|
replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
5
4
|
commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
|
|
6
5
|
iceItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import { CbmAlternativeItemModel } from '../../domain/models/alternative-item.domain.model';
|
|
3
4
|
import { CbmItemModel } from '../../domain/models/item.domain.model';
|
|
4
5
|
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
5
6
|
import { CbmItemDomainRepository } from '../../domain/repositories/item.domain.repository';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
7
|
export declare class CbmAdvancedItemSearchModal {
|
|
8
|
-
private itemRepository;
|
|
8
|
+
private readonly itemRepository;
|
|
9
9
|
private readonly destroyRef;
|
|
10
|
+
constructor(itemRepository: CbmItemDomainRepository, destroyRef: DestroyRef);
|
|
10
11
|
'modal-id': import("@angular/core").InputSignal<string>;
|
|
11
12
|
hideAlternativeItemsButton: import("@angular/core").InputSignal<boolean>;
|
|
12
13
|
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -15,7 +16,11 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
15
16
|
hideTable: import("@angular/core").InputSignal<boolean>;
|
|
16
17
|
addedItemsIds: import("@angular/core").InputSignal<string[]>;
|
|
17
18
|
codeFilter: import("@angular/core").WritableSignal<string | undefined>;
|
|
19
|
+
'with-stock': import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
'with-provider-code': import("@angular/core").InputSignal<boolean>;
|
|
18
21
|
modalId: import("@angular/core").Signal<string>;
|
|
22
|
+
withStock: import("@angular/core").Signal<boolean>;
|
|
23
|
+
withProviderCode: import("@angular/core").Signal<boolean>;
|
|
19
24
|
isOnlyOneItemCoincidence: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item | undefined>;
|
|
20
25
|
addSelectedPriceList: import("@angular/core").OutputEmitterRef<CbmPriceListModel.ListResponse.Data>;
|
|
21
26
|
open: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -25,7 +30,6 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
25
30
|
isVisible: Subject<boolean>;
|
|
26
31
|
isVisible$: import("@angular/core").WritableSignal<boolean>;
|
|
27
32
|
selectedItem: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item | null>;
|
|
28
|
-
constructor(itemRepository: CbmItemDomainRepository, destroyRef: DestroyRef);
|
|
29
33
|
openModal(codeFilter?: string): void;
|
|
30
34
|
closeModal(): void;
|
|
31
35
|
sendItemInput(item: CbmItemModel.ListResponse.Item): void;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { DestroyRef
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { CbmProviderModel, CbmWarehouseModel } from '@cbm-common/cbm-types';
|
|
4
|
+
import { ListService, PaginatedListService } from '@cbm-common/data-access';
|
|
4
5
|
import { CbmGroupModel } from '../../../domain/models/group.domain.model';
|
|
5
6
|
import { CbmItemModel } from '../../../domain/models/item.domain.model';
|
|
7
|
+
import { CbmManufacturerModel } from '../../../domain/models/manufacturer.domain.model';
|
|
6
8
|
import { CbmPriceListModel } from '../../../domain/models/price-list.domain.model';
|
|
7
9
|
import { CbmGroupDomainRepository } from '../../../domain/repositories/group.domain.repository';
|
|
8
10
|
import { CbmItemDomainRepository } from '../../../domain/repositories/item.domain.repository';
|
|
11
|
+
import { CbmManufacturerRepository } from '../../../domain/repositories/manufacturer.domain.repository';
|
|
9
12
|
import { CbmPriceListDomainRepository } from '../../../domain/repositories/price-list.domain.repository';
|
|
13
|
+
import { CbmProviderRepository } from '../../../domain/repositories/provider.domain.repository';
|
|
14
|
+
import { CbmWarehouseDomainRepository } from '../../../domain/repositories/warehouse.domain.repository';
|
|
15
|
+
import { CbmAuthReactiveService } from '../../../domain/services/auth-reactive.domain.service';
|
|
10
16
|
import { CbmNotificationService } from '../../../domain/services/notification/notification.service';
|
|
11
17
|
import { CbmModalConfirmComponent } from '../../modal-confirm/modal-confirm';
|
|
12
|
-
import { CbmTreeSelect } from '../../tree-select/types';
|
|
13
18
|
import { IPagination, TStatus } from '../types';
|
|
14
|
-
|
|
15
|
-
import { CbmManufacturerRepository } from '../../../domain/repositories/manufacturer.domain.repository';
|
|
16
|
-
interface IItemWithChecked extends CbmItemModel.ListResponse.Item {
|
|
19
|
+
interface IItemWithChecked extends CbmItemModel.AdvancedItemListResponse.Item {
|
|
17
20
|
checked: boolean;
|
|
18
21
|
}
|
|
19
22
|
export declare class ItemListComponent {
|
|
@@ -21,8 +24,12 @@ export declare class ItemListComponent {
|
|
|
21
24
|
private manufacturerRepository;
|
|
22
25
|
private groupRepository;
|
|
23
26
|
private itemRepository;
|
|
27
|
+
private providerRepository;
|
|
24
28
|
private notificationService;
|
|
29
|
+
private readonly warehouseRepository;
|
|
25
30
|
private destroyRef;
|
|
31
|
+
private readonly authReactiveService;
|
|
32
|
+
constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, providerRepository: CbmProviderRepository, notificationService: CbmNotificationService, warehouseRepository: CbmWarehouseDomainRepository, destroyRef: DestroyRef, authReactiveService: CbmAuthReactiveService);
|
|
26
33
|
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
27
34
|
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
28
35
|
priceList: import("@angular/core").InputSignal<string | CbmPriceListModel.ListResponse.Data | undefined>;
|
|
@@ -30,29 +37,24 @@ export declare class ItemListComponent {
|
|
|
30
37
|
hideAlternativeItemsButton: import("@angular/core").InputSignal<boolean>;
|
|
31
38
|
addedItemsIds: import("@angular/core").InputSignal<string[]>;
|
|
32
39
|
nameCodeFilter: import("@angular/core").InputSignal<string | undefined>;
|
|
40
|
+
'with-stock': import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
'with-provider-code': import("@angular/core").InputSignal<boolean>;
|
|
33
42
|
addItem: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item>;
|
|
34
43
|
addAllItems: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item[]>;
|
|
35
44
|
selectItem: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item>;
|
|
36
45
|
addSelectedPriceList: import("@angular/core").OutputEmitterRef<CbmPriceListModel.ListResponse.Data>;
|
|
37
|
-
checkAllItems: import("@angular/core").WritableSignal<boolean>;
|
|
38
46
|
isTableHide: import("@angular/core").WritableSignal<boolean>;
|
|
39
47
|
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
40
|
-
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
41
48
|
items: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
42
49
|
checkedItems: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item[]>;
|
|
43
|
-
|
|
44
|
-
manufacturers: import("@angular/core").WritableSignal<CbmManufacturerModel.ListResponse.Item[]>;
|
|
45
|
-
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
46
|
-
statusOfFetchItems: import("@angular/core").WritableSignal<TStatus>;
|
|
47
|
-
statusOfFetchPriceLists: import("@angular/core").WritableSignal<TStatus>;
|
|
48
|
-
statusOfFetchManufacturers: import("@angular/core").WritableSignal<TStatus>;
|
|
50
|
+
rememberedItems: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
49
51
|
itemsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
50
|
-
|
|
52
|
+
statusOfFetchItems: import("@angular/core").WritableSignal<TStatus>;
|
|
51
53
|
isSmallScreen: import("@angular/core").WritableSignal<boolean>;
|
|
54
|
+
withStock: import("@angular/core").Signal<boolean>;
|
|
55
|
+
withProviderCode: import("@angular/core").Signal<boolean>;
|
|
52
56
|
computedItems: import("@angular/core").Signal<IItemWithChecked[]>;
|
|
53
|
-
|
|
54
|
-
subjectToSearchPriceLists$: Subject<string>;
|
|
55
|
-
subjectToSearchManufacturers$: Subject<string>;
|
|
57
|
+
areAllItemsChecked: import("@angular/core").Signal<boolean>;
|
|
56
58
|
formToFilter: FormGroup<{
|
|
57
59
|
priceList: FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
58
60
|
manufacturer: FormControl<CbmManufacturerModel.ListResponse.Item | null>;
|
|
@@ -60,36 +62,45 @@ export declare class ItemListComponent {
|
|
|
60
62
|
nameCode: FormControl<string | null>;
|
|
61
63
|
code: FormControl<string | null>;
|
|
62
64
|
checked: FormControl<boolean | null>;
|
|
65
|
+
warehouse: FormControl<CbmWarehouseModel.ListResponse.Data | null>;
|
|
66
|
+
provider: FormControl<CbmProviderModel.ListResponse.Item | null>;
|
|
67
|
+
manage_by: FormControl<CbmItemModel.EManageBy | null>;
|
|
63
68
|
}>;
|
|
64
|
-
|
|
69
|
+
company: import("@angular/core").Signal<import("../../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.Company>;
|
|
70
|
+
priceLists$: ListService<CbmPriceListModel.ListResponse, any, CbmPriceListModel.ListResponse.Data[]>;
|
|
71
|
+
manufacturers$: PaginatedListService<CbmManufacturerModel.ListResponse, CbmManufacturerModel.ListParams, CbmManufacturerModel.ListResponse.Item[]>;
|
|
72
|
+
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[]>;
|
|
73
|
+
categories$: ListService<CbmGroupModel.ListAsTreeResponse, any, CbmGroupModel.ListAsTreeResponse.Children>;
|
|
74
|
+
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[]>;
|
|
65
75
|
ngOnInit(): void;
|
|
66
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
67
|
-
get priceListControl(): FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
68
|
-
get manufacturerControl(): FormControl<CbmManufacturerModel.ListResponse.Item | null>;
|
|
69
|
-
get nameCodeControl(): FormControl<string | null>;
|
|
70
|
-
get codeControl(): FormControl<string | null>;
|
|
71
76
|
compareWithId(a: {
|
|
72
77
|
_id: string;
|
|
73
78
|
}, b: {
|
|
74
79
|
_id: string;
|
|
75
80
|
}): boolean;
|
|
76
81
|
makeSubscriptions(): void;
|
|
77
|
-
|
|
82
|
+
/** Valida el formulario y dispara la búsqueda de items */
|
|
78
83
|
searchItems(): void;
|
|
84
|
+
/** Construye los parámetros del filtro y busca items con paginación */
|
|
79
85
|
fetchItems(): void;
|
|
80
86
|
onGoToPage(page: number): void;
|
|
81
87
|
onNextPage(page: number): void;
|
|
82
88
|
onPreviousPage(page: number): void;
|
|
83
89
|
onPageSizeChange(size: number): void;
|
|
84
|
-
|
|
85
|
-
fetchManufacturers(searchTerm?: string): void;
|
|
86
|
-
fetchCategories(searchTerm?: string): void;
|
|
90
|
+
/** Emite item agregado y limpia selección si es empresa especial */
|
|
87
91
|
_addItem(item: CbmItemModel.ListResponse.Item): void;
|
|
88
92
|
validateConfirmToAddAllItems(): Promise<void>;
|
|
93
|
+
/** Emite todos los items seleccionados y limpia estado */
|
|
89
94
|
_addAllItems(): void;
|
|
90
95
|
searchAlternativeItems(item: CbmItemModel.ListResponse.Item): void;
|
|
96
|
+
/** Obtiene el precio sin IVA según la lista de precios seleccionada */
|
|
91
97
|
getPriceWithoutIva(item: CbmItemModel.ListResponse.Item): string;
|
|
98
|
+
/** Obtiene el precio con IVA según la lista de precios seleccionada */
|
|
92
99
|
getPriceWithIva(item: CbmItemModel.ListResponse.Item): string;
|
|
100
|
+
/** Actualiza estado reactivo de item y sincroniza con listas de selección persistente */
|
|
93
101
|
_checkItem(item: IItemWithChecked): void;
|
|
102
|
+
removeRememberedItem(item: IItemWithChecked): void;
|
|
103
|
+
/** Marca/desmarca todos los items visibles (no agregados aún) */
|
|
104
|
+
toggleCheckAll(): void;
|
|
94
105
|
}
|
|
95
106
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import { DestroyRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { cbmStockWarehouseModalModel, IPagination, status } from './type';
|
|
3
2
|
import { CbmStockItemModel } from '../../domain/models/stock-item.domain.model';
|
|
4
3
|
import { CbmStockItemRepository } from '../../domain/repositories/stock-item.domain.repository';
|
|
5
4
|
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
5
|
+
import { cbmStockWarehouseModalModel, IPagination, status } from './type';
|
|
6
6
|
export declare class StockByWarehouse {
|
|
7
7
|
private stockItemRepository;
|
|
8
8
|
private destroyRef;
|
|
@@ -204,6 +204,79 @@ export declare namespace CbmItemModel {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
interface AdvancedItemListParams {
|
|
208
|
+
page: number;
|
|
209
|
+
size: number;
|
|
210
|
+
name_code_filter?: string;
|
|
211
|
+
category_id?: string;
|
|
212
|
+
manage_by?: string;
|
|
213
|
+
manufacturer_id?: string;
|
|
214
|
+
property_id?: string;
|
|
215
|
+
stock?: boolean;
|
|
216
|
+
warehouse_id?: string;
|
|
217
|
+
provider_code?: boolean;
|
|
218
|
+
provider_id?: string;
|
|
219
|
+
}
|
|
220
|
+
interface AdvancedItemListResponse {
|
|
221
|
+
success: boolean;
|
|
222
|
+
pageNum: number;
|
|
223
|
+
pageSize: number;
|
|
224
|
+
total: number;
|
|
225
|
+
pages: number;
|
|
226
|
+
items: AdvancedItemListResponse.Item[];
|
|
227
|
+
}
|
|
228
|
+
namespace AdvancedItemListResponse {
|
|
229
|
+
interface Item {
|
|
230
|
+
_id: string;
|
|
231
|
+
category_id: string;
|
|
232
|
+
unit_measure_id: string;
|
|
233
|
+
code: string;
|
|
234
|
+
barcode: string;
|
|
235
|
+
name: string;
|
|
236
|
+
manage_by: TManageBy;
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
unit_measure_name: string;
|
|
239
|
+
unit_measure_code: string;
|
|
240
|
+
category_name: string;
|
|
241
|
+
created_at: number;
|
|
242
|
+
item_price: number;
|
|
243
|
+
item_price_name: string;
|
|
244
|
+
manufacturer_id?: string;
|
|
245
|
+
manufacturer_name?: string;
|
|
246
|
+
tax_iva_code: string;
|
|
247
|
+
tax_iva_percentage: number;
|
|
248
|
+
tax_iva_description: string;
|
|
249
|
+
item_base_price: number;
|
|
250
|
+
tax_iva: Item.TaxIva;
|
|
251
|
+
category: Item.Category;
|
|
252
|
+
company_id: string;
|
|
253
|
+
user_id: string;
|
|
254
|
+
tax_iva_id: string;
|
|
255
|
+
iva: number;
|
|
256
|
+
automatic_code: boolean;
|
|
257
|
+
not_apply_discount_group: boolean;
|
|
258
|
+
tax_ice: boolean;
|
|
259
|
+
tax_irbpn: boolean;
|
|
260
|
+
unit_measure_group_indicator: boolean;
|
|
261
|
+
deleted: boolean;
|
|
262
|
+
item_stock_company: number;
|
|
263
|
+
item_stock_warehouse: number;
|
|
264
|
+
observation?: string;
|
|
265
|
+
item_stock_in_transit_warehouse: number;
|
|
266
|
+
}
|
|
267
|
+
namespace Item {
|
|
268
|
+
interface TaxIva {
|
|
269
|
+
_id: string;
|
|
270
|
+
code: string;
|
|
271
|
+
percentage: number;
|
|
272
|
+
description: string;
|
|
273
|
+
}
|
|
274
|
+
interface Category {
|
|
275
|
+
_id: string;
|
|
276
|
+
name: string;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
207
280
|
interface GetOneResponse {
|
|
208
281
|
success: boolean;
|
|
209
282
|
data: GetOneResponse.Data;
|
|
@@ -120,6 +120,7 @@ export declare namespace CbmProviderModel {
|
|
|
120
120
|
updated_user?: string;
|
|
121
121
|
document_name_pay?: string;
|
|
122
122
|
foreign_tax_regime_type?: string;
|
|
123
|
+
payment_to_resident?: string;
|
|
123
124
|
payment_country_code?: string;
|
|
124
125
|
payment_country_name?: string;
|
|
125
126
|
payment_destination_country_code?: string;
|
|
@@ -239,6 +240,7 @@ export declare namespace CbmProviderModel {
|
|
|
239
240
|
payment_destination_country_name?: string;
|
|
240
241
|
double_taxation_treaty_applies?: boolean;
|
|
241
242
|
legal_withholding_applies?: string;
|
|
243
|
+
payment_to_resident?: string;
|
|
242
244
|
contacts?: UpdateManagementBody.Contact[];
|
|
243
245
|
delete_contacts?: string;
|
|
244
246
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
}
|
|
@@ -6,6 +6,7 @@ export declare class CbmItemDomainRepository implements ICbmItemInfrastructureRe
|
|
|
6
6
|
private service;
|
|
7
7
|
constructor(service: ICbmItemInfrastructureRepository);
|
|
8
8
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
9
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
9
10
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
10
11
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
12
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -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,7 @@
|
|
|
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
|
+
}
|
|
@@ -3,6 +3,7 @@ import { CbmItemModel } from "../../domain/models/item.domain.model";
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
export interface ICbmItemInfrastructureRepository {
|
|
5
5
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
6
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
6
7
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
7
8
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
8
9
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -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
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare class CbmItemInfrastructureService implements ICbmItemInfrastruct
|
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
8
|
private readonly url;
|
|
9
9
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
10
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
10
11
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
12
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
12
13
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -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
|
+
}
|