@cbm-common/cbm-types 0.0.111 → 0.0.113
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 +198 -0
- package/lib/components/item-details/item-details.d.ts +23 -0
- package/lib/components/item-details/item-details.types.d.ts +18 -0
- package/lib/components/json-modal/json-modal.d.ts +1 -1
- package/lib/components/pms-add-charge/folios-modal/folios-modal.d.ts +25 -0
- package/lib/components/pms-add-charge/pms-add-charge.d.ts +26 -0
- package/lib/components/relationship-bank-conciliation-alert/relationship-bank-conciliation-alert.component.d.ts +12 -0
- package/lib/components/xml-modal/xml-modal.d.ts +1 -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 +11 -0
- package/lib/domain/models/income.domain.model.d.ts +479 -0
- package/lib/domain/models/item.domain.model.d.ts +46 -8
- package/lib/domain/models/room.domain.model.d.ts +43 -0
- package/lib/domain/models/sales-account.domain.model.d.ts +444 -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/repositories/room.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/sales-account.domain.repository.d.ts +11 -0
- package/lib/domain/services/cbm-validators.service.d.ts +12 -0
- package/lib/domain/services/general.domain.service.d.ts +13 -0
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +15 -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/repositories/room.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/sales-account.infrastructure.repository.d.ts +8 -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/infrastructure/services/room.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/sales-account.infrastructure.service.d.ts +13 -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
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
export declare namespace IIncomeModel {
|
|
2
|
+
type DetailType = 'automatic' | 'manual';
|
|
3
|
+
type TTypeEstablishment = 'matrix' | 'branch';
|
|
4
|
+
enum ETypeIncome {
|
|
5
|
+
AUTOMATIC = "automatic",
|
|
6
|
+
MANUAL = "manual"
|
|
7
|
+
}
|
|
8
|
+
namespace ETypeIncome {
|
|
9
|
+
function fromString(value: string): ETypeIncome;
|
|
10
|
+
function toString(value: ETypeIncome): TTypeIncome;
|
|
11
|
+
}
|
|
12
|
+
type TTypeIncome = `${ETypeIncome}`;
|
|
13
|
+
interface ListParams {
|
|
14
|
+
page: number;
|
|
15
|
+
size: number;
|
|
16
|
+
document_number?: string;
|
|
17
|
+
date_end?: number;
|
|
18
|
+
date_begin?: number;
|
|
19
|
+
reverse_status?: boolean;
|
|
20
|
+
seller_id?: string;
|
|
21
|
+
client_id?: string;
|
|
22
|
+
}
|
|
23
|
+
interface ListResponse {
|
|
24
|
+
success: boolean;
|
|
25
|
+
pageNum: number;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
pages: number;
|
|
28
|
+
total: number;
|
|
29
|
+
items: ListResponse.Item[];
|
|
30
|
+
}
|
|
31
|
+
namespace ListResponse {
|
|
32
|
+
interface Item {
|
|
33
|
+
_id: string;
|
|
34
|
+
company_id: string;
|
|
35
|
+
user_id: string;
|
|
36
|
+
date_document: number;
|
|
37
|
+
date_account: number;
|
|
38
|
+
document_nomenclature: string;
|
|
39
|
+
document_number: string;
|
|
40
|
+
movement_number?: string;
|
|
41
|
+
total: number;
|
|
42
|
+
company_NIF: string;
|
|
43
|
+
company_address: string;
|
|
44
|
+
company_trade_name: string;
|
|
45
|
+
company_business_name: string;
|
|
46
|
+
cost_center_id: string;
|
|
47
|
+
cost_center_code: string;
|
|
48
|
+
cost_center_name: string;
|
|
49
|
+
created_user: string;
|
|
50
|
+
reverse_status: boolean;
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
created_at: number;
|
|
53
|
+
commentary?: string;
|
|
54
|
+
detail_income: Item.DetailIncome[];
|
|
55
|
+
detail_payment_options: Item.DetailPaymentOption[];
|
|
56
|
+
clientsDetail?: string[];
|
|
57
|
+
paymentsDetails?: string[];
|
|
58
|
+
sellersDetail?: string[];
|
|
59
|
+
checked?: boolean;
|
|
60
|
+
total_credits?: number;
|
|
61
|
+
type?: TTypeIncome;
|
|
62
|
+
}
|
|
63
|
+
namespace Item {
|
|
64
|
+
interface DetailIncome {
|
|
65
|
+
_id: string;
|
|
66
|
+
income_id: string;
|
|
67
|
+
credit_management_id: string;
|
|
68
|
+
credit_management_detail_id: string;
|
|
69
|
+
installment: string;
|
|
70
|
+
paid: number;
|
|
71
|
+
previous_balance: number;
|
|
72
|
+
subsequent_balance: number;
|
|
73
|
+
date_expired: number;
|
|
74
|
+
origin_credit: string;
|
|
75
|
+
period: number;
|
|
76
|
+
created_user: string;
|
|
77
|
+
counter?: number;
|
|
78
|
+
invoice_date: number;
|
|
79
|
+
invoice_number: string;
|
|
80
|
+
client_id: string;
|
|
81
|
+
client_credit_limit?: number;
|
|
82
|
+
client_payment_deadline?: number;
|
|
83
|
+
client_business_name: string;
|
|
84
|
+
client_trade_name: string;
|
|
85
|
+
client_document_number: string;
|
|
86
|
+
client_credit_application: boolean;
|
|
87
|
+
client_document_type_id: string;
|
|
88
|
+
client_document_type_name: string;
|
|
89
|
+
client_document_type_code: string;
|
|
90
|
+
client_category_id: string;
|
|
91
|
+
client_category_name: string;
|
|
92
|
+
client_branch_id: string;
|
|
93
|
+
client_branch_code: string;
|
|
94
|
+
client_branch_name: string;
|
|
95
|
+
client_branch_address: string;
|
|
96
|
+
client_branch_email: string[];
|
|
97
|
+
client_branch_phone_code?: string;
|
|
98
|
+
client_branch_phone?: string;
|
|
99
|
+
client_branch_cellphone?: string;
|
|
100
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
101
|
+
client_branch_province_id?: string;
|
|
102
|
+
client_branch_province_code?: string;
|
|
103
|
+
client_branch_province_name?: string;
|
|
104
|
+
client_branch_canton_id?: string;
|
|
105
|
+
client_branch_canton_code?: string;
|
|
106
|
+
client_branch_canton_name?: string;
|
|
107
|
+
client_branch_parish_id?: string;
|
|
108
|
+
client_branch_parish_code?: string;
|
|
109
|
+
client_branch_parish_name?: string;
|
|
110
|
+
client_branch_longitude?: number;
|
|
111
|
+
client_branch_latitude?: number;
|
|
112
|
+
client_branch_seller_id: string;
|
|
113
|
+
client_branch_seller_identification_number: string;
|
|
114
|
+
client_branch_seller_full_name: string;
|
|
115
|
+
client_branch_seller_address: string;
|
|
116
|
+
client_branch_seller_email: string[];
|
|
117
|
+
client_branch_seller_cellphone: string;
|
|
118
|
+
client_branch_contact_id?: string;
|
|
119
|
+
client_branch_contact_identification_number?: string;
|
|
120
|
+
client_branch_contact_full_name?: string;
|
|
121
|
+
client_branch_contact_cellphone?: string;
|
|
122
|
+
client_branch_contact_email?: string[];
|
|
123
|
+
}
|
|
124
|
+
interface DetailPaymentOption {
|
|
125
|
+
_id: string;
|
|
126
|
+
income_id: string;
|
|
127
|
+
payment_term_id: string;
|
|
128
|
+
global_bank_id?: string;
|
|
129
|
+
global_bank_code?: string;
|
|
130
|
+
financial_bank_id?: string;
|
|
131
|
+
financial_bank_account_number?: string;
|
|
132
|
+
date: number;
|
|
133
|
+
value: number;
|
|
134
|
+
card_type?: string;
|
|
135
|
+
batch_code?: string;
|
|
136
|
+
financial_bank_name?: string;
|
|
137
|
+
account_name: string;
|
|
138
|
+
number_cheque?: string;
|
|
139
|
+
bank_cheque?: string;
|
|
140
|
+
operation_number: string;
|
|
141
|
+
payment_term_code: string;
|
|
142
|
+
payment_term_name: string;
|
|
143
|
+
created_user: string;
|
|
144
|
+
account_id?: string;
|
|
145
|
+
account_code?: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
interface GetOneResponse {
|
|
150
|
+
success: boolean;
|
|
151
|
+
data: GetOneResponse.Data;
|
|
152
|
+
}
|
|
153
|
+
namespace GetOneResponse {
|
|
154
|
+
interface Data {
|
|
155
|
+
_id?: string;
|
|
156
|
+
company_id?: string;
|
|
157
|
+
user_id?: string;
|
|
158
|
+
date_document?: number;
|
|
159
|
+
date_account?: number;
|
|
160
|
+
document_nomenclature?: string;
|
|
161
|
+
document_number?: string;
|
|
162
|
+
movement_number?: string;
|
|
163
|
+
total?: number;
|
|
164
|
+
company_NIF?: string;
|
|
165
|
+
company_address?: string;
|
|
166
|
+
company_trade_name?: string;
|
|
167
|
+
company_business_name?: string;
|
|
168
|
+
cost_center_id?: string;
|
|
169
|
+
cost_center_code?: string;
|
|
170
|
+
cost_center_name?: string;
|
|
171
|
+
enabled?: boolean;
|
|
172
|
+
deleted?: boolean;
|
|
173
|
+
created_user?: string;
|
|
174
|
+
reverse_status?: boolean;
|
|
175
|
+
reverse_reason?: string;
|
|
176
|
+
reverse_at?: number;
|
|
177
|
+
reverse_user?: string;
|
|
178
|
+
commentary?: string;
|
|
179
|
+
detail_income?: Data.DetailIncome[];
|
|
180
|
+
detail_payment_options?: Data.DetailPayment[];
|
|
181
|
+
created_at?: number;
|
|
182
|
+
clientsDetail?: string[];
|
|
183
|
+
paymentsDetails?: string[];
|
|
184
|
+
sellersDetail?: string[];
|
|
185
|
+
type?: TTypeIncome;
|
|
186
|
+
}
|
|
187
|
+
namespace Data {
|
|
188
|
+
interface DetailIncome {
|
|
189
|
+
_id: string;
|
|
190
|
+
income_id: string;
|
|
191
|
+
credit_management_id: string;
|
|
192
|
+
credit_management_detail_id: string;
|
|
193
|
+
credit_document_number: string;
|
|
194
|
+
credit_document_nomenclature: string;
|
|
195
|
+
cost_center_id: string;
|
|
196
|
+
installment: string;
|
|
197
|
+
paid: number;
|
|
198
|
+
previous_balance: number;
|
|
199
|
+
subsequent_balance: number;
|
|
200
|
+
date_expired: number;
|
|
201
|
+
origin_credit: string;
|
|
202
|
+
period: number;
|
|
203
|
+
cost_center_code: string;
|
|
204
|
+
cost_center_name: string;
|
|
205
|
+
created_user: string;
|
|
206
|
+
invoice_number: string;
|
|
207
|
+
invoice_date: number;
|
|
208
|
+
created_at: number;
|
|
209
|
+
client_id: string;
|
|
210
|
+
client_credit_limit?: number;
|
|
211
|
+
client_payment_deadline?: number;
|
|
212
|
+
client_business_name: string;
|
|
213
|
+
client_trade_name: string;
|
|
214
|
+
client_document_number: string;
|
|
215
|
+
client_credit_application: boolean;
|
|
216
|
+
client_document_type_id: string;
|
|
217
|
+
client_document_type_name: string;
|
|
218
|
+
client_document_type_code: string;
|
|
219
|
+
client_category_id: string;
|
|
220
|
+
client_category_name: string;
|
|
221
|
+
client_branch_id: string;
|
|
222
|
+
client_branch_code: string;
|
|
223
|
+
client_branch_name: string;
|
|
224
|
+
client_branch_address: string;
|
|
225
|
+
client_branch_email: string[];
|
|
226
|
+
client_branch_phone_code?: string;
|
|
227
|
+
client_branch_phone?: string;
|
|
228
|
+
client_branch_cellphone?: string;
|
|
229
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
230
|
+
client_branch_province_id?: string;
|
|
231
|
+
client_branch_province_code?: string;
|
|
232
|
+
client_branch_province_name?: string;
|
|
233
|
+
client_branch_canton_id?: string;
|
|
234
|
+
client_branch_canton_code?: string;
|
|
235
|
+
client_branch_canton_name?: string;
|
|
236
|
+
client_branch_parish_id?: string;
|
|
237
|
+
client_branch_parish_code?: string;
|
|
238
|
+
client_branch_parish_name?: string;
|
|
239
|
+
client_branch_longitude?: number;
|
|
240
|
+
client_branch_latitude?: number;
|
|
241
|
+
client_branch_seller_id: string;
|
|
242
|
+
client_branch_seller_identification_number: string;
|
|
243
|
+
client_branch_seller_full_name: string;
|
|
244
|
+
client_branch_seller_address: string;
|
|
245
|
+
client_branch_seller_email: string[];
|
|
246
|
+
client_branch_seller_cellphone: string;
|
|
247
|
+
client_branch_contact_id?: string;
|
|
248
|
+
client_branch_contact_identification_number?: string;
|
|
249
|
+
client_branch_contact_full_name?: string;
|
|
250
|
+
client_branch_contact_cellphone?: string;
|
|
251
|
+
client_branch_contact_email?: string[];
|
|
252
|
+
}
|
|
253
|
+
interface DetailPayment {
|
|
254
|
+
_id: string;
|
|
255
|
+
income_id: string;
|
|
256
|
+
payment_term_id: string;
|
|
257
|
+
global_bank_id?: string;
|
|
258
|
+
global_bank_code?: string;
|
|
259
|
+
financial_bank_id?: string;
|
|
260
|
+
financial_bank_account_number?: string;
|
|
261
|
+
date: number;
|
|
262
|
+
value: number;
|
|
263
|
+
card_type?: string;
|
|
264
|
+
batch_code?: string;
|
|
265
|
+
financial_bank_name?: string;
|
|
266
|
+
account_name: string;
|
|
267
|
+
number_cheque?: string;
|
|
268
|
+
bank_cheque?: string;
|
|
269
|
+
operation_number: string;
|
|
270
|
+
payment_term_code: string;
|
|
271
|
+
payment_term_name: string;
|
|
272
|
+
created_user: string;
|
|
273
|
+
account_id?: string;
|
|
274
|
+
account_code?: string;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
interface SaveBody {
|
|
279
|
+
company_NIF: string;
|
|
280
|
+
company_address: string;
|
|
281
|
+
company_trade_name: string;
|
|
282
|
+
company_business_name: string;
|
|
283
|
+
company_logo: string;
|
|
284
|
+
user_id: string;
|
|
285
|
+
date_document: number;
|
|
286
|
+
date_account: number;
|
|
287
|
+
total: number;
|
|
288
|
+
cost_center_id: string;
|
|
289
|
+
cost_center_code: string;
|
|
290
|
+
cost_center_name: string;
|
|
291
|
+
commentary?: string;
|
|
292
|
+
detail_income: SaveBody.DetailIncome[];
|
|
293
|
+
detail_payment_options: SaveBody.DetailPaymentOption[];
|
|
294
|
+
}
|
|
295
|
+
namespace SaveBody {
|
|
296
|
+
interface DetailIncome {
|
|
297
|
+
credit_management_id: string;
|
|
298
|
+
credit_management_detail_id: string;
|
|
299
|
+
cost_center_id: string;
|
|
300
|
+
client_id: string;
|
|
301
|
+
client_business_name: string;
|
|
302
|
+
client_trade_name: string;
|
|
303
|
+
client_document_number: string;
|
|
304
|
+
client_credit_application: boolean;
|
|
305
|
+
client_document_type_id: string;
|
|
306
|
+
client_document_type_code: string;
|
|
307
|
+
client_document_type_name: string;
|
|
308
|
+
client_category_id: string;
|
|
309
|
+
client_category_name: string;
|
|
310
|
+
client_price_list_id: string;
|
|
311
|
+
client_price_list_code: string;
|
|
312
|
+
client_price_list_name: string;
|
|
313
|
+
client_branch_id: string;
|
|
314
|
+
client_branch_code: string;
|
|
315
|
+
client_branch_name: string;
|
|
316
|
+
client_branch_address: string;
|
|
317
|
+
client_branch_email: string[];
|
|
318
|
+
client_branch_phone_code: string;
|
|
319
|
+
client_branch_phone: string;
|
|
320
|
+
client_branch_cellphone: string;
|
|
321
|
+
client_branch_type_establishment: string;
|
|
322
|
+
client_branch_province_id: string;
|
|
323
|
+
client_branch_province_code: string;
|
|
324
|
+
client_branch_province_name: string;
|
|
325
|
+
client_branch_canton_id: string;
|
|
326
|
+
client_branch_canton_code: string;
|
|
327
|
+
client_branch_canton_name: string;
|
|
328
|
+
client_branch_parish_id: string;
|
|
329
|
+
client_branch_parish_code: string;
|
|
330
|
+
client_branch_parish_name: string;
|
|
331
|
+
client_branch_longitude: number;
|
|
332
|
+
client_branch_latitude: number;
|
|
333
|
+
client_branch_seller_id: string;
|
|
334
|
+
client_branch_seller_identification_number: string;
|
|
335
|
+
client_branch_seller_full_name: string;
|
|
336
|
+
client_branch_seller_address: string;
|
|
337
|
+
client_branch_seller_email: string[];
|
|
338
|
+
client_branch_seller_cellphone: string;
|
|
339
|
+
client_branch_contact_id: string;
|
|
340
|
+
client_branch_contact_identification_number: string;
|
|
341
|
+
client_branch_contact_full_name: string;
|
|
342
|
+
client_branch_contact_cellphone: string;
|
|
343
|
+
client_branch_contact_email: string[];
|
|
344
|
+
installment: string;
|
|
345
|
+
paid: number;
|
|
346
|
+
previous_balance: number;
|
|
347
|
+
subsequent_balance: number;
|
|
348
|
+
cost_center_code: string;
|
|
349
|
+
cost_center_name: string;
|
|
350
|
+
credit_document_nomenclature: string;
|
|
351
|
+
credit_document_number: string;
|
|
352
|
+
invoice_date: number;
|
|
353
|
+
invoice_number: string;
|
|
354
|
+
date_expired: number;
|
|
355
|
+
origin_credit: string;
|
|
356
|
+
period: number;
|
|
357
|
+
}
|
|
358
|
+
interface DetailPaymentOption {
|
|
359
|
+
global_bank_id?: string;
|
|
360
|
+
global_bank_code?: string;
|
|
361
|
+
financial_bank_id?: string;
|
|
362
|
+
financial_bank_account_number?: string;
|
|
363
|
+
payment_term_id: string;
|
|
364
|
+
account_id?: string;
|
|
365
|
+
date?: number;
|
|
366
|
+
value: number;
|
|
367
|
+
card_type?: string;
|
|
368
|
+
batch_code?: string;
|
|
369
|
+
financial_bank_name?: string;
|
|
370
|
+
account_name?: string;
|
|
371
|
+
account_code?: string;
|
|
372
|
+
operation_number?: string;
|
|
373
|
+
payment_term_code: string;
|
|
374
|
+
payment_term_name: string;
|
|
375
|
+
bank_cheque?: string;
|
|
376
|
+
number_cheque?: string;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
interface ListDetailsResponse {
|
|
380
|
+
success: boolean;
|
|
381
|
+
data: ListDetailsResponse.Data[];
|
|
382
|
+
}
|
|
383
|
+
namespace ListDetailsResponse {
|
|
384
|
+
interface Data {
|
|
385
|
+
_id: string;
|
|
386
|
+
income_id?: string;
|
|
387
|
+
credit_management_id?: string;
|
|
388
|
+
credit_management_detail_id?: string;
|
|
389
|
+
cost_center_id?: string;
|
|
390
|
+
installment?: string;
|
|
391
|
+
invoice_number?: string;
|
|
392
|
+
invoice_date?: number;
|
|
393
|
+
paid?: number;
|
|
394
|
+
previous_balance?: number;
|
|
395
|
+
subsequent_balance?: number;
|
|
396
|
+
created_user?: string;
|
|
397
|
+
created_at?: number;
|
|
398
|
+
type?: TTypeIncome;
|
|
399
|
+
client_id: string;
|
|
400
|
+
client_credit_limit?: number;
|
|
401
|
+
client_payment_deadline?: number;
|
|
402
|
+
client_business_name: string;
|
|
403
|
+
client_trade_name: string;
|
|
404
|
+
client_document_number: string;
|
|
405
|
+
client_credit_application: boolean;
|
|
406
|
+
client_document_type_id: string;
|
|
407
|
+
client_document_type_name: string;
|
|
408
|
+
client_document_type_code: string;
|
|
409
|
+
client_category_id: string;
|
|
410
|
+
client_category_name: string;
|
|
411
|
+
client_branch_id: string;
|
|
412
|
+
client_branch_code: string;
|
|
413
|
+
client_branch_name: string;
|
|
414
|
+
client_branch_address: string;
|
|
415
|
+
client_branch_email: string[];
|
|
416
|
+
client_branch_phone_code?: string;
|
|
417
|
+
client_branch_phone?: string;
|
|
418
|
+
client_branch_cellphone?: string;
|
|
419
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
420
|
+
client_branch_province_id?: string;
|
|
421
|
+
client_branch_province_code?: string;
|
|
422
|
+
client_branch_province_name?: string;
|
|
423
|
+
client_branch_canton_id?: string;
|
|
424
|
+
client_branch_canton_code?: string;
|
|
425
|
+
client_branch_canton_name?: string;
|
|
426
|
+
client_branch_parish_id?: string;
|
|
427
|
+
client_branch_parish_code?: string;
|
|
428
|
+
client_branch_parish_name?: string;
|
|
429
|
+
client_branch_longitude?: number;
|
|
430
|
+
client_branch_latitude?: number;
|
|
431
|
+
client_branch_seller_id: string;
|
|
432
|
+
client_branch_seller_identification_number: string;
|
|
433
|
+
client_branch_seller_full_name: string;
|
|
434
|
+
client_branch_seller_address: string;
|
|
435
|
+
client_branch_seller_email: string[];
|
|
436
|
+
client_branch_seller_cellphone: string;
|
|
437
|
+
client_branch_contact_id?: string;
|
|
438
|
+
client_branch_contact_identification_number?: string;
|
|
439
|
+
client_branch_contact_full_name?: string;
|
|
440
|
+
client_branch_contact_cellphone?: string;
|
|
441
|
+
client_branch_contact_email?: string[];
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
interface DownloadExcelParams {
|
|
445
|
+
seller_id?: string;
|
|
446
|
+
client_id?: string;
|
|
447
|
+
document_number?: string;
|
|
448
|
+
date_end?: number;
|
|
449
|
+
date_begin?: number;
|
|
450
|
+
reverse_status?: boolean;
|
|
451
|
+
timezone: string;
|
|
452
|
+
locale: string;
|
|
453
|
+
}
|
|
454
|
+
interface DownloadGeneralPdfParams {
|
|
455
|
+
seller_id?: string;
|
|
456
|
+
client_id?: string;
|
|
457
|
+
document_number?: string;
|
|
458
|
+
date_end?: number;
|
|
459
|
+
date_begin?: number;
|
|
460
|
+
reverse_status?: boolean;
|
|
461
|
+
timezone: string;
|
|
462
|
+
locale: string;
|
|
463
|
+
}
|
|
464
|
+
interface DownloadIndividualPdfParams {
|
|
465
|
+
timezone: string;
|
|
466
|
+
locale: string;
|
|
467
|
+
id: string;
|
|
468
|
+
}
|
|
469
|
+
interface DownloadIndividualExcelParams {
|
|
470
|
+
timezone: string;
|
|
471
|
+
locale: string;
|
|
472
|
+
id: string;
|
|
473
|
+
}
|
|
474
|
+
interface SendEmailParams {
|
|
475
|
+
timezone: string;
|
|
476
|
+
locale: string;
|
|
477
|
+
emails?: string;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
@@ -800,6 +800,16 @@ export declare namespace CbmItemModel {
|
|
|
800
800
|
properties?: Data.Property[];
|
|
801
801
|
unit_measure_price_lists?: Data.UnitMeasurePriceList[];
|
|
802
802
|
unit_measures?: Data.UnitMeasure[];
|
|
803
|
+
user_id?: string;
|
|
804
|
+
unit_measure_group_name?: string;
|
|
805
|
+
deleted?: boolean;
|
|
806
|
+
deleted_at?: number;
|
|
807
|
+
unit_cost_kardex?: number;
|
|
808
|
+
total_items?: number;
|
|
809
|
+
unit_measure_name?: string;
|
|
810
|
+
manufacturer_name?: string;
|
|
811
|
+
purchases_unit_measure_name?: string;
|
|
812
|
+
sales_unit_measure_name?: string;
|
|
803
813
|
}
|
|
804
814
|
namespace Data {
|
|
805
815
|
interface Category {
|
|
@@ -845,6 +855,15 @@ export declare namespace CbmItemModel {
|
|
|
845
855
|
item_id?: string;
|
|
846
856
|
base_price?: number;
|
|
847
857
|
tax_price?: number;
|
|
858
|
+
base_prices_list_id?: string;
|
|
859
|
+
independent?: boolean;
|
|
860
|
+
updated_at?: number;
|
|
861
|
+
updated_user?: string;
|
|
862
|
+
disabled_at?: number;
|
|
863
|
+
disabled_reason?: string;
|
|
864
|
+
disabled_user?: string;
|
|
865
|
+
disabled_user_id?: string;
|
|
866
|
+
user_id?: string;
|
|
848
867
|
}
|
|
849
868
|
interface Warehouse {
|
|
850
869
|
_id: string;
|
|
@@ -860,20 +879,32 @@ export declare namespace CbmItemModel {
|
|
|
860
879
|
created_user?: string;
|
|
861
880
|
updated_at?: number;
|
|
862
881
|
updated_user?: string;
|
|
863
|
-
|
|
882
|
+
company_id?: string;
|
|
883
|
+
warehouse_data?: Warehouse.Data;
|
|
884
|
+
warehouse_name?: string;
|
|
864
885
|
}
|
|
865
886
|
namespace Warehouse {
|
|
866
|
-
interface
|
|
867
|
-
_id
|
|
887
|
+
interface Data {
|
|
888
|
+
_id?: string;
|
|
868
889
|
company_id?: string;
|
|
869
|
-
|
|
890
|
+
user_id?: string;
|
|
870
891
|
code?: string;
|
|
871
892
|
name?: string;
|
|
872
893
|
address?: string;
|
|
873
894
|
enabled?: boolean;
|
|
874
|
-
|
|
875
|
-
created_at?: number;
|
|
895
|
+
deleted?: boolean;
|
|
876
896
|
created_user?: string;
|
|
897
|
+
created_at?: number;
|
|
898
|
+
disabled_at?: number;
|
|
899
|
+
disabled_reason?: string;
|
|
900
|
+
disabled_user?: string;
|
|
901
|
+
disabled_user_id?: string;
|
|
902
|
+
enabled_at?: number;
|
|
903
|
+
enabled_user?: string;
|
|
904
|
+
enabled_user_id?: string;
|
|
905
|
+
updated_at?: number;
|
|
906
|
+
updated_user?: string;
|
|
907
|
+
updated_user_id?: string;
|
|
877
908
|
}
|
|
878
909
|
}
|
|
879
910
|
interface Property {
|
|
@@ -886,7 +917,7 @@ export declare namespace CbmItemModel {
|
|
|
886
917
|
updated_user?: string;
|
|
887
918
|
}
|
|
888
919
|
interface UnitMeasurePriceList {
|
|
889
|
-
_id
|
|
920
|
+
_id?: string;
|
|
890
921
|
item_id?: string;
|
|
891
922
|
unit_measure_id?: string;
|
|
892
923
|
price_list_id?: string;
|
|
@@ -895,14 +926,21 @@ export declare namespace CbmItemModel {
|
|
|
895
926
|
tax_price?: number;
|
|
896
927
|
created_user?: string;
|
|
897
928
|
created_at?: number;
|
|
929
|
+
price_list_name?: string;
|
|
930
|
+
price_list_factor?: number;
|
|
931
|
+
unit_measure_name?: string;
|
|
932
|
+
unit_measure_code?: string;
|
|
933
|
+
unit_measure_group_amount?: number;
|
|
898
934
|
}
|
|
899
935
|
interface UnitMeasure {
|
|
900
|
-
_id
|
|
936
|
+
_id?: string;
|
|
901
937
|
item_id?: string;
|
|
902
938
|
unit_measure_id?: string;
|
|
903
939
|
barcode?: string;
|
|
904
940
|
created_user?: string;
|
|
905
941
|
created_at?: number;
|
|
942
|
+
unit_measure_name?: string;
|
|
943
|
+
unit_measure_code?: string;
|
|
906
944
|
}
|
|
907
945
|
}
|
|
908
946
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare namespace CbmRoomModel {
|
|
2
|
+
interface RoomStateParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
date_consultation?: number;
|
|
6
|
+
room_name?: string;
|
|
7
|
+
}
|
|
8
|
+
interface RoomStateResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
pageNum: number;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
pages: number;
|
|
13
|
+
total: number;
|
|
14
|
+
items: RoomStateResponse.Items[];
|
|
15
|
+
}
|
|
16
|
+
namespace RoomStateResponse {
|
|
17
|
+
interface Items {
|
|
18
|
+
_id: string;
|
|
19
|
+
company_id?: string;
|
|
20
|
+
company_NIF: string;
|
|
21
|
+
company_address: string;
|
|
22
|
+
company_trade_name: string;
|
|
23
|
+
company_business_name: string;
|
|
24
|
+
country_id: string;
|
|
25
|
+
country_code: string;
|
|
26
|
+
country_name: string;
|
|
27
|
+
country_short_name: string;
|
|
28
|
+
period_id: string;
|
|
29
|
+
period_year: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
floor_id?: string;
|
|
32
|
+
room_type_id?: string;
|
|
33
|
+
room_type_name: string;
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
created_user?: string;
|
|
36
|
+
created_at?: number;
|
|
37
|
+
state_room?: string;
|
|
38
|
+
state_room_provided?: string;
|
|
39
|
+
updated_at?: number;
|
|
40
|
+
updated_user?: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|