@cbm-common/cbm-types 0.0.111 → 0.0.112
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/add-down-payment/add-down-payment.d.ts +196 -0
- package/lib/components/relationship-bank-conciliation-alert/relationship-bank-conciliation-alert.component.d.ts +12 -0
- package/lib/domain/models/bank-conciliation.domain.model.d.ts +406 -0
- package/lib/domain/models/down-payment.domain.model.d.ts +353 -0
- package/lib/domain/models/general.domain.model.d.ts +7 -0
- package/lib/domain/models/income.domain.model.d.ts +479 -0
- package/lib/domain/repositories/bank-conciliation.domain.repository.d.ts +18 -0
- package/lib/domain/repositories/down-payment.domain.repository.d.ts +17 -0
- package/lib/domain/repositories/income.domain.repository.d.ts +18 -0
- package/lib/domain/services/cbm-validators.service.d.ts +12 -0
- package/lib/domain/services/general.domain.service.d.ts +11 -0
- package/lib/domain/services/relationship-movements.config.d.ts +23 -0
- package/lib/infrastructure/repositories/bank-conciliation.infrastructure.repository.d.ts +15 -0
- package/lib/infrastructure/repositories/down-payment.infrastructure.repository.d.ts +14 -0
- package/lib/infrastructure/repositories/income.infrastructure.repository.d.ts +15 -0
- package/lib/infrastructure/services/bank-conciliation.infrastructure.service.d.ts +21 -0
- package/lib/infrastructure/services/down-payment.infrastructure.service.d.ts +18 -0
- package/lib/infrastructure/services/income.infrastructure.service.d.ts +19 -0
- package/lib/types/collection-names.d.ts +207 -0
- package/lib/types/event-modules.d.ts +38 -0
- package/lib/types/event-routes.d.ts +2 -0
- package/lib/types/route.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/lib/remotes/services/auth.service.d.ts +0 -3
- package/lib/remotes/services/web-socket.service.d.ts +0 -4
- package/lib/remotes/services.remote.d.ts +0 -3
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
export declare namespace IDownPaymentModel {
|
|
2
|
+
type TTypeEstablishment = 'matrix' | 'branch';
|
|
3
|
+
export interface ListParams {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
user_id?: string;
|
|
7
|
+
date_begin?: number;
|
|
8
|
+
date_end?: number;
|
|
9
|
+
document_number?: string;
|
|
10
|
+
client_id?: string;
|
|
11
|
+
reverse_status?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ListResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
pageNum: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
pages: number;
|
|
18
|
+
total: number;
|
|
19
|
+
items: ListResponse.Item[];
|
|
20
|
+
}
|
|
21
|
+
export namespace ListResponse {
|
|
22
|
+
interface Item {
|
|
23
|
+
_id: string;
|
|
24
|
+
company_id: string;
|
|
25
|
+
cost_center_id: string;
|
|
26
|
+
document_nomenclature: string;
|
|
27
|
+
document_number: string;
|
|
28
|
+
date: number;
|
|
29
|
+
total: number;
|
|
30
|
+
liquidated_value: number;
|
|
31
|
+
cash_liquidation: number;
|
|
32
|
+
document_liquidation: number;
|
|
33
|
+
balance: number;
|
|
34
|
+
reverse: number;
|
|
35
|
+
cost_center_code: string;
|
|
36
|
+
cost_center_name: string;
|
|
37
|
+
company_NIF: string;
|
|
38
|
+
company_address: string;
|
|
39
|
+
company_trade_name: string;
|
|
40
|
+
company_business_name: string;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
cash_register: boolean;
|
|
43
|
+
user_id: string;
|
|
44
|
+
created_user: string;
|
|
45
|
+
deleted_at: number;
|
|
46
|
+
reverse_status: boolean;
|
|
47
|
+
payment_term_options: Item.PaymentTermOptions;
|
|
48
|
+
created_at: number;
|
|
49
|
+
reverse_at?: number;
|
|
50
|
+
reverse_reason?: string;
|
|
51
|
+
reverse_user?: string;
|
|
52
|
+
movement_number?: string;
|
|
53
|
+
client_id: string;
|
|
54
|
+
client_credit_limit?: number;
|
|
55
|
+
client_payment_deadline?: number;
|
|
56
|
+
client_business_name: string;
|
|
57
|
+
client_trade_name: string;
|
|
58
|
+
client_document_number: string;
|
|
59
|
+
client_credit_application: boolean;
|
|
60
|
+
client_document_type_id: string;
|
|
61
|
+
client_document_type_name: string;
|
|
62
|
+
client_document_type_code: string;
|
|
63
|
+
client_category_id: string;
|
|
64
|
+
client_category_name: string;
|
|
65
|
+
client_branch_id: string;
|
|
66
|
+
client_branch_code: string;
|
|
67
|
+
client_branch_name: string;
|
|
68
|
+
client_branch_address: string;
|
|
69
|
+
client_branch_email: string[];
|
|
70
|
+
client_branch_phone_code?: string;
|
|
71
|
+
client_branch_phone?: string;
|
|
72
|
+
client_branch_cellphone?: string;
|
|
73
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
74
|
+
client_branch_province_id?: string;
|
|
75
|
+
client_branch_province_code?: string;
|
|
76
|
+
client_branch_province_name?: string;
|
|
77
|
+
client_branch_canton_id?: string;
|
|
78
|
+
client_branch_canton_code?: string;
|
|
79
|
+
client_branch_canton_name?: string;
|
|
80
|
+
client_branch_parish_id?: string;
|
|
81
|
+
client_branch_parish_code?: string;
|
|
82
|
+
client_branch_parish_name?: string;
|
|
83
|
+
client_branch_longitude?: number;
|
|
84
|
+
client_branch_latitude?: number;
|
|
85
|
+
client_branch_seller_id: string;
|
|
86
|
+
client_branch_seller_identification_number: string;
|
|
87
|
+
client_branch_seller_full_name: string;
|
|
88
|
+
client_branch_seller_address: string;
|
|
89
|
+
client_branch_seller_email: string[];
|
|
90
|
+
client_branch_seller_cellphone: string;
|
|
91
|
+
client_branch_contact_id?: string;
|
|
92
|
+
client_branch_contact_identification_number?: string;
|
|
93
|
+
client_branch_contact_full_name?: string;
|
|
94
|
+
client_branch_contact_cellphone?: string;
|
|
95
|
+
client_branch_contact_email?: string[];
|
|
96
|
+
}
|
|
97
|
+
namespace Item {
|
|
98
|
+
interface PaymentTermOptions {
|
|
99
|
+
payment_term_id: string;
|
|
100
|
+
financial_bank_id?: string;
|
|
101
|
+
financial_bank_account_number?: string;
|
|
102
|
+
date?: number;
|
|
103
|
+
value: number;
|
|
104
|
+
card_type?: string;
|
|
105
|
+
batch_code?: string;
|
|
106
|
+
bank_cheque?: string;
|
|
107
|
+
number_cheque?: string;
|
|
108
|
+
financial_bank_name?: string;
|
|
109
|
+
payment_term_code: string;
|
|
110
|
+
payment_term_name: string;
|
|
111
|
+
operation_number?: string;
|
|
112
|
+
account_id?: string;
|
|
113
|
+
account_name?: string;
|
|
114
|
+
account_code?: string;
|
|
115
|
+
global_bank_id?: string;
|
|
116
|
+
global_bank_code?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export interface GetOneResponse {
|
|
121
|
+
success: boolean;
|
|
122
|
+
data: GetOneResponse.Data;
|
|
123
|
+
}
|
|
124
|
+
export namespace GetOneResponse {
|
|
125
|
+
interface Data {
|
|
126
|
+
_id: string;
|
|
127
|
+
company_id: string;
|
|
128
|
+
cost_center_id: string;
|
|
129
|
+
document_nomenclature: string;
|
|
130
|
+
document_number: string;
|
|
131
|
+
movement_number?: string;
|
|
132
|
+
date: number;
|
|
133
|
+
total: number;
|
|
134
|
+
liquidated_value: number;
|
|
135
|
+
cash_liquidation: number;
|
|
136
|
+
document_liquidation: number;
|
|
137
|
+
balance: number;
|
|
138
|
+
reverse: number;
|
|
139
|
+
cost_center_code: string;
|
|
140
|
+
cost_center_name: string;
|
|
141
|
+
company_NIF: string;
|
|
142
|
+
company_address: string;
|
|
143
|
+
company_trade_name: string;
|
|
144
|
+
company_business_name: string;
|
|
145
|
+
enabled: boolean;
|
|
146
|
+
deleted: boolean;
|
|
147
|
+
cash_register: boolean;
|
|
148
|
+
user_id: string;
|
|
149
|
+
created_user: string;
|
|
150
|
+
deleted_at: number;
|
|
151
|
+
reverse_status: boolean;
|
|
152
|
+
reverse_at?: number;
|
|
153
|
+
reverse_user?: string;
|
|
154
|
+
reverse_reason?: string;
|
|
155
|
+
payment_term_options: Data.PaymentTermOptions;
|
|
156
|
+
created_at: number;
|
|
157
|
+
client_id: string;
|
|
158
|
+
client_credit_limit?: number;
|
|
159
|
+
client_payment_deadline?: number;
|
|
160
|
+
client_business_name: string;
|
|
161
|
+
client_trade_name: string;
|
|
162
|
+
client_document_number: string;
|
|
163
|
+
client_credit_application: boolean;
|
|
164
|
+
client_document_type_id: string;
|
|
165
|
+
client_document_type_name: string;
|
|
166
|
+
client_document_type_code: string;
|
|
167
|
+
client_category_id: string;
|
|
168
|
+
client_category_name: string;
|
|
169
|
+
client_branch_id: string;
|
|
170
|
+
client_branch_code: string;
|
|
171
|
+
client_branch_name: string;
|
|
172
|
+
client_branch_address: string;
|
|
173
|
+
client_branch_email: string[];
|
|
174
|
+
client_branch_phone_code?: string;
|
|
175
|
+
client_branch_phone?: string;
|
|
176
|
+
client_branch_cellphone?: string;
|
|
177
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
178
|
+
client_branch_province_id?: string;
|
|
179
|
+
client_branch_province_code?: string;
|
|
180
|
+
client_branch_province_name?: string;
|
|
181
|
+
client_branch_canton_id?: string;
|
|
182
|
+
client_branch_canton_code?: string;
|
|
183
|
+
client_branch_canton_name?: string;
|
|
184
|
+
client_branch_parish_id?: string;
|
|
185
|
+
client_branch_parish_code?: string;
|
|
186
|
+
client_branch_parish_name?: string;
|
|
187
|
+
client_branch_longitude?: number;
|
|
188
|
+
client_branch_latitude?: number;
|
|
189
|
+
client_branch_seller_id: string;
|
|
190
|
+
client_branch_seller_identification_number: string;
|
|
191
|
+
client_branch_seller_full_name: string;
|
|
192
|
+
client_branch_seller_address: string;
|
|
193
|
+
client_branch_seller_email: string[];
|
|
194
|
+
client_branch_seller_cellphone: string;
|
|
195
|
+
client_branch_contact_id?: string;
|
|
196
|
+
client_branch_contact_identification_number?: string;
|
|
197
|
+
client_branch_contact_full_name?: string;
|
|
198
|
+
client_branch_contact_cellphone?: string;
|
|
199
|
+
client_branch_contact_email?: string[];
|
|
200
|
+
detail_transaction: Data.DetailTransaction[];
|
|
201
|
+
}
|
|
202
|
+
namespace Data {
|
|
203
|
+
interface DetailTransaction {
|
|
204
|
+
_id: string;
|
|
205
|
+
down_payment_id: string;
|
|
206
|
+
date: number;
|
|
207
|
+
description: string;
|
|
208
|
+
document: string;
|
|
209
|
+
type: string;
|
|
210
|
+
value: number;
|
|
211
|
+
previous_balance: number;
|
|
212
|
+
subsequent_balance: number;
|
|
213
|
+
collection_origin_name: string;
|
|
214
|
+
collection_origin_id: string;
|
|
215
|
+
created_user: string;
|
|
216
|
+
created_at: number;
|
|
217
|
+
}
|
|
218
|
+
interface PaymentTermOptions {
|
|
219
|
+
global_bank_id?: string;
|
|
220
|
+
global_bank_code?: string;
|
|
221
|
+
financial_bank_id?: string;
|
|
222
|
+
financial_bank_account_number?: string;
|
|
223
|
+
payment_term_id: string;
|
|
224
|
+
account_id?: string;
|
|
225
|
+
card_type?: string;
|
|
226
|
+
batch_code?: string;
|
|
227
|
+
date?: number;
|
|
228
|
+
value: number;
|
|
229
|
+
financial_bank_name?: string;
|
|
230
|
+
bank_cheque?: string;
|
|
231
|
+
number_cheque?: string;
|
|
232
|
+
account_name?: string;
|
|
233
|
+
account_code?: string;
|
|
234
|
+
operation_number?: string;
|
|
235
|
+
payment_term_code: string;
|
|
236
|
+
payment_term_name: string;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
export interface SaveBody {
|
|
241
|
+
company_NIF: string;
|
|
242
|
+
company_address: string;
|
|
243
|
+
company_trade_name: string;
|
|
244
|
+
company_business_name: string;
|
|
245
|
+
company_logo: string;
|
|
246
|
+
cost_center_id: string;
|
|
247
|
+
date: number;
|
|
248
|
+
total: number;
|
|
249
|
+
liquidated_value: number;
|
|
250
|
+
cost_center_code: string;
|
|
251
|
+
cost_center_name: string;
|
|
252
|
+
client_id: string;
|
|
253
|
+
client_credit_limit?: number;
|
|
254
|
+
client_payment_deadline?: number;
|
|
255
|
+
client_business_name: string;
|
|
256
|
+
client_trade_name: string;
|
|
257
|
+
client_document_number: string;
|
|
258
|
+
client_credit_application: boolean;
|
|
259
|
+
client_document_type_id: string;
|
|
260
|
+
client_document_type_name: string;
|
|
261
|
+
client_document_type_code: string;
|
|
262
|
+
client_category_id: string;
|
|
263
|
+
client_category_name: string;
|
|
264
|
+
client_branch_id: string;
|
|
265
|
+
client_branch_code: string;
|
|
266
|
+
client_branch_name: string;
|
|
267
|
+
client_branch_address: string;
|
|
268
|
+
client_branch_email: string[];
|
|
269
|
+
client_branch_phone_code?: string;
|
|
270
|
+
client_branch_phone?: string;
|
|
271
|
+
client_branch_cellphone?: string;
|
|
272
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
273
|
+
client_branch_province_id?: string;
|
|
274
|
+
client_branch_province_code?: string;
|
|
275
|
+
client_branch_province_name?: string;
|
|
276
|
+
client_branch_canton_id?: string;
|
|
277
|
+
client_branch_canton_code?: string;
|
|
278
|
+
client_branch_canton_name?: string;
|
|
279
|
+
client_branch_parish_id?: string;
|
|
280
|
+
client_branch_parish_code?: string;
|
|
281
|
+
client_branch_parish_name?: string;
|
|
282
|
+
client_branch_longitude?: number;
|
|
283
|
+
client_branch_latitude?: number;
|
|
284
|
+
client_branch_seller_id: string;
|
|
285
|
+
client_branch_seller_identification_number: string;
|
|
286
|
+
client_branch_seller_full_name: string;
|
|
287
|
+
client_branch_seller_address: string;
|
|
288
|
+
client_branch_seller_email: string[];
|
|
289
|
+
client_branch_seller_cellphone: string;
|
|
290
|
+
client_branch_contact_id?: string;
|
|
291
|
+
client_branch_contact_identification_number?: string;
|
|
292
|
+
client_branch_contact_full_name?: string;
|
|
293
|
+
client_branch_contact_cellphone?: string;
|
|
294
|
+
client_branch_contact_email?: string[];
|
|
295
|
+
payment_term_options: SaveBody.PaymentTermOptions;
|
|
296
|
+
}
|
|
297
|
+
export namespace SaveBody {
|
|
298
|
+
interface PaymentTermOptions {
|
|
299
|
+
global_bank_id?: string;
|
|
300
|
+
global_bank_code?: string;
|
|
301
|
+
financial_bank_id?: string;
|
|
302
|
+
financial_bank_account_number?: string;
|
|
303
|
+
payment_term_id: string;
|
|
304
|
+
account_id?: string;
|
|
305
|
+
card_type?: string;
|
|
306
|
+
batch_code?: string;
|
|
307
|
+
date?: number;
|
|
308
|
+
value: number;
|
|
309
|
+
bank_cheque?: string;
|
|
310
|
+
number_cheque?: string;
|
|
311
|
+
financial_bank_name?: string;
|
|
312
|
+
account_name?: string;
|
|
313
|
+
account_code?: string;
|
|
314
|
+
operation_number?: string;
|
|
315
|
+
payment_term_code: string;
|
|
316
|
+
payment_term_name: string;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
export interface DownloadExcelParams {
|
|
320
|
+
timezone: string;
|
|
321
|
+
locale: string;
|
|
322
|
+
date_begin?: number;
|
|
323
|
+
date_end?: number;
|
|
324
|
+
document_number?: string;
|
|
325
|
+
client_id?: string;
|
|
326
|
+
reverse_status?: boolean;
|
|
327
|
+
}
|
|
328
|
+
export interface DownloadGeneralPdfParams {
|
|
329
|
+
timezone: string;
|
|
330
|
+
locale: string;
|
|
331
|
+
date_begin?: number;
|
|
332
|
+
date_end?: number;
|
|
333
|
+
document_number?: string;
|
|
334
|
+
client_id?: string;
|
|
335
|
+
reverse_status?: boolean;
|
|
336
|
+
}
|
|
337
|
+
export interface DownloadIndividualPdfParams {
|
|
338
|
+
timezone: string;
|
|
339
|
+
locale: string;
|
|
340
|
+
id: string;
|
|
341
|
+
}
|
|
342
|
+
export interface DownloadIndividualExcelParams {
|
|
343
|
+
timezone: string;
|
|
344
|
+
locale: string;
|
|
345
|
+
id: string;
|
|
346
|
+
}
|
|
347
|
+
export interface SendEmailParams {
|
|
348
|
+
timezone: string;
|
|
349
|
+
locale: string;
|
|
350
|
+
emails?: string;
|
|
351
|
+
}
|
|
352
|
+
export {};
|
|
353
|
+
}
|