# SISTEMAS - BBJUR



# 1:1 - bbjur-distribuicao

**Formato da Requisição do robô (via HTTP)**

``` json
{
   "custom": {
        "date": "",
        "dateEnd": "",    
        "type": "",
        "pending": "",
        "position": "",
        "readNotification": "" 
    },
    "credentials": {
        "username": "user",
        "password": "senha"
    }
}

 ```

**Descrição campos 'custom'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| date | Sim | String (dd/MM/aaaa) |  | Data da pesquisa |
| dateEnd | Não | String (dd/MM/aaaa) |  | Data final da pesquisa |
| type | Sim | String |  | Tipo da pesquisa  <br>  <br>valores: lidos ou nao_lidos |
| pending | Sim | String |  | Buscar pendencias  <br>  <br>Valores: true ou false |
| position | Sim | String |  | Posição da consulta:  <br>  <br>valores: AUTOR, REU ou AMBOS |
| readNotification | Sim | boolean |  | Dar leitura na notificação.  <br>  <br>valores: true ou false |

**Descrição campos 'credentials'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| username | Sim | String |  | Usuário do sistema ou o cpf se for via certificado |
| password | Sim | String |  | Senha do sistema |
| hash | Sim (se a credencial estiver salva no nosso cofre) | String |  | hash gerado pelo nosso cofre |


BOT

**Formato da Requisição do robô (via HTTP)**

``` json
{
    "dry": false,
    "bot": "bbjur-distribuicao",
    "version": "v3.0.0-dev",
    "cid": "",
    "timeout": "",
    "deadline": "",
    "data": {
        "npj": "",
        "date": "",
        "dateEnd": "",    
        "type": "",
        "pending": "",
        "position": "",
        "readNotification": "" 
    }
    "credentials": {
        "username": "user",
        "password": "senha"
    }
}

 ```

**Descrição campos 'DATA'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| npj | Sim | String |  | Número da pasta |
| date | Sim | String (dd/MM/aaaa) |  | Data da pesquisa |
| dateEnd | Não | String (dd/MM/aaaa) |  | Data final da pesquisa |
| type | Sim | String |  | Tipo da pesquisa  <br>  <br>valores: lidos ou nao_lidos |
| pending | Sim | String |  | Buscar pendencias  <br>  <br>Valores: true ou false |
| position | Sim | String |  | Posição da consulta:  <br>  <br>valores: AUTOR, REU ou AMBOS |
| readNotification | Sim | boolean |  | Dar leitura na notificação.  <br>  <br>valores: true ou false |

**Descrição campos 'credentials'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| username | Sim | String |  | Usuário do sistema ou o cpf se for via certificado |
| password | Sim | String |  | Senha do sistema |
| hash | Sim (se a credencial estiver salva no nosso cofre) | String |  | hash gerado pelo nosso cofre |

# 1:1 - bbjur-distribution-search

**Formato da Requisição do robô (via HTTP)**

``` json
{
    "dry": false,
    "bot": "bbjur-distribution-search",
    "version": "v3.0.0-dev",
    "cid": "",
    "timeout": "",
    "deadline": "",
    "data": {
        "npj": "",
        "date": ""   
        "type": "",
        "pending": "",
        "position": "",
        "readNotification": "" 
    }
    "credentials": {
        "username": "user",
        "password": "senha"
    }
}

 ```

**Descrição campos 'DATA'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| npj | Sim | String |  | Número da pasta |
| date | Sim | String (dd/MM/aaaa) |  | Data da pesquisa |
| type | Sim | String |  | Tipo da pesquisa  <br>  <br>valores: lidos ou nao_lidos |
| pending | Sim | String |  | Buscar pendencias  <br>  <br>Valores: true ou false |
| position | Sim | String |  | Posição da consulta:  <br>  <br>valores: AUTOR, REU ou AMBOS |
| readNotification | Sim | boolean |  | Dar leitura na notificação.  <br>  <br>valores: true ou false |

**Descrição campos 'credentials'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| username | Sim | String |  | Usuário do sistema ou o cpf se for via certificado |
| password | Sim | String |  | Senha do sistema |
| hash | Sim (se a credencial estiver salva no nosso cofre) | String |  | hash gerado pelo nosso cofre |

# 1:1 - bbjur-event-update-api

**Formato da Requisição do robô (via HTTP)**

``` json
{
    "dry": false,
    "bot": "bbjur-event-update-api",
    "version": "v3.0.0-dev",
    "cid": "",
    "timeout": "",
    "deadline": "",
    "data": {
        "clarification": "PROTOCOLO BB RECURSO DE APELAÇÃO",
        "date": "14/09/2023",
        "documentType": "Recurso Apelação",
        "event": "APELACAO",
        "filename": "null",
        "integrated": "1116318",
        "npj": "1234567890-",
        "origin": "null",
        "originEvent": "PROTOCOLO RECURSO DE APELAÇÃO",
        "originEventAcronym": "PRDA",
        "others": "null",
        "pj": "PRDA",
        "reference": "null",
        "renameFile": "false",
        "responsibleLawyer": "null",
        "tipoLancamento": "null",
        "type": "null",
        "unit": "",
        "valorLancamento": "null",
        "workGroup": "Banco BB Especial Autor",
        "pointers": "pointers" 
    }
    "credentials": {
        "username": "key",
        "password": "pwd"
    }
}

 ```

**Descrição campos 'DATA'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| clarification | Sim | String |  | Título do evento |
| date | Sim | String (dd/MM/aaaa) |  | Data do evento |
| documentType | Sim | String |  | Nome do tipo de documento |
| event | Sim | String |  | Nome do evento |
| filename | Não | String |  | Nome do arquivo |
| integrated | Sim | String |  | Número de integração |
| npj | Sim | String |  | Número de NPJ |
| origin | Não | String |  | Origem |
| originEvent | Sim | String |  | Origem do evento |
| originEventAcronym | Sim | String |  | Origem do acrônimo do evento |
| others | Não | String |  | Outras informações |
| pj | Sim | String |  | Nome da PJ |
| reference | Não | String |  | Referência do evento |
| renameFile | Sim | Boolean |  | Valor Booleano para validar a renomeação do arquivo |
| responsibleLawyer | Não | String |  | Nome do advogado responsável |
| tipoLancamento | Não | String |  | Tipo de lançamento |
| type | Não | String |  | Tipo do evento |
| unit | Sim | String |  | Nome do grupo de advogados do requerente do evento |
| valorLancamento | Não | String |  | Valor do lançamento do evento |
| workGroup | Sim | String |  | Nome do requerente do evento |
| pointers | Sim | List |  | Lista de arquivos necessários para o evento |

**Descrição campos 'credentials'**

| **CAMPO** | **Obrigatório** | **Formato** | **Default** | **Descrição** |
| --- | --- | --- | --- | --- |
| username | Sim | String |  | Usuário do sistema |
| password | Sim | String |  | Senha do sistema |