@cbm-common/cbm-types 0.0.29 → 0.0.31

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.
@@ -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,163 @@
1
+ export declare namespace CbmCompanyBranchModel {
2
+ interface ListResponse {
3
+ success: boolean;
4
+ data: ListResponse.Data[];
5
+ }
6
+ namespace ListResponse {
7
+ interface Data {
8
+ _id: string;
9
+ company_id?: string;
10
+ identification_number?: string;
11
+ trade_name?: string;
12
+ address?: string;
13
+ email?: string;
14
+ cellphone?: string;
15
+ phone?: string;
16
+ environment?: number;
17
+ enabled?: boolean;
18
+ created_at?: number;
19
+ logo?: string;
20
+ }
21
+ }
22
+ interface GetOneResponse {
23
+ success: boolean;
24
+ data: GetOneResponse.Data;
25
+ }
26
+ namespace GetOneResponse {
27
+ interface Data {
28
+ _id: string;
29
+ company_id?: string;
30
+ identification_number?: string;
31
+ trade_name?: string;
32
+ address?: string;
33
+ email?: string;
34
+ cellphone?: string;
35
+ phone?: string;
36
+ environment?: number;
37
+ enabled?: boolean;
38
+ created_at?: number;
39
+ logo?: string;
40
+ disabled_reason?: string;
41
+ updated_at?: number;
42
+ reading?: boolean;
43
+ transaction?: boolean;
44
+ disabled_at?: number;
45
+ disabled_user?: string;
46
+ created_user?: string;
47
+ }
48
+ }
49
+ interface SaveBody {
50
+ company_id?: string;
51
+ identification_number: string;
52
+ trade_name: string;
53
+ address: string;
54
+ email: string;
55
+ cellphone: string;
56
+ phone: string;
57
+ environment: number;
58
+ }
59
+ interface UpdateBody {
60
+ company_id?: string;
61
+ identification_number?: string;
62
+ cellphone?: string;
63
+ phone?: string;
64
+ environment?: number;
65
+ NIF?: string;
66
+ business_name?: string;
67
+ address?: string;
68
+ trade_name?: string;
69
+ default_account_plan?: boolean;
70
+ account_template_id?: string;
71
+ email?: string;
72
+ status?: string;
73
+ readonly?: boolean;
74
+ mandatory_accounting?: boolean;
75
+ withholding_agent?: boolean;
76
+ special_taxpayer?: boolean;
77
+ artisanal_qualification?: boolean;
78
+ withholding_agent_number?: string;
79
+ special_taxpayer_number?: string;
80
+ artisanal_qualification_number?: string;
81
+ manager_name?: string;
82
+ accountant_name?: string;
83
+ regime_id?: string;
84
+ regime_code?: string;
85
+ regime_name?: string;
86
+ branches?: BranchParams.Data[];
87
+ password_signature?: string;
88
+ }
89
+ namespace BranchParams {
90
+ interface Data {
91
+ identification_number?: string;
92
+ trade_name?: string;
93
+ address?: string;
94
+ email?: string;
95
+ cellphone?: string;
96
+ phone?: string;
97
+ environment?: number;
98
+ }
99
+ }
100
+ interface ChangeStatusBody {
101
+ enabled: boolean;
102
+ disabled_reason?: string;
103
+ }
104
+ interface ConfirmResponse {
105
+ success: boolean;
106
+ message: string;
107
+ data?: any;
108
+ }
109
+ interface ListPaginatedParams {
110
+ page: number;
111
+ size: number;
112
+ company_id: string;
113
+ enabled?: boolean;
114
+ }
115
+ interface ListPaginatedResponse {
116
+ success: boolean;
117
+ pageNum: number;
118
+ pageSize: number;
119
+ pages: number;
120
+ total: number;
121
+ items: ListPaginatedResponse.Items[];
122
+ used_branch_read: number;
123
+ used_branch_transactional: number;
124
+ }
125
+ namespace ListPaginatedResponse {
126
+ interface Items {
127
+ _id: string;
128
+ company_id: string;
129
+ identification_number: string;
130
+ trade_name: string;
131
+ address: string;
132
+ email: string;
133
+ cellphone: string;
134
+ phone: string;
135
+ environment: number;
136
+ logo: string;
137
+ enabled: boolean;
138
+ created_at: number;
139
+ disabled_reason?: string;
140
+ updated_at: number;
141
+ created_user?: string;
142
+ updated_user?: string;
143
+ reading?: boolean;
144
+ transaction?: boolean;
145
+ disabled_at?: number;
146
+ disabled_user?: string;
147
+ enabled_at?: number;
148
+ enabled_user?: string;
149
+ company_logo?: boolean;
150
+ }
151
+ }
152
+ interface ChangeMode {
153
+ reading?: boolean;
154
+ transaction?: boolean;
155
+ }
156
+ interface ChangeProduction {
157
+ environment: number;
158
+ }
159
+ interface ChangeCompanyLogo {
160
+ companyId: string;
161
+ companyBranchId: string;
162
+ }
163
+ }
@@ -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: CbmCardSettlementService);
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,17 @@
1
+ import { ICbmCompanyBranchRepository } from "../../infrastructure/repositories/compony-branch.infrastructure.repository";
2
+ import { Observable } from "rxjs";
3
+ import { CbmCompanyBranchModel } from "../models/company-branch.domain.model";
4
+ export declare class CbmCompanyBranchRepository implements ICbmCompanyBranchRepository {
5
+ private service;
6
+ constructor(service: ICbmCompanyBranchRepository);
7
+ list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
8
+ getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
9
+ save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
10
+ update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
11
+ changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
12
+ changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
13
+ uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
14
+ listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
15
+ changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
16
+ changeCompanyLogo(params: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
17
+ }
@@ -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,14 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmCompanyBranchModel } from "../../domain/models/company-branch.domain.model";
3
+ export interface ICbmCompanyBranchRepository {
4
+ list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
5
+ getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
6
+ save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
7
+ update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
8
+ changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
9
+ changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
10
+ uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
11
+ listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
12
+ changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
13
+ changeCompanyLogo(params: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
14
+ }
@@ -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,18 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import { CbmCompanyBranchModel } from "../../domain/models/company-branch.domain.model";
4
+ export declare class CbmCompanyBranchService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ private readonly url;
8
+ list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
9
+ getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
10
+ save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
11
+ update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
12
+ changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
13
+ changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
14
+ uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
15
+ listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
16
+ changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
17
+ changeCompanyLogo(data: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
18
+ }
@@ -12,3 +12,5 @@ export { CbmJsonModalComponent } from '../components/json-modal/json-modal';
12
12
  export { CbmPaginationNavComponent } from '../components/pagination-nav/pagination-nav';
13
13
  export { CbmTreeSelectComponent } from '../components/tree-select/tree-select';
14
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';
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmBillingOrderDomainRepository } from "../../domain/repositories/billing-order.domain.repository";
3
+ export declare function billingOrderFactory(http: HttpClient): CbmBillingOrderDomainRepository;
@@ -1,3 +1,3 @@
1
1
  import { HttpClient } from "@angular/common/http";
