@hed-hog/core 0.0.376 → 0.0.378

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.
@@ -81,10 +81,10 @@ export declare class AuthController {
81
81
  created_at: Date;
82
82
  updated_at: Date;
83
83
  hash: string;
84
+ browser_id: string | null;
84
85
  ip_address: string;
85
86
  revoked_at: Date | null;
86
87
  expires_at: Date;
87
- browser_id: string | null;
88
88
  }[];
89
89
  id: number;
90
90
  created_at: Date;
@@ -200,10 +200,10 @@ export declare class AuthController {
200
200
  created_at: Date;
201
201
  updated_at: Date;
202
202
  hash: string;
203
+ browser_id: string | null;
203
204
  ip_address: string;
204
205
  revoked_at: Date | null;
205
206
  expires_at: Date;
206
- browser_id: string | null;
207
207
  };
208
208
  }>;
209
209
  }
@@ -29,10 +29,10 @@ export declare class AuthService {
29
29
  created_at: Date;
30
30
  updated_at: Date;
31
31
  hash: string;
32
+ browser_id: string | null;
32
33
  ip_address: string;
33
34
  revoked_at: Date | null;
34
35
  expires_at: Date;
35
- browser_id: string | null;
36
36
  };
37
37
  }>;
38
38
  issueDesktopToken(locale: string, userId: number, ipAddress: string, userAgent: string): Promise<{
@@ -148,10 +148,10 @@ export declare class AuthService {
148
148
  created_at: Date;
149
149
  updated_at: Date;
150
150
  hash: string;
151
+ browser_id: string | null;
151
152
  ip_address: string;
152
153
  revoked_at: Date | null;
153
154
  expires_at: Date;
154
- browser_id: string | null;
155
155
  }[];
156
156
  id: number;
157
157
  created_at: Date;
@@ -173,10 +173,10 @@ export declare class AuthService {
173
173
  created_at: Date;
174
174
  updated_at: Date;
175
175
  hash: string;
176
+ browser_id: string | null;
176
177
  ip_address: string;
177
178
  revoked_at: Date | null;
178
179
  expires_at: Date;
179
- browser_id: string | null;
180
180
  };
181
181
  }>;
182
182
  forgotPassword(locale: string, { email, app }: ForgetDTO): Promise<{
@@ -195,10 +195,10 @@ export declare class AuthService {
195
195
  created_at: Date;
196
196
  updated_at: Date;
197
197
  hash: string;
198
+ browser_id: string | null;
198
199
  ip_address: string;
199
200
  revoked_at: Date | null;
200
201
  expires_at: Date;
201
- browser_id: string | null;
202
202
  };
203
203
  }>;
204
204
  verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery', browserId?: string | null): Promise<{
@@ -211,10 +211,10 @@ export declare class AuthService {
211
211
  created_at: Date;
212
212
  updated_at: Date;
213
213
  hash: string;
214
+ browser_id: string | null;
214
215
  ip_address: string;
215
216
  revoked_at: Date | null;
216
217
  expires_at: Date;
217
- browser_id: string | null;
218
218
  };
219
219
  requiresPasswordReset: boolean;
220
220
  }>;
@@ -228,10 +228,10 @@ export declare class AuthService {
228
228
  created_at: Date;
229
229
  updated_at: Date;
230
230
  hash: string;
231
+ browser_id: string | null;
231
232
  ip_address: string;
232
233
  revoked_at: Date | null;
233
234
  expires_at: Date;
234
- browser_id: string | null;
235
235
  };
236
236
  requiresPasswordReset: boolean;
237
237
  }>;
@@ -250,10 +250,10 @@ export declare class AuthService {
250
250
  created_at: Date;
251
251
  updated_at: Date;
252
252
  hash: string;
253
+ browser_id: string | null;
253
254
  ip_address: string;
254
255
  revoked_at: Date | null;
255
256
  expires_at: Date;
256
- browser_id: string | null;
257
257
  };
258
258
  requiresPasswordReset: boolean;
259
259
  }>;
