Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(provider): meta improved 🔥 #743

Merged
merged 6 commits into from
May 22, 2023
Merged

fix(provider): meta improved 🔥 #743

merged 6 commits into from
May 22, 2023

Conversation

ozzyoss77
Copy link
Collaborator

Que tipo de Pull Request es?

  • Mejoras
  • Bug
  • Docs / tests

Descripción

  • Fixing the sendtext() map, the mapping was incomplete.
  • Adding an alternative sendList() map for the sending of lists through provider in a more understandable way. Here an example:
const flowServices = addKeyword('lo que sea')
    .addAction(  // puede usarse en un addAction o addAnswer
        async (ctx, {provider}) => {
            const headerText = 'header text'
            const bodyText =  'texto body'
            const footerText = 'footer text'
            const buttonList = 'button'
            const listParams = [
                {
                    title: 'title 1',
                    rows: [
                        {
                            id: 'id-1',
                            title: 'title row',
                            description: 'description'
                        },
                        {
                            id: 'id-2',
                            title: 'title row',
                            description: 'description'
                        },
                    ],
                    title: 'title 2',
                    rows: [
                        {
                            id: 'id-4',
                            title: 'title row',
                            description: 'description'
                        },
                        {
                            id: 'id-5',
                            title: 'title row',
                            description: 'description'
                        },
                    ]
                }
            ]
            await provider.sendList(ctx.from, headerText, bodyText, footerText, buttonList ,listParams)
        }
    )

ozzyoss77 and others added 4 commits May 5, 2023 15:23
… ==> ln-32 inset (deprecated) x insertOne

Updating a deprecated function for MongoDB
fixing how the link to digital ocean looks in the requirements documentation
- Fixing the sendtext() map, the mapping was incomplete.
- Adding an alternative sendList() map for the sending of lists through provider in a more understandable way.
@ozzyoss77
Copy link
Collaborator Author

  • Fixing the sendtext() map, the mapping was incomplete.
  • Adding an alternative sendList() map for the sending of lists through provider in a more understandable way.

@leifermendez leifermendez changed the base branch from main to dev May 22, 2023 07:27
@leifermendez
Copy link
Member

leifermendez commented May 22, 2023

Hola @ozzyoss77 puedes resolver el conflicto que tienes par aceptar el PR puedes guiarte de esta funcion, Recuerda pr contra rama dev.
Excelente aporte

https://github.com/codigoencasa/bot-whatsapp/blob/42a3cfd9dc5e04b566ebb4c18ba4fa0f566320b6/packages/database/src/mongo/index.js#L31

@leifermendez leifermendez changed the title Update Provider Meta index.js fix(provider): meta improved 🔥 May 22, 2023
@ozzyoss77
Copy link
Collaborator Author

Arreglado

@ozzyoss77 ozzyoss77 closed this May 22, 2023
@ozzyoss77 ozzyoss77 reopened this May 22, 2023
@leifermendez leifermendez merged commit 2f21dfd into codigoencasa:dev May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants