@cbm-common/cbm-types 0.0.153 → 0.0.155
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/add-client/add-client.d.ts +3 -3
- package/lib/components/add-provider/add-provider.d.ts +7 -7
- package/lib/components/dropzone/dropzone.d.ts +2 -0
- package/lib/components/forbidden/forbidden.d.ts +8 -12
- 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 +31 -45
- package/lib/domain/models/cost-center.domain.model.d.ts +0 -27
- package/lib/domain/models/pending-document.domain.model.d.ts +92 -0
- package/lib/domain/repositories/cost-center.domain.repository.d.ts +0 -5
- package/lib/domain/repositories/pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +15 -0
- package/lib/domain/services/item/find-price-type.domain.service.d.ts +12 -0
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/cost-center.infrastructure.repository.d.ts +0 -5
- package/lib/infrastructure/repositories/pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/cost-center.infrastructure.service.d.ts +0 -5
- package/lib/infrastructure/services/pending-document.infrastructure.service.d.ts +9 -0
- package/lib/infrastructure/services/subscription.infrastructure.service.d.ts +2 -1
- 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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AfterViewInit, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { AsyncValidatorFn, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmClientGroupModel } from '../../domain/models/client-group.domain.model';
|
|
5
5
|
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
@@ -19,10 +19,10 @@ import { CbmPriceListDomainRepository } from '../../domain/repositories/price-li
|
|
|
19
19
|
import { CbmRateDomainRepository } from '../../domain/repositories/rate.domain.repository';
|
|
20
20
|
import { CbmSellerDomainRepository } from '../../domain/repositories/seller.domain.repository';
|
|
21
21
|
import { CbmSettingsProfessionsDomainRepository } from '../../domain/repositories/settings-professions.domain.repository';
|
|
22
|
+
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
22
23
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
23
24
|
import { CbmTreeSelect } from '../tree-select/types';
|
|
24
25
|
import { IPagination, TStatus } from './types';
|
|
25
|
-
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
26
26
|
export type TSaveOptions = 'new' | 'view' | 'close';
|
|
27
27
|
export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
28
28
|
private destroyRef;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { DestroyRef } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { ConfirmationModal } from '../confirmation-modal/confirmation-modal';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
5
4
|
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
6
5
|
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
6
|
+
import { CbmProviderGroupModel } from '../../domain/models/provider-group.domain.model';
|
|
7
7
|
import { CbmProviderModel } from '../../domain/models/provider.domain.model';
|
|
8
|
+
import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
|
|
9
|
+
import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
|
|
10
|
+
import { CbmDocumentTypeDomainRepository } from '../../domain/repositories/document-type.domain.repository';
|
|
11
|
+
import { CbmProviderCategoryDomainRepository } from '../../domain/repositories/provider-category.domain.repository';
|
|
12
|
+
import { CbmProviderGroupDomainRepository } from '../../domain/repositories/provider-group.domain.repository';
|
|
8
13
|
import { CbmProviderRepository } from '../../domain/repositories/provider.domain.repository';
|
|
9
14
|
import { CbmNotificationService } from '../../remotes/services.remote';
|
|
10
15
|
import { TSaveOptions } from '../add-client/add-client';
|
|
16
|
+
import { ConfirmationModal } from '../confirmation-modal/confirmation-modal';
|
|
11
17
|
import { CbmTreeSelect } from '../tree-select/types';
|
|
12
18
|
import { TStatus } from './types';
|
|
13
|
-
import { CbmDocumentTypeDomainRepository } from '../../domain/repositories/document-type.domain.repository';
|
|
14
|
-
import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
|
|
15
|
-
import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
|
|
16
|
-
import { CbmProviderGroupModel } from '../../domain/models/provider-group.domain.model';
|
|
17
|
-
import { CbmProviderGroupDomainRepository } from '../../domain/repositories/provider-group.domain.repository';
|
|
18
|
-
import { CbmProviderCategoryDomainRepository } from '../../domain/repositories/provider-category.domain.repository';
|
|
19
19
|
export declare class CbmAddProviderComponent {
|
|
20
20
|
private providerRepository;
|
|
21
21
|
private providerGroupRepository;
|
|
@@ -4,6 +4,8 @@ export declare class CbmDropzoneComponent {
|
|
|
4
4
|
files: import("@angular/core").InputSignal<File[]>;
|
|
5
5
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
6
6
|
darkMode: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
'loading-state': import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
loadingState: import("@angular/core").Signal<boolean>;
|
|
7
9
|
uplaodFile: import("@angular/core").OutputEmitterRef<FileList>;
|
|
8
10
|
dragover: import("@angular/core").WritableSignal<boolean>;
|
|
9
11
|
counter: import("@angular/core").WritableSignal<number>;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CanFormDirty } from '@cbm-common/guards-repository';
|
|
1
|
+
import { Title } from '@angular/platform-browser';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { CanFormDirty, CanLeaveRoute } from '@cbm-common/guards-repository';
|
|
5
4
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
6
|
-
|
|
7
|
-
export declare class CbmForbidden implements OnInit, CanFormDirty {
|
|
8
|
-
private readonly location;
|
|
5
|
+
export declare class CbmForbidden implements CanFormDirty, CanLeaveRoute {
|
|
9
6
|
private readonly router;
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(
|
|
7
|
+
private readonly title;
|
|
8
|
+
constructor(router: Router, title: Title);
|
|
12
9
|
disableGuard: boolean;
|
|
13
10
|
formDirty: () => boolean;
|
|
14
11
|
modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
15
|
-
|
|
12
|
+
onLeavingRoute(): void;
|
|
13
|
+
ruteTag: import("@angular/core").WritableSignal<string>;
|
|
16
14
|
protected goBack(): void;
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
setMetadata(metadata: CbmRecordDetailMetadataModel.metadata): void;
|
|
19
15
|
}
|
|
@@ -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,60 +1,46 @@
|
|
|
1
1
|
import { DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { CbmTreeSelect } from './types';
|
|
5
5
|
type NodesT<T> = T | T[] | CbmTreeSelect.Node<T> | CbmTreeSelect.Node<T>[] | null;
|
|
6
6
|
export declare class CbmTreeSelectComponent<T = any> implements OnInit, ControlValueAccessor {
|
|
7
|
-
private destroyRef;
|
|
8
|
-
|
|
9
|
-
|
|
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>;
|
|
7
|
+
private readonly destroyRef;
|
|
8
|
+
constructor(destroyRef: DestroyRef);
|
|
9
|
+
options: import("@angular/core").InputSignal<CbmTreeSelect.Children<T> | CbmTreeSelect.Node<T>>;
|
|
15
10
|
loading: import("@angular/core").InputSignal<boolean>;
|
|
16
|
-
|
|
17
|
-
typeahead: import("@angular/core").InputSignal<Subject<string> | undefined>;
|
|
11
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
18
12
|
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
13
|
bindLabel: import("@angular/core").InputSignal<string>;
|
|
24
14
|
bindId: import("@angular/core").InputSignal<string>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
protected
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
15
|
+
compareWith: import("@angular/core").InputSignal<((o1: T, o2: T) => boolean) | null>;
|
|
16
|
+
typeahead: import("@angular/core").InputSignal<Subject<string> | null>;
|
|
17
|
+
isSmall: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
protected inputPlaceholder: import("@angular/core").Signal<string>;
|
|
19
|
+
protected inputLoading: import("@angular/core").Signal<boolean>;
|
|
20
|
+
protected inputInvalid: import("@angular/core").Signal<boolean>;
|
|
21
|
+
protected inputBindId: import("@angular/core").Signal<string>;
|
|
22
|
+
protected inputBindLabel: import("@angular/core").Signal<string>;
|
|
23
|
+
protected containerRef: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
24
|
+
protected inputRef: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
25
|
+
protected optionsRef: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
26
|
+
focused: boolean;
|
|
27
|
+
protected signalFocused: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
searchTerm: string | null;
|
|
29
|
+
protected signalSearchTerm: import("@angular/core").WritableSignal<string | null>;
|
|
30
|
+
protected readonly notFound: {
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
protected inputOptions: import("@angular/core").WritableSignal<CbmTreeSelect.Children<T> | null>;
|
|
34
|
+
protected selectedNode: import("@angular/core").WritableSignal<NodesT<T>>;
|
|
35
|
+
protected selectedNodeLabel: import("@angular/core").Signal<any>;
|
|
36
|
+
onChange: (value: any) => void;
|
|
37
|
+
onTouched: () => void;
|
|
39
38
|
ngOnInit(): void;
|
|
40
|
-
writeValue(value: any): void;
|
|
41
39
|
registerOnChange(fn: any): void;
|
|
42
40
|
registerOnTouched(fn: any): void;
|
|
43
41
|
setDisabledState(isDisabled: boolean): void;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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;
|
|
42
|
+
writeValue(obj: any): void;
|
|
43
|
+
subOberservers(): void;
|
|
44
|
+
setValue(node: CbmTreeSelect.Node<T> | null): void;
|
|
59
45
|
}
|
|
60
46
|
export {};
|
|
@@ -41,24 +41,6 @@ export declare namespace CbmCostCenterModel {
|
|
|
41
41
|
_id?: string;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
interface SaveBody {
|
|
45
|
-
code: string;
|
|
46
|
-
code_manual?: string;
|
|
47
|
-
name: string;
|
|
48
|
-
description: string;
|
|
49
|
-
code_father: string;
|
|
50
|
-
level: number;
|
|
51
|
-
move: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface UpdateBody {
|
|
54
|
-
code?: string;
|
|
55
|
-
code_manual?: string;
|
|
56
|
-
name?: string;
|
|
57
|
-
description?: string;
|
|
58
|
-
code_father?: string;
|
|
59
|
-
level?: number;
|
|
60
|
-
move?: boolean;
|
|
61
|
-
}
|
|
62
44
|
interface GetOneResponse {
|
|
63
45
|
success: boolean;
|
|
64
46
|
data: GetOneResponse.Data;
|
|
@@ -99,13 +81,4 @@ export declare namespace CbmCostCenterModel {
|
|
|
99
81
|
_id?: string;
|
|
100
82
|
}
|
|
101
83
|
}
|
|
102
|
-
interface ChangeStatusBody {
|
|
103
|
-
enabled: boolean;
|
|
104
|
-
disabled_reason?: string;
|
|
105
|
-
}
|
|
106
|
-
interface ConfirmResponse {
|
|
107
|
-
success: boolean;
|
|
108
|
-
message: string;
|
|
109
|
-
data?: any;
|
|
110
|
-
}
|
|
111
84
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare namespace CbmPendingDocumentModel {
|
|
2
|
+
type TTypeEstablishment = 'matrix' | 'branch';
|
|
3
|
+
export interface ListParams {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
document_number?: string;
|
|
7
|
+
date_end?: number;
|
|
8
|
+
date_begin?: number;
|
|
9
|
+
client_id?: string;
|
|
10
|
+
client_branch_id?: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ListResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
pageNum: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
pages: number;
|
|
18
|
+
total: number;
|
|
19
|
+
totales: ListResponse.totales;
|
|
20
|
+
items: ListResponse.Item[];
|
|
21
|
+
}
|
|
22
|
+
export namespace ListResponse {
|
|
23
|
+
interface Item {
|
|
24
|
+
_id: string;
|
|
25
|
+
created_at: number;
|
|
26
|
+
document_nomenclature: string;
|
|
27
|
+
document_number: string;
|
|
28
|
+
document_emission_point_number: string;
|
|
29
|
+
document_sequence: string;
|
|
30
|
+
new_document_number: string;
|
|
31
|
+
balance: number;
|
|
32
|
+
client_id: string;
|
|
33
|
+
client_payment_deadline?: number;
|
|
34
|
+
client_credit_limit?: number;
|
|
35
|
+
client_business_name: string;
|
|
36
|
+
client_trade_name: string;
|
|
37
|
+
client_document_number: string;
|
|
38
|
+
client_credit_application: boolean;
|
|
39
|
+
client_price_list_id: string;
|
|
40
|
+
client_price_list_code: string;
|
|
41
|
+
client_price_list_name: string;
|
|
42
|
+
client_document_type_id: string;
|
|
43
|
+
client_document_type_name: string;
|
|
44
|
+
client_document_type_code: string;
|
|
45
|
+
client_category_id: string;
|
|
46
|
+
client_category_name: string;
|
|
47
|
+
client_branch_id: string;
|
|
48
|
+
client_branch_code: string;
|
|
49
|
+
client_branch_name: string;
|
|
50
|
+
client_branch_address: string;
|
|
51
|
+
client_branch_email: string[];
|
|
52
|
+
client_branch_phone_code?: string;
|
|
53
|
+
client_branch_phone?: string;
|
|
54
|
+
client_branch_cellphone?: string;
|
|
55
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
56
|
+
client_branch_province_id?: string;
|
|
57
|
+
client_branch_province_code?: string;
|
|
58
|
+
client_branch_province_name?: string;
|
|
59
|
+
client_branch_canton_id?: string;
|
|
60
|
+
client_branch_canton_code?: string;
|
|
61
|
+
client_branch_canton_name?: string;
|
|
62
|
+
client_branch_parish_id?: string;
|
|
63
|
+
client_branch_parish_code?: string;
|
|
64
|
+
client_branch_parish_name?: string;
|
|
65
|
+
client_branch_longitude?: number;
|
|
66
|
+
client_branch_latitude?: number;
|
|
67
|
+
client_branch_seller_id: string;
|
|
68
|
+
client_branch_seller_identification_number: string;
|
|
69
|
+
client_branch_seller_full_name: string;
|
|
70
|
+
client_branch_seller_address: string;
|
|
71
|
+
client_branch_seller_email: string[];
|
|
72
|
+
client_branch_seller_cellphone: string;
|
|
73
|
+
client_branch_contact_id?: string;
|
|
74
|
+
client_branch_contact_identification_number?: string;
|
|
75
|
+
client_branch_contact_full_name?: string;
|
|
76
|
+
client_branch_contact_cellphone?: string;
|
|
77
|
+
client_branch_contact_email?: string[];
|
|
78
|
+
date: number;
|
|
79
|
+
type: string;
|
|
80
|
+
checked?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface totales {
|
|
83
|
+
total_retention?: number;
|
|
84
|
+
total_down_payment?: number;
|
|
85
|
+
total_credit_note?: number;
|
|
86
|
+
total_initial_balance_retention?: number;
|
|
87
|
+
total_initial_balance_down_payment?: number;
|
|
88
|
+
total_initial_balance_credit_note?: number;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
92
|
+
}
|
|
@@ -6,9 +6,4 @@ export declare class CbmCostCenterRepository implements ICbmCostCenterRepository
|
|
|
6
6
|
constructor(service: ICbmCostCenterRepository);
|
|
7
7
|
list(params: CbmCostCenterModel.ListParams): Observable<CbmCostCenterModel.ListResponse>;
|
|
8
8
|
getOne(id: string): Observable<CbmCostCenterModel.GetOneResponse>;
|
|
9
|
-
save(data: CbmCostCenterModel.SaveBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
10
|
-
update(id: string, data: CbmCostCenterModel.UpdateBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
11
|
-
changeStatus(id: string, data: CbmCostCenterModel.ChangeStatusBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
12
|
-
delete(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
13
|
-
restore(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
14
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmPendingDocumentModel } from '../models/pending-document.domain.model';
|
|
3
|
+
import { ICbmPendingDocumentRepository } from '../../infrastructure/repositories/pending-document.infrastructure.repository';
|
|
4
|
+
export declare class CbmPendingDocumentRepository implements ICbmPendingDocumentRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmPendingDocumentRepository);
|
|
7
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DestroyRef } from "@angular/core";
|
|
2
|
+
import { FormControl } from "@angular/forms";
|
|
3
|
+
import { CbmItemModel } from "@cbm-common/cbm-types";
|
|
4
|
+
import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
|
|
5
|
+
import { CbmNotificationService } from "../notification/notification.service";
|
|
6
|
+
export declare class FindItemCodeService {
|
|
7
|
+
private readonly destroyRef;
|
|
8
|
+
private readonly itemRepository;
|
|
9
|
+
private readonly notificationService;
|
|
10
|
+
private readonly codeControl;
|
|
11
|
+
private readonly itemControl;
|
|
12
|
+
constructor(destroyRef: DestroyRef, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, codeControl: FormControl<string>, itemControl: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>);
|
|
13
|
+
loading: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
findCode(code?: string): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DestroyRef } from "@angular/core";
|
|
2
|
+
import { FormControl } from "@angular/forms";
|
|
3
|
+
import { IGetPriceTypeParams, IPriceTypeExec } from "../../../types/price-type.fn";
|
|
4
|
+
import { CbmSalePriceModel } from "../../models/sale-price.domain.model";
|
|
5
|
+
export declare class FindPriceTypeService {
|
|
6
|
+
private readonly destroyRef;
|
|
7
|
+
private readonly controlPriceType;
|
|
8
|
+
private readonly controls;
|
|
9
|
+
private readonly params;
|
|
10
|
+
constructor(destroyRef: DestroyRef, controlPriceType: FormControl<Partial<CbmSalePriceModel.GetResponse.Data> | null>, controls: Omit<IPriceTypeExec, 'controlPriceType'>, params: IGetPriceTypeParams);
|
|
11
|
+
subObserver(): void;
|
|
12
|
+
}
|
|
@@ -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,9 +3,4 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
export interface ICbmCostCenterRepository {
|
|
4
4
|
list(params: CbmCostCenterModel.ListParams): Observable<CbmCostCenterModel.ListResponse>;
|
|
5
5
|
getOne(id: string): Observable<CbmCostCenterModel.GetOneResponse>;
|
|
6
|
-
save(data: CbmCostCenterModel.SaveBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
7
|
-
update(id: string, data: CbmCostCenterModel.UpdateBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
8
|
-
changeStatus(id: string, data: CbmCostCenterModel.ChangeStatusBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
9
|
-
delete(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
10
|
-
restore(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
11
6
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmPendingDocumentModel } from '../../domain/models/pending-document.domain.model';
|
|
3
|
+
export interface ICbmPendingDocumentRepository {
|
|
4
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -8,9 +8,4 @@ export declare class CbmCostCenterService implements ICbmCostCenterRepository {
|
|
|
8
8
|
private readonly url;
|
|
9
9
|
list(params: CbmCostCenterModel.ListParams): Observable<CbmCostCenterModel.ListResponse>;
|
|
10
10
|
getOne(id: string): Observable<CbmCostCenterModel.GetOneResponse>;
|
|
11
|
-
save(data: CbmCostCenterModel.SaveBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
12
|
-
update(id: string, data: CbmCostCenterModel.UpdateBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
13
|
-
changeStatus(id: string, data: CbmCostCenterModel.ChangeStatusBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
14
|
-
delete(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
15
|
-
restore(id: string): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
16
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmPendingDocumentModel } from '../../domain/models/pending-document.domain.model';
|
|
4
|
+
export declare class CbmPendingDocumentService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmPendingDocumentModel.ListParams): Observable<CbmPendingDocumentModel.ListResponse>;
|
|
9
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { CbmSubscriptionModel } from "../../domain/models/subscription.domain.model";
|
|
3
3
|
import { HttpClient } from "@angular/common/http";
|
|
4
|
-
|
|
4
|
+
import { ICbmSubscriptionRepository } from "../repositories/subscription.infrastructure.repository";
|
|
5
|
+
export declare class CbmSubscriptionService implements ICbmSubscriptionRepository {
|
|
5
6
|
private http;
|
|
6
7
|
constructor(http: HttpClient);
|
|
7
8
|
private readonly url;
|