@cbm-common/cbm-types 0.0.30 → 0.0.32
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/billing-order.domain.model.d.ts +530 -0
- package/lib/domain/models/company-custom.domain.model.d.ts +52 -0
- package/lib/domain/repositories/billing-order.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/card-settlement.domain.repository.d.ts +1 -2
- package/lib/domain/repositories/company-custom.domain.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/billing-order.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/company-custom.infrastructure.repository.d.ts +8 -0
- package/lib/infrastructure/services/billing-order.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/company-custom.infrastructure.service.d.ts +12 -0
- package/lib/remotes/repositories/billing-order.repository.d.ts +3 -0
- package/lib/remotes/repositories/company-branch.repository.d.ts +2 -2
- package/lib/remotes/repositories/company-custom.repository.d.ts +3 -0
- package/lib/remotes/repositories/general-report.repository.d.ts +3 -0
- package/lib/remotes/repositories/stock-item.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +6 -1
- package/package.json +1 -1
- package/public-api.d.ts +16 -0
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { CbmSalePriceModel } from './sale-price.domain.model';
|
|
2
|
+
export declare namespace CbmBillingOrderModel {
|
|
3
|
+
type DetailType = 'item' | 'service' | 'kit';
|
|
4
|
+
interface ListParams {
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
user_id?: string;
|
|
8
|
+
date_end?: number;
|
|
9
|
+
date_begin?: number;
|
|
10
|
+
document_number?: string;
|
|
11
|
+
origin?: string;
|
|
12
|
+
seller_id?: string;
|
|
13
|
+
client_branch_id?: string;
|
|
14
|
+
client_id?: string;
|
|
15
|
+
state?: string;
|
|
16
|
+
}
|
|
17
|
+
interface ListResponse {
|
|
18
|
+
success: boolean;
|
|
19
|
+
pageNum: number;
|
|
20
|
+
pageSize: number;
|
|
21
|
+
pages: number;
|
|
22
|
+
total: number;
|
|
23
|
+
items: ListResponse.Item[];
|
|
24
|
+
}
|
|
25
|
+
namespace ListResponse {
|
|
26
|
+
interface Item {
|
|
27
|
+
_id: string;
|
|
28
|
+
company_id?: string;
|
|
29
|
+
company_branch_id?: string;
|
|
30
|
+
client_id?: string;
|
|
31
|
+
booking_id?: string;
|
|
32
|
+
work_order_id?: string;
|
|
33
|
+
user_id?: string;
|
|
34
|
+
document_date?: number;
|
|
35
|
+
state?: string;
|
|
36
|
+
expired_at?: number;
|
|
37
|
+
document_nomenclature?: string;
|
|
38
|
+
document_number?: string;
|
|
39
|
+
tax_base?: number;
|
|
40
|
+
discount?: number;
|
|
41
|
+
service?: number;
|
|
42
|
+
tax_base_iva?: number;
|
|
43
|
+
tax_base_iva_rate_0?: number;
|
|
44
|
+
tax_base_iva_exempt?: number;
|
|
45
|
+
tax_base_iva_not_subject?: number;
|
|
46
|
+
tax_base_irbpnr?: number;
|
|
47
|
+
tax_base_ice?: number;
|
|
48
|
+
tax_iva?: number;
|
|
49
|
+
tax_irbnpnr?: number;
|
|
50
|
+
tax_ice?: number;
|
|
51
|
+
total?: number;
|
|
52
|
+
commentary?: string;
|
|
53
|
+
company_NIF?: string;
|
|
54
|
+
company_address?: string;
|
|
55
|
+
company_trade_name?: string;
|
|
56
|
+
company_business_name?: string;
|
|
57
|
+
company_branch_identification_number?: string;
|
|
58
|
+
company_branch_trade_name?: string;
|
|
59
|
+
company_branch_logo?: string;
|
|
60
|
+
company_branch_address?: string;
|
|
61
|
+
company_branch_email?: string;
|
|
62
|
+
company_branch_cellphone?: string;
|
|
63
|
+
company_branch_phone?: string;
|
|
64
|
+
client_document_number?: string;
|
|
65
|
+
client_trade_name?: string;
|
|
66
|
+
client_business_name?: string;
|
|
67
|
+
client_phone_code?: string;
|
|
68
|
+
client_address?: string;
|
|
69
|
+
client_cellphone?: string;
|
|
70
|
+
client_email?: string;
|
|
71
|
+
client_branch_id?: string;
|
|
72
|
+
client_category_id?: string;
|
|
73
|
+
client_province_id?: string;
|
|
74
|
+
client_canton_id?: string;
|
|
75
|
+
client_parish_id?: string;
|
|
76
|
+
contact_id?: string;
|
|
77
|
+
seller_id?: string;
|
|
78
|
+
client_branch_code?: string;
|
|
79
|
+
client_branch_name?: string;
|
|
80
|
+
client_branch_address?: string;
|
|
81
|
+
client_branch_email?: string;
|
|
82
|
+
client_branch_cellphone?: string;
|
|
83
|
+
client_branch_phone?: string;
|
|
84
|
+
client_branch_phone_code?: string;
|
|
85
|
+
client_category_name?: string;
|
|
86
|
+
client_province_code?: string;
|
|
87
|
+
client_province_name?: string;
|
|
88
|
+
client_canton_code?: string;
|
|
89
|
+
client_canton_name?: string;
|
|
90
|
+
client_parish_code?: string;
|
|
91
|
+
client_parish_name?: string;
|
|
92
|
+
client_document_code?: string;
|
|
93
|
+
contact_identification_number?: string;
|
|
94
|
+
contact_full_name?: string;
|
|
95
|
+
contact_phone_code?: string;
|
|
96
|
+
contact_cellphone?: string;
|
|
97
|
+
contact_email?: string;
|
|
98
|
+
seller_identification_number?: string;
|
|
99
|
+
seller_full_name?: string;
|
|
100
|
+
default_price_list_id?: string;
|
|
101
|
+
default_cost_center_id?: string;
|
|
102
|
+
default_cost_center_code?: string;
|
|
103
|
+
default_cost_center_name?: string;
|
|
104
|
+
default_discount_rate?: number;
|
|
105
|
+
cancellation_reason?: string;
|
|
106
|
+
created_user?: string;
|
|
107
|
+
created_at?: number;
|
|
108
|
+
updated_at?: number;
|
|
109
|
+
updated_user?: string;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
interface GetOneResponse {
|
|
113
|
+
success: boolean;
|
|
114
|
+
data: GetOneResponse.Data;
|
|
115
|
+
}
|
|
116
|
+
namespace GetOneResponse {
|
|
117
|
+
interface Data {
|
|
118
|
+
_id: string;
|
|
119
|
+
company_id?: string;
|
|
120
|
+
company_branch_id?: string;
|
|
121
|
+
client_id?: string;
|
|
122
|
+
booking_id?: string;
|
|
123
|
+
work_order_id?: string;
|
|
124
|
+
user_id?: string;
|
|
125
|
+
document_date?: number;
|
|
126
|
+
state?: string;
|
|
127
|
+
expired_at?: number;
|
|
128
|
+
document_nomenclature?: string;
|
|
129
|
+
document_number?: string;
|
|
130
|
+
tax_base?: number;
|
|
131
|
+
discount?: number;
|
|
132
|
+
service?: number;
|
|
133
|
+
tax_base_iva?: number;
|
|
134
|
+
tax_base_iva_rate_0?: number;
|
|
135
|
+
tax_base_iva_exempt?: number;
|
|
136
|
+
tax_base_iva_not_subject?: number;
|
|
137
|
+
tax_base_irbpnr?: number;
|
|
138
|
+
tax_base_ice?: number;
|
|
139
|
+
tax_iva?: number;
|
|
140
|
+
tax_irbnpnr?: number;
|
|
141
|
+
tax_ice?: number;
|
|
142
|
+
total?: number;
|
|
143
|
+
commentary?: string;
|
|
144
|
+
company_NIF?: string;
|
|
145
|
+
company_address?: string;
|
|
146
|
+
company_trade_name?: string;
|
|
147
|
+
company_business_name?: string;
|
|
148
|
+
company_branch_identification_number?: string;
|
|
149
|
+
company_branch_trade_name?: string;
|
|
150
|
+
company_branch_logo?: string;
|
|
151
|
+
company_branch_address?: string;
|
|
152
|
+
company_branch_email?: string;
|
|
153
|
+
company_branch_cellphone?: string;
|
|
154
|
+
company_branch_phone?: string;
|
|
155
|
+
client_document_number?: string;
|
|
156
|
+
client_trade_name?: string;
|
|
157
|
+
client_business_name?: string;
|
|
158
|
+
client_phone_code?: string;
|
|
159
|
+
client_address?: string;
|
|
160
|
+
client_cellphone?: string;
|
|
161
|
+
client_email?: string;
|
|
162
|
+
client_branch_id?: string;
|
|
163
|
+
client_category_id?: string;
|
|
164
|
+
client_province_id?: string;
|
|
165
|
+
client_canton_id?: string;
|
|
166
|
+
client_parish_id?: string;
|
|
167
|
+
contact_id?: string;
|
|
168
|
+
seller_id?: string;
|
|
169
|
+
client_branch_code?: string;
|
|
170
|
+
client_branch_name?: string;
|
|
171
|
+
client_branch_address?: string;
|
|
172
|
+
client_branch_email?: string;
|
|
173
|
+
client_branch_cellphone?: string;
|
|
174
|
+
client_branch_phone?: string;
|
|
175
|
+
client_branch_phone_code?: string;
|
|
176
|
+
client_category_name?: string;
|
|
177
|
+
client_province_code?: string;
|
|
178
|
+
client_province_name?: string;
|
|
179
|
+
client_canton_code?: string;
|
|
180
|
+
client_canton_name?: string;
|
|
181
|
+
client_parish_code?: string;
|
|
182
|
+
client_parish_name?: string;
|
|
183
|
+
client_document_code?: string;
|
|
184
|
+
contact_identification_number?: string;
|
|
185
|
+
contact_full_name?: string;
|
|
186
|
+
contact_phone_code?: string;
|
|
187
|
+
contact_cellphone?: string;
|
|
188
|
+
contact_email?: string;
|
|
189
|
+
seller_identification_number?: string;
|
|
190
|
+
seller_full_name?: string;
|
|
191
|
+
default_price_list_id?: string;
|
|
192
|
+
default_cost_center_id?: string;
|
|
193
|
+
default_cost_center_code?: string;
|
|
194
|
+
default_cost_center_name?: string;
|
|
195
|
+
default_discount_rate?: number;
|
|
196
|
+
cancellation_reason?: string;
|
|
197
|
+
created_user?: string;
|
|
198
|
+
created_at?: number;
|
|
199
|
+
updated_at?: number;
|
|
200
|
+
updated_user?: string;
|
|
201
|
+
billing_order_detail?: Data.Detail[];
|
|
202
|
+
billing_order_tax?: Data.Tax[];
|
|
203
|
+
}
|
|
204
|
+
namespace Data {
|
|
205
|
+
interface Detail {
|
|
206
|
+
_id: string;
|
|
207
|
+
billing_order_id?: string;
|
|
208
|
+
item_id?: string;
|
|
209
|
+
category_id?: string;
|
|
210
|
+
cost_center_id?: string;
|
|
211
|
+
price_list_id?: string;
|
|
212
|
+
tax_iva_id?: string;
|
|
213
|
+
tax_irbpn_id?: string;
|
|
214
|
+
tax_ice_id?: string;
|
|
215
|
+
unit_measure_id?: string;
|
|
216
|
+
amount?: number;
|
|
217
|
+
price_base?: number;
|
|
218
|
+
total_price?: number;
|
|
219
|
+
discount_rate?: number;
|
|
220
|
+
unit_discount?: number;
|
|
221
|
+
total_discount?: number;
|
|
222
|
+
replace_item_name?: string;
|
|
223
|
+
commentary_item?: string;
|
|
224
|
+
tax_iva_rate?: number;
|
|
225
|
+
item_code?: string;
|
|
226
|
+
item_barcode?: string;
|
|
227
|
+
item_name?: string;
|
|
228
|
+
unit_measure_name?: string;
|
|
229
|
+
category_name?: string;
|
|
230
|
+
cost_center_code?: string;
|
|
231
|
+
cost_center_name?: string;
|
|
232
|
+
price_list_name?: string;
|
|
233
|
+
type?: DetailType;
|
|
234
|
+
price_type?: CbmSalePriceModel.TName;
|
|
235
|
+
price_type_description?: string;
|
|
236
|
+
price_type_id?: string;
|
|
237
|
+
deleted?: boolean;
|
|
238
|
+
created_at?: number;
|
|
239
|
+
created_user?: string;
|
|
240
|
+
updated_at?: number;
|
|
241
|
+
updated_user?: string;
|
|
242
|
+
billing_order_detail_tax?: Detail.Tax[];
|
|
243
|
+
tax_iva?: Detail.TaxIva;
|
|
244
|
+
}
|
|
245
|
+
namespace Detail {
|
|
246
|
+
interface Tax {
|
|
247
|
+
_id: string;
|
|
248
|
+
billing_order_detail_id?: string;
|
|
249
|
+
type?: string;
|
|
250
|
+
tax_code?: string;
|
|
251
|
+
tax_rate?: number;
|
|
252
|
+
tax_base?: number;
|
|
253
|
+
tax_value?: number;
|
|
254
|
+
}
|
|
255
|
+
interface TaxIva {
|
|
256
|
+
_id: string;
|
|
257
|
+
country_id?: string;
|
|
258
|
+
code?: string;
|
|
259
|
+
percentage?: number;
|
|
260
|
+
description?: string;
|
|
261
|
+
enabled?: boolean;
|
|
262
|
+
created_user?: string;
|
|
263
|
+
created_at?: number;
|
|
264
|
+
updated_user?: string;
|
|
265
|
+
updated_at?: number;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
interface Tax {
|
|
269
|
+
_id: string;
|
|
270
|
+
billing_order_id: string;
|
|
271
|
+
type: string;
|
|
272
|
+
tax_code: string;
|
|
273
|
+
tax_rate: number;
|
|
274
|
+
tax_base: number;
|
|
275
|
+
tax_value: number;
|
|
276
|
+
created_at: number;
|
|
277
|
+
created_user: string;
|
|
278
|
+
updated_at?: number;
|
|
279
|
+
updated_user?: string;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
interface SaveBody {
|
|
284
|
+
client_id?: string;
|
|
285
|
+
client_branch_id?: string;
|
|
286
|
+
client_category_id?: string;
|
|
287
|
+
client_province_id?: string;
|
|
288
|
+
client_canton_id?: string;
|
|
289
|
+
client_parish_id?: string;
|
|
290
|
+
contact_id?: string;
|
|
291
|
+
seller_id?: string;
|
|
292
|
+
booking_id?: string;
|
|
293
|
+
work_order_id?: string;
|
|
294
|
+
document_date?: number;
|
|
295
|
+
state?: string;
|
|
296
|
+
tax_base?: number;
|
|
297
|
+
discount?: number;
|
|
298
|
+
service?: number;
|
|
299
|
+
commentary?: string;
|
|
300
|
+
client_document_number?: string;
|
|
301
|
+
client_document_code?: string;
|
|
302
|
+
client_trade_name?: string;
|
|
303
|
+
client_business_name?: string;
|
|
304
|
+
client_phone_code?: string;
|
|
305
|
+
client_address?: string;
|
|
306
|
+
client_cellphone?: string;
|
|
307
|
+
client_email?: string;
|
|
308
|
+
client_category_name?: string;
|
|
309
|
+
client_branch_code?: string;
|
|
310
|
+
client_branch_name?: string;
|
|
311
|
+
client_branch_address?: string;
|
|
312
|
+
client_branch_email?: string;
|
|
313
|
+
client_branch_cellphone?: string;
|
|
314
|
+
client_branch_phone?: string;
|
|
315
|
+
client_branch_phone_code?: string;
|
|
316
|
+
client_province_code?: string;
|
|
317
|
+
client_province_name?: string;
|
|
318
|
+
client_canton_code?: string;
|
|
319
|
+
client_canton_name?: string;
|
|
320
|
+
client_parish_code?: string;
|
|
321
|
+
client_parish_name?: string;
|
|
322
|
+
contact_identification_number?: string;
|
|
323
|
+
contact_full_name?: string;
|
|
324
|
+
contact_phone_code?: string;
|
|
325
|
+
contact_cellphone?: string;
|
|
326
|
+
contact_email?: string;
|
|
327
|
+
seller_full_name?: string;
|
|
328
|
+
seller_identification_number?: string;
|
|
329
|
+
default_price_list_id?: string;
|
|
330
|
+
default_cost_center_id?: string;
|
|
331
|
+
default_cost_center_code?: string;
|
|
332
|
+
default_cost_center_name?: string;
|
|
333
|
+
default_discount_rate?: number;
|
|
334
|
+
tax_base_iva: number;
|
|
335
|
+
tax_base_iva_rate_0: number;
|
|
336
|
+
tax_base_iva_exempt: number;
|
|
337
|
+
tax_base_iva_not_subject: number;
|
|
338
|
+
tax_base_irbpnr: number;
|
|
339
|
+
tax_base_ice: number;
|
|
340
|
+
tax_iva: number;
|
|
341
|
+
tax_irbpnr: number;
|
|
342
|
+
tax_ice: number;
|
|
343
|
+
total: number;
|
|
344
|
+
billing_order_detail: SaveBody.Detail[];
|
|
345
|
+
billing_order_tax: SaveBody.Tax[];
|
|
346
|
+
}
|
|
347
|
+
namespace SaveBody {
|
|
348
|
+
interface Detail {
|
|
349
|
+
item_id: string;
|
|
350
|
+
category_id: string;
|
|
351
|
+
cost_center_id?: string;
|
|
352
|
+
price_list_id: string;
|
|
353
|
+
tax_iva_id: string;
|
|
354
|
+
tax_irbpn_id?: string;
|
|
355
|
+
tax_ice_id?: string;
|
|
356
|
+
unit_measure_id?: string;
|
|
357
|
+
amount: number;
|
|
358
|
+
free_amount?: number;
|
|
359
|
+
price_base: number;
|
|
360
|
+
total_price: number;
|
|
361
|
+
discount_rate: number;
|
|
362
|
+
unit_discount: number;
|
|
363
|
+
total_discount: number;
|
|
364
|
+
commentary_item?: string | null;
|
|
365
|
+
replace_item_name?: string | null;
|
|
366
|
+
tax_iva_rate: number;
|
|
367
|
+
item_code: string;
|
|
368
|
+
item_barcode?: string;
|
|
369
|
+
item_name: string;
|
|
370
|
+
unit_measure_name?: string;
|
|
371
|
+
category_name: string;
|
|
372
|
+
cost_center_code?: string;
|
|
373
|
+
cost_center_name?: string;
|
|
374
|
+
price_list_name: string;
|
|
375
|
+
type: DetailType;
|
|
376
|
+
price_type?: CbmSalePriceModel.TName;
|
|
377
|
+
price_type_description?: string;
|
|
378
|
+
price_type_id?: string;
|
|
379
|
+
billing_order_detail_tax: Detail.Tax[];
|
|
380
|
+
}
|
|
381
|
+
namespace Detail {
|
|
382
|
+
interface Tax {
|
|
383
|
+
type: string;
|
|
384
|
+
tax_code: string;
|
|
385
|
+
tax_rate: number;
|
|
386
|
+
tax_base: number;
|
|
387
|
+
tax_value: number;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
interface Tax {
|
|
391
|
+
type: string;
|
|
392
|
+
tax_code: string;
|
|
393
|
+
tax_rate: number;
|
|
394
|
+
tax_base: number;
|
|
395
|
+
tax_value: number;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
interface UpdateBody {
|
|
399
|
+
client_id?: string;
|
|
400
|
+
client_branch_id?: string;
|
|
401
|
+
client_category_id?: string;
|
|
402
|
+
client_province_id?: string;
|
|
403
|
+
client_canton_id?: string;
|
|
404
|
+
client_parish_id?: string;
|
|
405
|
+
contact_id?: string;
|
|
406
|
+
seller_id?: string;
|
|
407
|
+
booking_id?: string;
|
|
408
|
+
work_order_id?: string;
|
|
409
|
+
document_date?: number;
|
|
410
|
+
state?: string;
|
|
411
|
+
tax_base?: number;
|
|
412
|
+
discount?: number;
|
|
413
|
+
service?: number;
|
|
414
|
+
commentary?: string;
|
|
415
|
+
client_document_number?: string;
|
|
416
|
+
client_document_code?: string;
|
|
417
|
+
client_trade_name?: string;
|
|
418
|
+
client_business_name?: string;
|
|
419
|
+
client_phone_code?: string;
|
|
420
|
+
client_address?: string;
|
|
421
|
+
client_cellphone?: string;
|
|
422
|
+
client_email?: string;
|
|
423
|
+
client_category_name?: string;
|
|
424
|
+
client_branch_code?: string;
|
|
425
|
+
client_branch_name?: string;
|
|
426
|
+
client_branch_address?: string;
|
|
427
|
+
client_branch_email?: string;
|
|
428
|
+
client_branch_cellphone?: string;
|
|
429
|
+
client_branch_phone?: string;
|
|
430
|
+
client_branch_phone_code?: string;
|
|
431
|
+
client_province_code?: string;
|
|
432
|
+
client_province_name?: string;
|
|
433
|
+
client_canton_code?: string;
|
|
434
|
+
client_canton_name?: string;
|
|
435
|
+
client_parish_code?: string;
|
|
436
|
+
client_parish_name?: string;
|
|
437
|
+
contact_identification_number?: string;
|
|
438
|
+
contact_full_name?: string;
|
|
439
|
+
contact_phone_code?: string;
|
|
440
|
+
contact_cellphone?: string;
|
|
441
|
+
contact_email?: string;
|
|
442
|
+
seller_full_name?: string;
|
|
443
|
+
seller_identification_number?: string;
|
|
444
|
+
default_price_list_id?: string;
|
|
445
|
+
default_cost_center_id?: string;
|
|
446
|
+
default_cost_center_code?: string;
|
|
447
|
+
default_cost_center_name?: string;
|
|
448
|
+
default_discount_rate?: number;
|
|
449
|
+
tax_base_iva?: number;
|
|
450
|
+
tax_base_iva_rate_0?: number;
|
|
451
|
+
tax_base_iva_exempt?: number;
|
|
452
|
+
tax_base_iva_not_subject?: number;
|
|
453
|
+
tax_base_irbpnr?: number;
|
|
454
|
+
tax_base_ice?: number;
|
|
455
|
+
tax_iva?: number;
|
|
456
|
+
tax_irbpnr?: number;
|
|
457
|
+
tax_ice?: number;
|
|
458
|
+
total?: number;
|
|
459
|
+
billing_order_detail?: UpdateBody.Detail[];
|
|
460
|
+
billing_order_tax?: UpdateBody.Tax;
|
|
461
|
+
}
|
|
462
|
+
namespace UpdateBody {
|
|
463
|
+
interface Detail {
|
|
464
|
+
_id?: string;
|
|
465
|
+
item_id?: string;
|
|
466
|
+
category_id?: string;
|
|
467
|
+
cost_center_id?: string;
|
|
468
|
+
price_list_id?: string;
|
|
469
|
+
tax_iva_id?: string;
|
|
470
|
+
tax_irbpn_id?: string;
|
|
471
|
+
tax_ice_id?: string;
|
|
472
|
+
unit_measure_id?: string;
|
|
473
|
+
amount?: number;
|
|
474
|
+
free_amount?: number;
|
|
475
|
+
price_base?: number;
|
|
476
|
+
total_price?: number;
|
|
477
|
+
discount_rate?: number;
|
|
478
|
+
unit_discount?: number;
|
|
479
|
+
total_discount?: number;
|
|
480
|
+
commentary_item?: string | null;
|
|
481
|
+
replace_item_name?: string | null;
|
|
482
|
+
tax_iva_rate?: number;
|
|
483
|
+
item_code?: string;
|
|
484
|
+
item_barcode?: string;
|
|
485
|
+
item_name?: string;
|
|
486
|
+
unit_measure_name?: string;
|
|
487
|
+
category_name?: string;
|
|
488
|
+
cost_center_code?: string;
|
|
489
|
+
cost_center_name?: string;
|
|
490
|
+
price_list_name?: string;
|
|
491
|
+
type?: DetailType;
|
|
492
|
+
price_type?: CbmSalePriceModel.TName;
|
|
493
|
+
price_type_description?: string;
|
|
494
|
+
price_type_id?: string;
|
|
495
|
+
deleted?: boolean;
|
|
496
|
+
billing_order_detail_tax?: Detail.Tax[];
|
|
497
|
+
}
|
|
498
|
+
namespace Detail {
|
|
499
|
+
interface Tax {
|
|
500
|
+
_id?: string;
|
|
501
|
+
type: string;
|
|
502
|
+
tax_code: string;
|
|
503
|
+
tax_rate: number;
|
|
504
|
+
tax_base: number;
|
|
505
|
+
tax_value: number;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
interface Tax {
|
|
509
|
+
deleted_records: string[];
|
|
510
|
+
data: Tax.Data[];
|
|
511
|
+
}
|
|
512
|
+
namespace Tax {
|
|
513
|
+
interface Data {
|
|
514
|
+
type: string;
|
|
515
|
+
tax_code: string;
|
|
516
|
+
tax_rate: number;
|
|
517
|
+
tax_base: number;
|
|
518
|
+
tax_value: number;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
interface CancelBody {
|
|
523
|
+
cancellation_reason: string;
|
|
524
|
+
}
|
|
525
|
+
interface ConfirmResponse {
|
|
526
|
+
success: boolean;
|
|
527
|
+
message: string;
|
|
528
|
+
data?: any;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare namespace CbmCompanyCustomModel {
|
|
2
|
+
interface FindResponse {
|
|
3
|
+
_id: string;
|
|
4
|
+
company_id: string;
|
|
5
|
+
group_accounting_account: boolean;
|
|
6
|
+
item_sales: boolean;
|
|
7
|
+
kit_sales: boolean;
|
|
8
|
+
service_sales: boolean;
|
|
9
|
+
update_at: number;
|
|
10
|
+
updated_user: string;
|
|
11
|
+
cost_center_level: number;
|
|
12
|
+
outsourcing_service_sales: boolean;
|
|
13
|
+
account_level: number;
|
|
14
|
+
custom_client_level: number;
|
|
15
|
+
custom_provider_level: number;
|
|
16
|
+
category_item_level: number;
|
|
17
|
+
service_group_level: number;
|
|
18
|
+
}
|
|
19
|
+
interface UpdateBody {
|
|
20
|
+
item_sales?: boolean;
|
|
21
|
+
kit_sales?: boolean;
|
|
22
|
+
service_sales?: boolean;
|
|
23
|
+
outsourcing_service_sales?: boolean;
|
|
24
|
+
group_accounting_account?: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface FindCustomLevelsResponse {
|
|
27
|
+
success: boolean;
|
|
28
|
+
data: FindCustomLevelsResponse.Data[];
|
|
29
|
+
}
|
|
30
|
+
namespace FindCustomLevelsResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
_id: string;
|
|
33
|
+
company_id: string;
|
|
34
|
+
description: string;
|
|
35
|
+
value: number;
|
|
36
|
+
event_module: string;
|
|
37
|
+
created_user: string;
|
|
38
|
+
created_at: number;
|
|
39
|
+
updated_at?: number;
|
|
40
|
+
updated_user?: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface UpdateCustomLevelBody {
|
|
44
|
+
value?: number;
|
|
45
|
+
event_module?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ConfirmResponse {
|
|
48
|
+
success: boolean;
|
|
49
|
+
message: string;
|
|
50
|
+
data?: any;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICbmBillingOrderInfrastructureRepository } from '../../infrastructure/repositories/billing-order.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmBillingOrderModel } from '../models/billing-order.domain.model';
|
|
4
|
+
export declare class CbmBillingOrderDomainRepository implements ICbmBillingOrderInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmBillingOrderInfrastructureRepository);
|
|
7
|
+
list(params: CbmBillingOrderModel.ListParams): Observable<CbmBillingOrderModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmBillingOrderModel.GetOneResponse>;
|
|
9
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CbmCardSettlementModel } from "../models/card-settlement.domain.model";
|
|
2
2
|
import { ICbmCardSettlementRepository } from "../../infrastructure/repositories/card-settlement.infrastructure.repository";
|
|
3
|
-
import { CbmCardSettlementService } from "../../infrastructure/services/card-settlement.infrastructure.service";
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmCardSettlementRepository implements ICbmCardSettlementRepository {
|
|
6
5
|
private service;
|
|
7
|
-
constructor(service:
|
|
6
|
+
constructor(service: ICbmCardSettlementRepository);
|
|
8
7
|
list(params: CbmCardSettlementModel.ListParams): Observable<CbmCardSettlementModel.ListResponse>;
|
|
9
8
|
save(request: CbmCardSettlementModel.SaveBody): Observable<CbmCardSettlementModel.ConfirmResponse>;
|
|
10
9
|
getOne(id: string): Observable<CbmCardSettlementModel.GetOneResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICbmCompanyCustomRepository } from "../../infrastructure/repositories/company-custom.infrastructure.repository";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmCompanyCustomModel } from "../models/company-custom.domain.model";
|
|
4
|
+
export declare class CbmCompanyCustomRepository implements ICbmCompanyCustomRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmCompanyCustomRepository);
|
|
7
|
+
getLevels(): Observable<CbmCompanyCustomModel.FindResponse>;
|
|
8
|
+
getCustomLevels(): Observable<CbmCompanyCustomModel.FindCustomLevelsResponse>;
|
|
9
|
+
updateCustomLevel(id: string, data: CbmCompanyCustomModel.UpdateCustomLevelBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, data: CbmCompanyCustomModel.UpdateBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmBillingOrderModel } from '../../domain/models/billing-order.domain.model';
|
|
3
|
+
export interface ICbmBillingOrderInfrastructureRepository {
|
|
4
|
+
list(params: CbmBillingOrderModel.ListParams): Observable<CbmBillingOrderModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmBillingOrderModel.GetOneResponse>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmCompanyCustomModel } from "../../domain/models/company-custom.domain.model";
|
|
3
|
+
export interface ICbmCompanyCustomRepository {
|
|
4
|
+
getLevels(): Observable<CbmCompanyCustomModel.FindResponse>;
|
|
5
|
+
getCustomLevels(): Observable<CbmCompanyCustomModel.FindCustomLevelsResponse>;
|
|
6
|
+
updateCustomLevel(id: string, data: CbmCompanyCustomModel.UpdateCustomLevelBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmCompanyCustomModel.UpdateBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmBillingOrderModel } from '../../domain/models/billing-order.domain.model';
|
|
4
|
+
import { ICbmBillingOrderInfrastructureRepository } from '../repositories/billing-order.infrastructure.repository';
|
|
5
|
+
export declare class CbmBillingOrderInfrastructureService implements ICbmBillingOrderInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmBillingOrderModel.ListParams): Observable<CbmBillingOrderModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmBillingOrderModel.GetOneResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmCompanyCustomModel } from "../../domain/models/company-custom.domain.model";
|
|
4
|
+
export declare class CbmCompanyCustomService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
getLevels(): Observable<CbmCompanyCustomModel.FindResponse>;
|
|
9
|
+
getCustomLevels(): Observable<CbmCompanyCustomModel.FindCustomLevelsResponse>;
|
|
10
|
+
updateCustomLevel(id: string, data: CbmCompanyCustomModel.UpdateCustomLevelBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmCompanyCustomModel.UpdateBody): Observable<CbmCompanyCustomModel.ConfirmResponse>;
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import {
|
|
3
|
-
export declare function companyBranchFactory(http: HttpClient):
|
|
2
|
+
import { CbmCompanyBranchRepository } from "../../domain/repositories/company-branch.domain.repository";
|
|
3
|
+
export declare function companyBranchFactory(http: HttpClient): CbmCompanyBranchRepository;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
export * from './repositories/company.repository';
|
|
2
1
|
export * from './repositories/user.repository';
|
|
3
2
|
export * from './repositories/alternative-item.repository';
|
|
4
3
|
export * from './repositories/bank.repository';
|
|
5
4
|
export * from './repositories/bank-movements.repository';
|
|
6
5
|
export * from './repositories/billing.repository';
|
|
6
|
+
export * from './repositories/billing-order.repository';
|
|
7
7
|
export * from './repositories/card-settlement.repository';
|
|
8
8
|
export * from './repositories/cash-liquidation.repository';
|
|
9
9
|
export * from './repositories/client.repository';
|
|
10
10
|
export * from './repositories/client-branch.repository';
|
|
11
11
|
export * from './repositories/client-category.repository';
|
|
12
12
|
export * from './repositories/client-group.repository';
|
|
13
|
+
export * from './repositories/company.repository';
|
|
14
|
+
export * from './repositories/company-branch.repository';
|
|
13
15
|
export * from './repositories/contact.repository';
|
|
14
16
|
export * from './repositories/cost-center.repository';
|
|
15
17
|
export * from './repositories/country.repository';
|
|
@@ -20,6 +22,7 @@ export * from './repositories/document-type.repository';
|
|
|
20
22
|
export * from './repositories/driver.repository';
|
|
21
23
|
export * from './repositories/email-settings.repository';
|
|
22
24
|
export * from './repositories/financial-bank.repository';
|
|
25
|
+
export * from './repositories/general-report.repository';
|
|
23
26
|
export * from './repositories/group.repository';
|
|
24
27
|
export * from './repositories/history.repository';
|
|
25
28
|
export * from './repositories/item.repository';
|
|
@@ -37,5 +40,7 @@ export * from './repositories/service.repository';
|
|
|
37
40
|
export * from './repositories/service-outsourcing.repository';
|
|
38
41
|
export * from './repositories/settings-professions.repository';
|
|
39
42
|
export * from './repositories/sri-history.repository';
|
|
43
|
+
export * from './repositories/stock-item.repository';
|
|
40
44
|
export * from './repositories/upload.repository';
|
|
41
45
|
export * from './repositories/warehouse.repository';
|
|
46
|
+
export * from './repositories/company-branch.repository';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ export * from './lib/domain/models/driver.domian.model';
|
|
|
106
106
|
export * from './lib/domain/repositories/financial-bank.domain.repository';
|
|
107
107
|
export * from './lib/domain/models/financial-bank.domain.model';
|
|
108
108
|
|
|
109
|
+
//#region general report repository
|
|
110
|
+
export * from './lib/domain/repositories/general-report.domain.repository';
|
|
111
|
+
export * from './lib/domain/models/general-report.domain.model';
|
|
112
|
+
|
|
109
113
|
//#region group repository
|
|
110
114
|
export * from './lib/domain/repositories/group.domain.repository';
|
|
111
115
|
export * from './lib/domain/models/group.domain.model';
|
|
@@ -207,6 +211,10 @@ export * from './lib/domain/models/settings-professions.domain.model';
|
|
|
207
211
|
export * from './lib/domain/repositories/billing.domain.repository';
|
|
208
212
|
export * from './lib/domain/models/billing.domain.model';
|
|
209
213
|
|
|
214
|
+
// #region billing order repository
|
|
215
|
+
export * from './lib/domain/repositories/billing-order.domain.repository';
|
|
216
|
+
export * from './lib/domain/models/billing-order.domain.model';
|
|
217
|
+
|
|
210
218
|
|
|
211
219
|
// #region country code repository
|
|
212
220
|
export * from './lib/domain/repositories/country-code.domain.repository';
|
|
@@ -237,3 +245,11 @@ export * from './lib/components/stock-by-warehouse/type';
|
|
|
237
245
|
// #region company branch repository
|
|
238
246
|
export * from './lib/domain/repositories/company-branch.domain.repository';
|
|
239
247
|
export * from './lib/domain/models/company-branch.domain.model';
|
|
248
|
+
|
|
249
|
+
// #region company custom repository
|
|
250
|
+
export * from './lib/domain/repositories/company-custom.domain.repository';
|
|
251
|
+
export * from './lib/domain/models/company-custom.domain.model';
|
|
252
|
+
|
|
253
|
+
// #region stock item repository
|
|
254
|
+
export * from './lib/domain/repositories/stock-item.domain.repository';
|
|
255
|
+
export * from './lib/domain/models/stock-item.domain.model';
|