@botozap/sdk 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -9
- package/dist/index.d.ts +29 -9
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @botozap/sdk
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 750d80e: Editar e excluir template fora do painel: `templates.update(id, { components, category })` edita e reenvia à análise da Meta, e `templates.delete(id)` exclui na Meta e aqui (SDK); `update_template` ganha `components`/`category` e entra `delete_template` (MCP); `botozap templates update --components` e `botozap templates delete` (CLI).
|
|
8
|
+
|
|
3
9
|
## 0.28.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -5507,10 +5507,11 @@ var Templates = class {
|
|
|
5507
5507
|
});
|
|
5508
5508
|
}
|
|
5509
5509
|
/**
|
|
5510
|
-
*
|
|
5511
|
-
*
|
|
5512
|
-
*
|
|
5513
|
-
*
|
|
5510
|
+
* Com `components` (e `category`), edita o template e o devolve à análise da
|
|
5511
|
+
* Meta, como o Editar do painel: em análise responde 409 `template_in_review`;
|
|
5512
|
+
* sem id da Meta, 409 `template_not_synced`. Só com `opt_out_buttons`, marca
|
|
5513
|
+
* quais botões de resposta rápida são de saída, sem alterar o template na
|
|
5514
|
+
* Meta. Scope `templates:write`.
|
|
5514
5515
|
*/
|
|
5515
5516
|
update(id, params) {
|
|
5516
5517
|
return this.client.requestItem(
|
|
@@ -5529,6 +5530,14 @@ var Templates = class {
|
|
|
5529
5530
|
sync(params = {}) {
|
|
5530
5531
|
return this.client.requestItem("POST", "/templates/sync", { body: params });
|
|
5531
5532
|
}
|
|
5533
|
+
/**
|
|
5534
|
+
* Exclui o template na Meta e aqui, como o Excluir do painel. Com o id da Meta
|
|
5535
|
+
* apaga só aquela versão de idioma; sem ele, a Meta apaga todas as do mesmo
|
|
5536
|
+
* nome. Não dá para desfazer. Só chave de produção. Scope `templates:write`.
|
|
5537
|
+
*/
|
|
5538
|
+
delete(id) {
|
|
5539
|
+
return this.client.requestItem("DELETE", `/templates/${encodeURIComponent(id)}`);
|
|
5540
|
+
}
|
|
5532
5541
|
};
|
|
5533
5542
|
|
|
5534
5543
|
// src/resources/broadcasts.ts
|