@cbm-common/cbm-types 0.0.43 → 0.0.45
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/timeline/timeline.d.ts +27 -27
- package/lib/components/timeline/types.d.ts +17 -17
- package/lib/domain/models/credit-request.model.d.ts +271 -0
- package/lib/domain/models/service-group.domain.model.d.ts +109 -109
- package/lib/domain/repositories/credit-request.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/service-group.domain.repository.d.ts +15 -15
- package/lib/infrastructure/repositories/credit-request.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/service-group.infrastructure.repository.d.ts +11 -11
- package/lib/infrastructure/services/credit-request.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/service-group.infrastructure.service.d.ts +15 -15
- package/lib/remotes/components.remote.d.ts +20 -20
- package/lib/remotes/repositories/credit-request.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { CbmTimelineModel, TStatus } from './types';
|
|
2
|
-
export declare class CbmTimelineComponent {
|
|
3
|
-
data: import("@angular/core").InputSignal<CbmTimelineModel.ITimelineData[]>;
|
|
4
|
-
redirect: import("@angular/core").InputSignal<Map<string, string> | undefined>;
|
|
5
|
-
loading: import("@angular/core").InputSignal<TStatus>;
|
|
6
|
-
focusId: import("@angular/core").InputSignal<string | null>;
|
|
7
|
-
translationOfType: {
|
|
8
|
-
suspend: string;
|
|
9
|
-
credit: string;
|
|
10
|
-
increase: string;
|
|
11
|
-
decrease: string;
|
|
12
|
-
};
|
|
13
|
-
tagsDate: {
|
|
14
|
-
refused: string;
|
|
15
|
-
approved: string;
|
|
16
|
-
pending: string;
|
|
17
|
-
suspend: string;
|
|
18
|
-
};
|
|
19
|
-
tagsUser: {
|
|
20
|
-
refused: string;
|
|
21
|
-
approved: string;
|
|
22
|
-
pending: string;
|
|
23
|
-
suspend: string;
|
|
24
|
-
};
|
|
25
|
-
constructor();
|
|
26
|
-
openUrl(id: string): void;
|
|
27
|
-
}
|
|
1
|
+
import { CbmTimelineModel, TStatus } from './types';
|
|
2
|
+
export declare class CbmTimelineComponent {
|
|
3
|
+
data: import("@angular/core").InputSignal<CbmTimelineModel.ITimelineData[]>;
|
|
4
|
+
redirect: import("@angular/core").InputSignal<Map<string, string> | undefined>;
|
|
5
|
+
loading: import("@angular/core").InputSignal<TStatus>;
|
|
6
|
+
focusId: import("@angular/core").InputSignal<string | null>;
|
|
7
|
+
translationOfType: {
|
|
8
|
+
suspend: string;
|
|
9
|
+
credit: string;
|
|
10
|
+
increase: string;
|
|
11
|
+
decrease: string;
|
|
12
|
+
};
|
|
13
|
+
tagsDate: {
|
|
14
|
+
refused: string;
|
|
15
|
+
approved: string;
|
|
16
|
+
pending: string;
|
|
17
|
+
suspend: string;
|
|
18
|
+
};
|
|
19
|
+
tagsUser: {
|
|
20
|
+
refused: string;
|
|
21
|
+
approved: string;
|
|
22
|
+
pending: string;
|
|
23
|
+
suspend: string;
|
|
24
|
+
};
|
|
25
|
+
constructor();
|
|
26
|
+
openUrl(id: string): void;
|
|
27
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
-
export declare namespace CbmTimelineModel {
|
|
3
|
-
interface ITimelineData {
|
|
4
|
-
_id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
document_number: string;
|
|
7
|
-
type: 'suspend' | 'credit' | 'increase' | 'decrease';
|
|
8
|
-
document_state: 'refused' | 'approved' | 'pending' | 'suspend';
|
|
9
|
-
user_name: string;
|
|
10
|
-
date: number;
|
|
11
|
-
amount_to_date: number;
|
|
12
|
-
requested_amount: number;
|
|
13
|
-
current_deadline: string;
|
|
14
|
-
approved_deadline: string;
|
|
15
|
-
commentary?: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
+
export declare namespace CbmTimelineModel {
|
|
3
|
+
interface ITimelineData {
|
|
4
|
+
_id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
document_number: string;
|
|
7
|
+
type: 'suspend' | 'credit' | 'increase' | 'decrease';
|
|
8
|
+
document_state: 'refused' | 'approved' | 'pending' | 'suspend';
|
|
9
|
+
user_name: string;
|
|
10
|
+
date: number;
|
|
11
|
+
amount_to_date: number;
|
|
12
|
+
requested_amount: number;
|
|
13
|
+
current_deadline: string;
|
|
14
|
+
approved_deadline: string;
|
|
15
|
+
commentary?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
export declare namespace CbmCreditRequestModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
date_end?: number;
|
|
6
|
+
date_begin?: number;
|
|
7
|
+
client_id?: string;
|
|
8
|
+
new_credit_number?: string;
|
|
9
|
+
document_state?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
pageNum: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
pages: number;
|
|
17
|
+
total: number;
|
|
18
|
+
items: ListResponse.Item[];
|
|
19
|
+
}
|
|
20
|
+
namespace ListResponse {
|
|
21
|
+
interface Item {
|
|
22
|
+
_id: string;
|
|
23
|
+
company_id?: string;
|
|
24
|
+
company_branch_id?: string;
|
|
25
|
+
company_NIF?: string;
|
|
26
|
+
company_address?: string;
|
|
27
|
+
company_trade_name?: string;
|
|
28
|
+
company_business_name?: string;
|
|
29
|
+
company_branch_identification_number?: string;
|
|
30
|
+
company_branch_trade_name?: string;
|
|
31
|
+
company_branch_logo?: string;
|
|
32
|
+
company_branch_address?: string;
|
|
33
|
+
company_branch_email?: string;
|
|
34
|
+
company_branch_cellphone?: string;
|
|
35
|
+
company_branch_phone?: string;
|
|
36
|
+
user_id?: string;
|
|
37
|
+
client_id?: string;
|
|
38
|
+
client_branch_id?: string;
|
|
39
|
+
client_business_name?: string;
|
|
40
|
+
client_document_number?: string;
|
|
41
|
+
client_credit_limit?: number;
|
|
42
|
+
client_trade_name?: string;
|
|
43
|
+
client_email?: string;
|
|
44
|
+
client_address?: string;
|
|
45
|
+
client_phone_code?: string;
|
|
46
|
+
client_cellphone?: string;
|
|
47
|
+
client_province_id?: string;
|
|
48
|
+
client_canton_id?: string;
|
|
49
|
+
client_parish_id?: string;
|
|
50
|
+
client_province_code?: string;
|
|
51
|
+
client_province_name?: string;
|
|
52
|
+
client_canton_code?: string;
|
|
53
|
+
client_canton_name?: string;
|
|
54
|
+
client_parish_code?: string;
|
|
55
|
+
client_parish_name?: string;
|
|
56
|
+
document_nomenclature?: string;
|
|
57
|
+
document_number?: string;
|
|
58
|
+
document_state?: string;
|
|
59
|
+
request_value?: number;
|
|
60
|
+
decrease_value?: number;
|
|
61
|
+
type?: string;
|
|
62
|
+
reason?: string;
|
|
63
|
+
created_user?: string;
|
|
64
|
+
created_at?: number;
|
|
65
|
+
increase_value?: number;
|
|
66
|
+
approved_value?: number;
|
|
67
|
+
client_branch_code?: string;
|
|
68
|
+
client_branch_name?: string;
|
|
69
|
+
client_branch_address?: string;
|
|
70
|
+
client_branch_email?: string;
|
|
71
|
+
client_branch_cellphone?: string;
|
|
72
|
+
client_branch_phone?: string;
|
|
73
|
+
client_branch_phone_code?: string;
|
|
74
|
+
client_payment_deadline?: number;
|
|
75
|
+
seller_id?: string;
|
|
76
|
+
seller_identification_number?: string;
|
|
77
|
+
seller_full_name?: string;
|
|
78
|
+
seller_document_number?: string;
|
|
79
|
+
seller_address?: string;
|
|
80
|
+
seller_cellphone?: string;
|
|
81
|
+
seller_email?: string[];
|
|
82
|
+
new_credit_number?: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
interface SaveBody {
|
|
86
|
+
company_NIF?: string;
|
|
87
|
+
company_address?: string;
|
|
88
|
+
company_trade_name?: string;
|
|
89
|
+
company_business_name?: string;
|
|
90
|
+
company_branch_identification_number?: string;
|
|
91
|
+
company_branch_trade_name?: string;
|
|
92
|
+
company_branch_logo?: string;
|
|
93
|
+
company_branch_address?: string;
|
|
94
|
+
company_branch_email?: string;
|
|
95
|
+
company_branch_cellphone?: string;
|
|
96
|
+
company_branch_phone?: string;
|
|
97
|
+
client_id?: string;
|
|
98
|
+
client_business_name?: string;
|
|
99
|
+
client_document_number?: string;
|
|
100
|
+
client_credit_limit?: number;
|
|
101
|
+
client_trade_name?: string;
|
|
102
|
+
client_email?: string;
|
|
103
|
+
client_address?: string;
|
|
104
|
+
client_phone_code?: string;
|
|
105
|
+
client_cellphone?: string;
|
|
106
|
+
client_province_id?: string;
|
|
107
|
+
client_canton_id?: string;
|
|
108
|
+
client_parish_id?: string;
|
|
109
|
+
client_province_code?: string;
|
|
110
|
+
client_province_name?: string;
|
|
111
|
+
client_canton_code?: string;
|
|
112
|
+
client_canton_name?: string;
|
|
113
|
+
client_parish_code?: string;
|
|
114
|
+
client_parish_name?: string;
|
|
115
|
+
reason?: string;
|
|
116
|
+
type?: string;
|
|
117
|
+
request_value?: number;
|
|
118
|
+
increase_value?: number;
|
|
119
|
+
decrease_value?: number;
|
|
120
|
+
revoke_value?: number;
|
|
121
|
+
client_branch_id?: string;
|
|
122
|
+
client_payment_deadline?: number;
|
|
123
|
+
client_branch_code?: string;
|
|
124
|
+
client_branch_name?: string;
|
|
125
|
+
client_branch_address?: string;
|
|
126
|
+
client_branch_email?: string;
|
|
127
|
+
client_branch_cellphone?: string;
|
|
128
|
+
client_branch_phone?: string;
|
|
129
|
+
client_branch_phone_code?: string;
|
|
130
|
+
seller_id?: string;
|
|
131
|
+
seller_identification_number?: string;
|
|
132
|
+
seller_document_number?: string;
|
|
133
|
+
seller_full_name?: string;
|
|
134
|
+
seller_address?: string;
|
|
135
|
+
seller_email?: string[];
|
|
136
|
+
seller_cellphone?: string;
|
|
137
|
+
reason_country_id?: string;
|
|
138
|
+
reason_country_code?: string;
|
|
139
|
+
reason_country_description?: string;
|
|
140
|
+
reason_country_description_process?: string;
|
|
141
|
+
}
|
|
142
|
+
interface GetOneResponse {
|
|
143
|
+
success?: boolean;
|
|
144
|
+
data: GetOneResponse.Data;
|
|
145
|
+
}
|
|
146
|
+
namespace GetOneResponse {
|
|
147
|
+
interface Data {
|
|
148
|
+
_id?: string;
|
|
149
|
+
company_id?: string;
|
|
150
|
+
company_branch_id?: string;
|
|
151
|
+
company_NIF?: string;
|
|
152
|
+
company_address?: string;
|
|
153
|
+
company_trade_name?: string;
|
|
154
|
+
company_business_name?: string;
|
|
155
|
+
company_branch_identification_number?: string;
|
|
156
|
+
company_branch_trade_name?: string;
|
|
157
|
+
company_branch_logo?: string;
|
|
158
|
+
company_branch_address?: string;
|
|
159
|
+
company_branch_email?: string;
|
|
160
|
+
company_branch_cellphone?: string;
|
|
161
|
+
company_branch_phone?: string;
|
|
162
|
+
user_id?: string;
|
|
163
|
+
client_id?: string;
|
|
164
|
+
client_business_name?: string;
|
|
165
|
+
client_document_number?: string;
|
|
166
|
+
client_credit_limit?: number;
|
|
167
|
+
client_payment_deadline?: number;
|
|
168
|
+
client_trade_name?: string;
|
|
169
|
+
client_email?: string;
|
|
170
|
+
client_address?: string;
|
|
171
|
+
client_phone_code?: string;
|
|
172
|
+
client_cellphone?: string;
|
|
173
|
+
client_province_id?: string;
|
|
174
|
+
client_canton_id?: string;
|
|
175
|
+
client_parish_id?: string;
|
|
176
|
+
client_province_code?: string;
|
|
177
|
+
client_province_name?: string;
|
|
178
|
+
client_canton_code?: string;
|
|
179
|
+
client_canton_name?: string;
|
|
180
|
+
client_parish_code?: string;
|
|
181
|
+
client_parish_name?: string;
|
|
182
|
+
payment_deadline?: number;
|
|
183
|
+
previous_payment_deadline?: number;
|
|
184
|
+
commentary?: string;
|
|
185
|
+
quota_number?: number;
|
|
186
|
+
grace_days?: number;
|
|
187
|
+
document_nomenclature?: string;
|
|
188
|
+
document_number?: string;
|
|
189
|
+
document_state?: string;
|
|
190
|
+
approved_value?: number;
|
|
191
|
+
request_value?: number;
|
|
192
|
+
increase_value?: number;
|
|
193
|
+
decrease_value?: number;
|
|
194
|
+
type?: string;
|
|
195
|
+
reason?: string;
|
|
196
|
+
created_user?: string;
|
|
197
|
+
created_at?: number;
|
|
198
|
+
client_branch_id?: string;
|
|
199
|
+
client_branch_code?: string;
|
|
200
|
+
client_branch_name?: string;
|
|
201
|
+
client_branch_address?: string;
|
|
202
|
+
client_branch_email?: string;
|
|
203
|
+
client_branch_cellphone?: string;
|
|
204
|
+
client_branch_phone?: string;
|
|
205
|
+
client_branch_phone_code?: string;
|
|
206
|
+
seller_id?: string;
|
|
207
|
+
seller_identification_number?: string;
|
|
208
|
+
seller_full_name?: string;
|
|
209
|
+
seller_document_number?: string;
|
|
210
|
+
seller_address?: string;
|
|
211
|
+
seller_cellphone?: string;
|
|
212
|
+
seller_email?: string[];
|
|
213
|
+
reason_country_id?: string;
|
|
214
|
+
reason_country_code?: string;
|
|
215
|
+
reason_country_description?: string;
|
|
216
|
+
reason_country_description_process?: string;
|
|
217
|
+
deny_reason_country_id?: string;
|
|
218
|
+
deny_reason_country_code?: string;
|
|
219
|
+
deny_reason_country_description?: string;
|
|
220
|
+
deny_reason_country_description_process?: string;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
interface TimelineResponse {
|
|
224
|
+
_id: string;
|
|
225
|
+
document_nomenclature: string;
|
|
226
|
+
document_number: string;
|
|
227
|
+
document_state: string;
|
|
228
|
+
type: string;
|
|
229
|
+
date: number;
|
|
230
|
+
user: string;
|
|
231
|
+
credit_limit: number;
|
|
232
|
+
request_value: number;
|
|
233
|
+
approved_value: number;
|
|
234
|
+
commentary?: string;
|
|
235
|
+
payment_deadline: number;
|
|
236
|
+
previous_payment_deadline: number;
|
|
237
|
+
}
|
|
238
|
+
interface ChangeStatusBody {
|
|
239
|
+
document_state?: string;
|
|
240
|
+
approved_value?: number;
|
|
241
|
+
commentary?: string;
|
|
242
|
+
payment_deadline?: number;
|
|
243
|
+
previous_payment_deadline?: number;
|
|
244
|
+
quota_number?: number;
|
|
245
|
+
grace_days?: number;
|
|
246
|
+
reason_country_id?: string;
|
|
247
|
+
reason_country_code?: string;
|
|
248
|
+
reason_country_description?: string;
|
|
249
|
+
reason_country_description_process?: string;
|
|
250
|
+
deny_reason_country_id?: string;
|
|
251
|
+
deny_reason_country_code?: string;
|
|
252
|
+
deny_reason_country_description?: string;
|
|
253
|
+
deny_reason_country_description_process?: string;
|
|
254
|
+
}
|
|
255
|
+
interface ConfirmResponse {
|
|
256
|
+
success: boolean;
|
|
257
|
+
message: string;
|
|
258
|
+
data?: any;
|
|
259
|
+
}
|
|
260
|
+
interface ValidationOperationClientParams {
|
|
261
|
+
client_id: string;
|
|
262
|
+
}
|
|
263
|
+
interface ValidationOperationClientResponse {
|
|
264
|
+
success?: boolean;
|
|
265
|
+
}
|
|
266
|
+
interface SendEmailParams {
|
|
267
|
+
timezone: string;
|
|
268
|
+
locale: string;
|
|
269
|
+
emails?: string;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
export declare namespace CbmServiceGroupModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
name?: string;
|
|
5
|
-
service_group_id?: string;
|
|
6
|
-
}
|
|
7
|
-
interface ListResponse {
|
|
8
|
-
data?: ListResponse.Data[];
|
|
9
|
-
success?: boolean;
|
|
10
|
-
}
|
|
11
|
-
namespace ListResponse {
|
|
12
|
-
interface Data {
|
|
13
|
-
_id: string;
|
|
14
|
-
company_id?: string;
|
|
15
|
-
service_group_id?: string;
|
|
16
|
-
initial?: boolean;
|
|
17
|
-
level?: number;
|
|
18
|
-
name?: string;
|
|
19
|
-
enabled?: boolean;
|
|
20
|
-
created_user?: string;
|
|
21
|
-
created_at?: number;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
interface SaveBody {
|
|
25
|
-
service_group_id?: string;
|
|
26
|
-
initial?: boolean;
|
|
27
|
-
level?: number;
|
|
28
|
-
name?: string;
|
|
29
|
-
}
|
|
30
|
-
interface GetOneResponse {
|
|
31
|
-
data?: GetOneResponse.Data;
|
|
32
|
-
success?: boolean;
|
|
33
|
-
}
|
|
34
|
-
namespace GetOneResponse {
|
|
35
|
-
interface Data {
|
|
36
|
-
_id?: string;
|
|
37
|
-
company_id?: string;
|
|
38
|
-
service_group_id?: string;
|
|
39
|
-
initial?: boolean;
|
|
40
|
-
level?: number;
|
|
41
|
-
name?: string;
|
|
42
|
-
enabled?: boolean;
|
|
43
|
-
created_user?: string;
|
|
44
|
-
created_at?: number;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
interface UpdateBody {
|
|
48
|
-
service_group_id?: string;
|
|
49
|
-
initial?: boolean;
|
|
50
|
-
level?: number;
|
|
51
|
-
name?: string;
|
|
52
|
-
}
|
|
53
|
-
interface ChangeStatusBody {
|
|
54
|
-
enabled?: boolean;
|
|
55
|
-
disabled_reason?: string;
|
|
56
|
-
}
|
|
57
|
-
interface ListAsTreeParams {
|
|
58
|
-
name?: string;
|
|
59
|
-
}
|
|
60
|
-
interface ListAsTreeResponse {
|
|
61
|
-
success: boolean;
|
|
62
|
-
data: ListAsTreeResponse.Children;
|
|
63
|
-
}
|
|
64
|
-
namespace ListAsTreeResponse {
|
|
65
|
-
type Children = Child[];
|
|
66
|
-
interface Child {
|
|
67
|
-
label: string;
|
|
68
|
-
value: Group | Category;
|
|
69
|
-
children?: Children;
|
|
70
|
-
}
|
|
71
|
-
interface Group {
|
|
72
|
-
_id: string;
|
|
73
|
-
company_id?: string;
|
|
74
|
-
initial?: boolean;
|
|
75
|
-
level?: number;
|
|
76
|
-
name?: string;
|
|
77
|
-
enabled?: boolean;
|
|
78
|
-
deleted?: boolean;
|
|
79
|
-
created_user?: string;
|
|
80
|
-
created_at?: number;
|
|
81
|
-
disabled_reason?: string;
|
|
82
|
-
updated_at?: number;
|
|
83
|
-
updated_user?: string;
|
|
84
|
-
}
|
|
85
|
-
interface Category {
|
|
86
|
-
_id: string;
|
|
87
|
-
company_id?: string;
|
|
88
|
-
name?: string;
|
|
89
|
-
nomenclature?: string;
|
|
90
|
-
last_number?: number;
|
|
91
|
-
separator?: string;
|
|
92
|
-
income_account_id?: string;
|
|
93
|
-
discount_account_id?: string;
|
|
94
|
-
return_account_id?: string;
|
|
95
|
-
service_group_id?: string;
|
|
96
|
-
enabled?: boolean;
|
|
97
|
-
deleted?: boolean;
|
|
98
|
-
created_user?: string;
|
|
99
|
-
created_at?: number;
|
|
100
|
-
updated_at?: number;
|
|
101
|
-
updated_user?: string;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
interface ConfirmResponse {
|
|
105
|
-
success: boolean;
|
|
106
|
-
message: string;
|
|
107
|
-
data?: any;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
1
|
+
export declare namespace CbmServiceGroupModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
service_group_id?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
data?: ListResponse.Data[];
|
|
9
|
+
success?: boolean;
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
company_id?: string;
|
|
15
|
+
service_group_id?: string;
|
|
16
|
+
initial?: boolean;
|
|
17
|
+
level?: number;
|
|
18
|
+
name?: string;
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
created_user?: string;
|
|
21
|
+
created_at?: number;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
interface SaveBody {
|
|
25
|
+
service_group_id?: string;
|
|
26
|
+
initial?: boolean;
|
|
27
|
+
level?: number;
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
interface GetOneResponse {
|
|
31
|
+
data?: GetOneResponse.Data;
|
|
32
|
+
success?: boolean;
|
|
33
|
+
}
|
|
34
|
+
namespace GetOneResponse {
|
|
35
|
+
interface Data {
|
|
36
|
+
_id?: string;
|
|
37
|
+
company_id?: string;
|
|
38
|
+
service_group_id?: string;
|
|
39
|
+
initial?: boolean;
|
|
40
|
+
level?: number;
|
|
41
|
+
name?: string;
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
created_user?: string;
|
|
44
|
+
created_at?: number;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
interface UpdateBody {
|
|
48
|
+
service_group_id?: string;
|
|
49
|
+
initial?: boolean;
|
|
50
|
+
level?: number;
|
|
51
|
+
name?: string;
|
|
52
|
+
}
|
|
53
|
+
interface ChangeStatusBody {
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
disabled_reason?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ListAsTreeParams {
|
|
58
|
+
name?: string;
|
|
59
|
+
}
|
|
60
|
+
interface ListAsTreeResponse {
|
|
61
|
+
success: boolean;
|
|
62
|
+
data: ListAsTreeResponse.Children;
|
|
63
|
+
}
|
|
64
|
+
namespace ListAsTreeResponse {
|
|
65
|
+
type Children = Child[];
|
|
66
|
+
interface Child {
|
|
67
|
+
label: string;
|
|
68
|
+
value: Group | Category;
|
|
69
|
+
children?: Children;
|
|
70
|
+
}
|
|
71
|
+
interface Group {
|
|
72
|
+
_id: string;
|
|
73
|
+
company_id?: string;
|
|
74
|
+
initial?: boolean;
|
|
75
|
+
level?: number;
|
|
76
|
+
name?: string;
|
|
77
|
+
enabled?: boolean;
|
|
78
|
+
deleted?: boolean;
|
|
79
|
+
created_user?: string;
|
|
80
|
+
created_at?: number;
|
|
81
|
+
disabled_reason?: string;
|
|
82
|
+
updated_at?: number;
|
|
83
|
+
updated_user?: string;
|
|
84
|
+
}
|
|
85
|
+
interface Category {
|
|
86
|
+
_id: string;
|
|
87
|
+
company_id?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
nomenclature?: string;
|
|
90
|
+
last_number?: number;
|
|
91
|
+
separator?: string;
|
|
92
|
+
income_account_id?: string;
|
|
93
|
+
discount_account_id?: string;
|
|
94
|
+
return_account_id?: string;
|
|
95
|
+
service_group_id?: string;
|
|
96
|
+
enabled?: boolean;
|
|
97
|
+
deleted?: boolean;
|
|
98
|
+
created_user?: string;
|
|
99
|
+
created_at?: number;
|
|
100
|
+
updated_at?: number;
|
|
101
|
+
updated_user?: string;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
interface ConfirmResponse {
|
|
105
|
+
success: boolean;
|
|
106
|
+
message: string;
|
|
107
|
+
data?: any;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICbmCreditRequestRepository as ICbmCreditRequestInfrastructureRepository } from "../../infrastructure/repositories/credit-request.infrastructure.repository";
|
|
2
|
+
import { CbmCreditRequestModel } from "../models/credit-request.model";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { CbmCreditRequestInfrastructureService } from "../../infrastructure/services/credit-request.infrastructure.service";
|
|
5
|
+
export declare class CbmCreditRequestDomainRepository implements ICbmCreditRequestInfrastructureRepository {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: CbmCreditRequestInfrastructureService);
|
|
8
|
+
list(params: CbmCreditRequestModel.ListParams): Observable<CbmCreditRequestModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmCreditRequestModel.GetOneResponse>;
|
|
10
|
+
timeline(id: string): Observable<CbmCreditRequestModel.TimelineResponse[]>;
|
|
11
|
+
save(data: CbmCreditRequestModel.SaveBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, data: CbmCreditRequestModel.ChangeStatusBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
13
|
+
validationOperationClient(request: CbmCreditRequestModel.ValidationOperationClientParams): Observable<CbmCreditRequestModel.ValidationOperationClientResponse>;
|
|
14
|
+
sendEmail(id: string, params: CbmCreditRequestModel.SendEmailParams): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
15
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmServiceGroupModel } from "../models/service-group.domain.model";
|
|
3
|
-
import { ICbmServiceGroupRepository } from "../../infrastructure/repositories/service-group.infrastructure.repository";
|
|
4
|
-
import { CbmServiceGroupService } from "../../infrastructure/services/service-group.infrastructure.service";
|
|
5
|
-
export declare class CbmServiceGroupRepository implements ICbmServiceGroupRepository {
|
|
6
|
-
private service;
|
|
7
|
-
constructor(service: CbmServiceGroupService);
|
|
8
|
-
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
10
|
-
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
11
|
-
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
12
|
-
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
13
|
-
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
14
|
-
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
15
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmServiceGroupModel } from "../models/service-group.domain.model";
|
|
3
|
+
import { ICbmServiceGroupRepository } from "../../infrastructure/repositories/service-group.infrastructure.repository";
|
|
4
|
+
import { CbmServiceGroupService } from "../../infrastructure/services/service-group.infrastructure.service";
|
|
5
|
+
export declare class CbmServiceGroupRepository implements ICbmServiceGroupRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: CbmServiceGroupService);
|
|
8
|
+
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
10
|
+
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
14
|
+
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmCreditRequestModel } from "../../domain/models/credit-request.model";
|
|
3
|
+
export interface ICbmCreditRequestRepository {
|
|
4
|
+
list(params: CbmCreditRequestModel.ListParams): Observable<CbmCreditRequestModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmCreditRequestModel.GetOneResponse>;
|
|
6
|
+
timeline(id: string): Observable<CbmCreditRequestModel.TimelineResponse[]>;
|
|
7
|
+
save(data: CbmCreditRequestModel.SaveBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, data: CbmCreditRequestModel.ChangeStatusBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
9
|
+
validationOperationClient(request: CbmCreditRequestModel.ValidationOperationClientParams): Observable<CbmCreditRequestModel.ValidationOperationClientResponse>;
|
|
10
|
+
sendEmail(id: string, params: CbmCreditRequestModel.SendEmailParams): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmServiceGroupModel } from "../../domain/models/service-group.domain.model";
|
|
3
|
-
export interface ICbmServiceGroupRepository {
|
|
4
|
-
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
5
|
-
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
6
|
-
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
7
|
-
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
8
|
-
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
9
|
-
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
10
|
-
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
11
|
-
}
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmServiceGroupModel } from "../../domain/models/service-group.domain.model";
|
|
3
|
+
export interface ICbmServiceGroupRepository {
|
|
4
|
+
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
6
|
+
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
9
|
+
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
10
|
+
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ICbmCreditRequestRepository } from "../repositories/credit-request.infrastructure.repository";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { CbmCreditRequestModel } from "../../domain/models/credit-request.model";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export declare class CbmCreditRequestInfrastructureService implements ICbmCreditRequestRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmCreditRequestModel.ListParams): Observable<CbmCreditRequestModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmCreditRequestModel.GetOneResponse>;
|
|
11
|
+
timeline(id: string): Observable<CbmCreditRequestModel.TimelineResponse[]>;
|
|
12
|
+
save(data: CbmCreditRequestModel.SaveBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
13
|
+
changeStatus(id: string, data: CbmCreditRequestModel.ChangeStatusBody): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
14
|
+
validationOperationClient(request: CbmCreditRequestModel.ValidationOperationClientParams): Observable<CbmCreditRequestModel.ValidationOperationClientResponse>;
|
|
15
|
+
sendEmail(id: string, params: CbmCreditRequestModel.SendEmailParams): Observable<CbmCreditRequestModel.ConfirmResponse>;
|
|
16
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { CbmServiceGroupModel } from "../../domain/models/service-group.domain.model";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare class CbmServiceGroupService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
9
|
-
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
10
|
-
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
11
|
-
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
12
|
-
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
13
|
-
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
14
|
-
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
15
|
-
}
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmServiceGroupModel } from "../../domain/models/service-group.domain.model";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CbmServiceGroupService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmServiceGroupModel.ListParams): Observable<CbmServiceGroupModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmServiceGroupModel.GetOneResponse>;
|
|
10
|
+
save(data: CbmServiceGroupModel.SaveBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmServiceGroupModel.UpdateBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, data: CbmServiceGroupModel.ChangeStatusBody): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmServiceGroupModel.ConfirmResponse>;
|
|
14
|
+
listAsTree(params: CbmServiceGroupModel.ListAsTreeParams): Observable<CbmServiceGroupModel.ListAsTreeResponse>;
|
|
15
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { CbmUserHistoryComponent } from '../components/user-history/user-history';
|
|
2
|
-
export { CbmModalConfirmComponent } from '../components/modal-confirm/modal-confirm';
|
|
3
|
-
export { CbmRecordDetailMetadataComponent } from '../components/record-detail-metadata/record-detail-metadata';
|
|
4
|
-
export { CbmDocumentsReferenceComponent } from '../components/documents-reference/documents-reference';
|
|
5
|
-
export { CbmAddClientComponent } from '../components/add-client/add-client';
|
|
6
|
-
export { CbmAccountingSeatComponent } from '../components/accounting-seat/accounting-seat';
|
|
7
|
-
export { CbmAdvancedItemSearchModal } from '../components/advanced-item-search-modal/advanced-item-search-modal';
|
|
8
|
-
export { CbmAttachmentsComponent } from '../components/attachments/attachments';
|
|
9
|
-
export { CbmDropzoneComponent } from '../components/dropzone/dropzone';
|
|
10
|
-
export { CbmEmptyComponent } from '../components/empty/empty';
|
|
11
|
-
export { CbmJsonModalComponent } from '../components/json-modal/json-modal';
|
|
12
|
-
export { CbmPaginationNavComponent } from '../components/pagination-nav/pagination-nav';
|
|
13
|
-
export { CbmTreeSelectComponent } from '../components/tree-select/tree-select';
|
|
14
|
-
export { CbmViewReportComponent } from '../components/view-reports/view-reports';
|
|
15
|
-
export { ConfirmationModal } from '../components/confirmation-modal/confirmation-modal';
|
|
16
|
-
export { StockByWarehouse } from '../components/stock-by-warehouse/stock-by-warehouse';
|
|
17
|
-
export { CbmAvailabilityBoardComponent } from '../components/availability-board/availability-board';
|
|
18
|
-
export { CbmRelationshipMapComponent } from '../components/relationship-map/relationship-map';
|
|
19
|
-
export { CbmAddProviderComponent } from '../components/add-provider/add-provider';
|
|
20
|
-
export { CbmTimelineComponent } from '../components/timeline/timeline';
|
|
1
|
+
export { CbmUserHistoryComponent } from '../components/user-history/user-history';
|
|
2
|
+
export { CbmModalConfirmComponent } from '../components/modal-confirm/modal-confirm';
|
|
3
|
+
export { CbmRecordDetailMetadataComponent } from '../components/record-detail-metadata/record-detail-metadata';
|
|
4
|
+
export { CbmDocumentsReferenceComponent } from '../components/documents-reference/documents-reference';
|
|
5
|
+
export { CbmAddClientComponent } from '../components/add-client/add-client';
|
|
6
|
+
export { CbmAccountingSeatComponent } from '../components/accounting-seat/accounting-seat';
|
|
7
|
+
export { CbmAdvancedItemSearchModal } from '../components/advanced-item-search-modal/advanced-item-search-modal';
|
|
8
|
+
export { CbmAttachmentsComponent } from '../components/attachments/attachments';
|
|
9
|
+
export { CbmDropzoneComponent } from '../components/dropzone/dropzone';
|
|
10
|
+
export { CbmEmptyComponent } from '../components/empty/empty';
|
|
11
|
+
export { CbmJsonModalComponent } from '../components/json-modal/json-modal';
|
|
12
|
+
export { CbmPaginationNavComponent } from '../components/pagination-nav/pagination-nav';
|
|
13
|
+
export { CbmTreeSelectComponent } from '../components/tree-select/tree-select';
|
|
14
|
+
export { CbmViewReportComponent } from '../components/view-reports/view-reports';
|
|
15
|
+
export { ConfirmationModal } from '../components/confirmation-modal/confirmation-modal';
|
|
16
|
+
export { StockByWarehouse } from '../components/stock-by-warehouse/stock-by-warehouse';
|
|
17
|
+
export { CbmAvailabilityBoardComponent } from '../components/availability-board/availability-board';
|
|
18
|
+
export { CbmRelationshipMapComponent } from '../components/relationship-map/relationship-map';
|
|
19
|
+
export { CbmAddProviderComponent } from '../components/add-provider/add-provider';
|
|
20
|
+
export { CbmTimelineComponent } from '../components/timeline/timeline';
|
|
@@ -19,6 +19,7 @@ export * from './repositories/cost-center.repository';
|
|
|
19
19
|
export * from './repositories/country.repository';
|
|
20
20
|
export * from './repositories/country-code.repository';
|
|
21
21
|
export * from './repositories/credit-management.repository';
|
|
22
|
+
export * from './repositories/credit-request.repository';
|
|
22
23
|
export * from './repositories/deadline.repository';
|
|
23
24
|
export * from './repositories/document-reference.repository';
|
|
24
25
|
export * from './repositories/document-type.repository';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -302,7 +302,6 @@ export * from './lib/components/availability-board/availability-board.model';
|
|
|
302
302
|
|
|
303
303
|
// #region relationship component
|
|
304
304
|
export * from './lib/components/relationship-map/relationship-map';
|
|
305
|
-
export * from './lib/components/relationship-map/types';
|
|
306
305
|
|
|
307
306
|
// #region subscription repository
|
|
308
307
|
export * from './lib/domain/repositories/subscription.domain.repository';
|
|
@@ -336,4 +335,8 @@ export * from './lib/domain/models/signature-settings.domain.model';
|
|
|
336
335
|
|
|
337
336
|
// #region print settings repository
|
|
338
337
|
export * from './lib/domain/repositories/print-settings.domain.repository';
|
|
339
|
-
export * from './lib/domain/models/print-settings.domain.model';
|
|
338
|
+
export * from './lib/domain/models/print-settings.domain.model';
|
|
339
|
+
|
|
340
|
+
//#region credit request repository
|
|
341
|
+
export * from './lib/domain/repositories/credit-request.domain.repository';
|
|
342
|
+
export * from './lib/domain/models/credit-request.model';
|