enerthya.dev-web-common 1.5.0 → 1.5.1
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/package.json +1 -1
- package/src/constants/routes.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerthya.dev-web-common",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Shared web layer for the Enerthya ecosystem: API routes, response envelopes, URL helpers and validators. Inspired by Loritta's web-common and dashboard-common modules.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
package/src/constants/routes.js
CHANGED
|
@@ -55,6 +55,10 @@ const API_ROUTES = {
|
|
|
55
55
|
// ─── Formulários ──────────────────────────────────────────────────────────
|
|
56
56
|
/** POST — Publica (ou atualiza) o painel de um formulário no canal configurado */
|
|
57
57
|
GUILD_FORMS_PUBLISH: (id, formId) => `/guilds/${id}/forms/${formId}/publish`,
|
|
58
|
+
/** GET — Exporta um formulário como JSON */
|
|
59
|
+
GUILD_FORMS_EXPORT: (id, formId) => `/guilds/${id}/forms/${formId}/export`,
|
|
60
|
+
/** POST — Importa um formulário a partir de JSON exportado */
|
|
61
|
+
GUILD_FORMS_IMPORT: (id) => `/guilds/${id}/forms/import`,
|
|
58
62
|
|
|
59
63
|
// ─── Daily ───────────────────────────────────────────────────────────────
|
|
60
64
|
DAILY: {
|