@@ -34,13 +34,13 @@ export declare class NotificationController {
34
34
  user_id: number;
35
35
  created_at: Date;
36
36
  updated_at: Date;
37
- type: import("@prisma/client").$Enums.notification_type_enum;
37
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
38
38
  body: string | null;
39
- status: import("@prisma/client").$Enums.notification_status_enum;
39
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
40
40
  icon: string | null;
41
41
  title: string;
42
42
  progress: number | null;
43
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
43
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
44
44
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
45
45
  action_url: string | null;
46
46
  auto_remove: boolean;
@@ -54,13 +54,13 @@ export declare class NotificationController {
54
54
  user_id: number;
55
55
  created_at: Date;
56
56
  updated_at: Date;
57
- type: import("@prisma/client").$Enums.notification_type_enum;
57
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
58
58
  body: string | null;
59
- status: import("@prisma/client").$Enums.notification_status_enum;
59
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
60
60
  icon: string | null;
61
61
  title: string;
62
62
  progress: number | null;
63
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
63
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
64
64
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
65
65
  action_url: string | null;
66
66
  auto_remove: boolean;
@@ -77,13 +77,13 @@ export declare class NotificationController {
77
77
  user_id: number;
78
78
  created_at: Date;
79
79
  updated_at: Date;
80
- type: import("@prisma/client").$Enums.notification_type_enum;
80
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
81
81
  body: string | null;
82
- status: import("@prisma/client").$Enums.notification_status_enum;
82
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
83
83
  icon: string | null;
84
84
  title: string;
85
85
  progress: number | null;
86
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
86
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
87
87
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
88
88
  action_url: string | null;
89
89
  auto_remove: boolean;
@@ -95,13 +95,13 @@ export declare class NotificationController {
95
95
  user_id: number;
96
96
  created_at: Date;
97
97
  updated_at: Date;
98
- type: import("@prisma/client").$Enums.notification_type_enum;
98
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
99
99
  body: string | null;
100
- status: import("@prisma/client").$Enums.notification_status_enum;
100
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
101
101
  icon: string | null;
102
102
  title: string;
103
103
  progress: number | null;
104
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
104
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
105
105
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
106
106
  action_url: string | null;
107
107
  auto_remove: boolean;
@@ -36,13 +36,13 @@ export declare class NotificationService implements OnModuleInit, OnModuleDestro
36
36
  user_id: number;
37
37
  created_at: Date;
38
38
  updated_at: Date;
39
- type: import("@prisma/client").$Enums.notification_type_enum;
39
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
40
40
  body: string | null;
41
- status: import("@prisma/client").$Enums.notification_status_enum;
41
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
42
42
  icon: string | null;
43
43
  title: string;
44
44
  progress: number | null;
45
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
45
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
46
46
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
47
47
  action_url: string | null;
48
48
  auto_remove: boolean;
@@ -55,13 +55,13 @@ export declare class NotificationService implements OnModuleInit, OnModuleDestro
55
55
  user_id: number;
56
56
  created_at: Date;
57
57
  updated_at: Date;
58
- type: import("@prisma/client").$Enums.notification_type_enum;
58
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
59
59
  body: string | null;
60
- status: import("@prisma/client").$Enums.notification_status_enum;
60
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
61
61
  icon: string | null;
62
62
  title: string;
63
63
  progress: number | null;
64
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
64
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
65
65
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
66
66
  action_url: string | null;
67
67
  auto_remove: boolean;
@@ -74,13 +74,13 @@ export declare class NotificationService implements OnModuleInit, OnModuleDestro
74
74
  user_id: number;
75
75
  created_at: Date;
76
76
  updated_at: Date;
77
- type: import("@prisma/client").$Enums.notification_type_enum;
77
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
78
78
  body: string | null;
79
- status: import("@prisma/client").$Enums.notification_status_enum;
79
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
80
80
  icon: string | null;
81
81
  title: string;
82
82
  progress: number | null;
83
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
83
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
84
84
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
85
85
  action_url: string | null;
86
86
  auto_remove: boolean;
@@ -92,13 +92,13 @@ export declare class NotificationService implements OnModuleInit, OnModuleDestro
92
92
  user_id: number;
93
93
  created_at: Date;
94
94
  updated_at: Date;
95
- type: import("@prisma/client").$Enums.notification_type_enum;
95
+ type: import("@prisma/client").$Enums.notification_type_934e7a71cc_enum;
96
96
  body: string | null;
97
- status: import("@prisma/client").$Enums.notification_status_enum;
97
+ status: import("@prisma/client").$Enums.notification_status_3a7944cf59_enum;
98
98
  icon: string | null;
99
99
  title: string;
100
100
  progress: number | null;
101
- action_type: import("@prisma/client").$Enums.notification_action_type_enum | null;
101
+ action_type: import("@prisma/client").$Enums.notification_action_type_f5ed983546_enum | null;
102
102
  action_data: import("@prisma/client/runtime/library").JsonValue | null;
103
103
  action_url: string | null;
104
104
  auto_remove: boolean;
@@ -36,10 +36,10 @@ export declare class SessionController {
36
36
  created_at: Date;
37
37
  updated_at: Date;
38
38
  hash: string;
39
+ browser_id: string | null;
39
40
  ip_address: string;
40
41
  revoked_at: Date | null;
41
42
  expires_at: Date;
42
- browser_id: string | null;
43
43
  }>;
44
44
  }
45
45
  //# sourceMappingURL=session.controller.d.ts.map
@@ -24,10 +24,10 @@ export declare class SessionService {
24
24
  created_at: Date;
25
25
  updated_at: Date;
26
26
  hash: string;
27
+ browser_id: string | null;
27
28
  ip_address: string;
28
29
  revoked_at: Date | null;
29
30
  expires_at: Date;
30
- browser_id: string | null;
31
31
  };
32
32
  }>;
33
33
  refresh(locale: string, refreshToken: string, ipAddress: string, userAgent: string, browserId?: string | null): Promise<{
@@ -39,10 +39,10 @@ export declare class SessionService {
39
39
  created_at: Date;
40
40
  updated_at: Date;
41
41
  hash: string;
42
+ browser_id: string | null;
42
43
  ip_address: string;
43
44
  revoked_at: Date | null;
44
45
  expires_at: Date;
45
- browser_id: string | null;
46
46
  };
47
47
  }>;
48
48
  deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<{
@@ -74,10 +74,10 @@ export declare class SessionService {
74
74
  created_at: Date;
75
75
  updated_at: Date;
76
76
  hash: string;
77
+ browser_id: string | null;
77
78
  ip_address: string;
78
79
  revoked_at: Date | null;
79
80
  expires_at: Date;
80
- browser_id: string | null;
81
81
  }>;
82
82
  /**
83
83
  * Enforce maximum concurrent sessions limit for a user.
@@ -83,10 +83,10 @@ export declare class UserController {
83
83
  created_at: Date;
84
84
  updated_at: Date;
85
85
  hash: string;
86
+ browser_id: string | null;
86
87
  ip_address: string;
87
88
  revoked_at: Date | null;
88
89
  expires_at: Date;
89
- browser_id: string | null;
90
90
  }[];
91
91
  } & {
92
92
  id: number;
@@ -108,10 +108,10 @@ export declare class UserService {
108
108
  created_at: Date;
109
109
  updated_at: Date;
110
110
  hash: string;
111
+ browser_id: string | null;
111
112
  ip_address: string;
112
113
  revoked_at: Date | null;
113
114
  expires_at: Date;
114
- browser_id: string | null;
115
115
  }[];
116
116
  } & {
117
117
  id: number;
@@ -223,10 +223,10 @@ export declare class UserService {
223
223
  created_at: Date;
224
224
  updated_at: Date;
225
225
  hash: string;
226
+ browser_id: string | null;
226
227
  ip_address: string;
227
228
  revoked_at: Date | null;
228
229
  expires_at: Date;
229
- browser_id: string | null;
230
230
  }[];
231
231
  } & {
232
232
  id: number;
@@ -268,10 +268,10 @@ export declare class UserService {
268
268
  created_at: Date;
269
269
  updated_at: Date;
270
270
  hash: string;
271
+ browser_id: string | null;
271
272
  ip_address: string;
272
273
  revoked_at: Date | null;
273
274
  expires_at: Date;
274
- browser_id: string | null;
275
275
  }[];
276
276
  } & {
277
277
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/core",
3
- "version": "0.0.376",
3
+ "version": "0.0.378",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,12 +41,12 @@
41
41
  "speakeasy": "^2.0.0",
42
42
  "ua-parser-js": "^2.0.10",
43
43
  "uuid": "^11.1.0",
44
+ "@hed-hog/api-mail": "0.0.9",
45
+ "@hed-hog/api-types": "0.0.1",
44
46
  "@hed-hog/api": "0.0.8",
47
+ "@hed-hog/api-prisma": "0.0.6",
45
48
  "@hed-hog/api-locale": "0.0.14",
46
- "@hed-hog/api-types": "0.0.1",
47
- "@hed-hog/api-mail": "0.0.9",
48
- "@hed-hog/api-pagination": "0.0.7",
49
- "@hed-hog/api-prisma": "0.0.6"
49
+ "@hed-hog/api-pagination": "0.0.7"
50
50
  },
51
51
  "exports": {
52
52
  ".": {