@cbm-common/cbm-types 0.0.270 → 0.0.272
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/add-down-payment/add-down-payment.d.ts +7 -22
- package/lib/components/order-vehicle-add-charge/order-vehicle-add-charge.d.ts +2 -0
- package/lib/domain/models/charges-for-order-vehicle.domain.model.d.ts +2 -0
- package/lib/domain/models/income-movements.model.d.ts +536 -0
- package/lib/domain/models/replacement-request.domain.model.d.ts +3 -0
- package/lib/domain/repositories/income-movements.domain.repository.d.ts +14 -0
- package/lib/domain/services/general.domain.service.d.ts +2 -0
- package/lib/domain/services/relationship-movements.config.d.ts +3 -1
- package/lib/infrastructure/repositories/income-movements.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/services/income-movements.infrastructure.service.d.ts +16 -0
- package/lib/types/collection-names.d.ts +15 -1
- package/lib/types/route.d.ts +3 -0
- package/package.json +1 -1
- package/lib/domain/models/employee.model.d.ts +0 -176
|
@@ -10,10 +10,8 @@ import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model
|
|
|
10
10
|
import { CbmFinancialBankModel } from '../../domain/models/financial-bank.domain.model';
|
|
11
11
|
import { CbmPaymentTermModel } from '../../domain/models/payment-term-repository.domain.model';
|
|
12
12
|
import { CbmSellerModel } from '../../domain/models/seller.domain.model';
|
|
13
|
-
import { CbmAccountRepository } from '../../domain/repositories/account.domain.repository';
|
|
14
13
|
import { BankConciliationDomainRepository } from '../../domain/repositories/bank-conciliation.domain.repository';
|
|
15
14
|
import { CbmBankMovementsRepository } from '../../domain/repositories/bank-movements.domain.repository';
|
|
16
|
-
import { CbmBankRepository } from '../../domain/repositories/bank.domain.repository';
|
|
17
15
|
import { CbmClientBranchDomainRepository } from '../../domain/repositories/client-branch.domain.repository';
|
|
18
16
|
import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
|
|
19
17
|
import { CbmCostCenterRepository } from '../../domain/repositories/cost-center.domain.repository';
|
|
@@ -28,6 +26,7 @@ import { ECollectionNames } from '../../types/collection-names';
|
|
|
28
26
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
29
27
|
import { CbmRelationshipMovementsComponent } from '../relationship-movements/relationship-movements';
|
|
30
28
|
import { CbmSalesAccountModel } from '@cbm-common/cbm-types';
|
|
29
|
+
import { ListService } from '@cbm-common/data-access';
|
|
31
30
|
type TOperation = 'sales' | 'purchases' | 'both';
|
|
32
31
|
type TSaveOptions = 'new' | 'view' | 'close';
|
|
33
32
|
type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
@@ -39,7 +38,6 @@ interface IPagination {
|
|
|
39
38
|
}
|
|
40
39
|
export declare class CbmAddDownPayment {
|
|
41
40
|
private readonly financialBankRepository;
|
|
42
|
-
private readonly accountRepository;
|
|
43
41
|
private readonly router;
|
|
44
42
|
private readonly route;
|
|
45
43
|
private readonly destroyRef;
|
|
@@ -52,11 +50,10 @@ export declare class CbmAddDownPayment {
|
|
|
52
50
|
private readonly downPaymentRepository;
|
|
53
51
|
private readonly clientRepository;
|
|
54
52
|
private readonly sellerRepository;
|
|
55
|
-
private readonly bankRepository;
|
|
56
53
|
private readonly clientBranchRepository;
|
|
57
54
|
private readonly costCenterRepository;
|
|
58
55
|
private readonly paymentTermRepository;
|
|
59
|
-
constructor(financialBankRepository: CbmFinancialBankRepository,
|
|
56
|
+
constructor(financialBankRepository: CbmFinancialBankRepository, router: Router, route: ActivatedRoute, destroyRef: DestroyRef, bankMovementsRepository: CbmBankMovementsRepository, relationshipMovements: RelationshipMovementsConfig, bankConciliationRepository: BankConciliationDomainRepository, viewContainerRef: ViewContainerRef, notificationService: CbmNotificationService, authService: CbmAuthService, downPaymentRepository: DownPaymentDomainRepository, clientRepository: CbmClientDomainRepository, sellerRepository: CbmSellerDomainRepository, clientBranchRepository: CbmClientBranchDomainRepository, costCenterRepository: CbmCostCenterRepository, paymentTermRepository: CbmPaymentTermRepository);
|
|
60
57
|
private loadClient;
|
|
61
58
|
'hidden-acttions-btns': import("@angular/core").InputSignal<boolean>;
|
|
62
59
|
'hiiden-title': import("@angular/core").InputSignal<boolean>;
|
|
@@ -74,11 +71,9 @@ export declare class CbmAddDownPayment {
|
|
|
74
71
|
clientBranch: FormControl<CbmClientBranchModel.ListResponse.Data | null>;
|
|
75
72
|
paymentTermOption: FormGroup<{
|
|
76
73
|
optionType: FormControl<TOperation | null>;
|
|
77
|
-
bank_checked: FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
78
74
|
number_cheque: FormControl<string | null>;
|
|
79
75
|
financialBank: FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
80
76
|
paymentTerm: FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
81
|
-
account: FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
82
77
|
depositDate: FormControl<string | null>;
|
|
83
78
|
batchCode: FormControl<string | null>;
|
|
84
79
|
operationNumber: FormControl<string | null>;
|
|
@@ -93,9 +88,6 @@ export declare class CbmAddDownPayment {
|
|
|
93
88
|
clients: import("@angular/core").WritableSignal<CbmClientModel.ListResponse.Item[]>;
|
|
94
89
|
costCenters: import("@angular/core").WritableSignal<CbmCostCenterModel.ListResponse.Data[]>;
|
|
95
90
|
clientBranches: import("@angular/core").WritableSignal<CbmClientBranchModel.ListResponse.Data[]>;
|
|
96
|
-
financialBanks: import("@angular/core").WritableSignal<CbmFinancialBankModel.ListResponse.Data[]>;
|
|
97
|
-
financialBanksOriginal: import("@angular/core").WritableSignal<CbmFinancialBankModel.ListResponse.Data[]>;
|
|
98
|
-
paymentTerms: import("@angular/core").WritableSignal<CbmPaymentTermModel.ListResponse.Data[]>;
|
|
99
91
|
accounts: import("@angular/core").WritableSignal<CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
100
92
|
clientsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
101
93
|
accountsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
@@ -141,21 +133,17 @@ export declare class CbmAddDownPayment {
|
|
|
141
133
|
get clientBranchControl(): FormControl<CbmClientBranchModel.ListResponse.Data | null>;
|
|
142
134
|
get paymentTermOptionForm(): FormGroup<{
|
|
143
135
|
optionType: FormControl<TOperation | null>;
|
|
144
|
-
bank_checked: FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
145
136
|
number_cheque: FormControl<string | null>;
|
|
146
137
|
financialBank: FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
147
138
|
paymentTerm: FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
148
|
-
account: FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
149
139
|
depositDate: FormControl<string | null>;
|
|
150
140
|
batchCode: FormControl<string | null>;
|
|
151
141
|
operationNumber: FormControl<string | null>;
|
|
152
142
|
value: FormControl<string | null>;
|
|
153
143
|
}>;
|
|
154
|
-
get bankCheckedControl(): FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
155
144
|
get numberChequeControl(): FormControl<string | null>;
|
|
156
145
|
get financialBankControl(): FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
157
146
|
get paymentTermControl(): FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
158
|
-
get accountControl(): FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
159
147
|
get batchCodeControl(): FormControl<string | null>;
|
|
160
148
|
get depositDateControl(): FormControl<string | null>;
|
|
161
149
|
get operationNumberControl(): FormControl<string | null>;
|
|
@@ -167,13 +155,11 @@ export declare class CbmAddDownPayment {
|
|
|
167
155
|
}): boolean;
|
|
168
156
|
private resetControls;
|
|
169
157
|
private updateControlsBasedOnPaymentTerm;
|
|
170
|
-
|
|
171
|
-
|
|
158
|
+
updateFinancialsBank(value: CbmPaymentTermModel.ListResponse.Data): Promise<void>;
|
|
159
|
+
handleCode01(): void;
|
|
172
160
|
private handleCode02;
|
|
173
161
|
private handleCode03;
|
|
174
162
|
private handleCode04;
|
|
175
|
-
private handleCode05;
|
|
176
|
-
private handleCode06;
|
|
177
163
|
private handleDefaultCode;
|
|
178
164
|
validateFormDownPayment(saveOption: TSaveOptions): Promise<void>;
|
|
179
165
|
saveDownPayment(callback: (newDownPaymentId: string) => void): void;
|
|
@@ -182,12 +168,11 @@ export declare class CbmAddDownPayment {
|
|
|
182
168
|
addDownPaymentAndClose(): void;
|
|
183
169
|
protected fetchClients(searchText?: string): void;
|
|
184
170
|
protected fetchSellers(searchText?: string): void;
|
|
185
|
-
protected fetchAccounts(searchText?: string): void;
|
|
186
|
-
protected fetchBanks(searchText?: string): void;
|
|
187
171
|
protected fetchClientBranch(searchText?: string): void;
|
|
188
172
|
private fetchCostCenters;
|
|
189
|
-
|
|
190
|
-
|
|
173
|
+
financialBanks$: ListService<CbmFinancialBankModel.ListResponse, CbmFinancialBankModel.ListParams, CbmFinancialBankModel.ListResponse.Data[]>;
|
|
174
|
+
fetchFinancialBanks(payment_term_code: string): Promise<void>;
|
|
175
|
+
paymentTerms$: ListService<CbmPaymentTermModel.ListResponse, CbmPaymentTermModel.ListParams, CbmPaymentTermModel.ListResponse.Data[]>;
|
|
191
176
|
openModal(): void;
|
|
192
177
|
onModalConfirm(): void;
|
|
193
178
|
onModalCancel(): void;
|
|
@@ -217,6 +217,8 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
217
217
|
detailId: FormControl<string | null>;
|
|
218
218
|
code: FormControl<string | null>;
|
|
219
219
|
item: FormControl<CbmItemModel.ListResponse.Item | null>;
|
|
220
|
+
vehicleOrderRequestId: FormControl<string | null>;
|
|
221
|
+
vehicleOrderRequestDetailId: FormControl<string | null>;
|
|
220
222
|
amount: FormControl<string | null>;
|
|
221
223
|
freeAmount: FormControl<string | null>;
|
|
222
224
|
price: FormControl<string | null>;
|
|
@@ -111,6 +111,8 @@ export declare namespace CbmChargesForOrderVehicleModel {
|
|
|
111
111
|
total_discount: number;
|
|
112
112
|
commentary_item?: string;
|
|
113
113
|
replace_item_name?: string;
|
|
114
|
+
vehicle_order_request_id?: string;
|
|
115
|
+
vehicle_order_request_detail_id?: string;
|
|
114
116
|
charges_detail_tax: Tax[];
|
|
115
117
|
}
|
|
116
118
|
interface Tax {
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { ECollectionNames } from "../../types/collection-names";
|
|
2
|
+
import { EEVENT_MODULES } from "../../types/event-modules";
|
|
3
|
+
export declare namespace ICbmIncomeMovementsModel {
|
|
4
|
+
interface ListParams {
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
payment_term_code?: string;
|
|
8
|
+
event_module?: `${EEVENT_MODULES}`;
|
|
9
|
+
document_nomenclature_number?: string;
|
|
10
|
+
beneficiary_name?: string;
|
|
11
|
+
payment_term_id?: string;
|
|
12
|
+
operation_number?: string;
|
|
13
|
+
collection_origin_name?: `${ECollectionNames}`;
|
|
14
|
+
financial_bank_id?: string;
|
|
15
|
+
date_begin?: number;
|
|
16
|
+
date_end?: number;
|
|
17
|
+
}
|
|
18
|
+
interface ListResponse {
|
|
19
|
+
success: boolean;
|
|
20
|
+
pageNum: number;
|
|
21
|
+
pageSize: number;
|
|
22
|
+
pages: number;
|
|
23
|
+
total: number;
|
|
24
|
+
items: ListResponse.Item[];
|
|
25
|
+
}
|
|
26
|
+
namespace ListResponse {
|
|
27
|
+
interface Item {
|
|
28
|
+
_id: string;
|
|
29
|
+
company_id: string;
|
|
30
|
+
company_NIF: string;
|
|
31
|
+
company_address: string;
|
|
32
|
+
company_trade_name: string;
|
|
33
|
+
company_business_name: string;
|
|
34
|
+
collection_origin_id: string;
|
|
35
|
+
collection_origin_name: string;
|
|
36
|
+
collection_origin_document_nomenclature_number: string;
|
|
37
|
+
cost_center_id?: string;
|
|
38
|
+
cost_center_code?: string;
|
|
39
|
+
cost_center_name?: string;
|
|
40
|
+
financial_bank_id: string;
|
|
41
|
+
financial_bank_name: string;
|
|
42
|
+
payment_term_id: string;
|
|
43
|
+
payment_term_name: string;
|
|
44
|
+
payment_term_code: string;
|
|
45
|
+
document_nomenclature: string;
|
|
46
|
+
document_number: string;
|
|
47
|
+
deposit_date?: number;
|
|
48
|
+
liquidated_value: number;
|
|
49
|
+
value?: number;
|
|
50
|
+
balance: number;
|
|
51
|
+
operation_number?: null | string;
|
|
52
|
+
cheque_name: string;
|
|
53
|
+
batch_code?: null;
|
|
54
|
+
beneficiary_id: string;
|
|
55
|
+
beneficiary_name: string;
|
|
56
|
+
beneficiary_document_number: string;
|
|
57
|
+
event_module: string;
|
|
58
|
+
request: Item.Request;
|
|
59
|
+
created_user: string;
|
|
60
|
+
reverse_status: boolean;
|
|
61
|
+
created_at: number;
|
|
62
|
+
}
|
|
63
|
+
namespace Item {
|
|
64
|
+
interface Request {
|
|
65
|
+
company_id: string;
|
|
66
|
+
country_id: string;
|
|
67
|
+
country_code: string;
|
|
68
|
+
country_name: string;
|
|
69
|
+
country_short_name: string;
|
|
70
|
+
period_id: string;
|
|
71
|
+
period_year: number | string;
|
|
72
|
+
date_document?: number;
|
|
73
|
+
type?: string;
|
|
74
|
+
date_account?: number;
|
|
75
|
+
document_nomenclature: string;
|
|
76
|
+
document_number: string;
|
|
77
|
+
total?: number;
|
|
78
|
+
company_NIF: string;
|
|
79
|
+
company_address: string;
|
|
80
|
+
company_trade_name: string;
|
|
81
|
+
company_business_name: string;
|
|
82
|
+
company_logo: string;
|
|
83
|
+
cost_center_id: string;
|
|
84
|
+
cost_center_code: string;
|
|
85
|
+
cost_center_name: string;
|
|
86
|
+
state_motion?: string;
|
|
87
|
+
enabled?: boolean;
|
|
88
|
+
deleted?: boolean;
|
|
89
|
+
income_movements_status?: boolean;
|
|
90
|
+
user_id: string;
|
|
91
|
+
income_detail?: Request.Detail.Income[];
|
|
92
|
+
income_payment_options?: Request.PaymentOption[];
|
|
93
|
+
movement_number?: string;
|
|
94
|
+
_id?: string;
|
|
95
|
+
ms_service?: string;
|
|
96
|
+
event?: string;
|
|
97
|
+
event_module?: string;
|
|
98
|
+
messageResponse?: string;
|
|
99
|
+
deposit_date?: number;
|
|
100
|
+
date_deposit?: number;
|
|
101
|
+
cash_liquidation_detail?: Request.Detail.CashLiquidation[];
|
|
102
|
+
cash_liquidation_payment_option?: Request.PaymentOption[];
|
|
103
|
+
created_user?: string;
|
|
104
|
+
detail_income?: Request.Detail.Income[];
|
|
105
|
+
detail_payment_options?: Request.PaymentOption[];
|
|
106
|
+
client_id?: string;
|
|
107
|
+
client_business_name?: string;
|
|
108
|
+
client_trade_name?: string;
|
|
109
|
+
client_document_number?: string;
|
|
110
|
+
client_credit_application?: boolean;
|
|
111
|
+
client_document_type_id?: string;
|
|
112
|
+
client_document_type_name?: string;
|
|
113
|
+
client_document_type_code?: string;
|
|
114
|
+
client_category_id?: string;
|
|
115
|
+
client_category_name?: string;
|
|
116
|
+
client_branch_id?: string;
|
|
117
|
+
client_branch_code?: string;
|
|
118
|
+
client_branch_name?: string;
|
|
119
|
+
client_branch_address?: string;
|
|
120
|
+
client_branch_email?: any[];
|
|
121
|
+
client_branch_phone_code?: string;
|
|
122
|
+
client_branch_cellphone?: string;
|
|
123
|
+
client_branch_type_establishment?: string;
|
|
124
|
+
client_branch_seller_id?: string;
|
|
125
|
+
client_branch_seller_identification_number?: string;
|
|
126
|
+
client_branch_seller_full_name?: string;
|
|
127
|
+
client_branch_seller_address?: string;
|
|
128
|
+
client_branch_seller_email?: any[];
|
|
129
|
+
client_branch_seller_cellphone?: string;
|
|
130
|
+
client_branch_contact_id?: string;
|
|
131
|
+
client_branch_contact_identification_number?: string;
|
|
132
|
+
client_branch_contact_full_name?: string;
|
|
133
|
+
client_branch_contact_cellphone?: string;
|
|
134
|
+
client_branch_contact_email?: string[];
|
|
135
|
+
liquidated_value?: number;
|
|
136
|
+
cash_liquidation?: number;
|
|
137
|
+
document_liquidation?: number;
|
|
138
|
+
reverse?: number;
|
|
139
|
+
balance?: number;
|
|
140
|
+
commentary?: string;
|
|
141
|
+
cash_register?: boolean;
|
|
142
|
+
deleted_at?: number;
|
|
143
|
+
reverse_status?: boolean;
|
|
144
|
+
payment_term_options?: Request.PaymentTermOptions;
|
|
145
|
+
created_at?: number;
|
|
146
|
+
detail_transaction?: Request.Detail.Transaction[];
|
|
147
|
+
}
|
|
148
|
+
namespace Request {
|
|
149
|
+
namespace Detail {
|
|
150
|
+
interface Income {
|
|
151
|
+
paid: number;
|
|
152
|
+
subsequent_balance: number;
|
|
153
|
+
credit_management_id: string;
|
|
154
|
+
credit_management_detail_id: string;
|
|
155
|
+
client_id: string;
|
|
156
|
+
client_business_name: string;
|
|
157
|
+
client_trade_name: string;
|
|
158
|
+
client_document_number: string;
|
|
159
|
+
client_credit_application: boolean;
|
|
160
|
+
client_document_type_id: string;
|
|
161
|
+
client_document_type_code: string;
|
|
162
|
+
client_document_type_name: string;
|
|
163
|
+
client_category_id: string;
|
|
164
|
+
client_category_name: string;
|
|
165
|
+
client_price_list_id: string;
|
|
166
|
+
client_price_list_code: string;
|
|
167
|
+
client_price_list_name: string;
|
|
168
|
+
client_branch_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_phone_code: string;
|
|
174
|
+
client_branch_cellphone: string;
|
|
175
|
+
client_branch_type_establishment: string;
|
|
176
|
+
client_branch_province_id?: string;
|
|
177
|
+
client_branch_province_code?: string;
|
|
178
|
+
client_branch_province_name?: string;
|
|
179
|
+
client_branch_canton_id?: string;
|
|
180
|
+
client_branch_canton_code?: string;
|
|
181
|
+
client_branch_canton_name?: string;
|
|
182
|
+
client_branch_parish_id?: string;
|
|
183
|
+
client_branch_parish_code?: string;
|
|
184
|
+
client_branch_parish_name?: string;
|
|
185
|
+
client_branch_seller_id: string;
|
|
186
|
+
client_branch_seller_identification_number: string;
|
|
187
|
+
client_branch_seller_full_name: string;
|
|
188
|
+
client_branch_seller_address: string;
|
|
189
|
+
client_branch_seller_email: string[];
|
|
190
|
+
client_branch_seller_cellphone: string;
|
|
191
|
+
installment: string;
|
|
192
|
+
previous_balance: number;
|
|
193
|
+
credit_document_nomenclature: string;
|
|
194
|
+
credit_document_number: string;
|
|
195
|
+
invoice_date: number;
|
|
196
|
+
invoice_number: string;
|
|
197
|
+
date_expired: number;
|
|
198
|
+
origin_credit: string;
|
|
199
|
+
period: number;
|
|
200
|
+
_id?: string;
|
|
201
|
+
company_id?: string;
|
|
202
|
+
}
|
|
203
|
+
interface CashLiquidation {
|
|
204
|
+
client_id: string;
|
|
205
|
+
collection_origin_date: number;
|
|
206
|
+
collection_origin_document_nomenclature: string;
|
|
207
|
+
collection_origin_document_number: string;
|
|
208
|
+
event_module: string;
|
|
209
|
+
client_business_name: string;
|
|
210
|
+
client_price_list_id: string;
|
|
211
|
+
client_price_list_code: string;
|
|
212
|
+
client_price_list_name: string;
|
|
213
|
+
client_trade_name: string;
|
|
214
|
+
client_document_number: string;
|
|
215
|
+
client_credit_application: boolean;
|
|
216
|
+
client_document_type_id: string;
|
|
217
|
+
client_document_type_name: string;
|
|
218
|
+
client_document_type_code: string;
|
|
219
|
+
client_category_id: string;
|
|
220
|
+
client_category_name: string;
|
|
221
|
+
client_branch_id: string;
|
|
222
|
+
client_branch_code: string;
|
|
223
|
+
client_branch_name: string;
|
|
224
|
+
client_branch_address: string;
|
|
225
|
+
client_branch_email: string[];
|
|
226
|
+
client_branch_phone_code: string;
|
|
227
|
+
client_branch_cellphone: string;
|
|
228
|
+
client_branch_type_establishment: string;
|
|
229
|
+
client_branch_seller_id: string;
|
|
230
|
+
client_branch_seller_identification_number: string;
|
|
231
|
+
client_branch_seller_full_name: string;
|
|
232
|
+
client_branch_seller_address: string;
|
|
233
|
+
client_branch_seller_email: string[];
|
|
234
|
+
client_branch_seller_cellphone: string;
|
|
235
|
+
collection_origin_id: string;
|
|
236
|
+
collection_origin_name: string;
|
|
237
|
+
document_date: number;
|
|
238
|
+
document_number: string;
|
|
239
|
+
liquidated_value: number;
|
|
240
|
+
previous_balance: number;
|
|
241
|
+
subsequent_balance: number;
|
|
242
|
+
}
|
|
243
|
+
interface Transaction {
|
|
244
|
+
_id: string;
|
|
245
|
+
down_payment_id: string;
|
|
246
|
+
date: number;
|
|
247
|
+
description: string;
|
|
248
|
+
document: string;
|
|
249
|
+
type: string;
|
|
250
|
+
value: number;
|
|
251
|
+
previous_balance: number;
|
|
252
|
+
subsequent_balance: number;
|
|
253
|
+
collection_origin_name: string;
|
|
254
|
+
collection_origin_id: string;
|
|
255
|
+
created_user: string;
|
|
256
|
+
created_at: number;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
interface PaymentOption {
|
|
260
|
+
payment_term_code: string;
|
|
261
|
+
payment_term_name: string;
|
|
262
|
+
value: number;
|
|
263
|
+
payment_term_id: string;
|
|
264
|
+
financial_bank_id: string;
|
|
265
|
+
financial_bank_name: string;
|
|
266
|
+
financial_bank_account_number: null | string;
|
|
267
|
+
operation_number: null | string;
|
|
268
|
+
bank_cheque?: null;
|
|
269
|
+
number_cheque: null;
|
|
270
|
+
batch_code: null;
|
|
271
|
+
date?: number;
|
|
272
|
+
_id?: string;
|
|
273
|
+
company_id?: string;
|
|
274
|
+
}
|
|
275
|
+
interface PaymentTermOptions {
|
|
276
|
+
payment_term_id: string;
|
|
277
|
+
financial_bank_id: string;
|
|
278
|
+
date: number;
|
|
279
|
+
value: number;
|
|
280
|
+
financial_bank_name: string;
|
|
281
|
+
financial_bank_account_number: null;
|
|
282
|
+
payment_term_code: string;
|
|
283
|
+
payment_term_name: string;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
interface SaveBody {
|
|
289
|
+
company_NIF: string;
|
|
290
|
+
company_address: string;
|
|
291
|
+
company_trade_name: string;
|
|
292
|
+
company_business_name: string;
|
|
293
|
+
company_logo: string;
|
|
294
|
+
collection_origin_id: string;
|
|
295
|
+
collection_origin_name: string;
|
|
296
|
+
cost_center_id: string;
|
|
297
|
+
cost_center_code: string;
|
|
298
|
+
cost_center_name: string;
|
|
299
|
+
comment_accounting?: string;
|
|
300
|
+
payment_term_options: SaveBody.PaymentTerm;
|
|
301
|
+
income_movements_detail?: SaveBody.Detail[];
|
|
302
|
+
}
|
|
303
|
+
namespace SaveBody {
|
|
304
|
+
interface PaymentTerm {
|
|
305
|
+
global_bank_id?: string;
|
|
306
|
+
global_bank_code?: string;
|
|
307
|
+
global_bank_account_number?: string;
|
|
308
|
+
global_bank_name?: string;
|
|
309
|
+
financial_bank_id?: string;
|
|
310
|
+
financial_bank_account_number?: string;
|
|
311
|
+
payment_term_id: string;
|
|
312
|
+
account_id?: string;
|
|
313
|
+
card_type?: string;
|
|
314
|
+
batch_code?: string;
|
|
315
|
+
date?: number;
|
|
316
|
+
future_deposit_date?: number;
|
|
317
|
+
value: number;
|
|
318
|
+
number_cheque?: string;
|
|
319
|
+
financial_bank_name?: string;
|
|
320
|
+
account_name?: string;
|
|
321
|
+
account_code?: string;
|
|
322
|
+
operation_number?: string;
|
|
323
|
+
payment_term_code: string;
|
|
324
|
+
payment_term_name: string;
|
|
325
|
+
}
|
|
326
|
+
interface Detail {
|
|
327
|
+
account_id: string;
|
|
328
|
+
account_name: string;
|
|
329
|
+
account_code: string;
|
|
330
|
+
account_code_father: string;
|
|
331
|
+
account_name_father: string;
|
|
332
|
+
value: number;
|
|
333
|
+
comment_accounting_detail: string;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
interface GetOneResponse {
|
|
337
|
+
success: boolean;
|
|
338
|
+
data: GetOneResponse.Data;
|
|
339
|
+
}
|
|
340
|
+
namespace GetOneResponse {
|
|
341
|
+
interface Data {
|
|
342
|
+
_id: string;
|
|
343
|
+
company_id: string;
|
|
344
|
+
company_NIF: string;
|
|
345
|
+
company_address: string;
|
|
346
|
+
company_trade_name: string;
|
|
347
|
+
company_business_name: string;
|
|
348
|
+
collection_origin_id: string;
|
|
349
|
+
collection_origin_name: string;
|
|
350
|
+
collection_origin_document_nomenclature_number: string;
|
|
351
|
+
cost_center_id: string;
|
|
352
|
+
cost_center_code: string;
|
|
353
|
+
cost_center_name: string;
|
|
354
|
+
card_type?: string;
|
|
355
|
+
number_cheque?: string;
|
|
356
|
+
global_bank_name?: string;
|
|
357
|
+
global_bank_code?: string;
|
|
358
|
+
global_bank_id?: string;
|
|
359
|
+
global_bank_account_number?: string;
|
|
360
|
+
financial_bank_id: string;
|
|
361
|
+
financial_bank_name: string;
|
|
362
|
+
financial_bank_account_number?: string;
|
|
363
|
+
payment_term_id: string;
|
|
364
|
+
payment_term_name: string;
|
|
365
|
+
payment_term_code: string;
|
|
366
|
+
document_nomenclature: string;
|
|
367
|
+
document_number: string;
|
|
368
|
+
deposit_date: number;
|
|
369
|
+
total: number;
|
|
370
|
+
liquidated_value: number;
|
|
371
|
+
value: number;
|
|
372
|
+
balance: number;
|
|
373
|
+
operation_number: null;
|
|
374
|
+
cheque_name: string;
|
|
375
|
+
batch_code: null;
|
|
376
|
+
beneficiary_id: string;
|
|
377
|
+
beneficiary_name: string;
|
|
378
|
+
beneficiary_document_number: string;
|
|
379
|
+
event_module: string;
|
|
380
|
+
request: Data.Request;
|
|
381
|
+
created_user: string;
|
|
382
|
+
reverse_status: boolean;
|
|
383
|
+
reverse_at?: number;
|
|
384
|
+
reverse_reason?: string;
|
|
385
|
+
reverse_user?: string;
|
|
386
|
+
reverse_commentary?: string;
|
|
387
|
+
created_at: number;
|
|
388
|
+
comment_accounting?: string;
|
|
389
|
+
income_movements_detail?: Data.Detail[];
|
|
390
|
+
company_logo?: string;
|
|
391
|
+
cost_center_father_code?: string;
|
|
392
|
+
cost_center_father_name?: string;
|
|
393
|
+
user_id?: string;
|
|
394
|
+
cash_register?: boolean;
|
|
395
|
+
}
|
|
396
|
+
namespace Data {
|
|
397
|
+
interface Detail {
|
|
398
|
+
_id: string;
|
|
399
|
+
created_at: number;
|
|
400
|
+
created_user: string;
|
|
401
|
+
account_id: string;
|
|
402
|
+
account_name: string;
|
|
403
|
+
account_code: string;
|
|
404
|
+
account_code_father: string;
|
|
405
|
+
account_name_father: string;
|
|
406
|
+
comment_accounting_detail: string;
|
|
407
|
+
value: number;
|
|
408
|
+
}
|
|
409
|
+
interface Request {
|
|
410
|
+
company_id: string;
|
|
411
|
+
country_id: string;
|
|
412
|
+
country_code: string;
|
|
413
|
+
country_name: string;
|
|
414
|
+
country_short_name: string;
|
|
415
|
+
period_id: string;
|
|
416
|
+
period_year: string;
|
|
417
|
+
date_document: number;
|
|
418
|
+
type: string;
|
|
419
|
+
date_account: number;
|
|
420
|
+
document_nomenclature: string;
|
|
421
|
+
document_number: string;
|
|
422
|
+
total: number;
|
|
423
|
+
company_NIF: string;
|
|
424
|
+
company_address: string;
|
|
425
|
+
company_trade_name: string;
|
|
426
|
+
company_business_name: string;
|
|
427
|
+
company_logo: string;
|
|
428
|
+
cost_center_id: string;
|
|
429
|
+
cost_center_code: string;
|
|
430
|
+
cost_center_name: string;
|
|
431
|
+
state_motion: string;
|
|
432
|
+
enabled: boolean;
|
|
433
|
+
deleted: boolean;
|
|
434
|
+
income_movements_status: boolean;
|
|
435
|
+
user_id: string;
|
|
436
|
+
bank_income_order_detail: Request.BankIncomeOrderDetail[];
|
|
437
|
+
income_detail: Request.Detail[];
|
|
438
|
+
income_payment_options: Request.PaymentOption[];
|
|
439
|
+
movement_number: string;
|
|
440
|
+
_id: string;
|
|
441
|
+
ms_service: string;
|
|
442
|
+
event: string;
|
|
443
|
+
event_module: string;
|
|
444
|
+
messageResponse: string;
|
|
445
|
+
cost_center_code_manual?: string;
|
|
446
|
+
cost_center_father_code?: string;
|
|
447
|
+
cost_center_father_name?: string;
|
|
448
|
+
reason?: string;
|
|
449
|
+
beneficiary?: string;
|
|
450
|
+
comment_accounting?: string;
|
|
451
|
+
type_document?: string;
|
|
452
|
+
cash_register?: boolean;
|
|
453
|
+
created_at?: number;
|
|
454
|
+
created_user?: string;
|
|
455
|
+
}
|
|
456
|
+
namespace Request {
|
|
457
|
+
interface Detail {
|
|
458
|
+
_id: string;
|
|
459
|
+
company_id: string;
|
|
460
|
+
credit_management_id: string;
|
|
461
|
+
credit_management_detail_id: string;
|
|
462
|
+
client_id: string;
|
|
463
|
+
client_business_name: string;
|
|
464
|
+
client_trade_name: string;
|
|
465
|
+
client_document_number: string;
|
|
466
|
+
client_credit_application: boolean;
|
|
467
|
+
client_document_type_id: string;
|
|
468
|
+
client_document_type_name: string;
|
|
469
|
+
client_document_type_code: string;
|
|
470
|
+
client_category_id: string;
|
|
471
|
+
client_category_name: string;
|
|
472
|
+
client_price_list_id: string;
|
|
473
|
+
client_price_list_code: string;
|
|
474
|
+
client_price_list_name: string;
|
|
475
|
+
client_branch_id: string;
|
|
476
|
+
client_branch_code: string;
|
|
477
|
+
client_branch_name: string;
|
|
478
|
+
client_branch_address: string;
|
|
479
|
+
client_branch_email: string[];
|
|
480
|
+
client_branch_phone_code: string;
|
|
481
|
+
client_branch_cellphone: string;
|
|
482
|
+
client_branch_type_establishment: string;
|
|
483
|
+
client_branch_seller_id: string;
|
|
484
|
+
client_branch_seller_identification_number: string;
|
|
485
|
+
client_branch_seller_full_name: string;
|
|
486
|
+
client_branch_seller_address: string;
|
|
487
|
+
client_branch_seller_email: string[];
|
|
488
|
+
client_branch_seller_cellphone: string;
|
|
489
|
+
installment: string;
|
|
490
|
+
invoice_number: string;
|
|
491
|
+
invoice_date: number;
|
|
492
|
+
credit_document_nomenclature: string;
|
|
493
|
+
credit_document_number: string;
|
|
494
|
+
paid: number;
|
|
495
|
+
previous_balance: number;
|
|
496
|
+
subsequent_balance: number;
|
|
497
|
+
date_expired: number;
|
|
498
|
+
origin_credit: string;
|
|
499
|
+
period: number;
|
|
500
|
+
comment_accounting_detail: string;
|
|
501
|
+
}
|
|
502
|
+
interface BankIncomeOrderDetail {
|
|
503
|
+
company_id: string;
|
|
504
|
+
bank_income_order_id: string;
|
|
505
|
+
account_id: string;
|
|
506
|
+
account_code: string;
|
|
507
|
+
account_name: string;
|
|
508
|
+
account_code_father: string;
|
|
509
|
+
account_name_father: string;
|
|
510
|
+
value: number;
|
|
511
|
+
comment_accounting_detail: string;
|
|
512
|
+
}
|
|
513
|
+
interface PaymentOption {
|
|
514
|
+
_id: string;
|
|
515
|
+
company_id: string;
|
|
516
|
+
payment_term_id: string;
|
|
517
|
+
financial_bank_id: string;
|
|
518
|
+
batch_code: null;
|
|
519
|
+
date: number;
|
|
520
|
+
value: number;
|
|
521
|
+
financial_bank_name: string;
|
|
522
|
+
financial_bank_account_number: null;
|
|
523
|
+
number_cheque: null;
|
|
524
|
+
operation_number: null;
|
|
525
|
+
payment_term_code: string;
|
|
526
|
+
payment_term_name: string;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
interface SendEmailParams {
|
|
532
|
+
timezone: string;
|
|
533
|
+
locale: string;
|
|
534
|
+
emails?: string;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
@@ -34,6 +34,9 @@ export declare namespace CbmReplacementRequestModel {
|
|
|
34
34
|
item_code: string;
|
|
35
35
|
item_barcode: string;
|
|
36
36
|
item_manage_by: string;
|
|
37
|
+
ind_sales_account: boolean;
|
|
38
|
+
vehicle_order_request_detail_id: string;
|
|
39
|
+
vehicle_order_request_id: string;
|
|
37
40
|
type: string;
|
|
38
41
|
commentary_item: string;
|
|
39
42
|
replace_item_name: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ICbmIncomeMovementsModel } from '../models/income-movements.model';
|
|
3
|
+
import { ICbmIncomeMovementsInfrastructureRepository } from '../../infrastructure/repositories/income-movements.infrastructure.repository';
|
|
4
|
+
import { IGeneral } from '../models/general.domain.model';
|
|
5
|
+
export declare class CbmIncomeMovementsDomainRepository implements ICbmIncomeMovementsInfrastructureRepository {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: ICbmIncomeMovementsInfrastructureRepository);
|
|
8
|
+
list(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
9
|
+
listParametersList(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
11
|
+
getOneParametersList(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
12
|
+
save(body: ICbmIncomeMovementsModel.SaveBody): Observable<IGeneral.Confirm>;
|
|
13
|
+
sendEmail(id: string, params: ICbmIncomeMovementsModel.SendEmailParams): Observable<IGeneral.Confirm>;
|
|
14
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare class GeneralDomainService {
|
|
|
13
13
|
panel: string;
|
|
14
14
|
path: string;
|
|
15
15
|
collection: string;
|
|
16
|
+
translation?: string;
|
|
16
17
|
} | undefined;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
@@ -23,6 +24,7 @@ export declare function findRoute(eventModule: string, collectionName: string):
|
|
|
23
24
|
panel: string;
|
|
24
25
|
path: string;
|
|
25
26
|
collection: string;
|
|
27
|
+
translation?: string;
|
|
26
28
|
} | undefined;
|
|
27
29
|
};
|
|
28
30
|
export declare function noWhitespaceValidator(): ValidatorFn;
|
|
@@ -7,6 +7,7 @@ import { CbmCashLiquidationRepository } from '../repositories/cash-liquidation.d
|
|
|
7
7
|
import { IncomeDomainRepository } from '../repositories/income.domain.repository';
|
|
8
8
|
import { DownPaymentDomainRepository } from '../repositories/down-payment.domain.repository';
|
|
9
9
|
import { CbmRelationShipMovementsModel } from '../../components/relationship-movements/relationship-movements.model';
|
|
10
|
+
import { CbmIncomeMovementsDomainRepository } from '../repositories/income-movements.domain.repository';
|
|
10
11
|
type TConfig = Partial<Record<ECollectionNames, CbmRelationShipMovementsModel.IConfigMethods>>;
|
|
11
12
|
export declare class RelationshipMovementsConfig {
|
|
12
13
|
private readonly apiOutgoingBankingTransactionUseCase;
|
|
@@ -16,7 +17,8 @@ export declare class RelationshipMovementsConfig {
|
|
|
16
17
|
private readonly incomeRepository;
|
|
17
18
|
private readonly cashLiquidationRepository;
|
|
18
19
|
private readonly downPaymentRepository;
|
|
19
|
-
|
|
20
|
+
private readonly incomeMovementsRepository;
|
|
21
|
+
constructor(apiOutgoingBankingTransactionUseCase: CbmOutgoingBankingTransactionRepository, apiIncomeBankingUseCase: CbmIncomeBankingTransactionRepository, depositChequeRepository: CbmDepositChequeRepository, apiCardSettlementUseCaseService: CbmCardSettlementRepository, incomeRepository: IncomeDomainRepository, cashLiquidationRepository: CbmCashLiquidationRepository, downPaymentRepository: DownPaymentDomainRepository, incomeMovementsRepository: CbmIncomeMovementsDomainRepository);
|
|
20
22
|
private relationshipMovementsConfig;
|
|
21
23
|
config(methods: ECollectionNames[]): TConfig;
|
|
22
24
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ICbmIncomeMovementsModel } from '../../domain/models/income-movements.model';
|
|
3
|
+
import { IGeneral } from '../../domain/models/general.domain.model';
|
|
4
|
+
export interface ICbmIncomeMovementsInfrastructureRepository {
|
|
5
|
+
list(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
6
|
+
listParametersList(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
7
|
+
getOne(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
8
|
+
getOneParametersList(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
9
|
+
save(body: ICbmIncomeMovementsModel.SaveBody): Observable<IGeneral.Confirm>;
|
|
10
|
+
sendEmail(id: string, request: ICbmIncomeMovementsModel.SendEmailParams): Observable<IGeneral.Confirm>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ICbmIncomeMovementsInfrastructureRepository } from '../repositories/income-movements.infrastructure.repository';
|
|
4
|
+
import { ICbmIncomeMovementsModel } from '../../domain/models/income-movements.model';
|
|
5
|
+
import { IGeneral } from '../../domain/models/general.domain.model';
|
|
6
|
+
export declare class CbmIncomeMovementsInfrastructureService implements ICbmIncomeMovementsInfrastructureRepository {
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
private readonly baseUrl;
|
|
10
|
+
list(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
11
|
+
listParametersList(params: ICbmIncomeMovementsModel.ListParams): Observable<ICbmIncomeMovementsModel.ListResponse>;
|
|
12
|
+
getOne(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
13
|
+
getOneParametersList(id: string): Observable<ICbmIncomeMovementsModel.GetOneResponse>;
|
|
14
|
+
save(body: ICbmIncomeMovementsModel.SaveBody): Observable<IGeneral.Confirm>;
|
|
15
|
+
sendEmail(id: string, params?: ICbmIncomeMovementsModel.SendEmailParams): Observable<IGeneral.Confirm>;
|
|
16
|
+
}
|
|
@@ -203,5 +203,19 @@ export declare enum ECollectionNames {
|
|
|
203
203
|
CREDIT_NOTE_PURCHASE = "credit_note",
|
|
204
204
|
DEBIT_NOTE_PURCHASE = "debit_note",
|
|
205
205
|
PURCHASES_CROSSING_ACCOUNT = "purchases_crossing_account",
|
|
206
|
-
ANNEXE_PURCHASES_CROSSING_ACCOUNT = "annexe_purchases_crossing_account"
|
|
206
|
+
ANNEXE_PURCHASES_CROSSING_ACCOUNT = "annexe_purchases_crossing_account",
|
|
207
|
+
INCOME_ORDER = "income_order",
|
|
208
|
+
INCOME_MOVEMENTS = "income_movements",
|
|
209
|
+
BANK_INCOME_ORDER = "bank_income_order",
|
|
210
|
+
DOWN_PAYMENT_ORDER = "down_payment_order",
|
|
211
|
+
CHECKS_INCOME_ORDER = "checks_liquidation_order",// cambiar cuando back cambie
|
|
212
|
+
OUTFLOW_PAYABLE_ORDER = "outflow_payable_order",
|
|
213
|
+
EXPENDITURE_MOVEMENTS = "expenditure_movements",
|
|
214
|
+
CARD_SETTLEMENT_ORDER = "card_settlement_order",
|
|
215
|
+
BANK_EXPENDITURE_ORDER = "bank_expenditure_order",
|
|
216
|
+
CASH_LIQUIDATION_ORDER = "cash_liquidation_order",
|
|
217
|
+
CHECKS_DOWN_PAYMENT_ORDER = "checks_down_payment_order",// cambiar cuando back cambie
|
|
218
|
+
DOWN_PAYMENT_PAYABLE_ORDER = "down_payment_payable_order",
|
|
219
|
+
CHECKS_OUTFLOW_PAYABLE_ORDER = "checks_outflow_payable_order",
|
|
220
|
+
CASH_LIQUIDATION_PAYABLE_ORDER = "cash_liquidation_payable_order"
|
|
207
221
|
}
|
package/lib/types/route.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export interface IRoute {
|
|
2
2
|
module: string;
|
|
3
3
|
panels: IRoutePanel[];
|
|
4
|
+
translation?: string;
|
|
4
5
|
}
|
|
5
6
|
export interface IRoutePanel {
|
|
6
7
|
panel: string;
|
|
7
8
|
routes: IRouteChild[];
|
|
9
|
+
translation?: string;
|
|
8
10
|
}
|
|
9
11
|
export interface IRouteChild {
|
|
10
12
|
path: string;
|
|
11
13
|
collection: string;
|
|
14
|
+
translation?: string;
|
|
12
15
|
}
|
package/package.json
CHANGED
|
@@ -1,176 +0,0 @@
|
|
|
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
|
-
}
|