@cbm-common/cbm-types 0.0.239 → 0.0.241

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.
Files changed (35) hide show
  1. package/lib/components/attachments/components/icons/ellipsis-icon/ellipsis-icon.component.d.ts +2 -0
  2. package/lib/components/item-stock-modal/item-stock-modal.component.d.ts +22 -0
  3. package/lib/components/modals-search/modal-search-outsourcing/modal-search-outsourcing.component.d.ts +69 -0
  4. package/lib/components/modals-search/modal-search-service/modal-search-service.component.d.ts +75 -0
  5. package/lib/components/order-vehicle-add-charge/order-vehicle-add-charge.d.ts +367 -0
  6. package/lib/components/order-vehicle-add-charge/sale-account-modal/sale-account-modal.d.ts +53 -0
  7. package/lib/components/outsourcing-services-movements-modal/outsourcing-services-movements-modal.component.d.ts +26 -0
  8. package/lib/components/pms-add-charge/folios-modal/folios-modal.d.ts +4 -4
  9. package/lib/components/pms-add-charge/pms-add-charge.d.ts +10 -10
  10. package/lib/components/price-history-modal/price-history-modal.component.d.ts +29 -0
  11. package/lib/components/sort-detail-modal/sort-detail-modal.component.d.ts +69 -0
  12. package/lib/components/ui/details-resume/details-resume.component.d.ts +29 -0
  13. package/lib/components/ui/warning-add-items-without-order-message/warning-add-items-without-order-message.component.d.ts +8 -0
  14. package/lib/domain/models/charges-for-order-vehicle.domain.model.d.ts +255 -0
  15. package/lib/domain/models/employee.model.d.ts +176 -0
  16. package/lib/domain/models/general.domain.model.d.ts +6 -0
  17. package/lib/domain/models/invoice.domain.model.d.ts +1 -1
  18. package/lib/domain/models/outsourcing-services-movements.domain.model.d.ts +160 -0
  19. package/lib/domain/models/sale-price.domain.model.d.ts +4 -1
  20. package/lib/domain/models/sales-account.domain.model.d.ts +8 -0
  21. package/lib/domain/repositories/charges-for-order-vehicle.domain.repository.d.ts +10 -0
  22. package/lib/domain/repositories/outsourcing-services-movements.domain.repository.d.ts +7 -0
  23. package/lib/domain/repositories/sales-account.domain.repository.d.ts +1 -1
  24. package/lib/domain/services/general.domain.service.d.ts +3 -0
  25. package/lib/domain/services/sale-account.domain.service.d.ts +24 -0
  26. package/lib/domain/services/service/form-group-tracker.service.d.ts +13 -0
  27. package/lib/infrastructure/repositories/changes-for-order-vehicle.infrastructure.repository.d.ts +7 -0
  28. package/lib/infrastructure/repositories/outsourcing-services-movements.infrastructure.repository.d.ts +5 -0
  29. package/lib/infrastructure/services/charges-for-order-vehicle.infrastructure.service.d.ts +12 -0
  30. package/lib/infrastructure/services/outsourcing-services-movements.infrastructure.service.d.ts +10 -0
  31. package/lib/utils/debounce.d.ts +1 -0
  32. package/lib/utils/form-error-location.d.ts +2 -0
  33. package/lib/utils/resize.d.ts +14 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +3 -0
@@ -1,16 +1,16 @@
1
1
  import { DestroyRef } from '@angular/core';
2
+ import { PaginatedListService } from '@cbm-common/data-access';
2
3
  import { IGeneral } from '../../../domain/models/general.domain.model';
3
- import { CbmSalesAccountRepository } from '../../../domain/repositories/sales-account.domain.repository';
4
- import { CbmNotificationService } from '../../../remotes/services.remote';
5
4
  import { CbmSalesAccountModel } from '../../../domain/models/sales-account.domain.model';
6
- import { PaginatedListService } from '@cbm-common/data-access';
5
+ import { CbmSalesAccountDomainRepository } from '../../../domain/repositories/sales-account.domain.repository';
7
6
  import { GeneralDomainService } from '../../../domain/services/general.domain.service';
