@cbm-common/cbm-types 0.0.1 → 0.0.2
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/package.json +1 -1
- package/src/lib/types/app/components/accounting-seat/accounting-seat.d.ts +32 -0
- package/src/lib/types/app/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
- package/src/lib/types/app/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
- package/src/lib/types/app/components/accounting-seat/types.d.ts +1 -0
- package/src/lib/types/app/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +25 -0
- package/src/lib/types/app/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/animations.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/constants.d.ts +1 -0
- package/src/lib/types/app/components/advanced-item-search-modal/item-list/item-list.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/types.d.ts +7 -0
- package/src/lib/types/app/components/modal-confirm/modal-confirm.d.ts +23 -0
- package/src/lib/types/app/components/modal-confirm/ng-content.d.ts +8 -0
- package/src/lib/types/app/components/modal-confirm/types.d.ts +6 -0
- package/src/lib/types/app/components/tree-select/tree-select.d.ts +60 -0
- package/src/lib/types/app/components/tree-select/types.d.ts +8 -0
- package/src/lib/types/app/components/user-history/components/email-history/email-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/general-history/general-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/print-history/print-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts +1 -1
- package/src/lib/types/app/components/user-history/user-history.d.ts +1 -1
- package/src/lib/types/app/domain/models/alternative-item.domain.model.d.ts +198 -0
- package/src/lib/types/app/domain/models/company.domain.model.d.ts +354 -0
- package/src/lib/types/app/domain/models/email-settings.domain.model.d.ts +86 -0
- package/src/lib/types/app/domain/models/group.domain.model.d.ts +78 -0
- package/src/lib/types/app/domain/models/history.domain.model.d.ts +66 -0
- package/src/lib/types/app/domain/models/item.domain.model.d.ts +935 -0
- package/src/lib/types/app/domain/models/price-list.domain.model.d.ts +54 -0
- package/src/lib/types/app/domain/models/report-financials.domain.model.d.ts +2165 -0
- package/src/lib/types/app/domain/models/seat.domain.model.d.ts +325 -0
- package/src/lib/types/app/domain/models/user.domain.model.d.ts +260 -0
- package/src/lib/types/app/domain/repositories/alternative-item.domain.repository.d.ts +18 -0
- package/src/lib/types/app/domain/repositories/company.domain.repository.d.ts +16 -0
- package/src/lib/types/app/domain/repositories/email-settings.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/repositories/group.domain.repository.d.ts +10 -0
- package/src/lib/types/app/domain/repositories/history.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/repositories/item.domain.repository.d.ts +21 -0
- package/src/lib/types/app/domain/repositories/price-list.domain.repository.d.ts +10 -0
- package/src/lib/types/app/domain/repositories/report-financials.domain.repository.d.ts +242 -0
- package/src/lib/types/app/domain/repositories/seat.domain.repository.d.ts +21 -0
- package/src/lib/types/app/domain/repositories/user.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/services/auth/auth.model.d.ts +182 -0
- package/src/lib/types/app/domain/services/auth/auth.service.d.ts +18 -0
- package/src/lib/types/app/infrastructure/repositories/alternative-item.infrastructure.repository.d.ts +14 -0
- package/src/lib/types/app/infrastructure/repositories/company.infrastructure.repository.d.ts +13 -0
- package/src/lib/types/app/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/repositories/group.infrastructure.repository.d.ts +6 -0
- package/src/lib/types/app/infrastructure/repositories/history.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/repositories/item.infrastructure.repository.d.ts +17 -0
- package/src/lib/types/app/infrastructure/repositories/price-list.infrastructure.repository.d.ts +6 -0
- package/src/lib/types/app/infrastructure/repositories/report-financials.infrastructure.repository.d.ts +146 -0
- package/src/lib/types/app/infrastructure/repositories/seat.infrastructure.repository.d.ts +17 -0
- package/src/lib/types/app/infrastructure/repositories/user.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/alternative-item.infrastructure.service.d.ts +19 -0
- package/src/lib/types/app/infrastructure/services/company.infrastructure.service.d.ts +17 -0
- package/src/lib/types/app/infrastructure/services/email-settings.infrastruture.service.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/group.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/history.infrastructure.service.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/item.infrastructure.service.d.ts +21 -0
- package/src/lib/types/app/infrastructure/services/price-list.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/report-financials.infrastructure.service.d.ts +246 -0
- package/src/lib/types/app/infrastructure/services/seat.infrastructure.service.d.ts +21 -0
- package/src/lib/types/app/infrastructure/services/user.infrastructure.service.d.ts +1 -1
- package/src/lib/types/app/remotes/components.remote.d.ts +1 -0
- package/src/lib/types/app/remotes/repositories.romote.d.ts +0 -0
- package/src/lib/types/app/remotes/services.remote.d.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DestroyRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
3
|
+
import { CbmSeatModel } from '@models/seat.domain.model';
|
|
4
|
+
import { TStatus } from './types';
|
|
5
|
+
import { CbmSeatDomainRepository } from '@repositories/seat.domain.repository';
|
|
6
|
+
import { CbmReportFinancialsDomainRepository } from '@repositories/report-financials.domain.repository';
|
|
7
|
+
export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
|
|
8
|
+
private reportFinancesRepository;
|
|
9
|
+
private seatRepository;
|
|
10
|
+
private notificationService;
|
|
11
|
+
private destroyRef;
|
|
12
|
+
collectionOriginName: import("@angular/core").InputSignal<string>;
|
|
13
|
+
collectionOriginId: import("@angular/core").InputSignal<string>;
|
|
14
|
+
title: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
response: import("@angular/core").WritableSignal<any>;
|
|
16
|
+
seat: import("@angular/core").WritableSignal<CbmSeatModel.FindByFilterResponse.Data | null>;
|
|
17
|
+
statusOfFetchSeat: import("@angular/core").WritableSignal<TStatus>;
|
|
18
|
+
statusOfDownloadExcel: import("@angular/core").WritableSignal<TStatus>;
|
|
19
|
+
statusOfDownloadPdf: import("@angular/core").WritableSignal<TStatus>;
|
|
20
|
+
statusOfPrintPdf: import("@angular/core").WritableSignal<TStatus>;
|
|
21
|
+
seatDetails: import("@angular/core").Signal<CbmSeatModel.FindByFilterResponse.Data.Detail[]>;
|
|
22
|
+
totalCredit: import("@angular/core").Signal<number>;
|
|
23
|
+
totalDebit: import("@angular/core").Signal<number>;
|
|
24
|
+
constructor(reportFinancesRepository: CbmReportFinancialsDomainRepository, seatRepository: CbmSeatDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
makeInitialRequests(): void;
|
|
28
|
+
fetchSeat(): void;
|
|
29
|
+
printPdf(): void;
|
|
30
|
+
downloadPdf(): void;
|
|
31
|
+
downloadExcel(): void;
|
|
32
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
package/src/lib/types/app/components/advanced-item-search-modal/advanced-item-search-modal.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CbmItemModel } from '@models/item.domain.model';
|
|
2
|
+
import { CbmItemDomainRepository } from '@repositories/item.domain.repository';
|
|
3
|
+
import { CbmAlternativeItemModel } from '@models/alternative-item.domain.model';
|
|
4
|
+
import { CbmPriceListModel } from '@models/price-list.domain.model';
|
|
5
|
+
export declare class CbmAdvancedItemSearchModal {
|
|
6
|
+
private itemRepository;
|
|
7
|
+
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
8
|
+
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
9
|
+
priceList: import("@angular/core").InputSignal<string | CbmPriceListModel.ListResponse.Data | undefined>;
|
|
10
|
+
hideTable: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
addedItemsIds: import("@angular/core").InputSignal<string[]>;
|
|
12
|
+
codeFilter: import("@angular/core").WritableSignal<string | undefined>;
|
|
13
|
+
isOnlyOneItemCoincidence: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item | undefined>;
|
|
14
|
+
addSelectedPriceList: import("@angular/core").OutputEmitterRef<CbmPriceListModel.ListResponse.Data>;
|
|
15
|
+
open: import("@angular/core").OutputEmitterRef<void>;
|
|
16
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
17
|
+
addItem: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item | CbmAlternativeItemModel.ListChildrenResponse.Data.Item>;
|
|
18
|
+
addAllItems: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item[] | CbmAlternativeItemModel.ListChildrenResponse.Data.Item[]>;
|
|
19
|
+
isVisible: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
selectedItem: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item | null>;
|
|
21
|
+
constructor(itemRepository: CbmItemDomainRepository);
|
|
22
|
+
openModal(codeFilter?: string): void;
|
|
23
|
+
closeModal(): void;
|
|
24
|
+
getOneItemByCode(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PAGE_SIZE = 20;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CbmModalConfirmModel } from './types';
|
|
4
|
+
type TPosition = 'start' | 'center' | 'end';
|
|
5
|
+
export declare class CbmModalConfirmComponent {
|
|
6
|
+
private render2;
|
|
7
|
+
private destroyRef;
|
|
8
|
+
constructor(render2: Renderer2, destroyRef: DestroyRef);
|
|
9
|
+
modalId: import("@angular/core").InputSignal<string>;
|
|
10
|
+
size: import("@angular/core").InputSignal<string>;
|
|
11
|
+
position_x: import("@angular/core").InputSignal<TPosition>;
|
|
12
|
+
position_y: import("@angular/core").InputSignal<TPosition>;
|
|
13
|
+
text_btn_confirm: import("@angular/core").InputSignal<string>;
|
|
14
|
+
text_btn_cancel: import("@angular/core").InputSignal<string>;
|
|
15
|
+
protected params: import("@angular/core").WritableSignal<CbmModalConfirmModel.ParamsForOpen>;
|
|
16
|
+
protected modalRef: import("@angular/core").Signal<ElementRef<any>>;
|
|
17
|
+
protected contentRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
18
|
+
protected resolve$: Subject<'confirm' | 'cancel'> | null;
|
|
19
|
+
closeModal(): void;
|
|
20
|
+
private animationModal;
|
|
21
|
+
onConfirm(params: CbmModalConfirmModel.ParamsForOpen): Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class NgContentLoad implements OnInit {
|
|
3
|
+
private render2;
|
|
4
|
+
private elementRef;
|
|
5
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
6
|
+
constructor(render2: Renderer2, elementRef: ElementRef);
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CbmTreeSelect } from './types';
|
|
5
|
+
type NodesT<T> = T | T[] | CbmTreeSelect.Node<T> | CbmTreeSelect.Node<T>[] | null;
|
|
6
|
+
export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlValueAccessor {
|
|
7
|
+
private destroyRef;
|
|
8
|
+
private elementRef;
|
|
9
|
+
defaultCompareWith: (o1: NodesT<T>, o2: NodesT<T>) => boolean;
|
|
10
|
+
onChange: (value: any) => void;
|
|
11
|
+
onTouched: () => void;
|
|
12
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
13
|
+
options: import("@angular/core").InputSignal<CbmTreeSelect.Node<T> | CbmTreeSelect.Children<T>>;
|
|
14
|
+
isSmall: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
compareWith: import("@angular/core").InputSignal<(o1: T, o2: T) => boolean>;
|
|
17
|
+
typeahead: import("@angular/core").InputSignal<Subject<string> | undefined>;
|
|
18
|
+
invalid: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
returnNode: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
selectedAllNode: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
multiple: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
closeOnSelected: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
bindLabel: import("@angular/core").InputSignal<string>;
|
|
24
|
+
bindId: import("@angular/core").InputSignal<string>;
|
|
25
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
26
|
+
selectedNode: import("@angular/core").WritableSignal<NodesT<T>>;
|
|
27
|
+
selectedValue: import("@angular/core").WritableSignal<NodesT<T>>;
|
|
28
|
+
isExpanded: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
searchValue: import("@angular/core").WritableSignal<string | null>;
|
|
30
|
+
touched: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
inputSearchFocused: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
protected crytoId: `${string}-${string}-${string}-${string}-${string}`;
|
|
33
|
+
tree: import("@angular/core").Signal<CbmTreeSelect.Children<T>>;
|
|
34
|
+
searchControl: FormControl<string | null>;
|
|
35
|
+
getMultipleLabel: () => string[];
|
|
36
|
+
getLabel: (data: NodesT<T>) => string;
|
|
37
|
+
isNode: (data: unknown) => data is CbmTreeSelect.Node<T>;
|
|
38
|
+
constructor(destroyRef: DestroyRef, elementRef: ElementRef);
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
writeValue(value: any): void;
|
|
41
|
+
registerOnChange(fn: any): void;
|
|
42
|
+
registerOnTouched(fn: any): void;
|
|
43
|
+
setDisabledState(isDisabled: boolean): void;
|
|
44
|
+
markAsTouched(): void;
|
|
45
|
+
toggleExpanded(): void;
|
|
46
|
+
expandAndCollapse(icon: HTMLSpanElement, child: HTMLDivElement): void;
|
|
47
|
+
selectedByNode(node: CbmTreeSelect.Node<T>): void;
|
|
48
|
+
selected(container: HTMLDivElement, child: HTMLDivElement, node: CbmTreeSelect.Node<T>): void;
|
|
49
|
+
compare(node: NodesT<any>): boolean;
|
|
50
|
+
setValue(node: CbmTreeSelect.Node<T>): void;
|
|
51
|
+
removeSelected(idx: number): void;
|
|
52
|
+
private lastClickTime;
|
|
53
|
+
private clickTimeout;
|
|
54
|
+
handleButtonClick(event: MouseEvent): void;
|
|
55
|
+
openAndFocus(): void;
|
|
56
|
+
focusInput(): void;
|
|
57
|
+
protected onDocumentClick(event: MouseEvent): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -3,8 +3,8 @@ import { FormGroup, FormControl } from '@angular/forms';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmUserHistory } from '../../types';
|
|
5
5
|
import { EmailsModalComponent } from './emails-modal/emails-modal.component';
|
|
6
|
-
import { CbmHistoryModel } from '@models/history.domain.
|
|
7
|
-
import { CbmUserModel } from '@models/user.domain.
|
|
6
|
+
import { CbmHistoryModel } from '@models/history.domain.model';
|
|
7
|
+
import { CbmUserModel } from '@models/user.domain.model';
|
|
8
8
|
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
9
9
|
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
10
10
|
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
@@ -2,8 +2,8 @@ import { DestroyRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmUserHistory } from '../../types';
|
|
5
|
-
import { CbmHistoryModel } from '@models/history.domain.
|
|
6
|
-
import { CbmUserModel } from '@models/user.domain.
|
|
5
|
+
import { CbmHistoryModel } from '@models/history.domain.model';
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.model';
|
|
7
7
|
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
8
8
|
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
9
9
|
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
@@ -2,8 +2,8 @@ import { DestroyRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmUserHistory } from '../../types';
|
|
5
|
-
import { CbmHistoryModel } from '@models/history.domain.
|
|
6
|
-
import { CbmUserModel } from '@models/user.domain.
|
|
5
|
+
import { CbmHistoryModel } from '@models/history.domain.model';
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.model';
|
|
7
7
|
import { CbmHistoryDomainRepository } from '@repositories/history.domain.repository';
|
|
8
8
|
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
9
9
|
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FormControl, FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmUserHistory } from '../../types';
|
|
5
5
|
import { CbmSriHistoryModel } from '@models/sri-history.domain.model';
|
|
6
|
-
import { CbmUserModel } from '@models/user.domain.
|
|
6
|
+
import { CbmUserModel } from '@models/user.domain.model';
|
|
7
7
|
import { CbmSriHistoryDomainRepository } from '@repositories/sri-history.domain.repository';
|
|
8
8
|
import { CbmNotificationService } from '@services/notification/notification.service';
|
|
9
9
|
import { CbmUserDomainRepository } from '@repositories/user.domain.repository';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CbmUserHistory } from './types';
|
|
2
|
-
import { CbmHistoryModel } from '@models/history.domain.
|
|
2
|
+
import { CbmHistoryModel } from '@models/history.domain.model';
|
|
3
3
|
import { GeneralHistoryComponent } from './components/general-history/general-history.component';
|
|
4
4
|
import { PrintHistoryComponent } from './components/print-history/print-history.component';
|
|
5
5
|
import { EmailHistoryComponent } from './components/email-history/email-history.component';
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare namespace CbmAlternativeItemModel {
|
|
2
|
+
interface ListParentsResponse {
|
|
3
|
+
success: boolean;
|
|
4
|
+
data: ListParentsResponse.Data[];
|
|
5
|
+
}
|
|
6
|
+
namespace ListParentsResponse {
|
|
7
|
+
interface Data {
|
|
8
|
+
_id: string;
|
|
9
|
+
company_id: string;
|
|
10
|
+
company_branch_id: string;
|
|
11
|
+
category_id: string;
|
|
12
|
+
unit_measure_id: string;
|
|
13
|
+
tax_iva_id: string;
|
|
14
|
+
tax_iva_code: string;
|
|
15
|
+
code: string;
|
|
16
|
+
barcode: string;
|
|
17
|
+
name: string;
|
|
18
|
+
comment?: string;
|
|
19
|
+
iva: number;
|
|
20
|
+
cost: number;
|
|
21
|
+
automatic_code: boolean;
|
|
22
|
+
not_apply_discount_group: boolean;
|
|
23
|
+
batch_control: boolean;
|
|
24
|
+
series_control: boolean;
|
|
25
|
+
tax_ice: boolean;
|
|
26
|
+
tax_irbpn: boolean;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
created_user: string;
|
|
29
|
+
created_at: number;
|
|
30
|
+
unit_measure: Data.UnitMeasure;
|
|
31
|
+
purchases_unit_measure_id?: string;
|
|
32
|
+
sales_unit_measure_id?: string;
|
|
33
|
+
}
|
|
34
|
+
namespace Data {
|
|
35
|
+
interface UnitMeasure {
|
|
36
|
+
_id: string;
|
|
37
|
+
company_id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
code: string;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
created_at: number;
|
|
42
|
+
created_user: string;
|
|
43
|
+
disabled_reason: string;
|
|
44
|
+
updated_at: number;
|
|
45
|
+
updated_user: string;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
interface ListChildrenResponse {
|
|
50
|
+
success: boolean;
|
|
51
|
+
data: ListChildrenResponse.Data[];
|
|
52
|
+
}
|
|
53
|
+
namespace ListChildrenResponse {
|
|
54
|
+
interface Data {
|
|
55
|
+
_id: string;
|
|
56
|
+
item_id_parent: string;
|
|
57
|
+
item_id_child: string;
|
|
58
|
+
coincidence: number;
|
|
59
|
+
created_user: string;
|
|
60
|
+
created_at: number;
|
|
61
|
+
item: Data.Item;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
}
|
|
64
|
+
namespace Data {
|
|
65
|
+
interface Item {
|
|
66
|
+
_id: string;
|
|
67
|
+
code: string;
|
|
68
|
+
barcode: string;
|
|
69
|
+
name: string;
|
|
70
|
+
observation: string;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
interface ListParentsPaginatedParams {
|
|
75
|
+
page: number;
|
|
76
|
+
size: number;
|
|
77
|
+
name?: string;
|
|
78
|
+
}
|
|
79
|
+
interface ListParentsPaginatedResponse {
|
|
80
|
+
success: boolean;
|
|
81
|
+
pageNum: number;
|
|
82
|
+
pageSize: number;
|
|
83
|
+
pages: number;
|
|
84
|
+
total: number;
|
|
85
|
+
items: ListParentsPaginatedResponse.Item[];
|
|
86
|
+
}
|
|
87
|
+
namespace ListParentsPaginatedResponse {
|
|
88
|
+
interface Item {
|
|
89
|
+
_id: string;
|
|
90
|
+
category_id: string;
|
|
91
|
+
unit_measure_id: string;
|
|
92
|
+
tax_iva_id: string;
|
|
93
|
+
tax_iva_code: string;
|
|
94
|
+
code: string;
|
|
95
|
+
barcode: string;
|
|
96
|
+
name: string;
|
|
97
|
+
observation: string;
|
|
98
|
+
iva: number;
|
|
99
|
+
cost: number;
|
|
100
|
+
automatic_code: boolean;
|
|
101
|
+
not_apply_discount_group: boolean;
|
|
102
|
+
tax_ice: boolean;
|
|
103
|
+
tax_ice_code: null;
|
|
104
|
+
tax_ice_name: null;
|
|
105
|
+
tax_irbpn: boolean;
|
|
106
|
+
purchases_unit_measure_id: string;
|
|
107
|
+
sales_unit_measure_id: string;
|
|
108
|
+
manage_by: string;
|
|
109
|
+
unit_measure_group_indicator: boolean;
|
|
110
|
+
created_user: string;
|
|
111
|
+
deleted_at: number;
|
|
112
|
+
created_at: number;
|
|
113
|
+
updated_at?: number;
|
|
114
|
+
updated_user?: string;
|
|
115
|
+
unit_measure: Item.UnitMeasure;
|
|
116
|
+
company_id: string;
|
|
117
|
+
company_branch_id: string;
|
|
118
|
+
item_id: string;
|
|
119
|
+
enabled: boolean;
|
|
120
|
+
total_items: number;
|
|
121
|
+
}
|
|
122
|
+
namespace Item {
|
|
123
|
+
interface UnitMeasure {
|
|
124
|
+
name: string;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
interface GetOneResponse {
|
|
129
|
+
success: boolean;
|
|
130
|
+
data: GetOneResponse.Data;
|
|
131
|
+
}
|
|
132
|
+
namespace GetOneResponse {
|
|
133
|
+
interface Data {
|
|
134
|
+
_id?: string;
|
|
135
|
+
item_id_parent?: string;
|
|
136
|
+
item_id_child?: string;
|
|
137
|
+
coincidence?: number;
|
|
138
|
+
created_user?: string;
|
|
139
|
+
created_at?: number;
|
|
140
|
+
name?: string;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
interface SaveBody {
|
|
144
|
+
item_id: string;
|
|
145
|
+
alternative_items_detail?: SaveBody.Detail[];
|
|
146
|
+
}
|
|
147
|
+
namespace SaveBody {
|
|
148
|
+
interface Detail {
|
|
149
|
+
item_id_child?: string;
|
|
150
|
+
coincidence?: number;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
interface SaveBulkBody {
|
|
154
|
+
data: SaveBulkBody.Data[];
|
|
155
|
+
deleted_records?: string[];
|
|
156
|
+
}
|
|
157
|
+
namespace SaveBulkBody {
|
|
158
|
+
interface Data {
|
|
159
|
+
item_id_parent: string;
|
|
160
|
+
item_id_child: string;
|
|
161
|
+
coincidence: number;
|
|
162
|
+
_id?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
interface UpdateBody {
|
|
166
|
+
item_id?: string;
|
|
167
|
+
alternative_items_detail?: UpdateBody.Detail[];
|
|
168
|
+
deleted_records?: string[];
|
|
169
|
+
}
|
|
170
|
+
namespace UpdateBody {
|
|
171
|
+
interface Detail {
|
|
172
|
+
_id?: string;
|
|
173
|
+
item_id_child?: string;
|
|
174
|
+
coincidence?: number;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
interface UpdateBulkBody {
|
|
178
|
+
data: UpdateBulkBody.Data[];
|
|
179
|
+
deleted_records?: string[];
|
|
180
|
+
}
|
|
181
|
+
namespace UpdateBulkBody {
|
|
182
|
+
interface Data {
|
|
183
|
+
item_id_parent?: string;
|
|
184
|
+
item_id_child?: string;
|
|
185
|
+
coincidence?: number;
|
|
186
|
+
_id?: string;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
interface ChangeStatusBody {
|
|
190
|
+
enabled: boolean;
|
|
191
|
+
disabled_reason?: string;
|
|
192
|
+
}
|
|
193
|
+
interface ConfirmResponse {
|
|
194
|
+
success: boolean;
|
|
195
|
+
message: string;
|
|
196
|
+
data?: any;
|
|
197
|
+
}
|
|
198
|
+
}
|