@hed-hog/core 0.0.222 → 0.0.223

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.
@@ -23,9 +23,9 @@ export declare class AuthController {
23
23
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
24
24
  created_at: Date;
25
25
  updated_at: Date;
26
- email: string | null;
27
26
  user_id: number;
28
27
  provider_user_id: string;
28
+ email: string | null;
29
29
  scopes: string | null;
30
30
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
31
31
  token_expires_at: Date | null;
@@ -63,10 +63,10 @@ export declare class AuthController {
63
63
  hash: string;
64
64
  created_at: Date;
65
65
  updated_at: Date;
66
+ ip_address: string;
66
67
  user_id: number;
67
68
  revoked_at: Date | null;
68
69
  expires_at: Date;
69
- ip_address: string;
70
70
  user_agent: string;
71
71
  }[];
72
72
  } & {
@@ -172,10 +172,10 @@ export declare class AuthController {
172
172
  hash: string;
173
173
  created_at: Date;
174
174
  updated_at: Date;
175
+ ip_address: string;
175
176
  user_id: number;
176
177
  revoked_at: Date | null;
177
178
  expires_at: Date;
178
- ip_address: string;
179
179
  user_agent: string;
180
180
  };
181
181
  }>;
@@ -26,10 +26,10 @@ export declare class AuthService {
26
26
  hash: string;
27
27
  created_at: Date;
28
28
  updated_at: Date;
29
+ ip_address: string;
29
30
  user_id: number;
30
31
  revoked_at: Date | null;
31
32
  expires_at: Date;
32
- ip_address: string;
33
33
  user_agent: string;
34
34
  };
35
35
  }>;
@@ -79,9 +79,9 @@ export declare class AuthService {
79
79
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
80
80
  created_at: Date;
81
81
  updated_at: Date;
82
- email: string | null;
83
82
  user_id: number;
84
83
  provider_user_id: string;
84
+ email: string | null;
85
85
  scopes: string | null;
86
86
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
87
87
  token_expires_at: Date | null;
@@ -119,10 +119,10 @@ export declare class AuthService {
119
119
  hash: string;
120
120
  created_at: Date;
121
121
  updated_at: Date;
122
+ ip_address: string;
122
123
  user_id: number;
123
124
  revoked_at: Date | null;
124
125
  expires_at: Date;
125
- ip_address: string;
126
126
  user_agent: string;
127
127
  }[];
128
128
  } & {
@@ -144,10 +144,10 @@ export declare class AuthService {
144
144
  hash: string;
145
145
  created_at: Date;
146
146
  updated_at: Date;
147
+ ip_address: string;
147
148
  user_id: number;
148
149
  revoked_at: Date | null;
149
150
  expires_at: Date;
150
- ip_address: string;
151
151
  user_agent: string;
152
152
  };
153
153
  }>;
@@ -165,10 +165,10 @@ export declare class AuthService {
165
165
  hash: string;
166
166
  created_at: Date;
167
167
  updated_at: Date;
168
+ ip_address: string;
168
169
  user_id: number;
169
170
  revoked_at: Date | null;
170
171
  expires_at: Date;
171
- ip_address: string;
172
172
  user_agent: string;
173
173
  };
174
174
  }>;
@@ -180,10 +180,10 @@ export declare class AuthService {
180
180
  hash: string;
181
181
  created_at: Date;
182
182
  updated_at: Date;
183
+ ip_address: string;
183
184
  user_id: number;
184
185
  revoked_at: Date | null;
185
186
  expires_at: Date;
186
- ip_address: string;
187
187
  user_agent: string;
188
188
  };
189
189
  }>;
@@ -195,10 +195,10 @@ export declare class AuthService {
195
195
  hash: string;
196
196
  created_at: Date;
197
197
  updated_at: Date;
198
+ ip_address: string;
198
199
  user_id: number;
199
200
  revoked_at: Date | null;
200
201
  expires_at: Date;
201
- ip_address: string;
202
202
  user_agent: string;
203
203
  };
204
204
  }>;
@@ -215,10 +215,10 @@ export declare class AuthService {
215
215
  hash: string;
216
216
  created_at: Date;
217
217
  updated_at: Date;
218
+ ip_address: string;
218
219
  user_id: number;
219
220
  revoked_at: Date | null;
220
221
  expires_at: Date;
221
- ip_address: string;
222
222
  user_agent: string;
223
223
  };
224
224
  }>;
@@ -18,24 +18,24 @@ export declare class DashboardUserController {
18
18
  id: number;
19
19
  created_at: Date;
20
20
  updated_at: Date;
21
- user_id: number;
22
21
  dashboard_id: number;
22
+ user_id: number;
23
23
  is_home: boolean;
24
24
  }>;
25
25
  create(data: CreateDTO): Promise<{
26
26
  id: number;
27
27
  created_at: Date;
28
28
  updated_at: Date;
29
- user_id: number;
30
29
  dashboard_id: number;
30
+ user_id: number;
31
31
  is_home: boolean;
32
32
  }>;
