@cbm-common/cbm-types 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/domain/models/print-settings.domain.model.d.ts +110 -110
- package/lib/domain/models/retention-sales.domain.model.d.ts +404 -0
- package/lib/domain/models/reverse-movements.domain.model.d.ts +9 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +70 -0
- package/lib/domain/models/signature-settings.domain.model.d.ts +68 -68
- package/lib/domain/models/transactions-purchases.domain.model.d.ts +170 -0
- package/lib/domain/repositories/print-settings.domain.repository.d.ts +11 -11
- package/lib/domain/repositories/retention-sales.domain.repository.d.ts +19 -0
- package/lib/domain/repositories/reverse-movements.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/signature-settings.domain.repository.d.ts +14 -14
- package/lib/domain/repositories/transactions-purchase.domain.repository.d.ts +9 -0
- package/lib/environments/environment.d.ts +1 -2
- package/lib/infrastructure/repositories/print-settings.infrastructure.repository.d.ts +8 -8
- package/lib/infrastructure/repositories/retention-sales.infrastructure.repository.d.ts +16 -0
- package/lib/infrastructure/repositories/reverse-movements.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/signature-settings.infrastructure.repository.d.ts +11 -11
- package/lib/infrastructure/repositories/transactions-purchase.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/services/print-settings.infrastructure.service.d.ts +13 -13
- package/lib/infrastructure/services/retention-sales.infrastructure.service.d.ts +20 -0
- package/lib/infrastructure/services/reverse-movements.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- package/lib/infrastructure/services/signature-settings.infrastructure.service.d.ts +16 -16
- package/lib/infrastructure/services/transactions-purchase.infrastructure.service.d.ts +10 -0
- package/lib/remotes/repositories/print-settings.repository.d.ts +3 -3
- package/lib/remotes/repositories/retention-sales.repository.d.ts +3 -0
- package/lib/remotes/repositories/reverse-movements.repository.d.ts +3 -0
- package/lib/remotes/repositories/sales-pending-document.repository.d.ts +3 -0
- package/lib/remotes/repositories/signature-settings.repository.d.ts +3 -3
- package/lib/remotes/repositories/transactions-purchase.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +68 -64
- package/package.json +1 -1
- package/public-api.d.ts +17 -2
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
export declare namespace CbmPrintSettingsModel {
|
|
2
|
-
interface ListParams {
|
|
3
|
-
event_module: string;
|
|
4
|
-
collection_name?: string;
|
|
5
|
-
}
|
|
6
|
-
interface ListResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
data: ListResponse.Data[];
|
|
9
|
-
}
|
|
10
|
-
namespace ListResponse {
|
|
11
|
-
interface Data {
|
|
12
|
-
_id: string;
|
|
13
|
-
company_id: string;
|
|
14
|
-
event_module: string;
|
|
15
|
-
collection_name: string;
|
|
16
|
-
description_module: string;
|
|
17
|
-
default_name: string;
|
|
18
|
-
code: string;
|
|
19
|
-
order: number;
|
|
20
|
-
print_a4: boolean;
|
|
21
|
-
print_logo_a4: boolean;
|
|
22
|
-
print_ticket: boolean;
|
|
23
|
-
print_logo_ticket: boolean;
|
|
24
|
-
accounting: boolean;
|
|
25
|
-
signature: boolean;
|
|
26
|
-
signature_data: Signature[];
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
deleted: boolean;
|
|
29
|
-
createdAt: number;
|
|
30
|
-
createdUser: string;
|
|
31
|
-
signature_ride: boolean;
|
|
32
|
-
signature_data_ride: SignatureRide[];
|
|
33
|
-
}
|
|
34
|
-
interface Signature {
|
|
35
|
-
_id: string;
|
|
36
|
-
code: string;
|
|
37
|
-
description: string;
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface SignatureRide {
|
|
41
|
-
_id: string;
|
|
42
|
-
code: string;
|
|
43
|
-
description: string;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
interface SaveBody {
|
|
48
|
-
event_module: string;
|
|
49
|
-
collection_name: string;
|
|
50
|
-
description_module: string;
|
|
51
|
-
default_name: string;
|
|
52
|
-
code: string;
|
|
53
|
-
order: number;
|
|
54
|
-
print_a4: boolean;
|
|
55
|
-
print_logo_a4: boolean;
|
|
56
|
-
print_ticket: boolean;
|
|
57
|
-
print_logo_ticket: boolean;
|
|
58
|
-
accounting: boolean;
|
|
59
|
-
signature: boolean;
|
|
60
|
-
signature_data: SaveBody.Signature[];
|
|
61
|
-
signature_ride?: boolean;
|
|
62
|
-
signature_data_ride?: SaveBody.SignatureRide[];
|
|
63
|
-
}
|
|
64
|
-
namespace SaveBody {
|
|
65
|
-
interface Signature {
|
|
66
|
-
code: string;
|
|
67
|
-
description: string;
|
|
68
|
-
enabled: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface SignatureRide {
|
|
71
|
-
code: string;
|
|
72
|
-
description: string;
|
|
73
|
-
enabled: boolean;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
interface UpdateBody {
|
|
77
|
-
event_module: string;
|
|
78
|
-
collection_name: string;
|
|
79
|
-
description_module: string;
|
|
80
|
-
default_name: string;
|
|
81
|
-
code: string;
|
|
82
|
-
order: number;
|
|
83
|
-
print_a4: boolean;
|
|
84
|
-
print_logo_a4: boolean;
|
|
85
|
-
print_ticket: boolean;
|
|
86
|
-
print_logo_ticket: boolean;
|
|
87
|
-
accounting: boolean;
|
|
88
|
-
signature: boolean;
|
|
89
|
-
signature_data: UpdateBody.Signature[];
|
|
90
|
-
signature_ride?: boolean;
|
|
91
|
-
signature_data_ride?: UpdateBody.SignatureRide[];
|
|
92
|
-
}
|
|
93
|
-
namespace UpdateBody {
|
|
94
|
-
interface Signature {
|
|
95
|
-
code: string;
|
|
96
|
-
description: string;
|
|
97
|
-
enabled: boolean;
|
|
98
|
-
}
|
|
99
|
-
interface SignatureRide {
|
|
100
|
-
code: string;
|
|
101
|
-
description: string;
|
|
102
|
-
enabled: boolean;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
interface ConfirmResponse {
|
|
106
|
-
success: boolean;
|
|
107
|
-
message: string;
|
|
108
|
-
data?: any;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
export declare namespace CbmPrintSettingsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
event_module: string;
|
|
4
|
+
collection_name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
event_module: string;
|
|
15
|
+
collection_name: string;
|
|
16
|
+
description_module: string;
|
|
17
|
+
default_name: string;
|
|
18
|
+
code: string;
|
|
19
|
+
order: number;
|
|
20
|
+
print_a4: boolean;
|
|
21
|
+
print_logo_a4: boolean;
|
|
22
|
+
print_ticket: boolean;
|
|
23
|
+
print_logo_ticket: boolean;
|
|
24
|
+
accounting: boolean;
|
|
25
|
+
signature: boolean;
|
|
26
|
+
signature_data: Signature[];
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
deleted: boolean;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
createdUser: string;
|
|
31
|
+
signature_ride: boolean;
|
|
32
|
+
signature_data_ride: SignatureRide[];
|
|
33
|
+
}
|
|
34
|
+
interface Signature {
|
|
35
|
+
_id: string;
|
|
36
|
+
code: string;
|
|
37
|
+
description: string;
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface SignatureRide {
|
|
41
|
+
_id: string;
|
|
42
|
+
code: string;
|
|
43
|
+
description: string;
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
interface SaveBody {
|
|
48
|
+
event_module: string;
|
|
49
|
+
collection_name: string;
|
|
50
|
+
description_module: string;
|
|
51
|
+
default_name: string;
|
|
52
|
+
code: string;
|
|
53
|
+
order: number;
|
|
54
|
+
print_a4: boolean;
|
|
55
|
+
print_logo_a4: boolean;
|
|
56
|
+
print_ticket: boolean;
|
|
57
|
+
print_logo_ticket: boolean;
|
|
58
|
+
accounting: boolean;
|
|
59
|
+
signature: boolean;
|
|
60
|
+
signature_data: SaveBody.Signature[];
|
|
61
|
+
signature_ride?: boolean;
|
|
62
|
+
signature_data_ride?: SaveBody.SignatureRide[];
|
|
63
|
+
}
|
|
64
|
+
namespace SaveBody {
|
|
65
|
+
interface Signature {
|
|
66
|
+
code: string;
|
|
67
|
+
description: string;
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
}
|
|
70
|
+
interface SignatureRide {
|
|
71
|
+
code: string;
|
|
72
|
+
description: string;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
interface UpdateBody {
|
|
77
|
+
event_module: string;
|
|
78
|
+
collection_name: string;
|
|
79
|
+
description_module: string;
|
|
80
|
+
default_name: string;
|
|
81
|
+
code: string;
|
|
82
|
+
order: number;
|
|
83
|
+
print_a4: boolean;
|
|
84
|
+
print_logo_a4: boolean;
|
|
85
|
+
print_ticket: boolean;
|
|
86
|
+
print_logo_ticket: boolean;
|
|
87
|
+
accounting: boolean;
|
|
88
|
+
signature: boolean;
|
|
89
|
+
signature_data: UpdateBody.Signature[];
|
|
90
|
+
signature_ride?: boolean;
|
|
91
|
+
signature_data_ride?: UpdateBody.SignatureRide[];
|
|
92
|
+
}
|
|
93
|
+
namespace UpdateBody {
|
|
94
|
+
interface Signature {
|
|
95
|
+
code: string;
|
|
96
|
+
description: string;
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
}
|
|
99
|
+
interface SignatureRide {
|
|
100
|
+
code: string;
|
|
101
|
+
description: string;
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
interface ConfirmResponse {
|
|
106
|
+
success: boolean;
|
|
107
|
+
message: string;
|
|
108
|
+
data?: any;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
export declare namespace CbmRetentionSalesModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
document_retention?: string;
|
|
6
|
+
company_branch_id?: string;
|
|
7
|
+
user_id?: string;
|
|
8
|
+
document_number?: string;
|
|
9
|
+
date_end?: number;
|
|
10
|
+
date_begin?: number;
|
|
11
|
+
client_id?: string;
|
|
12
|
+
retention_type?: string;
|
|
13
|
+
retention_balance?: boolean;
|
|
14
|
+
reverse_status?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface ListResponse {
|
|
17
|
+
success: boolean;
|
|
18
|
+
pageNum: number;
|
|
19
|
+
pageSize: number;
|
|
20
|
+
pages: number;
|
|
21
|
+
total: number;
|
|
22
|
+
items: ListResponse.Item[];
|
|
23
|
+
}
|
|
24
|
+
namespace ListResponse {
|
|
25
|
+
interface Item {
|
|
26
|
+
_id: string;
|
|
27
|
+
company_id: string;
|
|
28
|
+
company_branch_id: string;
|
|
29
|
+
client_id: string;
|
|
30
|
+
client_category_id: string;
|
|
31
|
+
document_nomenclature: string;
|
|
32
|
+
document_number: string;
|
|
33
|
+
document_sequence: string;
|
|
34
|
+
document_date: number;
|
|
35
|
+
account_date: number;
|
|
36
|
+
total: number;
|
|
37
|
+
type: string;
|
|
38
|
+
attached_invoice: boolean;
|
|
39
|
+
document_branch_identification_number: string;
|
|
40
|
+
document_emission_point_number: string;
|
|
41
|
+
document_authorization: string;
|
|
42
|
+
company_NIF: string;
|
|
43
|
+
company_trade_name: string;
|
|
44
|
+
company_business_name: string;
|
|
45
|
+
company_branch_identification_number: string;
|
|
46
|
+
company_branch_trade_name: string;
|
|
47
|
+
company_branch_logo: string;
|
|
48
|
+
company_branch_address: string;
|
|
49
|
+
company_branch_email: string;
|
|
50
|
+
company_branch_cellphone: string;
|
|
51
|
+
company_branch_phone: string;
|
|
52
|
+
client_document_number: string;
|
|
53
|
+
client_trade_name: string;
|
|
54
|
+
client_business_name: string;
|
|
55
|
+
client_phone_code: string;
|
|
56
|
+
client_address: string;
|
|
57
|
+
client_cellphone: string;
|
|
58
|
+
client_email: string;
|
|
59
|
+
client_province_id?: string;
|
|
60
|
+
client_canton_id?: string;
|
|
61
|
+
client_parish_id?: string;
|
|
62
|
+
client_province_code?: string;
|
|
63
|
+
client_province_name?: string;
|
|
64
|
+
client_canton_code?: string;
|
|
65
|
+
client_canton_name?: string;
|
|
66
|
+
client_parish_code?: string;
|
|
67
|
+
client_parish_name?: string;
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
user_id: string;
|
|
70
|
+
created_user: string;
|
|
71
|
+
reverse_status: boolean;
|
|
72
|
+
created_at: number;
|
|
73
|
+
reverse_at?: number;
|
|
74
|
+
reverse_reason?: string;
|
|
75
|
+
reverse_user?: string;
|
|
76
|
+
retention_invoice: Item.RetentionInvoice[];
|
|
77
|
+
checked?: boolean;
|
|
78
|
+
}
|
|
79
|
+
namespace Item {
|
|
80
|
+
interface RetentionInvoice {
|
|
81
|
+
_id: string;
|
|
82
|
+
retention_id: string;
|
|
83
|
+
client_branch_id?: string;
|
|
84
|
+
client_branch_code?: string;
|
|
85
|
+
client_branch_name?: string;
|
|
86
|
+
client_branch_address?: string;
|
|
87
|
+
client_branch_email?: string;
|
|
88
|
+
client_branch_cellphone?: string;
|
|
89
|
+
client_branch_phone?: string;
|
|
90
|
+
client_branch_phone_code?: string;
|
|
91
|
+
invoice_id: string;
|
|
92
|
+
cost_center_id: string;
|
|
93
|
+
invoice_branch_identification_number: string;
|
|
94
|
+
invoice_emission_point_number: string;
|
|
95
|
+
invoice_document_number: string;
|
|
96
|
+
retention_type: string;
|
|
97
|
+
total: number;
|
|
98
|
+
liquidated_value: number;
|
|
99
|
+
cash_liquidation: number;
|
|
100
|
+
document_liquidation: number;
|
|
101
|
+
balance: number;
|
|
102
|
+
reverse: number;
|
|
103
|
+
invoice_date: number;
|
|
104
|
+
created_user: string;
|
|
105
|
+
created_at: number;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
interface ListParamsRetentionForCard {
|
|
110
|
+
page: number;
|
|
111
|
+
size: number;
|
|
112
|
+
document_retention?: string;
|
|
113
|
+
company_branch_id?: string;
|
|
114
|
+
user_id?: string;
|
|
115
|
+
document_number?: string;
|
|
116
|
+
date_end?: number;
|
|
117
|
+
date_begin?: number;
|
|
118
|
+
client_id?: string;
|
|
119
|
+
}
|
|
120
|
+
interface ListResposeRetentionForCard {
|
|
121
|
+
success: boolean;
|
|
122
|
+
pageNum: number;
|
|
123
|
+
pageSize: number;
|
|
124
|
+
pages: number;
|
|
125
|
+
total: number;
|
|
126
|
+
items: ListResponseRetentionForCard.Item[];
|
|
127
|
+
}
|
|
128
|
+
namespace ListResponseRetentionForCard {
|
|
129
|
+
interface Item {
|
|
130
|
+
_id: string;
|
|
131
|
+
company_id: string;
|
|
132
|
+
company_branch_id: string;
|
|
133
|
+
client_id: string;
|
|
134
|
+
document_nomenclature: string;
|
|
135
|
+
document_number: string;
|
|
136
|
+
document_sequence: string;
|
|
137
|
+
type: string;
|
|
138
|
+
document_branch_identification_number: string;
|
|
139
|
+
document_emission_point_number: string;
|
|
140
|
+
client_document_number: string;
|
|
141
|
+
client_trade_name: string;
|
|
142
|
+
client_business_name: string;
|
|
143
|
+
client_province_id?: string;
|
|
144
|
+
client_canton_id?: string;
|
|
145
|
+
client_parish_id?: string;
|
|
146
|
+
client_province_code?: string;
|
|
147
|
+
client_province_name?: string;
|
|
148
|
+
client_canton_code?: string;
|
|
149
|
+
client_canton_name?: string;
|
|
150
|
+
client_parish_code?: string;
|
|
151
|
+
client_parish_name?: string;
|
|
152
|
+
user_id: string;
|
|
153
|
+
created_user: string;
|
|
154
|
+
reverse_status: boolean;
|
|
155
|
+
created_at: number;
|
|
156
|
+
retention_id: string;
|
|
157
|
+
cost_center_id: string;
|
|
158
|
+
retention_type: string;
|
|
159
|
+
total: number;
|
|
160
|
+
liquidated_value: number;
|
|
161
|
+
cash_liquidation: number;
|
|
162
|
+
document_liquidation: number;
|
|
163
|
+
balance: number;
|
|
164
|
+
reverse: number;
|
|
165
|
+
invoice_date: number;
|
|
166
|
+
card_settlement: number;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
interface GetOneResponse {
|
|
170
|
+
success: boolean;
|
|
171
|
+
data: GetOneResponse.Data;
|
|
172
|
+
}
|
|
173
|
+
namespace GetOneResponse {
|
|
174
|
+
interface Data {
|
|
175
|
+
_id?: string;
|
|
176
|
+
company_id?: string;
|
|
177
|
+
company_branch_id?: string;
|
|
178
|
+
client_id?: string;
|
|
179
|
+
client_category_id: string;
|
|
180
|
+
document_nomenclature?: string;
|
|
181
|
+
document_number?: string;
|
|
182
|
+
document_sequence?: string;
|
|
183
|
+
document_date?: number;
|
|
184
|
+
account_date?: number;
|
|
185
|
+
total_rent_base?: number;
|
|
186
|
+
total_rent_value?: number;
|
|
187
|
+
total_iva_base?: number;
|
|
188
|
+
total_iva_value?: number;
|
|
189
|
+
total?: number;
|
|
190
|
+
type?: string;
|
|
191
|
+
attached_invoice?: boolean;
|
|
192
|
+
document_branch_identification_number?: string;
|
|
193
|
+
document_emission_point_number?: string;
|
|
194
|
+
document_authorization?: string;
|
|
195
|
+
company_NIF?: string;
|
|
196
|
+
company_address?: string;
|
|
197
|
+
company_trade_name?: string;
|
|
198
|
+
company_business_name?: string;
|
|
199
|
+
company_branch_identification_number?: string;
|
|
200
|
+
company_branch_trade_name?: string;
|
|
201
|
+
company_branch_logo?: string;
|
|
202
|
+
company_branch_address?: string;
|
|
203
|
+
company_branch_email?: string;
|
|
204
|
+
company_branch_cellphone?: string;
|
|
205
|
+
company_branch_phone?: string;
|
|
206
|
+
client_document_number?: string;
|
|
207
|
+
client_trade_name?: string;
|
|
208
|
+
client_business_name?: string;
|
|
209
|
+
client_phone_code?: string;
|
|
210
|
+
client_address?: string;
|
|
211
|
+
client_cellphone?: string;
|
|
212
|
+
client_email?: string;
|
|
213
|
+
client_province_id?: string;
|
|
214
|
+
client_canton_id?: string;
|
|
215
|
+
client_parish_id?: string;
|
|
216
|
+
client_province_code?: string;
|
|
217
|
+
client_province_name?: string;
|
|
218
|
+
client_canton_code?: string;
|
|
219
|
+
client_canton_name?: string;
|
|
220
|
+
client_parish_code?: string;
|
|
221
|
+
client_parish_name?: string;
|
|
222
|
+
enabled?: boolean;
|
|
223
|
+
deleted?: boolean;
|
|
224
|
+
created_user?: string;
|
|
225
|
+
reverse_status?: boolean;
|
|
226
|
+
reverse_at?: number;
|
|
227
|
+
reverse_user?: string;
|
|
228
|
+
reverse_reason?: string;
|
|
229
|
+
created_at?: number;
|
|
230
|
+
commentary?: string;
|
|
231
|
+
retention_invoice?: Data.RetentionInvoice[];
|
|
232
|
+
}
|
|
233
|
+
namespace Data {
|
|
234
|
+
interface RetentionInvoice {
|
|
235
|
+
_id: string;
|
|
236
|
+
retention_id: string;
|
|
237
|
+
invoice_id: string;
|
|
238
|
+
client_branch_id?: string;
|
|
239
|
+
client_branch_code?: string;
|
|
240
|
+
client_branch_name?: string;
|
|
241
|
+
client_branch_address?: string;
|
|
242
|
+
client_branch_email?: string;
|
|
243
|
+
client_branch_cellphone?: string;
|
|
244
|
+
client_branch_phone?: string;
|
|
245
|
+
client_branch_phone_code?: string;
|
|
246
|
+
cost_center_id: string;
|
|
247
|
+
invoice_branch_identification_number: string;
|
|
248
|
+
invoice_emission_point_number: string;
|
|
249
|
+
invoice_document_number: string;
|
|
250
|
+
retention_type: string;
|
|
251
|
+
total: number;
|
|
252
|
+
liquidated_value: number;
|
|
253
|
+
cash_liquidation: number;
|
|
254
|
+
document_liquidation: number;
|
|
255
|
+
balance: number;
|
|
256
|
+
reverse: number;
|
|
257
|
+
invoice_date: number;
|
|
258
|
+
created_user: string;
|
|
259
|
+
created_at: number;
|
|
260
|
+
retention_invoice_detail: RetentionInvoice.Detail[];
|
|
261
|
+
}
|
|
262
|
+
namespace RetentionInvoice {
|
|
263
|
+
interface Detail {
|
|
264
|
+
_id: string;
|
|
265
|
+
retention_invoice_id: string;
|
|
266
|
+
type: string;
|
|
267
|
+
retention_settings_id: string;
|
|
268
|
+
retention_settings_code: string;
|
|
269
|
+
retention_settings_description: string;
|
|
270
|
+
rate: number;
|
|
271
|
+
base: number;
|
|
272
|
+
value: number;
|
|
273
|
+
created_user: string;
|
|
274
|
+
created_at: number;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
interface SaveBody {
|
|
280
|
+
client_id: string;
|
|
281
|
+
client_category_id: string;
|
|
282
|
+
document_date: number;
|
|
283
|
+
account_date: number;
|
|
284
|
+
total: number;
|
|
285
|
+
total_rent_base?: number;
|
|
286
|
+
total_rent_value?: number;
|
|
287
|
+
total_iva_base?: number;
|
|
288
|
+
total_iva_value?: number;
|
|
289
|
+
type: string;
|
|
290
|
+
attached_invoice: boolean;
|
|
291
|
+
document_branch_identification_number: string;
|
|
292
|
+
document_emission_point_number: string;
|
|
293
|
+
document_sequence: string;
|
|
294
|
+
document_authorization: string;
|
|
295
|
+
commentary: string;
|
|
296
|
+
client_document_number: string;
|
|
297
|
+
client_trade_name: string;
|
|
298
|
+
client_business_name: string;
|
|
299
|
+
client_phone_code: string;
|
|
300
|
+
client_address: string;
|
|
301
|
+
client_cellphone: string;
|
|
302
|
+
client_email: string;
|
|
303
|
+
client_province_id?: string;
|
|
304
|
+
client_canton_id?: string;
|
|
305
|
+
client_parish_id?: string;
|
|
306
|
+
client_province_code?: string;
|
|
307
|
+
client_province_name?: string;
|
|
308
|
+
client_canton_code?: string;
|
|
309
|
+
client_canton_name?: string;
|
|
310
|
+
client_parish_code?: string;
|
|
311
|
+
client_parish_name?: string;
|
|
312
|
+
company_branch_id?: string;
|
|
313
|
+
company_NIF?: string;
|
|
314
|
+
company_address?: string;
|
|
315
|
+
company_trade_name?: string;
|
|
316
|
+
company_business_name?: string;
|
|
317
|
+
company_branch_identification_number?: string;
|
|
318
|
+
company_branch_trade_name?: string;
|
|
319
|
+
company_branch_logo?: string;
|
|
320
|
+
company_branch_address?: string;
|
|
321
|
+
company_branch_email?: string;
|
|
322
|
+
company_branch_cellphone?: string;
|
|
323
|
+
company_branch_phone?: string;
|
|
324
|
+
retention_invoice: SaveBody.RetentionInvoice[];
|
|
325
|
+
}
|
|
326
|
+
namespace SaveBody {
|
|
327
|
+
interface RetentionInvoice {
|
|
328
|
+
invoice_id: string;
|
|
329
|
+
client_branch_id?: string;
|
|
330
|
+
client_branch_code?: string;
|
|
331
|
+
client_branch_name?: string;
|
|
332
|
+
client_branch_address?: string;
|
|
333
|
+
client_branch_email?: string;
|
|
334
|
+
client_branch_cellphone?: string;
|
|
335
|
+
client_branch_phone?: string;
|
|
336
|
+
client_branch_phone_code?: string;
|
|
337
|
+
credit_management_id: string;
|
|
338
|
+
cost_center_id: string;
|
|
339
|
+
invoice_branch_identification_number: string;
|
|
340
|
+
invoice_emission_point_number: string;
|
|
341
|
+
invoice_document_number: string;
|
|
342
|
+
invoice_date: number;
|
|
343
|
+
retention_type: string;
|
|
344
|
+
total: number;
|
|
345
|
+
retention_invoice_detail: RetentionInvoice.Detail[];
|
|
346
|
+
}
|
|
347
|
+
namespace RetentionInvoice {
|
|
348
|
+
interface Detail {
|
|
349
|
+
type: string;
|
|
350
|
+
retention_settings_id: string;
|
|
351
|
+
retention_settings_code: string;
|
|
352
|
+
retention_settings_description: string;
|
|
353
|
+
rate: number;
|
|
354
|
+
base: number;
|
|
355
|
+
value: number;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
interface ConfirmResponse {
|
|
360
|
+
success: boolean;
|
|
361
|
+
message: string;
|
|
362
|
+
data?: any;
|
|
363
|
+
}
|
|
364
|
+
interface DownloadExcelParams {
|
|
365
|
+
date_begin?: number;
|
|
366
|
+
date_end?: number;
|
|
367
|
+
document_number?: string;
|
|
368
|
+
client_id?: string;
|
|
369
|
+
enabled?: boolean;
|
|
370
|
+
}
|
|
371
|
+
interface DownloadPdfParams {
|
|
372
|
+
date_begin?: number;
|
|
373
|
+
date_end?: number;
|
|
374
|
+
document_number?: string;
|
|
375
|
+
client_id?: string;
|
|
376
|
+
enabled?: boolean;
|
|
377
|
+
}
|
|
378
|
+
interface GetLastRetentionResponse {
|
|
379
|
+
success: boolean;
|
|
380
|
+
data: GetLastRetentionResponse.Data[];
|
|
381
|
+
}
|
|
382
|
+
namespace GetLastRetentionResponse {
|
|
383
|
+
interface Data {
|
|
384
|
+
_id: string;
|
|
385
|
+
retention_invoice_id?: string;
|
|
386
|
+
type?: string;
|
|
387
|
+
retention_settings_id?: string;
|
|
388
|
+
retention_settings_code?: string;
|
|
389
|
+
retention_settings_description?: string;
|
|
390
|
+
rate?: number;
|
|
391
|
+
base?: number;
|
|
392
|
+
value?: number;
|
|
393
|
+
created_user?: string;
|
|
394
|
+
created_at?: number;
|
|
395
|
+
updated_at?: number;
|
|
396
|
+
updated_user?: string;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
interface SendEmailParams {
|
|
400
|
+
timezone: string;
|
|
401
|
+
locale: string;
|
|
402
|
+
emails?: string;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare namespace CbmSalesPendingDocumentModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
document_number?: string;
|
|
6
|
+
date_end?: number;
|
|
7
|
+
date_begin?: number;
|
|
8
|
+
client_id?: string;
|
|
9
|
+
client_branch_id?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
pageNum: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
pages: number;
|
|
17
|
+
total: number;
|
|
18
|
+
totales: ListResponse.totales;
|
|
19
|
+
items: ListResponse.Item[];
|
|
20
|
+
}
|
|
21
|
+
namespace ListResponse {
|
|
22
|
+
interface Item {
|
|
23
|
+
_id: string;
|
|
24
|
+
created_at: number;
|
|
25
|
+
client_id: string;
|
|
26
|
+
document_nomenclature: string;
|
|
27
|
+
document_emission_point_number: string;
|
|
28
|
+
document_sequence: string;
|
|
29
|
+
balance: number;
|
|
30
|
+
client_category_id: string;
|
|
31
|
+
client_category_name: string;
|
|
32
|
+
client_address: string;
|
|
33
|
+
client_document_number: string;
|
|
34
|
+
client_trade_name: string;
|
|
35
|
+
client_business_name: string;
|
|
36
|
+
client_phone_code: string;
|
|
37
|
+
client_cellphone: string;
|
|
38
|
+
client_branch_id?: string;
|
|
39
|
+
client_branch_code?: string;
|
|
40
|
+
client_branch_phone_code?: string;
|
|
41
|
+
client_branch_name?: string;
|
|
42
|
+
client_branch_address?: string;
|
|
43
|
+
client_branch_email?: string;
|
|
44
|
+
client_branch_cellphone?: string;
|
|
45
|
+
client_branch_phone?: string;
|
|
46
|
+
client_province_id?: string;
|
|
47
|
+
client_canton_id?: string;
|
|
48
|
+
client_parish_id?: string;
|
|
49
|
+
client_province_code?: string;
|
|
50
|
+
client_province_name?: string;
|
|
51
|
+
client_canton_code?: string;
|
|
52
|
+
client_canton_name?: string;
|
|
53
|
+
client_parish_code?: string;
|
|
54
|
+
client_parish_name?: string;
|
|
55
|
+
client_email: string;
|
|
56
|
+
new_document_number: string;
|
|
57
|
+
date: number;
|
|
58
|
+
type: string;
|
|
59
|
+
checked?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface totales {
|
|
62
|
+
total_retention?: number;
|
|
63
|
+
total_down_payment?: number;
|
|
64
|
+
total_credit_note?: number;
|
|
65
|
+
total_initial_balance_retention?: number;
|
|
66
|
+
total_initial_balance_down_payment?: number;
|
|
67
|
+
total_initial_balance_credit_note?: number;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|