@cbm-common/cbm-types 0.0.2 → 0.0.3
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/index.d.ts +15 -24
- package/src/lib/types/app/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +3 -3
- package/src/lib/types/app/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +24 -1
- package/src/lib/types/app/components/advanced-item-search-modal/item-list/item-list.d.ts +83 -0
- package/src/lib/types/app/components/attachments/animations.d.ts +1 -0
- package/src/lib/types/app/components/attachments/attachments.d.ts +50 -0
- package/src/lib/types/app/components/attachments/components/button-item/button-item.d.ts +5 -0
- package/src/lib/types/app/components/attachments/components/buttons/buttons.d.ts +8 -0
- package/src/lib/types/app/components/attachments/components/grid-view/grid-view.d.ts +32 -0
- package/src/lib/types/app/components/attachments/components/icons/delete-icon/delete-icon.d.ts +2 -0
- package/src/lib/types/app/components/attachments/components/icons/download-icon/download-icon.d.ts +2 -0
- package/src/lib/types/app/components/attachments/components/list-view/list-view.d.ts +41 -0
- package/src/lib/types/app/components/attachments/types.d.ts +7 -0
- package/src/lib/types/app/components/documents-reference/animations.d.ts +1 -0
- package/src/lib/types/app/components/documents-reference/components/add/add.d.ts +112 -0
- package/src/lib/types/app/components/documents-reference/components/delete/delete.d.ts +28 -0
- package/src/lib/types/app/components/documents-reference/components/reference-document-by-tab/reference-document-by-tab.d.ts +39 -0
- package/src/lib/types/app/components/documents-reference/components/reference-document-to-tab/reference-document-to-tab.d.ts +42 -0
- package/src/lib/types/app/components/documents-reference/documents-reference.d.ts +21 -0
- package/src/lib/types/app/components/documents-reference/types.d.ts +56 -0
- package/src/lib/types/app/components/dropzone/dropzone.d.ts +17 -0
- package/src/lib/types/app/components/record-detail-metadata/components/options/options.d.ts +13 -0
- package/src/lib/types/app/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
- package/src/lib/types/app/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
- package/src/lib/types/app/components/record-detail-metadata/record-detail-metadata.d.ts +21 -0
- package/src/lib/types/app/components/record-detail-metadata/types.d.ts +48 -0
- package/src/lib/types/app/directives/character-counter/character-counter.directive.d.ts +21 -0
- package/src/lib/types/app/directives/text-input/text-input.directive.d.ts +14 -0
- package/src/lib/types/app/directives/text-input/types.d.ts +1 -0
- package/src/lib/types/app/domain/models/document-reference.domain.model.d.ts +204 -0
- package/src/lib/types/app/domain/models/upload.domain.model.d.ts +117 -0
- package/src/lib/types/app/domain/repositories/alternative-item.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/document-reference.domain.repository.d.ts +15 -0
- package/src/lib/types/app/domain/repositories/group.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/history.domain.repository.d.ts +4 -5
- package/src/lib/types/app/domain/repositories/item.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/price-list.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/report-financials.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/seat.domain.repository.d.ts +1 -2
- package/src/lib/types/app/domain/repositories/upload.domain.repository.d.ts +15 -0
- package/src/lib/types/app/domain/repositories/user.domain.repository.d.ts +5 -6
- package/src/lib/types/app/domain/services/web-socket/web-socket.model.d.ts +32 -0
- package/src/lib/types/app/infrastructure/repositories/document-reference.infrastructure.repository.d.ts +12 -0
- package/src/lib/types/app/infrastructure/repositories/report-financials.infrastructure.repository.d.ts +92 -0
- package/src/lib/types/app/infrastructure/repositories/upload.infrastructure.repository.d.ts +12 -0
- package/src/lib/types/app/infrastructure/services/document-reference.infrastructure.service.d.ts +17 -0
- package/src/lib/types/app/infrastructure/services/upload.infrastructure.service.d.ts +16 -0
- package/src/lib/types/app/pipes/error-translate-pipe/error-translate-pipe.d.ts +8 -0
- package/src/lib/types/app/remotes/components.remote.d.ts +1 -0
- package/src/lib/types/app/remotes/repositories.remote.d.ts +5 -0
- package/src/lib/types/app/components/tab-item/tab-item.component.d.ts +0 -7
- package/src/lib/types/app/components/tabs/tabs.component.d.ts +0 -7
- package/src/lib/types/app/domain/models/email-settings.domain.repository.d.ts +0 -86
- package/src/lib/types/app/domain/models/history.domain.repository.d.ts +0 -66
- package/src/lib/types/app/domain/models/user.domain.repository.d.ts +0 -260
- /package/src/lib/types/app/{remotes/repositories.romote.d.ts → domain/services/web-socket/web-socket.service.d.ts} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
+
export type TLabels = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export type TOptionType = 'all' | 'internal' | 'external';
|
|
6
|
+
export interface Pagination {
|
|
7
|
+
page: number;
|
|
8
|
+
pages: number;
|
|
9
|
+
records: number;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const initPagination: Readonly<{
|
|
13
|
+
page: 1;
|
|
14
|
+
pages: 0;
|
|
15
|
+
records: 0;
|
|
16
|
+
size: 20;
|
|
17
|
+
}>;
|
|
18
|
+
export interface ICollectionOptions {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IAddedDocument {
|
|
23
|
+
_id: string;
|
|
24
|
+
transaction_type: string;
|
|
25
|
+
document_number: string;
|
|
26
|
+
document_nomenclature: string;
|
|
27
|
+
beneficiary_number?: string;
|
|
28
|
+
beneficiary_name: string;
|
|
29
|
+
created_at: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IListData {
|
|
32
|
+
_id: string | string[];
|
|
33
|
+
document_nomenclature: string | string[];
|
|
34
|
+
document_number: string | string[];
|
|
35
|
+
beneficiary_number?: string | string[];
|
|
36
|
+
beneficiary_name: string | string[];
|
|
37
|
+
created_at: number | number[];
|
|
38
|
+
}
|
|
39
|
+
export declare namespace CbmDocumentsReferenceModel {
|
|
40
|
+
interface IFilters {
|
|
41
|
+
date_end?: string;
|
|
42
|
+
date_begin?: string;
|
|
43
|
+
document_number?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface Config {
|
|
46
|
+
repository: any;
|
|
47
|
+
method_name?: string;
|
|
48
|
+
control_pagination?: boolean;
|
|
49
|
+
filters?: IFilters;
|
|
50
|
+
list_data?: Partial<IListData>;
|
|
51
|
+
}
|
|
52
|
+
export type ConfigMethod = {
|
|
53
|
+
[key: string]: Config;
|
|
54
|
+
};
|
|
55
|
+
export {};
|
|
56
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class CbmDropzoneComponent {
|
|
2
|
+
message: import("@angular/core").InputSignal<string | undefined>;
|
|
3
|
+
accept: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
+
files: import("@angular/core").InputSignal<File[]>;
|
|
5
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
darkMode: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
uplaodFile: import("@angular/core").OutputEmitterRef<FileList>;
|
|
8
|
+
dragover: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
counter: import("@angular/core").WritableSignal<number>;
|
|
10
|
+
onFileSelected(event: Event): void;
|
|
11
|
+
onDragOver(event: Event): void;
|
|
12
|
+
onDragEnter(_: Event): void;
|
|
13
|
+
onDragLeave(event: MouseEvent): void;
|
|
14
|
+
onDrop(event: DragEvent): void;
|
|
15
|
+
downloadFile(file: File): void;
|
|
16
|
+
onUploadClick(event: MouseEvent): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute, Params } from '@angular/router';
|
|
3
|
+
import { CbmRecordDetailMetadataModel } from '@components/record-detail-metadata/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
|
+
}
|
package/src/lib/types/app/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts
ADDED
|
@@ -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
|
+
}
|
package/src/lib/types/app/components/record-detail-metadata/directives/drop-down.directive.d.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CbmRecordDetailMetadataModel } from './types';
|
|
3
|
+
export declare class CbmRecordDetailMetadataComponent implements OnChanges, OnInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private renderer2;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer2: Renderer2);
|
|
7
|
+
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
8
|
+
additionalMetadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.additionalMetadata[] | undefined>;
|
|
9
|
+
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
10
|
+
optionsSignal: import("@angular/core").WritableSignal<CbmRecordDetailMetadataModel.options[]>;
|
|
11
|
+
loadCss: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
changeState(id: string, state: 'init' | 'loading' | 'success' | 'failed'): void;
|
|
15
|
+
private updateStateById;
|
|
16
|
+
private extractRelevantStyles;
|
|
17
|
+
private injectStylesIntoDocument;
|
|
18
|
+
spanText: (data: CbmRecordDetailMetadataModel.metadata) => string;
|
|
19
|
+
protected getRoundedCotentClass(): string;
|
|
20
|
+
protected getIconClass(): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { WritableSignal } from "@angular/core";
|
|
2
|
+
export declare namespace CbmRecordDetailMetadataModel {
|
|
3
|
+
interface metadata {
|
|
4
|
+
iconClass: string;
|
|
5
|
+
title: string;
|
|
6
|
+
_id: string;
|
|
7
|
+
created_at: number;
|
|
8
|
+
created_user: string;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
disabled_reason?: string;
|
|
11
|
+
disabled_user?: string;
|
|
12
|
+
disabled_date?: number;
|
|
13
|
+
reverse_status?: boolean;
|
|
14
|
+
reverse_date?: number;
|
|
15
|
+
reverse_user?: string;
|
|
16
|
+
reverse_reason?: string;
|
|
17
|
+
reverse_commentary?: string;
|
|
18
|
+
return?: boolean;
|
|
19
|
+
color_state?: 'info' | 'warning' | 'danger' | 'primary' | 'secondary' | 'success';
|
|
20
|
+
state?: string;
|
|
21
|
+
badge_text?: string;
|
|
22
|
+
badge_color?: 'info' | 'warning' | 'danger' | 'primary' | 'secondary' | 'success';
|
|
23
|
+
routeToReturn?: string;
|
|
24
|
+
eliminated?: boolean;
|
|
25
|
+
eliminated_by?: string;
|
|
26
|
+
eliminated_date?: number;
|
|
27
|
+
}
|
|
28
|
+
interface additionalMetadata {
|
|
29
|
+
iconClass: string;
|
|
30
|
+
property: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
interface options {
|
|
34
|
+
id?: string;
|
|
35
|
+
label: string;
|
|
36
|
+
labelDisabled?: string;
|
|
37
|
+
iconClass: string;
|
|
38
|
+
iconClassDisabled?: string;
|
|
39
|
+
loading?: 'init' | 'loading' | 'success' | 'failed';
|
|
40
|
+
isChangeStatus?: boolean;
|
|
41
|
+
routerLink?: string;
|
|
42
|
+
queryParams?: any;
|
|
43
|
+
hiddenOption?: boolean;
|
|
44
|
+
children?: options[];
|
|
45
|
+
function?: (op: WritableSignal<OptionsParams>) => void;
|
|
46
|
+
}
|
|
47
|
+
type OptionsParams = Omit<options, 'function' | 'children'>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, DestroyRef, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
export declare class CbmCharacterCounterDirective implements AfterViewInit, OnChanges {
|
|
4
|
+
private destroyRef;
|
|
5
|
+
private elementRef;
|
|
6
|
+
private renderer2;
|
|
7
|
+
constructor(destroyRef: DestroyRef, elementRef: ElementRef, renderer2: Renderer2);
|
|
8
|
+
control: import("@angular/core").InputSignal<FormControl<any> | undefined>;
|
|
9
|
+
maxChars: import("@angular/core").InputSignal<number>;
|
|
10
|
+
onlyCount: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
private initDirective;
|
|
12
|
+
private elementCreated;
|
|
13
|
+
private span;
|
|
14
|
+
private labelTag;
|
|
15
|
+
private inputSubscription;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
private updateCount;
|
|
19
|
+
private createElements;
|
|
20
|
+
private findInput;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { TCbmTextInputTransform } from './types';
|
|
3
|
+
export declare class CbmTextInputDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
maxTextLength: import("@angular/core").InputSignal<number | undefined>;
|
|
6
|
+
maxWordLength: import("@angular/core").InputSignal<number | undefined>;
|
|
7
|
+
transform: import("@angular/core").InputSignal<TCbmTextInputTransform | undefined>;
|
|
8
|
+
pattern: import("@angular/core").InputSignal<string | RegExp | undefined>;
|
|
9
|
+
selfReference: boolean;
|
|
10
|
+
constructor(elementRef: ElementRef);
|
|
11
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
12
|
+
onPaste(event: ClipboardEvent): void;
|
|
13
|
+
onInput(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TCbmTextInputTransform = 'uppercase' | 'lowercase' | 'capitalize';
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export declare namespace CbmDocumentReferenceModel {
|
|
2
|
+
interface Translation {
|
|
3
|
+
event: string;
|
|
4
|
+
translation: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListParams {
|
|
7
|
+
collection_origin_name?: string;
|
|
8
|
+
collection_origin_id?: string;
|
|
9
|
+
collection_destination_name?: string;
|
|
10
|
+
collection_destination_id?: string;
|
|
11
|
+
start_date?: number;
|
|
12
|
+
end_date?: number;
|
|
13
|
+
}
|
|
14
|
+
interface ListResponse {
|
|
15
|
+
success: boolean;
|
|
16
|
+
data: ListResponse.Data[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
_id: string;
|
|
21
|
+
collection_origin_name: string;
|
|
22
|
+
collection_origin_id: string;
|
|
23
|
+
collection_destination_name: string;
|
|
24
|
+
collection_destination_id: string;
|
|
25
|
+
type: string;
|
|
26
|
+
type_record?: string;
|
|
27
|
+
document_origin_name: string;
|
|
28
|
+
document_origin_number: number;
|
|
29
|
+
document_origin_date: number;
|
|
30
|
+
document_destination_name: string;
|
|
31
|
+
document_destination_number: number;
|
|
32
|
+
document_destination_date: number;
|
|
33
|
+
beneficiary_number?: string;
|
|
34
|
+
beneficiary_name?: string;
|
|
35
|
+
deleted: boolean;
|
|
36
|
+
created_at: number;
|
|
37
|
+
created_user: string;
|
|
38
|
+
event?: string;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
interface GetOneResponse {
|
|
42
|
+
success: boolean;
|
|
43
|
+
data: GetOneResponse.Data;
|
|
44
|
+
}
|
|
45
|
+
namespace GetOneResponse {
|
|
46
|
+
interface Data {
|
|
47
|
+
_id: string;
|
|
48
|
+
collection_origin_name?: string;
|
|
49
|
+
collection_origin_id?: string;
|
|
50
|
+
collection_destination_name?: string;
|
|
51
|
+
type?: string;
|
|
52
|
+
type_record?: string;
|
|
53
|
+
document_origin_name?: string;
|
|
54
|
+
document_origin_number?: string;
|
|
55
|
+
document_origin_date?: number;
|
|
56
|
+
document_destination_name?: string;
|
|
57
|
+
document_destination_number?: string;
|
|
58
|
+
document_destination_date?: number;
|
|
59
|
+
beneficiary_number?: string;
|
|
60
|
+
beneficiary_name?: string;
|
|
61
|
+
created_at?: number;
|
|
62
|
+
created_user?: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
interface SaveBody {
|
|
66
|
+
collection_origin_name: string;
|
|
67
|
+
collection_origin_id: string;
|
|
68
|
+
collection_destination_name?: string;
|
|
69
|
+
collection_destination_id?: string;
|
|
70
|
+
type: string;
|
|
71
|
+
type_record: string;
|
|
72
|
+
document_origin_name: string;
|
|
73
|
+
document_origin_number: string;
|
|
74
|
+
document_origin_date: number;
|
|
75
|
+
document_destination_name: string;
|
|
76
|
+
document_destination_number: string;
|
|
77
|
+
document_destination_date: number;
|
|
78
|
+
beneficiary_number?: string;
|
|
79
|
+
beneficiary_name?: string;
|
|
80
|
+
}
|
|
81
|
+
interface SaveManyBody {
|
|
82
|
+
data: SaveManyBody.Data[];
|
|
83
|
+
}
|
|
84
|
+
namespace SaveManyBody {
|
|
85
|
+
interface Data {
|
|
86
|
+
collection_origin_name: string;
|
|
87
|
+
collection_origin_id: string;
|
|
88
|
+
collection_destination_name?: string;
|
|
89
|
+
collection_destination_id?: string;
|
|
90
|
+
type: string;
|
|
91
|
+
type_record: string;
|
|
92
|
+
document_origin_name: string;
|
|
93
|
+
document_origin_number: string;
|
|
94
|
+
document_origin_date: number;
|
|
95
|
+
document_destination_name: string;
|
|
96
|
+
document_destination_number: string;
|
|
97
|
+
document_destination_date: number;
|
|
98
|
+
beneficiary_number?: string;
|
|
99
|
+
beneficiary_name?: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
interface RelationshipTreeParams {
|
|
103
|
+
collection_origin_id: string;
|
|
104
|
+
collection_origin_name: string;
|
|
105
|
+
event_module_origin: string;
|
|
106
|
+
}
|
|
107
|
+
interface RelationshipTreeResponse {
|
|
108
|
+
event_module_origin: string;
|
|
109
|
+
collection_origin_name: string;
|
|
110
|
+
collection_origin_id: string;
|
|
111
|
+
event_module_destination?: string;
|
|
112
|
+
collection_destination_name?: string;
|
|
113
|
+
collection_destination_id?: string;
|
|
114
|
+
type: string;
|
|
115
|
+
document_origin_name: string;
|
|
116
|
+
document_origin_number: string;
|
|
117
|
+
document_origin_date: number;
|
|
118
|
+
document_destination_name?: string;
|
|
119
|
+
document_destination_number?: string;
|
|
120
|
+
document_destination_date?: number;
|
|
121
|
+
deleted: boolean;
|
|
122
|
+
created_at: number;
|
|
123
|
+
created_user: string;
|
|
124
|
+
documents?: RelationshipTreeResponse.Document[];
|
|
125
|
+
origin?: boolean;
|
|
126
|
+
}
|
|
127
|
+
namespace RelationshipTreeResponse {
|
|
128
|
+
interface Document {
|
|
129
|
+
event_module_origin: string;
|
|
130
|
+
collection_origin_name: string;
|
|
131
|
+
collection_origin_id: string;
|
|
132
|
+
event_module_destination?: string;
|
|
133
|
+
collection_destination_name?: string;
|
|
134
|
+
collection_destination_id?: string;
|
|
135
|
+
type: string;
|
|
136
|
+
document_origin_name: string;
|
|
137
|
+
document_origin_number: string;
|
|
138
|
+
document_origin_date: number;
|
|
139
|
+
document_destination_name?: string;
|
|
140
|
+
document_destination_number?: string;
|
|
141
|
+
document_destination_date?: number;
|
|
142
|
+
deleted: boolean;
|
|
143
|
+
created_at: number;
|
|
144
|
+
created_user: string;
|
|
145
|
+
documents?: Document[];
|
|
146
|
+
father?: boolean;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
interface ParentTreeParams {
|
|
150
|
+
collection_destination_id: string;
|
|
151
|
+
collection_destination_name: string;
|
|
152
|
+
event_module_destination: string;
|
|
153
|
+
}
|
|
154
|
+
interface ParentTreeResponse {
|
|
155
|
+
_id: string;
|
|
156
|
+
event_module_origin: string;
|
|
157
|
+
collection_origin_name: string;
|
|
158
|
+
collection_origin_id: string;
|
|
159
|
+
event_module_destination: string;
|
|
160
|
+
collection_destination_name: string;
|
|
161
|
+
collection_destination_id: string;
|
|
162
|
+
type: string;
|
|
163
|
+
document_origin_name: string;
|
|
164
|
+
document_origin_number: string;
|
|
165
|
+
document_origin_date: number;
|
|
166
|
+
document_destination_name: string;
|
|
167
|
+
document_destination_number: string;
|
|
168
|
+
deleted: boolean;
|
|
169
|
+
created_at: number;
|
|
170
|
+
created_user: string;
|
|
171
|
+
documents?: ParentTreeResponse.Document[];
|
|
172
|
+
origin?: boolean;
|
|
173
|
+
}
|
|
174
|
+
namespace ParentTreeResponse {
|
|
175
|
+
interface Document {
|
|
176
|
+
_id: string;
|
|
177
|
+
event_module_origin: string;
|
|
178
|
+
collection_origin_name: string;
|
|
179
|
+
collection_origin_id: string;
|
|
180
|
+
event_module_destination: string;
|
|
181
|
+
collection_destination_name: string;
|
|
182
|
+
collection_destination_id: string;
|
|
183
|
+
type: string;
|
|
184
|
+
document_origin_name: string;
|
|
185
|
+
document_origin_number: string;
|
|
186
|
+
document_origin_date: number;
|
|
187
|
+
document_destination_name: string;
|
|
188
|
+
document_destination_number: string;
|
|
189
|
+
document_destination_date?: number;
|
|
190
|
+
deleted: boolean;
|
|
191
|
+
created_at: number;
|
|
192
|
+
created_user: string;
|
|
193
|
+
documents?: Document[];
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
interface ValidationBeforeSaveParams {
|
|
197
|
+
collection_origin_id: string;
|
|
198
|
+
}
|
|
199
|
+
interface ConfirmResponse {
|
|
200
|
+
success: boolean;
|
|
201
|
+
message: string;
|
|
202
|
+
data?: any;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare namespace CbmUploadModel {
|
|
2
|
+
enum EStatusType {
|
|
3
|
+
ERROR = "error",
|
|
4
|
+
COMPLETE = "complete",
|
|
5
|
+
SUCCESS = "success"
|
|
6
|
+
}
|
|
7
|
+
type TStatusType = `${EStatusType}`;
|
|
8
|
+
interface ListImportParams {
|
|
9
|
+
page: number;
|
|
10
|
+
size: number;
|
|
11
|
+
created_user?: string;
|
|
12
|
+
status?: TStatusType;
|
|
13
|
+
event?: string;
|
|
14
|
+
collection_id?: string;
|
|
15
|
+
collection_name?: string;
|
|
16
|
+
event_module?: string;
|
|
17
|
+
date_end?: number;
|
|
18
|
+
date_begin?: number;
|
|
19
|
+
}
|
|
20
|
+
interface ListImportResponse {
|
|
21
|
+
success: boolean;
|
|
22
|
+
pageNum: number;
|
|
23
|
+
pageSize: number;
|
|
24
|
+
pages: number;
|
|
25
|
+
total: number;
|
|
26
|
+
items: ListImportResponse.Item[];
|
|
27
|
+
}
|
|
28
|
+
namespace ListImportResponse {
|
|
29
|
+
interface Item {
|
|
30
|
+
_id: string;
|
|
31
|
+
company_id?: string;
|
|
32
|
+
event?: string;
|
|
33
|
+
collection_name?: string;
|
|
34
|
+
event_module?: string;
|
|
35
|
+
filename_original?: string;
|
|
36
|
+
size?: number;
|
|
37
|
+
count_register?: number;
|
|
38
|
+
comment?: string;
|
|
39
|
+
created_at?: number;
|
|
40
|
+
created_user?: string;
|
|
41
|
+
url?: string;
|
|
42
|
+
size_mb?: string;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
interface ListAnnexeParams {
|
|
46
|
+
page: number;
|
|
47
|
+
size: number;
|
|
48
|
+
collection_id?: string;
|
|
49
|
+
collection_name?: string;
|
|
50
|
+
event?: string;
|
|
51
|
+
date_end?: number;
|
|
52
|
+
date_begin?: number;
|
|
53
|
+
}
|
|
54
|
+
interface ListAnnexeResponse {
|
|
55
|
+
success: boolean;
|
|
56
|
+
pageNum: number;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
pages: number;
|
|
59
|
+
total: number;
|
|
60
|
+
items: ListAnnexeResponse.Item[];
|
|
61
|
+
}
|
|
62
|
+
namespace ListAnnexeResponse {
|
|
63
|
+
interface Item {
|
|
64
|
+
_id: string;
|
|
65
|
+
company_id: string;
|
|
66
|
+
collection_id: string;
|
|
67
|
+
collection_name: string;
|
|
68
|
+
event: string;
|
|
69
|
+
filename_original?: string;
|
|
70
|
+
size?: number;
|
|
71
|
+
created_at?: number;
|
|
72
|
+
created_user?: string;
|
|
73
|
+
url?: string;
|
|
74
|
+
type_annexe?: string;
|
|
75
|
+
comment?: string;
|
|
76
|
+
mimetype?: string;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
interface UploadRideAndXmlFilesParams {
|
|
80
|
+
page: number;
|
|
81
|
+
size: number;
|
|
82
|
+
collection_id: string;
|
|
83
|
+
}
|
|
84
|
+
interface UploadRideAndXmlFilesResponse {
|
|
85
|
+
success: boolean;
|
|
86
|
+
pageNum: number;
|
|
87
|
+
pageSize: number;
|
|
88
|
+
pages: number;
|
|
89
|
+
total: number;
|
|
90
|
+
items: UploadRideAndXmlFilesResponse.Item[];
|
|
91
|
+
}
|
|
92
|
+
namespace UploadRideAndXmlFilesResponse {
|
|
93
|
+
interface Item {
|
|
94
|
+
_id: string;
|
|
95
|
+
company_id: string;
|
|
96
|
+
collection_id: string;
|
|
97
|
+
collection_name: string;
|
|
98
|
+
event: string;
|
|
99
|
+
size: number;
|
|
100
|
+
created_at: number;
|
|
101
|
+
created_user: string;
|
|
102
|
+
filename: string;
|
|
103
|
+
url: string;
|
|
104
|
+
size_mb: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
interface DownloadFileRideAndXml {
|
|
108
|
+
collection_origin_name: string;
|
|
109
|
+
event_module: string;
|
|
110
|
+
collection_origin_id: string;
|
|
111
|
+
url: string;
|
|
112
|
+
}
|
|
113
|
+
interface ConfirmResponse {
|
|
114
|
+
success: boolean;
|
|
115
|
+
message: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CbmAlternativeItemModel } from '@models/alternative-item.domain.model';
|
|
2
2
|
import { ICbmAlternativeItemInfrastructureRepository } from '@repositories/alternative-item.infrastructure.repository';
|
|
3
|
-
import { CbmAlternativeItemInfrastructureService } from '@services/alternative-item.infrastructure.service';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmAlternativeItemDomainRepository implements ICbmAlternativeItemInfrastructureRepository {
|
|
6
5
|
private readonly service;
|
|
7
|
-
constructor(service:
|
|
6
|
+
constructor(service: ICbmAlternativeItemInfrastructureRepository);
|
|
8
7
|
listParents(): Observable<CbmAlternativeItemModel.ListParentsResponse>;
|
|
9
8
|
listChildren(parentId: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
10
9
|
getOne(id: string): Observable<CbmAlternativeItemModel.GetOneResponse>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CbmDocumentReferenceModel } from '@models/document-reference.domain.model';
|
|
2
|
+
import { ICbmDocumentReferenceInfrastructureRepository } from '@repositories/document-reference.infrastructure.repository';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class CbmDocumentReferenceDomainRepository implements ICbmDocumentReferenceInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmDocumentReferenceInfrastructureRepository);
|
|
7
|
+
list(params: CbmDocumentReferenceModel.ListParams): Observable<CbmDocumentReferenceModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmDocumentReferenceModel.GetOneResponse>;
|
|
9
|
+
save(data: CbmDocumentReferenceModel.SaveBody): Observable<CbmDocumentReferenceModel.ConfirmResponse>;
|
|
10
|
+
saveMany(data: CbmDocumentReferenceModel.SaveManyBody): Observable<CbmDocumentReferenceModel.ConfirmResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmDocumentReferenceModel.ConfirmResponse>;
|
|
12
|
+
relationshipTree(params: CbmDocumentReferenceModel.RelationshipTreeParams): Observable<CbmDocumentReferenceModel.RelationshipTreeResponse[]>;
|
|
13
|
+
parentTree(params: CbmDocumentReferenceModel.ParentTreeParams): Observable<CbmDocumentReferenceModel.ParentTreeResponse[]>;
|
|
14
|
+
validationBeforeSave(params: CbmDocumentReferenceModel.ValidationBeforeSaveParams): Observable<CbmDocumentReferenceModel.ConfirmResponse>;
|
|
15
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CbmGroupModel } from '@models/group.domain.model';
|
|
2
2
|
import { ICbmGroupInfrastructureRepository } from '@repositories/group.infrastructure.repository';
|
|
3
|
-
import { CbmGroupInfrastructureService } from '@services/group.infrastructure.service';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmGroupDomainRepository implements ICbmGroupInfrastructureRepository {
|
|
6
5
|
private readonly service;
|
|
7
|
-
constructor(service:
|
|
6
|
+
constructor(service: ICbmGroupInfrastructureRepository);
|
|
8
7
|
list(params: CbmGroupModel.ListParams): Observable<CbmGroupModel.ListResponse>;
|
|
9
8
|
listAsTree(params: CbmGroupModel.ListAsTreeParams): Observable<CbmGroupModel.ListAsTreeResponse>;
|
|
10
9
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { CbmHistoryModel } from
|
|
2
|
-
import { ICbmHistoryInfrastructureRepository } from
|
|
3
|
-
import { Observable } from
|
|
4
|
-
import { CbmHistoryInfrastructureService } from "@services/history.infrastructure.service";
|
|
1
|
+
import { CbmHistoryModel } from '../models/history.domain.model';
|
|
2
|
+
import { ICbmHistoryInfrastructureRepository } from '@repositories/history.infrastructure.repository';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmHistoryDomainRepository implements ICbmHistoryInfrastructureRepository {
|
|
6
5
|
private readonly apiHistoryService;
|
|
7
|
-
constructor(apiHistoryService:
|
|
6
|
+
constructor(apiHistoryService: ICbmHistoryInfrastructureRepository);
|
|
8
7
|
list(params: CbmHistoryModel.ListParams): Observable<CbmHistoryModel.ListResponse>;
|
|
9
8
|
validatePartner(params: CbmHistoryModel.ValidatePartnerParams): Observable<CbmHistoryModel.ConfirmResponse>;
|
|
10
9
|
validateItemKitService(params: CbmHistoryModel.ValidateItemKitServiceParams): Observable<CbmHistoryModel.ConfirmResponse>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { CbmItemModel } from '@models/item.domain.model';
|
|
3
3
|
import { ICbmItemInfrastructureRepository } from '@repositories/item.infrastructure.repository';
|
|
4
|
-
import { CbmItemInfrastructureService } from '@services/item.infrastructure.service';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
export declare class CbmItemDomainRepository implements ICbmItemInfrastructureRepository {
|
|
7
6
|
private service;
|
|
8
|
-
constructor(service:
|
|
7
|
+
constructor(service: ICbmItemInfrastructureRepository);
|
|
9
8
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
10
9
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
10
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CbmPriceListModel } from '@models/price-list.domain.model';
|
|
2
2
|
import { ICbmPriceListInfrastructureRepository } from '@repositories/price-list.infrastructure.repository';
|
|
3
|
-
import { CbmPriceListInfrastructureService } from '@services/price-list.infrastructure.service';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmPriceListDomainRepository implements ICbmPriceListInfrastructureRepository {
|
|
6
5
|
private readonly service;
|
|
7
|
-
constructor(service:
|
|
6
|
+
constructor(service: ICbmPriceListInfrastructureRepository);
|
|
8
7
|
list(params: CbmPriceListModel.ListParams): Observable<CbmPriceListModel.ListResponse>;
|
|
9
8
|
getOne(id: string): Observable<CbmPriceListModel.GetOne>;
|
|
10
9
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { CbmReportFinancialsModel } from '@models/report-financials.domain.model';
|
|
3
3
|
import { ICbmReportFinancialsInfrastructureRepository } from '@repositories/report-financials.infrastructure.repository';
|
|
4
|
-
import { CbmReportFinancialsInfrastructureService } from '@services/report-financials.infrastructure.service';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
export declare class CbmReportFinancialsDomainRepository implements ICbmReportFinancialsInfrastructureRepository {
|
|
7
6
|
private readonly service;
|
|
8
|
-
constructor(service:
|
|
7
|
+
constructor(service: ICbmReportFinancialsInfrastructureRepository);
|
|
9
8
|
downloadExcelFixedAssetsReport(params: CbmReportFinancialsModel.DownloadExcelFixedAssetsReportParams): Observable<CbmReportFinancialsModel.ConfirmResponse>;
|
|
10
9
|
downloadPdfFixedAssetsReport(params: CbmReportFinancialsModel.DownloadPdfFixedAssetsReportParams): Observable<CbmReportFinancialsModel.ConfirmResponse>;
|
|
11
10
|
downloadExcelDepreciationFixedAssetsReport(params: CbmReportFinancialsModel.DownloadExcelDepreciationFixedAssetsReportParams): Observable<CbmReportFinancialsModel.ConfirmResponse>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { CbmSeatModel } from '@models/seat.domain.model';
|
|
3
3
|
import { ICbmSeatInfrastructureRepository } from '@repositories/seat.infrastructure.repository';
|
|
4
|
-
import { CbmSeatInfrastructureService } from '@services/seat.infrastructure.service';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
export declare class CbmSeatDomainRepository implements ICbmSeatInfrastructureRepository {
|
|
7
6
|
private readonly service;
|
|
8
|
-
constructor(service:
|
|
7
|
+
constructor(service: ICbmSeatInfrastructureRepository);
|
|
9
8
|
list(params: CbmSeatModel.ListParams): Observable<CbmSeatModel.ListResponse>;
|
|
10
9
|
getOne(id: string): Observable<CbmSeatModel.GetOneResponse>;
|
|
11
10
|
save(data: CbmSeatModel.SaveBody): Observable<CbmSeatModel.ConfirmResponse>;
|