enerthya.dev-web-common 1.2.0 → 1.3.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.
@@ -56,7 +56,7 @@ const API_ROUTES = {
56
56
  */
57
57
  GUILD_TICKET_EXPORT: (id) => `/guilds/${id}/ticket/export`,
58
58
  /**
59
- * POST — Import ticket config from YAML ({ yaml: string })\
59
+ * POST — Import ticket config from JSON ({ config: { ...campos } })
60
60
  * @param {string} id
61
61
  */
62
62
  GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
@@ -67,6 +67,10 @@ const API_ROUTES = {
67
67
  */
68
68
  GUILD_TICKET_PANEL_PUBLISH: (id, panelId) => `/guilds/${id}/ticket/panel/${panelId}/publish`,
69
69
 
70
+ // ─── Formulários ──────────────────────────────────────────────────────────
71
+ /** POST — Publica (ou atualiza) o painel de um formulário no canal configurado */
72
+ GUILD_FORMS_PUBLISH: (id, formId) => `/guilds/${id}/forms/${formId}/publish`,
73
+
70
74
  // ─── Daily ───────────────────────────────────────────────────────────────
71
75
  DAILY: {
72
76
  /** GET — Daily status (coins, streak, next claim) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enerthya.dev-web-common",
3
- "version": "1.2.0",
3
+ "version": "1.3.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",
@@ -51,12 +51,12 @@ const API_ROUTES = {
51
51
  */
52
52
  GUILD_COMMAND_SETTINGS: (id) => `/guilds/${id}/command-settings`,
53
53
  /**
54
- * GET — Export ticket config as YAML
54
+ * GET — Export ticket config as JSON (campos de ID descartados automaticamente)
55
55
  * @param {string} id
56
56
  */
57
57
  GUILD_TICKET_EXPORT: (id) => `/guilds/${id}/ticket/export`,
58
58
  /**
59
- * POST — Import ticket config from YAML ({ yaml: string })\
59
+ * POST — Import ticket config from JSON ({ config: { ...campos } })
60
60
  * @param {string} id
61
61
  */
62
62
  GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
@@ -67,6 +67,10 @@ const API_ROUTES = {
67
67
  */
68
68
  GUILD_TICKET_PANEL_PUBLISH: (id, panelId) => `/guilds/${id}/ticket/panel/${panelId}/publish`,
69
69
 
70
+ // ─── Formulários ──────────────────────────────────────────────────────────
71
+ /** POST — Publica (ou atualiza) o painel de um formulário no canal configurado */
72
+ GUILD_FORMS_PUBLISH: (id, formId) => `/guilds/${id}/forms/${formId}/publish`,
73
+
70
74
  // ─── Daily ───────────────────────────────────────────────────────────────
71
75
  DAILY: {
72
76
  /** GET — Daily status (coins, streak, next claim) */