@hedhog/admin 0.48.7 → 0.48.8

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.
@@ -26,7 +26,14 @@ export declare class CoreController {
26
26
  total: number;
27
27
  admin: number;
28
28
  active: number;
29
- activities: any;
29
+ activities: {
30
+ created_at: Date;
31
+ user: {
32
+ name: string;
33
+ id: number;
34
+ };
35
+ message: string;
36
+ }[];
30
37
  };
31
38
  database: {
32
39
  connections: number;
@@ -1 +1 @@
1
- {"version":3,"file":"core.controller.d.ts","sourceRoot":"","sources":["../../src/core/core.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAIjC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGZ"}
1
+ {"version":3,"file":"core.controller.d.ts","sourceRoot":"","sources":["../../src/core/core.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAIjC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGZ"}
@@ -26,7 +26,14 @@ export declare class CoreService {
26
26
  total: number;
27
27
  admin: number;
28
28
  active: number;
29
- activities: any;
29
+ activities: {
30
+ created_at: Date;
31
+ user: {
32
+ name: string;
33
+ id: number;
34
+ };
35
+ message: string;
36
+ }[];
30
37
  };
31
38
  database: {
32
39
  connections: number;
@@ -1 +1 @@
1
- {"version":3,"file":"core.service.d.ts","sourceRoot":"","sources":["../../src/core/core.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,qBACa,WAAW;IACV,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE1C,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsBX,OAAO,CAAC,iBAAiB;YAqBX,eAAe;YAgCf,YAAY;YA4CZ,cAAc;YAoCd,gBAAgB;IAkB9B,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,aAAa;YAOP,WAAW;IA2BzB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,iBAAiB;CAkB1B"}
1
+ {"version":3,"file":"core.service.d.ts","sourceRoot":"","sources":["../../src/core/core.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,qBACa,WAAW;IACV,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE1C,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsBX,OAAO,CAAC,iBAAiB;YAqBX,eAAe;YAgCf,YAAY;YA4CZ,cAAc;YAoCd,gBAAgB;IAkB9B,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,aAAa;YAOP,WAAW;IA2BzB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,oBAAoB;IAgB5B,OAAO,CAAC,iBAAiB;CAkB1B"}
@@ -18,34 +18,34 @@ export declare class DashboardUserController {
18
18
  id: number;
19
19
  created_at: Date;
20
20
  updated_at: Date;
21
- item_id: number;
22
21
  user_id: number;
23
22
  width: number;
24
23
  height: number;
25
24
  x_axis: number;
26
25
  y_axis: number;
26
+ item_id: number;
27
27
  }>;
28
28
  create(data: CreateDTO): Promise<{
29
29
  id: number;
30
30
  created_at: Date;
31
31
  updated_at: Date;
32
- item_id: number;
33
32
  user_id: number;
34
33
  width: number;
35
34
  height: number;
36
35
  x_axis: number;
37
36
  y_axis: number;
37
+ item_id: number;
38
38
  }>;
39
39
  update(id: number, data: UpdateDTO): Promise<{
40
40
  id: number;
41
41
  created_at: Date;
42
42
  updated_at: Date;
43
- item_id: number;
44
43
  user_id: number;
45
44
  width: number;
46
45
  height: number;
47
46
  x_axis: number;
48
47
  y_axis: number;
48
+ item_id: number;
49
49
  }>;
50
50
  delete(data: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
51
51
  }
@@ -22,23 +22,23 @@ export declare class DashboardUserService {
22
22
  id: number;
23
23
  created_at: Date;
24
24
  updated_at: Date;
25
- item_id: number;
26
25
  user_id: number;
27
26
  width: number;
28
27
  height: number;
29
28
  x_axis: number;
30
29
  y_axis: number;
30
+ item_id: number;
31
31
  }>;
32
32
  create(data: CreateDTO): Promise<{
33
33
  id: number;
34
34
  created_at: Date;
35
35
  updated_at: Date;
36
- item_id: number;
37
36
  user_id: number;
38
37
  width: number;
39
38
  height: number;
40
39
  x_axis: number;
41
40
  y_axis: number;
41
+ item_id: number;
42
42
  }>;
43
43
  update({ id, data }: {
44
44
  id: number;
@@ -47,12 +47,12 @@ export declare class DashboardUserService {
47
47
  id: number;
48
48
  created_at: Date;
49
49
  updated_at: Date;
50
- item_id: number;
51
50
  user_id: number;
52
51
  width: number;
53
52
  height: number;
54
53
  x_axis: number;
55
54
  y_axis: number;
55
+ item_id: number;
56
56
  }>;
57
57
  delete({ ids }: DeleteDTO): Promise<import(".prisma/client").Prisma.BatchPayload>;
58
58
  }
@@ -43,8 +43,8 @@ export declare class MenuController {
43
43
  id: number;
44
44
  created_at: Date;
45
45
  updated_at: Date;
46
- slug: string;
47
46
  menu_id: number | null;
47
+ slug: string;
48
48
  url: string | null;
49
49
  order: number;
50
50
  icon: string | null;
@@ -53,8 +53,8 @@ export declare class MenuController {
53
53
  id: number;
54
54
  created_at: Date;
55
55
  updated_at: Date;
56
- slug: string;
57
56
  menu_id: number | null;
57
+ slug: string;
58
58
  url: string | null;
59
59
  order: number;
60
60
  icon: string | null;
@@ -63,8 +63,8 @@ export declare class MenuController {
63
63
  id: number;
64
64
  created_at: Date;
65
65
  updated_at: Date;
66
- slug: string;
67
66
  menu_id: number | null;
67
+ slug: string;
68
68
  url: string | null;
69
69
  order: number;
70
70
  icon: string | null;
@@ -44,8 +44,8 @@ export declare class MenuService {
44
44
  id: number;
45
45
  created_at: Date;
46
46
  updated_at: Date;
47
- slug: string;
48
47
  menu_id: number | null;
48
+ slug: string;
49
49
  url: string | null;
50
50
  order: number;
51
51
  icon: string | null;
@@ -54,8 +54,8 @@ export declare class MenuService {
54
54
  id: number;
55
55
  created_at: Date;
56
56
  updated_at: Date;
57
- slug: string;
58
57
  menu_id: number | null;
58
+ slug: string;
59
59
  url: string | null;
60
60
  order: number;
61
61
  icon: string | null;
@@ -67,8 +67,8 @@ export declare class MenuService {
67
67
  id: number;
68
68
  created_at: Date;
69
69
  updated_at: Date;
70
- slug: string;
71
70
  menu_id: number | null;
71
+ slug: string;
72
72
  url: string | null;
73
73
  order: number;
74
74
  icon: string | null;
@@ -3,7 +3,7 @@ import FormPanel, {
3
3
  getFieldsLocale,
4
4
  } from '@/components/panels/form-panel'
5
5
  import { EnumFieldType } from '@/enums/EnumFieldType'
6
- import { useDashboardCreate } from '@/features/dashboard/dashboard'
6
+ import { useDashboardCreate } from '@/features/admin/dashboard'
7
7
  import { Dashboard } from '@/types/models'
8
8
  import { forwardRef, useImperativeHandle, useRef } from 'react'
9
9
  import { useTranslation } from 'react-i18next'
@@ -1,6 +1,6 @@
1
1
  import { PageTitle } from '@/components/custom/page-title'
2
2
  import DataPanel from '@/components/panels/data-panel'
3
- import { useDashboardDelete } from '@/features/dashboard/dashboard'
3
+ import { useDashboardDelete } from '@/features/admin/dashboard'
4
4
  import { useApp } from '@/hooks/use-app'
5
5
  import { isPlural } from '@/lib/utils'
6
6
  import { Dashboard } from '@/types/models'
@@ -7,7 +7,7 @@ import { TabPanel } from '@/components/panels/tab-panel'
7
7
  import {
8
8
  useDashboardGet,
9
9
  useDashboardUpdate,
10
- } from '@/features/dashboard/dashboard'
10
+ } from '@/features/admin/dashboard'
11
11
  import useEffectAfterFirstUpdate from '@/hooks/use-effect-after-first-update'
12
12
  import { Dashboard } from '@/types/models'
13
13
  import { forwardRef, useImperativeHandle, useRef } from 'react'
@@ -3,7 +3,7 @@ import FormPanel, {
3
3
  getFieldsLocale,
4
4
  } from '@/components/panels/form-panel'
5
5
  import { EnumFieldType } from '@/enums/EnumFieldType'
6
- import { useDashboardComponentCreate } from '@/features/dashboard/dashboard-component'
6
+ import { useDashboardComponentCreate } from '@/features/admin/dashboard-component'
7
7
  import { DashboardComponent } from '@/types/models'
8
8
  import { forwardRef, useImperativeHandle, useRef } from 'react'
9
9
  import { useTranslation } from 'react-i18next'
@@ -1,6 +1,6 @@
1
1
  import { PageTitle } from '@/components/custom/page-title'
2
2
  import DataPanel from '@/components/panels/data-panel'
3
- import { useDashboardComponentDelete } from '@/features/dashboard/dashboard-component'
3
+ import { useDashboardComponentDelete } from '@/features/admin/dashboard-component'
4
4
  import { useApp } from '@/hooks/use-app'
5
5
  import { isPlural } from '@/lib/utils'
6
6
  import { DashboardComponent } from '@/types/models'
@@ -7,7 +7,7 @@ import { TabPanel } from '@/components/panels/tab-panel'
7
7
  import {
8
8
  useDashboardComponentGet,
9
9
  useDashboardComponentUpdate,
10
- } from '@/features/dashboard/dashboard-component'
10
+ } from '@/features/admin/dashboard-component'
11
11
  import useEffectAfterFirstUpdate from '@/hooks/use-effect-after-first-update'
12
12
  import { DashboardComponent } from '@/types/models'
13
13
  import { forwardRef, useImperativeHandle, useRef } from 'react'
@@ -1,6 +1,6 @@
1
1
  import FormPanel, { FormPanelRef } from '@/components/panels/form-panel'
2
2
  import { EnumFieldType } from '@/enums/EnumFieldType'
3
- import { useDashboardItemCreate } from '@/features/dashboard/dashboard-item'
3
+ import { useDashboardItemCreate } from '@/features/admin/dashboard-item'
4
4
  import { DashboardItem } from '@/types/models'
5
5
  import { forwardRef, useImperativeHandle, useRef } from 'react'
6
6
  import { useTranslation } from 'react-i18next'
@@ -1,6 +1,6 @@
1
1
  import { PageTitle } from '@/components/custom/page-title'
2
2
  import DataPanel from '@/components/panels/data-panel'
3
- import { useDashboardItemDelete } from '@/features/dashboard/dashboard-item'
3
+ import { useDashboardItemDelete } from '@/features/admin/dashboard-item'
4
4
  import { useApp } from '@/hooks/use-app'
5
5
  import { isPlural } from '@/lib/utils'
6
6
  import { DashboardItem } from '@/types/models'
@@ -4,7 +4,7 @@ import { TabPanel } from '@/components/panels/tab-panel'
4
4
  import {
5
5
  useDashboardItemGet,
6
6
  useDashboardItemUpdate,
7
- } from '@/features/dashboard/dashboard-item'
7
+ } from '@/features/admin/dashboard-item'
8
8
  import useEffectAfterFirstUpdate from '@/hooks/use-effect-after-first-update'
9
9
  import { DashboardItem } from '@/types/models'
10
10
  import { forwardRef, useImperativeHandle, useRef } from 'react'
@@ -1,6 +1,6 @@
1
1
  import FormPanel, { FormPanelRef } from '@/components/panels/form-panel'
2
2
  import { EnumFieldType } from '@/enums/EnumFieldType'
3
- import { useDashboardUserCreate } from '@/features/dashboard/dashboard-user'
3
+ import { useDashboardUserCreate } from '@/features/admin/dashboard-user'
4
4
  import { DashboardUser } from '@/types/models'
5
5
  import { forwardRef, useImperativeHandle, useRef } from 'react'
6
6
  import { useTranslation } from 'react-i18next'
@@ -1,6 +1,6 @@
1
1
  import { PageTitle } from '@/components/custom/page-title'
2
2
  import DataPanel from '@/components/panels/data-panel'
3
- import { useDashboardUserDelete } from '@/features/dashboard/dashboard-user'
3
+ import { useDashboardUserDelete } from '@/features/admin/dashboard-user'
4
4
  import { useApp } from '@/hooks/use-app'
5
5
  import { isPlural } from '@/lib/utils'
6
6
  import { DashboardUser } from '@/types/models'
@@ -4,7 +4,7 @@ import { TabPanel } from '@/components/panels/tab-panel'
4
4
  import {
5
5
  useDashboardUserGet,
6
6
  useDashboardUserUpdate,
7
- } from '@/features/dashboard/dashboard-user'
7
+ } from '@/features/admin/dashboard-user'
8
8
  import useEffectAfterFirstUpdate from '@/hooks/use-effect-after-first-update'
9
9
  import { DashboardUser } from '@/types/models'
10
10
  import { forwardRef, useImperativeHandle, useRef } from 'react'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.48.7",
3
+ "version": "0.48.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {