@cbm-common/cbm-types 0.0.1
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/package.json +12 -0
- package/src/lib/index.d.ts +25 -0
- package/src/lib/types/app/app.config.d.ts +2 -0
- package/src/lib/types/app/app.d.ts +3 -0
- package/src/lib/types/app/app.routes.d.ts +2 -0
- package/src/lib/types/app/components/empty/empty.d.ts +17 -0
- package/src/lib/types/app/components/json-modal/json-modal.d.ts +14 -0
- package/src/lib/types/app/components/pagination-nav/pagination-nav.d.ts +27 -0
- package/src/lib/types/app/components/pagination-nav/pagination-nav.model.d.ts +8 -0
- package/src/lib/types/app/components/tab-item/tab-item.component.d.ts +7 -0
- package/src/lib/types/app/components/tabs/tabs.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/components/email-history/email-history.component.d.ts +66 -0
- package/src/lib/types/app/components/user-history/components/email-history/emails-modal/emails-modal.component.d.ts +13 -0
- package/src/lib/types/app/components/user-history/components/general-history/general-history.component.d.ts +58 -0
- package/src/lib/types/app/components/user-history/components/print-history/print-history.component.d.ts +58 -0
- package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts +63 -0
- package/src/lib/types/app/components/user-history/components/tab-item/tab-item.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/components/tabs/tabs.component.d.ts +7 -0
- package/src/lib/types/app/components/user-history/constants.d.ts +1 -0
- package/src/lib/types/app/components/user-history/directives/drop-down.directive.d.ts +9 -0
- package/src/lib/types/app/components/user-history/types.d.ts +14 -0
- package/src/lib/types/app/components/user-history/user-history.d.ts +30 -0
- package/src/lib/types/app/directives/horizontal-overflow/components/arrow-left/arrow-left.component.d.ts +5 -0
- package/src/lib/types/app/directives/horizontal-overflow/components/arrow-right/arrow-right.component.d.ts +5 -0
- package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-arrows.directive.d.ts +23 -0
- package/src/lib/types/app/directives/horizontal-overflow/horizontal-overflow-shadow.directive.d.ts +8 -0
- package/src/lib/types/app/directives/number-input.directive.d.ts +23 -0
- package/src/lib/types/app/directives/resize-container/resize-container.directive.d.ts +20 -0
- package/src/lib/types/app/directives/resize-container/resize-container.model.d.ts +6 -0
- package/src/lib/types/app/directives/tooltip/tooltip/tooltip.d.ts +9 -0
- package/src/lib/types/app/directives/tooltip/tooltip/types.d.ts +2 -0
- package/src/lib/types/app/directives/tooltip/tooltip.directive.d.ts +26 -0
- package/src/lib/types/app/domain/models/email-settings.domain.repository.d.ts +86 -0
- package/src/lib/types/app/domain/models/history.domain.repository.d.ts +66 -0
- package/src/lib/types/app/domain/models/sri-history.domain.model.d.ts +298 -0
- package/src/lib/types/app/domain/models/user.domain.repository.d.ts +260 -0
- package/src/lib/types/app/domain/repositories/email-settings.domain.repository.d.ts +13 -0
- package/src/lib/types/app/domain/repositories/history.domain.repository.d.ts +11 -0
- package/src/lib/types/app/domain/repositories/sri-history.domain.repository.d.ts +9 -0
- package/src/lib/types/app/domain/repositories/user.domain.repository.d.ts +22 -0
- package/src/lib/types/app/domain/services/notification/notification.model.d.ts +15 -0
- package/src/lib/types/app/domain/services/notification/notification.service.d.ts +4 -0
- package/src/lib/types/app/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +10 -0
- package/src/lib/types/app/infrastructure/repositories/history.infrastructure.repository.d.ts +7 -0
- package/src/lib/types/app/infrastructure/repositories/sri-history.infrastructure.repository.d.ts +5 -0
- package/src/lib/types/app/infrastructure/repositories/user.infrastructure.repository.d.ts +18 -0
- package/src/lib/types/app/infrastructure/services/email-settings.infrastruture.service.d.ts +14 -0
- package/src/lib/types/app/infrastructure/services/history.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/sri-history.infrastructure.service.d.ts +9 -0
- package/src/lib/types/app/infrastructure/services/user.infrastructure.service.d.ts +22 -0
- package/src/lib/types/environments/environment.d.ts +29 -0
- package/src/public-api.d.ts +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export declare namespace CbmEmailSettingsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
collection_name?: string;
|
|
4
|
+
event_module?: 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
|
+
email_from?: string;
|
|
15
|
+
email_bcc?: string[];
|
|
16
|
+
email_bcc_enabled?: boolean;
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
created_at?: number;
|
|
19
|
+
created_user?: string;
|
|
20
|
+
event_module?: string;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
interface SaveOneBody {
|
|
24
|
+
event_module: string;
|
|
25
|
+
collection_name?: string;
|
|
26
|
+
description_module?: string;
|
|
27
|
+
email_from: string;
|
|
28
|
+
email_from_name: string;
|
|
29
|
+
user: string;
|
|
30
|
+
password: string;
|
|
31
|
+
email_cc?: string[];
|
|
32
|
+
email_bcc?: string[];
|
|
33
|
+
email_cc_enabled?: boolean;
|
|
34
|
+
email_bcc_enabled?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface ConfirmResponse {
|
|
37
|
+
success: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
data?: any;
|
|
40
|
+
}
|
|
41
|
+
interface GetOneResponse {
|
|
42
|
+
success: boolean;
|
|
43
|
+
data: GetOneResponse.Data;
|
|
44
|
+
}
|
|
45
|
+
namespace GetOneResponse {
|
|
46
|
+
interface Data {
|
|
47
|
+
_id: string;
|
|
48
|
+
company_id?: string;
|
|
49
|
+
event_module?: string;
|
|
50
|
+
email_from?: string;
|
|
51
|
+
email_bcc?: string[];
|
|
52
|
+
email_bcc_enabled?: boolean;
|
|
53
|
+
enabled?: boolean;
|
|
54
|
+
deleted?: boolean;
|
|
55
|
+
created_at?: number;
|
|
56
|
+
created_user?: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
interface UpdateBody {
|
|
60
|
+
event_module?: string;
|
|
61
|
+
collection_name?: string;
|
|
62
|
+
description_module?: string;
|
|
63
|
+
email_from?: string;
|
|
64
|
+
email_from_name?: string;
|
|
65
|
+
user?: string;
|
|
66
|
+
password?: string;
|
|
67
|
+
email_cc?: string[];
|
|
68
|
+
email_bcc?: string[];
|
|
69
|
+
email_cc_enabled?: boolean;
|
|
70
|
+
email_bcc_enabled?: boolean;
|
|
71
|
+
type?: string;
|
|
72
|
+
}
|
|
73
|
+
interface SaveManyBody {
|
|
74
|
+
event_module?: string;
|
|
75
|
+
collection_name?: string;
|
|
76
|
+
description_module?: string;
|
|
77
|
+
email_from?: string;
|
|
78
|
+
email_from_name?: string;
|
|
79
|
+
user?: string;
|
|
80
|
+
password?: string;
|
|
81
|
+
email_cc?: string[];
|
|
82
|
+
email_bcc?: string[];
|
|
83
|
+
email_cc_enabled?: boolean;
|
|
84
|
+
email_bcc_enabled?: boolean;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare namespace CbmHistoryModel {
|
|
2
|
+
type TValidateItem = 'item' | 'service' | 'kit';
|
|
3
|
+
interface ListParams {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
date_end?: number;
|
|
7
|
+
date_begin?: number;
|
|
8
|
+
user_id?: string;
|
|
9
|
+
collection_id?: string;
|
|
10
|
+
collection_name?: string;
|
|
11
|
+
event_module?: string;
|
|
12
|
+
event?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ListResponse {
|
|
15
|
+
success: boolean;
|
|
16
|
+
pageNum: number;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
pages: number;
|
|
19
|
+
total: number;
|
|
20
|
+
items: ListResponse.Item[];
|
|
21
|
+
}
|
|
22
|
+
namespace ListResponse {
|
|
23
|
+
interface Item {
|
|
24
|
+
_id: string;
|
|
25
|
+
user_id: string;
|
|
26
|
+
full_name: string;
|
|
27
|
+
email: string;
|
|
28
|
+
company_id: string;
|
|
29
|
+
company_name: string;
|
|
30
|
+
company_branch_id: string;
|
|
31
|
+
company_branch_name: string;
|
|
32
|
+
event: string;
|
|
33
|
+
event_module: string;
|
|
34
|
+
event_service: string;
|
|
35
|
+
event_date: number;
|
|
36
|
+
auth_date: number;
|
|
37
|
+
device_ip: string;
|
|
38
|
+
device_userAgent: string;
|
|
39
|
+
device_so: string;
|
|
40
|
+
device_browser: string;
|
|
41
|
+
device_engine: string;
|
|
42
|
+
device_geolocation: string;
|
|
43
|
+
rol_id?: string;
|
|
44
|
+
rol_name?: string;
|
|
45
|
+
host: string;
|
|
46
|
+
request: any;
|
|
47
|
+
response: any;
|
|
48
|
+
response_code: string;
|
|
49
|
+
event_module_id: string;
|
|
50
|
+
reason?: string;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
interface ValidatePartnerParams {
|
|
54
|
+
id: string;
|
|
55
|
+
type: string;
|
|
56
|
+
}
|
|
57
|
+
interface ValidateItemKitServiceParams {
|
|
58
|
+
type: TValidateItem;
|
|
59
|
+
item_id: string;
|
|
60
|
+
}
|
|
61
|
+
interface ConfirmResponse {
|
|
62
|
+
success: boolean;
|
|
63
|
+
message: string;
|
|
64
|
+
data?: any;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
export declare namespace CbmSriHistoryModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
date_end?: number;
|
|
6
|
+
date_begin?: number;
|
|
7
|
+
user_id?: string;
|
|
8
|
+
collection_id?: string;
|
|
9
|
+
collection_name?: string;
|
|
10
|
+
event_module?: string;
|
|
11
|
+
event?: string;
|
|
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
|
+
user_id: string;
|
|
25
|
+
full_name: string;
|
|
26
|
+
email: string;
|
|
27
|
+
company_id: string;
|
|
28
|
+
company_name: string;
|
|
29
|
+
company_branch_id: string;
|
|
30
|
+
company_branch_name: string;
|
|
31
|
+
type?: string;
|
|
32
|
+
event: string;
|
|
33
|
+
event_module: string;
|
|
34
|
+
event_service: string;
|
|
35
|
+
event_date: number;
|
|
36
|
+
auth_date: number;
|
|
37
|
+
device_ip: string;
|
|
38
|
+
device_userAgent: string;
|
|
39
|
+
device_so: string;
|
|
40
|
+
device_browser: string;
|
|
41
|
+
device_engine: string;
|
|
42
|
+
host: string;
|
|
43
|
+
rol_id?: string;
|
|
44
|
+
rol_name?: string;
|
|
45
|
+
request: Item.Request;
|
|
46
|
+
response: Item.Response;
|
|
47
|
+
response_code: string;
|
|
48
|
+
error_message?: string;
|
|
49
|
+
}
|
|
50
|
+
namespace Item {
|
|
51
|
+
interface Request {
|
|
52
|
+
idComprobante: string;
|
|
53
|
+
data: Request.Data;
|
|
54
|
+
}
|
|
55
|
+
namespace Request {
|
|
56
|
+
interface Data {
|
|
57
|
+
factura?: Data.Factura;
|
|
58
|
+
notaDebito?: Data.NotaDebito;
|
|
59
|
+
notaCredito?: Data.NotaCredito;
|
|
60
|
+
}
|
|
61
|
+
namespace Data {
|
|
62
|
+
interface Factura {
|
|
63
|
+
$: InfoDocumento;
|
|
64
|
+
infoTributaria: InfoTributaria;
|
|
65
|
+
infoFactura: Factura.InfoFactura;
|
|
66
|
+
detalles: Factura.FacturaDetalles;
|
|
67
|
+
infoAdicional?: Factura.InfoAdicional;
|
|
68
|
+
}
|
|
69
|
+
namespace Factura {
|
|
70
|
+
interface InfoFactura {
|
|
71
|
+
fechaEmision: string;
|
|
72
|
+
dirEstablecimiento: string;
|
|
73
|
+
contribuyenteEspecial: any[];
|
|
74
|
+
obligadoContabilidad: string;
|
|
75
|
+
tipoIdentificacionComprador: string;
|
|
76
|
+
razonSocialComprador: string;
|
|
77
|
+
identificacionComprador: string;
|
|
78
|
+
direccionComprador: string;
|
|
79
|
+
totalSinImpuestos: string;
|
|
80
|
+
totalDescuento: string;
|
|
81
|
+
totalConImpuestos: TotalConImpuestos[];
|
|
82
|
+
propina: string;
|
|
83
|
+
importeTotal: string;
|
|
84
|
+
moneda: string;
|
|
85
|
+
pagos: InfoFactura.InfoFacturaPagos;
|
|
86
|
+
}
|
|
87
|
+
namespace InfoFactura {
|
|
88
|
+
interface InfoFacturaPagos {
|
|
89
|
+
pago: InfoFacturaPagos.PagoElement[];
|
|
90
|
+
}
|
|
91
|
+
namespace InfoFacturaPagos {
|
|
92
|
+
interface PagoElement {
|
|
93
|
+
formaPago?: string;
|
|
94
|
+
total?: number;
|
|
95
|
+
plazo: number;
|
|
96
|
+
unidadTiempo: string;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
interface FacturaDetalles {
|
|
101
|
+
detalle: FacturaDetalles.PurpleDetalle[];
|
|
102
|
+
}
|
|
103
|
+
namespace FacturaDetalles {
|
|
104
|
+
interface PurpleDetalle {
|
|
105
|
+
codigoPrincipal: string;
|
|
106
|
+
codigoAuxiliar: string;
|
|
107
|
+
descripcion: string;
|
|
108
|
+
cantidad: string;
|
|
109
|
+
precioUnitario: string;
|
|
110
|
+
descuento: string;
|
|
111
|
+
precioTotalSinImpuesto: string;
|
|
112
|
+
impuestos: DetalleImpuesto[];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
interface InfoAdicional {
|
|
116
|
+
campoAdicional: InfoAdicional.CampoAdicionalElement[];
|
|
117
|
+
}
|
|
118
|
+
namespace InfoAdicional {
|
|
119
|
+
interface CampoAdicionalElement {
|
|
120
|
+
$: CampoAdicionalElement.CampoAdicional;
|
|
121
|
+
_: string;
|
|
122
|
+
}
|
|
123
|
+
namespace CampoAdicionalElement {
|
|
124
|
+
interface CampoAdicional {
|
|
125
|
+
nombre: string;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
interface NotaCredito {
|
|
131
|
+
$: InfoDocumento;
|
|
132
|
+
infoTributaria: InfoTributaria;
|
|
133
|
+
infoNotaCredito: NotaCredito.InfoNotaCredito;
|
|
134
|
+
detalles: NotaCredito.NotaCreditoDetalles;
|
|
135
|
+
}
|
|
136
|
+
namespace NotaCredito {
|
|
137
|
+
interface InfoNotaCredito {
|
|
138
|
+
fechaEmision: string;
|
|
139
|
+
dirEstablecimiento: string;
|
|
140
|
+
tipoIdentificacionComprador: string;
|
|
141
|
+
razonSocialComprador: string;
|
|
142
|
+
identificacionComprador: string;
|
|
143
|
+
contribuyenteEspecial: any[];
|
|
144
|
+
obligadoContabilidad: string;
|
|
145
|
+
codDocModificado: string;
|
|
146
|
+
numDocModificado: string;
|
|
147
|
+
fechaEmisionDocSustento: string;
|
|
148
|
+
totalSinImpuestos: string;
|
|
149
|
+
valorModificacion: number;
|
|
150
|
+
moneda: string;
|
|
151
|
+
totalConImpuestos: TotalConImpuestos;
|
|
152
|
+
motivo: string;
|
|
153
|
+
}
|
|
154
|
+
interface NotaCreditoDetalles {
|
|
155
|
+
detalle: NotaCredito.NotaCreditoDetalles.FluffyDetalle[];
|
|
156
|
+
}
|
|
157
|
+
namespace NotaCreditoDetalles {
|
|
158
|
+
interface FluffyDetalle {
|
|
159
|
+
codigoInterno: string;
|
|
160
|
+
codigoAdicional: string;
|
|
161
|
+
descripcion: string;
|
|
162
|
+
cantidad: string;
|
|
163
|
+
precioUnitario: string;
|
|
164
|
+
descuento: string;
|
|
165
|
+
precioTotalSinImpuesto: string;
|
|
166
|
+
impuestos: Impuestos;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
interface NotaDebito {
|
|
171
|
+
$: InfoDocumento;
|
|
172
|
+
infoTributaria: InfoTributaria;
|
|
173
|
+
infoNotaDebito: NotaDebito.InfoNotaDebito;
|
|
174
|
+
motivos: NotaDebito.Motivos;
|
|
175
|
+
}
|
|
176
|
+
namespace NotaDebito {
|
|
177
|
+
interface InfoNotaDebito {
|
|
178
|
+
fechaEmision: string;
|
|
179
|
+
dirEstablecimiento: string;
|
|
180
|
+
tipoIdentificacionComprador: string;
|
|
181
|
+
razonSocialComprador: string;
|
|
182
|
+
identificacionComprador: string;
|
|
183
|
+
contribuyenteEspecial: any[];
|
|
184
|
+
obligadoContabilidad: string;
|
|
185
|
+
codDocModificado: string;
|
|
186
|
+
numDocModificado: string;
|
|
187
|
+
fechaEmisionDocSustento: string;
|
|
188
|
+
totalSinImpuestos: string;
|
|
189
|
+
impuestos: Impuestos;
|
|
190
|
+
valorTotal: string;
|
|
191
|
+
pagos: string;
|
|
192
|
+
}
|
|
193
|
+
interface Motivos {
|
|
194
|
+
motivo: Motivos.Motivo[];
|
|
195
|
+
}
|
|
196
|
+
namespace Motivos {
|
|
197
|
+
interface Motivo {
|
|
198
|
+
razon: string;
|
|
199
|
+
valor: number;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
interface TotalConImpuestos {
|
|
204
|
+
totalImpuesto: Impuestos.TotalImpuestoElement;
|
|
205
|
+
}
|
|
206
|
+
namespace Impuestos {
|
|
207
|
+
interface TotalImpuestoElement {
|
|
208
|
+
codigo: string;
|
|
209
|
+
codigoPorcentaje: string;
|
|
210
|
+
tarifa?: number;
|
|
211
|
+
baseImponible: string;
|
|
212
|
+
valor: string;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
interface DetalleImpuesto {
|
|
216
|
+
impuesto: Impuestos.TotalImpuestoElement;
|
|
217
|
+
}
|
|
218
|
+
interface Impuestos {
|
|
219
|
+
impuesto: Impuestos.TotalImpuestoElement[];
|
|
220
|
+
}
|
|
221
|
+
interface InfoDocumento {
|
|
222
|
+
id: string;
|
|
223
|
+
version: string;
|
|
224
|
+
}
|
|
225
|
+
interface InfoTributaria {
|
|
226
|
+
ambiente: number;
|
|
227
|
+
tipoEmision: number;
|
|
228
|
+
razonSocial: string;
|
|
229
|
+
nombreComercial: string;
|
|
230
|
+
ruc: string;
|
|
231
|
+
claveAcceso: string;
|
|
232
|
+
codDoc: string;
|
|
233
|
+
estab: string;
|
|
234
|
+
ptoEmi: string;
|
|
235
|
+
secuencial: string;
|
|
236
|
+
dirMatriz: string;
|
|
237
|
+
agenteRetencion: string[];
|
|
238
|
+
contribuyenteRimpe: any[];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
interface Response {
|
|
243
|
+
RespuestaAutorizacionComprobante?: Response.RespuestaAutorizacionComprobante;
|
|
244
|
+
RespuestaRecepcionComprobante?: Response.RespuestaRecepcionComprobante;
|
|
245
|
+
}
|
|
246
|
+
namespace Response {
|
|
247
|
+
interface RespuestaAutorizacionComprobante {
|
|
248
|
+
claveAccesoConsultada: string;
|
|
249
|
+
numeroComprobantes: string;
|
|
250
|
+
autorizaciones: RespuestaAutorizacionComprobante.Autorizaciones;
|
|
251
|
+
}
|
|
252
|
+
namespace RespuestaAutorizacionComprobante {
|
|
253
|
+
interface Autorizaciones {
|
|
254
|
+
autorizacion: Autorizaciones.Autorizacion;
|
|
255
|
+
}
|
|
256
|
+
namespace Autorizaciones {
|
|
257
|
+
interface Autorizacion {
|
|
258
|
+
estado: string;
|
|
259
|
+
numeroAutorizacion: string;
|
|
260
|
+
fechaAutorizacion: Date;
|
|
261
|
+
ambiente: string;
|
|
262
|
+
comprobante: string;
|
|
263
|
+
mensajes: null;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
interface RespuestaRecepcionComprobante {
|
|
268
|
+
estado: string;
|
|
269
|
+
comprobantes: RespuestaRecepcionComprobante.Comprobantes;
|
|
270
|
+
}
|
|
271
|
+
namespace RespuestaRecepcionComprobante {
|
|
272
|
+
interface Comprobantes {
|
|
273
|
+
comprobante: Comprobante.Comprobante;
|
|
274
|
+
}
|
|
275
|
+
namespace Comprobante {
|
|
276
|
+
interface Comprobante {
|
|
277
|
+
claveAcceso: string;
|
|
278
|
+
mensajes: Comprobante.Mensajes;
|
|
279
|
+
}
|
|
280
|
+
namespace Comprobante {
|
|
281
|
+
interface Mensajes {
|
|
282
|
+
mensaje: Mensajes.Mensaje;
|
|
283
|
+
}
|
|
284
|
+
namespace Mensajes {
|
|
285
|
+
interface Mensaje {
|
|
286
|
+
identificador: string;
|
|
287
|
+
mensaje: string;
|
|
288
|
+
informacionAdicional: string;
|
|
289
|
+
tipo: string;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
export declare namespace CbmUserModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
filter?: string;
|
|
7
|
+
seller?: boolean;
|
|
8
|
+
deleted?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
total: number;
|
|
15
|
+
pages: number;
|
|
16
|
+
items: ListResponse.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Item {
|
|
20
|
+
_id: string;
|
|
21
|
+
document_type_id?: string;
|
|
22
|
+
document_type_name?: string;
|
|
23
|
+
document_type_code?: string;
|
|
24
|
+
document: string;
|
|
25
|
+
name: string;
|
|
26
|
+
lastname: string;
|
|
27
|
+
address: string;
|
|
28
|
+
email: string;
|
|
29
|
+
cellphone: string;
|
|
30
|
+
super_admin: boolean;
|
|
31
|
+
photo: string;
|
|
32
|
+
access_app: boolean;
|
|
33
|
+
multi_company: boolean;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
deleted?: boolean;
|
|
36
|
+
deleted_at?: number;
|
|
37
|
+
deleted_user?: string;
|
|
38
|
+
created_at: number;
|
|
39
|
+
full_name?: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
interface ListByCompanyParams {
|
|
43
|
+
page: number;
|
|
44
|
+
size: number;
|
|
45
|
+
deleted?: boolean;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
filter?: string;
|
|
48
|
+
company_id?: string;
|
|
49
|
+
verified?: boolean;
|
|
50
|
+
multi_company?: boolean;
|
|
51
|
+
access_app?: boolean;
|
|
52
|
+
super_admin?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface ListByCompanyResponse {
|
|
55
|
+
success: boolean;
|
|
56
|
+
pageNum: number;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
pages: number;
|
|
59
|
+
total: number;
|
|
60
|
+
items: ListByCompanyResponse.Item[];
|
|
61
|
+
used_users?: number;
|
|
62
|
+
count_users?: number;
|
|
63
|
+
}
|
|
64
|
+
namespace ListByCompanyResponse {
|
|
65
|
+
interface Item {
|
|
66
|
+
_id: string;
|
|
67
|
+
user_id?: string;
|
|
68
|
+
company_id?: string;
|
|
69
|
+
created_at?: number;
|
|
70
|
+
created_user?: string;
|
|
71
|
+
enabled?: boolean;
|
|
72
|
+
deleted?: boolean;
|
|
73
|
+
deleted_at?: number;
|
|
74
|
+
deleted_user?: string;
|
|
75
|
+
user_inactive_at?: number;
|
|
76
|
+
user_inactive_name?: string;
|
|
77
|
+
user_active_at?: number;
|
|
78
|
+
user_active_name?: string;
|
|
79
|
+
user_active_id?: string;
|
|
80
|
+
user: Item.User;
|
|
81
|
+
}
|
|
82
|
+
namespace Item {
|
|
83
|
+
interface User {
|
|
84
|
+
_id: string;
|
|
85
|
+
document_type_id?: string;
|
|
86
|
+
document_type_name?: string;
|
|
87
|
+
document_type_code?: string;
|
|
88
|
+
document: string;
|
|
89
|
+
password: string;
|
|
90
|
+
name: string;
|
|
91
|
+
lastname: string;
|
|
92
|
+
address: string;
|
|
93
|
+
email: string;
|
|
94
|
+
cellphone: string;
|
|
95
|
+
super_admin: boolean;
|
|
96
|
+
photo: string;
|
|
97
|
+
access_app: boolean;
|
|
98
|
+
multi_company: boolean;
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
deleted?: boolean;
|
|
101
|
+
deleted_at?: number;
|
|
102
|
+
deleted_user?: string;
|
|
103
|
+
created_at: number;
|
|
104
|
+
created_user: string;
|
|
105
|
+
verified: boolean;
|
|
106
|
+
last_access_at?: Date;
|
|
107
|
+
updated_at?: number;
|
|
108
|
+
updated_user?: string;
|
|
109
|
+
ip?: string[];
|
|
110
|
+
disabled_reason?: string;
|
|
111
|
+
user_inactive_at?: number;
|
|
112
|
+
user_inactive_id?: string;
|
|
113
|
+
user_inactive_name?: string;
|
|
114
|
+
user_active_at?: number;
|
|
115
|
+
user_active_id?: string;
|
|
116
|
+
user_active_name?: string;
|
|
117
|
+
username?: string;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
interface GetOneResponse {
|
|
122
|
+
success?: boolean;
|
|
123
|
+
data?: GetOneResponse.Data;
|
|
124
|
+
}
|
|
125
|
+
namespace GetOneResponse {
|
|
126
|
+
interface Data {
|
|
127
|
+
_id: string;
|
|
128
|
+
document_type_id?: string;
|
|
129
|
+
document_type_name?: string;
|
|
130
|
+
document_type_code?: string;
|
|
131
|
+
document?: string;
|
|
132
|
+
lastname?: string;
|
|
133
|
+
name?: string;
|
|
134
|
+
address?: string;
|
|
135
|
+
email?: string;
|
|
136
|
+
cellphone?: string;
|
|
137
|
+
super_admin?: boolean;
|
|
138
|
+
photo?: string;
|
|
139
|
+
access_app?: boolean;
|
|
140
|
+
multi_company?: boolean;
|
|
141
|
+
enabled?: boolean;
|
|
142
|
+
created_at?: number;
|
|
143
|
+
created_user?: string;
|
|
144
|
+
updated_at?: number;
|
|
145
|
+
updated_user?: string;
|
|
146
|
+
ip?: Data.IP[];
|
|
147
|
+
deleted?: boolean;
|
|
148
|
+
deleted_at?: number;
|
|
149
|
+
deleted_user?: string;
|
|
150
|
+
role?: Data.Role[];
|
|
151
|
+
disabled_reason?: string;
|
|
152
|
+
user_inactive_at?: number;
|
|
153
|
+
user_inactive_id?: string;
|
|
154
|
+
user_inactive_name?: string;
|
|
155
|
+
verified?: boolean;
|
|
156
|
+
last_access_at?: number;
|
|
157
|
+
user_active_at?: number;
|
|
158
|
+
user_active_id?: string;
|
|
159
|
+
user_active_name?: string;
|
|
160
|
+
phone_code?: string;
|
|
161
|
+
}
|
|
162
|
+
namespace Data {
|
|
163
|
+
interface Role {
|
|
164
|
+
_id: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
type?: string;
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
deleted?: boolean;
|
|
170
|
+
created_at?: number;
|
|
171
|
+
created_user?: string;
|
|
172
|
+
updated_at?: number;
|
|
173
|
+
disabled_reason?: string;
|
|
174
|
+
company_id?: string;
|
|
175
|
+
updated_user?: string;
|
|
176
|
+
user_inactive_at?: number;
|
|
177
|
+
user_inactive_id?: string;
|
|
178
|
+
user_inactive_name?: string;
|
|
179
|
+
user_active_at?: number;
|
|
180
|
+
user_active_id?: string;
|
|
181
|
+
user_active_name?: string;
|
|
182
|
+
}
|
|
183
|
+
interface IP {
|
|
184
|
+
ip?: string;
|
|
185
|
+
enabled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
interface SaveBody {
|
|
190
|
+
document_type_id?: string;
|
|
191
|
+
document_type_name?: string;
|
|
192
|
+
document_type_code?: string;
|
|
193
|
+
document?: string;
|
|
194
|
+
password?: string;
|
|
195
|
+
lastname?: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
address?: string;
|
|
198
|
+
email?: string;
|
|
199
|
+
cellphone?: string;
|
|
200
|
+
super_admin?: boolean;
|
|
201
|
+
photo?: string;
|
|
202
|
+
access_app?: boolean;
|
|
203
|
+
multi_company?: boolean;
|
|
204
|
+
ip?: any[];
|
|
205
|
+
rol_id?: string;
|
|
206
|
+
company_branch?: string[];
|
|
207
|
+
}
|
|
208
|
+
interface UpdateBody {
|
|
209
|
+
password?: string;
|
|
210
|
+
photo?: string;
|
|
211
|
+
document_type_id?: string;
|
|
212
|
+
document_type_name?: string;
|
|
213
|
+
document_type_code?: string;
|
|
214
|
+
document?: string;
|
|
215
|
+
lastname?: string;
|
|
216
|
+
name?: string;
|
|
217
|
+
address?: string;
|
|
218
|
+
email?: string;
|
|
219
|
+
cellphone?: string;
|
|
220
|
+
super_admin?: boolean;
|
|
221
|
+
ip?: string[];
|
|
222
|
+
}
|
|
223
|
+
interface UpdatePasswordBody {
|
|
224
|
+
password: string;
|
|
225
|
+
confirm_password: string;
|
|
226
|
+
}
|
|
227
|
+
interface UpdateEmailBody {
|
|
228
|
+
email?: string;
|
|
229
|
+
company_id?: string;
|
|
230
|
+
}
|
|
231
|
+
interface UpdateSuperAdminBody {
|
|
232
|
+
super_admin?: boolean;
|
|
233
|
+
}
|
|
234
|
+
interface UpdateIp {
|
|
235
|
+
ip: UpdateIp.IP[];
|
|
236
|
+
}
|
|
237
|
+
namespace UpdateIp {
|
|
238
|
+
interface IP {
|
|
239
|
+
ip?: string;
|
|
240
|
+
enabled?: boolean;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
interface ValidatePasswordBody {
|
|
244
|
+
password: string;
|
|
245
|
+
}
|
|
246
|
+
interface DownloadExcelParams {
|
|
247
|
+
filter?: string;
|
|
248
|
+
enabled?: boolean;
|
|
249
|
+
}
|
|
250
|
+
interface ChangeStatusBody {
|
|
251
|
+
enabled: boolean;
|
|
252
|
+
disabled_reason?: string;
|
|
253
|
+
company_id?: string;
|
|
254
|
+
}
|
|
255
|
+
interface ConfirmResponse {
|
|
256
|
+
success: boolean;
|
|
257
|
+
message: string;
|
|
258
|
+
data?: any;
|
|
259
|
+
}
|
|
260
|
+
}
|