zei 0.1.7 → 0.1.9
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/estruturas/enviar_processo.rb +17 -0
- data/lib/sei/servico.rb +37 -2
- data/lib/sei/version.rb +1 -1
- data/lib/zei.rb +1 -0
- metadata +4 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: c36f67502b0d04fc4fe16ae4d306222a026ab7d8e3a056feb5b89844ec1a321b
         | 
| 4 | 
            +
              data.tar.gz: 523d653e96f21b9eae8f11172cb339557a37e5740e57485585dbafac9518c4c9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 48e8a0884e109f321a0543dc74fd7ccaa039d20d3811ef4d8e7c6dcd30aa0044a6dcc0f1fa0ff9e0e2742be8f2b1528394d270466d91814a55845ee6bf0720cd
         | 
| 7 | 
            +
              data.tar.gz: 1aad0e0084ae0594cc3088360f764a8895a1779fb9bbe5a16f811c32a31351ad9508550a2701f0a35fd6b0b160f76ce1cd0cb41a724ed465c2b5a33c2305d885
         | 
    
        data/lib/sei/servico.rb
    CHANGED
    
    | @@ -183,7 +183,19 @@ module Sei | |
| 183 183 | 
             
                  Sei::Estruturas::RetornoListUsuarios.new body
         | 
| 184 184 | 
             
                end
         | 
| 185 185 |  | 
| 186 | 
            -
                def self.consultar_procedimento( | 
| 186 | 
            +
                def self.consultar_procedimento(
         | 
| 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_ultimo_andamento = 'N',
         | 
| 195 | 
            +
                  sin_retornar_unidades_procedimento_aberto = 'S',
         | 
| 196 | 
            +
                  sin_retornar_procedimentos_relacionados = 'N',
         | 
| 197 | 
            +
                  sin_retornar_procedimentos_anexados = 'N'
         | 
| 198 | 
            +
                  )
         | 
| 187 199 | 
             
                  message = {
         | 
| 188 200 | 
             
                    SiglaSistema: Sei.configuration.sigla,
         | 
| 189 201 | 
             
                    IdentificacaoServico: Sei.configuration.identificacao,
         | 
| @@ -193,7 +205,11 @@ module Sei | |
| 193 205 | 
             
                    SinRetornarInteressados: sin_retornar_interessados,
         | 
| 194 206 | 
             
                    SinRetornarObservacoes: sin_retornar_observacoes,
         | 
| 195 207 | 
             
                    SinRetornarAndamentoGeracao: sin_retornar_andamento_geracao,
         | 
| 196 | 
            -
                    SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao
         | 
| 208 | 
            +
                    SinRetornarAndamentoConclusao: sin_retornar_andamento_conclusao,
         | 
| 209 | 
            +
                    SinRetornarUltimoAndamento: sin_retornar_ultimo_andamento,
         | 
| 210 | 
            +
                    SinRetornarUnidadesProcedimentoAberto: sin_retornar_unidades_procedimento_aberto,
         | 
| 211 | 
            +
                    SinRetornarProcedimentosRelacionados: sin_retornar_procedimentos_relacionados,
         | 
| 212 | 
            +
                    SinRetornarProcedimentosAnexados: sin_retornar_procedimentos_anexados
         | 
| 197 213 | 
             
                  }
         | 
| 198 214 | 
             
                  response = Sei::Connection.instance.call :consultar_procedimento, message: message
         | 
| 199 215 | 
             
                  body = response.body[:consultar_procedimento_response][:parametros]
         | 
| @@ -255,6 +271,25 @@ module Sei | |
| 255 271 | 
             
                  Sei::Estruturas::RetornoConsultarBloco.new body
         | 
| 256 272 | 
             
                end
         | 
| 257 273 |  | 
| 274 | 
            +
                def self.enviar_processo(id_unidade, procedimento_formatado, unidades_destino = [], data_retorno_programado = nil, dias_retorno_programado = nil, sin_dias_uteis_retorno_programado = 'N')
         | 
| 275 | 
            +
                  message = {
         | 
| 276 | 
            +
                    SiglaSistema: Sei.configuration.sigla,
         | 
| 277 | 
            +
                    IdentificacaoServico: Sei.configuration.identificacao,
         | 
| 278 | 
            +
                    IdUnidade: id_unidade,
         | 
| 279 | 
            +
                    ProtocoloProcedimento: procedimento_formatado,
         | 
| 280 | 
            +
                    UnidadesDestino: unidades_destino,
         | 
| 281 | 
            +
                    SinManterAbertoUnidade: 'N',
         | 
| 282 | 
            +
                    SinRemoverAnotacao: 'N',
         | 
| 283 | 
            +
                    SinEnviarEmailNotificacao: 'N',
         | 
| 284 | 
            +
                    DataRetornoProgramado: data_retorno_programado,
         | 
| 285 | 
            +
                    DiasRetornoProgramado: dias_retorno_programado,
         | 
| 286 | 
            +
                    SinDiasUteisRetornoProgramado: sin_dias_uteis_retorno_programado
         | 
| 287 | 
            +
                  }
         | 
| 288 | 
            +
                  response = Sei::Connection.instance.call :enviar_processo, message: message
         | 
| 289 | 
            +
                  body = response.body[:enviar_processo_response][:parametros]
         | 
| 290 | 
            +
                  Sei::Estruturas::EnviarProcesso.new body
         | 
| 291 | 
            +
                end
         | 
| 292 | 
            +
             | 
| 258 293 | 
             
              end
         | 
| 259 294 |  | 
| 260 295 | 
             
            end
         | 
    
        data/lib/sei/version.rb
    CHANGED
    
    
    
        data/lib/zei.rb
    CHANGED
    
    | @@ -25,6 +25,7 @@ require 'sei/estruturas/retorno_list_usuarios' | |
| 25 25 | 
             
            require 'sei/estruturas/retorno_consultar_procedimento'
         | 
| 26 26 | 
             
            require 'sei/estruturas/retorno_consultar_documento'
         | 
| 27 27 | 
             
            require 'sei/estruturas/retorno_consultar_bloco'
         | 
| 28 | 
            +
            require 'sei/estruturas/enviar_processo'
         | 
| 28 29 |  | 
| 29 30 | 
             
            module Sei
         | 
| 30 31 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: zei
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Ricardo Viana
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023-05- | 
| 11 | 
            +
            date: 2023-05-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -113,6 +113,7 @@ files: | |
| 113 113 | 
             
            - lib/sei/connection.rb
         | 
| 114 114 | 
             
            - lib/sei/estruturas/documento.rb
         | 
| 115 115 | 
             
            - lib/sei/estruturas/documento_bloco.rb
         | 
| 116 | 
            +
            - lib/sei/estruturas/enviar_processo.rb
         | 
| 116 117 | 
             
            - lib/sei/estruturas/procedimento.rb
         | 
| 117 118 | 
             
            - lib/sei/estruturas/retorno_boolean.rb
         | 
| 118 119 | 
             
            - lib/sei/estruturas/retorno_conclusao_processo.rb
         | 
| @@ -153,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 153 154 | 
             
                - !ruby/object:Gem::Version
         | 
| 154 155 | 
             
                  version: '0'
         | 
| 155 156 | 
             
            requirements: []
         | 
| 156 | 
            -
            rubygems_version: 3.4. | 
| 157 | 
            +
            rubygems_version: 3.4.10
         | 
| 157 158 | 
             
            signing_key:
         | 
| 158 159 | 
             
            specification_version: 4
         | 
| 159 160 | 
             
            summary: Integração com a API do SEI.
         |