Skip to content

Commit

Permalink
Merge branch 'release/1.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Dec 22, 2023
2 parents 3545b80 + 3e358e5 commit 45e03d8
Show file tree
Hide file tree
Showing 33 changed files with 661 additions and 168 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/-en--bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "[EN] Bug report"
about: Create a report to help us improve
title: "[EN][BUG]"
labels: bug
assignees: ''

---

### Title: [Brief Description of the Bug]

#### Description:
Describe in detail the problem you encountered. Include any relevant context that may help understand the origin of the bug.

#### Steps to Reproduce:
1. List the steps necessary to reproduce the problem.
2. Try to be as specific as possible.
3. If the problem occurs in a specific scenario, describe it here.

#### Expected Behavior:
Describe what you expected to happen when following the steps above.

#### Current Behavior:
Explain what actually happens when you follow the steps above.

#### Screenshots/Videos:
If possible, add screenshots or videos illustrating the problem. This can be extremely helpful in understanding the issue.

#### Environment:
- **Server:** [e.g., Ubuntu 18.04]
- **API Version:** [e.g., 1.5.4]
- **Other Hardware/Software Specifications:** [e.g., CPU, GPU]

#### Submitting Logs:
Please attach logs that may be related to the problem. If the logs contain sensitive information, consider sending them privately to one of the project maintainers.

#### Additional Notes:
Include here any other information that you think might be useful in understanding or resolving the bug.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/-en--feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "[EN] Feature request"
about: Suggest an idea for the API
title: "[EN][FEAT]"
labels: enhancement
assignees: ''

---

### Title: [Brief Description of Feature Request]

#### Detailed Description:
Clearly and in detail, describe the functionality you wish to be implemented. Explain how this fits into the context of the project.

#### Rationale:
Explain why this functionality would be useful for the project. This helps in understanding the importance and priority of the request.

#### Usage Examples:
Provide specific examples of how this feature could be used. This can include scenarios or use cases where the feature would be particularly beneficial.

#### Possible Implementations:
If you have ideas on how this feature might be implemented, please share them here. This is not mandatory but can be helpful for the development team.

#### Impact on the Project:
Discuss how this new feature could impact other parts of the project, if applicable.

#### Additional Notes:
Any other information you believe is relevant to your request.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/-pt--reportar-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "[PT] Reportar bug"
about: Reportar um problema
title: "[PT][BUG]"
labels: bug
assignees: ''

---

### Título: [Breve Descrição do Bug]

#### Descrição:
Descreva detalhadamente o problema que você encontrou. Inclua qualquer contexto relevante que possa ajudar a entender a origem do bug.

#### Passos para Reproduzir:
1. Liste os passos necessários para reproduzir o problema.
2. Tente ser o mais específico possível.
3. Se o problema ocorrer em um cenário específico, descreva-o aqui.

#### Comportamento Esperado:
Descreva o que você esperava que acontecesse quando seguisse os passos acima.

#### Comportamento Atual:
Explique o que realmente acontece quando você segue os passos acima.

#### Capturas de Tela/Vídeos:
Se possível, adicione capturas de tela ou vídeos que ilustrem o problema. Isso pode ser extremamente útil para entender o problema.

#### Ambiente:
- **Servidor:** [ex: Ubuntu 18.04]
- **Versão da API:** [ex: 1.5.4]
- **Outras Especificações de Hardware/Software:** [ex: CPU, GPU]

#### Envio de Logs:
Por favor, anexe os logs que possam estar relacionados ao problema. Se os logs contiverem informações sensíveis, considere enviá-los de forma privada para um dos mantenedores do projeto.

#### Notas Adicionais:
Inclua aqui qualquer outra informação que você ache que possa ser útil para entender ou resolver o bug.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/-pt--solicitar-recurso.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "[PT] Solicitar recurso"
about: Sugira novos recursos para a API
title: "[PT][FEAT]"
labels: enhancement
assignees: ''

---

### Título: [Breve Descrição da Solicitação de Recurso]

#### Descrição Detalhada:
Descreva claramente e em detalhes a funcionalidade que você deseja que seja implementada. Explique como isso se encaixa no contexto do projeto.