2
- import { CbmCompanyDomainRepository } from "../../domain/repositories/company.domain.repository";
3
- export declare function companyBranchFactory(http: HttpClient): CbmCompanyDomainRepository;
2
+ import { CbmCompanyBranchRepository } from "../../domain/repositories/company-branch.domain.repository";
3
+ export declare function companyBranchFactory(http: HttpClient): CbmCompanyBranchRepository;
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmGeneralReportRepository } from "../../domain/repositories/general-report.domain.repository";
3
+ export declare function generalReportFactory(http: HttpClient): CbmGeneralReportRepository;
@@ -0,0 +1,3 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { CbmStockItemRepository } from "../../domain/repositories/stock-item.domain.repository";
3
+ export declare function stockItemFactory(http: HttpClient): CbmStockItemRepository;
@@ -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,6 @@ 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
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';
@@ -226,8 +234,18 @@ export * from './lib/domain/models/sale-price.domain.model';
226
234
  // #region view reports component
227
235
  export * from './lib/components/view-reports/model';
228
236
  export * from './lib/components/view-reports/view-reports';
237
+
229
238
  // #region confirmation-modal component
230
239
  export * from './lib/components/confirmation-modal/confirmation-modal';
240
+
231
241
  // #region stock-by-warehouse component
232
242
  export * from './lib/components/stock-by-warehouse/stock-by-warehouse';
233
243
  export * from './lib/components/stock-by-warehouse/type';
244
+
245
+ // #region company branch repository
246
+ export * from './lib/domain/repositories/company-branch.domain.repository';
247
+ export * from './lib/domain/models/company-branch.domain.model';
248
+
249
+ // #region stock item repository
250
+ export * from './lib/domain/repositories/stock-item.domain.repository';
251
+ export * from './lib/domain/models/stock-item.domain.model';