@hed-hog/core 0.0.306 → 0.0.309

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.
@@ -65,10 +65,10 @@ export declare class AuthController {
65
65
  created_at: Date;
66
66
  updated_at: Date;
67
67
  ip_address: string;
68
+ user_agent: string;
68
69
  user_id: number;
69
70
  expires_at: Date;
70
71
  revoked_at: Date | null;
71
- user_agent: string;
72
72
  }[];
73
73
  name: string;
74
74
  id: number;
@@ -177,10 +177,10 @@ export declare class AuthController {
177
177
  created_at: Date;
178
178
  updated_at: Date;
179
179
  ip_address: string;
180
+ user_agent: string;
180
181
  user_id: number;
181
182
  expires_at: Date;
182
183
  revoked_at: Date | null;
183
- user_agent: string;
184
184
  };
185
185
  }>;
186
186
  }
@@ -27,10 +27,10 @@ export declare class AuthService {
27
27
  created_at: Date;
28
28
  updated_at: Date;
29
29
  ip_address: string;
30
+ user_agent: string;
30
31
  user_id: number;
31
32
  expires_at: Date;
32
33
  revoked_at: Date | null;
33
- user_agent: string;
34
34
  };
35
35
  }>;
36
36
  private hasPendingPasswordReset;
@@ -127,10 +127,10 @@ export declare class AuthService {
127
127
  created_at: Date;
128
128
  updated_at: Date;
129
129
  ip_address: string;
130
+ user_agent: string;
130
131
  user_id: number;
131
132
  expires_at: Date;
132
133
  revoked_at: Date | null;
133
- user_agent: string;
134
134
  }[];
135
135
  name: string;
136
136
  id: number;
@@ -151,10 +151,10 @@ export declare class AuthService {
151
151
  created_at: Date;
152
152
  updated_at: Date;
153
153
  ip_address: string;
154
+ user_agent: string;
154
155
  user_id: number;
155
156
  expires_at: Date;
156
157
  revoked_at: Date | null;
157
- user_agent: string;
158
158
  };
159
159
  }>;
160
160
  forgotPassword(locale: string, { email }: ForgetDTO): Promise<{
@@ -172,10 +172,10 @@ export declare class AuthService {
172
172
  created_at: Date;
173
173
  updated_at: Date;
174
174
  ip_address: string;
175
+ user_agent: string;
175
176
  user_id: number;
176
177
  expires_at: Date;
177
178
  revoked_at: Date | null;
178
- user_agent: string;
179
179
  };
180
180
  }>;
181
181
  verifyMfaCode(locale: string, mfaToken: string, code: string, ipAddress: string, userAgent: string, methodType?: 'totp' | 'email' | 'recovery'): Promise<{
@@ -187,10 +187,10 @@ export declare class AuthService {
187
187
  created_at: Date;
188
188
  updated_at: Date;
189
189
  ip_address: string;
190
+ user_agent: string;
190
191
  user_id: number;
191
192
  expires_at: Date;
192
193
  revoked_at: Date | null;
193
- user_agent: string;
194
194
  };
195
195
  requiresPasswordReset: boolean;
196
196
  }>;
@@ -203,10 +203,10 @@ export declare class AuthService {
203
203
  created_at: Date;
204
204
  updated_at: Date;
205
205
  ip_address: string;
206
+ user_agent: string;
206
207
  user_id: number;
207
208
  expires_at: Date;
208
209
  revoked_at: Date | null;
209
- user_agent: string;
210
210
  };
211
211
  requiresPasswordReset: boolean;
212
212
  }>;
@@ -224,10 +224,10 @@ export declare class AuthService {
224
224
  created_at: Date;
225
225
  updated_at: Date;
226
226
  ip_address: string;
227
+ user_agent: string;
227
228
  user_id: number;
228
229
  expires_at: Date;
229
230
  revoked_at: Date | null;
230
- user_agent: string;
231
231
  };
232
232
  requiresPasswordReset: boolean;
233
233
  }>;
