enerthya.dev-web-common 1.3.0 → 1.5.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/esm/constants/routes.js +1 -16
- package/package.json +1 -1
- package/src/constants/routes.js +1 -16
package/esm/constants/routes.js
CHANGED
|
@@ -50,22 +50,7 @@ const API_ROUTES = {
|
|
|
50
50
|
* @param {string} id - Discord guild ID
|
|
51
51
|
*/
|
|
52
52
|
GUILD_COMMAND_SETTINGS: (id) => `/guilds/${id}/command-settings`,
|
|
53
|
-
|
|
54
|
-
* GET — Export ticket config as YAML
|
|
55
|
-
* @param {string} id
|
|
56
|
-
*/
|
|
57
|
-
GUILD_TICKET_EXPORT: (id) => `/guilds/${id}/ticket/export`,
|
|
58
|
-
/**
|
|
59
|
-
* POST — Import ticket config from JSON ({ config: { ...campos } })
|
|
60
|
-
* @param {string} id
|
|
61
|
-
*/
|
|
62
|
-
GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
|
|
63
|
-
/**
|
|
64
|
-
* POST — Publish a panel embed+buttons to its configured channel_id
|
|
65
|
-
* @param {string} id - Discord guild ID
|
|
66
|
-
* @param {number} panelId - Panel ID (from ticket.panels[].id)
|
|
67
|
-
*/
|
|
68
|
-
GUILD_TICKET_PANEL_PUBLISH: (id, panelId) => `/guilds/${id}/ticket/panel/${panelId}/publish`,
|
|
53
|
+
|
|
69
54
|
|
|
70
55
|
// ─── Formulários ──────────────────────────────────────────────────────────
|
|
71
56
|
/** POST — Publica (ou atualiza) o painel de um formulário no canal configurado */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerthya.dev-web-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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
|
@@ -50,22 +50,7 @@ const API_ROUTES = {
|
|
|
50
50
|
* @param {string} id - Discord guild ID
|
|
51
51
|
*/
|
|
52
52
|
GUILD_COMMAND_SETTINGS: (id) => `/guilds/${id}/command-settings`,
|
|
53
|
-
|
|
54
|
-
* GET — Export ticket config as JSON (campos de ID descartados automaticamente)
|
|
55
|
-
* @param {string} id
|
|
56
|
-
*/
|
|
57
|
-
GUILD_TICKET_EXPORT: (id) => `/guilds/${id}/ticket/export`,
|
|
58
|
-
/**
|
|
59
|
-
* POST — Import ticket config from JSON ({ config: { ...campos } })
|
|
60
|
-
* @param {string} id
|
|
61
|
-
*/
|
|
62
|
-
GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
|
|
63
|
-
/**
|
|
64
|
-
* POST — Publish a panel embed+buttons to its configured channel_id
|
|
65
|
-
* @param {string} id - Discord guild ID
|
|
66
|
-
* @param {number} panelId - Panel ID (from ticket.panels[].id)
|
|
67
|
-
*/
|
|
68
|
-
GUILD_TICKET_PANEL_PUBLISH: (id, panelId) => `/guilds/${id}/ticket/panel/${panelId}/publish`,
|
|
53
|
+
|
|
69
54
|
|
|
70
55
|
// ─── Formulários ──────────────────────────────────────────────────────────
|
|
71
56
|
/** POST — Publica (ou atualiza) o painel de um formulário no canal configurado */
|