zei 0.2.6 → 0.2.8
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.
- checksums.yaml +4 -4
- data/lib/sei/servico.rb +288 -142
- data/lib/sei/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2c99bc04f1c5d238e46448b34471a5382965faf5cdfec0fd9db2caa6bbf354
|
4
|
+
data.tar.gz: 5f6dd3b809157309add4d38d49b74f14af6aa9ace21545d419ad02018b8581a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0536efa882f77aaadec39a33586a515b421b6e1db70f8eec54ccaba732cfa259f6c9d7d468610f962ca86dfdcac2ba7602cfb69f0ef88e00a2393663bed5c6
|
7
|
+
data.tar.gz: a27ea8ed97367757017e5f7d751b68fd4f82e64423249b0dc3508e83c2aa94b73779415e1fc9fa1dbda2460fbf7bb77b8f77cf52d9986d6b0008de3ce4f6a44e
|
data/lib/sei/servico.rb
CHANGED
@@ -1,137 +1,193 @@
|
|
1
1
|
module Sei
|
2
|
-
|
3
2
|
module Servico
|
3
|
+
# def self.adicionar_arquivo
|
4
|
+
# end
|
5
|
+
|
6
|
+
# def self.adicionar_conteudo_arquivo
|
7
|
+
# end
|
4
8
|
|
5
|
-
def self.
|
6
|
-
enviar_email_notificacao = 'N', data_retorno_programado = nil, dias_retorno_programado = nil, dias_uteis_retorno_programado = 'N')
|
9
|
+
def self.agendar_publicacao(id_unidade, protocolo_documento, sta_motivo, id_veiculo_publicacao, data_disponibilizacao, resumo)
|
7
10
|
message = {
|
8
11
|
SiglaSistema: Sei.configuration.sigla,
|
9
12
|
IdentificacaoServico: Sei.configuration.identificacao,
|
10
13
|
IdUnidade: id_unidade,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
SinEnviarEmailNotificacao: enviar_email_notificacao,
|
17
|
-
DataRetornoProgramado: data_retorno_programado,
|
18
|
-
DiasRetornoProgramado: dias_retorno_programado,
|
19
|
-
SinDiasUteisRetornoProgramado: dias_uteis_retorno_programado
|
14
|
+
ProtocoloDocumento: protocolo_documento,
|
15
|
+
StaMotivo: sta_motivo,
|
16
|
+
IdVeiculoPublicacao: id_veiculo_publicacao,
|
17
|
+
DataDisponibilizacao: data_disponibilizacao,
|
18
|
+
Resumo: resumo
|
20
19
|
}
|
21
|
-
response = Sei::Connection.instance.call :
|
22
|
-
body = response.body[:
|
23
|
-
|
20
|
+
response = Sei::Connection.instance.call :agendar_publicacao, message: message
|
21
|
+
body = response.body[:agendar_publicacao_response][:parametros]
|
22
|
+
body.as_json
|
24
23
|
end
|
25
24
|
|
26
|
-
def self.
|
25
|
+
def self.alterar_publicacao(id_unidade, protocolo_documento, sta_motivo, id_veiculo_publicacao, data_disponibilizacao, resumo)
|
27
26
|
message = {
|
28
27
|
SiglaSistema: Sei.configuration.sigla,
|
29
28
|
IdentificacaoServico: Sei.configuration.identificacao,
|
30
29
|
IdUnidade: id_unidade,
|
31
|
-
|
30
|
+
ProtocoloDocumento: protocolo_documento,
|
31
|
+
StaMotivo: sta_motivo,
|
32
|
+
IdVeiculoPublicacao: id_veiculo_publicacao,
|
33
|
+
DataDisponibilizacao: data_disponibilizacao,
|
34
|
+
Resumo: resumo
|
32
35
|
}
|
33
|
-
response = Sei::Connection.instance.call :
|
34
|
-
body = response.body[:
|
35
|
-
|
36
|
+
response = Sei::Connection.instance.call :alterar_publicacao, message: message
|
37
|
+
body = response.body[:alterar_publicacao_response][:parametros]
|
38
|
+
body.as_json
|
36
39
|
end
|
37
40
|
|
41
|
+
def self.atribuir_processo(id_unidade, protocolo_procedimento, id_usuario, sin_reabrir = "N")
|
42
|
+
message = {
|
43
|
+
SiglaSistema: Sei.configuration.sigla,
|
44
|
+
IdentificacaoServico: Sei.configuration.identificacao,
|
45
|
+
IdUnidade: id_unidade,
|
46
|
+
ProtocoloProcedimento: protocolo_procedimento,
|
47
|
+
IdUsuario: id_usuario,
|
48
|
+
SinReabrir: sin_reabrir
|
49
|
+
}
|
50
|
+
response = Sei::Connection.instance.call :atribuir_processo, message: message
|
51
|
+
body = response.body[:atribuir_processo_response][:parametros]
|
52
|
+
Sei::Estruturas::RetornoBoolean.new body
|
53
|
+
end
|
38
54
|
|
39
|
-
def self.
|
55
|
+
# def self.anexar_processo
|
56
|
+
# end
|
57
|
+
|
58
|
+
# def self.atualizar_contatos
|
59
|
+
# end
|
60
|
+
|
61
|
+
# def self.bloquear_processo
|
62
|
+
# end
|
63
|
+
|
64
|
+
def self.cancelar_agendamento_publicacao(id_unidade, protocolo_documento)
|
40
65
|
message = {
|
41
66
|
SiglaSistema: Sei.configuration.sigla,
|
42
67
|
IdentificacaoServico: Sei.configuration.identificacao,
|
43
68
|
IdUnidade: id_unidade,
|
44
|
-
IdBloco: id_bloco,
|
45
69
|
ProtocoloDocumento: protocolo_documento
|
46
70
|
}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
Sei::Estruturas::RetornoInclusaoDocumentoBloco.new body
|
71
|
+
response = Sei::Connection.instance.call :cancelar_agendamento_publicacao, message: message
|
72
|
+
body = response.body[:cancelar_agendamento_publicacao_response][:parametros]
|
73
|
+
Sei::Estruturas::RetornoBoolean.new body
|
51
74
|
end
|
52
75
|
|
53
|
-
def self.
|
76
|
+
def self.cancelar_disponibilizacao_bloco(id_unidade, id_bloco)
|
54
77
|
message = {
|
55
78
|
SiglaSistema: Sei.configuration.sigla,
|
56
79
|
IdentificacaoServico: Sei.configuration.identificacao,
|
57
80
|
IdUnidade: id_unidade,
|
58
|
-
IdBloco: id_bloco
|
59
|
-
ProtocoloProcedimento: protocolo_procedimento
|
81
|
+
IdBloco: id_bloco
|
60
82
|
}
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
Sei::Estruturas::RetornoInclusaoProcessoBloco.new body
|
83
|
+
response = Sei::Connection.instance.call :cancelar_disponibilizacao_bloco, message: message
|
84
|
+
body = response.body[:cancelar_disponibilizacao_bloco_response][:parametros]
|
85
|
+
Sei::Estruturas::RetornoBoolean.new body
|
65
86
|
end
|
66
87
|
|
67
|
-
def self.
|
88
|
+
def self.cancelar_documento(id_unidade, protocolo_documento, motivo)
|
68
89
|
message = {
|
69
90
|
SiglaSistema: Sei.configuration.sigla,
|
70
91
|
IdentificacaoServico: Sei.configuration.identificacao,
|
71
92
|
IdUnidade: id_unidade,
|
72
|
-
|
93
|
+
ProtocoloDocumento: protocolo_documento,
|
94
|
+
Motivo: motivo
|
73
95
|
}
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
Sei::Estruturas::RetornoConclusaoProcesso.new body
|
78
|
-
|
96
|
+
response = Sei::Connection.instance.call :cancelar_documento, message: message
|
97
|
+
body = response.body[:cancelar_documento_response][:parametros]
|
98
|
+
Sei::Estruturas::RetornoBoolean.new body
|
79
99
|
end
|
80
100
|
|
81
|
-
def self.
|
101
|
+
def self.concluir_processo(id_unidade, protocolo_procedimento)
|
82
102
|
message = {
|
83
103
|
SiglaSistema: Sei.configuration.sigla,
|
84
104
|
IdentificacaoServico: Sei.configuration.identificacao,
|
85
105
|
IdUnidade: id_unidade,
|
86
106
|
ProtocoloProcedimento: protocolo_procedimento
|
87
107
|
}
|
88
|
-
|
89
|
-
response = Sei::Connection.instance.call :reabrir_processo, message: message
|
90
|
-
body = response.body[:reabrir_processo_response][:parametros]
|
91
|
-
Sei::Estruturas::RetornoBoolean.new body
|
92
108
|
|
109
|
+
response = Sei::Connection.instance.call :concluir_processo, message: message
|
110
|
+
body = response.body[:concluir_processo_response][:parametros]
|
111
|
+
Sei::Estruturas::RetornoConclusaoProcesso.new body
|
93
112
|
end
|
94
113
|
|
95
|
-
def self.
|
114
|
+
# def self.confirmar_disponibilizacao_publicacao
|
115
|
+
# end
|
116
|
+
|
117
|
+
def self.consultar_bloco(id_unidade, id_bloco, sin_retornar_protocolos = "S")
|
96
118
|
message = {
|
97
119
|
SiglaSistema: Sei.configuration.sigla,
|
98
120
|
IdentificacaoServico: Sei.configuration.identificacao,
|
99
121
|
IdUnidade: id_unidade,
|
100
122
|
IdBloco: id_bloco,
|
101
|
-
|
123
|
+
SinRetornarProtocolos: sin_retornar_protocolos
|
102
124
|
}
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
Sei::Estruturas::RetornoBoolean.new body
|
125
|
+
response = Sei::Connection.instance.call :consultar_bloco, message: message
|
126
|
+
body = response.body[:consultar_bloco_response][:parametros]
|
127
|
+
Sei::Estruturas::RetornoConsultarBloco.new body
|
107
128
|
end
|
108
129
|
|
109
|
-
def self.
|
130
|
+
def self.consultar_documento(id_unidade, protocolo_documento, sin_retornar_andamento_geracao = "N", sin_retornar_assinaturas = "N", sin_retornar_publicacao = "N")
|
110
131
|
message = {
|
111
132
|
SiglaSistema: Sei.configuration.sigla,
|
112
133
|
IdentificacaoServico: Sei.configuration.identificacao,
|
113
134
|
IdUnidade: id_unidade,
|
114
|
-
|
115
|
-
|
116
|
-
|
135
|
+
ProtocoloDocumento: protocolo_documento,
|
136
|
+
SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
|
137
|
+
SinRetornarAssinaturas: sin_retornar_assinaturas,
|
138
|
+
SinRetornarPublicacao: sin_retornar_publicacao
|
117
139
|
}
|
118
|
-
response = Sei::Connection.instance.call :
|
119
|
-
body = response.body[:
|
120
|
-
Sei::Estruturas::
|
140
|
+
response = Sei::Connection.instance.call :consultar_documento, message: message
|
141
|
+
body = response.body[:consultar_documento_response][:parametros]
|
142
|
+
Sei::Estruturas::RetornoConsultarDocumento.new body
|
121
143
|
end
|
122
144
|
|
123
|
-
def self.
|
145
|
+
def self.consultar_procedimento(
|
146
|
+
id_unidade, protocolo_procedimento,
|
147
|
+
sin_retornar_assuntos = "N",
|
148
|
+
sin_retornar_interessados = "N",
|
149
|
+
sin_retornar_observacoes = "N",
|
150
|
+
sin_retornar_andamento_geracao = "N",
|
151
|
+
sin_retornar_andamento_conclusao = "N",
|
152
|
+
sin_retornar_ultimo_andamento = "N",
|
153
|
+
sin_retornar_unidades_procedimento_aberto = "S",
|
154
|
+
sin_retornar_procedimentos_relacionados = "N",
|
155
|
+
sin_retornar_procedimentos_anexados = "N"
|
156
|
+
)
|
124
157
|
message = {
|
125
158
|
SiglaSistema: Sei.configuration.sigla,
|
126
159
|
IdentificacaoServico: Sei.configuration.identificacao,
|
127
160
|
IdUnidade: id_unidade,
|
128
|
-
|
129
|
-
|
161
|
+
ProtocoloProcedimento: protocolo_procedimento,
|
162
|
+
SinRetornarAssuntos: sin_retornar_assuntos,
|
163
|
+
SinRetornarInteressados: sin_retornar_interessados,
|
164
|
+
SinRetornarObservacoes: sin_retornar_observacoes,
|
165
|
+
SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
|
166
|
+
SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao,
|
167
|
+
SinRetornarUltimoAndamento: sin_retornar_ultimo_andamento,
|
168
|
+
SinRetornarUnidadesProcedimentoAberto: sin_retornar_unidades_procedimento_aberto,
|
169
|
+
SinRetornarProcedimentosRelacionados: sin_retornar_procedimentos_relacionados,
|
170
|
+
SinRetornarProcedimentosAnexados: sin_retornar_procedimentos_anexados
|
130
171
|
}
|
131
|
-
response = Sei::Connection.instance.call :
|
132
|
-
body = response.body[:
|
133
|
-
Sei::Estruturas::
|
134
|
-
end
|
172
|
+
response = Sei::Connection.instance.call :consultar_procedimento, message: message
|
173
|
+
body = response.body[:consultar_procedimento_response][:parametros]
|
174
|
+
Sei::Estruturas::RetornoConsultarProcedimento.new body
|
175
|
+
end
|
176
|
+
|
177
|
+
# def self.consultar_procedimento_individual
|
178
|
+
# end
|
179
|
+
|
180
|
+
# def self.consultar_publicacao
|
181
|
+
# end
|
182
|
+
|
183
|
+
# def self.definir_marcador
|
184
|
+
# end
|
185
|
+
|
186
|
+
# def self.desanexar_processo
|
187
|
+
# end
|
188
|
+
|
189
|
+
# def self.desbloquear_processo
|
190
|
+
# end
|
135
191
|
|
136
192
|
def self.disponibilizar_bloco(id_unidade, id_bloco)
|
137
193
|
message = {
|
@@ -140,11 +196,30 @@ module Sei
|
|
140
196
|
IdUnidade: id_unidade,
|
141
197
|
IdBloco: id_bloco
|
142
198
|
}
|
143
|
-
|
199
|
+
|
144
200
|
response = Sei::Connection.instance.call :disponibilizar_bloco, message: message
|
145
201
|
body = response.body[:disponibilizar_bloco_response][:parametros]
|
146
202
|
Sei::Estruturas::RetornoBoolean.new body
|
147
|
-
end
|
203
|
+
end
|
204
|
+
|
205
|
+
def self.enviar_processo(id_unidade, procedimento_formatado, unidades_destino = [], data_retorno_programado = nil, dias_retorno_programado = nil, sin_dias_uteis_retorno_programado = "N")
|
206
|
+
message = {
|
207
|
+
SiglaSistema: Sei.configuration.sigla,
|
208
|
+
IdentificacaoServico: Sei.configuration.identificacao,
|
209
|
+
IdUnidade: id_unidade,
|
210
|
+
ProtocoloProcedimento: procedimento_formatado,
|
211
|
+
UnidadesDestino: unidades_destino,
|
212
|
+
SinManterAbertoUnidade: "N",
|
213
|
+
SinRemoverAnotacao: "N",
|
214
|
+
SinEnviarEmailNotificacao: "N",
|
215
|
+
DataRetornoProgramado: data_retorno_programado,
|
216
|
+
DiasRetornoProgramado: dias_retorno_programado,
|
217
|
+
SinDiasUteisRetornoProgramado: sin_dias_uteis_retorno_programado
|
218
|
+
}
|
219
|
+
response = Sei::Connection.instance.call :enviar_processo, message: message
|
220
|
+
body = response.body[:enviar_processo_response][:parametros]
|
221
|
+
Sei::Estruturas::EnviarProcesso.new body
|
222
|
+
end
|
148
223
|
|
149
224
|
def self.excluir_bloco(id_unidade, id_bloco)
|
150
225
|
message = {
|
@@ -156,66 +231,137 @@ module Sei
|
|
156
231
|
response = Sei::Connection.instance.call :excluir_bloco, message: message
|
157
232
|
body = response.body[:excluir_bloco_response][:parametros]
|
158
233
|
Sei::Estruturas::RetornoBoolean.new body
|
159
|
-
end
|
234
|
+
end
|
160
235
|
|
161
|
-
def self.
|
236
|
+
# def self.excluir_documento
|
237
|
+
# end
|
238
|
+
|
239
|
+
# def self.excluir_processo
|
240
|
+
# end
|
241
|
+
|
242
|
+
def self.gerar_bloco(id_unidade, tipo, descricao, unidades_disponibilizacao = [], documentos = [], sin_disponibilizar = "N")
|
162
243
|
message = {
|
163
244
|
SiglaSistema: Sei.configuration.sigla,
|
164
245
|
IdentificacaoServico: Sei.configuration.identificacao,
|
165
246
|
IdUnidade: id_unidade,
|
166
|
-
|
167
|
-
|
247
|
+
Tipo: tipo,
|
248
|
+
Descricao: descricao,
|
249
|
+
Documentos: documentos,
|
250
|
+
UnidadesDisponibilizacao: unidades_disponibilizacao,
|
251
|
+
SinDisponibilizar: sin_disponibilizar
|
168
252
|
}
|
169
|
-
response = Sei::Connection.instance.call :
|
170
|
-
body = response.body[:
|
171
|
-
Sei::Estruturas::
|
172
|
-
end
|
253
|
+
response = Sei::Connection.instance.call :gerar_bloco, message: message
|
254
|
+
body = response.body[:gerar_bloco_response][:parametros]
|
255
|
+
Sei::Estruturas::RetornoGeracaoBloco.new body
|
256
|
+
end
|
173
257
|
|
174
|
-
def self.
|
258
|
+
def self.gerar_procedimento(id_unidade, procedimento, documentos = [], procedimentos_relacionados = [], unidades_envio = [], manter_aberto_unidade = "N",
|
259
|
+
enviar_email_notificacao = "N", data_retorno_programado = nil, dias_retorno_programado = nil, dias_uteis_retorno_programado = "N")
|
175
260
|
message = {
|
176
261
|
SiglaSistema: Sei.configuration.sigla,
|
177
262
|
IdentificacaoServico: Sei.configuration.identificacao,
|
178
263
|
IdUnidade: id_unidade,
|
179
|
-
|
264
|
+
Procedimento: procedimento.to_h,
|
265
|
+
Documentos: documentos.empty? ? {} : {documento: documentos.map { |documento| documento.to_h }},
|
266
|
+
ProcedimentosRelacionados: procedimentos_relacionados.empty? ? {} : {procedimento_relacionado: procedimentos_relacionados.map { |procedimentos_relacionado| procedimentos_relacionado.to_h }},
|
267
|
+
UnidadesEnvio: unidades_envio.empty? ? {} : {unidade_envio: unidades_envio.map { |unidade_envio| unidade_envio.to_message }},
|
268
|
+
SinManterAbertoUnidade: manter_aberto_unidade,
|
269
|
+
SinEnviarEmailNotificacao: enviar_email_notificacao,
|
270
|
+
DataRetornoProgramado: data_retorno_programado,
|
271
|
+
DiasRetornoProgramado: dias_retorno_programado,
|
272
|
+
SinDiasUteisRetornoProgramado: dias_uteis_retorno_programado
|
180
273
|
}
|
181
|
-
response = Sei::Connection.instance.call :
|
182
|
-
body = response.body[:
|
183
|
-
Sei::Estruturas::
|
274
|
+
response = Sei::Connection.instance.call :gerar_procedimento, message: message
|
275
|
+
body = response.body[:gerar_procedimento_response][:parametros]
|
276
|
+
Sei::Estruturas::RetornoGeracaoProcedimento.new body
|
184
277
|
end
|
185
278
|
|
186
|
-
def self.
|
187
|
-
id_unidade, protocolo_procedimento,
|
188
|
-
sin_retornar_assuntos = 'N',
|
189
|
-
sin_retornar_interessados = 'N',
|
190
|
-
sin_retornar_observacoes = 'N',
|
191
|
-
sin_retornar_andamento_geracao = 'N',
|
192
|
-
sin_retornar_andamento_conclusao = 'N',
|
193
|
-
sin_retornar_ultimo_andamento = 'N',
|
194
|
-
sin_retornar_unidades_procedimento_aberto = 'S',
|
195
|
-
sin_retornar_procedimentos_relacionados = 'N',
|
196
|
-
sin_retornar_procedimentos_anexados = 'N'
|
197
|
-
)
|
279
|
+
def self.incluir_documento(id_unidade, documento)
|
198
280
|
message = {
|
199
281
|
SiglaSistema: Sei.configuration.sigla,
|
200
282
|
IdentificacaoServico: Sei.configuration.identificacao,
|
201
283
|
IdUnidade: id_unidade,
|
202
|
-
|
203
|
-
SinRetornarAssuntos: sin_retornar_assuntos,
|
204
|
-
SinRetornarInteressados: sin_retornar_interessados,
|
205
|
-
SinRetornarObservacoes: sin_retornar_observacoes,
|
206
|
-
SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
|
207
|
-
SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao,
|
208
|
-
SinRetornarUltimoAndamento: sin_retornar_ultimo_andamento,
|
209
|
-
SinRetornarUnidadesProcedimentoAberto: sin_retornar_unidades_procedimento_aberto,
|
210
|
-
SinRetornarProcedimentosRelacionados: sin_retornar_procedimentos_relacionados,
|
211
|
-
SinRetornarProcedimentosAnexados: sin_retornar_procedimentos_anexados
|
284
|
+
Documento: documento.to_h
|
212
285
|
}
|
213
|
-
response = Sei::Connection.instance.call :
|
214
|
-
body = response.body[:
|
215
|
-
Sei::Estruturas::
|
286
|
+
response = Sei::Connection.instance.call :incluir_documento, message: message
|
287
|
+
body = response.body[:incluir_documento_response][:parametros]
|
288
|
+
Sei::Estruturas::RetornoInclusaoDocumento.new body
|
289
|
+
end
|
290
|
+
|
291
|
+
def self.incluir_documento_bloco(id_unidade, id_bloco, protocolo_documento)
|
292
|
+
message = {
|
293
|
+
SiglaSistema: Sei.configuration.sigla,
|
294
|
+
IdentificacaoServico: Sei.configuration.identificacao,
|
295
|
+
IdUnidade: id_unidade,
|
296
|
+
IdBloco: id_bloco,
|
297
|
+
ProtocoloDocumento: protocolo_documento
|
298
|
+
}
|
299
|
+
|
300
|
+
response = Sei::Connection.instance.call :incluir_documento_bloco, message: message
|
301
|
+
body = response.body[:incluir_documento_bloco_response][:parametros]
|
302
|
+
Sei::Estruturas::RetornoInclusaoDocumentoBloco.new body
|
216
303
|
end
|
217
304
|
|
218
|
-
def self.
|
305
|
+
def self.incluir_processo_bloco(id_unidade, id_bloco, protocolo_procedimento)
|
306
|
+
message = {
|
307
|
+
SiglaSistema: Sei.configuration.sigla,
|
308
|
+
IdentificacaoServico: Sei.configuration.identificacao,
|
309
|
+
IdUnidade: id_unidade,
|
310
|
+
IdBloco: id_bloco,
|
311
|
+
ProtocoloProcedimento: protocolo_procedimento
|
312
|
+
}
|
313
|
+
|
314
|
+
response = Sei::Connection.instance.call :incluir_processo_bloco, message: message
|
315
|
+
body = response.body[:incluir_processo_bloco_response][:parametros]
|
316
|
+
Sei::Estruturas::RetornoInclusaoProcessoBloco.new body
|
317
|
+
end
|
318
|
+
|
319
|
+
# def self.lancar_andamento
|
320
|
+
# end
|
321
|
+
|
322
|
+
# def self.listar_andamentos
|
323
|
+
# end
|
324
|
+
|
325
|
+
# def self.listar_andamentos_marcadores
|
326
|
+
# end
|
327
|
+
|
328
|
+
# def self.listar_cargos
|
329
|
+
# end
|
330
|
+
|
331
|
+
# def self.listar_cidades
|
332
|
+
# end
|
333
|
+
|
334
|
+
# def self.listar_contatos
|
335
|
+
# end
|
336
|
+
|
337
|
+
# def self.listar_estados
|
338
|
+
# end
|
339
|
+
|
340
|
+
# def self.listar_extensoes_permitidas
|
341
|
+
# end
|
342
|
+
|
343
|
+
# def self.listar_feriados
|
344
|
+
# end
|
345
|
+
|
346
|
+
# def self.listar_hipoteses_legais
|
347
|
+
# end
|
348
|
+
|
349
|
+
# def self.listar_marcadores_unidade
|
350
|
+
# end
|
351
|
+
|
352
|
+
# def self.listar_paises
|
353
|
+
# end
|
354
|
+
|
355
|
+
# def self.listar_series
|
356
|
+
# end
|
357
|
+
|
358
|
+
# def self.listar_tipos_conferencia
|
359
|
+
# end
|
360
|
+
|
361
|
+
# def self.listar_tipos_procedimento
|
362
|
+
# end
|
363
|
+
|
364
|
+
def self.listar_unidades(id_tipo_procedimento = nil, id_serie = nil)
|
219
365
|
message = {
|
220
366
|
SiglaSistema: Sei.configuration.sigla,
|
221
367
|
IdentificacaoServico: Sei.configuration.identificacao,
|
@@ -227,68 +373,68 @@ module Sei
|
|
227
373
|
Sei::Estruturas::RetornoListUnidades.new body
|
228
374
|
end
|
229
375
|
|
230
|
-
def self.
|
231
|
-
message = {
|
376
|
+
def self.listar_usuarios(id_unidade, id_usuario = nil)
|
377
|
+
message = {
|
232
378
|
SiglaSistema: Sei.configuration.sigla,
|
233
379
|
IdentificacaoServico: Sei.configuration.identificacao,
|
234
380
|
IdUnidade: id_unidade,
|
235
|
-
|
236
|
-
Descricao: descricao,
|
237
|
-
UnidadesDisponibilizacao: unidades_disponibilizacao,
|
238
|
-
SinDisponibilizar: sin_disponibilizar
|
381
|
+
IdUsuario: id_usuario
|
239
382
|
}
|
240
|
-
response = Sei::Connection.instance.call :
|
241
|
-
body = response.body[:
|
242
|
-
Sei::Estruturas::
|
383
|
+
response = Sei::Connection.instance.call :listar_usuarios, message: message
|
384
|
+
body = response.body[:listar_usuarios_response][:parametros]
|
385
|
+
Sei::Estruturas::RetornoListUsuarios.new body
|
243
386
|
end
|
244
387
|
|
245
|
-
def self.
|
388
|
+
def self.reabrir_processo(id_unidade, protocolo_procedimento)
|
246
389
|
message = {
|
247
390
|
SiglaSistema: Sei.configuration.sigla,
|
248
391
|
IdentificacaoServico: Sei.configuration.identificacao,
|
249
392
|
IdUnidade: id_unidade,
|
250
|
-
|
251
|
-
SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
|
252
|
-
SinRetornarAssinaturas: sin_retornar_assinaturas,
|
253
|
-
SinRetornarPublicacao: sin_retornar_publicacao
|
393
|
+
ProtocoloProcedimento: protocolo_procedimento
|
254
394
|
}
|
255
|
-
|
256
|
-
|
257
|
-
|
395
|
+
|
396
|
+
response = Sei::Connection.instance.call :reabrir_processo, message: message
|
397
|
+
body = response.body[:reabrir_processo_response][:parametros]
|
398
|
+
Sei::Estruturas::RetornoBoolean.new body
|
258
399
|
end
|
259
400
|
|
260
|
-
def self.
|
401
|
+
# def self.relacionar_processo
|
402
|
+
# end
|
403
|
+
|
404
|
+
# def self.remover_relacionamento_processo
|
405
|
+
# end
|
406
|
+
|
407
|
+
# def self.remover_sobrestamento_processo
|
408
|
+
# end
|
409
|
+
|
410
|
+
def self.retirar_documento_bloco(id_unidade, id_bloco, protocolo_documento)
|
261
411
|
message = {
|
262
412
|
SiglaSistema: Sei.configuration.sigla,
|
263
413
|
IdentificacaoServico: Sei.configuration.identificacao,
|
264
414
|
IdUnidade: id_unidade,
|
265
415
|
IdBloco: id_bloco,
|
266
|
-
|
416
|
+
ProtocoloDocumento: protocolo_documento
|
267
417
|
}
|
268
|
-
response = Sei::Connection.instance.call :
|
269
|
-
body = response.body[:
|
270
|
-
Sei::Estruturas::
|
418
|
+
response = Sei::Connection.instance.call :retirar_documento_bloco, message: message
|
419
|
+
body = response.body[:retirar_documento_bloco_response][:parametros]
|
420
|
+
Sei::Estruturas::RetornoBoolean.new body
|
271
421
|
end
|
272
422
|
|
273
|
-
def self.
|
423
|
+
def self.retirar_processo_bloco(id_unidade, id_bloco, protocolo_procedimento)
|
274
424
|
message = {
|
275
425
|
SiglaSistema: Sei.configuration.sigla,
|
276
426
|
IdentificacaoServico: Sei.configuration.identificacao,
|
277
427
|
IdUnidade: id_unidade,
|
278
|
-
|
279
|
-
|
280
|
-
SinManterAbertoUnidade: 'N',
|
281
|
-
SinRemoverAnotacao: 'N',
|
282
|
-
SinEnviarEmailNotificacao: 'N',
|
283
|
-
DataRetornoProgramado: data_retorno_programado,
|
284
|
-
DiasRetornoProgramado: dias_retorno_programado,
|
285
|
-
SinDiasUteisRetornoProgramado: sin_dias_uteis_retorno_programado
|
428
|
+
IdBloco: id_bloco,
|
429
|
+
ProtocoloProcedimento: protocolo_procedimento
|
286
430
|
}
|
287
|
-
|
288
|
-
|
289
|
-
|
431
|
+
|
432
|
+
response = Sei::Connection.instance.call :retirar_processo_bloco, message: message
|
433
|
+
body = response.body[:retirar_processo_bloco_response][:parametros]
|
434
|
+
Sei::Estruturas::RetornoBoolean.new body
|
290
435
|
end
|
291
436
|
|
437
|
+
# def self.sobrestar_processo
|
438
|
+
# end
|
292
439
|
end
|
293
|
-
|
294
|
-
end
|
440
|
+
end
|
data/lib/sei/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-20 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -134,12 +133,10 @@ files:
|
|
134
133
|
- lib/sei/version.rb
|
135
134
|
- lib/zei.rb
|
136
135
|
- zei.gemspec
|
137
|
-
homepage:
|
138
136
|
licenses:
|
139
137
|
- MIT
|
140
138
|
metadata:
|
141
139
|
allowed_push_host: https://rubygems.org
|
142
|
-
post_install_message:
|
143
140
|
rdoc_options: []
|
144
141
|
require_paths:
|
145
142
|
- lib
|
@@ -154,8 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
151
|
- !ruby/object:Gem::Version
|
155
152
|
version: '0'
|
156
153
|
requirements: []
|
157
|
-
rubygems_version: 3.5
|
158
|
-
signing_key:
|
154
|
+
rubygems_version: 3.6.5
|
159
155
|
specification_version: 4
|
160
156
|
summary: Integração com a API do SEI.
|
161
157
|
test_files: []
|