From 23b1708415cd05a7c72b6dae53ac40594009d967 Mon Sep 17 00:00:00 2001 From: lorenzo Date: Wed, 27 Mar 2024 17:29:25 -0300 Subject: [PATCH 1/2] Ajustes em metadata-group, disconnect-callback e partner --- docs/group/metadata-group.md | 4 +--- .../accept-newsletter-admin-invite.md | 2 +- .../send-newsletter-admin-invite.md | 0 docs/partner/introduction.md | 6 ----- docs/webhooks/on-whatsapp-disconnected.md | 23 +++++++++++++++---- .../current/group/metadata-group.md | 4 +--- .../accept-newsletter-admin-invite.md | 2 +- .../send-newsletter-admin-invite.md | 0 .../current/partner/introduction.md | 2 -- .../webhooks/on-whatsapp-disconnected.md | 23 +++++++++++++++---- sidebars.js | 6 ++--- 11 files changed, 43 insertions(+), 29 deletions(-) rename docs/{message => newsletter}/send-newsletter-admin-invite.md (100%) rename i18n/en/docusaurus-plugin-content-docs/current/{message => newsletter}/send-newsletter-admin-invite.md (100%) diff --git a/docs/group/metadata-group.md b/docs/group/metadata-group.md index 0c486bc..8ee5057 100644 --- a/docs/group/metadata-group.md +++ b/docs/group/metadata-group.md @@ -101,9 +101,7 @@ Forma antiga - { "phone": "5511777777777", "isAdmin": true, - "isSuperAdmin": false, - "short": "ZAPIs", - "name": "ZAPIs Boys" + "isSuperAdmin": false } ], "subjectTime": 1617805323000, diff --git a/docs/newsletter/accept-newsletter-admin-invite.md b/docs/newsletter/accept-newsletter-admin-invite.md index 6b4b8d2..9330157 100644 --- a/docs/newsletter/accept-newsletter-admin-invite.md +++ b/docs/newsletter/accept-newsletter-admin-invite.md @@ -18,7 +18,7 @@ title: Aceitar convite de admin do canal ## Conceituação -Este método é responsável por aceitar um convite para ser administrador de um canal. Esse convite, é uma mensagem que você tanto pode **[enviar](../message/send-newsletter-admin-invite.md)** quanto receber através do **[webhook de mensagem recebida](../webhooks/on-message-received#exemplo-de-retorno-de-convite-admin-de-canal)**. +Este método é responsável por aceitar um convite para ser administrador de um canal. Esse convite, é uma mensagem que você tanto pode **[enviar](../newsletter/send-newsletter-admin-invite.md)** quanto receber através do **[webhook de mensagem recebida](../webhooks/on-message-received#exemplo-de-retorno-de-convite-admin-de-canal)**. ## Atributos diff --git a/docs/message/send-newsletter-admin-invite.md b/docs/newsletter/send-newsletter-admin-invite.md similarity index 100% rename from docs/message/send-newsletter-admin-invite.md rename to docs/newsletter/send-newsletter-admin-invite.md diff --git a/docs/partner/introduction.md b/docs/partner/introduction.md index c47d531..4f3d483 100644 --- a/docs/partner/introduction.md +++ b/docs/partner/introduction.md @@ -65,14 +65,8 @@ Isso quer dizer que quando você receber a fatura do mês 07, estas 10 instânci Este processo acontece porque ao cancelar, ela ainda permanece 30 dias disponíveis para que o cliente utilize. - - Todas as instâncias tem data de expiração no dia 10 que será o prazo máximo para o funcionamento do serviço em casos de não pagamento, no dia 15 nosso DevOps excluirá todas instâncias da conta. -:::caution Migrar instâncias -Durante a adesão do plano a empresa integradora pode optar pela migração de todas as instâncias ativas no modelo pré-pago para o novo modelo pós-pago, porém este desejo precisa ser manifestado no ato da adesão. - -::: - :::tip Como cobrar de seu cliente Recomendamos a nossos clientes a prática do modelo pré-pago em suas soluções pois não trabalhamos com pro rata. diff --git a/docs/webhooks/on-whatsapp-disconnected.md b/docs/webhooks/on-whatsapp-disconnected.md index 4377a1b..9a56f06 100644 --- a/docs/webhooks/on-whatsapp-disconnected.md +++ b/docs/webhooks/on-whatsapp-disconnected.md @@ -67,12 +67,25 @@ Os possíveis retornos do webhook **on-whatsapp-disconnected** estão cadastrado ```json { - "momment": 1580163342, - "error": "Device has been disconnected", - "disconnected": true, - "type": "DisconnectedCallback", - "instanceId": "instance.id" + "type": "DisconnectedCallback", + "instanceId": "39ECB202B157D11E37905AE607963117", + "phone": "5544999999999", + "momment": 1698691825296, + "disconnected": true, + "error": "It was not possible to restore a session with the current token, please login again" } + +--------- + +{ + "type": "DisconnectedCallback", + "instanceId": "39ECB202B157D11E37905AE607963117", + "phone": "5544999999999", + "momment": 1698691825296, + "disconnected": true, + "error": "The number was disconnected by a possible whatsapp number blocking" +} + ``` ### 405 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/group/metadata-group.md b/i18n/en/docusaurus-plugin-content-docs/current/group/metadata-group.md index d997aa0..f809827 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/group/metadata-group.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/group/metadata-group.md @@ -136,9 +136,7 @@ Old way - { "phone": "5511777777777", "isAdmin": true, - "isSuperAdmin": false, - "short": "ZAPIs", - "name": "ZAPIs Boys" + "isSuperAdmin": false } ], "subjectTime": 1617805323000, diff --git a/i18n/en/docusaurus-plugin-content-docs/current/newsletter/accept-newsletter-admin-invite.md b/i18n/en/docusaurus-plugin-content-docs/current/newsletter/accept-newsletter-admin-invite.md index 61bd674..80c3b45 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/newsletter/accept-newsletter-admin-invite.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/newsletter/accept-newsletter-admin-invite.md @@ -18,7 +18,7 @@ title: Accept newsletter admin invitation ## Concept -This method is responsible for accepting an invitation to become an administrator of a newsletter. This invitation is a message that you can both **[send](../message/send-newsletter-admin-invite.md)** and receive through the **[received message webhook](../webhooks/on-message-received#newsletter-admin-invitation-return-example)**. +This method is responsible for accepting an invitation to become an administrator of a newsletter. This invitation is a message that you can both **[send](../newsletter/send-newsletter-admin-invite.md)** and receive through the **[received message webhook](../webhooks/on-message-received#newsletter-admin-invitation-return-example)**. ## Attributes diff --git a/i18n/en/docusaurus-plugin-content-docs/current/message/send-newsletter-admin-invite.md b/i18n/en/docusaurus-plugin-content-docs/current/newsletter/send-newsletter-admin-invite.md similarity index 100% rename from i18n/en/docusaurus-plugin-content-docs/current/message/send-newsletter-admin-invite.md rename to i18n/en/docusaurus-plugin-content-docs/current/newsletter/send-newsletter-admin-invite.md diff --git a/i18n/en/docusaurus-plugin-content-docs/current/partner/introduction.md b/i18n/en/docusaurus-plugin-content-docs/current/partner/introduction.md index 2a9e089..94efc9b 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/partner/introduction.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/partner/introduction.md @@ -58,8 +58,6 @@ Our billing cycle works as follows: - All instances have an expiration date on the 10th, which will be the maximum term for the service to function in cases of non-payment, on the 15th our DevOps will delete all instances from the account. -When joining the plan, the integrator company can choose to migrate all active instances in the prepaid model to the new postpaid model, but this desire must be manifested in the act of joining. You are unable to migrate later :( - :::tip How to charge your clients We recommend our customers to use the prepaid model in their solutions as we do not work on a pro rata basis. diff --git a/i18n/en/docusaurus-plugin-content-docs/current/webhooks/on-whatsapp-disconnected.md b/i18n/en/docusaurus-plugin-content-docs/current/webhooks/on-whatsapp-disconnected.md index cafe689..14ea855 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/webhooks/on-whatsapp-disconnected.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/webhooks/on-whatsapp-disconnected.md @@ -68,12 +68,25 @@ The possible returns of the **on-whatsapp-disconnected** webhook are registered ```json { - "momment": 1580163342, - "error": "Device has been disconnected", - "disconnected": true, - "type": "DisconnectedCallback", - "instanceId": "instance.id" + "type": "DisconnectedCallback", + "instanceId": "39ECB202B157D11E37905AE607963117", + "phone": "5544999999999", + "momment": 1698691825296, + "disconnected": true, + "error": "It was not possible to restore a session with the current token, please login again" } + +--------- + +{ + "type": "DisconnectedCallback", + "instanceId": "39ECB202B157D11E37905AE607963117", + "phone": "5544999999999", + "momment": 1698691825296, + "disconnected": true, + "error": "The number was disconnected by a possible whatsapp number blocking" +} + ``` ### 405 diff --git a/sidebars.js b/sidebars.js index 5f0d415..4c8131a 100644 --- a/sidebars.js +++ b/sidebars.js @@ -95,8 +95,7 @@ module.exports = { 'message/send-message-order', 'message/send-order-status-update', 'message/send-order-payment-update', - 'message/send-pin-message', - 'message/send-newsletter-admin-invite' + 'message/send-pin-message' ], Privacy: [ 'privacy/introduction', @@ -183,7 +182,8 @@ module.exports = { 'newsletter/update-newsletter-config', 'newsletter/accept-newsletter-admin-invite', 'newsletter/newsletter-remove-admin', - 'newsletter/newsletter-revoke-admin-invite' + 'newsletter/newsletter-revoke-admin-invite', + 'newsletter/send-newsletter-admin-invite' ], 'Transmission list': ['broadcast/introduction'], Status: [ From 10a6820eef9d2f671952aa64226b87d3ade2b177 Mon Sep 17 00:00:00 2001 From: lorenzo Date: Thu, 28 Mar 2024 09:21:18 -0300 Subject: [PATCH 2/2] =?UTF-8?q?removido=20a=20lista=20de=20transmiss=C3=A3?= =?UTF-8?q?o=20da=20documenta=C3=A7=C3=A3o=20(comentado)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sidebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidebars.js b/sidebars.js index 4c8131a..ebb7198 100644 --- a/sidebars.js +++ b/sidebars.js @@ -185,7 +185,7 @@ module.exports = { 'newsletter/newsletter-revoke-admin-invite', 'newsletter/send-newsletter-admin-invite' ], - 'Transmission list': ['broadcast/introduction'], + // 'Transmission list': ['broadcast/introduction'], Status: [ 'status/introduction', 'status/send-text-status',