@cbm-common/cbm-types 0.0.127 → 0.0.128
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/forbidden/forbidden.d.ts +12 -9
- package/lib/domain/models/unit-measure.domain.model.d.ts +39 -4
- package/lib/domain/repositories/unit-measure.domain.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/unit-measure.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/services/unit-measure.infrastructure.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { CanFormDirty } from '@cbm-common/guards-repository';
|
|
5
|
+
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
6
|
+
import { CbmRecordDetailMetadataModel } from '../record-detail-metadata/types';
|
|
7
|
+
export declare class CbmForbidden implements OnInit, CanFormDirty {
|
|
6
8
|
private readonly location;
|
|
7
9
|
private readonly router;
|
|
8
|
-
private readonly
|
|
9
|
-
constructor(location: Location, router: Router,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected
|
|
10
|
+
private readonly route;
|
|
11
|
+
constructor(location: Location, router: Router, route: ActivatedRoute);
|
|
12
|
+
disableGuard: boolean;
|
|
13
|
+
formDirty: () => boolean;
|
|
14
|
+
modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
15
|
+
protected metadata: import("@angular/core").WritableSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
14
16
|
protected goBack(): void;
|
|
15
17
|
ngOnInit(): void;
|
|
18
|
+
setMetadata(metadata: CbmRecordDetailMetadataModel.metadata): void;
|
|
16
19
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare namespace CbmUnitMeasureModel {
|
|
2
2
|
interface ListParams {
|
|
3
|
+
deleted?: boolean;
|
|
3
4
|
enabled?: boolean;
|
|
5
|
+
code?: string;
|
|
4
6
|
name?: string;
|
|
7
|
+
filter_text?: string;
|
|
5
8
|
}
|
|
6
9
|
interface ListResponse {
|
|
7
10
|
success: boolean;
|
|
@@ -10,12 +13,13 @@ export declare namespace CbmUnitMeasureModel {
|
|
|
10
13
|
namespace ListResponse {
|
|
11
14
|
interface Data {
|
|
12
15
|
_id: string;
|
|
13
|
-
company_id?: string;
|
|
14
16
|
name?: string;
|
|
15
17
|
code?: string;
|
|
16
18
|
enabled?: boolean;
|
|
17
|
-
|
|
19
|
+
deleted?: boolean;
|
|
18
20
|
created_user?: string;
|
|
21
|
+
created_at?: number;
|
|
22
|
+
company_id?: string;
|
|
19
23
|
updated_at?: number;
|
|
20
24
|
updated_user?: string;
|
|
21
25
|
}
|
|
@@ -23,6 +27,33 @@ export declare namespace CbmUnitMeasureModel {
|
|
|
23
27
|
factor: number;
|
|
24
28
|
}
|
|
25
29
|
}
|
|
30
|
+
interface ListPaginatedParams {
|
|
31
|
+
page: number;
|
|
32
|
+
size: number;
|
|
33
|
+
filter_text?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
code?: string;
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
deleted?: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface ListPaginatedResponse {
|
|
40
|
+
success: boolean;
|
|
41
|
+
pageNum: number;
|
|
42
|
+
pageSize: number;
|
|
43
|
+
pages: number;
|
|
44
|
+
total: number;
|
|
45
|
+
items: ListPaginatedResponse.Items[];
|
|
46
|
+
}
|
|
47
|
+
namespace ListPaginatedResponse {
|
|
48
|
+
interface Items {
|
|
49
|
+
_id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
code: string;
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
created_user: string;
|
|
54
|
+
created_at: number;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
26
57
|
interface SaveBody {
|
|
27
58
|
name: string;
|
|
28
59
|
code: string;
|
|
@@ -38,12 +69,13 @@ export declare namespace CbmUnitMeasureModel {
|
|
|
38
69
|
namespace GetOneResponse {
|
|
39
70
|
interface Data {
|
|
40
71
|
_id?: string;
|
|
41
|
-
company_id?: string;
|
|
42
72
|
name?: string;
|
|
43
73
|
code?: string;
|
|
44
74
|
enabled?: boolean;
|
|
45
|
-
|
|
75
|
+
deleted?: boolean;
|
|
46
76
|
created_user?: string;
|
|
77
|
+
created_at?: number;
|
|
78
|
+
company_id?: string;
|
|
47
79
|
updated_at?: number;
|
|
48
80
|
updated_user?: string;
|
|
49
81
|
}
|
|
@@ -57,4 +89,7 @@ export declare namespace CbmUnitMeasureModel {
|
|
|
57
89
|
message: string;
|
|
58
90
|
data?: any;
|
|
59
91
|
}
|
|
92
|
+
interface Restore {
|
|
93
|
+
deleted: boolean;
|
|
94
|
+
}
|
|
60
95
|
}
|
|
@@ -10,4 +10,5 @@ export declare class CbmUnitMeasureRepository implements ICbmUnitMeasureReposito
|
|
|
10
10
|
update(id: string, data: CbmUnitMeasureModel.UpdateBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
11
11
|
changeStatus(id: string, data: CbmUnitMeasureModel.ChangeStatusBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
12
12
|
delete(id: string): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
13
|
+
restore(id: string, request: CbmUnitMeasureModel.Restore): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
13
14
|
}
|
|
@@ -7,4 +7,5 @@ export interface ICbmUnitMeasureRepository {
|
|
|
7
7
|
update(id: string, data: CbmUnitMeasureModel.UpdateBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
8
8
|
changeStatus(id: string, data: CbmUnitMeasureModel.ChangeStatusBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
9
9
|
delete(id: string): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
10
|
+
restore(id: string, request: CbmUnitMeasureModel.Restore): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
10
11
|
}
|
|
@@ -11,4 +11,5 @@ export declare class CbmUnitMeasureService {
|
|
|
11
11
|
update(id: string, data: CbmUnitMeasureModel.UpdateBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
12
12
|
changeStatus(id: string, data: CbmUnitMeasureModel.ChangeStatusBody): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
13
13
|
delete(id: string): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
14
|
+
restore(id: string, request: CbmUnitMeasureModel.Restore): Observable<CbmUnitMeasureModel.ConfirmResponse>;
|
|
14
15
|
}
|