@cbm-common/cbm-types 0.0.36 → 0.0.37
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/relationship-map/components/map-node/map-node.component.d.ts +18 -0
- package/lib/components/relationship-map/components/map-node-parent/map-node-parent.component.d.ts +31 -0
- package/lib/components/relationship-map/components/map-node-tree/map-node-tree.component.d.ts +31 -0
- package/lib/components/relationship-map/components/parent-tree-by-tab/parent-tree-by-tab.component.d.ts +75 -0
- package/lib/components/relationship-map/components/relationship-tree-by-tab/relationship-tree-by-tab.component.d.ts +74 -0
- package/lib/components/relationship-map/components/tab-item/tab-item.component.d.ts +5 -0
- package/lib/components/relationship-map/components/tabs/tabs.component.d.ts +7 -0
- package/lib/components/relationship-map/constants.d.ts +1 -0
- package/lib/components/relationship-map/relationship-map.d.ts +11 -0
- package/lib/components/relationship-map/types.d.ts +5 -0
- package/lib/domain/models/account.domain.model.d.ts +144 -144
- package/lib/domain/models/payment-term-repository.domain.model.d.ts +38 -38
- package/lib/domain/models/sequence.domain.model.d.ts +21 -21
- package/lib/domain/models/tax-iva.domain.model.d.ts +78 -78
- package/lib/domain/repositories/account.domain.repository.d.ts +21 -21
- package/lib/domain/repositories/payment-term.domain.repository.d.ts +10 -10
- package/lib/domain/repositories/sequence.domain.repository.d.ts +9 -9
- package/lib/domain/repositories/tax-iva.domain.repository.d.ts +14 -14
- package/lib/infrastructure/repositories/account.infrastructure.repository.d.ts +17 -17
- package/lib/infrastructure/repositories/payment-term.infrastructure.repository.d.ts +6 -6
- package/lib/infrastructure/repositories/sequence.infrastructure.repository.d.ts +5 -5
- package/lib/infrastructure/repositories/tax-iva.infrastructure.repository.d.ts +10 -10
- package/lib/infrastructure/services/account.infrastructure.service.d.ts +20 -20
- package/lib/infrastructure/services/payment-term.infrastructure.service.d.ts +10 -10
- package/lib/infrastructure/services/sequence.infrastructe.service.d.ts +9 -9
- package/lib/infrastructure/services/tax-iva.infrastructure.service.d.ts +14 -14
- package/lib/remotes/components.remote.d.ts +1 -0
- package/lib/remotes/repositories/account.repository.d.ts +3 -0
- package/lib/remotes/repositories/payment-term.repository.d.ts +3 -0
- package/lib/remotes/repositories/sequence.repository.d.ts +3 -0
- package/lib/remotes/repositories/tax-iva.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type TMap = 'relationship' | 'parent';
|
|
2
|
+
export declare class MapNodeComponent {
|
|
3
|
+
top: import("@angular/core").InputSignal<number>;
|
|
4
|
+
left: import("@angular/core").InputSignal<number>;
|
|
5
|
+
zoom: import("@angular/core").InputSignal<number>;
|
|
6
|
+
data: import("@angular/core").InputSignal<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
7
|
+
type: import("@angular/core").InputSignal<TMap>;
|
|
8
|
+
reverse: import("@angular/core").InputSignal<boolean | undefined>;
|
|
9
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}>;
|
|
12
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
13
|
+
drag: import("@angular/core").OutputEmitterRef<{
|
|
14
|
+
dx: number;
|
|
15
|
+
dy: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
package/lib/components/relationship-map/components/map-node-parent/map-node-parent.component.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
interface IPosition {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
dx: number;
|
|
6
|
+
dy: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class MapNodeParentComponent {
|
|
9
|
+
top: import("@angular/core").InputSignal<number>;
|
|
10
|
+
left: import("@angular/core").InputSignal<number>;
|
|
11
|
+
zoom: import("@angular/core").InputSignal<number>;
|
|
12
|
+
data: import("@angular/core").InputSignal<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
13
|
+
reverse: import("@angular/core").InputSignal<boolean | undefined>;
|
|
14
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
}>;
|
|
17
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
18
|
+
drag: import("@angular/core").OutputEmitterRef<{
|
|
19
|
+
dx: number;
|
|
20
|
+
dy: number;
|
|
21
|
+
}>;
|
|
22
|
+
nodeRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
23
|
+
position: import("@angular/core").WritableSignal<IPosition>;
|
|
24
|
+
collapsed: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
MAP_NODE_WIDTH: number;
|
|
26
|
+
onMouseDown(event: MouseEvent): void;
|
|
27
|
+
onMouseMove: (event: MouseEvent) => void;
|
|
28
|
+
onMouseUp: (event: MouseEvent) => void;
|
|
29
|
+
toggleCollapsed(): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
interface IPosition {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
dx: number;
|
|
6
|
+
dy: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class MapNodeTreeComponent {
|
|
9
|
+
top: import("@angular/core").InputSignal<number>;
|
|
10
|
+
left: import("@angular/core").InputSignal<number>;
|
|
11
|
+
zoom: import("@angular/core").InputSignal<number>;
|
|
12
|
+
data: import("@angular/core").InputSignal<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
13
|
+
reverse: import("@angular/core").InputSignal<boolean | undefined>;
|
|
14
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
}>;
|
|
17
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
18
|
+
drag: import("@angular/core").OutputEmitterRef<{
|
|
19
|
+
dx: number;
|
|
20
|
+
dy: number;
|
|
21
|
+
}>;
|
|
22
|
+
nodeRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
23
|
+
position: import("@angular/core").WritableSignal<IPosition>;
|
|
24
|
+
collapsed: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
MAP_NODE_WIDTH: number;
|
|
26
|
+
onMouseDown(event: MouseEvent): void;
|
|
27
|
+
onMouseMove: (event: MouseEvent) => void;
|
|
28
|
+
onMouseUp: (event: MouseEvent) => void;
|
|
29
|
+
toggleCollapsed(): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { OnChanges, ElementRef, DestroyRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { CbmDocumentReferenceModel } from "../../../../domain/models/document-reference.domain.model";
|
|
3
|
+
import { CbmNotificationService } from "../../../../remotes/services.remote";
|
|
4
|
+
import { IPoint, TStatus } from "../../types";
|
|
5
|
+
import { CbmDocumentReferenceDomainRepository } from "../../../../domain/repositories/document-reference.domain.repository";
|
|
6
|
+
interface IMapNode {
|
|
7
|
+
data: CbmDocumentReferenceModel.RelationshipTreeResponse;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
joinPoints: IPoint[];
|
|
11
|
+
}
|
|
12
|
+
interface IViewport {
|
|
13
|
+
offset: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
zoom: number;
|
|
18
|
+
}
|
|
19
|
+
interface ILine {
|
|
20
|
+
rect: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
start: IPoint;
|
|
27
|
+
end: IPoint;
|
|
28
|
+
path?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class ParentTreeByTabComponent implements OnChanges {
|
|
31
|
+
private documentReferenceRepository;
|
|
32
|
+
private notificationService;
|
|
33
|
+
private destroyRef;
|
|
34
|
+
data: CbmDocumentReferenceModel.ParentTreeResponse[];
|
|
35
|
+
collectionId: import("@angular/core").InputSignal<string>;
|
|
36
|
+
collectionName: import("@angular/core").InputSignal<string>;
|
|
37
|
+
eventModule: import("@angular/core").InputSignal<string>;
|
|
38
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
}>;
|
|
41
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
42
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
43
|
+
mapData: import("@angular/core").WritableSignal<CbmDocumentReferenceModel.ParentTreeResponse | null>;
|
|
44
|
+
layerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
45
|
+
statusOfFetchParentMap: import("@angular/core").WritableSignal<TStatus>;
|
|
46
|
+
viewport: import("@angular/core").WritableSignal<IViewport>;
|
|
47
|
+
isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
48
|
+
mapNodes: import("@angular/core").WritableSignal<IMapNode[]>;
|
|
49
|
+
lines: import("@angular/core").WritableSignal<ILine[]>;
|
|
50
|
+
private lastTouchDistance;
|
|
51
|
+
private isTouching;
|
|
52
|
+
private lastTouchX;
|
|
53
|
+
private lastTouchY;
|
|
54
|
+
JOIN_STROKE_WIDTH: number;
|
|
55
|
+
constructor(documentReferenceRepository: CbmDocumentReferenceDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
56
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
57
|
+
renderMap(): void;
|
|
58
|
+
onMouseDown(): void;
|
|
59
|
+
onMouseUp(): void;
|
|
60
|
+
onMouseMove(event: MouseEvent): void;
|
|
61
|
+
distance(start: IPoint, end: IPoint): number;
|
|
62
|
+
calculatePath(line: ILine): string;
|
|
63
|
+
onNodeDrag({ dx, dy }: {
|
|
64
|
+
dx: number;
|
|
65
|
+
dy: number;
|
|
66
|
+
}, mapNode: IMapNode): void;
|
|
67
|
+
fetchParentMap(): void;
|
|
68
|
+
concatDocuments(documents: CbmDocumentReferenceModel.ParentTreeResponse[]): CbmDocumentReferenceModel.ParentTreeResponse;
|
|
69
|
+
getNoteData(data: CbmDocumentReferenceModel.ParentTreeResponse): void;
|
|
70
|
+
private getTouchDistance;
|
|
71
|
+
onTouchStart(event: TouchEvent): void;
|
|
72
|
+
onTouchMove(event: TouchEvent): void;
|
|
73
|
+
onTouchEnd(): void;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CbmDocumentReferenceModel } from '../../../../domain/models/document-reference.domain.model';
|
|
3
|
+
import { IPoint, TStatus } from '../../types';
|
|
4
|
+
import { CbmDocumentReferenceDomainRepository } from '../../../../domain/repositories/document-reference.domain.repository';
|
|
5
|
+
import { CbmNotificationService } from '../../../../remotes/services.remote';
|
|
6
|
+
interface IMapNode {
|
|
7
|
+
data: CbmDocumentReferenceModel.RelationshipTreeResponse;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
joinPoints: IPoint[];
|
|
11
|
+
}
|
|
12
|
+
interface IViewport {
|
|
13
|
+
offset: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
zoom: number;
|
|
18
|
+
}
|
|
19
|
+
interface ILine {
|
|
20
|
+
rect: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
start: IPoint;
|
|
27
|
+
end: IPoint;
|
|
28
|
+
path?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class RelationshipTreeByTabComponent implements OnChanges {
|
|
31
|
+
private documentReferenceRepository;
|
|
32
|
+
private notificationService;
|
|
33
|
+
private destroyRef;
|
|
34
|
+
collectionId: import("@angular/core").InputSignal<string>;
|
|
35
|
+
collectionName: import("@angular/core").InputSignal<string>;
|
|
36
|
+
eventModule: import("@angular/core").InputSignal<string>;
|
|
37
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
}>;
|
|
40
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
41
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
42
|
+
mapData: import("@angular/core").WritableSignal<CbmDocumentReferenceModel.RelationshipTreeResponse | null>;
|
|
43
|
+
layerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
44
|
+
statusOfFetchRelationshipMap: import("@angular/core").WritableSignal<TStatus>;
|
|
45
|
+
viewport: import("@angular/core").WritableSignal<IViewport>;
|
|
46
|
+
isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
47
|
+
mapNodes: import("@angular/core").WritableSignal<IMapNode[]>;
|
|
48
|
+
lines: import("@angular/core").WritableSignal<ILine[]>;
|
|
49
|
+
private lastTouchDistance;
|
|
50
|
+
JOIN_STROKE_WIDTH: number;
|
|
51
|
+
constructor(documentReferenceRepository: CbmDocumentReferenceDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
52
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
53
|
+
renderMap(): void;
|
|
54
|
+
onMouseDown(): void;
|
|
55
|
+
onMouseUp(): void;
|
|
56
|
+
onMouseMove(event: MouseEvent): void;
|
|
57
|
+
distance(start: IPoint, end: IPoint): number;
|
|
58
|
+
calculatePath(line: ILine): string;
|
|
59
|
+
onNodeDrag({ dx, dy }: {
|
|
60
|
+
dx: number;
|
|
61
|
+
dy: number;
|
|
62
|
+
}, mapNode: IMapNode): void;
|
|
63
|
+
fetchRelationshipMap(): void;
|
|
64
|
+
concatDocuments(documents: CbmDocumentReferenceModel.RelationshipTreeResponse[]): CbmDocumentReferenceModel.RelationshipTreeResponse;
|
|
65
|
+
getNoteData(data: CbmDocumentReferenceModel.RelationshipTreeResponse): void;
|
|
66
|
+
private lastTouchX;
|
|
67
|
+
private lastTouchY;
|
|
68
|
+
private isTouching;
|
|
69
|
+
private getTouchDistance;
|
|
70
|
+
onTouchStart(event: TouchEvent): void;
|
|
71
|
+
onTouchMove(event: TouchEvent): void;
|
|
72
|
+
onTouchEnd(): void;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TabItemComponent } from '../tab-item/tab-item.component';
|
|
3
|
+
export declare class TabsComponent implements AfterContentInit {
|
|
4
|
+
tabs: import("@angular/core").Signal<readonly TabItemComponent[]>;
|
|
5
|
+
activeTab: import("@angular/core").WritableSignal<TabItemComponent | null>;
|
|
6
|
+
ngAfterContentInit(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAP_NODE_WIDTH = 290;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CbmDocumentReferenceModel } from '../../domain/models/document-reference.domain.model';
|
|
2
|
+
export declare class CbmRelationshipMapComponent {
|
|
3
|
+
collectionOriginId: import("@angular/core").InputSignal<string>;
|
|
4
|
+
collectionOriginName: import("@angular/core").InputSignal<string>;
|
|
5
|
+
eventModuleOrigin: import("@angular/core").InputSignal<string>;
|
|
6
|
+
labelTypeTransaction: import("@angular/core").InputSignal<{
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
}>;
|
|
9
|
+
nodeData: import("@angular/core").OutputEmitterRef<CbmDocumentReferenceModel.RelationshipTreeResponse>;
|
|
10
|
+
tab: import("@angular/core").OutputEmitterRef<string>;
|
|
11
|
+
}
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
export declare namespace CbmAccountModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
account_group?: string;
|
|
4
|
-
move?: boolean;
|
|
5
|
-
filter?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ListResponse {
|
|
8
|
-
success: boolean;
|
|
9
|
-
data: ListResponse.Data[];
|
|
10
|
-
}
|
|
11
|
-
namespace ListResponse {
|
|
12
|
-
interface Data {
|
|
13
|
-
_id: string;
|
|
14
|
-
company_id: string;
|
|
15
|
-
code: string;
|
|
16
|
-
name: string;
|
|
17
|
-
code_father: string;
|
|
18
|
-
level: number;
|
|
19
|
-
move: boolean;
|
|
20
|
-
confidential: boolean;
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
created_at: number;
|
|
23
|
-
created_user: string;
|
|
24
|
-
type: string;
|
|
25
|
-
delete: boolean;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
interface ListPaginatedParams {
|
|
29
|
-
size: number;
|
|
30
|
-
page: number;
|
|
31
|
-
account_group_id?: string;
|
|
32
|
-
move?: boolean;
|
|
33
|
-
filter?: string;
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
number_of_groups?: string[];
|
|
36
|
-
}
|
|
37
|
-
interface ListPaginatedResponse {
|
|
38
|
-
success: boolean;
|
|
39
|
-
pageNum: string;
|
|
40
|
-
pageSize: string;
|
|
41
|
-
pages: number;
|
|
42
|
-
total: number;
|
|
43
|
-
items: ListPaginatedResponse.Item[];
|
|
44
|
-
}
|
|
45
|
-
namespace ListPaginatedResponse {
|
|
46
|
-
interface Item {
|
|
47
|
-
_id: string;
|
|
48
|
-
account_group_id: string;
|
|
49
|
-
company_id: string;
|
|
50
|
-
code: string;
|
|
51
|
-
name: string;
|
|
52
|
-
code_father: string;
|
|
53
|
-
level: number;
|
|
54
|
-
move: boolean;
|
|
55
|
-
confidential: boolean;
|
|
56
|
-
description: string;
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
created_user: string;
|
|
59
|
-
created_at: number;
|
|
60
|
-
name_code_father: string;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
interface GetOneResponse {
|
|
64
|
-
success: boolean;
|
|
65
|
-
data: GetOneResponse.Data;
|
|
66
|
-
}
|
|
67
|
-
namespace GetOneResponse {
|
|
68
|
-
interface Data {
|
|
69
|
-
_id: string;
|
|
70
|
-
company_id?: string;
|
|
71
|
-
code?: string;
|
|
72
|
-
name?: string;
|
|
73
|
-
code_father?: string;
|
|
74
|
-
level?: number;
|
|
75
|
-
move?: boolean;
|
|
76
|
-
confidential?: boolean;
|
|
77
|
-
enabled?: boolean;
|
|
78
|
-
created_at?: number;
|
|
79
|
-
created_user?: string;
|
|
80
|
-
account_group_id?: string;
|
|
81
|
-
description?: string;
|
|
82
|
-
disabled_reason: string;
|
|
83
|
-
updated_at: number;
|
|
84
|
-
updated_user: string;
|
|
85
|
-
user_inactive_at: number;
|
|
86
|
-
user_inactive_id: string;
|
|
87
|
-
user_inactive_name: string;
|
|
88
|
-
type: string;
|
|
89
|
-
name_code_father: string;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
interface GetOneByCodeResponse {
|
|
93
|
-
success: boolean;
|
|
94
|
-
data: GetOneByCodeResponse.Data;
|
|
95
|
-
}
|
|
96
|
-
namespace GetOneByCodeResponse {
|
|
97
|
-
interface Data {
|
|
98
|
-
_id: string;
|
|
99
|
-
account_group_id?: string;
|
|
100
|
-
company_id?: string;
|
|
101
|
-
code?: string;
|
|
102
|
-
name?: string;
|
|
103
|
-
code_father?: string;
|
|
104
|
-
level?: number;
|
|
105
|
-
move?: boolean;
|
|
106
|
-
confidential?: boolean;
|
|
107
|
-
description?: string;
|
|
108
|
-
enabled?: boolean;
|
|
109
|
-
created_user?: string;
|
|
110
|
-
created_at?: number;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
interface SaveBody {
|
|
114
|
-
group_countable_id: string;
|
|
115
|
-
company_id: string;
|
|
116
|
-
code: string;
|
|
117
|
-
name: string;
|
|
118
|
-
code_father: string;
|
|
119
|
-
level: number;
|
|
120
|
-
move: boolean;
|
|
121
|
-
confidential: boolean;
|
|
122
|
-
description: string;
|
|
123
|
-
}
|
|
124
|
-
interface UpdateBody {
|
|
125
|
-
group_countable_id?: string;
|
|
126
|
-
company_id?: string;
|
|
127
|
-
code?: string;
|
|
128
|
-
name?: string;
|
|
129
|
-
code_father?: string;
|
|
130
|
-
level?: number;
|
|
131
|
-
move?: boolean;
|
|
132
|
-
confidential?: boolean;
|
|
133
|
-
description?: string;
|
|
134
|
-
}
|
|
135
|
-
interface ChangeStatusBody {
|
|
136
|
-
enabled: boolean;
|
|
137
|
-
disabled_reason?: string;
|
|
138
|
-
}
|
|
139
|
-
interface ConfirmResponse {
|
|
140
|
-
success: boolean;
|
|
141
|
-
message: string;
|
|
142
|
-
data?: any;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
1
|
+
export declare namespace CbmAccountModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
account_group?: string;
|
|
4
|
+
move?: boolean;
|
|
5
|
+
filter?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
code: string;
|
|
16
|
+
name: string;
|
|
17
|
+
code_father: string;
|
|
18
|
+
level: number;
|
|
19
|
+
move: boolean;
|
|
20
|
+
confidential: boolean;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
created_at: number;
|
|
23
|
+
created_user: string;
|
|
24
|
+
type: string;
|
|
25
|
+
delete: boolean;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
interface ListPaginatedParams {
|
|
29
|
+
size: number;
|
|
30
|
+
page: number;
|
|
31
|
+
account_group_id?: string;
|
|
32
|
+
move?: boolean;
|
|
33
|
+
filter?: string;
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
number_of_groups?: string[];
|
|
36
|
+
}
|
|
37
|
+
interface ListPaginatedResponse {
|
|
38
|
+
success: boolean;
|
|
39
|
+
pageNum: string;
|
|
40
|
+
pageSize: string;
|
|
41
|
+
pages: number;
|
|
42
|
+
total: number;
|
|
43
|
+
items: ListPaginatedResponse.Item[];
|
|
44
|
+
}
|
|
45
|
+
namespace ListPaginatedResponse {
|
|
46
|
+
interface Item {
|
|
47
|
+
_id: string;
|
|
48
|
+
account_group_id: string;
|
|
49
|
+
company_id: string;
|
|
50
|
+
code: string;
|
|
51
|
+
name: string;
|
|
52
|
+
code_father: string;
|
|
53
|
+
level: number;
|
|
54
|
+
move: boolean;
|
|
55
|
+
confidential: boolean;
|
|
56
|
+
description: string;
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
created_user: string;
|
|
59
|
+
created_at: number;
|
|
60
|
+
name_code_father: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
interface GetOneResponse {
|
|
64
|
+
success: boolean;
|
|
65
|
+
data: GetOneResponse.Data;
|
|
66
|
+
}
|
|
67
|
+
namespace GetOneResponse {
|
|
68
|
+
interface Data {
|
|
69
|
+
_id: string;
|
|
70
|
+
company_id?: string;
|
|
71
|
+
code?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
code_father?: string;
|
|
74
|
+
level?: number;
|
|
75
|
+
move?: boolean;
|
|
76
|
+
confidential?: boolean;
|
|
77
|
+
enabled?: boolean;
|
|
78
|
+
created_at?: number;
|
|
79
|
+
created_user?: string;
|
|
80
|
+
account_group_id?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
disabled_reason: string;
|
|
83
|
+
updated_at: number;
|
|
84
|
+
updated_user: string;
|
|
85
|
+
user_inactive_at: number;
|
|
86
|
+
user_inactive_id: string;
|
|
87
|
+
user_inactive_name: string;
|
|
88
|
+
type: string;
|
|
89
|
+
name_code_father: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
interface GetOneByCodeResponse {
|
|
93
|
+
success: boolean;
|
|
94
|
+
data: GetOneByCodeResponse.Data;
|
|
95
|
+
}
|
|
96
|
+
namespace GetOneByCodeResponse {
|
|
97
|
+
interface Data {
|
|
98
|
+
_id: string;
|
|
99
|
+
account_group_id?: string;
|
|
100
|
+
company_id?: string;
|
|
101
|
+
code?: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
code_father?: string;
|
|
104
|
+
level?: number;
|
|
105
|
+
move?: boolean;
|
|
106
|
+
confidential?: boolean;
|
|
107
|
+
description?: string;
|
|
108
|
+
enabled?: boolean;
|
|
109
|
+
created_user?: string;
|
|
110
|
+
created_at?: number;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
interface SaveBody {
|
|
114
|
+
group_countable_id: string;
|
|
115
|
+
company_id: string;
|
|
116
|
+
code: string;
|
|
117
|
+
name: string;
|
|
118
|
+
code_father: string;
|
|
119
|
+
level: number;
|
|
120
|
+
move: boolean;
|
|
121
|
+
confidential: boolean;
|
|
122
|
+
description: string;
|
|
123
|
+
}
|
|
124
|
+
interface UpdateBody {
|
|
125
|
+
group_countable_id?: string;
|
|
126
|
+
company_id?: string;
|
|
127
|
+
code?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
code_father?: string;
|
|
130
|
+
level?: number;
|
|
131
|
+
move?: boolean;
|
|
132
|
+
confidential?: boolean;
|
|
133
|
+
description?: string;
|
|
134
|
+
}
|
|
135
|
+
interface ChangeStatusBody {
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
disabled_reason?: string;
|
|
138
|
+
}
|
|
139
|
+
interface ConfirmResponse {
|
|
140
|
+
success: boolean;
|
|
141
|
+
message: string;
|
|
142
|
+
data?: any;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export declare namespace CbmPaymentTermModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
name?: string;
|
|
4
|
-
code?: string;
|
|
5
|
-
}
|
|
6
|
-
interface ListResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
data: ListResponse.Data[];
|
|
9
|
-
}
|
|
10
|
-
namespace ListResponse {
|
|
11
|
-
interface Data {
|
|
12
|
-
_id: string;
|
|
13
|
-
country_id: string;
|
|
14
|
-
code: string;
|
|
15
|
-
name: string;
|
|
16
|
-
SRI_code: string;
|
|
17
|
-
created_at: number;
|
|
18
|
-
created_user: string;
|
|
19
|
-
order?: number;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
interface GetOneResponse {
|
|
23
|
-
success: boolean;
|
|
24
|
-
data: GetOneResponse.Data;
|
|
25
|
-
}
|
|
26
|
-
namespace GetOneResponse {
|
|
27
|
-
interface Data {
|
|
28
|
-
_id: string;
|
|
29
|
-
country_id?: string;
|
|
30
|
-
code?: string;
|
|
31
|
-
name?: string;
|
|
32
|
-
created_at?: number;
|
|
33
|
-
created_user?: string;
|
|
34
|
-
SRI_code?: string;
|
|
35
|
-
order?: number;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
export declare namespace CbmPaymentTermModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
name?: string;
|
|
4
|
+
code?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
country_id: string;
|
|
14
|
+
code: string;
|
|
15
|
+
name: string;
|
|
16
|
+
SRI_code: string;
|
|
17
|
+
created_at: number;
|
|
18
|
+
created_user: string;
|
|
19
|
+
order?: number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
interface GetOneResponse {
|
|
23
|
+
success: boolean;
|
|
24
|
+
data: GetOneResponse.Data;
|
|
25
|
+
}
|
|
26
|
+
namespace GetOneResponse {
|
|
27
|
+
interface Data {
|
|
28
|
+
_id: string;
|
|
29
|
+
country_id?: string;
|
|
30
|
+
code?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
created_at?: number;
|
|
33
|
+
created_user?: string;
|
|
34
|
+
SRI_code?: string;
|
|
35
|
+
order?: number;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare namespace CbmSequenceModel {
|
|
2
|
-
interface ListResponse {
|
|
3
|
-
success: boolean;
|
|
4
|
-
data: ListResponse.Data[];
|
|
5
|
-
}
|
|
6
|
-
namespace ListResponse {
|
|
7
|
-
interface Data {
|
|
8
|
-
_id: string;
|
|
9
|
-
company_id: string;
|
|
10
|
-
nomenclature: string;
|
|
11
|
-
last_number: number;
|
|
12
|
-
code: string;
|
|
13
|
-
created_at: number;
|
|
14
|
-
created_user: string;
|
|
15
|
-
event_module?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
seat: boolean;
|
|
18
|
-
deleted_at?: number;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
export declare namespace CbmSequenceModel {
|
|
2
|
+
interface ListResponse {
|
|
3
|
+
success: boolean;
|
|
4
|
+
data: ListResponse.Data[];
|
|
5
|
+
}
|
|
6
|
+
namespace ListResponse {
|
|
7
|
+
interface Data {
|
|
8
|
+
_id: string;
|
|
9
|
+
company_id: string;
|
|
10
|
+
nomenclature: string;
|
|
11
|
+
last_number: number;
|
|
12
|
+
code: string;
|
|
13
|
+
created_at: number;
|
|
14
|
+
created_user: string;
|
|
15
|
+
event_module?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
seat: boolean;
|
|
18
|
+
deleted_at?: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
export declare namespace CbmTaxIvaModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
description?: string;
|
|
5
|
-
}
|
|
6
|
-
interface ListResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
data: ListResponse.Data[];
|
|
9
|
-
}
|
|
10
|
-
namespace ListResponse {
|
|
11
|
-
interface Data {
|
|
12
|
-
_id: string;
|
|
13
|
-
country_id?: string;
|
|
14
|
-
code?: string;
|
|
15
|
-
percentage?: number;
|
|
16
|
-
description?: string;
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
deleted?: boolean;
|
|
19
|
-
created_at?: number;
|
|
20
|
-
created_user?: string;
|
|
21
|
-
updated_at?: number;
|
|
22
|
-
updated_user?: string;
|
|
23
|
-
country?: string;
|
|
24
|
-
disabled_reason?: string;
|
|
25
|
-
user_inactive_at?: number;
|
|
26
|
-
user_inactive_id?: string;
|
|
27
|
-
user_inactive_name?: string;
|
|
28
|
-
user_active_at?: number;
|
|
29
|
-
user_active_id?: string;
|
|
30
|
-
user_active_name?: string;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
interface GetOneResponse {
|
|
34
|
-
success: boolean;
|
|
35
|
-
data: GetOneResponse.Data;
|
|
36
|
-
}
|
|
37
|
-
namespace GetOneResponse {
|
|
38
|
-
interface Data {
|
|
39
|
-
_id?: string;
|
|
40
|
-
country_id?: string;
|
|
41
|
-
code?: string;
|
|
42
|
-
percentage?: number;
|
|
43
|
-
description?: string;
|
|
44
|
-
enabled?: boolean;
|
|
45
|
-
disabled_reason?: string;
|
|
46
|
-
created_at?: number;
|
|
47
|
-
created_user?: string;
|
|
48
|
-
country?: string;
|
|
49
|
-
updated_at?: number;
|
|
50
|
-
updated_user?: string;
|
|
51
|
-
user_inactive_at?: number;
|
|
52
|
-
user_inactive_id?: string;
|
|
53
|
-
user_inactive_name?: string;
|
|
54
|
-
user_active_at?: number;
|
|
55
|
-
user_active_id?: string;
|
|
56
|
-
user_active_name?: string;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
interface SaveBody {
|
|
60
|
-
code: string;
|
|
61
|
-
percentage: number;
|
|
62
|
-
description: string;
|
|
63
|
-
}
|
|
64
|
-
interface UpdateBody {
|
|
65
|
-
code?: string;
|
|
66
|
-
percentage?: number;
|
|
67
|
-
description?: string;
|
|
68
|
-
}
|
|
69
|
-
interface ChangeStatusBody {
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
disabled_reason?: string;
|
|
72
|
-
}
|
|
73
|
-
interface ConfirmResponse {
|
|
74
|
-
success: boolean;
|
|
75
|
-
message: string;
|
|
76
|
-
data?: any;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
export declare namespace CbmTaxIvaModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
country_id?: string;
|
|
14
|
+
code?: string;
|
|
15
|
+
percentage?: number;
|
|
16
|
+
description?: string;
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
deleted?: boolean;
|
|
19
|
+
created_at?: number;
|
|
20
|
+
created_user?: string;
|
|
21
|
+
updated_at?: number;
|
|
22
|
+
updated_user?: string;
|
|
23
|
+
country?: string;
|
|
24
|
+
disabled_reason?: string;
|
|
25
|
+
user_inactive_at?: number;
|
|
26
|
+
user_inactive_id?: string;
|
|
27
|
+
user_inactive_name?: string;
|
|
28
|
+
user_active_at?: number;
|
|
29
|
+
user_active_id?: string;
|
|
30
|
+
user_active_name?: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
interface GetOneResponse {
|
|
34
|
+
success: boolean;
|
|
35
|
+
data: GetOneResponse.Data;
|
|
36
|
+
}
|
|
37
|
+
namespace GetOneResponse {
|
|
38
|
+
interface Data {
|
|
39
|
+
_id?: string;
|
|
40
|
+
country_id?: string;
|
|
41
|
+
code?: string;
|
|
42
|
+
percentage?: number;
|
|
43
|
+
description?: string;
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
disabled_reason?: string;
|
|
46
|
+
created_at?: number;
|
|
47
|
+
created_user?: string;
|
|
48
|
+
country?: string;
|
|
49
|
+
updated_at?: number;
|
|
50
|
+
updated_user?: string;
|
|
51
|
+
user_inactive_at?: number;
|
|
52
|
+
user_inactive_id?: string;
|
|
53
|
+
user_inactive_name?: string;
|
|
54
|
+
user_active_at?: number;
|
|
55
|
+
user_active_id?: string;
|
|
56
|
+
user_active_name?: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
interface SaveBody {
|
|
60
|
+
code: string;
|
|
61
|
+
percentage: number;
|
|
62
|
+
description: string;
|
|
63
|
+
}
|
|
64
|
+
interface UpdateBody {
|
|
65
|
+
code?: string;
|
|
66
|
+
percentage?: number;
|
|
67
|
+
description?: string;
|
|
68
|
+
}
|
|
69
|
+
interface ChangeStatusBody {
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
disabled_reason?: string;
|
|
72
|
+
}
|
|
73
|
+
interface ConfirmResponse {
|
|
74
|
+
success: boolean;
|
|
75
|
+
message: string;
|
|
76
|
+
data?: any;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { CbmAccountModel } from "../models/account.domain.model";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { HttpResponse } from '@angular/common/http';
|
|
4
|
-
import { ICbmAccountRepository } from "../../infrastructure/repositories/account.infrastructure.repository";
|
|
5
|
-
import { CbmAccountService } from "../../infrastructure/services/account.infrastructure.service";
|
|
6
|
-
export declare class CbmAccountRepository implements ICbmAccountRepository {
|
|
7
|
-
private service;
|
|
8
|
-
constructor(service: CbmAccountService);
|
|
9
|
-
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
10
|
-
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
11
|
-
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
12
|
-
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
13
|
-
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
14
|
-
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
-
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
16
|
-
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
17
|
-
downloadExcelTemplate(): Observable<Blob>;
|
|
18
|
-
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
19
|
-
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
20
|
-
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
21
|
-
}
|
|
1
|
+
import { CbmAccountModel } from "../models/account.domain.model";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
4
|
+
import { ICbmAccountRepository } from "../../infrastructure/repositories/account.infrastructure.repository";
|
|
5
|
+
import { CbmAccountService } from "../../infrastructure/services/account.infrastructure.service";
|
|
6
|
+
export declare class CbmAccountRepository implements ICbmAccountRepository {
|
|
7
|
+
private service;
|
|
8
|
+
constructor(service: CbmAccountService);
|
|
9
|
+
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
10
|
+
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
11
|
+
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
12
|
+
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
13
|
+
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
14
|
+
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
+
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
16
|
+
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
17
|
+
downloadExcelTemplate(): Observable<Blob>;
|
|
18
|
+
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
19
|
+
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
20
|
+
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
21
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmPaymentTermModel } from "../models/payment-term-repository.domain.model";
|
|
3
|
-
import { ICbmPaymentTermRepository } from "../../infrastructure/repositories/payment-term.infrastructure.repository";
|
|
4
|
-
import { CbmPaymentTermService } from "../../infrastructure/services/payment-term.infrastructure.service";
|
|
5
|
-
export declare class CbmPaymentTermRepository implements ICbmPaymentTermRepository {
|
|
6
|
-
private service;
|
|
7
|
-
constructor(service: CbmPaymentTermService);
|
|
8
|
-
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
10
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmPaymentTermModel } from "../models/payment-term-repository.domain.model";
|
|
3
|
+
import { ICbmPaymentTermRepository } from "../../infrastructure/repositories/payment-term.infrastructure.repository";
|
|
4
|
+
import { CbmPaymentTermService } from "../../infrastructure/services/payment-term.infrastructure.service";
|
|
5
|
+
export declare class CbmPaymentTermRepository implements ICbmPaymentTermRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: CbmPaymentTermService);
|
|
8
|
+
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmSequenceModel } from "../models/sequence.domain.model";
|
|
3
|
-
import { ICbmSequenceRepository } from "../../infrastructure/repositories/sequence.infrastructure.repository";
|
|
4
|
-
import { CbmSequenceService } from "../../infrastructure/services/sequence.infrastructe.service";
|
|
5
|
-
export declare class CbmSequenceRepository implements ICbmSequenceRepository {
|
|
6
|
-
private service;
|
|
7
|
-
constructor(service: CbmSequenceService);
|
|
8
|
-
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
9
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmSequenceModel } from "../models/sequence.domain.model";
|
|
3
|
+
import { ICbmSequenceRepository } from "../../infrastructure/repositories/sequence.infrastructure.repository";
|
|
4
|
+
import { CbmSequenceService } from "../../infrastructure/services/sequence.infrastructe.service";
|
|
5
|
+
export declare class CbmSequenceRepository implements ICbmSequenceRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: CbmSequenceService);
|
|
8
|
+
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
9
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CbmTaxIvaModel } from "../models/tax-iva.domain.model";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { ICbmTaxIvaRepository } from "../../infrastructure/repositories/tax-iva.infrastructure.repository";
|
|
4
|
-
import { CbmTaxIvaService } from "../../infrastructure/services/tax-iva.infrastructure.service";
|
|
5
|
-
export declare class CbmTaxIvaRepository implements ICbmTaxIvaRepository {
|
|
6
|
-
private service;
|
|
7
|
-
constructor(service: CbmTaxIvaService);
|
|
8
|
-
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
10
|
-
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
11
|
-
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
12
|
-
changeStatus(id: string, dasta: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
13
|
-
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
14
|
-
}
|
|
1
|
+
import { CbmTaxIvaModel } from "../models/tax-iva.domain.model";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { ICbmTaxIvaRepository } from "../../infrastructure/repositories/tax-iva.infrastructure.repository";
|
|
4
|
+
import { CbmTaxIvaService } from "../../infrastructure/services/tax-iva.infrastructure.service";
|
|
5
|
+
export declare class CbmTaxIvaRepository implements ICbmTaxIvaRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: CbmTaxIvaService);
|
|
8
|
+
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
10
|
+
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, dasta: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
14
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmAccountModel } from "../../domain/models/account.domain.model";
|
|
3
|
-
import { HttpResponse } from '@angular/common/http';
|
|
4
|
-
export interface ICbmAccountRepository {
|
|
5
|
-
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
6
|
-
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
7
|
-
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
8
|
-
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
9
|
-
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
10
|
-
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
11
|
-
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
12
|
-
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
13
|
-
downloadExcelTemplate(): Observable<Blob>;
|
|
14
|
-
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
-
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
16
|
-
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
17
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmAccountModel } from "../../domain/models/account.domain.model";
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
4
|
+
export interface ICbmAccountRepository {
|
|
5
|
+
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
6
|
+
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
7
|
+
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
8
|
+
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
9
|
+
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
11
|
+
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
12
|
+
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
13
|
+
downloadExcelTemplate(): Observable<Blob>;
|
|
14
|
+
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
+
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
16
|
+
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
17
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmPaymentTermModel } from "../../domain/models/payment-term-repository.domain.model";
|
|
3
|
-
export interface ICbmPaymentTermRepository {
|
|
4
|
-
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
5
|
-
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
6
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmPaymentTermModel } from "../../domain/models/payment-term-repository.domain.model";
|
|
3
|
+
export interface ICbmPaymentTermRepository {
|
|
4
|
+
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmSequenceModel } from "../../domain/models/sequence.domain.model";
|
|
3
|
-
export interface ICbmSequenceRepository {
|
|
4
|
-
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
5
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmSequenceModel } from "../../domain/models/sequence.domain.model";
|
|
3
|
+
export interface ICbmSequenceRepository {
|
|
4
|
+
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmTaxIvaModel } from "../../domain/models/tax-iva.domain.model";
|
|
3
|
-
export interface ICbmTaxIvaRepository {
|
|
4
|
-
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
5
|
-
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
6
|
-
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
7
|
-
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
8
|
-
changeStatus(id: string, dasta: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
9
|
-
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
10
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmTaxIvaModel } from "../../domain/models/tax-iva.domain.model";
|
|
3
|
+
export interface ICbmTaxIvaRepository {
|
|
4
|
+
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
6
|
+
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, dasta: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
9
|
+
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
10
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { HttpClient, HttpResponse } from "@angular/common/http";
|
|
2
|
-
import { CbmAccountModel } from "../../domain/models/account.domain.model";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare class CbmAccountService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
9
|
-
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
10
|
-
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
11
|
-
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
12
|
-
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
13
|
-
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
14
|
-
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
-
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
16
|
-
downloadExcelTemplate(): Observable<Blob>;
|
|
17
|
-
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
18
|
-
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
19
|
-
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
20
|
-
}
|
|
1
|
+
import { HttpClient, HttpResponse } from "@angular/common/http";
|
|
2
|
+
import { CbmAccountModel } from "../../domain/models/account.domain.model";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CbmAccountService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmAccountModel.ListParams): Observable<CbmAccountModel.ListResponse>;
|
|
9
|
+
listPaginated(params: CbmAccountModel.ListPaginatedParams): Observable<CbmAccountModel.ListPaginatedResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmAccountModel.GetOneResponse>;
|
|
11
|
+
getOneByCode(code: string): Observable<CbmAccountModel.GetOneByCodeResponse>;
|
|
12
|
+
save(data: CbmAccountModel.SaveBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
13
|
+
update(id: string, data: CbmAccountModel.UpdateBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, data: CbmAccountModel.ChangeStatusBody): Observable<CbmAccountModel.ConfirmResponse>;
|
|
15
|
+
delete(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
16
|
+
downloadExcelTemplate(): Observable<Blob>;
|
|
17
|
+
importExcel(data: FormData): Observable<CbmAccountModel.ConfirmResponse>;
|
|
18
|
+
downloadExcel(): Observable<HttpResponse<Blob>>;
|
|
19
|
+
updateCodes(id: string): Observable<CbmAccountModel.ConfirmResponse>;
|
|
20
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CbmPaymentTermModel } from "../../domain/models/payment-term-repository.domain.model";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { HttpClient } from "@angular/common/http";
|
|
4
|
-
export declare class CbmPaymentTermService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
10
|
-
}
|
|
1
|
+
import { CbmPaymentTermModel } from "../../domain/models/payment-term-repository.domain.model";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
export declare class CbmPaymentTermService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmPaymentTermModel.ListParams): Observable<CbmPaymentTermModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmPaymentTermModel.GetOneResponse>;
|
|
10
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { CbmSequenceModel } from "../../domain/models/sequence.domain.model";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare class CbmSequenceService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
9
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmSequenceModel } from "../../domain/models/sequence.domain.model";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CbmSequenceService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(): Observable<CbmSequenceModel.ListResponse>;
|
|
9
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { CbmTaxIvaModel } from "../../domain/models/tax-iva.domain.model";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare class CbmTaxIvaService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
10
|
-
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
11
|
-
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
12
|
-
changeStatus(id: string, data: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
13
|
-
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
14
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmTaxIvaModel } from "../../domain/models/tax-iva.domain.model";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CbmTaxIvaService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmTaxIvaModel.ListParams): Observable<CbmTaxIvaModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmTaxIvaModel.GetOneResponse>;
|
|
10
|
+
save(data: CbmTaxIvaModel.SaveBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmTaxIvaModel.UpdateBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, data: CbmTaxIvaModel.ChangeStatusBody): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmTaxIvaModel.ConfirmResponse>;
|
|
14
|
+
}
|
|
@@ -15,3 +15,4 @@ export { CbmViewReportComponent } from '../components/view-reports/view-reports'
|
|
|
15
15
|
export { ConfirmationModal } from '../components/confirmation-modal/confirmation-modal';
|
|
16
16
|
export { StockByWarehouse } from '../components/stock-by-warehouse/stock-by-warehouse';
|
|
17
17
|
export { CbmAvailabilityBoardComponent } from '../components/availability-board/availability-board';
|
|
18
|
+
export { CbmRelationshipMapComponent } from '../components/relationship-map/relationship-map';
|
|
@@ -44,3 +44,8 @@ export * from './repositories/stock-item.repository';
|
|
|
44
44
|
export * from './repositories/upload.repository';
|
|
45
45
|
export * from './repositories/warehouse.repository';
|
|
46
46
|
export * from './repositories/company-branch.repository';
|
|
47
|
+
export * from './repositories/company-custom.repository';
|
|
48
|
+
export * from './repositories/account.repository';
|
|
49
|
+
export * from './repositories/tax-iva.repository';
|
|
50
|
+
export * from './repositories/sequence.repository';
|
|
51
|
+
export * from './repositories/payment-term.repository';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -268,6 +268,11 @@ export * from './lib/domain/models/sequence.domain.model';
|
|
|
268
268
|
// #region payment repository
|
|
269
269
|
export * from './lib/domain/repositories/payment-term.domain.repository';
|
|
270
270
|
export * from './lib/domain/models/payment-term.domain.model';
|
|
271
|
+
|
|
271
272
|
// #region available board component
|
|
272
273
|
export * from './lib/components/availability-board/availability-board';
|
|
273
274
|
export * from './lib/components/availability-board/availability-board.model';
|
|
275
|
+
|
|
276
|
+
// #region relationship component
|
|
277
|
+
export * from './lib/components/relationship-map/relationship-map';
|
|
278
|
+
export * from './lib/components/relationship-map/types';
|