33
33
  update(id: number, data: UpdateDTO): Promise<{
34
34
  id: number;
35
35
  created_at: Date;
36
36
  updated_at: Date;
37
- user_id: number;
38
37
  dashboard_id: number;
38
+ user_id: number;
39
39
  is_home: boolean;
40
40
  }>;
41
41
  delete(data: DeleteDTO): Promise<{
@@ -20,16 +20,16 @@ export declare class DashboardUserService {
20
20
  id: number;
21
21
  created_at: Date;
22
22
  updated_at: Date;
23
- user_id: number;
24
23
  dashboard_id: number;
24
+ user_id: number;
25
25
  is_home: boolean;
26
26
  }>;
27
27
  create(data: CreateDTO): Promise<{
28
28
  id: number;
29
29
  created_at: Date;
30
30
  updated_at: Date;
31
- user_id: number;
32
31
  dashboard_id: number;
32
+ user_id: number;
33
33
  is_home: boolean;
34
34
  }>;
35
35
  update({ id, data }: {
@@ -39,8 +39,8 @@ export declare class DashboardUserService {
39
39
  id: number;
40
40
  created_at: Date;
41
41
  updated_at: Date;
42
- user_id: number;
43
42
  dashboard_id: number;
43
+ user_id: number;
44
44
  is_home: boolean;
45
45
  }>;
46
46
  delete({ ids }: DeleteDTO): Promise<{
@@ -54,9 +54,9 @@ export declare class MenuController {
54
54
  created_at: Date;
55
55
  updated_at: Date;
56
56
  slug: string;
57
- icon: string;
58
57
  menu_id: number | null;
59
58
  url: string | null;
59
+ icon: string;
60
60
  }>;
61
61
  create(locale: any, data: CreateDTO): Promise<{
62
62
  id: number;
@@ -64,9 +64,9 @@ export declare class MenuController {
64
64
  created_at: Date;
65
65
  updated_at: Date;
66
66
  slug: string;
67
- icon: string;
68
67
  menu_id: number | null;
69
68
  url: string | null;
69
+ icon: string;
70
70
  }>;
71
71
  updateOrder(locale: any, data: OrderDTO): Promise<void>;
72
72
  update(locale: any, menuId: number, data: UpdateDTO): Promise<{
@@ -75,9 +75,9 @@ export declare class MenuController {
75
75
  created_at: Date;
76
76
  updated_at: Date;
77
77
  slug: string;
78
- icon: string;
79
78
  menu_id: number | null;
80
79
  url: string | null;
80
+ icon: string;
81
81
  }>;
82
82
  delete(locale: any, data: DeleteDTO): Promise<{
83
83
  count: number;
@@ -67,9 +67,9 @@ export declare class MenuService {
67
67
  created_at: Date;
68
68
  updated_at: Date;
69
69
  slug: string;
70
- icon: string;
71
70
  menu_id: number | null;
72
71
  url: string | null;
72
+ icon: string;
73
73
  }>;
74
74
  create(_locale: string, { slug, url, icon, order, menu_id, locale }: CreateDTO): Promise<{
75
75
  id: number;
@@ -77,9 +77,9 @@ export declare class MenuService {
77
77
  created_at: Date;
78
78
  updated_at: Date;
79
79
  slug: string;
80
- icon: string;
81
80
  menu_id: number | null;
82
81
  url: string | null;
82
+ icon: string;
83
83
  }>;
84
84
  update(locale: string, { id, data }: {
85
85
  id: number;
@@ -90,9 +90,9 @@ export declare class MenuService {
90
90
  created_at: Date;
91
91
  updated_at: Date;
92
92
  slug: string;
93
- icon: string;
94
93
  menu_id: number | null;
95
94
  url: string | null;
95
+ icon: string;
96
96
  }>;
97
97
  delete(locale: string, { ids }: DeleteDTO): Promise<{
98
98
  count: number;
@@ -34,10 +34,10 @@ export declare class SessionController {
34
34
  hash: string;
35
35
  created_at: Date;
36
36
  updated_at: Date;
37
+ ip_address: string;
37
38
  user_id: number;
38
39
  revoked_at: Date | null;
39
40
  expires_at: Date;
40
- ip_address: string;
41
41
  user_agent: string;
42
42
  }>;
43
43
  }
@@ -21,10 +21,10 @@ export declare class SessionService {
21
21
  hash: string;
22
22
  created_at: Date;
23
23
  updated_at: Date;
24
+ ip_address: string;
24
25
  user_id: number;
25
26
  revoked_at: Date | null;
26
27
  expires_at: Date;
27
- ip_address: string;
28
28
  user_agent: string;
29
29
  };
30
30
  }>;
@@ -35,10 +35,10 @@ export declare class SessionService {
35
35
  hash: string;
36
36
  created_at: Date;
37
37
  updated_at: Date;
38
+ ip_address: string;
38
39
  user_id: number;
39
40
  revoked_at: Date | null;
40
41
  expires_at: Date;
41
- ip_address: string;
42
42
  user_agent: string;
43
43
  };
44
44
  }>;
@@ -66,10 +66,10 @@ export declare class SessionService {
66
66
  hash: string;
67
67
  created_at: Date;
68
68
  updated_at: Date;
69
+ ip_address: string;
69
70
  user_id: number;
70
71
  revoked_at: Date | null;
71
72
  expires_at: Date;
72
- ip_address: string;
73
73
  user_agent: string;
74
74
  }>;
75
75
  /**
@@ -25,9 +25,9 @@ export declare class UserController {
25
25
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
26
26
  created_at: Date;
27
27
  updated_at: Date;
28
- email: string | null;
29
28
  user_id: number;
30
29
  provider_user_id: string;
30
+ email: string | null;
31
31
  scopes: string | null;
32
32
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
33
33
  token_expires_at: Date | null;
@@ -65,10 +65,10 @@ export declare class UserController {
65
65
  hash: string;
66
66
  created_at: Date;
67
67
  updated_at: Date;
68
+ ip_address: string;
68
69
  user_id: number;
69
70
  revoked_at: Date | null;
70
71
  expires_at: Date;
71
- ip_address: string;
72
72
  user_agent: string;
73
73
  }[];
74
74
  } & {
@@ -135,8 +135,8 @@ export declare class UserController {
135
135
  id: number;
136
136
  created_at: Date;
137
137
  updated_at: Date;
138
- user_id: number;
139
138
  role_id: number;
139
+ user_id: number;
140
140
  }>;
141
141
  removeRoleFromUser(userId: number, roleId: number, locale: string): Promise<{
142
142
  count: number;
@@ -46,9 +46,9 @@ export declare class UserService {
46
46
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
47
47
  created_at: Date;
48
48
  updated_at: Date;
49
- email: string | null;
50
49
  user_id: number;
51
50
  provider_user_id: string;
51
+ email: string | null;
52
52
  scopes: string | null;
53
53
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
54
54
  token_expires_at: Date | null;
@@ -86,10 +86,10 @@ export declare class UserService {
86
86
  hash: string;
87
87
  created_at: Date;
88
88
  updated_at: Date;
89
+ ip_address: string;
89
90
  user_id: number;
90
91
  revoked_at: Date | null;
91
92
  expires_at: Date;
92
- ip_address: string;
93
93
  user_agent: string;
94
94
  }[];
95
95
  } & {
@@ -141,9 +141,9 @@ export declare class UserService {
141
141
  provider: import("@prisma/client").$Enums.user_account_provider_enum;
142
142
  created_at: Date;
143
143
  updated_at: Date;
144
- email: string | null;
145
144
  user_id: number;
146
145
  provider_user_id: string;
146
+ email: string | null;
147
147
  scopes: string | null;
148
148
  refresh_token: import("@prisma/client/runtime/library").Bytes | null;
149
149
  token_expires_at: Date | null;
@@ -181,10 +181,10 @@ export declare class UserService {
181
181
  hash: string;
182
182
  created_at: Date;
183
183
  updated_at: Date;
184
+ ip_address: string;
184
185
  user_id: number;
185
186
  revoked_at: Date | null;
186
187
  expires_at: Date;
187
- ip_address: string;
188
188
  user_agent: string;
189
189
  }[];
190
190
  } & {
@@ -225,10 +225,10 @@ export declare class UserService {
225
225
  hash: string;
226
226
  created_at: Date;
227
227
  updated_at: Date;
228
+ ip_address: string;
228
229
  user_id: number;
229
230
  revoked_at: Date | null;
230
231
  expires_at: Date;
231
- ip_address: string;
232
232
  user_agent: string;
233
233
  }[];
234
234
  } & {
@@ -253,8 +253,8 @@ export declare class UserService {
253
253
  id: number;
254
254
  created_at: Date;
255
255
  updated_at: Date;
256
- user_id: number;
257
256
  role_id: number;
257
+ user_id: number;
258
258
  }>;
259
259
  removeRoleFromUser(locale: string, userId: number, roleId: number): Promise<{
260
260
  count: number;
@@ -20,7 +20,7 @@
20
20
  role:
21
21
  - where:
22
22
  slug: admin
23
- - order: 1
23
+ - order: 1000
24
24
  icon: settings-2
25
25
  name:
26
26
  en: Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/core",
3
- "version": "0.0.222",
3
+ "version": "0.0.223",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -29,12 +29,12 @@
29
29
  "sharp": "^0.34.2",
30
30
  "speakeasy": "^2.0.0",
31
31
  "uuid": "^11.1.0",
32
- "@hed-hog/api-mail": "0.0.7",
33
- "@hed-hog/api-types": "0.0.1",
34
32
  "@hed-hog/api": "0.0.3",
33
+ "@hed-hog/api-types": "0.0.1",
35
34
  "@hed-hog/api-locale": "0.0.11",
36
35
  "@hed-hog/api-prisma": "0.0.4",
37
- "@hed-hog/api-pagination": "0.0.5"
36
+ "@hed-hog/api-pagination": "0.0.5",
37
+ "@hed-hog/api-mail": "0.0.7"
38
38
  },
39
39
  "exports": {
40
40
  ".": {