@cbm-common/cbm-types 0.0.359 → 0.0.361
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/accounting-seat.d.ts +3 -1
- 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/advanced-item-search-modal/advanced-item-search-modal.d.ts +4 -0
- package/lib/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +27 -1
- 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/tree-select/tree-select.d.ts +28 -4
- package/lib/components/view-reports/view-reports.d.ts +6 -3
- package/lib/domain/models/alternative-item.domain.model.d.ts +63 -0
- package/lib/domain/models/provider.domain.model.d.ts +12 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
- package/lib/domain/repositories/alternative-item.domain.repository.d.ts +1 -1
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/general.domain.service.d.ts +7 -2
- package/lib/infrastructure/repositories/alternative-item.infrastructure.repository.d.ts +1 -1
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/alternative-item.infrastructure.service.d.ts +1 -1
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { DestroyRef, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { CbmSeatModel } from '../../domain/models/seat.domain.model';
|
|
3
3
|
import { CbmReportFinancialsDomainRepository } from '../../domain/repositories/report-financials.domain.repository';
|
|
4
4
|
import { CbmSeatDomainRepository } from '../../domain/repositories/seat.domain.repository';
|
|
5
|
+
import { GeneralDomainService } from '../../domain/services/general.domain.service';
|
|
5
6
|
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
6
7
|
import { TStatus } from './types';
|
|
7
8
|
export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
|
|
@@ -9,6 +10,7 @@ export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
|
|
|
9
10
|
private seatRepository;
|
|
10
11
|
private notificationService;
|
|
11
12
|
private destroyRef;
|
|
13
|
+
private generalService;
|
|
12
14
|
collectionOriginName: import("@angular/core").InputSignal<string>;
|
|
13
15
|
collectionOriginId: import("@angular/core").InputSignal<string>;
|
|
14
16
|
title: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -21,7 +23,7 @@ export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
|
|
|
21
23
|
seatDetails: import("@angular/core").Signal<CbmSeatModel.FindByFilterResponse.Data.Detail[]>;
|
|
22
24
|
totalCredit: import("@angular/core").Signal<number>;
|
|
23
25
|
totalDebit: import("@angular/core").Signal<number>;
|
|
24
|
-
constructor(reportFinancesRepository: CbmReportFinancialsDomainRepository, seatRepository: CbmSeatDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
26
|
+
constructor(reportFinancesRepository: CbmReportFinancialsDomainRepository, seatRepository: CbmSeatDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, generalService: GeneralDomainService);
|
|
25
27
|
ngOnInit(): void;
|
|
26
28
|
ngOnDestroy(): void;
|
|
27
29
|
makeInitialRequests(): void;
|
|
@@ -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
|
+
}
|
|
@@ -46,10 +46,14 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
46
46
|
isVisible: Subject<boolean>;
|
|
47
47
|
isVisible$: import("@angular/core").WritableSignal<boolean>;
|
|
48
48
|
selectedItem: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item | null>;
|
|
49
|
+
selectedWarehouse: import("@angular/core").WritableSignal<CbmWarehouseModel.ListResponse.Data | null>;
|
|
49
50
|
selectedItemsCount: import("@angular/core").Signal<number>;
|
|
50
51
|
openModal(codeFilter?: string): void;
|
|
51
52
|
closeModal(): void;
|
|
52
53
|
sendItemInput(item: CbmItemModel.ListResponse.Item): void;
|
|
54
|
+
/** Guarda el artículo y el almacén filtrado en la lista para consultar sus alternativos con stock */
|
|
55
|
+
onSelectItem(item: CbmItemModel.ListResponse.Item): void;
|
|
56
|
+
onGoBackFromAlternatives(): void;
|
|
53
57
|
getOneItemByCode(): void;
|
|
54
58
|
}
|
|
55
59
|
export type ITableColumnAdvancedItemSearchModal = Record<string, Omit<Partial<ITableColumn>, 'order' | 'key'>>;
|
package/lib/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
1
|
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
|
+
import { CbmWarehouseModel } from '@cbm-common/cbm-types';
|
|
2
3
|
import { CbmAlternativeItemModel } from "../../../domain/models/alternative-item.domain.model";
|
|
3
4
|
import { CbmItemModel } from "../../../domain/models/item.domain.model";
|
|
5
|
+
import { CbmStockItemModel } from "../../../domain/models/stock-item.domain.model";
|
|
4
6
|
import { CbmAlternativeItemDomainRepository } from "../../../domain/repositories/alternative-item.domain.repository";
|
|
7
|
+
import { CbmStockItemRepository } from "../../../domain/repositories/stock-item.domain.repository";
|
|
5
8
|
import { CbmNotificationService } from "../../../domain/services/notification/notification.service";
|
|
6
9
|
import { TStatus } from '../types';
|
|
10
|
+
interface IStockPopoverPosition {
|
|
11
|
+
left: number;
|
|
12
|
+
/** Centro vertical del popover (se aplica con translateY(-50%)) */
|
|
13
|
+
top: number;
|
|
14
|
+
}
|
|
7
15
|
export declare class AlternativeItemListComponent implements OnInit {
|
|
8
16
|
private alternativeItemRepository;
|
|
17
|
+
private stockItemRepository;
|
|
9
18
|
private notificationService;
|
|
10
19
|
private destroyRef;
|
|
11
20
|
item: import("@angular/core").InputSignal<CbmItemModel.ListResponse.Item>;
|
|
12
21
|
addedItemsIds: import("@angular/core").InputSignal<string[]>;
|
|
22
|
+
warehouse: import("@angular/core").InputSignal<CbmWarehouseModel.ListResponse.Data | null>;
|
|
13
23
|
goBack: import("@angular/core").OutputEmitterRef<void>;
|
|
14
24
|
addAlternativeItem: import("@angular/core").OutputEmitterRef<CbmAlternativeItemModel.ListChildrenResponse.Data.Item>;
|
|
15
25
|
statusOfFetchAlternativeItems: import("@angular/core").WritableSignal<TStatus>;
|
|
16
26
|
isSmallScreen: import("@angular/core").WritableSignal<boolean>;
|
|
17
27
|
alternativeItems: import("@angular/core").WritableSignal<CbmAlternativeItemModel.ListChildrenResponse.Data[]>;
|
|
18
28
|
computedAlternativeItems: import("@angular/core").Signal<CbmAlternativeItemModel.ListChildrenResponse.Data[]>;
|
|
19
|
-
|
|
29
|
+
stockPopoverItem: import("@angular/core").WritableSignal<CbmAlternativeItemModel.ListChildrenResponse.Data.Item | null>;
|
|
30
|
+
stockPopoverPosition: import("@angular/core").WritableSignal<IStockPopoverPosition>;
|
|
31
|
+
stockPopoverMaxHeight: import("@angular/core").WritableSignal<number>;
|
|
32
|
+
private stockPopoverCloseTimer;
|
|
33
|
+
stockByItem: import("@angular/core").WritableSignal<Record<string, CbmStockItemModel.listResponseWarehouse.Item[]>>;
|
|
34
|
+
statusOfStockByItem: import("@angular/core").WritableSignal<Record<string, TStatus>>;
|
|
35
|
+
stockPopoverRows: import("@angular/core").Signal<CbmStockItemModel.listResponseWarehouse.Item[]>;
|
|
36
|
+
stockPopoverStatus: import("@angular/core").Signal<TStatus>;
|
|
37
|
+
readonly stockPopoverWidth = 520;
|
|
38
|
+
constructor(alternativeItemRepository: CbmAlternativeItemDomainRepository, stockItemRepository: CbmStockItemRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
20
39
|
ngOnInit(): void;
|
|
21
40
|
makeSubscriptions(): void;
|
|
22
41
|
makeInitialRequests(): void;
|
|
23
42
|
fetchAlternativeItems(): void;
|
|
43
|
+
/** Abre el popover junto al ícono y consulta el stock por almacén si aún no se tiene */
|
|
44
|
+
showStockPopover(event: Event, item: CbmAlternativeItemModel.ListChildrenResponse.Data.Item): void;
|
|
45
|
+
/** Cierra con un pequeño retraso para poder pasar el mouse del ícono al popover (y hacer scroll) */
|
|
46
|
+
hideStockPopover(): void;
|
|
47
|
+
cancelStockPopoverClose(): void;
|
|
48
|
+
private fetchStockByWarehouse;
|
|
24
49
|
addItem(alternativeItem: CbmAlternativeItemModel.ListChildrenResponse.Data): void;
|
|
25
50
|
}
|
|
51
|
+
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,10 +1,11 @@
|
|
|
1
|
-
import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmTreeSelect } from './types';
|
|
5
|
+
export { CbmTreeSelect } from './types';
|
|
5
6
|
type TreeOptionInput<T> = CbmTreeSelect.Children<T> | CbmTreeSelect.Node<T>;
|
|
6
|
-
type TreeChangeValue<T> = T | T[] | null;
|
|
7
|
-
export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlValueAccessor {
|
|
7
|
+
type TreeChangeValue<T> = T | T[] | CbmTreeSelect.Node<T> | CbmTreeSelect.Node<T>[] | null;
|
|
8
|
+
export declare class CbmTreeSelectComponent<T = any> implements OnInit, AfterViewInit, ControlValueAccessor {
|
|
8
9
|
private readonly destroyRef;
|
|
9
10
|
constructor(destroyRef: DestroyRef);
|
|
10
11
|
options: import("@angular/core").InputSignal<TreeOptionInput<T>>;
|
|
@@ -17,7 +18,11 @@ export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlV
|
|
|
17
18
|
typeahead: import("@angular/core").InputSignal<Subject<string> | null>;
|
|
18
19
|
multiple: import("@angular/core").InputSignal<boolean>;
|
|
19
20
|
closeOnSelect: import("@angular/core").InputSignal<boolean | null>;
|
|
21
|
+
closeOnSelected: import("@angular/core").InputSignal<boolean | null>;
|
|
22
|
+
returnNode: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
selectedAllNode: import("@angular/core").InputSignal<boolean>;
|
|
20
24
|
isSmall: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
parentLabel: import("@angular/core").InputSignal<string | null>;
|
|
21
26
|
protected inputPlaceholder: import("@angular/core").Signal<string>;
|
|
22
27
|
protected inputLoading: import("@angular/core").Signal<boolean>;
|
|
23
28
|
protected inputInvalid: import("@angular/core").Signal<boolean>;
|
|
@@ -39,18 +44,38 @@ export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlV
|
|
|
39
44
|
protected selectedNode: import("@angular/core").WritableSignal<CbmTreeSelect.Node<T> | null>;
|
|
40
45
|
protected selectedNodes: import("@angular/core").WritableSignal<CbmTreeSelect.Node<T>[]>;
|
|
41
46
|
protected selectedNodeLabel: import("@angular/core").Signal<string | null>;
|
|
47
|
+
protected chipRefs: import("@angular/core").Signal<readonly ElementRef<HTMLElement>[]>;
|
|
48
|
+
protected overflowCount: import("@angular/core").WritableSignal<number>;
|
|
49
|
+
protected chipsWidth: import("@angular/core").WritableSignal<number | null>;
|
|
50
|
+
protected collapsedKeys: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
51
|
+
protected visibleChipCount: import("@angular/core").Signal<number>;
|
|
52
|
+
protected overflowLabels: import("@angular/core").Signal<string>;
|
|
42
53
|
onChange: (value: TreeChangeValue<T>) => void;
|
|
43
54
|
onTouched: () => void;
|
|
44
55
|
ngOnInit(): void;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
45
57
|
registerOnChange(fn: (value: TreeChangeValue<T>) => void): void;
|
|
46
58
|
registerOnTouched(fn: () => void): void;
|
|
47
59
|
setDisabledState(isDisabled: boolean): void;
|
|
48
60
|
writeValue(obj: TreeChangeValue<T>): void;
|
|
61
|
+
private isNodeLike;
|
|
62
|
+
private unwrapValue;
|
|
49
63
|
subOberservers(): void;
|
|
50
64
|
setValue(node: CbmTreeSelect.Node<T> | null): void;
|
|
51
65
|
clearSelection(): void;
|
|
52
66
|
removeSelectedNode(node: CbmTreeSelect.Node<T>): void;
|
|
53
67
|
isSelected(node: CbmTreeSelect.Node<T>): boolean;
|
|
68
|
+
private setupResizeObserver;
|
|
69
|
+
private scheduleMeasure;
|
|
70
|
+
private measureOverflow;
|
|
71
|
+
protected isCollapsed(node: CbmTreeSelect.Node<T>): boolean;
|
|
72
|
+
protected toggleCollapse(node: CbmTreeSelect.Node<T>): void;
|
|
73
|
+
private nodeKey;
|
|
74
|
+
protected onItemClick(node: CbmTreeSelect.Node<T>, hasChildren: boolean): void;
|
|
75
|
+
protected collectLeafNodes(node: CbmTreeSelect.Node<T>): CbmTreeSelect.Node<T>[];
|
|
76
|
+
protected isGroupFullySelected(node: CbmTreeSelect.Node<T>): boolean;
|
|
77
|
+
protected isGroupPartiallySelected(node: CbmTreeSelect.Node<T>): boolean;
|
|
78
|
+
protected toggleGroupChildren(node: CbmTreeSelect.Node<T>): void;
|
|
54
79
|
protected filterOptions(optionsInput: TreeOptionInput<T>, searchValue: string | null): CbmTreeSelect.Children<T>;
|
|
55
80
|
protected syncSelectedNodes(multiple: boolean): void;
|
|
56
81
|
protected mapValuesToNodes(values: readonly T[]): CbmTreeSelect.Node<T>[];
|
|
@@ -64,4 +89,3 @@ export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlV
|
|
|
64
89
|
protected resolveBoundId(value: T): unknown | null;
|
|
65
90
|
protected isRecord(value: unknown): value is Record<string, unknown>;
|
|
66
91
|
}
|
|
67
|
-
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { HttpResponse } from '@angular/common/http';
|
|
1
2
|
import { DestroyRef } from '@angular/core';
|
|
2
3
|
import { CbmUploadDomainRepository } from '../../domain/repositories/upload.domain.repository';
|
|
4
|
+
import { GeneralDomainService } from '../../domain/services/general.domain.service';
|
|
3
5
|
import { CbmNotificationService } from '../../remotes/services.remote';
|
|
4
6
|
import { CbmViewReportModel } from './model';
|
|
5
7
|
import { Observable } from 'rxjs';
|
|
@@ -13,7 +15,8 @@ export declare class CbmViewReportComponent {
|
|
|
13
15
|
private readonly uploadRepository;
|
|
14
16
|
private readonly generalReportRepository;
|
|
15
17
|
private readonly notificationService;
|
|
16
|
-
|
|
18
|
+
private readonly generalService;
|
|
19
|
+
constructor(route: ActivatedRoute, destroyRef: DestroyRef, uploadRepository: CbmUploadDomainRepository, generalReportRepository: CbmGeneralReportRepository, notificationService: CbmNotificationService, generalService: GeneralDomainService);
|
|
17
20
|
reportId: import("@angular/core").InputSignal<string>;
|
|
18
21
|
othersFn: import("@angular/core").InputSignal<((request: any) => CbmViewReportModel.ReportData.Others[]) | undefined>;
|
|
19
22
|
collectionName: import("@angular/core").InputSignal<string>;
|
|
@@ -45,8 +48,8 @@ export declare class CbmViewReportComponent {
|
|
|
45
48
|
setMetadata(report: CbmViewReportModel.ReportData): void;
|
|
46
49
|
downloadReport(typeFile: 'excel' | 'pdf' | 'print'): Promise<CbmViewReportModel.Status>;
|
|
47
50
|
downloadExcel: (response: any) => void;
|
|
48
|
-
downloadPdf: (response:
|
|
49
|
-
printPdf: (response:
|
|
51
|
+
downloadPdf: (response: HttpResponse<Blob>) => void;
|
|
52
|
+
printPdf: (response: HttpResponse<Blob>) => void;
|
|
50
53
|
getReport(id: string): Promise<void>;
|
|
51
54
|
setRefresh(): void;
|
|
52
55
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare namespace CbmAlternativeItemModel {
|
|
2
|
+
enum EManageBy {
|
|
3
|
+
SERIES = "series",
|
|
4
|
+
BATCH = "batch",
|
|
5
|
+
NONE = "none"
|
|
6
|
+
}
|
|
7
|
+
type TManageBy = `${EManageBy}`;
|
|
2
8
|
interface ListParentsResponse {
|
|
3
9
|
success: boolean;
|
|
4
10
|
data: ListParentsResponse.Data[];
|
|
@@ -59,6 +65,10 @@ export declare namespace CbmAlternativeItemModel {
|
|
|
59
65
|
created_user: string;
|
|
60
66
|
created_at: number;
|
|
61
67
|
item: Data.Item;
|
|
68
|
+
alternative_item_id?: string;
|
|
69
|
+
deleted?: boolean;
|
|
70
|
+
user_id?: string;
|
|
71
|
+
company_id?: string;
|
|
62
72
|
loading: boolean;
|
|
63
73
|
}
|
|
64
74
|
namespace Data {
|
|
@@ -68,6 +78,59 @@ export declare namespace CbmAlternativeItemModel {
|
|
|
68
78
|
barcode: string;
|
|
69
79
|
name: string;
|
|
70
80
|
observation: string;
|
|
81
|
+
company_id?: string;
|
|
82
|
+
user_id?: string;
|
|
83
|
+
category_id?: string;
|
|
84
|
+
unit_measure_id?: string;
|
|
85
|
+
tax_iva_id?: string;
|
|
86
|
+
iva?: number;
|
|
87
|
+
automatic_code?: boolean;
|
|
88
|
+
not_apply_discount_group?: boolean;
|
|
89
|
+
tax_ice?: boolean;
|
|
90
|
+
tax_irbpn?: boolean;
|
|
91
|
+
manage_by?: TManageBy;
|
|
92
|
+
unit_measure_group_indicator?: boolean;
|
|
93
|
+
ind_sales?: boolean;
|
|
94
|
+
ind_purchase?: boolean;
|
|
95
|
+
enabled?: boolean;
|
|
96
|
+
created_user?: string;
|
|
97
|
+
deleted_at?: number;
|
|
98
|
+
has_kardex_movement?: boolean;
|
|
99
|
+
in_stock?: number;
|
|
100
|
+
committed?: number;
|
|
101
|
+
ordered?: number;
|
|
102
|
+
available_stock?: number;
|
|
103
|
+
stock_in_transit?: number;
|
|
104
|
+
tax_iva_code?: string;
|
|
105
|
+
tax_iva_percentage?: number;
|
|
106
|
+
tax_iva_description?: string;
|
|
107
|
+
unit_measure_name?: string;
|
|
108
|
+
unit_measure_code?: string;
|
|
109
|
+
category_name?: string;
|
|
110
|
+
provider_code?: boolean;
|
|
111
|
+
status_tariff?: boolean;
|
|
112
|
+
created_at?: number;
|
|
113
|
+
stock_updated_at?: number;
|
|
114
|
+
stock_updated_user?: string;
|
|
115
|
+
unit_cost_kardex?: number;
|
|
116
|
+
last_purchases?: number;
|
|
117
|
+
last_purchases_iva?: number;
|
|
118
|
+
storage_conditions?: null;
|
|
119
|
+
updated_at?: number;
|
|
120
|
+
updated_user?: string;
|
|
121
|
+
updated_user_id?: string;
|
|
122
|
+
provider_document_number?: string;
|
|
123
|
+
provider_id?: string;
|
|
124
|
+
provider_item_code?: string;
|
|
125
|
+
provider_name?: string;
|
|
126
|
+
provider_trade_name?: string;
|
|
127
|
+
last_purchase_date?: number;
|
|
128
|
+
last_purchases_base?: number;
|
|
129
|
+
last_purchases_base_iva?: number;
|
|
130
|
+
warehouse_in_stock?: number;
|
|
131
|
+
warehouse_committed?: number;
|
|
132
|
+
warehouse_available_stock?: number;
|
|
133
|
+
warehouse_stock_in_transit?: number;
|
|
71
134
|
}
|
|
72
135
|
}
|
|
73
136
|
}
|
|
@@ -51,7 +51,10 @@ export declare namespace CbmProviderModel {
|
|
|
51
51
|
document_number_pay?: string;
|
|
52
52
|
document_type_pay_id?: string;
|
|
53
53
|
observation?: string;
|
|
54
|
+
/** Legado: el API actual no lo devuelve; los plazos de crédito vienen en `deadline_data`. */
|
|
54
55
|
payment_deadline?: number[];
|
|
56
|
+
/** Plazos de crédito configurados en el proveedor (solo vienen si el proveedor los tiene configurados). */
|
|
57
|
+
deadline_data?: DeadlineData[];
|
|
55
58
|
phone?: string;
|
|
56
59
|
disabled_reason?: string;
|
|
57
60
|
bank_code?: string;
|
|
@@ -79,6 +82,10 @@ export declare namespace CbmProviderModel {
|
|
|
79
82
|
is_related_party?: boolean;
|
|
80
83
|
subject_class_code?: string;
|
|
81
84
|
subject_class_description?: string;
|
|
85
|
+
employee_salary?: number;
|
|
86
|
+
economic_activity_id?: string;
|
|
87
|
+
economic_activity_code?: string;
|
|
88
|
+
rt_up?: boolean;
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
91
|
interface GetOneResponse {
|
|
@@ -110,8 +117,11 @@ export declare namespace CbmProviderModel {
|
|
|
110
117
|
user_inactive_at?: number;
|
|
111
118
|
disabled_reason?: string;
|
|
112
119
|
user_inactive_name?: string;
|
|
120
|
+
/** Legado: el API actual no lo devuelve; los plazos de crédito vienen en `deadline_data`. */
|
|
113
121
|
payment_deadline?: number[];
|
|
122
|
+
/** Plazos de crédito configurados en el proveedor (solo vienen si el proveedor los tiene configurados). */
|
|
114
123
|
deadline_data?: DeadlineData[];
|
|
124
|
+
bulk_load?: boolean;
|
|
115
125
|
bank_id?: string;
|
|
116
126
|
observation?: string;
|
|
117
127
|
phone?: string;
|
|
@@ -186,6 +196,7 @@ export declare namespace CbmProviderModel {
|
|
|
186
196
|
deleted?: boolean;
|
|
187
197
|
created_user?: string;
|
|
188
198
|
created_at?: number;
|
|
199
|
+
deleted_at?: number;
|
|
189
200
|
advance_account_id?: string;
|
|
190
201
|
receivable_account_id?: string;
|
|
191
202
|
updated_at?: number;
|
|
@@ -217,6 +228,7 @@ export declare namespace CbmProviderModel {
|
|
|
217
228
|
export {};
|
|
218
229
|
}
|
|
219
230
|
interface DeadlineData {
|
|
231
|
+
_id?: string;
|
|
220
232
|
deadline_id?: string;
|
|
221
233
|
deadlines: number;
|
|
222
234
|
quota_number?: number;
|
|
@@ -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
|
+
}
|
|
@@ -5,7 +5,7 @@ export declare class CbmAlternativeItemDomainRepository implements ICbmAlternati
|
|
|
5
5
|
private readonly service;
|
|
6
6
|
constructor(service: ICbmAlternativeItemInfrastructureRepository);
|
|
7
7
|
listParents(): Observable<CbmAlternativeItemModel.ListParentsResponse>;
|
|
8
|
-
listChildren(parentId: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
8
|
+
listChildren(parentId: string, warehouseId?: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
9
9
|
getOne(id: string): Observable<CbmAlternativeItemModel.GetOneResponse>;
|
|
10
10
|
save(data: CbmAlternativeItemModel.SaveBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
11
11
|
saveBulk(data: CbmAlternativeItemModel.SaveBulkBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
@@ -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
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { HttpResponse } from '@angular/common/http';
|
|
1
2
|
import { ValidatorFn } from '@angular/forms';
|
|
3
|
+
type BlobResponse = Pick<HttpResponse<Blob>, 'body' | 'headers'>;
|
|
2
4
|
export declare class GeneralDomainService {
|
|
3
5
|
modalShow(modalId: string): void;
|
|
4
6
|
modalHide(modalId: string): void;
|
|
5
7
|
isMobile(): boolean;
|
|
6
|
-
printPdf(response:
|
|
8
|
+
printPdf(response: BlobResponse): void;
|
|
7
9
|
closePrintPdf(): void;
|
|
8
|
-
downloadPdf(response:
|
|
10
|
+
downloadPdf(response: BlobResponse): void;
|
|
11
|
+
private getFileName;
|
|
12
|
+
private saveBlob;
|
|
9
13
|
getTimestampFromDate(localDate: string): number;
|
|
10
14
|
getDateStringFromTimestamp(timestamp: number): string;
|
|
11
15
|
findRoute(eventModule: string, collectionName: string): {
|
|
@@ -30,3 +34,4 @@ export declare function findRoute(eventModule: string, collectionName: string):
|
|
|
30
34
|
};
|
|
31
35
|
export declare function noWhitespaceValidator(): ValidatorFn;
|
|
32
36
|
export declare function amountValidator(): ValidatorFn;
|
|
37
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { CbmAlternativeItemModel } from "../../domain/models/alternative-item.do
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export interface ICbmAlternativeItemInfrastructureRepository {
|
|
4
4
|
listParents(): Observable<CbmAlternativeItemModel.ListParentsResponse>;
|
|
5
|
-
listChildren(parentId: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
5
|
+
listChildren(parentId: string, warehouseId?: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
6
6
|
getOne(id: string): Observable<CbmAlternativeItemModel.GetOneResponse>;
|
|
7
7
|
save(data: CbmAlternativeItemModel.SaveBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
8
8
|
saveBulk(data: CbmAlternativeItemModel.SaveBulkBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare class CbmAlternativeItemInfrastructureService implements ICbmAlte
|
|
|
8
8
|
private readonly url;
|
|
9
9
|
listParents(): Observable<CbmAlternativeItemModel.ListParentsResponse>;
|
|
10
10
|
listParentsPaginated(params: CbmAlternativeItemModel.ListParentsPaginatedParams): Observable<CbmAlternativeItemModel.ListParentsPaginatedResponse>;
|
|
11
|
-
listChildren(parentId: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
11
|
+
listChildren(parentId: string, warehouseId?: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
12
12
|
getOne(id: string): Observable<CbmAlternativeItemModel.GetOneResponse>;
|
|
13
13
|
save(data: CbmAlternativeItemModel.SaveBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
14
14
|
saveBulk(data: CbmAlternativeItemModel.SaveBulkBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
@@ -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
|
+
}
|