@cbm-common/cbm-types 0.0.222 → 0.0.223
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/employee.domain.model.d.ts +176 -0
- package/lib/domain/models/employee.model.d.ts +176 -0
- package/lib/domain/models/marital-status.domain.model.d.ts +86 -0
- package/lib/domain/models/regions.domain.model.d.ts +86 -0
- package/lib/domain/models/type-of-disability.domain.model.d.ts +86 -0
- package/lib/domain/repositories/employee.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/marital-status.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/regions.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/type-of-disability.domain.repository.d.ts +14 -0
- package/lib/environments/environment.d.ts +1 -0
- package/lib/environments/environment.development.d.ts +1 -0
- package/lib/infrastructure/repositories/employee.infraestructure.repository.d.ts +12 -0
- package/lib/infrastructure/repositories/marital-status.infraestructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/regions.infraestructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/type-of-disability.infraestructure.repository.d.ts +11 -0
- package/lib/infrastructure/services/employee.infrastructure.service.d.ts +17 -0
- package/lib/infrastructure/services/marital-status.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/regions.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/type-of-disability.infrastructure.service.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +17 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare namespace CbmEmployeeModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
department_id?: string;
|
|
6
|
+
position_id?: string;
|
|
7
|
+
marital_status_id?: string;
|
|
8
|
+
document_type_id?: string;
|
|
9
|
+
name_surname?: string;
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
items: ListResponse.Data[];
|
|
15
|
+
}
|
|
16
|
+
namespace ListResponse {
|
|
17
|
+
interface Data {
|
|
18
|
+
_id: string;
|
|
19
|
+
company_id: string;
|
|
20
|
+
company_NIF: string;
|
|
21
|
+
company_trade_name: string;
|
|
22
|
+
company_business_name: string;
|
|
23
|
+
company_address: string;
|
|
24
|
+
company_logo: string;
|
|
25
|
+
country_id: string;
|
|
26
|
+
country_code: string;
|
|
27
|
+
country_name: string;
|
|
28
|
+
country_short_name: string;
|
|
29
|
+
period_id: string;
|
|
30
|
+
period_year: string;
|
|
31
|
+
department_id: string;
|
|
32
|
+
department_code: number;
|
|
33
|
+
department_name: string;
|
|
34
|
+
position_id: string;
|
|
35
|
+
position_code: number;
|
|
36
|
+
position_name: string;
|
|
37
|
+
marital_status_id: string;
|
|
38
|
+
marital_status_code: string;
|
|
39
|
+
marital_status_name: string;
|
|
40
|
+
document_type_id: string;
|
|
41
|
+
document_type_code: string;
|
|
42
|
+
document_type_name: string;
|
|
43
|
+
sequence_number: number;
|
|
44
|
+
document_number: string;
|
|
45
|
+
names: string;
|
|
46
|
+
surnames: string;
|
|
47
|
+
address: string;
|
|
48
|
+
phone_code: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
cellphone: string;
|
|
51
|
+
email: string[];
|
|
52
|
+
gender: string;
|
|
53
|
+
birthdate: number;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
deleted: boolean;
|
|
56
|
+
user_id: string;
|
|
57
|
+
created_user: string;
|
|
58
|
+
created_at: number;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
interface SaveBody {
|
|
62
|
+
company_NIF: string;
|
|
63
|
+
company_trade_name: string;
|
|
64
|
+
company_business_name: string;
|
|
65
|
+
company_address: string;
|
|
66
|
+
company_email?: string;
|
|
67
|
+
company_logo: string;
|
|
68
|
+
department_id: string;
|
|
69
|
+
department_code: number;
|
|
70
|
+
department_name: string;
|
|
71
|
+
position_id: string;
|
|
72
|
+
position_code: number;
|
|
73
|
+
position_name: string;
|
|
74
|
+
marital_status_id: string;
|
|
75
|
+
marital_status_code: string;
|
|
76
|
+
marital_status_name: string;
|
|
77
|
+
document_type_id: string;
|
|
78
|
+
document_type_code: string;
|
|
79
|
+
document_type_name: string;
|
|
80
|
+
document_number: string;
|
|
81
|
+
names: string;
|
|
82
|
+
surnames: string;
|
|
83
|
+
address: string;
|
|
84
|
+
phone_code: string;
|
|
85
|
+
phone: string;
|
|
86
|
+
cellphone: string;
|
|
87
|
+
email: string[];
|
|
88
|
+
email_business: string[];
|
|
89
|
+
gender: string;
|
|
90
|
+
birthdate: number;
|
|
91
|
+
}
|
|
92
|
+
interface UpdateBody {
|
|
93
|
+
company_NIF: string;
|
|
94
|
+
company_trade_name: string;
|
|
95
|
+
company_business_name: string;
|
|
96
|
+
company_address: string;
|
|
97
|
+
company_email?: string;
|
|
98
|
+
company_logo: string;
|
|
99
|
+
department_id: string;
|
|
100
|
+
department_code: number;
|
|
101
|
+
department_name: string;
|
|
102
|
+
position_id: string;
|
|
103
|
+
position_code: number;
|
|
104
|
+
position_name: string;
|
|
105
|
+
marital_status_id: string;
|
|
106
|
+
marital_status_code: string;
|
|
107
|
+
marital_status_name: string;
|
|
108
|
+
document_type_id: string;
|
|
109
|
+
document_type_code: string;
|
|
110
|
+
document_type_name: string;
|
|
111
|
+
document_number: string;
|
|
112
|
+
names: string;
|
|
113
|
+
surnames: string;
|
|
114
|
+
address: string;
|
|
115
|
+
phone_code: string;
|
|
116
|
+
phone: string;
|
|
117
|
+
cellphone: string;
|
|
118
|
+
email: string[];
|
|
119
|
+
email_business: string[];
|
|
120
|
+
gender: string;
|
|
121
|
+
birthdate: number;
|
|
122
|
+
}
|
|
123
|
+
interface GetOneResponse {
|
|
124
|
+
success: boolean;
|
|
125
|
+
data: GetOneResponse.Data;
|
|
126
|
+
}
|
|
127
|
+
namespace GetOneResponse {
|
|
128
|
+
interface Data {
|
|
129
|
+
_id: string;
|
|
130
|
+
company_id: string;
|
|
131
|
+
company_NIF: string;
|
|
132
|
+
company_trade_name: string;
|
|
133
|
+
company_business_name: string;
|
|
134
|
+
company_address: string;
|
|
135
|
+
company_logo: string;
|
|
136
|
+
country_id: string;
|
|
137
|
+
country_code: string;
|
|
138
|
+
country_name: string;
|
|
139
|
+
country_short_name: string;
|
|
140
|
+
period_id: string;
|
|
141
|
+
period_year: string;
|
|
142
|
+
department_id: string;
|
|
143
|
+
department_code: number;
|
|
144
|
+
department_name: string;
|
|
145
|
+
position_id: string;
|
|
146
|
+
position_code: number;
|
|
147
|
+
position_name: string;
|
|
148
|
+
marital_status_id: string;
|
|
149
|
+
marital_status_code: string;
|
|
150
|
+
marital_status_name: string;
|
|
151
|
+
document_type_id: string;
|
|
152
|
+
document_type_code: string;
|
|
153
|
+
document_type_name: string;
|
|
154
|
+
sequence_number: number;
|
|
155
|
+
document_number: string;
|
|
156
|
+
names: string;
|
|
157
|
+
surnames: string;
|
|
158
|
+
address: string;
|
|
159
|
+
phone_code: string;
|
|
160
|
+
phone: string;
|
|
161
|
+
cellphone: string;
|
|
162
|
+
email: string[];
|
|
163
|
+
emails_company: string[];
|
|
164
|
+
gender: string;
|
|
165
|
+
birthdate: number;
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
deleted: boolean;
|
|
168
|
+
user_id: string;
|
|
169
|
+
user_inactive_at: number;
|
|
170
|
+
disabled_reason: string;
|
|
171
|
+
user_inactive_name: string;
|
|
172
|
+
created_user: string;
|
|
173
|
+
created_at: number;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare namespace CbmEmployeeModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
department_id?: string;
|
|
6
|
+
position_id?: string;
|
|
7
|
+
marital_status_id?: string;
|
|
8
|
+
document_type_id?: string;
|
|
9
|
+
name_surname?: string;
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
items: ListResponse.Data[];
|
|
15
|
+
}
|
|
16
|
+
namespace ListResponse {
|
|
17
|
+
interface Data {
|
|
18
|
+
_id: string;
|
|
19
|
+
company_id: string;
|
|
20
|
+
company_NIF: string;
|
|
21
|
+
company_trade_name: string;
|
|
22
|
+
company_business_name: string;
|
|
23
|
+
company_address: string;
|
|
24
|
+
company_logo: string;
|
|
25
|
+
country_id: string;
|
|
26
|
+
country_code: string;
|
|
27
|
+
country_name: string;
|
|
28
|
+
country_short_name: string;
|
|
29
|
+
period_id: string;
|
|
30
|
+
period_year: string;
|
|
31
|
+
department_id: string;
|
|
32
|
+
department_code: number;
|
|
33
|
+
department_name: string;
|
|
34
|
+
position_id: string;
|
|
35
|
+
position_code: number;
|
|
36
|
+
position_name: string;
|
|
37
|
+
marital_status_id: string;
|
|
38
|
+
marital_status_code: string;
|
|
39
|
+
marital_status_name: string;
|
|
40
|
+
document_type_id: string;
|
|
41
|
+
document_type_code: string;
|
|
42
|
+
document_type_name: string;
|
|
43
|
+
sequence_number: number;
|
|
44
|
+
document_number: string;
|
|
45
|
+
names: string;
|
|
46
|
+
surnames: string;
|
|
47
|
+
address: string;
|
|
48
|
+
phone_code: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
cellphone: string;
|
|
51
|
+
email: string[];
|
|
52
|
+
gender: string;
|
|
53
|
+
birthdate: number;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
deleted: boolean;
|
|
56
|
+
user_id: string;
|
|
57
|
+
created_user: string;
|
|
58
|
+
created_at: number;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
interface SaveBody {
|
|
62
|
+
company_NIF: string;
|
|
63
|
+
company_trade_name: string;
|
|
64
|
+
company_business_name: string;
|
|
65
|
+
company_address: string;
|
|
66
|
+
company_email?: string;
|
|
67
|
+
company_logo: string;
|
|
68
|
+
department_id: string;
|
|
69
|
+
department_code: number;
|
|
70
|
+
department_name: string;
|
|
71
|
+
position_id: string;
|
|
72
|
+
position_code: number;
|
|
73
|
+
position_name: string;
|
|
74
|
+
marital_status_id: string;
|
|
75
|
+
marital_status_code: string;
|
|
76
|
+
marital_status_name: string;
|
|
77
|
+
document_type_id: string;
|
|
78
|
+
document_type_code: string;
|
|
79
|
+
document_type_name: string;
|
|
80
|
+
document_number: string;
|
|
81
|
+
names: string;
|
|
82
|
+
surnames: string;
|
|
83
|
+
address: string;
|
|
84
|
+
phone_code: string;
|
|
85
|
+
phone: string;
|
|
86
|
+
cellphone: string;
|
|
87
|
+
email: string[];
|
|
88
|
+
email_business: string[];
|
|
89
|
+
gender: string;
|
|
90
|
+
birthdate: number;
|
|
91
|
+
}
|
|
92
|
+
interface UpdateBody {
|
|
93
|
+
company_NIF: string;
|
|
94
|
+
company_trade_name: string;
|
|
95
|
+
company_business_name: string;
|
|
96
|
+
company_address: string;
|
|
97
|
+
company_email?: string;
|
|
98
|
+
company_logo: string;
|
|
99
|
+
department_id: string;
|
|
100
|
+
department_code: number;
|
|
101
|
+
department_name: string;
|
|
102
|
+
position_id: string;
|
|
103
|
+
position_code: number;
|
|
104
|
+
position_name: string;
|
|
105
|
+
marital_status_id: string;
|
|
106
|
+
marital_status_code: string;
|
|
107
|
+
marital_status_name: string;
|
|
108
|
+
document_type_id: string;
|
|
109
|
+
document_type_code: string;
|
|
110
|
+
document_type_name: string;
|
|
111
|
+
document_number: string;
|
|
112
|
+
names: string;
|
|
113
|
+
surnames: string;
|
|
114
|
+
address: string;
|
|
115
|
+
phone_code: string;
|
|
116
|
+
phone: string;
|
|
117
|
+
cellphone: string;
|
|
118
|
+
email: string[];
|
|
119
|
+
email_business: string[];
|
|
120
|
+
gender: string;
|
|
121
|
+
birthdate: number;
|
|
122
|
+
}
|
|
123
|
+
interface GetOneResponse {
|
|
124
|
+
success: boolean;
|
|
125
|
+
data: GetOneResponse.Data;
|
|
126
|
+
}
|
|
127
|
+
namespace GetOneResponse {
|
|
128
|
+
interface Data {
|
|
129
|
+
_id: string;
|
|
130
|
+
company_id: string;
|
|
131
|
+
company_NIF: string;
|
|
132
|
+
company_trade_name: string;
|
|
133
|
+
company_business_name: string;
|
|
134
|
+
company_address: string;
|
|
135
|
+
company_logo: string;
|
|
136
|
+
country_id: string;
|
|
137
|
+
country_code: string;
|
|
138
|
+
country_name: string;
|
|
139
|
+
country_short_name: string;
|
|
140
|
+
period_id: string;
|
|
141
|
+
period_year: string;
|
|
142
|
+
department_id: string;
|
|
143
|
+
department_code: number;
|
|
144
|
+
department_name: string;
|
|
145
|
+
position_id: string;
|
|
146
|
+
position_code: number;
|
|
147
|
+
position_name: string;
|
|
148
|
+
marital_status_id: string;
|
|
149
|
+
marital_status_code: string;
|
|
150
|
+
marital_status_name: string;
|
|
151
|
+
document_type_id: string;
|
|
152
|
+
document_type_code: string;
|
|
153
|
+
document_type_name: string;
|
|
154
|
+
sequence_number: number;
|
|
155
|
+
document_number: string;
|
|
156
|
+
names: string;
|
|
157
|
+
surnames: string;
|
|
158
|
+
address: string;
|
|
159
|
+
phone_code: string;
|
|
160
|
+
phone: string;
|
|
161
|
+
cellphone: string;
|
|
162
|
+
email: string[];
|
|
163
|
+
emails_company: string[];
|
|
164
|
+
gender: string;
|
|
165
|
+
birthdate: number;
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
deleted: boolean;
|
|
168
|
+
user_id: string;
|
|
169
|
+
user_inactive_at: number;
|
|
170
|
+
disabled_reason: string;
|
|
171
|
+
user_inactive_name: string;
|
|
172
|
+
created_user: string;
|
|
173
|
+
created_at: number;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare namespace CbmMaritalStatusModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
deleted?: boolean;
|
|
7
|
+
code?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pages: number;
|
|
15
|
+
total: number;
|
|
16
|
+
items: ListResponse.Data[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
_id: string;
|
|
21
|
+
country_id: string;
|
|
22
|
+
country_code: string;
|
|
23
|
+
country_name: string;
|
|
24
|
+
country_short_name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
description: string;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
user_id: string;
|
|
29
|
+
created_user: string;
|
|
30
|
+
created_at: number;
|
|
31
|
+
updated_at: number;
|
|
32
|
+
updated_user: string;
|
|
33
|
+
disabled_reason: string;
|
|
34
|
+
user_inactive_at: number;
|
|
35
|
+
user_inactive_id: string;
|
|
36
|
+
user_inactive_name: string;
|
|
37
|
+
user_active_at: number;
|
|
38
|
+
user_active_id: string;
|
|
39
|
+
user_active_name: string;
|
|
40
|
+
deleted_at: number;
|
|
41
|
+
deleted_user: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
interface SaveBody {
|
|
45
|
+
code: string;
|
|
46
|
+
description: string;
|
|
47
|
+
}
|
|
48
|
+
interface UpdateBody {
|
|
49
|
+
code: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}
|
|
52
|
+
interface GetOne {
|
|
53
|
+
success: boolean;
|
|
54
|
+
data: GetOne.Data;
|
|
55
|
+
}
|
|
56
|
+
namespace GetOne {
|
|
57
|
+
interface Data {
|
|
58
|
+
_id: string;
|
|
59
|
+
country_id: string;
|
|
60
|
+
country_code: string;
|
|
61
|
+
country_name: string;
|
|
62
|
+
country_short_name: string;
|
|
63
|
+
code: string;
|
|
64
|
+
description: string;
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
deleted: boolean;
|
|
67
|
+
user_id: string;
|
|
68
|
+
created_user: string;
|
|
69
|
+
created_at: number;
|
|
70
|
+
updated_at: number;
|
|
71
|
+
updated_user: string;
|
|
72
|
+
disabled_reason: string;
|
|
73
|
+
user_inactive_at: number;
|
|
74
|
+
user_inactive_id: string;
|
|
75
|
+
user_inactive_name: string;
|
|
76
|
+
user_active_at: number;
|
|
77
|
+
user_active_id: string;
|
|
78
|
+
user_active_name: string;
|
|
79
|
+
deleted_at: number;
|
|
80
|
+
deleted_user: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
interface Update {
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare namespace CbmRegionsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
deleted?: boolean;
|
|
7
|
+
code?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pages: number;
|
|
15
|
+
total: number;
|
|
16
|
+
items: ListResponse.Data[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
_id: string;
|
|
21
|
+
country_id: string;
|
|
22
|
+
country_code: string;
|
|
23
|
+
country_name: string;
|
|
24
|
+
country_short_name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
description: string;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
user_id: string;
|
|
29
|
+
created_user: string;
|
|
30
|
+
created_at: number;
|
|
31
|
+
updated_at: number;
|
|
32
|
+
updated_user: string;
|
|
33
|
+
disabled_reason: string;
|
|
34
|
+
user_inactive_at: number;
|
|
35
|
+
user_inactive_id: string;
|
|
36
|
+
user_inactive_name: string;
|
|
37
|
+
user_active_at: number;
|
|
38
|
+
user_active_id: string;
|
|
39
|
+
user_active_name: string;
|
|
40
|
+
deleted_at: number;
|
|
41
|
+
deleted_user: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
interface SaveBody {
|
|
45
|
+
code: string;
|
|
46
|
+
description: string;
|
|
47
|
+
}
|
|
48
|
+
interface UpdateBody {
|
|
49
|
+
code: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}
|
|
52
|
+
interface GetOne {
|
|
53
|
+
success: boolean;
|
|
54
|
+
data: GetOne.Data;
|
|
55
|
+
}
|
|
56
|
+
namespace GetOne {
|
|
57
|
+
interface Data {
|
|
58
|
+
_id: string;
|
|
59
|
+
country_id: string;
|
|
60
|
+
country_code: string;
|
|
61
|
+
country_name: string;
|
|
62
|
+
country_short_name: string;
|
|
63
|
+
code: string;
|
|
64
|
+
description: string;
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
deleted: boolean;
|
|
67
|
+
user_id: string;
|
|
68
|
+
created_user: string;
|
|
69
|
+
created_at: number;
|
|
70
|
+
updated_at: number;
|
|
71
|
+
updated_user: string;
|
|
72
|
+
disabled_reason: string;
|
|
73
|
+
user_inactive_at: number;
|
|
74
|
+
user_inactive_id: string;
|
|
75
|
+
user_inactive_name: string;
|
|
76
|
+
user_active_at: number;
|
|
77
|
+
user_active_id: string;
|
|
78
|
+
user_active_name: string;
|
|
79
|
+
deleted_at: number;
|
|
80
|
+
deleted_user: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
interface Update {
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare namespace CbmTypeOfDisabilityModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
deleted?: boolean;
|
|
7
|
+
code?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pages: number;
|
|
15
|
+
total: number;
|
|
16
|
+
items: ListResponse.Data[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Data {
|
|
20
|
+
_id: string;
|
|
21
|
+
country_id: string;
|
|
22
|
+
country_code: string;
|
|
23
|
+
country_name: string;
|
|
24
|
+
country_short_name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
description: string;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
user_id: string;
|
|
29
|
+
created_user: string;
|
|
30
|
+
created_at: number;
|
|
31
|
+
updated_at: number;
|
|
32
|
+
updated_user: string;
|
|
33
|
+
disabled_reason: string;
|
|
34
|
+
user_inactive_at: number;
|
|
35
|
+
user_inactive_id: string;
|
|
36
|
+
user_inactive_name: string;
|
|
37
|
+
user_active_at: number;
|
|
38
|
+
user_active_id: string;
|
|
39
|
+
user_active_name: string;
|
|
40
|
+
deleted_at: number;
|
|
41
|
+
deleted_user: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
interface SaveBody {
|
|
45
|
+
code: string;
|
|
46
|
+
description: string;
|
|
47
|
+
}
|
|
48
|
+
interface UpdateBody {
|
|
49
|
+
code: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}
|
|
52
|
+
interface GetOne {
|
|
53
|
+
success: boolean;
|
|
54
|
+
data: GetOne.Data;
|
|
55
|
+
}
|
|
56
|
+
namespace GetOne {
|
|
57
|
+
interface Data {
|
|
58
|
+
_id: string;
|
|
59
|
+
country_id: string;
|
|
60
|
+
country_code: string;
|
|
61
|
+
country_name: string;
|
|
62
|
+
country_short_name: string;
|
|
63
|
+
code: string;
|
|
64
|
+
description: string;
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
deleted: boolean;
|
|
67
|
+
user_id: string;
|
|
68
|
+
created_user: string;
|
|
69
|
+
created_at: number;
|
|
70
|
+
updated_at: number;
|
|
71
|
+
updated_user: string;
|
|
72
|
+
disabled_reason: string;
|
|
73
|
+
user_inactive_at: number;
|
|
74
|
+
user_inactive_id: string;
|
|
75
|
+
user_inactive_name: string;
|
|
76
|
+
user_active_at: number;
|
|
77
|
+
user_active_id: string;
|
|
78
|
+
user_active_name: string;
|
|
79
|
+
deleted_at: number;
|
|
80
|
+
deleted_user: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
interface Update {
|
|
84
|
+
description?: string;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmEmployeeModel } from '../models/employee.domain.model';
|
|
3
|
+
import { ICbmEmployeeInfraestructureRepository } from '../../infrastructure/repositories/employee.infraestructure.repository';
|
|
4
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
5
|
+
export declare class CbmEmployeeDomainRepository implements ICbmEmployeeInfraestructureRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: ICbmEmployeeInfraestructureRepository);
|
|
8
|
+
list(params: CbmEmployeeModel.ListParams): Observable<CbmEmployeeModel.ListResponse>;
|
|
9
|
+
save(request: CbmEmployeeModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, request: CbmEmployeeModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, request: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
getOne(id: string): Observable<CbmEmployeeModel.GetOneResponse>;
|
|
14
|
+
uploadPhoto(id: string, formData: FormData): Observable<CbmModuleModel.ConfirmResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ICbmMaritalStatusInfraestructureRepository } from '../../infrastructure/repositories/marital-status.infraestructure.repository';
|
|
4
|
+
import { CbmMaritalStatusModel } from '../models/marital-status.domain.model';
|
|
5
|
+
export declare class CbmMaritalStatusDomainRepository implements ICbmMaritalStatusInfraestructureRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: ICbmMaritalStatusInfraestructureRepository);
|
|
8
|
+
list(params: CbmMaritalStatusModel.ListParams): Observable<CbmMaritalStatusModel.ListResponse>;
|
|
9
|
+
save(request: CbmMaritalStatusModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, request: CbmMaritalStatusModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, request: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
getOne(id: string): Observable<CbmMaritalStatusModel.GetOne>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmRegionsModel } from '../models/regions.domain.model';
|
|
3
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
4
|
+
import { ICbmRegionsInfraestructureRepository } from '../../infrastructure/repositories/regions.infraestructure.repository';
|
|
5
|
+
export declare class CbmRegionsDomainRepository implements ICbmRegionsInfraestructureRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: ICbmRegionsInfraestructureRepository);
|
|
8
|
+
list(params: CbmRegionsModel.ListParams): Observable<CbmRegionsModel.ListResponse>;
|
|
9
|
+
save(request: CbmRegionsModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, request: CbmRegionsModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, request: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
getOne(id: string): Observable<CbmRegionsModel.GetOne>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
3
|
+
import { CbmTypeOfDisabilityModel } from '../models/type-of-disability.domain.model';
|
|
4
|
+
import { ICbmTypeOfDisabilityInfraestructureRepository } from '../../infrastructure/repositories/type-of-disability.infraestructure.repository';
|
|
5
|
+
export declare class CbmTypeOfDisabilityDomainRepository implements ICbmTypeOfDisabilityInfraestructureRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: ICbmTypeOfDisabilityInfraestructureRepository);
|
|
8
|
+
list(params: CbmTypeOfDisabilityModel.ListParams): Observable<CbmTypeOfDisabilityModel.ListResponse>;
|
|
9
|
+
save(request: CbmTypeOfDisabilityModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, request: CbmTypeOfDisabilityModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, request: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
getOne(id: string): Observable<CbmTypeOfDisabilityModel.GetOne>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmEmployeeModel } from '../../domain/models/employee.domain.model';
|
|
3
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
4
|
+
export interface ICbmEmployeeInfraestructureRepository {
|
|
5
|
+
list(params: CbmEmployeeModel.ListParams): Observable<CbmEmployeeModel.ListResponse>;
|
|
6
|
+
save(params: CbmEmployeeModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, params: CbmEmployeeModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
8
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
9
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmEmployeeModel.GetOneResponse>;
|
|
11
|
+
uploadPhoto(id: string, formData: FormData): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmMaritalStatusModel } from '../../domain/models/marital-status.domain.model';
|
|
3
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
4
|
+
export interface ICbmMaritalStatusInfraestructureRepository {
|
|
5
|
+
list(params: CbmMaritalStatusModel.ListParams): Observable<CbmMaritalStatusModel.ListResponse>;
|
|
6
|
+
save(params: CbmMaritalStatusModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, params: CbmMaritalStatusModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
8
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
9
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmMaritalStatusModel.GetOne>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmModuleModel } from '../../domain/models/module.domain.model';
|
|
3
|
+
import { CbmRegionsModel } from '../../domain/models/regions.domain.model';
|
|
4
|
+
export interface ICbmRegionsInfraestructureRepository {
|
|
5
|
+
list(params: CbmRegionsModel.ListParams): Observable<CbmRegionsModel.ListResponse>;
|
|
6
|
+
save(params: CbmRegionsModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, params: CbmRegionsModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
8
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
9
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmRegionsModel.GetOne>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmTypeOfDisabilityModel } from '../../domain/models/type-of-disability.domain.model';
|
|
3
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
4
|
+
export interface ICbmTypeOfDisabilityInfraestructureRepository {
|
|
5
|
+
list(params: CbmTypeOfDisabilityModel.ListParams): Observable<CbmTypeOfDisabilityModel.ListResponse>;
|
|
6
|
+
save(params: CbmTypeOfDisabilityModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, params: CbmTypeOfDisabilityModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
8
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
9
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmTypeOfDisabilityModel.GetOne>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmEmployeeModel } from '../../domain/models/employee.domain.model';
|
|
4
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
5
|
+
import { ICbmEmployeeInfraestructureRepository } from '../repositories/employee.infraestructure.repository';
|
|
6
|
+
export declare class CbmEmployeeInfrastructureService implements ICbmEmployeeInfraestructureRepository {
|
|
7
|
+
private http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
private readonly url;
|
|
10
|
+
list(params: CbmEmployeeModel.ListParams): Observable<CbmEmployeeModel.ListResponse>;
|
|
11
|
+
save(params: CbmEmployeeModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, params: CbmEmployeeModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
15
|
+
getOne(id: string): Observable<CbmEmployeeModel.GetOneResponse>;
|
|
16
|
+
uploadPhoto(id: string, formData: FormData): Observable<CbmModuleModel.ConfirmResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmMaritalStatusModel } from '../../domain/models/marital-status.domain.model';
|
|
4
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
5
|
+
import { ICbmMaritalStatusInfraestructureRepository } from '../repositories/marital-status.infraestructure.repository';
|
|
6
|
+
export declare class CbmMaritalStatusInfrastructureService implements ICbmMaritalStatusInfraestructureRepository {
|
|
7
|
+
private http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
private readonly url;
|
|
10
|
+
list(params: CbmMaritalStatusModel.ListParams): Observable<CbmMaritalStatusModel.ListResponse>;
|
|
11
|
+
save(params: CbmMaritalStatusModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, params: CbmMaritalStatusModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
15
|
+
getOne(id: string): Observable<CbmMaritalStatusModel.GetOne>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmRegionsModel } from '../../domain/models/regions.domain.model';
|
|
4
|
+
import { ICbmRegionsInfraestructureRepository } from '../repositories/regions.infraestructure.repository';
|
|
5
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
6
|
+
export declare class CbmRegionsInfrastructureService implements ICbmRegionsInfraestructureRepository {
|
|
7
|
+
private http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
private readonly url;
|
|
10
|
+
list(params: CbmRegionsModel.ListParams): Observable<CbmRegionsModel.ListResponse>;
|
|
11
|
+
save(params: CbmRegionsModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, params: CbmRegionsModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
15
|
+
getOne(id: string): Observable<CbmRegionsModel.GetOne>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmTypeOfDisabilityModel } from '../../domain/models/type-of-disability.domain.model';
|
|
4
|
+
import { CbmModuleModel } from '@cbm-common/cbm-types';
|
|
5
|
+
import { ICbmTypeOfDisabilityInfraestructureRepository } from '../repositories/type-of-disability.infraestructure.repository';
|
|
6
|
+
export declare class CbmTypeOfDisabilityInfrastructureService implements ICbmTypeOfDisabilityInfraestructureRepository {
|
|
7
|
+
private http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
private readonly url;
|
|
10
|
+
list(params: CbmTypeOfDisabilityModel.ListParams): Observable<CbmTypeOfDisabilityModel.ListResponse>;
|
|
11
|
+
save(params: CbmTypeOfDisabilityModel.SaveBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, params: CbmTypeOfDisabilityModel.UpdateBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmModuleModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, params: CbmModuleModel.ChangeStatusBody): Observable<CbmModuleModel.ConfirmResponse>;
|
|
15
|
+
getOne(id: string): Observable<CbmTypeOfDisabilityModel.GetOne>;
|
|
16
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -46,6 +46,22 @@ export * from './lib/domain/models/user.domain.model';
|
|
|
46
46
|
export * from './lib/domain/repositories/alternative-item.domain.repository';
|
|
47
47
|
export * from './lib/domain/models/alternative-item.domain.model';
|
|
48
48
|
|
|
49
|
+
//#region employee repository
|
|
50
|
+
export * from './lib/domain/repositories/employee.domain.repository';
|
|
51
|
+
export * from './lib/domain/models/employee.domain.model';
|
|
52
|
+
|
|
53
|
+
//#region marital status repository
|
|
54
|
+
export * from './lib/domain/repositories/marital-status.domain.repository';
|
|
55
|
+
export * from './lib/domain/models/marital-status.domain.model';
|
|
56
|
+
|
|
57
|
+
//#region regions repository
|
|
58
|
+
export * from './lib/domain/repositories/regions.domain.repository';
|
|
59
|
+
export * from './lib/domain/models/regions.domain.model';
|
|
60
|
+
|
|
61
|
+
//#region type of disability repository
|
|
62
|
+
export * from './lib/domain/repositories/type-of-disability.domain.repository';
|
|
63
|
+
export * from './lib/domain/models/type-of-disability.domain.model';
|
|
64
|
+
|
|
49
65
|
//#region bank movements repository
|
|
50
66
|
export * from './lib/domain/repositories/bank-movements.domain.repository';
|
|
51
67
|
export * from './lib/domain/models/bank-movements.domain.model';
|
|
@@ -532,4 +548,4 @@ export * from './lib/components/excel-import-view/excel-import-view';
|
|
|
532
548
|
export * from './lib/components/excel-import-list/excel-import-list';
|
|
533
549
|
|
|
534
550
|
//#region item selection domain service
|
|
535
|
-
export * from './lib/domain/services/item-selection.domain.service';
|
|
551
|
+
export * from './lib/domain/services/item-selection.domain.service';
|