#### Racional:
Explique por que essa funcionalidade seria útil para o projeto. Isso ajuda a entender a importância e a prioridade da solicitação.

#### Exemplos de Uso:
Forneça exemplos específicos de como essa funcionalidade poderia ser utilizada. Isso pode incluir cenários ou casos de uso onde a funcionalidade seria particularmente benéfica.

#### Possíveis Implementações:
Se você tem ideias sobre como essa funcionalidade pode ser implementada, por favor, compartilhe-as aqui. Isso não é obrigatório, mas pode ser útil para a equipe de desenvolvimento.

#### Impacto no Projeto:
Discuta como essa nova funcionalidade poderia impactar outras partes do projeto, se aplicável.

#### Notas Adicionais:
Qualquer outra informação que você acredita ser relevante para a sua solicitação.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ docker-compose.yaml
/test/
/src/env.yml
/store
*.env

/temp/*

Expand Down
43 changes: 28 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
# 1.6.1 (develop)
# 1.6.1 (2023-12-22 11:43)

### Fixed

* Fixed Lid Messages
* Fixed sending variables to typebot
* Fixed sending variables from typebot
* Correction sending s3/minio media to chatwoot and typebot
* Fixed the problem with typebot closing at the end of the flow, now this is optional with the TYPEBOT_KEEP_OPEN variable
* Fixed chatwoot Bold, Italic and Underline formatting using Regex
* Added the sign_delimiter property to the Chatwoot configuration, allowing you to set a different delimiter for the signature. Default when not defined \n
* Include instance Id field in the instance configuration
* Fixed the pairing code
* Adjusts in typebot
* Fix the problem when disconnecting the instance and connecting again using mongodb
* Options to disable docs and manager
* When deleting a message in whatsapp, delete the message in chatwoot too


# 1.6.0 (2023-12-12 17:24)

### Feature

* Added AWS SQS Integration
* Added support for new typebot API
* Added endpoint sendPresence
Expand All @@ -24,7 +38,6 @@
* Fix workaround to manage param data as an array in mongodb
* Removed await from webhook when sending a message
* Update typebot.service.ts - element.underline change ~ for *
* Adjusts in proxy
* Removed api restart on receiving an error
* Fixes in mongodb and chatwoot
* Adjusted return from queries in mongodb
Expand All @@ -36,8 +49,8 @@

### Integrations

- Chatwoot: v3.3.1
- Typebot: v2.20.0
* Chatwoot: v3.3.1
* Typebot: v2.20.0

# 1.5.4 (2023-10-09 20:43)

Expand Down Expand Up @@ -116,9 +129,9 @@

### Integrations

- Chatwoot: v2.18.0 - v3.0.0
- Typebot: v2.16.0
- Manager Evolution API
* Chatwoot: v2.18.0 - v3.0.0
* Typebot: v2.16.0
* Manager Evolution API

# 1.4.8 (2023-07-27 10:27)

Expand Down Expand Up @@ -171,7 +184,7 @@

### Fixed

* Fixed validation is set settings
* Fixed validation is set settings
* Adjusts in group validations
* Ajusts in sticker message to chatwoot

Expand Down Expand Up @@ -206,7 +219,7 @@

### Integrations

- Chatwoot: v2.18.0 - v3.0.0 (Beta)
* Chatwoot: v2.18.0 - v3.0.0 (Beta)

# 1.3.2 (2023-07-21 17:19)

Expand All @@ -222,7 +235,7 @@

### Integrations

- Chatwoot: v2.18.0
* Chatwoot: v2.18.0

# 1.3.1 (2023-07-20 07:48)

Expand All @@ -232,7 +245,7 @@

### Integrations

- Chatwoot: v2.18.0
* Chatwoot: v2.18.0

# 1.3.0 (2023-07-19 11:33)

Expand All @@ -248,7 +261,7 @@
* Translation set to default (english) in chatwoot

### Fixed

* Fixed error to send message in large groups
* Docker files adjusted
* Fixed in the postman collection the webhookByEvent parameter by webhook_by_events
Expand All @@ -269,7 +282,7 @@

### Integrations

- Chatwoot: v2.18.0
* Chatwoot: v2.18.0

# 1.2.2 (2023-07-15 09:36)

Expand All @@ -280,7 +293,7 @@

### Integrations

- Chatwoot: v2.18.0
* Chatwoot: v2.18.0

# 1.2.1 (2023-07-14 19:04)

Expand Down Expand Up @@ -436,4 +449,4 @@
* Sending the local webhook url as destination in the webhook data for webhook redirection
* Startup modes, server or container
* Server Mode works normally as everyone is used to
* Container mode made to use one instance per container, when starting the application an instance is already created and the qrcode is generated and it starts sending webhook without having to call it manually, it only allows one instance at a time.
* Container mode made to use one instance per container, when starting the application an instance is already created and the qrcode is generated and it starts sending webhook without having to call it manually, it only allows one instance at a time.
1 change: 1 addition & 0 deletions Docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ QRCODE_COLOR=#198754

# old | latest
TYPEBOT_API_VERSION=latest
TYPEBOT_KEEP_OPEN=false

# Defines an authentication type for the api
# We recommend using the apikey because it will allow you to use a custom token,
Expand Down
File renamed without changes.
22 changes: 16 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:20.7.0-alpine
FROM node:20.7.0-alpine AS builder

LABEL version="1.6.0" description="Api to control whatsapp features through http requests."
LABEL version="1.6.1" description="Api to control whatsapp features through http requests."
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
LABEL contact="[email protected]"

Expand All @@ -11,9 +11,19 @@ WORKDIR /evolution

COPY ./package.json .

RUN npm install

COPY . .

RUN npm run build

FROM node:20.7.0-alpine AS final

ENV TZ=America/Sao_Paulo
ENV DOCKER_ENV=true

ENV SERVER_TYPE=http
ENV SERVER_PORT=8080
ENV SERVER_URL=http://localhost:8080

ENV CORS_ORIGIN=*
Expand Down Expand Up @@ -68,6 +78,8 @@ ENV WEBHOOK_GLOBAL_ENABLED=false
ENV WEBHOOK_GLOBAL_WEBHOOK_BY_EVENTS=false

ENV WEBHOOK_EVENTS_APPLICATION_STARTUP=false
ENV WEBHOOK_EVENTS_INSTANCE_CREATE=false
ENV WEBHOOK_EVENTS_INSTANCE_DELETE=false
ENV WEBHOOK_EVENTS_QRCODE_UPDATED=true
ENV WEBHOOK_EVENTS_MESSAGES_SET=true
ENV WEBHOOK_EVENTS_MESSAGES_UPSERT=true
Expand Down Expand Up @@ -122,10 +134,8 @@ ENV AUTHENTICATION_INSTANCE_CHATWOOT_ACCOUNT_ID=1
ENV AUTHENTICATION_INSTANCE_CHATWOOT_TOKEN=123456
ENV AUTHENTICATION_INSTANCE_CHATWOOT_URL=<url>

RUN npm install

COPY . .
WORKDIR /evolution

RUN npm run build
COPY --from=builder /evolution .

CMD [ "node", "./dist/src/main.js" ]
2 changes: 1 addition & 1 deletion docker-compose.yaml.example.dockerhub
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.3'
services:
api:
container_name: evolution_api
image: davidsongomes/evolution-api:latest
image: atendai/evolution-api:latest
restart: always
ports:
- 8080:8080
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evolution-api",
"version": "1.6.0",
"version": "1.6.1",
"description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js",
"scripts": {
Expand Down Expand Up @@ -46,7 +46,7 @@
"@figuro/chatwoot-sdk": "^1.1.16",
"@hapi/boom": "^10.0.1",
"@sentry/node": "^7.59.2",
"@whiskeysockets/baileys": "^6.5.0",
"@whiskeysockets/baileys": "github:PurpShell/Baileys#combined",
"amqplib": "^0.10.3",
"aws-sdk": "^2.1499.0",
"axios": "^1.3.5",
Expand All @@ -56,7 +56,7 @@
"cross-env": "^7.0.3",
"dayjs": "^1.11.7",
"eventemitter2": "^6.4.9",
"evolution-manager": "^0.4.4",
"evolution-manager": "^0.4.11",
"exiftool-vendored": "^22.0.0",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
Expand Down
Loading

0 comments on commit 45e03d8

Please sign in to comment.