@cbm-common/cbm-types 0.0.52 → 0.0.54
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/domain/models/account-group.domain.model.d.ts +85 -0
- package/lib/domain/models/account-template.domain.model.d.ts +124 -0
- package/lib/domain/models/module-detail.domain.model.d.ts +155 -0
- package/lib/domain/models/module.domain.model.d.ts +266 -0
- package/lib/domain/models/money.domain.model.d.ts +28 -0
- package/lib/domain/models/role.domain.model.d.ts +175 -0
- package/lib/domain/models/unit-measure.domain.model.d.ts +57 -0
- package/lib/domain/repositories/account-group.domain.repository.d.ts +13 -0
- package/lib/domain/repositories/account-template.domain.repository.d.ts +17 -0
- package/lib/domain/repositories/module-detail.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/module.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/money.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/role.domain.repository.d.ts +17 -0
- package/lib/domain/repositories/unit-measure.domain.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/account-group.infrastructure.repository.d.ts +10 -0
- package/lib/infrastructure/repositories/account-template.infrastructure.repository.d.ts +14 -0
- package/lib/infrastructure/repositories/module-detail.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/module.infrastructure.repository.d.ts +12 -0
- package/lib/infrastructure/repositories/money.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/role.infrastructure.repository.d.ts +14 -0
- package/lib/infrastructure/repositories/unit-measure.infrastructure.repository.d.ts +10 -0
- package/lib/infrastructure/services/account-group.infrastructure.service.d.ts +15 -0
- package/lib/infrastructure/services/account-template.infrastructure.service.d.ts +18 -0
- package/lib/infrastructure/services/module-detail.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/module.infrastructure.service.d.ts +17 -0
- package/lib/infrastructure/services/money.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/role.infrastructure.service.d.ts +19 -0
- package/lib/infrastructure/services/unit-measure.infrastructure.service.d.ts +14 -0
- package/lib/remotes/repositories/account-group.repository.d.ts +3 -0
- package/lib/remotes/repositories/account-template.repository.d.ts +3 -0
- package/lib/remotes/repositories/module-detail.repository.d.ts +3 -0
- package/lib/remotes/repositories/module.repository.d.ts +3 -0
- package/lib/remotes/repositories/money.repository.d.ts +3 -0
- package/lib/remotes/repositories/role.repository.d.ts +3 -0
- package/lib/remotes/repositories/unit-measure.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +31 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare namespace CbmAccountGroupModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
country_id?: string;
|
|
15
|
+
code?: number;
|
|
16
|
+
name?: string;
|
|
17
|
+
type?: string;
|
|
18
|
+
debit?: boolean;
|
|
19
|
+
credit?: boolean;
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
deleted?: boolean;
|
|
22
|
+
created_at?: number;
|
|
23
|
+
created_user?: string;
|
|
24
|
+
updated_at?: number;
|
|
25
|
+
updated_user?: string;
|
|
26
|
+
deleted_at: number;
|
|
27
|
+
disabled_reason: string;
|
|
28
|
+
user_inactive_at: number;
|
|
29
|
+
user_inactive_id: string;
|
|
30
|
+
user_inactive_name: string;
|
|
31
|
+
user_active_at: number;
|
|
32
|
+
user_active_id: string;
|
|
33
|
+
user_active_name: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
interface GetOneResponse {
|
|
37
|
+
success: boolean;
|
|
38
|
+
data: GetOneResponse.Data;
|
|
39
|
+
}
|
|
40
|
+
namespace GetOneResponse {
|
|
41
|
+
interface Data {
|
|
42
|
+
_id: string;
|
|
43
|
+
country?: string;
|
|
44
|
+
country_id?: string;
|
|
45
|
+
code?: number;
|
|
46
|
+
name?: string;
|
|
47
|
+
type?: string;
|
|
48
|
+
debit?: boolean;
|
|
49
|
+
credit?: boolean;
|
|
50
|
+
enabled?: boolean;
|
|
51
|
+
deleted?: boolean;
|
|
52
|
+
created_at?: number;
|
|
53
|
+
created_user?: string;
|
|
54
|
+
updated_at?: number;
|
|
55
|
+
updated_user?: string;
|
|
56
|
+
deleted_at?: number;
|
|
57
|
+
disabled_reason?: string;
|
|
58
|
+
user_inactive_at?: number;
|
|
59
|
+
user_inactive_id?: string;
|
|
60
|
+
user_inactive_name?: string;
|
|
61
|
+
user_active_at?: number;
|
|
62
|
+
user_active_id?: string;
|
|
63
|
+
user_active_name?: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
interface SaveBody {
|
|
67
|
+
code: number;
|
|
68
|
+
name: string;
|
|
69
|
+
type: string;
|
|
70
|
+
}
|
|
71
|
+
interface UpdateBody {
|
|
72
|
+
code?: number;
|
|
73
|
+
name?: string;
|
|
74
|
+
type?: string;
|
|
75
|
+
}
|
|
76
|
+
interface ChangeStatusBody {
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
disabled_reason?: string;
|
|
79
|
+
}
|
|
80
|
+
interface ConfirmResponse {
|
|
81
|
+
success: boolean;
|
|
82
|
+
message: string;
|
|
83
|
+
data?: any;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export declare namespace CbmAccountTemplateModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
deleted?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface ListResponse {
|
|
10
|
+
success: boolean;
|
|
11
|
+
pageNum: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
pages: number;
|
|
14
|
+
total: number;
|
|
15
|
+
items: ListResponse.Item[];
|
|
16
|
+
}
|
|
17
|
+
namespace ListResponse {
|
|
18
|
+
interface Item {
|
|
19
|
+
_id: string;
|
|
20
|
+
country_id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
created_user?: string;
|
|
25
|
+
created_at?: number;
|
|
26
|
+
details?: Item.Detail[];
|
|
27
|
+
updated_at?: number;
|
|
28
|
+
updated_user?: string;
|
|
29
|
+
deleted_at?: number;
|
|
30
|
+
disabled_reason?: string;
|
|
31
|
+
user_inactive_at?: number;
|
|
32
|
+
user_inactive_id?: string;
|
|
33
|
+
user_inactive_name?: string;
|
|
34
|
+
user_active_at?: number;
|
|
35
|
+
user_active_id?: string;
|
|
36
|
+
user_active_name?: string;
|
|
37
|
+
deleted_user?: string;
|
|
38
|
+
}
|
|
39
|
+
namespace Item {
|
|
40
|
+
interface Detail {
|
|
41
|
+
_id: string;
|
|
42
|
+
account_template_id?: string;
|
|
43
|
+
account_group_id?: string;
|
|
44
|
+
code?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
code_father?: string;
|
|
47
|
+
level?: number;
|
|
48
|
+
move?: boolean;
|
|
49
|
+
confidential?: boolean;
|
|
50
|
+
description?: string;
|
|
51
|
+
created_user?: string;
|
|
52
|
+
created_at?: number;
|
|
53
|
+
updated_at?: number;
|
|
54
|
+
updated_user?: string;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
interface GetOneResponse {
|
|
59
|
+
success: boolean;
|
|
60
|
+
data: GetOneResponse.Data;
|
|
61
|
+
}
|
|
62
|
+
namespace GetOneResponse {
|
|
63
|
+
interface Data {
|
|
64
|
+
_id: string;
|
|
65
|
+
country_id?: string;
|
|
66
|
+
name?: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
enabled?: boolean;
|
|
69
|
+
created_user?: string;
|
|
70
|
+
created_at?: number;
|
|
71
|
+
updated_at?: number;
|
|
72
|
+
updated_user?: string;
|
|
73
|
+
account_template_detail?: Data.AccountTemplateDetail[];
|
|
74
|
+
deleted: boolean;
|
|
75
|
+
deleted_at: number;
|
|
76
|
+
disabled_reason: string;
|
|
77
|
+
user_inactive_at: number;
|
|
78
|
+
user_inactive_id: string;
|
|
79
|
+
user_inactive_name: string;
|
|
80
|
+
user_active_at: number;
|
|
81
|
+
user_active_id: string;
|
|
82
|
+
user_active_name: string;
|
|
83
|
+
}
|
|
84
|
+
namespace Data {
|
|
85
|
+
interface AccountTemplateDetail {
|
|
86
|
+
_id: string;
|
|
87
|
+
account_template_id?: string;
|
|
88
|
+
account_group_id?: string;
|
|
89
|
+
code?: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
code_father?: string;
|
|
92
|
+
level?: number;
|
|
93
|
+
move?: boolean;
|
|
94
|
+
confidential?: boolean;
|
|
95
|
+
created_user?: string;
|
|
96
|
+
created_at?: number;
|
|
97
|
+
updated_at?: number;
|
|
98
|
+
updated_user?: string;
|
|
99
|
+
description: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
interface SaveBody {
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
}
|
|
107
|
+
interface UpdateBody {
|
|
108
|
+
name?: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
}
|
|
111
|
+
interface ChangeStatusBody {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
disabled_reason?: string;
|
|
114
|
+
}
|
|
115
|
+
interface DownloadExcelParams {
|
|
116
|
+
enabled?: boolean;
|
|
117
|
+
filter?: string;
|
|
118
|
+
}
|
|
119
|
+
interface ConfirmResponse {
|
|
120
|
+
success: boolean;
|
|
121
|
+
message: string;
|
|
122
|
+
data?: any;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export declare namespace CbmModuleDetailModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
name?: string;
|
|
4
|
+
module_id?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
module_name: string;
|
|
14
|
+
module_code: string;
|
|
15
|
+
_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
module_id: string;
|
|
18
|
+
code: string;
|
|
19
|
+
description: string;
|
|
20
|
+
option_create: boolean;
|
|
21
|
+
option_update: boolean;
|
|
22
|
+
option_list: boolean;
|
|
23
|
+
option_view: boolean;
|
|
24
|
+
option_reverse: boolean;
|
|
25
|
+
option_delete: boolean;
|
|
26
|
+
router: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
deleted: boolean;
|
|
30
|
+
created_at: number;
|
|
31
|
+
deleted_at?: number;
|
|
32
|
+
updated_at?: number;
|
|
33
|
+
updated_user?: string;
|
|
34
|
+
disabled_reason?: string;
|
|
35
|
+
user_inactive_at: number;
|
|
36
|
+
user_inactive_id: string;
|
|
37
|
+
user_inactive_name: string;
|
|
38
|
+
user_active_at: number;
|
|
39
|
+
user_active_id: string;
|
|
40
|
+
user_active_name: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface ListByModuleIdParams {
|
|
44
|
+
name?: string;
|
|
45
|
+
}
|
|
46
|
+
interface ListByModuleIdResponse {
|
|
47
|
+
success: boolean;
|
|
48
|
+
data: ListByModuleIdResponse.Data[];
|
|
49
|
+
}
|
|
50
|
+
namespace ListByModuleIdResponse {
|
|
51
|
+
interface Data {
|
|
52
|
+
module_name: string;
|
|
53
|
+
module_code: string;
|
|
54
|
+
_id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
module_id: string;
|
|
57
|
+
code: string;
|
|
58
|
+
description: string;
|
|
59
|
+
option_create: boolean;
|
|
60
|
+
option_update: boolean;
|
|
61
|
+
option_list: boolean;
|
|
62
|
+
option_view: boolean;
|
|
63
|
+
option_reverse: boolean;
|
|
64
|
+
option_delete: boolean;
|
|
65
|
+
router: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
deleted: boolean;
|
|
69
|
+
created_at: number;
|
|
70
|
+
deleted_at?: number;
|
|
71
|
+
updated_at?: number;
|
|
72
|
+
updated_user?: string;
|
|
73
|
+
disabled_reason?: string;
|
|
74
|
+
user_inactive_at: number;
|
|
75
|
+
user_inactive_id: string;
|
|
76
|
+
user_inactive_name: string;
|
|
77
|
+
user_active_at: number;
|
|
78
|
+
user_active_id: string;
|
|
79
|
+
user_active_name: string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
interface GetOneResponse {
|
|
83
|
+
success: boolean;
|
|
84
|
+
data: GetOneResponse.Data;
|
|
85
|
+
}
|
|
86
|
+
namespace GetOneResponse {
|
|
87
|
+
interface Data {
|
|
88
|
+
_id: string;
|
|
89
|
+
name?: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
code?: string;
|
|
92
|
+
module_id?: string;
|
|
93
|
+
option_create?: boolean;
|
|
94
|
+
option_update?: boolean;
|
|
95
|
+
option_list?: boolean;
|
|
96
|
+
option_view?: boolean;
|
|
97
|
+
option_reverse?: boolean;
|
|
98
|
+
option_delete?: boolean;
|
|
99
|
+
router?: string;
|
|
100
|
+
icon?: string;
|
|
101
|
+
enabled?: boolean;
|
|
102
|
+
created_at?: number;
|
|
103
|
+
created_user?: string;
|
|
104
|
+
updated_at?: number;
|
|
105
|
+
deleted: boolean;
|
|
106
|
+
deleted_at?: number;
|
|
107
|
+
disabled_reason?: string;
|
|
108
|
+
module_name?: string;
|
|
109
|
+
module_code?: string;
|
|
110
|
+
user_inactive_at?: number;
|
|
111
|
+
user_inactive_id?: string;
|
|
112
|
+
user_inactive_name?: string;
|
|
113
|
+
user_active_at?: number;
|
|
114
|
+
user_active_id?: string;
|
|
115
|
+
user_active_name?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
interface SaveBody {
|
|
119
|
+
name: string;
|
|
120
|
+
code: string;
|
|
121
|
+
description: string;
|
|
122
|
+
module_id?: string;
|
|
123
|
+
option_create?: boolean;
|
|
124
|
+
option_update?: boolean;
|
|
125
|
+
option_list?: boolean;
|
|
126
|
+
option_view?: boolean;
|
|
127
|
+
option_reverse?: boolean;
|
|
128
|
+
option_delete?: boolean;
|
|
129
|
+
router?: string;
|
|
130
|
+
icon?: string;
|
|
131
|
+
}
|
|
132
|
+
interface UpdateBody {
|
|
133
|
+
name?: string;
|
|
134
|
+
code?: string;
|
|
135
|
+
description?: string;
|
|
136
|
+
module_id?: string;
|
|
137
|
+
option_create?: boolean;
|
|
138
|
+
option_update?: boolean;
|
|
139
|
+
option_list?: boolean;
|
|
140
|
+
option_view?: boolean;
|
|
141
|
+
option_reverse?: boolean;
|
|
142
|
+
option_delete?: boolean;
|
|
143
|
+
router?: string;
|
|
144
|
+
icon?: string;
|
|
145
|
+
}
|
|
146
|
+
interface ChangeStatusBody {
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
disabled_reason?: string;
|
|
149
|
+
}
|
|
150
|
+
interface ConfirmResponse {
|
|
151
|
+
success: boolean;
|
|
152
|
+
message: string;
|
|
153
|
+
data?: any;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
export type IType = 'general' | 'country';
|
|
2
|
+
export declare namespace CbmModuleModel {
|
|
3
|
+
interface ListParams {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ListResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
data: ListResponse.Data[];
|
|
11
|
+
}
|
|
12
|
+
namespace ListResponse {
|
|
13
|
+
interface Data {
|
|
14
|
+
_id: string;
|
|
15
|
+
country_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
code: string;
|
|
18
|
+
description: string;
|
|
19
|
+
host: string;
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
created_at: string;
|
|
22
|
+
created_user: string;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
updated_user: string;
|
|
25
|
+
module_detail: Data.Detail[];
|
|
26
|
+
deleted_at: number;
|
|
27
|
+
disabled_reason?: string;
|
|
28
|
+
user_inactive_at?: number;
|
|
29
|
+
user_inactive_id?: string;
|
|
30
|
+
user_inactive_name?: string;
|
|
31
|
+
user_active_at?: number;
|
|
32
|
+
user_active_id?: string;
|
|
33
|
+
user_active_name?: string;
|
|
34
|
+
type?: IType;
|
|
35
|
+
country_code?: string;
|
|
36
|
+
country_name?: string;
|
|
37
|
+
country_short_name?: string;
|
|
38
|
+
}
|
|
39
|
+
namespace Data {
|
|
40
|
+
interface Detail {
|
|
41
|
+
_id: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
module_id?: string;
|
|
45
|
+
option_create?: boolean;
|
|
46
|
+
option_update?: boolean;
|
|
47
|
+
option_delete?: boolean;
|
|
48
|
+
option_list?: boolean;
|
|
49
|
+
option_view?: boolean;
|
|
50
|
+
option_reverse?: boolean;
|
|
51
|
+
router?: string;
|
|
52
|
+
icon?: string;
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
created_at?: number;
|
|
55
|
+
created_user?: string;
|
|
56
|
+
updated_at?: number;
|
|
57
|
+
updated_user?: string;
|
|
58
|
+
code?: string;
|
|
59
|
+
deleted_at?: number;
|
|
60
|
+
deleted_user?: string;
|
|
61
|
+
disabled_reason?: string;
|
|
62
|
+
user_inactive_at?: number;
|
|
63
|
+
user_inactive_id?: string;
|
|
64
|
+
user_inactive_name?: string;
|
|
65
|
+
user_active_at?: number;
|
|
66
|
+
user_active_id?: string;
|
|
67
|
+
user_active_name?: string;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
interface ListAllResponse {
|
|
72
|
+
success: boolean;
|
|
73
|
+
data: ListAllResponse.Data[];
|
|
74
|
+
}
|
|
75
|
+
namespace ListAllResponse {
|
|
76
|
+
interface Data {
|
|
77
|
+
_id: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
code?: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
host?: string;
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
created_at?: number;
|
|
84
|
+
created_user?: string;
|
|
85
|
+
updated_at?: number;
|
|
86
|
+
updated_user?: string;
|
|
87
|
+
module_detail_count?: number;
|
|
88
|
+
country_id: string;
|
|
89
|
+
deleted_at: number;
|
|
90
|
+
module_detail: ModuleDetailAll[];
|
|
91
|
+
}
|
|
92
|
+
interface ModuleDetailAll {
|
|
93
|
+
_id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
module_id: string;
|
|
96
|
+
code: string;
|
|
97
|
+
description: string;
|
|
98
|
+
option_create: boolean;
|
|
99
|
+
option_update: boolean;
|
|
100
|
+
option_list: boolean;
|
|
101
|
+
option_view: boolean;
|
|
102
|
+
option_reverse: boolean;
|
|
103
|
+
option_delete: boolean;
|
|
104
|
+
router: string;
|
|
105
|
+
icon: string;
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
deleted: boolean;
|
|
108
|
+
created_at: number;
|
|
109
|
+
deleted_at: number;
|
|
110
|
+
updated_at?: number;
|
|
111
|
+
updated_user?: string;
|
|
112
|
+
disabled_reason?: string;
|
|
113
|
+
user_inactive_at?: number;
|
|
114
|
+
user_inactive_id?: string;
|
|
115
|
+
user_inactive_name?: string;
|
|
116
|
+
user_active_at?: number;
|
|
117
|
+
user_active_id?: string;
|
|
118
|
+
user_active_name?: string;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
interface ListPaginatedParams {
|
|
122
|
+
page: number;
|
|
123
|
+
size: number;
|
|
124
|
+
country_id?: string;
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
code?: string;
|
|
127
|
+
name?: string;
|
|
128
|
+
}
|
|
129
|
+
interface ListPaginatedResponse {
|
|
130
|
+
success: boolean;
|
|
131
|
+
pageNum: number;
|
|
132
|
+
pageSize: number;
|
|
133
|
+
pages: number;
|
|
134
|
+
total: number;
|
|
135
|
+
items: ListPaginatedResponse.Items[];
|
|
136
|
+
}
|
|
137
|
+
namespace ListPaginatedResponse {
|
|
138
|
+
interface Items {
|
|
139
|
+
_id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
code: string;
|
|
142
|
+
description: string;
|
|
143
|
+
host: string;
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
created_at: number;
|
|
146
|
+
created_user?: string;
|
|
147
|
+
deleted_at: number;
|
|
148
|
+
type?: string;
|
|
149
|
+
country_id?: string;
|
|
150
|
+
country_code?: string;
|
|
151
|
+
country_name?: string;
|
|
152
|
+
country_short_name?: string;
|
|
153
|
+
period_id?: string;
|
|
154
|
+
updated_at?: number;
|
|
155
|
+
disabled_reason?: string;
|
|
156
|
+
updated_user?: string;
|
|
157
|
+
user_inactive_at?: number;
|
|
158
|
+
user_inactive_id?: string;
|
|
159
|
+
user_inactive_name?: string;
|
|
160
|
+
user_active_at?: number;
|
|
161
|
+
user_active_id?: string;
|
|
162
|
+
user_active_name?: string;
|
|
163
|
+
module_detail: Data.Detail[];
|
|
164
|
+
}
|
|
165
|
+
namespace Data {
|
|
166
|
+
interface Detail {
|
|
167
|
+
_id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
module_id: string;
|
|
170
|
+
code: string;
|
|
171
|
+
description: string;
|
|
172
|
+
option_create: boolean;
|
|
173
|
+
option_update: boolean;
|
|
174
|
+
option_list: boolean;
|
|
175
|
+
option_view: boolean;
|
|
176
|
+
option_reverse: boolean;
|
|
177
|
+
option_delete: boolean;
|
|
178
|
+
router: string;
|
|
179
|
+
icon: string;
|
|
180
|
+
enabled: boolean;
|
|
181
|
+
created_at: number;
|
|
182
|
+
deleted_at: number;
|
|
183
|
+
created_user?: string;
|
|
184
|
+
updated_at?: number;
|
|
185
|
+
updated_user?: string;
|
|
186
|
+
deleted_user?: string;
|
|
187
|
+
disabled_reason?: string;
|
|
188
|
+
user_inactive_at?: number;
|
|
189
|
+
user_inactive_id?: string;
|
|
190
|
+
user_inactive_name?: string;
|
|
191
|
+
user_active_at?: number;
|
|
192
|
+
user_active_id?: string;
|
|
193
|
+
user_active_name?: string;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
interface GetOneResponse {
|
|
198
|
+
success: boolean;
|
|
199
|
+
data: GetOneResponse.Data;
|
|
200
|
+
}
|
|
201
|
+
namespace GetOneResponse {
|
|
202
|
+
interface Data {
|
|
203
|
+
_id: string;
|
|
204
|
+
name?: string;
|
|
205
|
+
code?: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
host?: string;
|
|
208
|
+
created_at?: number;
|
|
209
|
+
enabled?: boolean;
|
|
210
|
+
deleted?: boolean;
|
|
211
|
+
created_user?: string;
|
|
212
|
+
deleted_at?: number;
|
|
213
|
+
updated_at?: number;
|
|
214
|
+
disabled_reason?: string;
|
|
215
|
+
updated_user?: string;
|
|
216
|
+
user_inactive_at?: number;
|
|
217
|
+
user_inactive_id?: string;
|
|
218
|
+
user_inactive_name?: string;
|
|
219
|
+
user_active_at?: number;
|
|
220
|
+
user_active_id?: string;
|
|
221
|
+
user_active_name?: string;
|
|
222
|
+
country_id?: string;
|
|
223
|
+
country_code?: string;
|
|
224
|
+
country_name?: string;
|
|
225
|
+
country_short_name?: string;
|
|
226
|
+
period_id?: string;
|
|
227
|
+
period_year?: string;
|
|
228
|
+
type?: IType;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
interface SaveBody {
|
|
232
|
+
name: string;
|
|
233
|
+
code: string;
|
|
234
|
+
description: string;
|
|
235
|
+
host: string;
|
|
236
|
+
country_id?: string;
|
|
237
|
+
country_code?: string;
|
|
238
|
+
country_name?: string;
|
|
239
|
+
country_short_name?: string;
|
|
240
|
+
period_id?: string;
|
|
241
|
+
period_year?: string;
|
|
242
|
+
type?: IType;
|
|
243
|
+
}
|
|
244
|
+
interface UpdateBody {
|
|
245
|
+
name?: string;
|
|
246
|
+
code?: string;
|
|
247
|
+
description?: string;
|
|
248
|
+
host?: string;
|
|
249
|
+
country_id?: string;
|
|
250
|
+
country_code?: string;
|
|
251
|
+
country_name?: string;
|
|
252
|
+
country_short_name?: string;
|
|
253
|
+
period_id?: string;
|
|
254
|
+
period_year?: string;
|
|
255
|
+
type?: IType;
|
|
256
|
+
}
|
|
257
|
+
interface ChangeStatusBody {
|
|
258
|
+
enabled: boolean;
|
|
259
|
+
disabled_reason?: string;
|
|
260
|
+
}
|
|
261
|
+
interface ConfirmResponse {
|
|
262
|
+
success: boolean;
|
|
263
|
+
message: string;
|
|
264
|
+
data?: any;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare namespace CbmMoneyModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
code?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
code: string;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
interface GetOneResponse {
|
|
18
|
+
success: boolean;
|
|
19
|
+
data: GetOneResponse.Data;
|
|
20
|
+
}
|
|
21
|
+
namespace GetOneResponse {
|
|
22
|
+
interface Data {
|
|
23
|
+
_id: string;
|
|
24
|
+
code: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|