keevo-api-services-hcm 0.0.4 → 0.0.6
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/esm2022/lib/services/hcm/cargo.service.mjs +10 -11
- package/esm2022/lib/services/hcm/centro-custo.service.mjs +12 -13
- package/esm2022/lib/services/hcm/centro-resultado.service.mjs +11 -12
- package/esm2022/lib/services/hcm/departamento.service.mjs +11 -12
- package/esm2022/lib/services/hcm/equipe-membro.service.mjs +16 -17
- package/esm2022/lib/services/hcm/equipe.service.mjs +14 -15
- package/esm2022/lib/services/hcm/hierarquiaorganizacional.service.mjs +14 -15
- package/esm2022/lib/services/hcm/relacionamento-lotacao.service.mjs +16 -17
- package/esm2022/lib/services/hcm/sub-tipo-ocorrencia.service.mjs +11 -12
- package/esm2022/lib/services/hcm/tipo-estado.service.mjs +13 -14
- package/esm2022/lib/services/hcm/tipo-ocorrencia.service.mjs +13 -14
- package/esm2022/lib/services/hcm/unidade-administrativa.service.mjs +11 -12
- package/esm2022/lib/services/hcm/unidade-hierarquica.service.mjs +18 -19
- package/esm2022/lib/services/passaporte/empresa-banner.service.mjs +11 -12
- package/esm2022/lib/services/passaporte/empresa-parametros.service.mjs +12 -13
- package/esm2022/lib/services/passaporte/empresa.service.mjs +11 -12
- package/esm2022/lib/services/pessoa/analista-pessoa.service.mjs +14 -15
- package/esm2022/lib/services/pessoa/colaborador.service.mjs +15 -16
- package/esm2022/lib/services/pessoa/keex.service.mjs +16 -17
- package/esm2022/lib/services/pessoa/lider.service.mjs +23 -24
- package/esm2022/lib/services/pessoa/registro.service.mjs +21 -22
- package/esm2022/lib/services/pessoa/tomador.service.mjs +12 -13
- package/esm2022/lib/services/utilitarios/dadosrelacionamento.service.mjs +3 -3
- package/esm2022/lib/services/utilitarios/validators.service.mjs +4 -4
- package/fesm2022/keevo-api-services-hcm.mjs +265 -266
- package/fesm2022/keevo-api-services-hcm.mjs.map +1 -1
- package/lib/services/hcm/cargo.service.d.ts +4 -4
- package/lib/services/hcm/centro-custo.service.d.ts +4 -4
- package/lib/services/hcm/centro-resultado.service.d.ts +4 -4
- package/lib/services/hcm/departamento.service.d.ts +4 -4
- package/lib/services/hcm/equipe-membro.service.d.ts +6 -6
- package/lib/services/hcm/equipe.service.d.ts +6 -6
- package/lib/services/hcm/hierarquiaorganizacional.service.d.ts +3 -3
- package/lib/services/hcm/relacionamento-lotacao.service.d.ts +4 -4
- package/lib/services/hcm/sub-tipo-ocorrencia.service.d.ts +4 -4
- package/lib/services/hcm/tipo-estado.service.d.ts +4 -4
- package/lib/services/hcm/tipo-ocorrencia.service.d.ts +4 -4
- package/lib/services/hcm/unidade-administrativa.service.d.ts +3 -3
- package/lib/services/hcm/unidade-hierarquica.service.d.ts +4 -4
- package/lib/services/passaporte/empresa-banner.service.d.ts +3 -3
- package/lib/services/passaporte/empresa-parametros.service.d.ts +3 -3
- package/lib/services/passaporte/empresa.service.d.ts +3 -3
- package/lib/services/pessoa/analista-pessoa.service.d.ts +4 -4
- package/lib/services/pessoa/colaborador.service.d.ts +5 -5
- package/lib/services/pessoa/keex.service.d.ts +5 -5
- package/lib/services/pessoa/lider.service.d.ts +7 -7
- package/lib/services/pessoa/registro.service.d.ts +8 -8
- package/lib/services/pessoa/tomador.service.d.ts +5 -5
- package/package.json +5 -3
@@ -1,96 +1,95 @@
|
|
1
|
+
import { BaseApiService } from 'keevo-api-services';
|
1
2
|
import * as i1 from '@angular/common/http';
|
2
3
|
import { HttpHeaders } from '@angular/common/http';
|
3
4
|
import * as i0 from '@angular/core';
|
4
5
|
import { Injectable, Inject } from '@angular/core';
|
5
|
-
import * as i2 from 'keevo-api-services';
|
6
|
-
import { BaseApiService } from 'keevo-api-services';
|
7
6
|
|
8
7
|
class CargoService extends BaseApiService {
|
9
|
-
constructor(httpClient,
|
8
|
+
constructor(httpClient, hostEnv) {
|
10
9
|
super(httpClient);
|
11
10
|
this.httpClient = httpClient;
|
12
|
-
this.
|
11
|
+
this.hostEnv = hostEnv;
|
13
12
|
this.rotaListarTodos = 'hcm/api/v1/cargo/listartodos';
|
14
13
|
}
|
15
14
|
Listar(filtro) {
|
16
|
-
return this.getAllHeaders(this.
|
15
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
17
16
|
}
|
18
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
19
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CargoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CargoService, providedIn: 'root' }); }
|
20
19
|
}
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CargoService, decorators: [{
|
22
21
|
type: Injectable,
|
23
22
|
args: [{
|
24
23
|
providedIn: 'root'
|
25
24
|
}]
|
26
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
25
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
27
26
|
type: Inject,
|
28
|
-
args: ['
|
27
|
+
args: ['hostEnv']
|
29
28
|
}] }] });
|
30
29
|
|
31
30
|
class CentroCustoService extends BaseApiService {
|
32
|
-
constructor(httpClient,
|
31
|
+
constructor(httpClient, hostEnv) {
|
33
32
|
super(httpClient);
|
34
33
|
this.httpClient = httpClient;
|
35
|
-
this.
|
34
|
+
this.hostEnv = hostEnv;
|
36
35
|
this.rotaListar = 'hcm/api/v1/centrocusto/listar';
|
37
36
|
this.rotaListarTodos = 'hcm/api/v1/centrocusto/listartodos';
|
38
37
|
this.rotaSelecionar = 'hcm/api/v1/centrocusto/selecionar';
|
39
38
|
}
|
40
39
|
Listar(filtro) {
|
41
|
-
return this.getAllHeaders(this.
|
40
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
42
41
|
}
|
43
42
|
ListarTodos(filtro) {
|
44
|
-
return this.getAllHeaders(this.
|
43
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
45
44
|
}
|
46
45
|
Selecionar(idcentrocusto) {
|
47
|
-
return this.get(this.
|
46
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcentrocusto}`);
|
48
47
|
}
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
50
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroCustoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
49
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroCustoService, providedIn: 'root' }); }
|
51
50
|
}
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroCustoService, decorators: [{
|
53
52
|
type: Injectable,
|
54
53
|
args: [{
|
55
54
|
providedIn: 'root'
|
56
55
|
}]
|
57
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
56
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
58
57
|
type: Inject,
|
59
|
-
args: ['
|
58
|
+
args: ['hostEnv']
|
60
59
|
}] }] });
|
61
60
|
|
62
61
|
class CentroResultadoService extends BaseApiService {
|
63
|
-
constructor(httpClient,
|
62
|
+
constructor(httpClient, hostEnv) {
|
64
63
|
super(httpClient);
|
65
64
|
this.httpClient = httpClient;
|
66
|
-
this.
|
65
|
+
this.hostEnv = hostEnv;
|
67
66
|
this.rotaListarTodos = 'hcm/api/v1/centroresultado/listartodos';
|
68
67
|
this.rotaSelecionar = 'hcm/api/v1/centroresultado/selecionar';
|
69
68
|
}
|
70
69
|
ListarTodos(filtro) {
|
71
|
-
return this.getAllHeaders(this.
|
70
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
72
71
|
}
|
73
72
|
Selecionar(idcentroresultado) {
|
74
|
-
return this.get(this.
|
73
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcentroresultado}`);
|
75
74
|
}
|
76
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
77
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroResultadoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
76
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroResultadoService, providedIn: 'root' }); }
|
78
77
|
}
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: CentroResultadoService, decorators: [{
|
80
79
|
type: Injectable,
|
81
80
|
args: [{
|
82
81
|
providedIn: 'root'
|
83
82
|
}]
|
84
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
83
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
85
84
|
type: Inject,
|
86
|
-
args: ['
|
85
|
+
args: ['hostEnv']
|
87
86
|
}] }] });
|
88
87
|
|
89
88
|
class ColaboradorService extends BaseApiService {
|
90
|
-
constructor(httpClient,
|
89
|
+
constructor(httpClient, hostEnv) {
|
91
90
|
super(httpClient);
|
92
91
|
this.httpClient = httpClient;
|
93
|
-
this.
|
92
|
+
this.hostEnv = hostEnv;
|
94
93
|
this.rotaListarTodos = 'hcm/api/v1/colaborador/Listar';
|
95
94
|
this.rotaSelecionar = 'hcm/api/v1/colaborador/selecionar';
|
96
95
|
this.rotaSelecionarPossivelColaborador = 'hcm/api/v1/colaborador/SelecionarPossivelColaborador';
|
@@ -98,65 +97,65 @@ class ColaboradorService extends BaseApiService {
|
|
98
97
|
this.rotaSalvarLinha = 'hcm/api/v1/colaborador/salvarlinha';
|
99
98
|
}
|
100
99
|
Listar(filtro) {
|
101
|
-
return this.getAllHeaders(this.
|
100
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
102
101
|
}
|
103
102
|
Selecionar(idcolaborador) {
|
104
|
-
return this.get(this.
|
103
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcolaborador}`);
|
105
104
|
}
|
106
105
|
SelecionarPossivelColaborador(filtro) {
|
107
|
-
return this.getHeaders(this.
|
106
|
+
return this.getHeaders(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarPossivelColaborador}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
108
107
|
}
|
109
108
|
Salvar(colaborador) {
|
110
|
-
return this.post(this.
|
109
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, colaborador);
|
111
110
|
}
|
112
111
|
SalvarLinha(colaborador) {
|
113
|
-
return this.post(this.
|
112
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarLinha, colaborador);
|
114
113
|
}
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
116
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ColaboradorService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
115
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ColaboradorService, providedIn: 'root' }); }
|
117
116
|
}
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ColaboradorService, decorators: [{
|
119
118
|
type: Injectable,
|
120
119
|
args: [{
|
121
120
|
providedIn: 'root'
|
122
121
|
}]
|
123
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
122
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
124
123
|
type: Inject,
|
125
|
-
args: ['
|
124
|
+
args: ['hostEnv']
|
126
125
|
}] }] });
|
127
126
|
|
128
127
|
class DepartamentoService extends BaseApiService {
|
129
|
-
constructor(httpClient,
|
128
|
+
constructor(httpClient, hostEnv) {
|
130
129
|
super(httpClient);
|
131
130
|
this.httpClient = httpClient;
|
132
|
-
this.
|
131
|
+
this.hostEnv = hostEnv;
|
133
132
|
this.rotaListarTodos = 'hcm/api/v1/departamento/listartodos';
|
134
133
|
this.rotaListarSelecionar = 'hcm/api/v1/departamento/selecionar';
|
135
134
|
}
|
136
135
|
ListarTodos(filtro) {
|
137
|
-
return this.getAllHeaders(this.
|
136
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
138
137
|
}
|
139
138
|
Selecionar(iddepartamento) {
|
140
|
-
return this.get(this.
|
139
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaListarSelecionar}/${iddepartamento}`);
|
141
140
|
}
|
142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
143
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
142
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
|
144
143
|
}
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DepartamentoService, decorators: [{
|
146
145
|
type: Injectable,
|
147
146
|
args: [{
|
148
147
|
providedIn: 'root'
|
149
148
|
}]
|
150
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
149
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
151
150
|
type: Inject,
|
152
|
-
args: ['
|
151
|
+
args: ['hostEnv']
|
153
152
|
}] }] });
|
154
153
|
|
155
154
|
class EquipeMembroService extends BaseApiService {
|
156
|
-
constructor(httpClient,
|
155
|
+
constructor(httpClient, hostEnv) {
|
157
156
|
super(httpClient);
|
158
157
|
this.httpClient = httpClient;
|
159
|
-
this.
|
158
|
+
this.hostEnv = hostEnv;
|
160
159
|
this.rotaExcluir = 'hcm/api/v1/equipemembro/excluir';
|
161
160
|
this.rotaListar = 'hcm/api/v1/equipemembro/listar';
|
162
161
|
this.rotaListarPorchave = 'hcm/api/v1/equipemembro/listarporchave';
|
@@ -166,44 +165,44 @@ class EquipeMembroService extends BaseApiService {
|
|
166
165
|
this.rotaSelecionar = 'hcm/api/v1/equipemembro/selecionar';
|
167
166
|
}
|
168
167
|
Excluir(idanalista) {
|
169
|
-
return this.delete(this.
|
168
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
|
170
169
|
}
|
171
170
|
Listar(filtro) {
|
172
|
-
return this.getAllHeaders(this.
|
171
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
173
172
|
}
|
174
173
|
ListarPorChave(filtro) {
|
175
|
-
return this.getAllHeaders(this.
|
174
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
176
175
|
}
|
177
176
|
ListarPossiveisMembros(filtro) {
|
178
|
-
return this.getAllHeaders(this.
|
177
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisMembros, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
179
178
|
}
|
180
179
|
Salvar(data) {
|
181
|
-
return this.post(this.
|
180
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
182
181
|
}
|
183
182
|
SalvarEmLote(data) {
|
184
|
-
return this.post(this.
|
183
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarEmLote, data);
|
185
184
|
}
|
186
185
|
Selecionar(idanalista) {
|
187
|
-
return this.get(this.
|
186
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
|
188
187
|
}
|
189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
190
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeMembroService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
189
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeMembroService, providedIn: 'root' }); }
|
191
190
|
}
|
192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeMembroService, decorators: [{
|
193
192
|
type: Injectable,
|
194
193
|
args: [{
|
195
194
|
providedIn: 'root'
|
196
195
|
}]
|
197
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
196
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
198
197
|
type: Inject,
|
199
|
-
args: ['
|
198
|
+
args: ['hostEnv']
|
200
199
|
}] }] });
|
201
200
|
|
202
201
|
class EquipeService extends BaseApiService {
|
203
|
-
constructor(httpClient,
|
202
|
+
constructor(httpClient, hostEnv) {
|
204
203
|
super(httpClient);
|
205
204
|
this.httpClient = httpClient;
|
206
|
-
this.
|
205
|
+
this.hostEnv = hostEnv;
|
207
206
|
this.rotaExcluir = 'hcm/api/v1/equipe/excluir';
|
208
207
|
this.rotaListar = 'hcm/api/v1/equipe/listar';
|
209
208
|
this.rotaListarPorchave = 'hcm/api/v1/equipe/listarporchave';
|
@@ -211,37 +210,37 @@ class EquipeService extends BaseApiService {
|
|
211
210
|
this.rotaSelecionar = 'hcm/api/v1/equipe/selecionar';
|
212
211
|
}
|
213
212
|
Excluir(idequipe) {
|
214
|
-
return this.delete(this.
|
213
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idequipe}`);
|
215
214
|
}
|
216
215
|
Listar(filtro) {
|
217
|
-
return this.getAllHeaders(this.
|
216
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
218
217
|
}
|
219
218
|
ListarPorChave(filtro) {
|
220
|
-
return this.getAllHeaders(this.
|
219
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
221
220
|
}
|
222
221
|
Salvar(data) {
|
223
|
-
return this.post(this.
|
222
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
224
223
|
}
|
225
224
|
Selecionar(idanalista) {
|
226
|
-
return this.get(this.
|
225
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
|
227
226
|
}
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
229
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
228
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeService, providedIn: 'root' }); }
|
230
229
|
}
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EquipeService, decorators: [{
|
232
231
|
type: Injectable,
|
233
232
|
args: [{
|
234
233
|
providedIn: 'root'
|
235
234
|
}]
|
236
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
235
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
237
236
|
type: Inject,
|
238
|
-
args: ['
|
237
|
+
args: ['hostEnv']
|
239
238
|
}] }] });
|
240
239
|
|
241
240
|
class HierarquiaOrganizacionalService extends BaseApiService {
|
242
|
-
constructor(httpClient,
|
241
|
+
constructor(httpClient, hostEnv) {
|
243
242
|
super(httpClient);
|
244
|
-
this.
|
243
|
+
this.hostEnv = hostEnv;
|
245
244
|
this.rotaExcluir = 'hcm/api/v1/hierarquiaorganizacional/excluir';
|
246
245
|
this.rotaListar = 'hcm/api/v1/hierarquiaorganizacional/listar';
|
247
246
|
this.rotaListartodos = 'hcm/api/v1/hierarquiaorganizacional/listartodos';
|
@@ -249,38 +248,38 @@ class HierarquiaOrganizacionalService extends BaseApiService {
|
|
249
248
|
this.rotaSelecionar = 'hcm/api/v1/hierarquiaorganizacional/selecionar';
|
250
249
|
}
|
251
250
|
Excluir(id) {
|
252
|
-
return this.delete(this.
|
251
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
|
253
252
|
}
|
254
253
|
Listar(filtro) {
|
255
|
-
return this.post(this.
|
254
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
|
256
255
|
}
|
257
256
|
ListarTodos(filtro) {
|
258
|
-
return this.post(this.
|
257
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaListartodos, filtro);
|
259
258
|
}
|
260
259
|
Salvar(dados) {
|
261
|
-
return this.post(this.
|
260
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, dados);
|
262
261
|
}
|
263
262
|
Selecionar(id) {
|
264
|
-
return this.get(this.
|
263
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
265
264
|
}
|
266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
267
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: HierarquiaOrganizacionalService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
266
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: HierarquiaOrganizacionalService, providedIn: 'root' }); }
|
268
267
|
}
|
269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: HierarquiaOrganizacionalService, decorators: [{
|
270
269
|
type: Injectable,
|
271
270
|
args: [{
|
272
271
|
providedIn: 'root'
|
273
272
|
}]
|
274
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
273
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
275
274
|
type: Inject,
|
276
|
-
args: ['
|
275
|
+
args: ['hostEnv']
|
277
276
|
}] }] });
|
278
277
|
|
279
278
|
class RelacionamentoLotacaoService extends BaseApiService {
|
280
|
-
constructor(httpClient,
|
279
|
+
constructor(httpClient, hostEnv) {
|
281
280
|
super(httpClient);
|
282
281
|
this.httpClient = httpClient;
|
283
|
-
this.
|
282
|
+
this.hostEnv = hostEnv;
|
284
283
|
this.rotaExcluir = 'hcm/api/v1/relacionamentolotacao/excluir';
|
285
284
|
this.rotaExisteEmpresa = 'hcm/api/v1/relacionamentolotacao/existeempresa';
|
286
285
|
this.rotaListar = 'hcm/api/v1/relacionamentolotacao/listar';
|
@@ -290,168 +289,168 @@ class RelacionamentoLotacaoService extends BaseApiService {
|
|
290
289
|
this.rotaSelecionar = 'hcm/api/v1/relacionamentolotacao/selecionar';
|
291
290
|
}
|
292
291
|
Excluir(idanalista) {
|
293
|
-
return this.delete(this.
|
292
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
|
294
293
|
}
|
295
294
|
ExisteEmpresa(idmaster, idempresaevocenter) {
|
296
|
-
return this.get(this.
|
295
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
|
297
296
|
}
|
298
297
|
Listar(filtro) {
|
299
|
-
return this.getAllHeaders(this.
|
298
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
300
299
|
}
|
301
300
|
ListarTodos(filtro) {
|
302
|
-
return this.getAllHeaders(this.
|
301
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
303
302
|
}
|
304
303
|
ListarPossiveisAnalistas(filtro) {
|
305
|
-
return this.getAllHeaders(this.
|
304
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
306
305
|
}
|
307
306
|
Salvar(data) {
|
308
|
-
return this.post(this.
|
307
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
309
308
|
}
|
310
309
|
Selecionar(idrelacionamentolotacao) {
|
311
|
-
return this.get(this.
|
310
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idrelacionamentolotacao}`);
|
312
311
|
}
|
313
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
314
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
312
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RelacionamentoLotacaoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
313
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RelacionamentoLotacaoService, providedIn: 'root' }); }
|
315
314
|
}
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RelacionamentoLotacaoService, decorators: [{
|
317
316
|
type: Injectable,
|
318
317
|
args: [{
|
319
318
|
providedIn: 'root'
|
320
319
|
}]
|
321
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
320
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
322
321
|
type: Inject,
|
323
|
-
args: ['
|
322
|
+
args: ['hostEnv']
|
324
323
|
}] }] });
|
325
324
|
|
326
325
|
class SubTipoOcorrenciaService extends BaseApiService {
|
327
|
-
constructor(httpClient,
|
326
|
+
constructor(httpClient, hostEnv) {
|
328
327
|
super(httpClient);
|
329
328
|
this.httpClient = httpClient;
|
330
|
-
this.
|
329
|
+
this.hostEnv = hostEnv;
|
331
330
|
this.rotaListar = 'hcm/api/v1/subtipoocorrencia/listar';
|
332
331
|
this.rotaSalvar = 'hcm/api/v1/subtipoocorrencia/salvar';
|
333
332
|
}
|
334
333
|
Listar(filtro) {
|
335
|
-
return this.getAllHeaders(this.
|
334
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
336
335
|
}
|
337
336
|
Salvar(data) {
|
338
|
-
return this.post(this.
|
337
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
339
338
|
}
|
340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
341
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
339
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: SubTipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
340
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: SubTipoOcorrenciaService, providedIn: 'root' }); }
|
342
341
|
}
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: SubTipoOcorrenciaService, decorators: [{
|
344
343
|
type: Injectable,
|
345
344
|
args: [{
|
346
345
|
providedIn: 'root'
|
347
346
|
}]
|
348
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
347
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
349
348
|
type: Inject,
|
350
|
-
args: ['
|
349
|
+
args: ['hostEnv']
|
351
350
|
}] }] });
|
352
351
|
|
353
352
|
class TipoEstadoService extends BaseApiService {
|
354
|
-
constructor(httpClient,
|
353
|
+
constructor(httpClient, hostEnv) {
|
355
354
|
super(httpClient);
|
356
355
|
this.httpClient = httpClient;
|
357
|
-
this.
|
356
|
+
this.hostEnv = hostEnv;
|
358
357
|
this.rotaExcluir = 'hcm/api/v1/tipoestado/excluir';
|
359
358
|
this.rotaListar = 'hcm/api/v1/tipoestado/listar';
|
360
359
|
this.rotaSalvar = 'hcm/api/v1/tipoestado/salvar';
|
361
360
|
this.rotaSelecionar = 'hcm/api/v1/tipoestado/selecionar';
|
362
361
|
}
|
363
362
|
Excluir(id) {
|
364
|
-
return this.delete(this.
|
363
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
|
365
364
|
}
|
366
365
|
Listar(filtro) {
|
367
|
-
return this.getAllHeaders(this.
|
366
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
368
367
|
}
|
369
368
|
Salvar(estado) {
|
370
|
-
return this.post(this.
|
369
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, estado);
|
371
370
|
}
|
372
371
|
Selecionar(id) {
|
373
|
-
return this.get(this.
|
372
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
374
373
|
}
|
375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
376
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoEstadoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoEstadoService, providedIn: 'root' }); }
|
377
376
|
}
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoEstadoService, decorators: [{
|
379
378
|
type: Injectable,
|
380
379
|
args: [{
|
381
380
|
providedIn: 'root'
|
382
381
|
}]
|
383
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
382
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
384
383
|
type: Inject,
|
385
|
-
args: ['
|
384
|
+
args: ['hostEnv']
|
386
385
|
}] }] });
|
387
386
|
|
388
387
|
class TipoOcorrenciaService extends BaseApiService {
|
389
|
-
constructor(httpClient,
|
388
|
+
constructor(httpClient, hostEnv) {
|
390
389
|
super(httpClient);
|
391
390
|
this.httpClient = httpClient;
|
392
|
-
this.
|
391
|
+
this.hostEnv = hostEnv;
|
393
392
|
this.rotaExcluir = 'hcm/api/v1/tipoocorrencia/excluir';
|
394
393
|
this.rotaListar = 'hcm/api/v1/tipoocorrencia/listar';
|
395
394
|
this.rotaSalvar = 'hcm/api/v1/tipoocorrencia/salvar';
|
396
395
|
this.rotaSelecionar = 'hcm/api/v1/tipoocorrencia/selecionar';
|
397
396
|
}
|
398
397
|
Excluir(idtipoocorrencia) {
|
399
|
-
return this.delete(this.
|
398
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idtipoocorrencia}`);
|
400
399
|
}
|
401
400
|
Listar(filtro) {
|
402
|
-
return this.getAllHeaders(this.
|
401
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
403
402
|
}
|
404
403
|
Salvar(data) {
|
405
|
-
return this.post(this.
|
404
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
406
405
|
}
|
407
406
|
Selecionar(idtipoocorrencia) {
|
408
|
-
return this.get(this.
|
407
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idtipoocorrencia}`);
|
409
408
|
}
|
410
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
411
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
409
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
410
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoOcorrenciaService, providedIn: 'root' }); }
|
412
411
|
}
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TipoOcorrenciaService, decorators: [{
|
414
413
|
type: Injectable,
|
415
414
|
args: [{
|
416
415
|
providedIn: 'root'
|
417
416
|
}]
|
418
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
417
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
419
418
|
type: Inject,
|
420
|
-
args: ['
|
419
|
+
args: ['hostEnv']
|
421
420
|
}] }] });
|
422
421
|
|
423
422
|
class UnidadeAdministrativaService extends BaseApiService {
|
424
|
-
constructor(httpClient,
|
423
|
+
constructor(httpClient, hostEnv) {
|
425
424
|
super(httpClient);
|
426
425
|
this.httpClient = httpClient;
|
427
|
-
this.
|
426
|
+
this.hostEnv = hostEnv;
|
428
427
|
this.rotaListarTodos = 'hcm/api/v1/unidadeadministrativa/listartodos';
|
429
428
|
this.rotaSelecionar = 'hcm/api/v1/unidadeadministrativa/selecionar';
|
430
429
|
}
|
431
430
|
ListarTodos(filtro) {
|
432
|
-
return this.getAllHeaders(this.
|
431
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
433
432
|
}
|
434
433
|
Selecionar(idunidadeadministrativa) {
|
435
|
-
return this.get(this.
|
434
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idunidadeadministrativa}`);
|
436
435
|
}
|
437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
438
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
436
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadeAdministrativaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
437
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadeAdministrativaService, providedIn: 'root' }); }
|
439
438
|
}
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadeAdministrativaService, decorators: [{
|
441
440
|
type: Injectable,
|
442
441
|
args: [{
|
443
442
|
providedIn: 'root'
|
444
443
|
}]
|
445
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
444
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
446
445
|
type: Inject,
|
447
|
-
args: ['
|
446
|
+
args: ['hostEnv']
|
448
447
|
}] }] });
|
449
448
|
|
450
449
|
class UnidadehierarquicaService extends BaseApiService {
|
451
|
-
constructor(httpClient,
|
450
|
+
constructor(httpClient, hostEnv) {
|
452
451
|
super(httpClient);
|
453
452
|
this.httpClient = httpClient;
|
454
|
-
this.
|
453
|
+
this.hostEnv = hostEnv;
|
455
454
|
this.rotaExcluir = 'hcm/api/v1/unidadehierarquica/excluir';
|
456
455
|
this.rotaExisteEmpresa = 'hcm/api/v1/unidadehierarquica/existeempresa';
|
457
456
|
this.rotaListar = 'hcm/api/v1/unidadehierarquica/listar';
|
@@ -463,135 +462,135 @@ class UnidadehierarquicaService extends BaseApiService {
|
|
463
462
|
this.rotaSelecionar = 'hcm/api/v1/unidadehierarquica/selecionar';
|
464
463
|
}
|
465
464
|
Excluir(idunidadehierarquica) {
|
466
|
-
return this.delete(this.
|
465
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idunidadehierarquica}`);
|
467
466
|
}
|
468
467
|
ExisteEmpresa(idmaster, idempresaevocenter) {
|
469
|
-
return this.get(this.
|
468
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
|
470
469
|
}
|
471
470
|
Listar(filtro) {
|
472
|
-
return this.getAllHeaders(this.
|
471
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
473
472
|
}
|
474
473
|
ListarPorChave(filtro) {
|
475
|
-
return this.getAllHeaders(this.
|
474
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
476
475
|
}
|
477
476
|
ListarPossiveisUnidadesSuperiores(filtro) {
|
478
|
-
return this.getAllHeaders(this.
|
477
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisUnidadesSuperiores, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
479
478
|
}
|
480
479
|
ListarTodos(filtro) {
|
481
|
-
return this.getAllHeaders(this.
|
480
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
482
481
|
}
|
483
482
|
Salvar(data) {
|
484
|
-
return this.post(this.
|
483
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
485
484
|
}
|
486
485
|
Selecionar(idunidadehierarquica) {
|
487
|
-
return this.get(this.
|
486
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idunidadehierarquica}`);
|
488
487
|
}
|
489
488
|
SelecionarRaizPorChave(filtro) {
|
490
|
-
return this.getHeaders(this.
|
489
|
+
return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaSelecionarRaizPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
491
490
|
}
|
492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
493
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadehierarquicaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
492
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadehierarquicaService, providedIn: 'root' }); }
|
494
493
|
}
|
495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: UnidadehierarquicaService, decorators: [{
|
496
495
|
type: Injectable,
|
497
496
|
args: [{
|
498
497
|
providedIn: 'root'
|
499
498
|
}]
|
500
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
499
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
501
500
|
type: Inject,
|
502
|
-
args: ['
|
501
|
+
args: ['hostEnv']
|
503
502
|
}] }] });
|
504
503
|
|
505
504
|
class EmpresaBannerService extends BaseApiService {
|
506
|
-
constructor(httpClient,
|
505
|
+
constructor(httpClient, hostEnv) {
|
507
506
|
super(httpClient);
|
508
507
|
this.httpClient = httpClient;
|
509
|
-
this.
|
508
|
+
this.hostEnv = hostEnv;
|
510
509
|
this.rotaSalvar = 'hcm/api/v1/empresabanner/salvar';
|
511
510
|
this.rotaSelecionar = 'hcm/api/v1/empresabanner/selecionar';
|
512
511
|
}
|
513
512
|
Salvar(data) {
|
514
|
-
return this.post(this.
|
513
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
515
514
|
}
|
516
515
|
Selecionar(idmaster, idempresaevocenter, ordem) {
|
517
|
-
return this.get(this.
|
516
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idmaster}/${idempresaevocenter}/${ordem}`);
|
518
517
|
}
|
519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
520
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaBannerService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaBannerService, providedIn: 'root' }); }
|
521
520
|
}
|
522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaBannerService, decorators: [{
|
523
522
|
type: Injectable,
|
524
523
|
args: [{
|
525
524
|
providedIn: 'root'
|
526
525
|
}]
|
527
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
526
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
528
527
|
type: Inject,
|
529
|
-
args: ['
|
528
|
+
args: ['hostEnv']
|
530
529
|
}] }] });
|
531
530
|
|
532
531
|
class EmpresaParametrosService extends BaseApiService {
|
533
|
-
constructor(httpClient,
|
532
|
+
constructor(httpClient, hostEnv) {
|
534
533
|
super(httpClient);
|
535
534
|
this.httpClient = httpClient;
|
536
|
-
this.
|
535
|
+
this.hostEnv = hostEnv;
|
537
536
|
this.rotaSalvar = 'hcm/api/v1/empresaparametros/salvar';
|
538
537
|
this.rotaSalvarEkeep = 'hcm/api/v1/empresaparametros/salvarekeep';
|
539
538
|
this.rotaSelecionar = 'hcm/api/v1/empresaparametros/selecionar';
|
540
539
|
}
|
541
540
|
Selecionar(idempresaevocenter) {
|
542
|
-
return this.get(this.
|
541
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idempresaevocenter}`);
|
543
542
|
}
|
544
543
|
Salvar(data) {
|
545
|
-
return this.post(this.
|
544
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
546
545
|
}
|
547
546
|
SalvarEkeep(data) {
|
548
|
-
return this.post(this.
|
547
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarEkeep, data);
|
549
548
|
}
|
550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
551
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
549
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaParametrosService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
550
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaParametrosService, providedIn: 'root' }); }
|
552
551
|
}
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaParametrosService, decorators: [{
|
554
553
|
type: Injectable,
|
555
554
|
args: [{
|
556
555
|
providedIn: 'root'
|
557
556
|
}]
|
558
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
557
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
559
558
|
type: Inject,
|
560
|
-
args: ['
|
559
|
+
args: ['hostEnv']
|
561
560
|
}] }] });
|
562
561
|
|
563
562
|
class EmpresaService extends BaseApiService {
|
564
|
-
constructor(httpClient,
|
563
|
+
constructor(httpClient, hostEnv) {
|
565
564
|
super(httpClient);
|
566
565
|
this.httpClient = httpClient;
|
567
|
-
this.
|
566
|
+
this.hostEnv = hostEnv;
|
568
567
|
this.rotaListarEmpresas = 'hcm/api/v1/empresa/listarempresas';
|
569
568
|
this.rotaListarEmpresaseFiliais = 'hcm/api/v1/empresa/listarempresaefiliais';
|
570
569
|
}
|
571
570
|
ListarEmpresas(idmaster) {
|
572
|
-
return this.getAll(this.
|
571
|
+
return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListarEmpresas}/${idmaster}`);
|
573
572
|
}
|
574
573
|
ListarEmpresaEFiliais(idmaster, idempresaevocenter) {
|
575
|
-
return this.getAll(this.
|
574
|
+
return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListarEmpresaseFiliais}/${idmaster}/${idempresaevocenter}`);
|
576
575
|
}
|
577
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
578
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
576
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
577
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
|
579
578
|
}
|
580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: EmpresaService, decorators: [{
|
581
580
|
type: Injectable,
|
582
581
|
args: [{
|
583
582
|
providedIn: 'root'
|
584
583
|
}]
|
585
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
584
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
586
585
|
type: Inject,
|
587
|
-
args: ['
|
586
|
+
args: ['hostEnv']
|
588
587
|
}] }] });
|
589
588
|
|
590
589
|
class AnalistaPessoaService extends BaseApiService {
|
591
|
-
constructor(httpClient,
|
590
|
+
constructor(httpClient, hostEnv) {
|
592
591
|
super(httpClient);
|
593
592
|
this.httpClient = httpClient;
|
594
|
-
this.
|
593
|
+
this.hostEnv = hostEnv;
|
595
594
|
this.rotaExcluir = 'hcm/api/v1/analistapessoa/excluir';
|
596
595
|
this.rotaListar = 'hcm/api/v1/analistapessoa/listar';
|
597
596
|
this.rotaListarPossiveisAnalistas = 'hcm/api/v1/analistapessoa/listarpossiveisanalistas';
|
@@ -599,38 +598,38 @@ class AnalistaPessoaService extends BaseApiService {
|
|
599
598
|
this.rotaSelecionar = 'hcm/api/v1/analistapessoa/selecionar';
|
600
599
|
}
|
601
600
|
Excluir(idanalista) {
|
602
|
-
return this.delete(this.
|
601
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
|
603
602
|
}
|
604
603
|
Listar(filtro) {
|
605
|
-
return this.post(this.
|
604
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
|
606
605
|
}
|
607
606
|
ListarPossiveisAnalistas(filtro) {
|
608
|
-
return this.getAllHeaders(this.
|
607
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
609
608
|
}
|
610
609
|
Salvar(data) {
|
611
|
-
return this.post(this.
|
610
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
612
611
|
}
|
613
612
|
Selecionar(idanalista) {
|
614
|
-
return this.get(this.
|
613
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
|
615
614
|
}
|
616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
617
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: AnalistaPessoaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
616
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: AnalistaPessoaService, providedIn: 'root' }); }
|
618
617
|
}
|
619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: AnalistaPessoaService, decorators: [{
|
620
619
|
type: Injectable,
|
621
620
|
args: [{
|
622
621
|
providedIn: 'root'
|
623
622
|
}]
|
624
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
623
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
625
624
|
type: Inject,
|
626
|
-
args: ['
|
625
|
+
args: ['hostEnv']
|
627
626
|
}] }] });
|
628
627
|
|
629
628
|
class KeexService extends BaseApiService {
|
630
|
-
constructor(httpClient,
|
629
|
+
constructor(httpClient, hostEnv) {
|
631
630
|
super(httpClient);
|
632
631
|
this.httpClient = httpClient;
|
633
|
-
this.
|
632
|
+
this.hostEnv = hostEnv;
|
634
633
|
this.rotaListarUsuarios = 'hcm/api/v1/keex/listarusuarios';
|
635
634
|
this.rotaPesquisarUsuario = 'hcm/api/v1/keex/pesquisarusuario';
|
636
635
|
this.rotaTotalFuncionariosAcessoKeex = 'hcm/api/v1/keex/totalfuncionariosacessokeex`';
|
@@ -639,41 +638,41 @@ class KeexService extends BaseApiService {
|
|
639
638
|
this.rotaEnviaConvite = 'hcm/api/v1/keex/enviaconvite';
|
640
639
|
}
|
641
640
|
ListarUsuarios(filtro) {
|
642
|
-
return this.post(this.
|
641
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaListarUsuarios, filtro);
|
643
642
|
}
|
644
643
|
PesquisarUsuario(filtro) {
|
645
|
-
return this.getAllHeaders(this.
|
644
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaPesquisarUsuario, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
646
645
|
}
|
647
646
|
TotalFuncionariosAcessokeex(filtro) {
|
648
|
-
return this.getAllHeaders(this.
|
647
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaTotalFuncionariosAcessoKeex, new HttpHeaders().set('filtro', JSON.stringify(filtro)));
|
649
648
|
}
|
650
649
|
AlteraAcessoAoKeex(parametros) {
|
651
|
-
return this.post(this.
|
650
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaAlteracoesKeex, parametros);
|
652
651
|
}
|
653
652
|
AlteraAcessoAoKeexEmpresa(parametros) {
|
654
|
-
return this.post(this.
|
653
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaAlteracoesKeexEmpresa, parametros);
|
655
654
|
}
|
656
655
|
EnviarConvite(usuarios) {
|
657
|
-
return this.post(this.
|
656
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaEnviaConvite, usuarios);
|
658
657
|
}
|
659
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
660
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeexService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
659
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeexService, providedIn: 'root' }); }
|
661
660
|
}
|
662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: KeexService, decorators: [{
|
663
662
|
type: Injectable,
|
664
663
|
args: [{
|
665
664
|
providedIn: 'root',
|
666
665
|
}]
|
667
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
666
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
668
667
|
type: Inject,
|
669
|
-
args: ['
|
668
|
+
args: ['hostEnv']
|
670
669
|
}] }] });
|
671
670
|
|
672
671
|
class LiderService extends BaseApiService {
|
673
|
-
constructor(httpClient,
|
672
|
+
constructor(httpClient, hostEnv) {
|
674
673
|
super(httpClient);
|
675
674
|
this.httpClient = httpClient;
|
676
|
-
this.
|
675
|
+
this.hostEnv = hostEnv;
|
677
676
|
this.rotaAtualizaEstadoAtivo = 'hcm/api/v1/lider/atualizaestadoativo';
|
678
677
|
this.rotaListarPossiveisLideres = 'hcm/api/v1/lider/listarpossiveislideres';
|
679
678
|
this.rotaListarPosiveisLideresSubstituto = 'hcm/api/v1/lider/listarposiveislideressubstituto';
|
@@ -689,65 +688,65 @@ class LiderService extends BaseApiService {
|
|
689
688
|
this.rotaExisteIDRegistro = 'hcm/api/v1/lider/existeidregistro';
|
690
689
|
}
|
691
690
|
AtualizaEstadoAtivo(model) {
|
692
|
-
return this.post(this.
|
691
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaAtualizaEstadoAtivo, model);
|
693
692
|
}
|
694
693
|
ListarPossiveisLideres(filtro) {
|
695
|
-
return this.getAllHeaders(this.
|
694
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisLideres, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
696
695
|
}
|
697
696
|
ListarPossiveisLideresSubstituto(filtro) {
|
698
|
-
return this.getAllHeaders(this.
|
697
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPosiveisLideresSubstituto, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
699
698
|
}
|
700
699
|
Listar(filtro) {
|
701
|
-
return this.getAllHeaders(this.
|
700
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
702
701
|
}
|
703
702
|
ListarTodos(idmaster, idempresaevocenter) {
|
704
|
-
return this.getAll(this.
|
703
|
+
return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListar}/${idmaster}/${idempresaevocenter}`);
|
705
704
|
}
|
706
705
|
ListarPorChave(filtro) {
|
707
|
-
return this.getAllHeaders(this.
|
706
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
708
707
|
}
|
709
708
|
Selecionar(idlider) {
|
710
|
-
return this.get(this.
|
709
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idlider}`);
|
711
710
|
}
|
712
711
|
SelecionarDadosPessoa(idmaster, cpf) {
|
713
|
-
return this.get(this.
|
712
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarDadosPesssoa}/${idmaster}/${cpf}`);
|
714
713
|
}
|
715
714
|
Salvar(lider) {
|
716
|
-
return this.post(this.
|
715
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, lider);
|
717
716
|
}
|
718
717
|
Excluir(idlider) {
|
719
|
-
return this.delete(this.
|
718
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idlider}`);
|
720
719
|
}
|
721
720
|
VerificaLiderAtivo(idlider) {
|
722
|
-
return this.get(this.
|
721
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaVerificaLiderAtivo}/${idlider}`);
|
723
722
|
}
|
724
723
|
ExisteLiderPrincipal(idmaster, idempresaevocenter) {
|
725
|
-
return this.get(this.
|
724
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteLiderPrincipal}/${idmaster}/${idempresaevocenter}`);
|
726
725
|
}
|
727
726
|
ExisteCpf(idmaster, idempresaevocenter, cpf) {
|
728
|
-
return this.get(this.
|
727
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
|
729
728
|
}
|
730
729
|
ExisteIDRegistro(idmaster, idempresaevocenter, idregistro) {
|
731
|
-
return this.get(this.
|
730
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteIDRegistro}/${idmaster}/${idempresaevocenter}/${idregistro}`);
|
732
731
|
}
|
733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
734
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
732
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LiderService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
733
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LiderService, providedIn: 'root' }); }
|
735
734
|
}
|
736
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: LiderService, decorators: [{
|
737
736
|
type: Injectable,
|
738
737
|
args: [{
|
739
738
|
providedIn: 'root'
|
740
739
|
}]
|
741
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
740
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
742
741
|
type: Inject,
|
743
|
-
args: ['
|
742
|
+
args: ['hostEnv']
|
744
743
|
}] }] });
|
745
744
|
|
746
745
|
class RegistroService extends BaseApiService {
|
747
|
-
constructor(httpClient,
|
746
|
+
constructor(httpClient, hostEnv) {
|
748
747
|
super(httpClient);
|
749
748
|
this.httpClient = httpClient;
|
750
|
-
this.
|
749
|
+
this.hostEnv = hostEnv;
|
751
750
|
this.rotaExcluir = 'hcm/api/v1/registro/excluir';
|
752
751
|
this.rotaExisteCpf = 'hcm/api/v1/registro/existecpf';
|
753
752
|
this.rotaListar = 'hcm/api/v1/registro/listar';
|
@@ -761,79 +760,79 @@ class RegistroService extends BaseApiService {
|
|
761
760
|
this.rotaAtualizarFoto = 'hcm/api/v1/registro/AtualizarFoto';
|
762
761
|
}
|
763
762
|
Excluir(id) {
|
764
|
-
return this.delete(this.
|
763
|
+
return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
|
765
764
|
}
|
766
765
|
ExisteCpf(idmaster, idempresaevocenter, cpf) {
|
767
|
-
return this.get(this.
|
766
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
|
768
767
|
}
|
769
768
|
Listar(filtro) {
|
770
|
-
return this.post(this.
|
769
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
|
771
770
|
}
|
772
771
|
ListarPerfil(filtro) {
|
773
|
-
return this.getHeaders(this.
|
772
|
+
return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPerfil, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
774
773
|
}
|
775
774
|
ListarFuncionariosSemLotacao(filtro) {
|
776
|
-
return this.getAllHeaders(this.
|
775
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarFuncionariosSemLotacao, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
777
776
|
}
|
778
777
|
Pesquisar(filtro) {
|
779
|
-
return this.getAllHeaders(this.
|
778
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaPesquisar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
780
779
|
}
|
781
780
|
ListarAniversariantes(filtro, periodicidade) {
|
782
|
-
return this.getAllHeaders(this.
|
781
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, `${this.rotaListarAniversariantes}${periodicidade}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
783
782
|
}
|
784
783
|
SelecionarPerfil(filtro) {
|
785
|
-
return this.getHeaders(this.
|
784
|
+
return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaSelecionarPerfil, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
786
785
|
}
|
787
786
|
Salvar(data) {
|
788
|
-
return this.post(this.
|
787
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
|
789
788
|
}
|
790
789
|
Selecionar(id) {
|
791
|
-
return this.get(this.
|
790
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
792
791
|
}
|
793
792
|
SelecionarResumo(id) {
|
794
|
-
return this.get(this.
|
793
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
|
795
794
|
}
|
796
795
|
AtualizarFoto(model) {
|
797
|
-
return this.post(this.
|
796
|
+
return this.post(this.hostEnv.apiUrlHcm, this.rotaAtualizarFoto, model);
|
798
797
|
}
|
799
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
800
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RegistroService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
799
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RegistroService, providedIn: 'root' }); }
|
801
800
|
}
|
802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: RegistroService, decorators: [{
|
803
802
|
type: Injectable,
|
804
803
|
args: [{
|
805
804
|
providedIn: 'root'
|
806
805
|
}]
|
807
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
806
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
808
807
|
type: Inject,
|
809
|
-
args: ['
|
808
|
+
args: ['hostEnv']
|
810
809
|
}] }] });
|
811
810
|
|
812
811
|
class TomadorService extends BaseApiService {
|
813
|
-
constructor(httpClient,
|
812
|
+
constructor(httpClient, hostEnv) {
|
814
813
|
super(httpClient);
|
815
814
|
this.httpClient = httpClient;
|
816
|
-
this.
|
815
|
+
this.hostEnv = hostEnv;
|
817
816
|
this.rotaListarTodos = 'hcm/api/v1/tomador/listartodos';
|
818
817
|
this.rotaSelecionar = 'hcm/api/v1/tomador/selecionar';
|
819
818
|
}
|
820
819
|
ListarTodos(filtro) {
|
821
|
-
return this.getAllHeaders(this.
|
820
|
+
return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
|
822
821
|
}
|
823
822
|
Selecionar(idtomador) {
|
824
|
-
return this.get(this.
|
823
|
+
return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idtomador}`);
|
825
824
|
}
|
826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
827
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TomadorService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TomadorService, providedIn: 'root' }); }
|
828
827
|
}
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: TomadorService, decorators: [{
|
830
829
|
type: Injectable,
|
831
830
|
args: [{
|
832
831
|
providedIn: 'root'
|
833
832
|
}]
|
834
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type:
|
833
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
835
834
|
type: Inject,
|
836
|
-
args: ['
|
835
|
+
args: ['hostEnv']
|
837
836
|
}] }] });
|
838
837
|
|
839
838
|
class DadosConfiguracoesService {
|
@@ -853,10 +852,10 @@ class DadosConfiguracoesService {
|
|
853
852
|
getIndicativosLotacaoDominio() {
|
854
853
|
return this.indicativosLotacaoDominio;
|
855
854
|
}
|
856
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
857
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
855
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DadosConfiguracoesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
856
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DadosConfiguracoesService, providedIn: 'root' }); }
|
858
857
|
}
|
859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: DadosConfiguracoesService, decorators: [{
|
860
859
|
type: Injectable,
|
861
860
|
args: [{
|
862
861
|
providedIn: 'root'
|
@@ -1009,10 +1008,10 @@ class ValidatorsService {
|
|
1009
1008
|
}
|
1010
1009
|
};
|
1011
1010
|
}
|
1012
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
1013
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
1011
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ValidatorsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1012
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ValidatorsService, providedIn: 'root' }); }
|
1014
1013
|
}
|
1015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
1014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.8", ngImport: i0, type: ValidatorsService, decorators: [{
|
1016
1015
|
type: Injectable,
|
1017
1016
|
args: [{
|
1018
1017
|
providedIn: 'root',
|