@cbm-common/cbm-types 0.0.111 → 0.0.112
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 +196 -0
- package/lib/components/relationship-bank-conciliation-alert/relationship-bank-conciliation-alert.component.d.ts +12 -0
- package/lib/domain/models/bank-conciliation.domain.model.d.ts +406 -0
- package/lib/domain/models/down-payment.domain.model.d.ts +353 -0
- package/lib/domain/models/general.domain.model.d.ts +7 -0
- package/lib/domain/models/income.domain.model.d.ts +479 -0
- package/lib/domain/repositories/bank-conciliation.domain.repository.d.ts +18 -0
- package/lib/domain/repositories/down-payment.domain.repository.d.ts +17 -0
- package/lib/domain/repositories/income.domain.repository.d.ts +18 -0
- package/lib/domain/services/cbm-validators.service.d.ts +12 -0
- package/lib/domain/services/general.domain.service.d.ts +11 -0
- package/lib/domain/services/relationship-movements.config.d.ts +23 -0
- package/lib/infrastructure/repositories/bank-conciliation.infrastructure.repository.d.ts +15 -0
- package/lib/infrastructure/repositories/down-payment.infrastructure.repository.d.ts +14 -0
- package/lib/infrastructure/repositories/income.infrastructure.repository.d.ts +15 -0
- package/lib/infrastructure/services/bank-conciliation.infrastructure.service.d.ts +21 -0
- package/lib/infrastructure/services/down-payment.infrastructure.service.d.ts +18 -0
- package/lib/infrastructure/services/income.infrastructure.service.d.ts +19 -0
- package/lib/types/collection-names.d.ts +207 -0
- package/lib/types/event-modules.d.ts +38 -0
- package/lib/types/event-routes.d.ts +2 -0
- package/lib/types/route.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -0
- package/lib/remotes/services/auth.service.d.ts +0 -3
- package/lib/remotes/services/web-socket.service.d.ts +0 -4
- package/lib/remotes/services.remote.d.ts +0 -3
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { DestroyRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { CbmAccountModel } from '../../domain/models/account.domain.model';
|
|
6
|
+
import { IBankConciliation } from '../../domain/models/bank-conciliation.domain.model';
|
|
7
|
+
import { CbmBankMovementsModel } from '../../domain/models/bank-movements.domain.model';
|
|
8
|
+
import { CbmBankModel } from '../../domain/models/bank.domain.model';
|
|
9
|
+
import { CbmClientBranchModel } from '../../domain/models/client-branch.domain.model';
|
|
10
|
+
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
11
|
+
import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
|
|
12
|
+
import { CbmFinancialBankModel } from '../../domain/models/financial-bank.domain.model';
|
|
13
|
+
import { CbmPaymentTermModel } from '../../domain/models/payment-term-repository.domain.model';
|
|
14
|
+
import { CbmSellerModel } from '../../domain/models/seller.domain.model';
|
|
15
|
+
import { CbmAccountRepository } from '../../domain/repositories/account.domain.repository';
|
|
16
|
+
import { BankConciliationDomainRepository } from '../../domain/repositories/bank-conciliation.domain.repository';
|
|
17
|
+
import { CbmBankMovementsRepository } from '../../domain/repositories/bank-movements.domain.repository';
|
|
18
|
+
import { CbmBankRepository } from '../../domain/repositories/bank.domain.repository';
|
|
19
|
+
import { CbmClientBranchDomainRepository } from '../../domain/repositories/client-branch.domain.repository';
|
|
20
|
+
import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
|
|
21
|
+
import { CbmCostCenterRepository } from '../../domain/repositories/cost-center.domain.repository';
|
|
22
|
+
import { DownPaymentDomainRepository } from '../../domain/repositories/down-payment.domain.repository';
|
|
23
|
+
import { CbmFinancialBankRepository } from '../../domain/repositories/financial-bank.domain.repository';
|
|
24
|
+
import { CbmPaymentTermRepository } from '../../domain/repositories/payment-term.domain.repository';
|
|
25
|
+
import { CbmSellerDomainRepository } from '../../domain/repositories/seller.domain.repository';
|
|
26
|
+
import { CbmAuthService } from '../../domain/services/auth/auth.service';
|
|
27
|
+
import { RelationshipMovementsConfig } from '../../domain/services/relationship-movements.config';
|
|
28
|
+
import { CbmNotificationService } from '../../remotes/services.remote';
|
|
29
|
+
import { ECollectionNames } from '../../types/collection-names';
|
|
30
|
+
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
31
|
+
import { CbmRelationshipMovementsComponent } from '../relationship-movements/relationship-movements';
|
|
32
|
+
type TOperation = 'sales' | 'purchases' | 'both';
|
|
33
|
+
type TSaveOptions = 'new' | 'view' | 'close';
|
|
34
|
+
type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
35
|
+
interface IPagination {
|
|
36
|
+
page: number;
|
|
37
|
+
size: number;
|
|
38
|
+
totalPages: number | null;
|
|
39
|
+
totalRecords: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class CbmAddDownPayment {
|
|
42
|
+
private readonly financialBankRepository;
|
|
43
|
+
private readonly accountRepository;
|
|
44
|
+
private readonly router;
|
|
45
|
+
private readonly route;
|
|
46
|
+
private readonly destroyRef;
|
|
47
|
+
private readonly bankMovementsRepository;
|
|
48
|
+
private readonly relationshipMovements;
|
|
49
|
+
private readonly bankConciliationRepository;
|
|
50
|
+
private readonly viewContainerRef;
|
|
51
|
+
private readonly notificationService;
|
|
52
|
+
private readonly authService;
|
|
53
|
+
private readonly downPaymentRepository;
|
|
54
|
+
private readonly clientRepository;
|
|
55
|
+
private readonly sellerRepository;
|
|
56
|
+
private readonly bankRepository;
|
|
57
|
+
private readonly clientBranchRepository;
|
|
58
|
+
private readonly costCenterRepository;
|
|
59
|
+
private readonly paymentTermRepository;
|
|
60
|
+
constructor(financialBankRepository: CbmFinancialBankRepository, accountRepository: CbmAccountRepository, router: Router, route: ActivatedRoute, destroyRef: DestroyRef, bankMovementsRepository: CbmBankMovementsRepository, relationshipMovements: RelationshipMovementsConfig, bankConciliationRepository: BankConciliationDomainRepository, viewContainerRef: ViewContainerRef, notificationService: CbmNotificationService, authService: CbmAuthService, downPaymentRepository: DownPaymentDomainRepository, clientRepository: CbmClientDomainRepository, sellerRepository: CbmSellerDomainRepository, bankRepository: CbmBankRepository, clientBranchRepository: CbmClientBranchDomainRepository, costCenterRepository: CbmCostCenterRepository, paymentTermRepository: CbmPaymentTermRepository);
|
|
61
|
+
relationShipMovementsRef: import("@angular/core").Signal<CbmRelationshipMovementsComponent | undefined>;
|
|
62
|
+
modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
63
|
+
relationshipMovementsTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
64
|
+
downPaymentForm: FormGroup<{
|
|
65
|
+
client: FormControl<CbmClientModel.ListResponse.Item | null>;
|
|
66
|
+
seller: FormControl<CbmSellerModel.ListResponse.Data | null>;
|
|
67
|
+
costCenter: FormControl<CbmCostCenterModel.ListResponse.Data | null>;
|
|
68
|
+
clientBranch: FormControl<CbmClientBranchModel.ListResponse.Data | null>;
|
|
69
|
+
paymentTermOption: FormGroup<{
|
|
70
|
+
optionType: FormControl<TOperation | null>;
|
|
71
|
+
bank_checked: FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
72
|
+
number_cheque: FormControl<string | null>;
|
|
73
|
+
financialBank: FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
74
|
+
paymentTerm: FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
75
|
+
account: FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
76
|
+
depositDate: FormControl<string | null>;
|
|
77
|
+
batchCode: FormControl<string | null>;
|
|
78
|
+
operationNumber: FormControl<string | null>;
|
|
79
|
+
value: FormControl<string | null>;
|
|
80
|
+
}>;
|
|
81
|
+
commentary: FormControl<string | null>;
|
|
82
|
+
}>;
|
|
83
|
+
sellers: import("@angular/core").WritableSignal<CbmSellerModel.ListResponse.Data[]>;
|
|
84
|
+
banks: import("@angular/core").WritableSignal<CbmBankModel.ListResponse.Item[]>;
|
|
85
|
+
clients: import("@angular/core").WritableSignal<CbmClientModel.ListResponse.Item[]>;
|
|
86
|
+
costCenters: import("@angular/core").WritableSignal<CbmCostCenterModel.ListResponse.Data[]>;
|
|
87
|
+
clientBranches: import("@angular/core").WritableSignal<CbmClientBranchModel.ListResponse.Data[]>;
|
|
88
|
+
financialBanks: import("@angular/core").WritableSignal<CbmFinancialBankModel.ListResponse.Data[]>;
|
|
89
|
+
financialBanksOriginal: import("@angular/core").WritableSignal<CbmFinancialBankModel.ListResponse.Data[]>;
|
|
90
|
+
paymentTerms: import("@angular/core").WritableSignal<CbmPaymentTermModel.ListResponse.Data[]>;
|
|
91
|
+
accounts: import("@angular/core").WritableSignal<CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
92
|
+
clientsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
93
|
+
accountsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
94
|
+
banksPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
95
|
+
searchBankInput$: Subject<string>;
|
|
96
|
+
searchSellerInput$: Subject<string>;
|
|
97
|
+
searchClientInput$: Subject<string>;
|
|
98
|
+
searchCostCenterInput$: Subject<string>;
|
|
99
|
+
searchClientBranchInput$: Subject<string>;
|
|
100
|
+
searchFinancialBankInput$: Subject<string>;
|
|
101
|
+
searchPaymentTermInput$: Subject<string>;
|
|
102
|
+
searchAccountInput$: Subject<string>;
|
|
103
|
+
statusOfFetchSellers: import("@angular/core").WritableSignal<TStatus>;
|
|
104
|
+
statusOfFectchBanks: import("@angular/core").WritableSignal<TStatus>;
|
|
105
|
+
statusOfSaveDownPayment: import("@angular/core").WritableSignal<TStatus>;
|
|
106
|
+
statusOfFectchClients: import("@angular/core").WritableSignal<TStatus>;
|
|
107
|
+
statusOfFectchCostCenters: import("@angular/core").WritableSignal<TStatus>;
|
|
108
|
+
statusOfFectchClientBranches: import("@angular/core").WritableSignal<TStatus>;
|
|
109
|
+
statusOfFectchFinancialBanks: import("@angular/core").WritableSignal<TStatus>;
|
|
110
|
+
statusOfFectchPaymentTerms: import("@angular/core").WritableSignal<TStatus>;
|
|
111
|
+
statusOfFectchAccounts: import("@angular/core").WritableSignal<TStatus>;
|
|
112
|
+
statusOfOperationNumber: import("@angular/core").WritableSignal<TStatus>;
|
|
113
|
+
now: Date;
|
|
114
|
+
relationshioMovementsMethods: Partial<Record<ECollectionNames, import("@cbm-common/cbm-types").CbmRelationShipMovementsModel.IConfigMethods>>;
|
|
115
|
+
isRelationshioMovementsModalShown: import("@angular/core").WritableSignal<boolean>;
|
|
116
|
+
hasRelationshipMovements: import("@angular/core").WritableSignal<boolean>;
|
|
117
|
+
saveOption: import("@angular/core").WritableSignal<TSaveOptions | null>;
|
|
118
|
+
isModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
119
|
+
date: import("@angular/core").WritableSignal<number>;
|
|
120
|
+
configFinancialBank: {
|
|
121
|
+
[key: string]: {
|
|
122
|
+
label: string;
|
|
123
|
+
placeholder: string;
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
formDirty: () => boolean;
|
|
128
|
+
disableGuard: boolean;
|
|
129
|
+
ngOnInit(): void;
|
|
130
|
+
get clientControl(): FormControl<CbmClientModel.ListResponse.Item | null>;
|
|
131
|
+
get sellerControl(): FormControl<CbmSellerModel.ListResponse.Data | null>;
|
|
132
|
+
get costCenterControl(): FormControl<CbmCostCenterModel.ListResponse.Data | null>;
|
|
133
|
+
get clientBranchControl(): FormControl<CbmClientBranchModel.ListResponse.Data | null>;
|
|
134
|
+
get paymentTermOptionForm(): FormGroup<{
|
|
135
|
+
optionType: FormControl<TOperation | null>;
|
|
136
|
+
bank_checked: FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
137
|
+
number_cheque: FormControl<string | null>;
|
|
138
|
+
financialBank: FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
139
|
+
paymentTerm: FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
140
|
+
account: FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
141
|
+
depositDate: FormControl<string | null>;
|
|
142
|
+
batchCode: FormControl<string | null>;
|
|
143
|
+
operationNumber: FormControl<string | null>;
|
|
144
|
+
value: FormControl<string | null>;
|
|
145
|
+
}>;
|
|
146
|
+
get bankCheckedControl(): FormControl<CbmBankModel.ListResponse.Item | null>;
|
|
147
|
+
get numberChequeControl(): FormControl<string | null>;
|
|
148
|
+
get financialBankControl(): FormControl<CbmFinancialBankModel.ListResponse.Data | null>;
|
|
149
|
+
get paymentTermControl(): FormControl<CbmPaymentTermModel.ListResponse.Data | null>;
|
|
150
|
+
get accountControl(): FormControl<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
151
|
+
get batchCodeControl(): FormControl<string | null>;
|
|
152
|
+
get depositDateControl(): FormControl<string | null>;
|
|
153
|
+
get operationNumberControl(): FormControl<string | null>;
|
|
154
|
+
get valueControl(): FormControl<string | null>;
|
|
155
|
+
compareWithId(a: {
|
|
156
|
+
_id: string;
|
|
157
|
+
}, b: {
|
|
158
|
+
_id: string;
|
|
159
|
+
}): boolean;
|
|
160
|
+
private resetControls;
|
|
161
|
+
private updateControlsBasedOnPaymentTerm;
|
|
162
|
+
updateFinancialsBank(value: any): void;
|
|
163
|
+
handleCode01(): void;
|
|
164
|
+
handleCode02(): void;
|
|
165
|
+
handleCode03(): void;
|
|
166
|
+
handleCode04(): void;
|
|
167
|
+
handleCode05(): void;
|
|
168
|
+
handleCode06(): void;
|
|
169
|
+
handleDefaultCode(): void;
|
|
170
|
+
validateFormDownPayment(saveOption: TSaveOptions): Promise<void>;
|
|
171
|
+
saveDownPayment(callback: (newDownPaymentId: string) => void): void;
|
|
172
|
+
addDownPaymentAndNew(): void;
|
|
173
|
+
addDownPaymentAndView(): void;
|
|
174
|
+
addDownPaymentAndClose(): void;
|
|
175
|
+
fetchClients(searchText?: string): void;
|
|
176
|
+
fetchSellers(searchText?: string): void;
|
|
177
|
+
fetchAccounts(searchText?: string): void;
|
|
178
|
+
fetchBanks(searchText?: string): void;
|
|
179
|
+
fetchClientBranch(searchText?: string): void;
|
|
180
|
+
fetchCostCenters(searchText?: string): void;
|
|
181
|
+
fetchFinancialBanks(searchText?: string): void;
|
|
182
|
+
fetchPaymentTerms(searchText?: string): void;
|
|
183
|
+
openModal(): void;
|
|
184
|
+
onModalConfirm(): void;
|
|
185
|
+
onModalCancel(): void;
|
|
186
|
+
validateOperation(params: CbmBankMovementsModel.ValidationOperationParams): void;
|
|
187
|
+
openRelationShipMovementsModal(): void;
|
|
188
|
+
closeRelationModal(): void;
|
|
189
|
+
findAccountingMovements(): Promise<IBankConciliation.FindAccountingMovementsResponse | undefined>;
|
|
190
|
+
redirectTo(data: {
|
|
191
|
+
collection_origin_id: string;
|
|
192
|
+
collection_origin_name: string;
|
|
193
|
+
event_module: string;
|
|
194
|
+
}): void;
|
|
195
|
+
}
|
|
196
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { IBankConciliation } from '../../domain/models/bank-conciliation.domain.model';
|
|
4
|
+
export declare class RelationshipBankConciliationAlertComponent implements AfterViewInit, OnDestroy {
|
|
5
|
+
private readonly router;
|
|
6
|
+
constructor(router: Router);
|
|
7
|
+
data: import("@angular/core").InputSignal<IBankConciliation.FindAccountingMovementsResponse.Data>;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
private cleanupEventListeners;
|
|
11
|
+
private redirectTo;
|
|
12
|
+
}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
export declare namespace IBankConciliation {
|
|
2
|
+
type StatusType = 'pending' | 'in_process' | 'liquidated';
|
|
3
|
+
interface ListRequest {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
date_end?: number;
|
|
7
|
+
date_begin?: number;
|
|
8
|
+
document_number?: string;
|
|
9
|
+
deleted?: boolean;
|
|
10
|
+
bank_id?: string;
|
|
11
|
+
status?: `${StatusType}`;
|
|
12
|
+
}
|
|
13
|
+
interface ListResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
pageNum: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
pages: number;
|
|
18
|
+
total: number;
|
|
19
|
+
items: ListResponse.Item[];
|
|
20
|
+
}
|
|
21
|
+
namespace ListResponse {
|
|
22
|
+
interface Item {
|
|
23
|
+
_id: string;
|
|
24
|
+
company_id: string;
|
|
25
|
+
company_NIF: string;
|
|
26
|
+
company_address: string;
|
|
27
|
+
company_trade_name: string;
|
|
28
|
+
company_business_name: string;
|
|
29
|
+
country_id: string;
|
|
30
|
+
country_code: string;
|
|
31
|
+
country_name: string;
|
|
32
|
+
country_short_name: string;
|
|
33
|
+
period_id: string;
|
|
34
|
+
period_year: string;
|
|
35
|
+
date_begin: number;
|
|
36
|
+
date_end: number;
|
|
37
|
+
document_nomenclature: string;
|
|
38
|
+
document_number: string;
|
|
39
|
+
bank_id: string;
|
|
40
|
+
bank_name: string;
|
|
41
|
+
bank_account_number: string;
|
|
42
|
+
status: string;
|
|
43
|
+
pending_balance: number;
|
|
44
|
+
conciliation_balance: number;
|
|
45
|
+
accounting_balance: number;
|
|
46
|
+
difference: number;
|
|
47
|
+
pending_balance_former: number;
|
|
48
|
+
conciliation_balance_former: number;
|
|
49
|
+
accounting_balance_former: number;
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
user_id: string;
|
|
52
|
+
created_user: string;
|
|
53
|
+
deleted_at: number;
|
|
54
|
+
created_at: number;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
interface SaveBody {
|
|
58
|
+
bank_id: string;
|
|
59
|
+
bank_name: string;
|
|
60
|
+
bank_account_number: string;
|
|
61
|
+
date_begin: number;
|
|
62
|
+
date_end: number;
|
|
63
|
+
}
|
|
64
|
+
interface ConciliatePendingMovementsBody {
|
|
65
|
+
data: ConciliatePendingMovementsBody.Data[];
|
|
66
|
+
}
|
|
67
|
+
namespace ConciliatePendingMovementsBody {
|
|
68
|
+
interface Data {
|
|
69
|
+
bank_conciliation_id: string;
|
|
70
|
+
seat_id: string;
|
|
71
|
+
seat_detail_id: string;
|
|
72
|
+
seat_detail_document_number: string;
|
|
73
|
+
seat_date: number;
|
|
74
|
+
seat_detail_type: string;
|
|
75
|
+
seat_detail_operation_number: string;
|
|
76
|
+
seat_detail_value: number;
|
|
77
|
+
seat_origin_document: string;
|
|
78
|
+
seat_origin_document_number: string;
|
|
79
|
+
seat_description: string;
|
|
80
|
+
seat_collection_origin_id: string;
|
|
81
|
+
seat_collection_origin_name: string;
|
|
82
|
+
bank_conciliation_former_id?: string;
|
|
83
|
+
bank_conciliation_document_number_former?: string;
|
|
84
|
+
bank_conciliation_date_former?: number;
|
|
85
|
+
type_conciliation: string;
|
|
86
|
+
upload_id?: string;
|
|
87
|
+
upload_detail_id?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
interface ConciliateMovementsWithFileBody {
|
|
91
|
+
data: ConciliateMovementsWithFileBody.Data[];
|
|
92
|
+
}
|
|
93
|
+
namespace ConciliateMovementsWithFileBody {
|
|
94
|
+
interface Data {
|
|
95
|
+
_id: string;
|
|
96
|
+
bank_conciliation_id: string;
|
|
97
|
+
seat_id: string;
|
|
98
|
+
seat_detail_id: string;
|
|
99
|
+
seat_detail_document_number: string;
|
|
100
|
+
seat_date: number;
|
|
101
|
+
seat_detail_type: string;
|
|
102
|
+
seat_detail_operation_number: string;
|
|
103
|
+
seat_detail_value: number;
|
|
104
|
+
seat_origin_document: string;
|
|
105
|
+
seat_origin_document_number: string;
|
|
106
|
+
seat_description: string;
|
|
107
|
+
seat_collection_origin_id: string;
|
|
108
|
+
seat_collection_origin_name: string;
|
|
109
|
+
bank_conciliation_former_id?: string;
|
|
110
|
+
bank_conciliation_document_number_former?: string;
|
|
111
|
+
bank_conciliation_date_former?: number;
|
|
112
|
+
upload_id?: string;
|
|
113
|
+
upload_detail_id?: string;
|
|
114
|
+
type_conciliation: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
interface UpdateConciliationValuesBody {
|
|
118
|
+
pending_balance?: number;
|
|
119
|
+
conciliation_balance?: number;
|
|
120
|
+
accounting_balance?: number;
|
|
121
|
+
difference?: number;
|
|
122
|
+
close_conciliation: boolean;
|
|
123
|
+
}
|
|
124
|
+
interface GetOneParams {
|
|
125
|
+
sizeExcel: number;
|
|
126
|
+
pageExcel: number;
|
|
127
|
+
sizePen: number;
|
|
128
|
+
pagePen: number;
|
|
129
|
+
size: number;
|
|
130
|
+
page: number;
|
|
131
|
+
id: string;
|
|
132
|
+
}
|
|
133
|
+
interface GetOneResponse {
|
|
134
|
+
success: boolean;
|
|
135
|
+
data: GetOneResponse.Data;
|
|
136
|
+
}
|
|
137
|
+
namespace GetOneResponse {
|
|
138
|
+
interface Data {
|
|
139
|
+
_id: string;
|
|
140
|
+
company_id: string;
|
|
141
|
+
company_NIF: string;
|
|
142
|
+
company_address: string;
|
|
143
|
+
company_trade_name: string;
|
|
144
|
+
company_business_name: string;
|
|
145
|
+
country_id: string;
|
|
146
|
+
country_code: string;
|
|
147
|
+
country_name: string;
|
|
148
|
+
country_short_name: string;
|
|
149
|
+
period_id: string;
|
|
150
|
+
period_year: string;
|
|
151
|
+
date_begin: number;
|
|
152
|
+
date_end: number;
|
|
153
|
+
document_nomenclature: string;
|
|
154
|
+
document_number: string;
|
|
155
|
+
bank_id: string;
|
|
156
|
+
bank_name: string;
|
|
157
|
+
bank_account_number: string;
|
|
158
|
+
status: string;
|
|
159
|
+
pending_balance: number;
|
|
160
|
+
conciliation_balance: number;
|
|
161
|
+
accounting_balance: number;
|
|
162
|
+
difference: number;
|
|
163
|
+
pending_balance_former: number;
|
|
164
|
+
conciliation_balance_former: number;
|
|
165
|
+
accounting_balance_former: number;
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
user_id: string;
|
|
168
|
+
created_user: string;
|
|
169
|
+
deleted_at: number;
|
|
170
|
+
created_at: number;
|
|
171
|
+
bank_conciliation_detail?: Data.Detail;
|
|
172
|
+
bank_conciliation_detail_pending?: Data.Pending;
|
|
173
|
+
bank_conciliation_import_data?: Data.Import;
|
|
174
|
+
deleted?: boolean;
|
|
175
|
+
deleted_user?: string;
|
|
176
|
+
}
|
|
177
|
+
namespace Data {
|
|
178
|
+
interface Detail {
|
|
179
|
+
items: Detail.Item[];
|
|
180
|
+
pageNum: number;
|
|
181
|
+
pageSize: number;
|
|
182
|
+
total: number;
|
|
183
|
+
pages: number;
|
|
184
|
+
totalAmount?: number;
|
|
185
|
+
}
|
|
186
|
+
namespace Detail {
|
|
187
|
+
interface Item {
|
|
188
|
+
_id: string;
|
|
189
|
+
company_id: string;
|
|
190
|
+
country_id: string;
|
|
191
|
+
bank_conciliation_id: string;
|
|
192
|
+
seat_id: string;
|
|
193
|
+
seat_detail_id: string;
|
|
194
|
+
seat_detail_document_number: string;
|
|
195
|
+
seat_date: number;
|
|
196
|
+
seat_detail_type: string;
|
|
197
|
+
seat_detail_operation_number: string;
|
|
198
|
+
seat_detail_value: number;
|
|
199
|
+
seat_origin_document: string;
|
|
200
|
+
seat_origin_document_number: string;
|
|
201
|
+
seat_description: string;
|
|
202
|
+
seat_collection_origin_id: string;
|
|
203
|
+
seat_collection_origin_name: string;
|
|
204
|
+
seat_event_module: string;
|
|
205
|
+
has_upload_relationship: boolean;
|
|
206
|
+
type_conciliation: string;
|
|
207
|
+
motion_conciliation: boolean;
|
|
208
|
+
created_at: number;
|
|
209
|
+
created_user: string;
|
|
210
|
+
upload_id?: string;
|
|
211
|
+
upload_detail_id?: string;
|
|
212
|
+
bank_conciliation_former_id?: string;
|
|
213
|
+
bank_conciliation_document_number_former?: string;
|
|
214
|
+
bank_conciliation_date_former?: number;
|
|
215
|
+
relationship_conciliation_detail_and_import_detail: Item.ImportDetail[];
|
|
216
|
+
}
|
|
217
|
+
namespace Item {
|
|
218
|
+
interface ImportDetail {
|
|
219
|
+
_id: string;
|
|
220
|
+
company_id: string;
|
|
221
|
+
country_id: string;
|
|
222
|
+
upload_import_id: string;
|
|
223
|
+
date: number;
|
|
224
|
+
operation_number: string;
|
|
225
|
+
value: number;
|
|
226
|
+
type: string;
|
|
227
|
+
concept: string;
|
|
228
|
+
status: boolean;
|
|
229
|
+
created_user: string;
|
|
230
|
+
created_at: number;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
interface Import {
|
|
235
|
+
items: Import.Item[];
|
|
236
|
+
pageNum: number;
|
|
237
|
+
pageSize: number;
|
|
238
|
+
total: number;
|
|
239
|
+
pages: number;
|
|
240
|
+
totalAmount?: number;
|
|
241
|
+
}
|
|
242
|
+
namespace Import {
|
|
243
|
+
interface Item {
|
|
244
|
+
_id: string;
|
|
245
|
+
company_id: string;
|
|
246
|
+
country_id: string;
|
|
247
|
+
upload_import_id: string;
|
|
248
|
+
date: number;
|
|
249
|
+
operation_number: string;
|
|
250
|
+
value: number;
|
|
251
|
+
type: string;
|
|
252
|
+
concept: string;
|
|
253
|
+
status: boolean;
|
|
254
|
+
created_user: string;
|
|
255
|
+
created_at: number;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
interface Pending {
|
|
259
|
+
items: Pending.Item[];
|
|
260
|
+
pageNum: number;
|
|
261
|
+
pageSize: number;
|
|
262
|
+
total: number;
|
|
263
|
+
pages: number;
|
|
264
|
+
totalAmount?: number;
|
|
265
|
+
}
|
|
266
|
+
namespace Pending {
|
|
267
|
+
interface Item {
|
|
268
|
+
_id: string;
|
|
269
|
+
company_id: string;
|
|
270
|
+
country_id: string;
|
|
271
|
+
bank_conciliation_id: string;
|
|
272
|
+
seat_id: string;
|
|
273
|
+
seat_detail_id: string;
|
|
274
|
+
seat_detail_document_number: string;
|
|
275
|
+
seat_date: number;
|
|
276
|
+
seat_detail_type: string;
|
|
277
|
+
seat_detail_operation_number: string;
|
|
278
|
+
seat_detail_value: number;
|
|
279
|
+
seat_origin_document: string;
|
|
280
|
+
seat_origin_document_number: string;
|
|
281
|
+
seat_description: string;
|
|
282
|
+
seat_collection_origin_id: string;
|
|
283
|
+
seat_collection_origin_name: string;
|
|
284
|
+
seat_event_module: string;
|
|
285
|
+
has_upload_relationship: boolean;
|
|
286
|
+
type_conciliation: string;
|
|
287
|
+
motion_conciliation: boolean;
|
|
288
|
+
created_at: number;
|
|
289
|
+
created_user: string;
|
|
290
|
+
upload_id?: string;
|
|
291
|
+
upload_detail_id?: string;
|
|
292
|
+
bank_conciliation_former_id?: string;
|
|
293
|
+
bank_conciliation_document_number_former?: string;
|
|
294
|
+
bank_conciliation_date_former?: number;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
interface FindAllMovementsPendingRequest {
|
|
300
|
+
id: string;
|
|
301
|
+
close_conciliation: boolean;
|
|
302
|
+
}
|
|
303
|
+
interface FindAllMovementsPendingResponse {
|
|
304
|
+
success: boolean;
|
|
305
|
+
responseInsert: FindAllMovementsPendingResponse.Data[];
|
|
306
|
+
message: string;
|
|
307
|
+
}
|
|
308
|
+
namespace FindAllMovementsPendingResponse {
|
|
309
|
+
interface Data {
|
|
310
|
+
_id: string;
|
|
311
|
+
seat_id: string;
|
|
312
|
+
created_at: number;
|
|
313
|
+
company_id: string;
|
|
314
|
+
country_id: string;
|
|
315
|
+
bank_conciliation_id: string;
|
|
316
|
+
seat_detail_id: string;
|
|
317
|
+
seat_detail_document_number: string;
|
|
318
|
+
seat_date: number;
|
|
319
|
+
seat_detail_type: string;
|
|
320
|
+
seat_detail_operation_number: string;
|
|
321
|
+
seat_detail_value: number;
|
|
322
|
+
seat_origin_document: string;
|
|
323
|
+
seat_origin_document_number: string;
|
|
324
|
+
seat_description: string;
|
|
325
|
+
seat_collection_origin_id: string;
|
|
326
|
+
seat_collection_origin_name: string;
|
|
327
|
+
created_user: string;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
interface FindAccountingMovementsRequest {
|
|
331
|
+
date_validation: number;
|
|
332
|
+
bank_id: string;
|
|
333
|
+
}
|
|
334
|
+
interface FindAccountingMovementsResponse {
|
|
335
|
+
success: boolean;
|
|
336
|
+
data?: FindAccountingMovementsResponse.Data;
|
|
337
|
+
message: string;
|
|
338
|
+
}
|
|
339
|
+
namespace FindAccountingMovementsResponse {
|
|
340
|
+
interface Data {
|
|
341
|
+
_id: string;
|
|
342
|
+
company_id: string;
|
|
343
|
+
company_branch_id: string;
|
|
344
|
+
country_id: string;
|
|
345
|
+
bank_conciliation_id: string;
|
|
346
|
+
seat_id: string;
|
|
347
|
+
seat_detail_id: string;
|
|
348
|
+
seat_detail_document_number: string;
|
|
349
|
+
seat_date: number;
|
|
350
|
+
seat_detail_type: string;
|
|
351
|
+
seat_detail_operation_number: string;
|
|
352
|
+
seat_detail_value: number;
|
|
353
|
+
seat_origin_document: string;
|
|
354
|
+
seat_origin_document_number: string;
|
|
355
|
+
seat_description: string;
|
|
356
|
+
seat_collection_origin_id: string;
|
|
357
|
+
seat_collection_origin_name: string;
|
|
358
|
+
has_upload_relationship: boolean;
|
|
359
|
+
type_conciliation: string;
|
|
360
|
+
motion_conciliation: boolean;
|
|
361
|
+
created_at: number;
|
|
362
|
+
created_user: string;
|
|
363
|
+
updated_at: number;
|
|
364
|
+
updated_user: string;
|
|
365
|
+
company_NIF: string;
|
|
366
|
+
company_address: string;
|
|
367
|
+
company_trade_name: string;
|
|
368
|
+
company_business_name: string;
|
|
369
|
+
company_branch_identification_number: string;
|
|
370
|
+
company_branch_trade_name: string;
|
|
371
|
+
company_branch_address: string;
|
|
372
|
+
company_branch_email: string;
|
|
373
|
+
company_branch_cellphone: string;
|
|
374
|
+
company_branch_phone: string;
|
|
375
|
+
company_branch_logo: string;
|
|
376
|
+
country_code: string;
|
|
377
|
+
country_name: string;
|
|
378
|
+
country_short_name: string;
|
|
379
|
+
period_id: string;
|
|
380
|
+
period_year: string;
|
|
381
|
+
date_begin: number;
|
|
382
|
+
date_end: number;
|
|
383
|
+
document_nomenclature: string;
|
|
384
|
+
document_number: string;
|
|
385
|
+
bank_id: string;
|
|
386
|
+
bank_name: string;
|
|
387
|
+
bank_account_number: string;
|
|
388
|
+
status: string;
|
|
389
|
+
pending_balance: number;
|
|
390
|
+
conciliation_balance: number;
|
|
391
|
+
accounting_balance: number;
|
|
392
|
+
difference: number;
|
|
393
|
+
pending_balance_former: number;
|
|
394
|
+
conciliation_balance_former: number;
|
|
395
|
+
accounting_balance_former: number;
|
|
396
|
+
deleted: boolean;
|
|
397
|
+
enabled: boolean;
|
|
398
|
+
user_id: string;
|
|
399
|
+
deleted_at: number;
|
|
400
|
+
bank_coniliation_document_nomenclature: string;
|
|
401
|
+
bank_coniliation_document_number: string;
|
|
402
|
+
bank_coniliation_created_at: number;
|
|
403
|
+
bank_coniliation_status: string;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|