7
+ import { CbmNotificationService } from '../../../remotes/services.remote';
8
8
  export declare class FoliosModal implements IGeneral.ModalRef {
9
9
  private readonly destroyRef;
10
10
  private readonly salesAccountRepository;
11
11
  private readonly notificationService;
12
12
  private readonly generalService;
13
- constructor(destroyRef: DestroyRef, salesAccountRepository: CbmSalesAccountRepository, notificationService: CbmNotificationService, generalService: GeneralDomainService);
13
+ constructor(destroyRef: DestroyRef, salesAccountRepository: CbmSalesAccountDomainRepository, notificationService: CbmNotificationService, generalService: GeneralDomainService);
14
14
  'modal-id': import("@angular/core").InputSignal<string>;
15
15
  'room-id': import("@angular/core").InputSignal<string | null>;
16
16
  'on-selected-folio': import("@angular/core").OutputEmitterRef<CbmSalesAccountModel.ListResponse.Item>;
@@ -2,26 +2,26 @@ import { DestroyRef, OnInit } from '@angular/core';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import { ListService, PaginatedListService } from '@cbm-common/data-access';
4
4
  import { Subject } from 'rxjs';
5
+ import { CbmClientModel } from '../../domain/models/client.domain.model';
6
+ import { CbmContactModel } from '../../domain/models/contact.domain.model';
5
7
  import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
6
8
  import { STATE } from '../../domain/models/general.domain.model';
9
+ import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
7
10
  import { CbmRoomModel } from '../../domain/models/room.domain.model';
8
11
  import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.model';
9
12
  import { CbmChargeRepository } from '../../domain/repositories/charge.domain.repository';
13
+ import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
10
14
  import { CbmCostCenterRepository } from '../../domain/repositories/cost-center.domain.repository';
11
15
  import { CbmRoomRepository } from '../../domain/repositories/room.domain.repository';
12
- import { CbmSalesAccountRepository } from '../../domain/repositories/sales-account.domain.repository';
16
+ import { CbmSalesAccountDomainRepository } from '../../domain/repositories/sales-account.domain.repository';
17
+ import { CbmAuthReactiveService } from '../../domain/services/auth-reactive.domain.service';
18
+ import { CbmIrbpnrDomainService } from '../../domain/services/taxes/irbpnr.domain.service';
13
19
  import { CbmNotificationService } from '../../remotes/services.remote';
14
20
  import { ItemDetails } from '../item-details/item-details';
15
21
  import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
16
- import { FoliosModal } from './folios-modal/folios-modal';
17
- import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
18
- import { CbmIrbpnrDomainService } from '../../domain/services/taxes/irbpnr.domain.service';
19
22
  import { CbmServiceDetails } from '../service-details/service-details';
20
- import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
21
- import { CbmClientModel } from '../../domain/models/client.domain.model';
22
- import { CbmContactModel } from '../../domain/models/contact.domain.model';
23
- import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
24
- import { CbmAuthReactiveService } from '../../domain/services/auth-reactive.domain.service';
23
+ import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
24
+ import { FoliosModal } from './folios-modal/folios-modal';
25
25
  export declare class CbmPmsAddCharge implements OnInit {
26
26
  private readonly destroyRef;
27
27
  private readonly roomRepository;
@@ -32,7 +32,7 @@ export declare class CbmPmsAddCharge implements OnInit {
32
32
  private readonly costCenterRepository;
33
33
  private readonly irbpnrService;
34
34
  private readonly clientRepository;
35
- constructor(destroyRef: DestroyRef, roomRepository: CbmRoomRepository, chargeRepository: CbmChargeRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService, salesAccountRepository: CbmSalesAccountRepository, costCenterRepository: CbmCostCenterRepository, irbpnrService: CbmIrbpnrDomainService, clientRepository: CbmClientDomainRepository);
35
+ constructor(destroyRef: DestroyRef, roomRepository: CbmRoomRepository, chargeRepository: CbmChargeRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService, salesAccountRepository: CbmSalesAccountDomainRepository, costCenterRepository: CbmCostCenterRepository, irbpnrService: CbmIrbpnrDomainService, clientRepository: CbmClientDomainRepository);
36
36
  disableGuard: boolean;
37
37
  formDirty: () => boolean;
38
38
  chargeFormGroup: FormGroup<{
@@ -0,0 +1,29 @@
1
+ import { DestroyRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { PaginatedListService } from '@cbm-common/data-access';
4
+ import { CbmInvoiceModel } from '../../domain/models/invoice.domain.model';
5
+ import { CbmInvoiceDomainRepository } from '../../domain/repositories/invoice.domain.repository';
6
+ import { GeneralDomainService } from '../../domain/services/general.domain.service';
7
+ import { CbmNotificationService } from '../../domain/services/notification/notification.service';
8
+ export interface IPriceHistoryModel {
9
+ clientId: string;
10
+ itemId: string;
11
+ }
12
+ export declare class CbmPriceHistoryModalComponent implements OnChanges {
13
+ private router;
14
+ private destroyRef;
15
+ private generalService;
16
+ private invoiceRepository;
17
+ private readonly notificationService;
18
+ constructor(router: Router, destroyRef: DestroyRef, generalService: GeneralDomainService, invoiceRepository: CbmInvoiceDomainRepository, notificationService: CbmNotificationService);
19
+ modalId: import("@angular/core").InputSignal<string>;
20
+ priceHistoryRequest: import("@angular/core").InputSignal<IPriceHistoryModel | null>;
21
+ lastMovements: import("@angular/core").WritableSignal<CbmInvoiceModel.ListLastMovementsResponse.Item[]>;
22
+ totals: import("@angular/core").WritableSignal<CbmInvoiceModel.ListLastMovementsResponse.TotalAmount | null>;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ lastMovements$: PaginatedListService<CbmInvoiceModel.ListLastMovementsResponse, CbmInvoiceModel.ListLastMovementsParams, CbmInvoiceModel.ListLastMovementsResponse.Item[]>;
25
+ fetchLastMovementsInventory(): void;
26
+ openModal(): void;
27
+ closeModal(): void;
28
+ redirectTo(data: CbmInvoiceModel.ListLastMovementsResponse.Item): void;
29
+ }
@@ -0,0 +1,69 @@
1
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
3
+ import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
4
+ import { GeneralDomainService } from '../../domain/services/general.domain.service';
5
+ import { CbmNotificationService } from '../../domain/services/notification/notification.service';
6
+ export declare namespace ISortDetailModel {
7
+ type DetailType = 'item' | 'service' | 'kit' | 'outsourcing' | 'fixed_asset';
8
+ interface Data {
9
+ original_index?: number;
10
+ item_id?: string;
11
+ category_id?: string;
12
+ tax_iva_id?: string;
13
+ amount?: number;
14
+ price_base?: number;
15
+ total_price?: number;
16
+ discount_rate?: number;
17
+ unit_discount?: number;
18
+ total_discount?: number;
19
+ replace_item_name?: string;
20
+ commentary_item?: string;
21
+ tax_iva_rate?: number;
22
+ item_code?: string;
23
+ item_barcode?: string;
24
+ item_name?: string;
25
+ category_name?: string;
26
+ type?: DetailType;
27
+ tax_iva?: Data.TaxIva;
28
+ manage_by?: string;
29
+ }
30
+ namespace Data {
31
+ interface TaxIva {
32
+ _id: string;
33
+ country_id?: string;
34
+ code?: string;
35
+ percentage?: number;
36
+ description?: string;
37
+ enabled?: boolean;
38
+ created_user?: string;
39
+ created_at?: number;
40
+ updated_user?: string;
41
+ updated_at?: number;
42
+ }
43
+ }
44
+ }
45
+ export declare class CbmSortDetailModalComponent implements OnChanges {
46
+ private generalService;
47
+ private readonly notificationService;
48
+ itemDetailsTableRef: import("@angular/core").Signal<ElementRef<HTMLTableElement> | undefined>;
49
+ modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent>;
50
+ modalId: import("@angular/core").InputSignal<string>;
51
+ data: import("@angular/core").InputSignal<ISortDetailModel.Data[]>;
52
+ type: import("@angular/core").InputSignal<ISortDetailModel.DetailType>;
53
+ onlyAmount: import("@angular/core").InputSignal<boolean>;
54
+ newSortedData: import("@angular/core").OutputEmitterRef<ISortDetailModel.Data[]>;
55
+ sortType: {
56
+ [key: string]: {
57
+ label: string;
58
+ rowLabel: string;
59
+ };
60
+ };
61
+ columnWidths: number[];
62
+ constructor(generalService: GeneralDomainService, notificationService: CbmNotificationService);
63
+ ngOnChanges(changes: SimpleChanges): void;
64
+ captureColumnWidths(): void;
65
+ onDropItemDetails(event: CdkDragDrop<ISortDetailModel.Data[]>): void;
66
+ openModal(): void;
67
+ closeModal(): void;
68
+ onConfirm(): Promise<void>;
69
+ }
@@ -0,0 +1,29 @@
1
+ import { CbmCompanyCustomModel } from '@cbm-common/cbm-types';
2
+ export interface IFreeItemAmountModel {
3
+ item_id?: string;
4
+ item_name: string;
5
+ item_code: string;
6
+ free_amount: number;
7
+ price_type_sequence?: string;
8
+ }
9
+ export declare class CbmDetailsResumeComponent {
10
+ id: import("@angular/core").InputSignal<string | null | undefined>;
11
+ showFreeItems: import("@angular/core").InputSignal<boolean | undefined>;
12
+ freeItems: import("@angular/core").InputSignal<IFreeItemAmountModel[] | undefined>;
13
+ companyCustom: import("@angular/core").InputSignal<CbmCompanyCustomModel.FindResponse>;
14
+ itemsArrayLenght: import("@angular/core").InputSignal<number | undefined>;
15
+ kitsArrayLenght: import("@angular/core").InputSignal<number | undefined>;
16
+ servicesArrayLenght: import("@angular/core").InputSignal<number | undefined>;
17
+ outsourcingsArrayLenght: import("@angular/core").InputSignal<number | undefined>;
18
+ fixedAssetsArrayLenght: import("@angular/core").InputSignal<number | undefined>;
19
+ itemsAmount: import("@angular/core").InputSignal<number | undefined>;
20
+ kitsAmount: import("@angular/core").InputSignal<number | undefined>;
21
+ servicesAmount: import("@angular/core").InputSignal<number | undefined>;
22
+ outsourcingsAmount: import("@angular/core").InputSignal<number | undefined>;
23
+ fixedAssetsAmount: import("@angular/core").InputSignal<number | undefined>;
24
+ itemsSubtotalWithoutTaxes: import("@angular/core").InputSignal<number | undefined>;
25
+ kitsSubtotalWithoutTaxes: import("@angular/core").InputSignal<number | undefined>;
26
+ servicesSubtotalWithoutTaxes: import("@angular/core").InputSignal<number | undefined>;
27
+ outsourcingsSubtotalWithoutTaxes: import("@angular/core").InputSignal<number | undefined>;
28
+ fixedAssetsSubtotalWithoutTaxes: import("@angular/core").InputSignal<number | undefined>;
29
+ }
@@ -0,0 +1,8 @@
1
+ import { CbmInvoiceModel } from '../../../domain/models/invoice.domain.model';
2
+ export declare class CbmWarningAddItemsWithoutOrderMessageComponent {
3
+ module: import("@angular/core").InputSignal<string>;
4
+ type: import("@angular/core").InputSignal<CbmInvoiceModel.DetailType>;
5
+ textToShow: {
6
+ [key in CbmInvoiceModel.DetailType]: string;
7
+ };
8
+ }
@@ -0,0 +1,255 @@
1
+ export declare namespace CbmChargesForOrderVehicleModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ state?: string;
6
+ enabled?: boolean;
7
+ deleted?: boolean;
8
+ name?: string;
9
+ }
10
+ interface ListResponse {
11
+ success: boolean;
12
+ pageNum: number;
13
+ pageSize: number;
14
+ pages: number;
15
+ total: number;
16
+ items: ListResponse.Item[];
17
+ }
18
+ namespace ListResponse {
19
+ interface Item {
20
+ _id: string;
21
+ charges_origin: string;
22
+ company_id: string;
23
+ company_NIF: string;
24
+ company_address: string;
25
+ company_trade_name: string;
26
+ company_business_name: string;
27
+ company_logo: string;
28
+ country_id: string;
29
+ country_code: string;
30
+ country_name: string;
31
+ country_short_name: string;
32
+ period_id: string;
33
+ period_year: string;
34
+ document_nomenclature: string;
35
+ document_number: string;
36
+ collection_origin_id: string;
37
+ collection_origin_name: string;
38
+ collection_origin_document_nomenclature_number: string;
39
+ event_module_origin: string;
40
+ sales_account_id: string;
41
+ sales_account_sequence: string;
42
+ sales_account_created_at: number;
43
+ enabled: boolean;
44
+ deleted_at: number;
45
+ user_id: string;
46
+ created_user: string;
47
+ created_at: number;
48
+ }
49
+ }
50
+ interface SaveBody {
51
+ company_NIF: string;
52
+ company_address: string;
53
+ company_trade_name: string;
54
+ company_business_name: string;
55
+ company_logo: string;
56
+ collection_origin_id: string;
57
+ collection_origin_document_nomenclature_number: string;
58
+ collection_origin_name: string;
59
+ event_module_origin: string;
60
+ charges_detail: SaveBody.Detail[];
61
+ }
62
+ namespace SaveBody {
63
+ interface Detail {
64
+ type?: string;
65
+ sequence?: string;
66
+ amount_free?: number;
67
+ stock_afected?: number;
68
+ free_amount?: number;
69
+ manage_by?: string;
70
+ outsourcing_service_data?: any;
71
+ item_id: string;
72
+ item_code: string;
73
+ item_barcode: string;
74
+ item_name: string;
75
+ item_balance?: number;
76
+ item_balance_referal_guide?: number;
77
+ category_id: string;
78
+ category_name: string;
79
+ price_list_id?: string;
80
+ price_list_name?: string;
81
+ cost_center_id: string;
82
+ cost_center_code?: string;
83
+ cost_center_name: string;
84
+ cost_center_father_code?: string;
85
+ cost_center_father_name?: string;
86
+ tax_iva_id: string;
87
+ tax_iva_code?: string;
88
+ tax_iva_rate: number;
89
+ tax_irbpn_id?: string;
90
+ tax_ice_id?: string;
91
+ unit_measure_id?: string;
92
+ unit_measure_group_id?: string;
93
+ unit_measure_type?: string;
94
+ unit_measure_abbreviation?: string;
95
+ unit_measure_group_abbreviation?: string;
96
+ unit_measure_name?: string;
97
+ unit_measure_group_name?: string;
98
+ unit_measure_quantity?: number;
99
+ amount: number;
100
+ price_type_id?: string;
101
+ price_type?: string;
102
+ price_type_description?: string;
103
+ price_base: number;
104
+ total_price: number;
105
+ discount_rate: number;
106
+ unit_discount: number;
107
+ total_discount: number;
108
+ commentary_item?: string;
109
+ replace_item_name?: string;
110
+ charges_detail_tax: Tax[];
111
+ }
112
+ interface Tax {
113
+ type: string;
114
+ description: string;
115
+ tax_code: string;
116
+ tax_rate: number;
117
+ tax_base: number;
118
+ tax_value: number;
119
+ }
120
+ }
121
+ interface GetOneResponse {
122
+ success: boolean;
123
+ data: GetOneResponse.Data;
124
+ }
125
+ namespace GetOneResponse {
126
+ interface Data {
127
+ _id: string;
128
+ charges_origin: string;
129
+ company_id: string;
130
+ company_NIF: string;
131
+ company_address: string;
132
+ company_trade_name: string;
133
+ company_business_name: string;
134
+ company_logo: string;
135
+ country_id: string;
136
+ country_code: string;
137
+ country_name: string;
138
+ country_short_name: string;
139
+ period_id: string;
140
+ period_year: string;
141
+ document_nomenclature: string;
142
+ document_number: string;
143
+ collection_origin_id: string;
144
+ collection_origin_name: string;
145
+ collection_origin_document_nomenclature_number: string;
146
+ event_module_origin: string;
147
+ sales_account_id: string;
148
+ sales_account_sequence: string;
149
+ sales_account_created_at: number;
150
+ enabled: boolean;
151
+ deleted: boolean;
152
+ user_id: string;
153
+ created_user: string;
154
+ created_at: number;
155
+ charges_detail: Data.Detail[];
156
+ }
157
+ namespace Data {
158
+ interface Detail {
159
+ _id: string;
160
+ company_id: string;
161
+ country_id: string;
162
+ charges_id: string;
163
+ item_id: string;
164
+ item_code: string;
165
+ item_name: string;
166
+ item_barcode: string;
167
+ category_id: string;
168
+ category_name: string;
169
+ price_list_id: string;
170
+ price_list_name: string;
171
+ cost_center_id: string;
172
+ cost_center_code: string;
173
+ cost_center_name: string;
174
+ cost_center_father_code: string;
175
+ cost_center_father_name: string;
176
+ tax_iva_id: string;
177
+ tax_iva_rate: number;
178
+ unit_measure_id: string;
179
+ unit_measure_type: string;
180
+ unit_measure_abbreviation: string;
181
+ unit_measure_name: string;
182
+ unit_measure_quantity: number;
183
+ amount: number;
184
+ price_type_id: string;
185
+ price_type: string;
186
+ price_type_description: string;
187
+ price_base: number;
188
+ total_price: number;
189
+ discount_rate: number;
190
+ unit_discount: number;
191
+ total_discount: number;
192
+ created_user: string;
193
+ created_at: number;
194
+ charges_detail_tax: Detail.Tax[];
195
+ }
196
+ namespace Detail {
197
+ interface ChargesDetail {
198
+ _id: string;
199
+ company_id: string;
200
+ country_id: string;
201
+ charges_id: string;
202
+ item_id: string;
203
+ item_code: string;
204
+ item_name: string;
205
+ item_barcode: string;
206
+ category_id: string;
207
+ category_name: string;
208
+ price_list_id: string;
209
+ price_list_name: string;
210
+ cost_center_id: string;
211
+ cost_center_code: string;
212
+ cost_center_name: string;
213
+ cost_center_father_code: string;
214
+ cost_center_father_name: string;
215
+ tax_iva_id: string;
216
+ tax_iva_rate: number;
217
+ unit_measure_id: string;
218
+ unit_measure_type: string;
219
+ unit_measure_abbreviation: string;
220
+ unit_measure_name: string;
221
+ unit_measure_quantity: number;
222
+ amount: number;
223
+ price_type_id: string;
224
+ price_type: string;
225
+ price_type_description: string;
226
+ price_base: number;
227
+ total_price: number;
228
+ discount_rate: number;
229
+ unit_discount: number;
230
+ total_discount: number;
231
+ created_user: string;
232
+ created_at: number;
233
+ charges_detail_tax: Tax[];
234
+ }
235
+ interface Tax {
236
+ _id: string;
237
+ company_id: string;
238
+ charges_detail_id: string;
239
+ type: string;
240
+ description: string;
241
+ tax_code: string;
242
+ tax_rate: number;
243
+ tax_base: number;
244
+ tax_value: number;
245
+ created_at: number;
246
+ }
247
+ }
248
+ }
249
+ }
250
+ interface ConfirmResponse {
251
+ success: boolean;
252
+ message: string;
253
+ data?: any;
254
+ }
255
+ }
@@ -0,0 +1,176 @@
1
+ export declare namespace CbmEmployeeModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ department_id?: string;
6
+ position_id?: string;
7
+ marital_status_id?: string;
8
+ document_type_id?: string;
9
+ name_surname?: string;
10
+ enabled?: boolean;
11
+ }
12
+ interface ListResponse {
13
+ success: boolean;
14
+ items: ListResponse.Data[];
15
+ }
16
+ namespace ListResponse {
17
+ interface Data {
18
+ _id: string;
19
+ company_id: string;
20
+ company_NIF: string;
21
+ company_trade_name: string;
22
+ company_business_name: string;
23
+ company_address: string;
24
+ company_logo: string;
25
+ country_id: string;
26
+ country_code: string;
27
+ country_name: string;
28
+ country_short_name: string;
29
+ period_id: string;
30
+ period_year: string;
31
+ department_id: string;
32
+ department_code: number;
33
+ department_name: string;
34
+ position_id: string;
35
+ position_code: number;
36
+ position_name: string;
37
+ marital_status_id: string;
38
+ marital_status_code: string;
39
+ marital_status_name: string;
40
+ document_type_id: string;
41
+ document_type_code: string;
42
+ document_type_name: string;
43
+ sequence_number: number;
44
+ document_number: string;
45
+ names: string;
46
+ surnames: string;
47
+ address: string;
48
+ phone_code: string;
49
+ phone: string;
50
+ cellphone: string;
51
+ email: string[];
52
+ gender: string;
53
+ birthdate: number;
54
+ enabled: boolean;
55
+ deleted: boolean;
56
+ user_id: string;
57
+ created_user: string;
58
+ created_at: number;
59
+ }
60
+ }
61
+ interface SaveBody {
62
+ company_NIF: string;
63
+ company_trade_name: string;
64
+ company_business_name: string;
65
+ company_address: string;
66
+ company_email?: string;
67
+ company_logo: string;
68
+ department_id: string;
69
+ department_code: number;
70
+ department_name: string;
71
+ position_id: string;
72
+ position_code: number;
73
+ position_name: string;
74
+ marital_status_id: string;
75
+ marital_status_code: string;
76
+ marital_status_name: string;
77
+ document_type_id: string;
78
+ document_type_code: string;
79
+ document_type_name: string;
80
+ document_number: string;
81
+ names: string;
82
+ surnames: string;
83
+ address: string;
84
+ phone_code: string;
85
+ phone: string;
86
+ cellphone: string;
87
+ email: string[];
88
+ email_business: string[];
89
+ gender: string;
90
+ birthdate: number;
91
+ }
92
+ interface UpdateBody {
93
+ company_NIF: string;
94
+ company_trade_name: string;
95
+ company_business_name: string;
96
+ company_address: string;
97
+ company_email?: string;
98
+ company_logo: string;
99
+ department_id: string;
100
+ department_code: number;
101
+ department_name: string;
102
+ position_id: string;
103
+ position_code: number;
104
+ position_name: string;
105
+ marital_status_id: string;
106
+ marital_status_code: string;
107
+ marital_status_name: string;
108
+ document_type_id: string;
109
+ document_type_code: string;
110
+ document_type_name: string;
111
+ document_number: string;
112
+ names: string;
113
+ surnames: string;
114
+ address: string;
115
+ phone_code: string;
116
+ phone: string;
117
+ cellphone: string;
118
+ email: string[];
119
+ email_business: string[];
120
+ gender: string;
121
+ birthdate: number;
122
+ }
123
+ interface GetOneResponse {
124
+ success: boolean;
125
+ data: GetOneResponse.Data;
126
+ }
127
+ namespace GetOneResponse {
128
+ interface Data {
129
+ _id: string;
130
+ company_id: string;
131
+ company_NIF: string;
132
+ company_trade_name: string;
133
+ company_business_name: string;
134
+ company_address: string;
135
+ company_logo: string;
136
+ country_id: string;
137
+ country_code: string;
138
+ country_name: string;
139
+ country_short_name: string;
140
+ period_id: string;
141
+ period_year: string;
142
+ department_id: string;
143
+ department_code: number;
144
+ department_name: string;
145
+ position_id: string;
146
+ position_code: number;
147
+ position_name: string;
148
+ marital_status_id: string;
149
+ marital_status_code: string;
150
+ marital_status_name: string;
151
+ document_type_id: string;
152
+ document_type_code: string;
153
+ document_type_name: string;
154
+ sequence_number: number;
155
+ document_number: string;
156
+ names: string;
157
+ surnames: string;
158
+ address: string;
159
+ phone_code: string;
160
+ phone: string;
161
+ cellphone: string;
162
+ email: string[];
163
+ emails_company: string[];
164
+ gender: string;
165
+ birthdate: number;
166
+ enabled: boolean;
167
+ deleted: boolean;
168
+ user_id: string;
169
+ user_inactive_at: number;
170
+ disabled_reason: string;
171
+ user_inactive_name: string;
172
+ created_user: string;
173
+ created_at: number;
174
+ }
175
+ }
176
+ }
@@ -23,6 +23,12 @@ export declare namespace IGeneral {
23
23
  NO_DATA_FOUND = "No se encontraron datos que coincidan con los criterios de b\u00FAsqueda proporcionados.",
24
24
  WED_SOCKET_STOCK = "El stock de algunos art\u00EDculos ha sido actualizado debido a movimientos recientes en el almac\u00E9n."
25
25
  }
26
+ enum STATUS {
27
+ INIT = "init",
28
+ LOADING = "loading",
29
+ SUCCESS = "success",
30
+ FAILED = "failed"
31
+ }
26
32
  type Item_manage_by = 'none' | 'series' | 'batch';
27
33
  }
28
34
  export declare enum STATE {
@@ -1,6 +1,6 @@
1
1
  import { CbmSalePriceModel } from './sale-price.domain.model';
2
2
  export declare namespace CbmInvoiceModel {
3
- type DetailType = 'item' | 'service' | 'kit' | 'outsourcing_service';
3
+ type DetailType = 'item' | 'service' | 'kit' | 'outsourcing_service' | 'fixed_assets';
4
4
  enum EPaymentTerm {
5
5
  CREDIT = "credit",
6
6
  DEBIT = "debit"