@@ -24,9 +24,9 @@ export declare class ChallengeService {
24
24
  hash: string;
25
25
  created_at: Date;
26
26
  updated_at: Date;
27
+ attempts: number;
27
28
  expires_at: Date;
28
29
  verified_at: Date | null;
29
- attempts: number;
30
30
  user_mfa_id: number;
31
31
  }>;
32
32
  verifyCodePassword(locale: string, code: string): Promise<{
@@ -57,9 +57,9 @@ export declare class ChallengeService {
57
57
  hash: string;
58
58
  created_at: Date;
59
59
  updated_at: Date;
60
+ attempts: number;
60
61
  expires_at: Date;
61
62
  verified_at: Date | null;
62
- attempts: number;
63
63
  user_mfa_id: number;
64
64
  }>;
65
65
  verifyCode(locale: string, userId: number, code: string, providedHash: string, name?: string, email?: string): Promise<{
@@ -41,8 +41,8 @@ export declare class MailController {
41
41
  id: number;
42
42
  created_at: Date;
43
43
  updated_at: Date;
44
- locale_id: number;
45
44
  subject: string;
45
+ locale_id: number;
46
46
  mail_id: number;
47
47
  }[];
48
48
  mail_var: {
@@ -68,8 +68,8 @@ export declare class MailController {
68
68
  id: number;
69
69
  created_at: Date;
70
70
  updated_at: Date;
71
- locale_id: number;
72
71
  subject: string;
72
+ locale_id: number;
73
73
  mail_id: number;
74
74
  }[];
75
75
  mail_var: {
@@ -63,8 +63,8 @@ export declare class MailService implements OnModuleInit {
63
63
  id: number;
64
64
  created_at: Date;
65
65
  updated_at: Date;
66
- locale_id: number;
67
66
  subject: string;
67
+ locale_id: number;
68
68
  mail_id: number;
69
69
  }[];
70
70
  mail_var: {
@@ -89,8 +89,8 @@ export declare class MailService implements OnModuleInit {
89
89
  id: number;
90
90
  created_at: Date;
91
91
  updated_at: Date;
92
- locale_id: number;
93
92
  subject: string;
93
+ locale_id: number;
94
94
  mail_id: number;
95
95
  }[];
96
96
  mail_var: {
@@ -35,10 +35,10 @@ export declare class SessionController {
35
35
  created_at: Date;
36
36
  updated_at: Date;
37
37
  ip_address: string;
38
+ user_agent: string;
38
39
  user_id: number;
39
40
  expires_at: Date;
40
41
  revoked_at: Date | null;
41
- user_agent: string;
42
42
  }>;
43
43
  }
44
44
  //# sourceMappingURL=session.controller.d.ts.map
@@ -23,10 +23,10 @@ export declare class SessionService {
23
23
  created_at: Date;
24
24
  updated_at: Date;
25
25
  ip_address: string;
26
+ user_agent: string;
26
27
  user_id: number;
27
28
  expires_at: Date;
28
29
  revoked_at: Date | null;
29
- user_agent: string;
30
30
  };
31
31
  }>;
32
32
  refresh(locale: string, refreshToken: string, ipAddress: string, userAgent: string): Promise<{
@@ -37,10 +37,10 @@ export declare class SessionService {
37
37
  created_at: Date;
38
38
  updated_at: Date;
39
39
  ip_address: string;
40
+ user_agent: string;
40
41
  user_id: number;
41
42
  expires_at: Date;
42
43
  revoked_at: Date | null;
43
- user_agent: string;
44
44
  };
45
45
  }>;
46
46
  deleteRefreshTokenCookie(res: any, refreshToken: string): Promise<{
@@ -71,10 +71,10 @@ export declare class SessionService {
71
71
  created_at: Date;
72
72
  updated_at: Date;
73
73
  ip_address: string;
74
+ user_agent: string;
74
75
  user_id: number;
75
76
  expires_at: Date;
76
77
  revoked_at: Date | null;
77
- user_agent: string;
78
78
  }>;
79
79
  /**
80
80
  * Enforce maximum concurrent sessions limit for a user.
@@ -67,10 +67,10 @@ export declare class UserController {
67
67
  created_at: Date;
68
68
  updated_at: Date;
69
69
  ip_address: string;
70
+ user_agent: string;
70
71
  user_id: number;
71
72
  expires_at: Date;
72
73
  revoked_at: Date | null;
73
- user_agent: string;
74
74
  }[];
75
75
  } & {
76
76
  name: string;
@@ -88,10 +88,10 @@ export declare class UserService {
88
88
  created_at: Date;
89
89
  updated_at: Date;
90
90
  ip_address: string;
91
+ user_agent: string;
91
92
  user_id: number;
92
93
  expires_at: Date;
93
94
  revoked_at: Date | null;
94
- user_agent: string;
95
95
  }[];
96
96
  } & {
97
97
  name: string;
@@ -188,10 +188,10 @@ export declare class UserService {
188
188
  created_at: Date;
189
189
  updated_at: Date;
190
190
  ip_address: string;
191
+ user_agent: string;
191
192
  user_id: number;
192
193
  expires_at: Date;
193
194
  revoked_at: Date | null;
194
- user_agent: string;
195
195
  }[];
196
196
  } & {
197
197
  name: string;
@@ -232,10 +232,10 @@ export declare class UserService {
232
232
  created_at: Date;
233
233
  updated_at: Date;
234
234
  ip_address: string;
235
+ user_agent: string;
235
236
  user_id: number;
236
237
  expires_at: Date;
237
238
  revoked_at: Date | null;
238
- user_agent: string;
239
239
  }[];
240
240
  } & {
241
241
  name: string;
@@ -434,6 +434,30 @@
434
434
  subgroup_id:
435
435
  where:
436
436
  slug: date-time-formats
437
+ - slug: currency
438
+ type: string
439
+ component: combobox
440
+ name:
441
+ en: Currency
442
+ pt: Moeda
443
+ description:
444
+ en: Default currency used to format monetary values throughout the system
445
+ pt: Moeda padrão usada para formatar valores monetários em todo o sistema
446
+ value: BRL
447
+ user_override: true
448
+ relations:
449
+ setting_list:
450
+ - value: BRL
451
+ order: 0
452
+ - value: USD
453
+ order: 1
454
+ - value: EUR
455
+ order: 2
456
+ - value: GBP
457
+ order: 3
458
+ subgroup_id:
459
+ where:
460
+ slug: currency-format
437
461
  - slug: oauth
438
462
  icon: brand-auth0
439
463
  name:
@@ -94,6 +94,14 @@
94
94
  en: Formatting rules for dates and times across the application
95
95
  pt: Regras de formatação para datas e horários em toda a aplicação
96
96
 
97
+ - slug: currency-format
98
+ name:
99
+ en: Currency
100
+ pt: Moeda
101
+ description:
102
+ en: Default currency for monetary value formatting
103
+ pt: Moeda padrão para formatação de valores monetários
104
+
97
105
  - slug: oauth-general
98
106
  name:
99
107
  en: OAuth General
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/core",
3
- "version": "0.0.306",
3
+ "version": "0.0.309",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -30,12 +30,12 @@
30
30
  "sharp": "^0.34.2",
31
31
  "speakeasy": "^2.0.0",
32
32
  "uuid": "^11.1.0",
33
- "@hed-hog/api-locale": "0.0.14",
34
- "@hed-hog/api-prisma": "0.0.6",
33
+ "@hed-hog/api-mail": "0.0.9",
35
34
  "@hed-hog/api": "0.0.6",
35
+ "@hed-hog/api-locale": "0.0.14",
36
+ "@hed-hog/api-types": "0.0.1",
36
37
  "@hed-hog/api-pagination": "0.0.7",
37
- "@hed-hog/api-mail": "0.0.9",
38
- "@hed-hog/api-types": "0.0.1"
38
+ "@hed-hog/api-prisma": "0.0.6"
39
39
  },
40
40
  "exports": {
41
41
  ".": {