enerthya.dev-web-common 1.3.0 → 1.4.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
CHANGED
|
@@ -60,6 +60,11 @@ const API_ROUTES = {
|
|
|
60
60
|
* @param {string} id
|
|
61
61
|
*/
|
|
62
62
|
GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
|
|
63
|
+
/**
|
|
64
|
+
* POST — Reset entire ticket config (removes all settings, panels and categories)
|
|
65
|
+
* @param {string} id
|
|
66
|
+
*/
|
|
67
|
+
GUILD_TICKET_RESET: (id) => `/guilds/${id}/ticket/reset`,
|
|
63
68
|
/**
|
|
64
69
|
* POST — Publish a panel embed+buttons to its configured channel_id
|
|
65
70
|
* @param {string} id - Discord guild ID
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enerthya.dev-web-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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
|
@@ -60,6 +60,11 @@ const API_ROUTES = {
|
|
|
60
60
|
* @param {string} id
|
|
61
61
|
*/
|
|
62
62
|
GUILD_TICKET_IMPORT: (id) => `/guilds/${id}/ticket/import`,
|
|
63
|
+
/**
|
|
64
|
+
* POST — Reset entire ticket config (removes all settings, panels and categories)
|
|
65
|
+
* @param {string} id
|
|
66
|
+
*/
|
|
67
|
+
GUILD_TICKET_RESET: (id) => `/guilds/${id}/ticket/reset`,
|
|
63
68
|
/**
|
|
64
69
|
* POST — Publish a panel embed+buttons to its configured channel_id
|
|
65
70
|
* @param {string} id - Discord guild ID
|