@adminforth/dashboard 1.12.0 → 1.13.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.
@@ -42,6 +42,9 @@ export function registerGroupEndpoints(server, ctx) {
42
42
  server.endpoint({
43
43
  method: 'POST',
44
44
  path: '/dashboard/set_dashboard_group_config',
45
+ agent: {
46
+ isDangerous: true,
47
+ },
45
48
  description: 'Replaces editable JSON configuration for a dashboard group while preserving group id and order. Superadmin only.',
46
49
  request_schema: SetGroupConfigRequestSchema,
47
50
  response_schema: DashboardMutationResponseSchema,
@@ -116,6 +119,9 @@ export function registerGroupEndpoints(server, ctx) {
116
119
  server.endpoint({
117
120
  method: 'POST',
118
121
  path: '/dashboard/remove_dashboard_group',
122
+ agent: {
123
+ isDangerous: true,
124
+ },
119
125
  description: 'Removes a dashboard group and all widgets inside it. Superadmin only.',
120
126
  request_schema: GroupIdRequestSchema,
121
127
  response_schema: DashboardMutationResponseSchema,
@@ -33,6 +33,9 @@ function registerConfigureWidgetEndpoint(server, ctx, options) {
33
33
  server.endpoint({
34
34
  method: 'POST',
35
35
  path: options.path,
36
+ agent: {
37
+ isDangerous: true,
38
+ },
36
39
  description: options.description,
37
40
  request_schema: options.requestSchema,
38
41
  response_schema: DashboardMutationResponseSchema,
@@ -147,6 +150,9 @@ export function registerWidgetEndpoints(server, ctx) {
147
150
  server.endpoint({
148
151
  method: 'POST',
149
152
  path: '/dashboard/remove_dashboard_widget',
153
+ agent: {
154
+ isDangerous: true,
155
+ },
150
156
  description: 'Removes one dashboard widget by id. Superadmin only.',
151
157
  request_schema: WidgetIdRequestSchema,
152
158
  response_schema: DashboardMutationResponseSchema,
@@ -178,6 +184,9 @@ export function registerWidgetEndpoints(server, ctx) {
178
184
  server.endpoint({
179
185
  method: 'POST',
180
186
  path: '/dashboard/set_widget_config',
187
+ agent: {
188
+ isDangerous: true,
189
+ },
181
190
  description: 'Replaces editable JSON configuration for a dashboard widget while preserving widget id, group id, and order. Superadmin only.',
182
191
  request_schema: SetWidgetConfigRequestSchema,
183
192
  response_schema: DashboardMutationResponseSchema,
@@ -72,6 +72,9 @@ export function registerGroupEndpoints(
72
72
  server.endpoint({
73
73
  method: 'POST',
74
74
  path: '/dashboard/set_dashboard_group_config',
75
+ agent: {
76
+ isDangerous: true,
77
+ },
75
78
  description: 'Replaces editable JSON configuration for a dashboard group while preserving group id and order. Superadmin only.',
76
79
  request_schema: SetGroupConfigRequestSchema,
77
80
  response_schema: DashboardMutationResponseSchema,
@@ -174,6 +177,9 @@ export function registerGroupEndpoints(
174
177
  server.endpoint({
175
178
  method: 'POST',
176
179
  path: '/dashboard/remove_dashboard_group',
180
+ agent: {
181
+ isDangerous: true,
182
+ },
177
183
  description: 'Removes a dashboard group and all widgets inside it. Superadmin only.',
178
184
  request_schema: GroupIdRequestSchema,
179
185
  response_schema: DashboardMutationResponseSchema,
@@ -115,6 +115,9 @@ function registerConfigureWidgetEndpoint(
115
115
  server.endpoint({
116
116
  method: 'POST',
117
117
  path: options.path,
118
+ agent: {
119
+ isDangerous: true,
120
+ },
118
121
  description: options.description,
119
122
  request_schema: options.requestSchema,
120
123
  response_schema: DashboardMutationResponseSchema,
@@ -266,6 +269,9 @@ export function registerWidgetEndpoints(
266
269
  server.endpoint({
267
270
  method: 'POST',
268
271
  path: '/dashboard/remove_dashboard_widget',
272
+ agent: {
273
+ isDangerous: true,
274
+ },
269
275
  description: 'Removes one dashboard widget by id. Superadmin only.',
270
276
  request_schema: WidgetIdRequestSchema,
271
277
  response_schema: DashboardMutationResponseSchema,
@@ -308,6 +314,9 @@ export function registerWidgetEndpoints(
308
314
  server.endpoint({
309
315
  method: 'POST',
310
316
  path: '/dashboard/set_widget_config',
317
+ agent: {
318
+ isDangerous: true,
319
+ },
311
320
  description: 'Replaces editable JSON configuration for a dashboard widget while preserving widget id, group id, and order. Superadmin only.',
312
321
  request_schema: SetWidgetConfigRequestSchema,
313
322
  response_schema: DashboardMutationResponseSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/dashboard",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "description": "Dashboard plugin for AdminForth",
22
22
  "devDependencies": {
23
23
  "@types/node": "latest",
24
- "adminforth": "2.71.0",
24
+ "adminforth": "2.72.0",
25
25
  "semantic-release": "^24.2.1",
26
26
  "semantic-release-slack-bot": "^4.0.2",
27
27
  "typescript": "^5.7.3",