visorus-erp-core 10.0.1 → 10.1.0
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/bundles/visorus-erp-core.umd.js +802 -389
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +1 -1
- package/bundles/visorus-erp-core.umd.min.js.map +1 -1
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +24 -10
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +10 -12
- package/esm2015/lib/components/agente/services/agente.service.js +24 -16
- package/esm2015/lib/components/almacen/services/almacen.service.js +25 -12
- package/esm2015/lib/components/banco/services/banco.service.js +24 -9
- package/esm2015/lib/components/caja/sessionCaja.service.js +24 -10
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +24 -9
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +24 -9
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +24 -9
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +24 -9
- package/esm2015/lib/components/cliente/services/cliente.service.js +25 -10
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +25 -11
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +25 -11
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +24 -9
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +24 -9
- package/esm2015/lib/components/departamento/services/departamento.service.js +24 -9
- package/esm2015/lib/components/empresa/services/empresa.service.js +25 -12
- package/esm2015/lib/components/flete/services/flete.service.js +24 -10
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +24 -9
- package/esm2015/lib/components/moneda/services/moneda.service.js +24 -10
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +11 -12
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +24 -10
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +25 -11
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +21 -10
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +25 -11
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +14 -12
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +23 -12
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +24 -9
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +24 -9
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +25 -11
- package/esm2015/lib/services/api.service.js +69 -0
- package/esm2015/lib/services/catalogo-adicional.service.js +24 -10
- package/esm2015/lib/services/global.service.js +13 -2
- package/esm2015/lib/services/personaMoral.service.js +24 -9
- package/esm2015/public_api.js +3 -3
- package/fesm2015/visorus-erp-core.js +703 -242
- package/fesm2015/visorus-erp-core.js.map +1 -1
- package/lib/components/acreedor/services/acreedor.service.d.ts +12 -5
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +6 -6
- package/lib/components/agente/services/agente.service.d.ts +14 -8
- package/lib/components/almacen/services/almacen.service.d.ts +13 -6
- package/lib/components/banco/services/banco.service.d.ts +12 -4
- package/lib/components/caja/sessionCaja.service.d.ts +11 -5
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +12 -4
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +12 -4
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +11 -4
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +12 -4
- package/lib/components/cliente/services/cliente.service.d.ts +13 -5
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +13 -6
- package/lib/components/cliente/services/clienteFlete.service.d.ts +12 -6
- package/lib/components/contacto/services/datoContacto.service.d.ts +11 -4
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +11 -4
- package/lib/components/departamento/services/departamento.service.d.ts +11 -4
- package/lib/components/empresa/services/empresa.service.d.ts +12 -6
- package/lib/components/flete/services/flete.service.d.ts +11 -5
- package/lib/components/formaPago/services/FormaPago.service.d.ts +12 -4
- package/lib/components/moneda/services/moneda.service.d.ts +11 -5
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +8 -7
- package/lib/components/proveedor/services/proveedor.service.d.ts +11 -5
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +12 -6
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +11 -6
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +12 -6
- package/lib/components/selecciona-articulo/stock.service.d.ts +7 -5
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +12 -7
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +11 -4
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +11 -4
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +12 -6
- package/lib/services/api.service.d.ts +38 -0
- package/lib/services/catalogo-adicional.service.d.ts +11 -5
- package/lib/services/global.service.d.ts +4 -2
- package/lib/services/personaMoral.service.d.ts +11 -4
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
- package/esm2015/lib/services/crud.service.js +0 -46
- package/lib/services/crud.service.d.ts +0 -20
|
@@ -1,8 +1,138 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('visorus-erp-core', ['exports', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['visorus-erp-core'] = {}, global.ng.
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@angular/forms'), require('primeng/inputtext'), require('primeng/treetable'), require('primeng/api'), require('@angular/common'), require('primeng/button'), require('primeng/dialog'), require('rxjs'), require('rxjs/internal/operators'), require('ngx-toastr'), require('@ngx-translate/core'), require('rxjs/operators'), require('@angular/platform-browser'), require('primeng/table'), require('primeng/paginator'), require('primeng/dropdown'), require('primeng/inputmask'), require('primeng/messages'), require('primeng/message'), require('primeng/confirmdialog'), require('primeng/progressbar'), require('primeng/tristatecheckbox'), require('primeng/keyfilter'), require('primeng/inputswitch'), require('primeng/tabview'), require('primeng/calendar'), require('primeng/panel'), require('primeng/autocomplete'), require('primeng/fieldset'), require('primeng/checkbox'), require('primeng/tree'), require('primeng/radiobutton'), require('primeng/tabmenu'), require('primeng/overlaypanel'), require('primeng/tooltip'), require('primeng/card'), require('primeng/menubar'), require('primeng/splitbutton'), require('primeng/toolbar'), require('@ngx-translate/http-loader'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('visorus-erp-core', ['exports', '@angular/common/http', '@angular/core', '@angular/forms', 'primeng/inputtext', 'primeng/treetable', 'primeng/api', '@angular/common', 'primeng/button', 'primeng/dialog', 'rxjs', 'rxjs/internal/operators', 'ngx-toastr', '@ngx-translate/core', 'rxjs/operators', '@angular/platform-browser', 'primeng/table', 'primeng/paginator', 'primeng/dropdown', 'primeng/inputmask', 'primeng/messages', 'primeng/message', 'primeng/confirmdialog', 'primeng/progressbar', 'primeng/tristatecheckbox', 'primeng/keyfilter', 'primeng/inputswitch', 'primeng/tabview', 'primeng/calendar', 'primeng/panel', 'primeng/autocomplete', 'primeng/fieldset', 'primeng/checkbox', 'primeng/tree', 'primeng/radiobutton', 'primeng/tabmenu', 'primeng/overlaypanel', 'primeng/tooltip', 'primeng/card', 'primeng/menubar', 'primeng/splitbutton', 'primeng/toolbar', '@ngx-translate/http-loader', '@angular/router'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['visorus-erp-core'] = {}, global.ng.common.http, global.ng.core, global.ng.forms, global.i6, global.i4, global.i4$1, global.ng.common, global.i7, global.i4$2, global.rxjs, global.rxjs['internal/operators'], global.i1$1, global.i3, global.rxjs.operators, global.ng.platformBrowser, global.i8$1, global.i10, global.i23, global.i24, global.i25, global.i26, global.i28, global.i29, global.i30, global.i31, global.i32, global.i34, global.i20, global.i35, global.i17, global.i38, global.i16, global.i39, global.i15, global.i40, global.i14, global.i13, global.i12, global.i41, global.i37, global.i36, global.httpLoader, global.ng.router));
|
|
5
|
+
}(this, (function (exports, i1, i0, i5, i6, i4, i4$1, i8, i7, i4$2, rxjs, operators, i1$1, i3, operators$1, i3$1, i8$1, i10, i23, i24, i25, i26, i28, i29, i30, i31, i32, i34, i20, i35, i17, i38, i16, i39, i15, i40, i14, i13, i12, i41, i37, i36, httpLoader, i3$2) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var GlobalService = /** @class */ (function () {
|
|
8
|
+
function GlobalService(http) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
}
|
|
11
|
+
GlobalService.prototype.setConfiguracion = function () {
|
|
12
|
+
this.http.get('assets/config.json').subscribe(function (data) {
|
|
13
|
+
localStorage.setItem('config', JSON.stringify(data));
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
GlobalService.prototype.obtieneConfiguracion = function () {
|
|
17
|
+
return JSON.parse(localStorage.getItem('config'));
|
|
18
|
+
};
|
|
19
|
+
GlobalService.prototype.getUrl = function (urlComponente) {
|
|
20
|
+
return this.obtieneConfiguracion().url + (urlComponente ? '/' + urlComponente : '');
|
|
21
|
+
};
|
|
22
|
+
GlobalService.prototype.auth = function (params) {
|
|
23
|
+
return this.http.post(this.getUrl() + '/login', params);
|
|
24
|
+
};
|
|
25
|
+
GlobalService.prototype.getUsuarioActual = function () {
|
|
26
|
+
return this.http.get(this.getUrl() + '/usuario/obtieneUsuarioActual', this.buildAuth());
|
|
27
|
+
};
|
|
28
|
+
GlobalService.prototype.buildAuth = function () {
|
|
29
|
+
var data = this.getUsuario();
|
|
30
|
+
return {
|
|
31
|
+
headers: new i1.HttpHeaders({
|
|
32
|
+
'Authorization': data.token_type + ' ' + data.access_token,
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
'Accept': 'application/json'
|
|
35
|
+
})
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
GlobalService.prototype.validateEndPoint = function () {
|
|
39
|
+
return this.http.get(this.getUrl() + '/validate', this.buildAuth());
|
|
40
|
+
};
|
|
41
|
+
GlobalService.prototype.closeEndPoint = function () {
|
|
42
|
+
localStorage.removeItem('usuario');
|
|
43
|
+
this.setUsuarioInstance(null);
|
|
44
|
+
};
|
|
45
|
+
GlobalService.prototype.getUsuario = function () {
|
|
46
|
+
return JSON.parse(localStorage.getItem('usuario'));
|
|
47
|
+
};
|
|
48
|
+
GlobalService.prototype.setUsuarioInstance = function (usuarioInstance) {
|
|
49
|
+
this.usuarioInstance = usuarioInstance;
|
|
50
|
+
};
|
|
51
|
+
GlobalService.prototype.getLang = function () {
|
|
52
|
+
var lang = localStorage.getItem('lang');
|
|
53
|
+
return lang ? lang : 'es';
|
|
54
|
+
};
|
|
55
|
+
GlobalService.prototype.setModulo = function (modulo) {
|
|
56
|
+
return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
|
|
57
|
+
};
|
|
58
|
+
return GlobalService;
|
|
59
|
+
}());
|
|
60
|
+
/** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
61
|
+
/** @nocollapse */ GlobalService.ɵprov = i0.ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
|
|
62
|
+
/*@__PURE__*/ (function () {
|
|
63
|
+
i0.ɵsetClassMetadata(GlobalService, [{
|
|
64
|
+
type: i0.Injectable,
|
|
65
|
+
args: [{
|
|
66
|
+
providedIn: 'root'
|
|
67
|
+
}]
|
|
68
|
+
}], function () { return [{ type: i1.HttpClient }]; }, null);
|
|
69
|
+
})();
|
|
70
|
+
|
|
71
|
+
// projects/erp-core/src/lib/services/api.service.ts
|
|
72
|
+
var ApiService = /** @class */ (function () {
|
|
73
|
+
function ApiService(http,
|
|
74
|
+
// Inyectamos GlobalService para usar sus métodos de ayuda (construir URL y cabeceras)
|
|
75
|
+
global) {
|
|
76
|
+
this.http = http;
|
|
77
|
+
this.global = global;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Realiza una petición GET genérica y autenticada usando HttpParams.
|
|
81
|
+
* @param endpoint El endpoint del API (ej. '/FormaDePago')
|
|
82
|
+
* @param queryParams Un objeto clave-valor para los parámetros de la URL.
|
|
83
|
+
*/
|
|
84
|
+
ApiService.prototype.get = function (endpoint, queryParams) {
|
|
85
|
+
// 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
|
|
86
|
+
var params = new i1.HttpParams({ fromObject: queryParams });
|
|
87
|
+
// 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
|
|
88
|
+
var options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
|
|
89
|
+
});
|
|
90
|
+
var url = this.global.getUrl(endpoint);
|
|
91
|
+
return this.http.get(url, options);
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Realiza una petición POST genérica y autenticada.
|
|
95
|
+
* @param endpoint El endpoint del API
|
|
96
|
+
* @param body El cuerpo de la petición
|
|
97
|
+
*/
|
|
98
|
+
ApiService.prototype.post = function (endpoint, body) {
|
|
99
|
+
var url = this.global.getUrl(endpoint);
|
|
100
|
+
var options = this.global.buildAuth();
|
|
101
|
+
return this.http.post(url, body, options);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Realiza una petición PUT genérica y autenticada.
|
|
105
|
+
* @param endpoint El endpoint del API
|
|
106
|
+
* @param id El ID del recurso a actualizar
|
|
107
|
+
* @param body El cuerpo de la petición
|
|
108
|
+
*/
|
|
109
|
+
ApiService.prototype.put = function (endpoint, id, body) {
|
|
110
|
+
var url = "<span class=\"math-inline\">{this.global.getUrl(endpoint)}/</span>{id}";
|
|
111
|
+
var options = this.global.buildAuth();
|
|
112
|
+
return this.http.put(url, body, options);
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Realiza una petición DELETE genérica y autenticada.
|
|
116
|
+
* @param endpoint El endpoint del API
|
|
117
|
+
* @param id El ID del recurso a eliminar
|
|
118
|
+
*/
|
|
119
|
+
ApiService.prototype.delete = function (endpoint, id) {
|
|
120
|
+
var url = "<span class=\"math-inline\">{this.global.getUrl(endpoint)}/</span>{id}";
|
|
121
|
+
var options = this.global.buildAuth();
|
|
122
|
+
return this.http.delete(url, options);
|
|
123
|
+
};
|
|
124
|
+
return ApiService;
|
|
125
|
+
}());
|
|
126
|
+
/** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(GlobalService)); };
|
|
127
|
+
/** @nocollapse */ ApiService.ɵprov = i0.ɵɵdefineInjectable({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' });
|
|
128
|
+
/*@__PURE__*/ (function () {
|
|
129
|
+
i0.ɵsetClassMetadata(ApiService, [{
|
|
130
|
+
type: i0.Injectable,
|
|
131
|
+
args: [{
|
|
132
|
+
providedIn: 'root'
|
|
133
|
+
}]
|
|
134
|
+
}], function () { return [{ type: i1.HttpClient }, { type: GlobalService }]; }, null);
|
|
135
|
+
})();
|
|
6
136
|
|
|
7
137
|
/******************************************************************************
|
|
8
138
|
Copyright (c) Microsoft Corporation.
|
|
@@ -512,121 +642,32 @@
|
|
|
512
642
|
__rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
|
|
513
643
|
};
|
|
514
644
|
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
this.
|
|
645
|
+
var CuentaContableService = /** @class */ (function () {
|
|
646
|
+
function CuentaContableService(api) {
|
|
647
|
+
this.api = api;
|
|
648
|
+
this.endpoint = 'cuentaContable';
|
|
518
649
|
}
|
|
519
|
-
|
|
520
|
-
this.
|
|
521
|
-
localStorage.setItem('config', JSON.stringify(data));
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
GlobalService.prototype.obtieneConfiguracion = function () {
|
|
525
|
-
return JSON.parse(localStorage.getItem('config'));
|
|
650
|
+
CuentaContableService.prototype.getAll = function (params) {
|
|
651
|
+
return this.api.get(this.endpoint, params);
|
|
526
652
|
};
|
|
527
|
-
|
|
528
|
-
return this.
|
|
529
|
-
};
|
|
530
|
-
GlobalService.prototype.auth = function (params) {
|
|
531
|
-
return this.http.post(this.getUrl() + '/login', params);
|
|
532
|
-
};
|
|
533
|
-
GlobalService.prototype.getUsuarioActual = function () {
|
|
534
|
-
return this.http.get(this.getUrl() + '/usuario/obtieneUsuarioActual', this.buildAuth());
|
|
535
|
-
};
|
|
536
|
-
GlobalService.prototype.buildAuth = function () {
|
|
537
|
-
var data = this.getUsuario();
|
|
538
|
-
return {
|
|
539
|
-
headers: new i1.HttpHeaders({
|
|
540
|
-
'Authorization': data.token_type + ' ' + data.access_token,
|
|
541
|
-
'Content-Type': 'application/json',
|
|
542
|
-
'Accept': 'application/json'
|
|
543
|
-
})
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
GlobalService.prototype.validateEndPoint = function () {
|
|
547
|
-
return this.http.get(this.getUrl() + '/validate', this.buildAuth());
|
|
548
|
-
};
|
|
549
|
-
GlobalService.prototype.closeEndPoint = function () {
|
|
550
|
-
localStorage.removeItem('usuario');
|
|
551
|
-
this.setUsuarioInstance(null);
|
|
552
|
-
};
|
|
553
|
-
GlobalService.prototype.getUsuario = function () {
|
|
554
|
-
return JSON.parse(localStorage.getItem('usuario'));
|
|
555
|
-
};
|
|
556
|
-
GlobalService.prototype.setUsuarioInstance = function (usuarioInstance) {
|
|
557
|
-
this.usuarioInstance = usuarioInstance;
|
|
558
|
-
};
|
|
559
|
-
GlobalService.prototype.getLang = function () {
|
|
560
|
-
var lang = localStorage.getItem('lang');
|
|
561
|
-
return lang ? lang : 'es';
|
|
562
|
-
};
|
|
563
|
-
GlobalService.prototype.setModulo = function (modulo) {
|
|
564
|
-
return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
|
|
565
|
-
};
|
|
566
|
-
return GlobalService;
|
|
567
|
-
}());
|
|
568
|
-
|
|
569
|
-
var CrudService = /** @class */ (function (_super) {
|
|
570
|
-
__extends(CrudService, _super);
|
|
571
|
-
function CrudService(httpCliente, url) {
|
|
572
|
-
var _this = _super.call(this, httpCliente) || this;
|
|
573
|
-
_this.httpCliente = httpCliente;
|
|
574
|
-
_this.url = url;
|
|
575
|
-
_this.urlComponente = _this.url;
|
|
576
|
-
return _this;
|
|
577
|
-
}
|
|
578
|
-
//Functions for ResourcesCrud [{ param: "max", value: 10}]
|
|
579
|
-
CrudService.prototype.serializeParams = function (params) {
|
|
580
|
-
var serializeString = '';
|
|
581
|
-
params.map(function (e, index) {
|
|
582
|
-
if (e.value !== undefined)
|
|
583
|
-
serializeString += ((index == 0) ? '?' : '&') + e.param + '=' + e.value;
|
|
584
|
-
});
|
|
585
|
-
return serializeString;
|
|
586
|
-
};
|
|
587
|
-
CrudService.prototype.getHttp = function () {
|
|
588
|
-
return this.httpCliente;
|
|
589
|
-
};
|
|
590
|
-
CrudService.prototype.geturl = function () {
|
|
591
|
-
return this.getUrl(this.urlComponente);
|
|
592
|
-
};
|
|
593
|
-
CrudService.prototype.getBaseUrl = function () {
|
|
594
|
-
return this.getUrl('');
|
|
595
|
-
};
|
|
596
|
-
CrudService.prototype.getByUrl = function (url, params) {
|
|
597
|
-
return this.httpCliente.get(this.getUrl(url) + this.serializeParams(params), this.buildAuth());
|
|
598
|
-
};
|
|
599
|
-
CrudService.prototype.getAll = function (params) {
|
|
600
|
-
return this.httpCliente.get(this.getUrl(this.urlComponente) + (params ? (this.serializeParams(params)) : ('')), this.buildAuth());
|
|
653
|
+
CuentaContableService.prototype.obtieneCuentasContablesRecursivo = function () {
|
|
654
|
+
return this.api.get(this.endpoint + "/obtieneCuentasContablesRecursivo");
|
|
601
655
|
};
|
|
602
|
-
|
|
603
|
-
return this.
|
|
656
|
+
CuentaContableService.prototype.get = function (id) {
|
|
657
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
604
658
|
};
|
|
605
|
-
|
|
606
|
-
return this.
|
|
659
|
+
CuentaContableService.prototype.save = function (obj) {
|
|
660
|
+
return this.api.post(this.endpoint, obj);
|
|
607
661
|
};
|
|
608
|
-
|
|
609
|
-
return this.
|
|
662
|
+
CuentaContableService.prototype.update = function (obj) {
|
|
663
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
610
664
|
};
|
|
611
|
-
|
|
612
|
-
return this.
|
|
613
|
-
};
|
|
614
|
-
return CrudService;
|
|
615
|
-
}(GlobalService));
|
|
616
|
-
|
|
617
|
-
var CuentaContableService = /** @class */ (function (_super) {
|
|
618
|
-
__extends(CuentaContableService, _super);
|
|
619
|
-
function CuentaContableService(httpClient) {
|
|
620
|
-
var _this = _super.call(this, httpClient, 'cuentaContable') || this;
|
|
621
|
-
_this.httpClient = httpClient;
|
|
622
|
-
return _this;
|
|
623
|
-
}
|
|
624
|
-
CuentaContableService.prototype.obtieneCuentasContablesRecursivo = function () {
|
|
625
|
-
return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
|
|
665
|
+
CuentaContableService.prototype.delete = function (id) {
|
|
666
|
+
return this.api.delete(this.endpoint, id);
|
|
626
667
|
};
|
|
627
668
|
return CuentaContableService;
|
|
628
|
-
}(
|
|
629
|
-
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(i0.ɵɵinject(
|
|
669
|
+
}());
|
|
670
|
+
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(i0.ɵɵinject(ApiService)); };
|
|
630
671
|
/** @nocollapse */ CuentaContableService.ɵprov = i0.ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
|
|
631
672
|
/*@__PURE__*/ (function () {
|
|
632
673
|
i0.ɵsetClassMetadata(CuentaContableService, [{
|
|
@@ -634,7 +675,7 @@
|
|
|
634
675
|
args: [{
|
|
635
676
|
providedIn: 'root'
|
|
636
677
|
}]
|
|
637
|
-
}], function () { return [{ type:
|
|
678
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
638
679
|
})();
|
|
639
680
|
|
|
640
681
|
function CclistaComponent_ng_template_3_Template(rf, ctx) {
|
|
@@ -1960,16 +2001,29 @@
|
|
|
1960
2001
|
}], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null);
|
|
1961
2002
|
})();
|
|
1962
2003
|
|
|
1963
|
-
var SessionCajaService = /** @class */ (function (
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
_this.httpClient = httpClient;
|
|
1968
|
-
return _this;
|
|
2004
|
+
var SessionCajaService = /** @class */ (function () {
|
|
2005
|
+
function SessionCajaService(api) {
|
|
2006
|
+
this.api = api;
|
|
2007
|
+
this.endpoint = 'sessionCaja';
|
|
1969
2008
|
}
|
|
2009
|
+
SessionCajaService.prototype.getAll = function (params) {
|
|
2010
|
+
return this.api.get(this.endpoint, params);
|
|
2011
|
+
};
|
|
2012
|
+
SessionCajaService.prototype.get = function (id) {
|
|
2013
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
2014
|
+
};
|
|
2015
|
+
SessionCajaService.prototype.save = function (obj) {
|
|
2016
|
+
return this.api.post(this.endpoint, obj);
|
|
2017
|
+
};
|
|
2018
|
+
SessionCajaService.prototype.update = function (obj) {
|
|
2019
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2020
|
+
};
|
|
2021
|
+
SessionCajaService.prototype.delete = function (id) {
|
|
2022
|
+
return this.api.delete(this.endpoint, id);
|
|
2023
|
+
};
|
|
1970
2024
|
return SessionCajaService;
|
|
1971
|
-
}(
|
|
1972
|
-
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(i0.ɵɵinject(
|
|
2025
|
+
}());
|
|
2026
|
+
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(i0.ɵɵinject(ApiService)); };
|
|
1973
2027
|
/** @nocollapse */ SessionCajaService.ɵprov = i0.ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
|
|
1974
2028
|
/*@__PURE__*/ (function () {
|
|
1975
2029
|
i0.ɵsetClassMetadata(SessionCajaService, [{
|
|
@@ -1977,7 +2031,7 @@
|
|
|
1977
2031
|
args: [{
|
|
1978
2032
|
providedIn: 'root'
|
|
1979
2033
|
}]
|
|
1980
|
-
}], function () { return [{ type:
|
|
2034
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
1981
2035
|
})();
|
|
1982
2036
|
|
|
1983
2037
|
function SessionCreateComponent_ng_template_1_Template(rf, ctx) {
|
|
@@ -2202,17 +2256,32 @@
|
|
|
2202
2256
|
}] });
|
|
2203
2257
|
})();
|
|
2204
2258
|
|
|
2205
|
-
var ClienteService = /** @class */ (function (
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2259
|
+
var ClienteService = /** @class */ (function () {
|
|
2260
|
+
function ClienteService(api) {
|
|
2261
|
+
this.api = api;
|
|
2262
|
+
this.endpoint = 'cliente';
|
|
2209
2263
|
}
|
|
2264
|
+
ClienteService.prototype.getAll = function (params) {
|
|
2265
|
+
return this.api.get(this.endpoint, params);
|
|
2266
|
+
};
|
|
2267
|
+
ClienteService.prototype.get = function (id) {
|
|
2268
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
2269
|
+
};
|
|
2270
|
+
ClienteService.prototype.save = function (obj) {
|
|
2271
|
+
return this.api.post(this.endpoint, obj);
|
|
2272
|
+
};
|
|
2273
|
+
ClienteService.prototype.update = function (obj) {
|
|
2274
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2275
|
+
};
|
|
2276
|
+
ClienteService.prototype.delete = function (id) {
|
|
2277
|
+
return this.api.delete(this.endpoint, id);
|
|
2278
|
+
};
|
|
2210
2279
|
ClienteService.prototype.validar_archivos_bss = function (id) {
|
|
2211
|
-
return this.
|
|
2280
|
+
return this.api.get(this.endpoint + "/validarClienteBss/" + id);
|
|
2212
2281
|
};
|
|
2213
2282
|
return ClienteService;
|
|
2214
|
-
}(
|
|
2215
|
-
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(
|
|
2283
|
+
}());
|
|
2284
|
+
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(ApiService)); };
|
|
2216
2285
|
/** @nocollapse */ ClienteService.ɵprov = i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
|
|
2217
2286
|
/*@__PURE__*/ (function () {
|
|
2218
2287
|
i0.ɵsetClassMetadata(ClienteService, [{
|
|
@@ -2220,7 +2289,7 @@
|
|
|
2220
2289
|
args: [{
|
|
2221
2290
|
providedIn: 'root'
|
|
2222
2291
|
}]
|
|
2223
|
-
}], function () { return [{ type:
|
|
2292
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
2224
2293
|
})();
|
|
2225
2294
|
|
|
2226
2295
|
var PaginateService = /** @class */ (function () {
|
|
@@ -2557,16 +2626,29 @@
|
|
|
2557
2626
|
return Proveedor;
|
|
2558
2627
|
}());
|
|
2559
2628
|
|
|
2560
|
-
var ProveedorService = /** @class */ (function (
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
_this.httpClient = httpClient;
|
|
2565
|
-
return _this;
|
|
2629
|
+
var ProveedorService = /** @class */ (function () {
|
|
2630
|
+
function ProveedorService(api) {
|
|
2631
|
+
this.api = api;
|
|
2632
|
+
this.endpoint = 'proveedor';
|
|
2566
2633
|
}
|
|
2634
|
+
ProveedorService.prototype.getAll = function (params) {
|
|
2635
|
+
return this.api.get(this.endpoint, params);
|
|
2636
|
+
};
|
|
2637
|
+
ProveedorService.prototype.get = function (id) {
|
|
2638
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
2639
|
+
};
|
|
2640
|
+
ProveedorService.prototype.save = function (obj) {
|
|
2641
|
+
return this.api.post(this.endpoint, obj);
|
|
2642
|
+
};
|
|
2643
|
+
ProveedorService.prototype.update = function (obj) {
|
|
2644
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2645
|
+
};
|
|
2646
|
+
ProveedorService.prototype.delete = function (id) {
|
|
2647
|
+
return this.api.delete(this.endpoint, id);
|
|
2648
|
+
};
|
|
2567
2649
|
return ProveedorService;
|
|
2568
|
-
}(
|
|
2569
|
-
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(
|
|
2650
|
+
}());
|
|
2651
|
+
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(ApiService)); };
|
|
2570
2652
|
/** @nocollapse */ ProveedorService.ɵprov = i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
|
|
2571
2653
|
/*@__PURE__*/ (function () {
|
|
2572
2654
|
i0.ɵsetClassMetadata(ProveedorService, [{
|
|
@@ -2574,7 +2656,7 @@
|
|
|
2574
2656
|
args: [{
|
|
2575
2657
|
providedIn: 'root'
|
|
2576
2658
|
}]
|
|
2577
|
-
}], function () { return [{ type:
|
|
2659
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
2578
2660
|
})();
|
|
2579
2661
|
|
|
2580
2662
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) {
|
|
@@ -2722,18 +2804,19 @@
|
|
|
2722
2804
|
}] });
|
|
2723
2805
|
})();
|
|
2724
2806
|
|
|
2725
|
-
var StockService = /** @class */ (function (
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
_this.httpClient = httpClient;
|
|
2730
|
-
return _this;
|
|
2807
|
+
var StockService = /** @class */ (function () {
|
|
2808
|
+
function StockService(api) {
|
|
2809
|
+
this.api = api;
|
|
2810
|
+
this.endpoint = 'stock';
|
|
2731
2811
|
}
|
|
2812
|
+
StockService.prototype.getAll = function (params) {
|
|
2813
|
+
return this.api.get(this.endpoint, params);
|
|
2814
|
+
};
|
|
2732
2815
|
StockService.prototype.obtenerExistenciasArticulosDescripcion = function (parametros, params) {
|
|
2733
2816
|
var _this = this;
|
|
2734
|
-
var url = this.
|
|
2817
|
+
var url = this.endpoint + "/obtenerExistenciasArticulos";
|
|
2735
2818
|
var promesa = new Promise(function (resolve, reject) {
|
|
2736
|
-
_this.
|
|
2819
|
+
_this.api.post(url, parametros).subscribe(function (data) {
|
|
2737
2820
|
resolve(data);
|
|
2738
2821
|
}, function (err) {
|
|
2739
2822
|
reject(err);
|
|
@@ -2742,8 +2825,8 @@
|
|
|
2742
2825
|
return promesa;
|
|
2743
2826
|
};
|
|
2744
2827
|
return StockService;
|
|
2745
|
-
}(
|
|
2746
|
-
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(i0.ɵɵinject(
|
|
2828
|
+
}());
|
|
2829
|
+
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(i0.ɵɵinject(ApiService)); };
|
|
2747
2830
|
/** @nocollapse */ StockService.ɵprov = i0.ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
|
|
2748
2831
|
/*@__PURE__*/ (function () {
|
|
2749
2832
|
i0.ɵsetClassMetadata(StockService, [{
|
|
@@ -2751,23 +2834,35 @@
|
|
|
2751
2834
|
args: [{
|
|
2752
2835
|
providedIn: 'root'
|
|
2753
2836
|
}]
|
|
2754
|
-
}], function () { return [{ type:
|
|
2837
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
2755
2838
|
})();
|
|
2756
2839
|
|
|
2757
|
-
var AlmacenService = /** @class */ (function (
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
_this.httpClient = httpClient;
|
|
2762
|
-
return _this;
|
|
2840
|
+
var AlmacenService = /** @class */ (function () {
|
|
2841
|
+
function AlmacenService(api) {
|
|
2842
|
+
this.api = api;
|
|
2843
|
+
this.endpoint = 'almacen';
|
|
2763
2844
|
}
|
|
2845
|
+
AlmacenService.prototype.getAll = function (params) {
|
|
2846
|
+
return this.api.get(this.endpoint, params);
|
|
2847
|
+
};
|
|
2764
2848
|
AlmacenService.prototype.obtenerAlmacenEmpresa = function () {
|
|
2765
|
-
|
|
2766
|
-
|
|
2849
|
+
return this.api.get(this.endpoint + "/obtenerAlmacenEmpresa");
|
|
2850
|
+
};
|
|
2851
|
+
AlmacenService.prototype.get = function (id) {
|
|
2852
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
2853
|
+
};
|
|
2854
|
+
AlmacenService.prototype.save = function (obj) {
|
|
2855
|
+
return this.api.post(this.endpoint, obj);
|
|
2856
|
+
};
|
|
2857
|
+
AlmacenService.prototype.update = function (obj) {
|
|
2858
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2859
|
+
};
|
|
2860
|
+
AlmacenService.prototype.delete = function (id) {
|
|
2861
|
+
return this.api.delete(this.endpoint, id);
|
|
2767
2862
|
};
|
|
2768
2863
|
return AlmacenService;
|
|
2769
|
-
}(
|
|
2770
|
-
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(i0.ɵɵinject(
|
|
2864
|
+
}());
|
|
2865
|
+
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(i0.ɵɵinject(ApiService)); };
|
|
2771
2866
|
/** @nocollapse */ AlmacenService.ɵprov = i0.ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
|
|
2772
2867
|
/*@__PURE__*/ (function () {
|
|
2773
2868
|
i0.ɵsetClassMetadata(AlmacenService, [{
|
|
@@ -2775,23 +2870,36 @@
|
|
|
2775
2870
|
args: [{
|
|
2776
2871
|
providedIn: 'root'
|
|
2777
2872
|
}]
|
|
2778
|
-
}], function () { return [{ type:
|
|
2873
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
2779
2874
|
})();
|
|
2780
2875
|
|
|
2781
|
-
var ArticuloInformacionService = /** @class */ (function (
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
_this.httpClient = httpClient;
|
|
2786
|
-
return _this;
|
|
2876
|
+
var ArticuloInformacionService = /** @class */ (function () {
|
|
2877
|
+
function ArticuloInformacionService(api) {
|
|
2878
|
+
this.api = api;
|
|
2879
|
+
this.endpoint = 'articulo';
|
|
2787
2880
|
}
|
|
2881
|
+
ArticuloInformacionService.prototype.getAll = function (params) {
|
|
2882
|
+
return this.api.get(this.endpoint, params);
|
|
2883
|
+
};
|
|
2788
2884
|
ArticuloInformacionService.prototype.obtenerExistencias = function (articulo) {
|
|
2789
2885
|
var uRL = "/existenciasArticulo/" + articulo;
|
|
2790
|
-
return this.
|
|
2886
|
+
return this.api.get("" + this.endpoint + uRL);
|
|
2887
|
+
};
|
|
2888
|
+
ArticuloInformacionService.prototype.get = function (id) {
|
|
2889
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
2890
|
+
};
|
|
2891
|
+
ArticuloInformacionService.prototype.save = function (obj) {
|
|
2892
|
+
return this.api.post(this.endpoint, obj);
|
|
2893
|
+
};
|
|
2894
|
+
ArticuloInformacionService.prototype.update = function (obj) {
|
|
2895
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2896
|
+
};
|
|
2897
|
+
ArticuloInformacionService.prototype.delete = function (id) {
|
|
2898
|
+
return this.api.delete(this.endpoint, id);
|
|
2791
2899
|
};
|
|
2792
2900
|
return ArticuloInformacionService;
|
|
2793
|
-
}(
|
|
2794
|
-
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(i0.ɵɵinject(
|
|
2901
|
+
}());
|
|
2902
|
+
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(i0.ɵɵinject(ApiService)); };
|
|
2795
2903
|
/** @nocollapse */ ArticuloInformacionService.ɵprov = i0.ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
|
|
2796
2904
|
/*@__PURE__*/ (function () {
|
|
2797
2905
|
i0.ɵsetClassMetadata(ArticuloInformacionService, [{
|
|
@@ -2799,7 +2907,7 @@
|
|
|
2799
2907
|
args: [{
|
|
2800
2908
|
providedIn: 'root'
|
|
2801
2909
|
}]
|
|
2802
|
-
}], function () { return [{ type:
|
|
2910
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
2803
2911
|
})();
|
|
2804
2912
|
|
|
2805
2913
|
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) {
|
|
@@ -3547,16 +3655,29 @@
|
|
|
3547
3655
|
}] });
|
|
3548
3656
|
})();
|
|
3549
3657
|
|
|
3550
|
-
var AcreedorService = /** @class */ (function (
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
_this.httpClient = httpClient;
|
|
3555
|
-
return _this;
|
|
3658
|
+
var AcreedorService = /** @class */ (function () {
|
|
3659
|
+
function AcreedorService(api) {
|
|
3660
|
+
this.api = api;
|
|
3661
|
+
this.endpoint = 'acreedor';
|
|
3556
3662
|
}
|
|
3663
|
+
AcreedorService.prototype.getAll = function (params) {
|
|
3664
|
+
return this.api.get(this.endpoint, params);
|
|
3665
|
+
};
|
|
3666
|
+
AcreedorService.prototype.get = function (id) {
|
|
3667
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
3668
|
+
};
|
|
3669
|
+
AcreedorService.prototype.save = function (obj) {
|
|
3670
|
+
return this.api.post(this.endpoint, obj);
|
|
3671
|
+
};
|
|
3672
|
+
AcreedorService.prototype.update = function (obj) {
|
|
3673
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3674
|
+
};
|
|
3675
|
+
AcreedorService.prototype.delete = function (id) {
|
|
3676
|
+
return this.api.delete(this.endpoint, id);
|
|
3677
|
+
};
|
|
3557
3678
|
return AcreedorService;
|
|
3558
|
-
}(
|
|
3559
|
-
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(
|
|
3679
|
+
}());
|
|
3680
|
+
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(ApiService)); };
|
|
3560
3681
|
/** @nocollapse */ AcreedorService.ɵprov = i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
|
|
3561
3682
|
/*@__PURE__*/ (function () {
|
|
3562
3683
|
i0.ɵsetClassMetadata(AcreedorService, [{
|
|
@@ -3564,7 +3685,7 @@
|
|
|
3564
3685
|
args: [{
|
|
3565
3686
|
providedIn: 'root'
|
|
3566
3687
|
}]
|
|
3567
|
-
}], function () { return [{ type:
|
|
3688
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
3568
3689
|
})();
|
|
3569
3690
|
|
|
3570
3691
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) {
|
|
@@ -4072,14 +4193,29 @@
|
|
|
4072
4193
|
}], function () { return [{ type: i1$1.ToastrService }]; }, null);
|
|
4073
4194
|
})();
|
|
4074
4195
|
|
|
4075
|
-
var PersonaMoralService = /** @class */ (function (
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4196
|
+
var PersonaMoralService = /** @class */ (function () {
|
|
4197
|
+
function PersonaMoralService(api) {
|
|
4198
|
+
this.api = api;
|
|
4199
|
+
this.endpoint = 'personaMoral';
|
|
4079
4200
|
}
|
|
4201
|
+
PersonaMoralService.prototype.getAll = function (params) {
|
|
4202
|
+
return this.api.get(this.endpoint, params);
|
|
4203
|
+
};
|
|
4204
|
+
PersonaMoralService.prototype.get = function (id) {
|
|
4205
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4206
|
+
};
|
|
4207
|
+
PersonaMoralService.prototype.save = function (obj) {
|
|
4208
|
+
return this.api.post(this.endpoint, obj);
|
|
4209
|
+
};
|
|
4210
|
+
PersonaMoralService.prototype.update = function (obj) {
|
|
4211
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4212
|
+
};
|
|
4213
|
+
PersonaMoralService.prototype.delete = function (id) {
|
|
4214
|
+
return this.api.delete(this.endpoint, id);
|
|
4215
|
+
};
|
|
4080
4216
|
return PersonaMoralService;
|
|
4081
|
-
}(
|
|
4082
|
-
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(i0.ɵɵinject(
|
|
4217
|
+
}());
|
|
4218
|
+
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(i0.ɵɵinject(ApiService)); };
|
|
4083
4219
|
/** @nocollapse */ PersonaMoralService.ɵprov = i0.ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
|
|
4084
4220
|
/*@__PURE__*/ (function () {
|
|
4085
4221
|
i0.ɵsetClassMetadata(PersonaMoralService, [{
|
|
@@ -4087,7 +4223,7 @@
|
|
|
4087
4223
|
args: [{
|
|
4088
4224
|
providedIn: 'root'
|
|
4089
4225
|
}]
|
|
4090
|
-
}], function () { return [{ type:
|
|
4226
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4091
4227
|
})();
|
|
4092
4228
|
|
|
4093
4229
|
var CanActivateGuard = /** @class */ (function () {
|
|
@@ -4115,16 +4251,29 @@
|
|
|
4115
4251
|
}], function () { return [{ type: ControlAccesoService }]; }, null);
|
|
4116
4252
|
})();
|
|
4117
4253
|
|
|
4118
|
-
var CatalogoAdicionalService = /** @class */ (function (
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
_this.httpClient = httpClient;
|
|
4123
|
-
return _this;
|
|
4254
|
+
var CatalogoAdicionalService = /** @class */ (function () {
|
|
4255
|
+
function CatalogoAdicionalService(api) {
|
|
4256
|
+
this.api = api;
|
|
4257
|
+
this.endpoint = 'catalogoAdicional';
|
|
4124
4258
|
}
|
|
4259
|
+
CatalogoAdicionalService.prototype.getAll = function (params) {
|
|
4260
|
+
return this.api.get(this.endpoint, params);
|
|
4261
|
+
};
|
|
4262
|
+
CatalogoAdicionalService.prototype.get = function (id) {
|
|
4263
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4264
|
+
};
|
|
4265
|
+
CatalogoAdicionalService.prototype.save = function (obj) {
|
|
4266
|
+
return this.api.post(this.endpoint, obj);
|
|
4267
|
+
};
|
|
4268
|
+
CatalogoAdicionalService.prototype.update = function (obj) {
|
|
4269
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4270
|
+
};
|
|
4271
|
+
CatalogoAdicionalService.prototype.delete = function (id) {
|
|
4272
|
+
return this.api.delete(this.endpoint, id);
|
|
4273
|
+
};
|
|
4125
4274
|
return CatalogoAdicionalService;
|
|
4126
|
-
}(
|
|
4127
|
-
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(i0.ɵɵinject(
|
|
4275
|
+
}());
|
|
4276
|
+
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(i0.ɵɵinject(ApiService)); };
|
|
4128
4277
|
/** @nocollapse */ CatalogoAdicionalService.ɵprov = i0.ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
|
|
4129
4278
|
/*@__PURE__*/ (function () {
|
|
4130
4279
|
i0.ɵsetClassMetadata(CatalogoAdicionalService, [{
|
|
@@ -4132,7 +4281,7 @@
|
|
|
4132
4281
|
args: [{
|
|
4133
4282
|
providedIn: 'root'
|
|
4134
4283
|
}]
|
|
4135
|
-
}], function () { return [{ type:
|
|
4284
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4136
4285
|
})();
|
|
4137
4286
|
|
|
4138
4287
|
var Authenticated = /** @class */ (function () {
|
|
@@ -4269,28 +4418,35 @@
|
|
|
4269
4418
|
return Agente;
|
|
4270
4419
|
}());
|
|
4271
4420
|
|
|
4272
|
-
var AgenteService = /** @class */ (function (
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
_this.httpClient = httpClient;
|
|
4277
|
-
return _this;
|
|
4421
|
+
var AgenteService = /** @class */ (function () {
|
|
4422
|
+
function AgenteService(api) {
|
|
4423
|
+
this.api = api;
|
|
4424
|
+
this.endpoint = 'agente';
|
|
4278
4425
|
}
|
|
4279
4426
|
AgenteService.prototype.saveUsuarioAgente = function (usuario) {
|
|
4280
|
-
|
|
4281
|
-
return this.getHttp().post(url, usuario, this.buildAuth());
|
|
4427
|
+
return this.api.post(this.endpoint + "/usuario", usuario);
|
|
4282
4428
|
};
|
|
4283
4429
|
AgenteService.prototype.getUsuarioAgente = function (id) {
|
|
4284
|
-
|
|
4285
|
-
return this.getHttp().get(url, this.buildAuth());
|
|
4430
|
+
return this.api.get(this.endpoint + "/usuario/" + id);
|
|
4286
4431
|
};
|
|
4287
4432
|
AgenteService.prototype.obtenerAgenteEmpresa = function () {
|
|
4288
|
-
|
|
4289
|
-
|
|
4433
|
+
return this.api.get(this.endpoint + "/obtenerAgenteEmpresa");
|
|
4434
|
+
};
|
|
4435
|
+
AgenteService.prototype.get = function (id) {
|
|
4436
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4437
|
+
};
|
|
4438
|
+
AgenteService.prototype.save = function (obj) {
|
|
4439
|
+
return this.api.post(this.endpoint, obj);
|
|
4440
|
+
};
|
|
4441
|
+
AgenteService.prototype.update = function (obj) {
|
|
4442
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4443
|
+
};
|
|
4444
|
+
AgenteService.prototype.delete = function (id) {
|
|
4445
|
+
return this.api.delete(this.endpoint, id);
|
|
4290
4446
|
};
|
|
4291
4447
|
return AgenteService;
|
|
4292
|
-
}(
|
|
4293
|
-
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(i0.ɵɵinject(
|
|
4448
|
+
}());
|
|
4449
|
+
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(i0.ɵɵinject(ApiService)); };
|
|
4294
4450
|
/** @nocollapse */ AgenteService.ɵprov = i0.ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
|
|
4295
4451
|
/*@__PURE__*/ (function () {
|
|
4296
4452
|
i0.ɵsetClassMetadata(AgenteService, [{
|
|
@@ -4298,7 +4454,7 @@
|
|
|
4298
4454
|
args: [{
|
|
4299
4455
|
providedIn: 'root'
|
|
4300
4456
|
}]
|
|
4301
|
-
}], function () { return [{ type:
|
|
4457
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4302
4458
|
})();
|
|
4303
4459
|
|
|
4304
4460
|
var Almacen = /** @class */ (function () {
|
|
@@ -4320,14 +4476,29 @@
|
|
|
4320
4476
|
return Banco;
|
|
4321
4477
|
}());
|
|
4322
4478
|
|
|
4323
|
-
var BancoService = /** @class */ (function (
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4479
|
+
var BancoService = /** @class */ (function () {
|
|
4480
|
+
function BancoService(api) {
|
|
4481
|
+
this.api = api;
|
|
4482
|
+
this.endpoint = 'banco';
|
|
4327
4483
|
}
|
|
4484
|
+
BancoService.prototype.getAll = function (params) {
|
|
4485
|
+
return this.api.get(this.endpoint, params);
|
|
4486
|
+
};
|
|
4487
|
+
BancoService.prototype.get = function (id) {
|
|
4488
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4489
|
+
};
|
|
4490
|
+
BancoService.prototype.save = function (obj) {
|
|
4491
|
+
return this.api.post(this.endpoint, obj);
|
|
4492
|
+
};
|
|
4493
|
+
BancoService.prototype.update = function (obj) {
|
|
4494
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4495
|
+
};
|
|
4496
|
+
BancoService.prototype.delete = function (id) {
|
|
4497
|
+
return this.api.delete(this.endpoint, id);
|
|
4498
|
+
};
|
|
4328
4499
|
return BancoService;
|
|
4329
|
-
}(
|
|
4330
|
-
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(i0.ɵɵinject(
|
|
4500
|
+
}());
|
|
4501
|
+
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(i0.ɵɵinject(ApiService)); };
|
|
4331
4502
|
/** @nocollapse */ BancoService.ɵprov = i0.ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
|
|
4332
4503
|
/*@__PURE__*/ (function () {
|
|
4333
4504
|
i0.ɵsetClassMetadata(BancoService, [{
|
|
@@ -4335,7 +4506,7 @@
|
|
|
4335
4506
|
args: [{
|
|
4336
4507
|
providedIn: 'root'
|
|
4337
4508
|
}]
|
|
4338
|
-
}], function () { return [{ type:
|
|
4509
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4339
4510
|
})();
|
|
4340
4511
|
|
|
4341
4512
|
var CatalogoTipo = /** @class */ (function () {
|
|
@@ -4344,14 +4515,29 @@
|
|
|
4344
4515
|
return CatalogoTipo;
|
|
4345
4516
|
}());
|
|
4346
4517
|
|
|
4347
|
-
var CatalogoTipoService = /** @class */ (function (
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4518
|
+
var CatalogoTipoService = /** @class */ (function () {
|
|
4519
|
+
function CatalogoTipoService(api) {
|
|
4520
|
+
this.api = api;
|
|
4521
|
+
this.endpoint = 'catalogoTipo';
|
|
4351
4522
|
}
|
|
4523
|
+
CatalogoTipoService.prototype.getAll = function (params) {
|
|
4524
|
+
return this.api.get(this.endpoint, params);
|
|
4525
|
+
};
|
|
4526
|
+
CatalogoTipoService.prototype.get = function (id) {
|
|
4527
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4528
|
+
};
|
|
4529
|
+
CatalogoTipoService.prototype.save = function (obj) {
|
|
4530
|
+
return this.api.post(this.endpoint, obj);
|
|
4531
|
+
};
|
|
4532
|
+
CatalogoTipoService.prototype.update = function (obj) {
|
|
4533
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4534
|
+
};
|
|
4535
|
+
CatalogoTipoService.prototype.delete = function (id) {
|
|
4536
|
+
return this.api.delete(this.endpoint, id);
|
|
4537
|
+
};
|
|
4352
4538
|
return CatalogoTipoService;
|
|
4353
|
-
}(
|
|
4354
|
-
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(i0.ɵɵinject(
|
|
4539
|
+
}());
|
|
4540
|
+
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(i0.ɵɵinject(ApiService)); };
|
|
4355
4541
|
/** @nocollapse */ CatalogoTipoService.ɵprov = i0.ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
|
|
4356
4542
|
/*@__PURE__*/ (function () {
|
|
4357
4543
|
i0.ɵsetClassMetadata(CatalogoTipoService, [{
|
|
@@ -4359,17 +4545,32 @@
|
|
|
4359
4545
|
args: [{
|
|
4360
4546
|
providedIn: 'root'
|
|
4361
4547
|
}]
|
|
4362
|
-
}], function () { return [{ type:
|
|
4548
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4363
4549
|
})();
|
|
4364
4550
|
|
|
4365
|
-
var ClasificadorTipoService = /** @class */ (function (
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4551
|
+
var ClasificadorTipoService = /** @class */ (function () {
|
|
4552
|
+
function ClasificadorTipoService(api) {
|
|
4553
|
+
this.api = api;
|
|
4554
|
+
this.endpoint = 'clasificadorTipo';
|
|
4369
4555
|
}
|
|
4556
|
+
ClasificadorTipoService.prototype.getAll = function (params) {
|
|
4557
|
+
return this.api.get(this.endpoint, params);
|
|
4558
|
+
};
|
|
4559
|
+
ClasificadorTipoService.prototype.get = function (id) {
|
|
4560
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4561
|
+
};
|
|
4562
|
+
ClasificadorTipoService.prototype.save = function (obj) {
|
|
4563
|
+
return this.api.post(this.endpoint, obj);
|
|
4564
|
+
};
|
|
4565
|
+
ClasificadorTipoService.prototype.update = function (obj) {
|
|
4566
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4567
|
+
};
|
|
4568
|
+
ClasificadorTipoService.prototype.delete = function (id) {
|
|
4569
|
+
return this.api.delete(this.endpoint, id);
|
|
4570
|
+
};
|
|
4370
4571
|
return ClasificadorTipoService;
|
|
4371
|
-
}(
|
|
4372
|
-
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(i0.ɵɵinject(
|
|
4572
|
+
}());
|
|
4573
|
+
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(i0.ɵɵinject(ApiService)); };
|
|
4373
4574
|
/** @nocollapse */ ClasificadorTipoService.ɵprov = i0.ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
|
|
4374
4575
|
/*@__PURE__*/ (function () {
|
|
4375
4576
|
i0.ɵsetClassMetadata(ClasificadorTipoService, [{
|
|
@@ -4377,7 +4578,7 @@
|
|
|
4377
4578
|
args: [{
|
|
4378
4579
|
providedIn: 'root'
|
|
4379
4580
|
}]
|
|
4380
|
-
}], function () { return [{ type:
|
|
4581
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4381
4582
|
})();
|
|
4382
4583
|
|
|
4383
4584
|
var ClaveMovimiento = /** @class */ (function () {
|
|
@@ -4386,14 +4587,29 @@
|
|
|
4386
4587
|
return ClaveMovimiento;
|
|
4387
4588
|
}());
|
|
4388
4589
|
|
|
4389
|
-
var ClaveMovimientoService = /** @class */ (function (
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4590
|
+
var ClaveMovimientoService = /** @class */ (function () {
|
|
4591
|
+
function ClaveMovimientoService(api) {
|
|
4592
|
+
this.api = api;
|
|
4593
|
+
this.endpoint = 'claveMovimiento';
|
|
4393
4594
|
}
|
|
4595
|
+
ClaveMovimientoService.prototype.getAll = function (params) {
|
|
4596
|
+
return this.api.get(this.endpoint, params);
|
|
4597
|
+
};
|
|
4598
|
+
ClaveMovimientoService.prototype.get = function (id) {
|
|
4599
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4600
|
+
};
|
|
4601
|
+
ClaveMovimientoService.prototype.save = function (obj) {
|
|
4602
|
+
return this.api.post(this.endpoint, obj);
|
|
4603
|
+
};
|
|
4604
|
+
ClaveMovimientoService.prototype.update = function (obj) {
|
|
4605
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4606
|
+
};
|
|
4607
|
+
ClaveMovimientoService.prototype.delete = function (id) {
|
|
4608
|
+
return this.api.delete(this.endpoint, id);
|
|
4609
|
+
};
|
|
4394
4610
|
return ClaveMovimientoService;
|
|
4395
|
-
}(
|
|
4396
|
-
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(i0.ɵɵinject(
|
|
4611
|
+
}());
|
|
4612
|
+
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(i0.ɵɵinject(ApiService)); };
|
|
4397
4613
|
/** @nocollapse */ ClaveMovimientoService.ɵprov = i0.ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
|
|
4398
4614
|
/*@__PURE__*/ (function () {
|
|
4399
4615
|
i0.ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
@@ -4401,7 +4617,7 @@
|
|
|
4401
4617
|
args: [{
|
|
4402
4618
|
providedIn: 'root'
|
|
4403
4619
|
}]
|
|
4404
|
-
}], function () { return [{ type:
|
|
4620
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4405
4621
|
})();
|
|
4406
4622
|
|
|
4407
4623
|
var Cliente = /** @class */ (function () {
|
|
@@ -4437,20 +4653,33 @@
|
|
|
4437
4653
|
return ClienteFlete;
|
|
4438
4654
|
}());
|
|
4439
4655
|
|
|
4440
|
-
var ClienteCuentaBancoService = /** @class */ (function (
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
_this.httpClient = httpClient;
|
|
4445
|
-
return _this;
|
|
4656
|
+
var ClienteCuentaBancoService = /** @class */ (function () {
|
|
4657
|
+
function ClienteCuentaBancoService(api) {
|
|
4658
|
+
this.api = api;
|
|
4659
|
+
this.endpoint = 'clienteCuentaBanco';
|
|
4446
4660
|
}
|
|
4447
4661
|
ClienteCuentaBancoService.prototype.saveAll = function (params) {
|
|
4448
4662
|
var p = { 'cuentas': params };
|
|
4449
|
-
return this.
|
|
4663
|
+
return this.api.post(this.endpoint, p);
|
|
4664
|
+
};
|
|
4665
|
+
ClienteCuentaBancoService.prototype.get = function (id) {
|
|
4666
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4667
|
+
};
|
|
4668
|
+
ClienteCuentaBancoService.prototype.delete = function (id) {
|
|
4669
|
+
return this.api.delete(this.endpoint, id);
|
|
4670
|
+
};
|
|
4671
|
+
ClienteCuentaBancoService.prototype.getAll = function (params) {
|
|
4672
|
+
return this.api.get(this.endpoint, params);
|
|
4673
|
+
};
|
|
4674
|
+
ClienteCuentaBancoService.prototype.save = function (obj) {
|
|
4675
|
+
return this.api.post(this.endpoint, obj);
|
|
4676
|
+
};
|
|
4677
|
+
ClienteCuentaBancoService.prototype.update = function (obj) {
|
|
4678
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4450
4679
|
};
|
|
4451
4680
|
return ClienteCuentaBancoService;
|
|
4452
|
-
}(
|
|
4453
|
-
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(i0.ɵɵinject(
|
|
4681
|
+
}());
|
|
4682
|
+
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(i0.ɵɵinject(ApiService)); };
|
|
4454
4683
|
/** @nocollapse */ ClienteCuentaBancoService.ɵprov = i0.ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
4455
4684
|
/*@__PURE__*/ (function () {
|
|
4456
4685
|
i0.ɵsetClassMetadata(ClienteCuentaBancoService, [{
|
|
@@ -4458,23 +4687,36 @@
|
|
|
4458
4687
|
args: [{
|
|
4459
4688
|
providedIn: 'root'
|
|
4460
4689
|
}]
|
|
4461
|
-
}], function () { return [{ type:
|
|
4690
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4462
4691
|
})();
|
|
4463
4692
|
|
|
4464
|
-
var ClienteFleteService = /** @class */ (function (
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
_this.httpClient = httpClient;
|
|
4469
|
-
return _this;
|
|
4693
|
+
var ClienteFleteService = /** @class */ (function () {
|
|
4694
|
+
function ClienteFleteService(api) {
|
|
4695
|
+
this.api = api;
|
|
4696
|
+
this.endpoint = 'clienteFlete';
|
|
4470
4697
|
}
|
|
4471
4698
|
ClienteFleteService.prototype.saveAll = function (p) {
|
|
4472
4699
|
var params = { fletes: p };
|
|
4473
|
-
return this.
|
|
4700
|
+
return this.api.post(this.endpoint, params);
|
|
4701
|
+
};
|
|
4702
|
+
ClienteFleteService.prototype.get = function (id) {
|
|
4703
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4704
|
+
};
|
|
4705
|
+
ClienteFleteService.prototype.delete = function (id) {
|
|
4706
|
+
return this.api.delete(this.endpoint, id);
|
|
4707
|
+
};
|
|
4708
|
+
ClienteFleteService.prototype.getAll = function (params) {
|
|
4709
|
+
return this.api.get(this.endpoint, params);
|
|
4710
|
+
};
|
|
4711
|
+
ClienteFleteService.prototype.save = function (obj) {
|
|
4712
|
+
return this.api.post(this.endpoint, obj);
|
|
4713
|
+
};
|
|
4714
|
+
ClienteFleteService.prototype.update = function (obj) {
|
|
4715
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4474
4716
|
};
|
|
4475
4717
|
return ClienteFleteService;
|
|
4476
|
-
}(
|
|
4477
|
-
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(i0.ɵɵinject(
|
|
4718
|
+
}());
|
|
4719
|
+
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(i0.ɵɵinject(ApiService)); };
|
|
4478
4720
|
/** @nocollapse */ ClienteFleteService.ɵprov = i0.ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
|
|
4479
4721
|
/*@__PURE__*/ (function () {
|
|
4480
4722
|
i0.ɵsetClassMetadata(ClienteFleteService, [{
|
|
@@ -4482,7 +4724,7 @@
|
|
|
4482
4724
|
args: [{
|
|
4483
4725
|
providedIn: 'root'
|
|
4484
4726
|
}]
|
|
4485
|
-
}], function () { return [{ type:
|
|
4727
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4486
4728
|
})();
|
|
4487
4729
|
|
|
4488
4730
|
var TipoContacto = /** @class */ (function () {
|
|
@@ -4499,14 +4741,29 @@
|
|
|
4499
4741
|
return DatoContacto;
|
|
4500
4742
|
}());
|
|
4501
4743
|
|
|
4502
|
-
var DatoContactoService = /** @class */ (function (
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4744
|
+
var DatoContactoService = /** @class */ (function () {
|
|
4745
|
+
function DatoContactoService(api) {
|
|
4746
|
+
this.api = api;
|
|
4747
|
+
this.endpoint = 'contacto';
|
|
4506
4748
|
}
|
|
4749
|
+
DatoContactoService.prototype.getAll = function (params) {
|
|
4750
|
+
return this.api.get(this.endpoint, params);
|
|
4751
|
+
};
|
|
4752
|
+
DatoContactoService.prototype.get = function (id) {
|
|
4753
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4754
|
+
};
|
|
4755
|
+
DatoContactoService.prototype.save = function (obj) {
|
|
4756
|
+
return this.api.post(this.endpoint, obj);
|
|
4757
|
+
};
|
|
4758
|
+
DatoContactoService.prototype.update = function (obj) {
|
|
4759
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4760
|
+
};
|
|
4761
|
+
DatoContactoService.prototype.delete = function (id) {
|
|
4762
|
+
return this.api.delete(this.endpoint, id);
|
|
4763
|
+
};
|
|
4507
4764
|
return DatoContactoService;
|
|
4508
|
-
}(
|
|
4509
|
-
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(i0.ɵɵinject(
|
|
4765
|
+
}());
|
|
4766
|
+
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(i0.ɵɵinject(ApiService)); };
|
|
4510
4767
|
/** @nocollapse */ DatoContactoService.ɵprov = i0.ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
|
|
4511
4768
|
/*@__PURE__*/ (function () {
|
|
4512
4769
|
i0.ɵsetClassMetadata(DatoContactoService, [{
|
|
@@ -4514,17 +4771,32 @@
|
|
|
4514
4771
|
args: [{
|
|
4515
4772
|
providedIn: 'root'
|
|
4516
4773
|
}]
|
|
4517
|
-
}], function () { return [{ type:
|
|
4774
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4518
4775
|
})();
|
|
4519
4776
|
|
|
4520
|
-
var DatoDireccionService = /** @class */ (function (
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4777
|
+
var DatoDireccionService = /** @class */ (function () {
|
|
4778
|
+
function DatoDireccionService(api) {
|
|
4779
|
+
this.api = api;
|
|
4780
|
+
this.endpoint = 'datoDireccion';
|
|
4524
4781
|
}
|
|
4782
|
+
DatoDireccionService.prototype.getAll = function (params) {
|
|
4783
|
+
return this.api.get(this.endpoint, params);
|
|
4784
|
+
};
|
|
4785
|
+
DatoDireccionService.prototype.get = function (id) {
|
|
4786
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4787
|
+
};
|
|
4788
|
+
DatoDireccionService.prototype.save = function (obj) {
|
|
4789
|
+
return this.api.post(this.endpoint, obj);
|
|
4790
|
+
};
|
|
4791
|
+
DatoDireccionService.prototype.update = function (obj) {
|
|
4792
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4793
|
+
};
|
|
4794
|
+
DatoDireccionService.prototype.delete = function (id) {
|
|
4795
|
+
return this.api.delete(this.endpoint, id);
|
|
4796
|
+
};
|
|
4525
4797
|
return DatoDireccionService;
|
|
4526
|
-
}(
|
|
4527
|
-
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(i0.ɵɵinject(
|
|
4798
|
+
}());
|
|
4799
|
+
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(i0.ɵɵinject(ApiService)); };
|
|
4528
4800
|
/** @nocollapse */ DatoDireccionService.ɵprov = i0.ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
|
|
4529
4801
|
/*@__PURE__*/ (function () {
|
|
4530
4802
|
i0.ɵsetClassMetadata(DatoDireccionService, [{
|
|
@@ -4532,7 +4804,7 @@
|
|
|
4532
4804
|
args: [{
|
|
4533
4805
|
providedIn: 'root'
|
|
4534
4806
|
}]
|
|
4535
|
-
}], function () { return [{ type:
|
|
4807
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4536
4808
|
})();
|
|
4537
4809
|
|
|
4538
4810
|
var Departamento = /** @class */ (function () {
|
|
@@ -4541,14 +4813,29 @@
|
|
|
4541
4813
|
return Departamento;
|
|
4542
4814
|
}());
|
|
4543
4815
|
|
|
4544
|
-
var DepartamentoService = /** @class */ (function (
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4816
|
+
var DepartamentoService = /** @class */ (function () {
|
|
4817
|
+
function DepartamentoService(api) {
|
|
4818
|
+
this.api = api;
|
|
4819
|
+
this.endpoint = 'departamento';
|
|
4548
4820
|
}
|
|
4821
|
+
DepartamentoService.prototype.getAll = function (params) {
|
|
4822
|
+
return this.api.get(this.endpoint, params);
|
|
4823
|
+
};
|
|
4824
|
+
DepartamentoService.prototype.get = function (id) {
|
|
4825
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4826
|
+
};
|
|
4827
|
+
DepartamentoService.prototype.save = function (obj) {
|
|
4828
|
+
return this.api.post(this.endpoint, obj);
|
|
4829
|
+
};
|
|
4830
|
+
DepartamentoService.prototype.update = function (obj) {
|
|
4831
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4832
|
+
};
|
|
4833
|
+
DepartamentoService.prototype.delete = function (id) {
|
|
4834
|
+
return this.api.delete(this.endpoint, id);
|
|
4835
|
+
};
|
|
4549
4836
|
return DepartamentoService;
|
|
4550
|
-
}(
|
|
4551
|
-
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(i0.ɵɵinject(
|
|
4837
|
+
}());
|
|
4838
|
+
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(i0.ɵɵinject(ApiService)); };
|
|
4552
4839
|
/** @nocollapse */ DepartamentoService.ɵprov = i0.ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
|
|
4553
4840
|
/*@__PURE__*/ (function () {
|
|
4554
4841
|
i0.ɵsetClassMetadata(DepartamentoService, [{
|
|
@@ -4556,7 +4843,7 @@
|
|
|
4556
4843
|
args: [{
|
|
4557
4844
|
providedIn: 'root'
|
|
4558
4845
|
}]
|
|
4559
|
-
}], function () { return [{ type:
|
|
4846
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4560
4847
|
})();
|
|
4561
4848
|
|
|
4562
4849
|
var FormaPago = /** @class */ (function () {
|
|
@@ -4581,20 +4868,32 @@
|
|
|
4581
4868
|
return ConfiguracionEmpresaAdministrativa;
|
|
4582
4869
|
}());
|
|
4583
4870
|
|
|
4584
|
-
var EmpresaService = /** @class */ (function (
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
_this.httpClient = httpClient;
|
|
4589
|
-
return _this;
|
|
4871
|
+
var EmpresaService = /** @class */ (function () {
|
|
4872
|
+
function EmpresaService(api) {
|
|
4873
|
+
this.api = api;
|
|
4874
|
+
this.endpoint = 'empresa';
|
|
4590
4875
|
}
|
|
4876
|
+
EmpresaService.prototype.getAll = function (params) {
|
|
4877
|
+
return this.api.get(this.endpoint, params);
|
|
4878
|
+
};
|
|
4591
4879
|
EmpresaService.prototype.get = function () {
|
|
4592
|
-
|
|
4593
|
-
|
|
4880
|
+
return this.api.get(this.endpoint + "/configuracionEmpresaAdministrativo/configuracionUsuario");
|
|
4881
|
+
};
|
|
4882
|
+
EmpresaService.prototype.getByEmpresa = function (id) {
|
|
4883
|
+
return this.api.get(this.endpoint + "/configuracionEmpresaAdministrativo/configuracionUsuario/" + id);
|
|
4884
|
+
};
|
|
4885
|
+
EmpresaService.prototype.save = function (obj) {
|
|
4886
|
+
return this.api.post(this.endpoint, obj);
|
|
4887
|
+
};
|
|
4888
|
+
EmpresaService.prototype.update = function (obj) {
|
|
4889
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4890
|
+
};
|
|
4891
|
+
EmpresaService.prototype.delete = function (id) {
|
|
4892
|
+
return this.api.delete(this.endpoint, id);
|
|
4594
4893
|
};
|
|
4595
4894
|
return EmpresaService;
|
|
4596
|
-
}(
|
|
4597
|
-
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(i0.ɵɵinject(
|
|
4895
|
+
}());
|
|
4896
|
+
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(i0.ɵɵinject(ApiService)); };
|
|
4598
4897
|
/** @nocollapse */ EmpresaService.ɵprov = i0.ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
|
|
4599
4898
|
/*@__PURE__*/ (function () {
|
|
4600
4899
|
i0.ɵsetClassMetadata(EmpresaService, [{
|
|
@@ -4602,19 +4901,32 @@
|
|
|
4602
4901
|
args: [{
|
|
4603
4902
|
providedIn: 'root'
|
|
4604
4903
|
}]
|
|
4605
|
-
}], function () { return [{ type:
|
|
4904
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4606
4905
|
})();
|
|
4607
4906
|
|
|
4608
|
-
var FleteService = /** @class */ (function (
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
_this.httpClient = httpClient;
|
|
4613
|
-
return _this;
|
|
4907
|
+
var FleteService = /** @class */ (function () {
|
|
4908
|
+
function FleteService(api) {
|
|
4909
|
+
this.api = api;
|
|
4910
|
+
this.endpoint = 'flete';
|
|
4614
4911
|
}
|
|
4912
|
+
FleteService.prototype.getAll = function (params) {
|
|
4913
|
+
return this.api.get(this.endpoint, params);
|
|
4914
|
+
};
|
|
4915
|
+
FleteService.prototype.get = function (id) {
|
|
4916
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4917
|
+
};
|
|
4918
|
+
FleteService.prototype.save = function (obj) {
|
|
4919
|
+
return this.api.post(this.endpoint, obj);
|
|
4920
|
+
};
|
|
4921
|
+
FleteService.prototype.update = function (obj) {
|
|
4922
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4923
|
+
};
|
|
4924
|
+
FleteService.prototype.delete = function (id) {
|
|
4925
|
+
return this.api.delete(this.endpoint, id);
|
|
4926
|
+
};
|
|
4615
4927
|
return FleteService;
|
|
4616
|
-
}(
|
|
4617
|
-
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(i0.ɵɵinject(
|
|
4928
|
+
}());
|
|
4929
|
+
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(i0.ɵɵinject(ApiService)); };
|
|
4618
4930
|
/** @nocollapse */ FleteService.ɵprov = i0.ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
|
|
4619
4931
|
/*@__PURE__*/ (function () {
|
|
4620
4932
|
i0.ɵsetClassMetadata(FleteService, [{
|
|
@@ -4622,17 +4934,32 @@
|
|
|
4622
4934
|
args: [{
|
|
4623
4935
|
providedIn: 'root'
|
|
4624
4936
|
}]
|
|
4625
|
-
}], function () { return [{ type:
|
|
4937
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4626
4938
|
})();
|
|
4627
4939
|
|
|
4628
|
-
var FormaPagoService = /** @class */ (function (
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4940
|
+
var FormaPagoService = /** @class */ (function () {
|
|
4941
|
+
function FormaPagoService(api) {
|
|
4942
|
+
this.api = api;
|
|
4943
|
+
this.endpoint = 'FormaDePago';
|
|
4632
4944
|
}
|
|
4945
|
+
FormaPagoService.prototype.getAll = function (params) {
|
|
4946
|
+
return this.api.get(this.endpoint, params);
|
|
4947
|
+
};
|
|
4948
|
+
FormaPagoService.prototype.get = function (id) {
|
|
4949
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4950
|
+
};
|
|
4951
|
+
FormaPagoService.prototype.save = function (obj) {
|
|
4952
|
+
return this.api.post(this.endpoint, obj);
|
|
4953
|
+
};
|
|
4954
|
+
FormaPagoService.prototype.update = function (obj) {
|
|
4955
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4956
|
+
};
|
|
4957
|
+
FormaPagoService.prototype.delete = function (id) {
|
|
4958
|
+
return this.api.delete(this.endpoint, id);
|
|
4959
|
+
};
|
|
4633
4960
|
return FormaPagoService;
|
|
4634
|
-
}(
|
|
4635
|
-
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(i0.ɵɵinject(
|
|
4961
|
+
}());
|
|
4962
|
+
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(i0.ɵɵinject(ApiService)); };
|
|
4636
4963
|
/** @nocollapse */ FormaPagoService.ɵprov = i0.ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
|
|
4637
4964
|
/*@__PURE__*/ (function () {
|
|
4638
4965
|
i0.ɵsetClassMetadata(FormaPagoService, [{
|
|
@@ -4640,7 +4967,7 @@
|
|
|
4640
4967
|
args: [{
|
|
4641
4968
|
providedIn: "root"
|
|
4642
4969
|
}]
|
|
4643
|
-
}], function () { return [{ type:
|
|
4970
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4644
4971
|
})();
|
|
4645
4972
|
|
|
4646
4973
|
var Moneda = /** @class */ (function () {
|
|
@@ -4649,16 +4976,29 @@
|
|
|
4649
4976
|
return Moneda;
|
|
4650
4977
|
}());
|
|
4651
4978
|
|
|
4652
|
-
var MonedaService = /** @class */ (function (
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
_this.httpClient = httpClient;
|
|
4657
|
-
return _this;
|
|
4979
|
+
var MonedaService = /** @class */ (function () {
|
|
4980
|
+
function MonedaService(api) {
|
|
4981
|
+
this.api = api;
|
|
4982
|
+
this.endpoint = 'moneda';
|
|
4658
4983
|
}
|
|
4984
|
+
MonedaService.prototype.getAll = function (params) {
|
|
4985
|
+
return this.api.get(this.endpoint, params);
|
|
4986
|
+
};
|
|
4987
|
+
MonedaService.prototype.get = function (id) {
|
|
4988
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
4989
|
+
};
|
|
4990
|
+
MonedaService.prototype.save = function (obj) {
|
|
4991
|
+
return this.api.post(this.endpoint, obj);
|
|
4992
|
+
};
|
|
4993
|
+
MonedaService.prototype.update = function (obj) {
|
|
4994
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4995
|
+
};
|
|
4996
|
+
MonedaService.prototype.delete = function (id) {
|
|
4997
|
+
return this.api.delete(this.endpoint, id);
|
|
4998
|
+
};
|
|
4659
4999
|
return MonedaService;
|
|
4660
|
-
}(
|
|
4661
|
-
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(i0.ɵɵinject(
|
|
5000
|
+
}());
|
|
5001
|
+
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(i0.ɵɵinject(ApiService)); };
|
|
4662
5002
|
/** @nocollapse */ MonedaService.ɵprov = i0.ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
|
|
4663
5003
|
/*@__PURE__*/ (function () {
|
|
4664
5004
|
i0.ɵsetClassMetadata(MonedaService, [{
|
|
@@ -4666,7 +5006,7 @@
|
|
|
4666
5006
|
args: [{
|
|
4667
5007
|
providedIn: 'root'
|
|
4668
5008
|
}]
|
|
4669
|
-
}], function () { return [{ type:
|
|
5009
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4670
5010
|
})();
|
|
4671
5011
|
|
|
4672
5012
|
var EstadoCivil = /** @class */ (function () {
|
|
@@ -4681,22 +5021,20 @@
|
|
|
4681
5021
|
return Genero;
|
|
4682
5022
|
}());
|
|
4683
5023
|
|
|
4684
|
-
var PersonaFisicaService = /** @class */ (function (
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
_this.httpClient = httpClient;
|
|
4689
|
-
return _this;
|
|
5024
|
+
var PersonaFisicaService = /** @class */ (function () {
|
|
5025
|
+
function PersonaFisicaService(api) {
|
|
5026
|
+
this.api = api;
|
|
5027
|
+
this.endpoint = 'PersonaFisica';
|
|
4690
5028
|
}
|
|
4691
5029
|
PersonaFisicaService.prototype.getGeneros = function () {
|
|
4692
|
-
return this.
|
|
5030
|
+
return this.api.get(this.endpoint + "/genero");
|
|
4693
5031
|
};
|
|
4694
5032
|
PersonaFisicaService.prototype.getEstadoCivil = function () {
|
|
4695
|
-
return this.
|
|
5033
|
+
return this.api.get(this.endpoint + "/estadoCivil");
|
|
4696
5034
|
};
|
|
4697
5035
|
return PersonaFisicaService;
|
|
4698
|
-
}(
|
|
4699
|
-
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(i0.ɵɵinject(
|
|
5036
|
+
}());
|
|
5037
|
+
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(i0.ɵɵinject(ApiService)); };
|
|
4700
5038
|
/** @nocollapse */ PersonaFisicaService.ɵprov = i0.ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
|
|
4701
5039
|
/*@__PURE__*/ (function () {
|
|
4702
5040
|
i0.ɵsetClassMetadata(PersonaFisicaService, [{
|
|
@@ -4704,7 +5042,7 @@
|
|
|
4704
5042
|
args: [{
|
|
4705
5043
|
providedIn: "root"
|
|
4706
5044
|
}]
|
|
4707
|
-
}], function () { return [{ type:
|
|
5045
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4708
5046
|
})();
|
|
4709
5047
|
|
|
4710
5048
|
var ProveedorCuentaBanco = /** @class */ (function () {
|
|
@@ -4724,20 +5062,33 @@
|
|
|
4724
5062
|
return ProveedorFlete;
|
|
4725
5063
|
}());
|
|
4726
5064
|
|
|
4727
|
-
var ProveedorCuentaBancoService = /** @class */ (function (
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
_this.httpClient = httpClient;
|
|
4732
|
-
return _this;
|
|
5065
|
+
var ProveedorCuentaBancoService = /** @class */ (function () {
|
|
5066
|
+
function ProveedorCuentaBancoService(api) {
|
|
5067
|
+
this.api = api;
|
|
5068
|
+
this.endpoint = 'proveedorCuentaBanco';
|
|
4733
5069
|
}
|
|
5070
|
+
ProveedorCuentaBancoService.prototype.getAll = function (params) {
|
|
5071
|
+
return this.api.get(this.endpoint, params);
|
|
5072
|
+
};
|
|
4734
5073
|
ProveedorCuentaBancoService.prototype.saveAll = function (params) {
|
|
4735
5074
|
var p = { 'cuentas': params };
|
|
4736
|
-
return this.
|
|
5075
|
+
return this.api.post(this.endpoint, p);
|
|
5076
|
+
};
|
|
5077
|
+
ProveedorCuentaBancoService.prototype.get = function (id) {
|
|
5078
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
5079
|
+
};
|
|
5080
|
+
ProveedorCuentaBancoService.prototype.delete = function (id) {
|
|
5081
|
+
return this.api.delete(this.endpoint, id);
|
|
5082
|
+
};
|
|
5083
|
+
ProveedorCuentaBancoService.prototype.update = function (obj) {
|
|
5084
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5085
|
+
};
|
|
5086
|
+
ProveedorCuentaBancoService.prototype.save = function (obj) {
|
|
5087
|
+
return this.api.post(this.endpoint, obj);
|
|
4737
5088
|
};
|
|
4738
5089
|
return ProveedorCuentaBancoService;
|
|
4739
|
-
}(
|
|
4740
|
-
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(i0.ɵɵinject(
|
|
5090
|
+
}());
|
|
5091
|
+
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(i0.ɵɵinject(ApiService)); };
|
|
4741
5092
|
/** @nocollapse */ ProveedorCuentaBancoService.ɵprov = i0.ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
4742
5093
|
/*@__PURE__*/ (function () {
|
|
4743
5094
|
i0.ɵsetClassMetadata(ProveedorCuentaBancoService, [{
|
|
@@ -4745,23 +5096,33 @@
|
|
|
4745
5096
|
args: [{
|
|
4746
5097
|
providedIn: 'root'
|
|
4747
5098
|
}]
|
|
4748
|
-
}], function () { return [{ type:
|
|
5099
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4749
5100
|
})();
|
|
4750
5101
|
|
|
4751
|
-
var ProveedorFleteService = /** @class */ (function (
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
_this.httpClient = httpClient;
|
|
4756
|
-
return _this;
|
|
5102
|
+
var ProveedorFleteService = /** @class */ (function () {
|
|
5103
|
+
function ProveedorFleteService(api) {
|
|
5104
|
+
this.api = api;
|
|
5105
|
+
this.endpoint = 'proveedorFlete';
|
|
4757
5106
|
}
|
|
5107
|
+
ProveedorFleteService.prototype.getAll = function (params) {
|
|
5108
|
+
return this.api.get(this.endpoint, params);
|
|
5109
|
+
};
|
|
4758
5110
|
ProveedorFleteService.prototype.saveAll = function (p) {
|
|
4759
5111
|
var params = { fletes: p };
|
|
4760
5112
|
return this.save(params);
|
|
4761
5113
|
};
|
|
5114
|
+
ProveedorFleteService.prototype.save = function (obj) {
|
|
5115
|
+
return this.api.post(this.endpoint, obj);
|
|
5116
|
+
};
|
|
5117
|
+
ProveedorFleteService.prototype.update = function (obj) {
|
|
5118
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5119
|
+
};
|
|
5120
|
+
ProveedorFleteService.prototype.delete = function (id) {
|
|
5121
|
+
return this.api.delete(this.endpoint, id);
|
|
5122
|
+
};
|
|
4762
5123
|
return ProveedorFleteService;
|
|
4763
|
-
}(
|
|
4764
|
-
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(i0.ɵɵinject(
|
|
5124
|
+
}());
|
|
5125
|
+
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(i0.ɵɵinject(ApiService)); };
|
|
4765
5126
|
/** @nocollapse */ ProveedorFleteService.ɵprov = i0.ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
|
|
4766
5127
|
/*@__PURE__*/ (function () {
|
|
4767
5128
|
i0.ɵsetClassMetadata(ProveedorFleteService, [{
|
|
@@ -4769,17 +5130,32 @@
|
|
|
4769
5130
|
args: [{
|
|
4770
5131
|
providedIn: 'root'
|
|
4771
5132
|
}]
|
|
4772
|
-
}], function () { return [{ type:
|
|
5133
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4773
5134
|
})();
|
|
4774
5135
|
|
|
4775
|
-
var ClaveAumentoDisminucionService = /** @class */ (function (
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
5136
|
+
var ClaveAumentoDisminucionService = /** @class */ (function () {
|
|
5137
|
+
function ClaveAumentoDisminucionService(api) {
|
|
5138
|
+
this.api = api;
|
|
5139
|
+
this.endpoint = 'claveAumentoDisminucion';
|
|
4779
5140
|
}
|
|
5141
|
+
ClaveAumentoDisminucionService.prototype.getAll = function (params) {
|
|
5142
|
+
return this.api.get(this.endpoint, params);
|
|
5143
|
+
};
|
|
5144
|
+
ClaveAumentoDisminucionService.prototype.get = function (id) {
|
|
5145
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
5146
|
+
};
|
|
5147
|
+
ClaveAumentoDisminucionService.prototype.save = function (obj) {
|
|
5148
|
+
return this.api.post(this.endpoint, obj);
|
|
5149
|
+
};
|
|
5150
|
+
ClaveAumentoDisminucionService.prototype.update = function (obj) {
|
|
5151
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5152
|
+
};
|
|
5153
|
+
ClaveAumentoDisminucionService.prototype.delete = function (id) {
|
|
5154
|
+
return this.api.delete(this.endpoint, id);
|
|
5155
|
+
};
|
|
4780
5156
|
return ClaveAumentoDisminucionService;
|
|
4781
|
-
}(
|
|
4782
|
-
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(i0.ɵɵinject(
|
|
5157
|
+
}());
|
|
5158
|
+
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(i0.ɵɵinject(ApiService)); };
|
|
4783
5159
|
/** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = i0.ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
|
|
4784
5160
|
/*@__PURE__*/ (function () {
|
|
4785
5161
|
i0.ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
|
|
@@ -4787,25 +5163,35 @@
|
|
|
4787
5163
|
args: [{
|
|
4788
5164
|
providedIn: 'root'
|
|
4789
5165
|
}]
|
|
4790
|
-
}], function () { return [{ type:
|
|
5166
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4791
5167
|
})();
|
|
4792
5168
|
|
|
4793
|
-
var SerieDocumentoService = /** @class */ (function (
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
_this.httpClient = httpClient;
|
|
4798
|
-
return _this;
|
|
5169
|
+
var SerieDocumentoService = /** @class */ (function () {
|
|
5170
|
+
function SerieDocumentoService(api) {
|
|
5171
|
+
this.api = api;
|
|
5172
|
+
this.endpoint = 'serieDocumento';
|
|
4799
5173
|
}
|
|
4800
5174
|
SerieDocumentoService.prototype.getTipos = function () {
|
|
4801
|
-
return this.
|
|
5175
|
+
return this.api.get(this.endpoint + "/tipoSerie");
|
|
4802
5176
|
};
|
|
4803
5177
|
SerieDocumentoService.prototype.getReporte = function (params) {
|
|
4804
|
-
return this.
|
|
5178
|
+
return this.api.get(this.endpoint + "/descargaFormatoReporte", params);
|
|
5179
|
+
};
|
|
5180
|
+
SerieDocumentoService.prototype.get = function (id) {
|
|
5181
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
5182
|
+
};
|
|
5183
|
+
SerieDocumentoService.prototype.save = function (obj) {
|
|
5184
|
+
return this.api.post(this.endpoint, obj);
|
|
5185
|
+
};
|
|
5186
|
+
SerieDocumentoService.prototype.update = function (obj) {
|
|
5187
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5188
|
+
};
|
|
5189
|
+
SerieDocumentoService.prototype.delete = function (id) {
|
|
5190
|
+
return this.api.delete(this.endpoint, id);
|
|
4805
5191
|
};
|
|
4806
5192
|
return SerieDocumentoService;
|
|
4807
|
-
}(
|
|
4808
|
-
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(i0.ɵɵinject(
|
|
5193
|
+
}());
|
|
5194
|
+
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(i0.ɵɵinject(ApiService)); };
|
|
4809
5195
|
/** @nocollapse */ SerieDocumentoService.ɵprov = i0.ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
|
|
4810
5196
|
/*@__PURE__*/ (function () {
|
|
4811
5197
|
i0.ɵsetClassMetadata(SerieDocumentoService, [{
|
|
@@ -4813,7 +5199,7 @@
|
|
|
4813
5199
|
args: [{
|
|
4814
5200
|
providedIn: 'root'
|
|
4815
5201
|
}]
|
|
4816
|
-
}], function () { return [{ type:
|
|
5202
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4817
5203
|
})();
|
|
4818
5204
|
|
|
4819
5205
|
var SerieDocumento = /** @class */ (function () {
|
|
@@ -4822,14 +5208,29 @@
|
|
|
4822
5208
|
return SerieDocumento;
|
|
4823
5209
|
}());
|
|
4824
5210
|
|
|
4825
|
-
var TipoContactoService = /** @class */ (function (
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
5211
|
+
var TipoContactoService = /** @class */ (function () {
|
|
5212
|
+
function TipoContactoService(api) {
|
|
5213
|
+
this.api = api;
|
|
5214
|
+
this.endpoint = 'tipoContacto';
|
|
4829
5215
|
}
|
|
5216
|
+
TipoContactoService.prototype.getAll = function (params) {
|
|
5217
|
+
return this.api.get(this.endpoint, params);
|
|
5218
|
+
};
|
|
5219
|
+
TipoContactoService.prototype.get = function (id) {
|
|
5220
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
5221
|
+
};
|
|
5222
|
+
TipoContactoService.prototype.save = function (obj) {
|
|
5223
|
+
return this.api.post(this.endpoint, obj);
|
|
5224
|
+
};
|
|
5225
|
+
TipoContactoService.prototype.update = function (obj) {
|
|
5226
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5227
|
+
};
|
|
5228
|
+
TipoContactoService.prototype.delete = function (id) {
|
|
5229
|
+
return this.api.delete(this.endpoint, id);
|
|
5230
|
+
};
|
|
4830
5231
|
return TipoContactoService;
|
|
4831
|
-
}(
|
|
4832
|
-
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(i0.ɵɵinject(
|
|
5232
|
+
}());
|
|
5233
|
+
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(i0.ɵɵinject(ApiService)); };
|
|
4833
5234
|
/** @nocollapse */ TipoContactoService.ɵprov = i0.ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
|
|
4834
5235
|
/*@__PURE__*/ (function () {
|
|
4835
5236
|
i0.ɵsetClassMetadata(TipoContactoService, [{
|
|
@@ -4837,7 +5238,7 @@
|
|
|
4837
5238
|
args: [{
|
|
4838
5239
|
providedIn: 'root'
|
|
4839
5240
|
}]
|
|
4840
|
-
}], function () { return [{ type:
|
|
5241
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4841
5242
|
})();
|
|
4842
5243
|
|
|
4843
5244
|
var Ubicacion = /** @class */ (function () {
|
|
@@ -4846,14 +5247,29 @@
|
|
|
4846
5247
|
return Ubicacion;
|
|
4847
5248
|
}());
|
|
4848
5249
|
|
|
4849
|
-
var UbicacionService = /** @class */ (function (
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
5250
|
+
var UbicacionService = /** @class */ (function () {
|
|
5251
|
+
function UbicacionService(api) {
|
|
5252
|
+
this.api = api;
|
|
5253
|
+
this.endpoint = 'ubicacion';
|
|
4853
5254
|
}
|
|
5255
|
+
UbicacionService.prototype.getAll = function (params) {
|
|
5256
|
+
return this.api.get(this.endpoint, params);
|
|
5257
|
+
};
|
|
5258
|
+
UbicacionService.prototype.get = function (id) {
|
|
5259
|
+
return this.api.get(this.endpoint + "/" + id);
|
|
5260
|
+
};
|
|
5261
|
+
UbicacionService.prototype.save = function (obj) {
|
|
5262
|
+
return this.api.post(this.endpoint, obj);
|
|
5263
|
+
};
|
|
5264
|
+
UbicacionService.prototype.update = function (obj) {
|
|
5265
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
5266
|
+
};
|
|
5267
|
+
UbicacionService.prototype.delete = function (id) {
|
|
5268
|
+
return this.api.delete(this.endpoint, id);
|
|
5269
|
+
};
|
|
4854
5270
|
return UbicacionService;
|
|
4855
|
-
}(
|
|
4856
|
-
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(i0.ɵɵinject(
|
|
5271
|
+
}());
|
|
5272
|
+
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(i0.ɵɵinject(ApiService)); };
|
|
4857
5273
|
/** @nocollapse */ UbicacionService.ɵprov = i0.ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
|
|
4858
5274
|
/*@__PURE__*/ (function () {
|
|
4859
5275
|
i0.ɵsetClassMetadata(UbicacionService, [{
|
|
@@ -4861,7 +5277,7 @@
|
|
|
4861
5277
|
args: [{
|
|
4862
5278
|
providedIn: 'root'
|
|
4863
5279
|
}]
|
|
4864
|
-
}], function () { return [{ type:
|
|
5280
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4865
5281
|
})();
|
|
4866
5282
|
|
|
4867
5283
|
var TipoCatalogo = /** @class */ (function () {
|
|
@@ -4872,20 +5288,17 @@
|
|
|
4872
5288
|
TipoCatalogo.ARTICULO = 2;
|
|
4873
5289
|
TipoCatalogo.USO_CFDI = 11;
|
|
4874
5290
|
|
|
4875
|
-
var AcreedorCuentaContableService = /** @class */ (function (
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
_this.httpClient = httpClient;
|
|
4880
|
-
return _this;
|
|
5291
|
+
var AcreedorCuentaContableService = /** @class */ (function () {
|
|
5292
|
+
function AcreedorCuentaContableService(api) {
|
|
5293
|
+
this.api = api;
|
|
5294
|
+
this.endpoint = 'acreedorCuentaContable';
|
|
4881
5295
|
}
|
|
4882
5296
|
AcreedorCuentaContableService.prototype.cuentasContables = function () {
|
|
4883
|
-
|
|
4884
|
-
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
5297
|
+
return this.api.get(this.endpoint + "/obtieneCuentasContablesRecursivo");
|
|
4885
5298
|
};
|
|
4886
5299
|
return AcreedorCuentaContableService;
|
|
4887
|
-
}(
|
|
4888
|
-
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(
|
|
5300
|
+
}());
|
|
5301
|
+
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(ApiService)); };
|
|
4889
5302
|
/** @nocollapse */ AcreedorCuentaContableService.ɵprov = i0.ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
|
|
4890
5303
|
/*@__PURE__*/ (function () {
|
|
4891
5304
|
i0.ɵsetClassMetadata(AcreedorCuentaContableService, [{
|
|
@@ -4893,7 +5306,7 @@
|
|
|
4893
5306
|
args: [{
|
|
4894
5307
|
providedIn: 'root'
|
|
4895
5308
|
}]
|
|
4896
|
-
}], function () { return [{ type:
|
|
5309
|
+
}], function () { return [{ type: ApiService }]; }, null);
|
|
4897
5310
|
})();
|
|
4898
5311
|
|
|
4899
5312
|
var CuentaContableModel = /** @class */ (function () {
|
|
@@ -4924,6 +5337,7 @@
|
|
|
4924
5337
|
exports.AgenteService = AgenteService;
|
|
4925
5338
|
exports.Almacen = Almacen;
|
|
4926
5339
|
exports.AlmacenService = AlmacenService;
|
|
5340
|
+
exports.ApiService = ApiService;
|
|
4927
5341
|
exports.Auth = Auth;
|
|
4928
5342
|
exports.AuthService = AuthService;
|
|
4929
5343
|
exports.Authenticated = Authenticated;
|
|
@@ -4949,7 +5363,6 @@
|
|
|
4949
5363
|
exports.ConfiguracionEmpresaAdministrativa = ConfiguracionEmpresaAdministrativa;
|
|
4950
5364
|
exports.ControlAccesoService = ControlAccesoService;
|
|
4951
5365
|
exports.CoreLibModule = CoreLibModule;
|
|
4952
|
-
exports.CrudService = CrudService;
|
|
4953
5366
|
exports.CuentaContableModel = CuentaContableModel;
|
|
4954
5367
|
exports.DatoContacto = DatoContacto;
|
|
4955
5368
|
exports.DatoContactoService = DatoContactoService;
|