-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
661 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ docker-compose.yaml | |
/test/ | ||
/src/env.yml | ||
/store | ||
*.env | ||
|
||
/temp/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" | ||
|
||
|
@@ -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=* | ||
|
@@ -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 | ||
|
@@ -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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.