sigesp 0.9.19-20221221 → 0.9.21-20221229

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.
@@ -4,6 +4,7 @@ export interface ICentroCosto {
4
4
  centro?: string;
5
5
  codcencos: string;
6
6
  denominacion: string;
7
+ usuarios: IUsuariosCentroCosto[];
7
8
  }
8
9
  export interface IUsuariosCentroCosto {
9
10
  id_empresa: string;
@@ -61,6 +61,7 @@ export interface IProcedencia {
61
61
  }
62
62
  export interface IPrefijo {
63
63
  id_empresa: string;
64
+ id_enterprise: string;
64
65
  id: string;
65
66
  prefijo: string;
66
67
  procede: any;
@@ -1,5 +1,6 @@
1
1
  export interface IUsuarioPrefijo {
2
2
  id_empresa: string;
3
+ id_enterprise: string;
3
4
  id: string;
4
5
  id_usuario: string;
5
6
  id_dt_prefijo: string;
@@ -3,6 +3,7 @@ import { MBasicModel } from '../basic-model.model';
3
3
  import { MUsuarioPrefijo } from './userPrefix.model';
4
4
  export declare class MPrefijo extends MBasicModel {
5
5
  idEmpresa: number;
6
+ idEnterprise: number;
6
7
  id: number;
7
8
  prefijo: string;
8
9
  procede: string;
@@ -10,5 +10,5 @@ export declare class MComunidad {
10
10
  pais: string;
11
11
  parroquia: string;
12
12
  prefijo: string;
13
- constructor(comunidad: IComunidad);
13
+ constructor(comunidad?: IComunidad);
14
14
  }
@@ -2,6 +2,7 @@ import { IUsuarioPrefijo } from "../../interfaces/UsuarioPrefijo";
2
2
  import { MBasicModel } from "../basic-model.model";
3
3
  export declare class MUsuarioPrefijo extends MBasicModel {
4
4
  idEmpresa: number;
5
+ idEnteprise: number;
5
6
  id: number;
6
7
  idUsuario: number;
7
8
  idDtPrefijo: number;
@@ -2,11 +2,12 @@ import { IUsuariosCentroCosto } from './../../interfaces/CentroCosto';
2
2
  import { ICentroCosto } from '../../interfaces/CentroCosto';
3
3
  import { MBasicModel } from '../basic-model.model';
4
4
  export declare class MCentroCosto extends MBasicModel {
5
- centro: string;
6
- denominacion: string;
7
5
  idEmpresa: number;
8
6
  idEnterprise: number;
9
- constructor(centroCosto: ICentroCosto);
7
+ centro: string;
8
+ denominacion: string;
9
+ usuarios: MUsuarioCentroCosto[];
10
+ constructor(centroCosto?: ICentroCosto);
10
11
  dataInterface(): ICentroCosto;
11
12
  }
12
13
  export declare class MUsuarioCentroCosto extends MBasicModel {
@@ -15,6 +16,6 @@ export declare class MUsuarioCentroCosto extends MBasicModel {
15
16
  codigoCentroCosto: string;
16
17
  usuario: string;
17
18
  idDtCentro: number;
18
- constructor(e: IUsuariosCentroCosto);
19
+ constructor(e?: IUsuariosCentroCosto);
19
20
  dataInterface(): IUsuariosCentroCosto;
20
21
  }
@@ -115,7 +115,7 @@ export declare class SigespService {
115
115
  * @return Promise<any[]>
116
116
  * @author Miguel Ramírez
117
117
  */
118
- getBudgetStructureComplete(): Promise<any[]>;
118
+ getBudgetStructureComplete(nivel: number): Promise<any[]>;
119
119
  /**
120
120
  * @description Elimina una o varias estructuras presupuestarias
121
121
  * @param idStructures Id de las estructuras presupuestarias 5 que van a ser eliminadas
@@ -304,9 +304,10 @@ export declare class SigespService {
304
304
  * @description Obtiene los centros de costo
305
305
  * @return Observable<MCentroCosto[]>
306
306
  * @author Miguel Ramírez
307
- * modificado 9-11-2022
307
+ * @param id:idusurio o id del ecntro de costo
308
+ * modificado 28-12-2022
308
309
  */
309
- getCentroCosto(tipo: string): Observable<MCentroCosto[]>;
310
+ getCentroCosto(tipo?: 'all' | 'one' | 'user', id?: number): Observable<MCentroCosto[]>;
310
311
  /**
311
312
  * @description Obtiene los centros de costo
312
313
  * @return Observable<IResponse>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigesp",
3
- "version": "0.9.19-20221221",
3
+ "version": "0.9.21-20221229",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },