@mrxsys/mrx-core 2.11.0-4-and-276-20251029 → 2.11.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.
Files changed (119) hide show
  1. package/dist/{chunk-0d0zd2yg.js → chunk-037vwvd4.js} +2 -2
  2. package/dist/{chunk-jksb9ers.js → chunk-10w8mg8e.js} +1 -1
  3. package/dist/{chunk-dre2fgj0.js → chunk-2z8amjqt.js} +1 -1
  4. package/dist/{chunk-p14h6jfs.js → chunk-4g0x6g4j.js} +2 -2
  5. package/dist/chunk-4t7sy5qt.js +10 -0
  6. package/dist/chunk-642xajvx.js +59 -0
  7. package/dist/chunk-6hs00zfd.js +13 -0
  8. package/dist/{chunk-afyz8rg5.js → chunk-7j86h1nd.js} +14 -9
  9. package/dist/chunk-8pw0syzf.js +9 -0
  10. package/dist/{chunk-eeb7yskp.js → chunk-awphtyzp.js} +4 -4
  11. package/dist/{chunk-8tffnbpn.js → chunk-ayyrgqyv.js} +1 -1
  12. package/dist/{chunk-12qzn7jw.js → chunk-dmsev7vs.js} +1 -1
  13. package/dist/{chunk-gtn1kn0z.js → chunk-hv6g22kf.js} +4 -4
  14. package/dist/chunk-hwfebx4x.js +11 -0
  15. package/dist/{chunk-e30paw8a.js → chunk-j7dyc5ks.js} +5 -5
  16. package/dist/chunk-jz3wd472.js +23 -0
  17. package/dist/{chunk-fs3wm3p4.js → chunk-r7yr9p57.js} +6 -6
  18. package/dist/{chunk-afd82epa.js → chunk-sbpj7f3p.js} +13 -13
  19. package/dist/{chunk-pjv1ekwr.js → chunk-tmvj28bq.js} +1 -1
  20. package/dist/chunk-y5dtkmnp.js +8 -0
  21. package/dist/chunk-yrt0ffvf.js +9 -0
  22. package/dist/{chunk-441xs5k1.js → chunk-yzgdqb02.js} +6 -6
  23. package/dist/chunk-zn2nm5gg.js +9 -0
  24. package/dist/{chunk-7t524zqh.js → chunk-zv4ta4fb.js} +3 -3
  25. package/dist/errors/{base-error.d.ts → app-error.d.ts} +2 -1
  26. package/dist/errors/http-error.d.ts +2 -2
  27. package/dist/errors/index.d.ts +2 -1
  28. package/dist/errors/index.js +6 -4
  29. package/dist/errors/internal-error.d.ts +4 -0
  30. package/dist/modules/data/data.d.ts +5 -5
  31. package/dist/modules/data/enums/data-error-keys.d.ts +1 -1
  32. package/dist/modules/data/enums/index.js +1 -1
  33. package/dist/modules/data/index.js +3 -3
  34. package/dist/modules/database/enums/database-error-keys.d.ts +26 -26
  35. package/dist/modules/database/enums/index.js +1 -1
  36. package/dist/modules/database/enums/mssql-error-code.d.ts +23 -23
  37. package/dist/modules/database/index.js +5 -5
  38. package/dist/modules/database/mssql.d.ts +9 -9
  39. package/dist/modules/elysia/cache/index.js +3 -3
  40. package/dist/modules/elysia/crud/index.js +13 -13
  41. package/dist/modules/elysia/crud/operations/count.d.ts +20 -4
  42. package/dist/modules/elysia/crud/operations/delete.d.ts +25 -9
  43. package/dist/modules/elysia/crud/operations/deleteOne.d.ts +25 -9
  44. package/dist/modules/elysia/crud/operations/find.d.ts +25 -9
  45. package/dist/modules/elysia/crud/operations/findOne.d.ts +25 -9
  46. package/dist/modules/elysia/crud/operations/index.js +10 -10
  47. package/dist/modules/elysia/crud/operations/insert.d.ts +25 -9
  48. package/dist/modules/elysia/crud/operations/update.d.ts +25 -19
  49. package/dist/modules/elysia/crud/operations/updateOne.d.ts +25 -19
  50. package/dist/modules/elysia/crud/types/response-200-schema.d.ts +2 -2
  51. package/dist/modules/elysia/crud/utils/create-insert-schema.d.ts +3 -8
  52. package/dist/modules/elysia/crud/utils/index.js +4 -4
  53. package/dist/modules/elysia/db-resolver/enums/db-resolver-error-keys.d.ts +1 -1
  54. package/dist/modules/elysia/db-resolver/enums/index.js +1 -1
  55. package/dist/modules/elysia/db-resolver/index.js +9 -9
  56. package/dist/modules/elysia/error/enums/error.keys.d.ts +4 -4
  57. package/dist/modules/elysia/error/enums/index.js +1 -1
  58. package/dist/modules/elysia/error/error.d.ts +47 -1
  59. package/dist/modules/elysia/error/index.d.ts +1 -1
  60. package/dist/modules/elysia/error/index.js +47 -38
  61. package/dist/modules/elysia/microservice/enums/index.js +1 -1
  62. package/dist/modules/elysia/microservice/enums/microservice-success-keys.d.ts +2 -2
  63. package/dist/modules/elysia/microservice/index.js +1 -1
  64. package/dist/modules/elysia/rate-limit/enums/index.js +1 -1
  65. package/dist/modules/elysia/rate-limit/enums/rate-limit-error-keys.d.ts +1 -1
  66. package/dist/modules/elysia/rate-limit/index.js +5 -5
  67. package/dist/modules/jwt/enums/index.js +2 -2
  68. package/dist/modules/jwt/enums/jwt-error-keys.d.ts +3 -3
  69. package/dist/modules/jwt/enums/parse-human-time-to-seconds-error-keys.d.ts +1 -1
  70. package/dist/modules/jwt/index.js +10 -12
  71. package/dist/modules/jwt/utils/index.js +3 -3
  72. package/dist/modules/jwt/utils/parse-human-time-to-seconds.d.ts +1 -1
  73. package/dist/modules/kv-store/bun-redis/index.js +7 -7
  74. package/dist/modules/kv-store/enums/index.js +1 -1
  75. package/dist/modules/kv-store/enums/kv-store-error-keys.d.ts +3 -3
  76. package/dist/modules/kv-store/ioredis/index.js +7 -7
  77. package/dist/modules/kv-store/memory/index.js +3 -3
  78. package/dist/modules/logger/enums/index.js +1 -1
  79. package/dist/modules/logger/enums/logger-error-keys.d.ts +7 -7
  80. package/dist/modules/logger/events/logger-events.d.ts +4 -4
  81. package/dist/modules/logger/index.js +86 -11
  82. package/dist/modules/logger/logger.d.ts +1 -1
  83. package/dist/modules/logger/sinks/console-logger.d.ts +1 -1
  84. package/dist/modules/logger/sinks/file-logger/enums/file-logger-error-keys.d.ts +1 -1
  85. package/dist/modules/logger/sinks/index.js +7 -7
  86. package/dist/modules/logger/worker-logger.d.ts +1 -0
  87. package/dist/modules/mailer/enums/index.js +1 -1
  88. package/dist/modules/mailer/enums/mailer-error-keys.d.ts +3 -3
  89. package/dist/modules/mailer/index.js +6 -6
  90. package/dist/modules/mailer/smtp.d.ts +4 -4
  91. package/dist/modules/repository/index.js +4 -4
  92. package/dist/modules/repository/repository.d.ts +9 -9
  93. package/dist/modules/singleton-manager/enums/index.js +1 -1
  94. package/dist/modules/singleton-manager/enums/singleton-manager-error-keys.d.ts +2 -2
  95. package/dist/modules/singleton-manager/index.js +3 -3
  96. package/dist/modules/singleton-manager/singleton-manager.d.ts +3 -3
  97. package/dist/modules/totp/enums/index.js +1 -1
  98. package/dist/modules/totp/enums/totp-error-keys.d.ts +5 -5
  99. package/dist/modules/totp/index.js +6 -6
  100. package/dist/modules/totp/otp-auth-uri.d.ts +1 -1
  101. package/dist/modules/totp/utils/base32.d.ts +1 -1
  102. package/dist/modules/totp/utils/generate-secret-bytes.d.ts +1 -1
  103. package/dist/modules/totp/utils/index.js +5 -5
  104. package/dist/shared/utils/env.d.ts +1 -1
  105. package/dist/shared/utils/index.js +3 -3
  106. package/package.json +16 -17
  107. package/CHANGELOG.md +0 -407
  108. package/dist/chunk-4v86f7gp.js +0 -59
  109. package/dist/chunk-6w9ja96e.js +0 -9
  110. package/dist/chunk-9cgzhc50.js +0 -15
  111. package/dist/chunk-9d3zvgp6.js +0 -9
  112. package/dist/chunk-9r5anep5.js +0 -11
  113. package/dist/chunk-rz5p4j3p.js +0 -13
  114. package/dist/chunk-spnh9dzk.js +0 -10
  115. package/dist/chunk-xhhj1gvj.js +0 -9
  116. package/dist/chunk-z0ct35ft.js +0 -8
  117. package/dist/errors/utils/index.d.ts +0 -1
  118. package/dist/errors/utils/index.js +0 -16
  119. package/dist/errors/utils/is-nowarajs-error.ts.d.ts +0 -4
@@ -9,6 +9,9 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
9
9
  derive: {};
10
10
  resolve: {};
11
11
  }, {
12
+ typebox: {};
13
+ error: {};
14
+ } & {
12
15
  typebox: {
13
16
  readonly dbResolverHeader: TObject<{
14
17
  'database-using': import("@sinclair/typebox").TString;
@@ -18,10 +21,17 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
18
21
  }, {
19
22
  schema: {};
20
23
  standaloneSchema: {};
21
- macro: {
22
- readonly injectDynamicDB?: Omit<MSSQLDatabaseOptions, "databaseName">;
23
- readonly injectStaticDB?: string;
24
- };
24
+ macro: {};
25
+ macroFn: {};
26
+ parser: {};
27
+ response: {};
28
+ } & {
29
+ schema: {};
30
+ standaloneSchema: {};
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
25
35
  macroFn: {
26
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
27
37
  readonly headers: "dbResolverHeader";
@@ -190,7 +200,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
190
200
  response: {
191
201
  200: {
192
202
  message: "mrx-core.crud.success.find_one_response";
193
- content: unknown[];
203
+ content: Required<Record<string, unknown>>[];
194
204
  };
195
205
  };
196
206
  };
@@ -202,7 +212,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
202
212
  response: {
203
213
  200: {
204
214
  message: "mrx-core.crud.success.find_one_response";
205
- content: unknown[];
215
+ content: Required<Record<string, unknown>>[];
206
216
  };
207
217
  };
208
218
  };
@@ -214,7 +224,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
214
224
  response: {
215
225
  200: {
216
226
  message: "mrx-core.crud.success.find_one_response";
217
- content: unknown[];
227
+ content: Required<Record<string, unknown>>[];
218
228
  };
219
229
  };
220
230
  };
@@ -226,7 +236,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
226
236
  response: {
227
237
  200: {
228
238
  message: "mrx-core.crud.success.find_one_response";
229
- content: unknown[];
239
+ content: Required<Record<string, unknown>>[];
230
240
  };
231
241
  };
232
242
  };
@@ -238,7 +248,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
238
248
  response: {
239
249
  200: {
240
250
  message: "mrx-core.crud.success.find_one_response";
241
- content: unknown[];
251
+ content: Required<Record<string, unknown>>[];
242
252
  };
243
253
  };
244
254
  };
@@ -255,4 +265,10 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
255
265
  schema: {};
256
266
  standaloneSchema: {};
257
267
  response: {};
268
+ } & {
269
+ derive: {};
270
+ resolve: {};
271
+ schema: {};
272
+ standaloneSchema: {};
273
+ response: {};
258
274
  }>;
@@ -8,20 +8,20 @@ import {
8
8
  insert,
9
9
  update,
10
10
  updateOne
11
- } from "../../../../chunk-pjv1ekwr.js";
12
- import"../../../../chunk-441xs5k1.js";
13
- import"../../../../chunk-fs3wm3p4.js";
14
- import"../../../../chunk-z0ct35ft.js";
15
- import"../../../../chunk-8tffnbpn.js";
11
+ } from "../../../../chunk-tmvj28bq.js";
12
+ import"../../../../chunk-yzgdqb02.js";
13
+ import"../../../../chunk-r7yr9p57.js";
14
+ import"../../../../chunk-y5dtkmnp.js";
15
+ import"../../../../chunk-ayyrgqyv.js";
16
16
  import"../../../../chunk-w7h898m3.js";
17
- import"../../../../chunk-afd82epa.js";
18
- import"../../../../chunk-afyz8rg5.js";
17
+ import"../../../../chunk-sbpj7f3p.js";
18
+ import"../../../../chunk-7j86h1nd.js";
19
19
  import"../../../../chunk-grfyngq0.js";
20
20
  import"../../../../chunk-mvrxngm7.js";
21
- import"../../../../chunk-4v86f7gp.js";
22
- import"../../../../chunk-7t524zqh.js";
21
+ import"../../../../chunk-zv4ta4fb.js";
23
22
  import"../../../../chunk-sqts8vyk.js";
24
- import"../../../../chunk-9cgzhc50.js";
23
+ import"../../../../chunk-jz3wd472.js";
24
+ import"../../../../chunk-642xajvx.js";
25
25
  export {
26
26
  updateOne,
27
27
  update,
@@ -9,6 +9,9 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
9
9
  derive: {};
10
10
  resolve: {};
11
11
  }, {
12
+ typebox: {};
13
+ error: {};
14
+ } & {
12
15
  typebox: {
13
16
  readonly dbResolverHeader: TObject<{
14
17
  'database-using': import("@sinclair/typebox").TString;
@@ -18,10 +21,17 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
18
21
  }, {
19
22
  schema: {};
20
23
  standaloneSchema: {};
21
- macro: {
22
- readonly injectDynamicDB?: Omit<MSSQLDatabaseOptions, "databaseName">;
23
- readonly injectStaticDB?: string;
24
- };
24
+ macro: {};
25
+ macroFn: {};
26
+ parser: {};
27
+ response: {};
28
+ } & {
29
+ schema: {};
30
+ standaloneSchema: {};
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
25
35
  macroFn: {
26
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
27
37
  readonly headers: "dbResolverHeader";
@@ -190,7 +200,7 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
190
200
  response: {
191
201
  200: {
192
202
  message: "mrx-core.crud.success.insert_response";
193
- content: Record<string, unknown>[];
203
+ content: Required<Record<string, unknown>>[];
194
204
  };
195
205
  };
196
206
  };
@@ -202,7 +212,7 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
202
212
  response: {
203
213
  200: {
204
214
  message: "mrx-core.crud.success.insert_response";
205
- content: Record<string, unknown>[];
215
+ content: Required<Record<string, unknown>>[];
206
216
  };
207
217
  };
208
218
  };
@@ -214,7 +224,7 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
214
224
  response: {
215
225
  200: {
216
226
  message: "mrx-core.crud.success.insert_response";
217
- content: Record<string, unknown>[];
227
+ content: Required<Record<string, unknown>>[];
218
228
  };
219
229
  };
220
230
  };
@@ -226,7 +236,7 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
226
236
  response: {
227
237
  200: {
228
238
  message: "mrx-core.crud.success.insert_response";
229
- content: Record<string, unknown>[];
239
+ content: Required<Record<string, unknown>>[];
230
240
  };
231
241
  };
232
242
  };
@@ -238,7 +248,7 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
238
248
  response: {
239
249
  200: {
240
250
  message: "mrx-core.crud.success.insert_response";
241
- content: Record<string, unknown>[];
251
+ content: Required<Record<string, unknown>>[];
242
252
  };
243
253
  };
244
254
  };
@@ -255,4 +265,10 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
255
265
  schema: {};
256
266
  standaloneSchema: {};
257
267
  response: {};
268
+ } & {
269
+ derive: {};
270
+ resolve: {};
271
+ schema: {};
272
+ standaloneSchema: {};
273
+ response: {};
258
274
  }>;
@@ -9,6 +9,9 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
9
9
  derive: {};
10
10
  resolve: {};
11
11
  }, {
12
+ typebox: {};
13
+ error: {};
14
+ } & {
12
15
  typebox: {
13
16
  readonly dbResolverHeader: TObject<{
14
17
  'database-using': import("@sinclair/typebox").TString;
@@ -18,10 +21,17 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
18
21
  }, {
19
22
  schema: {};
20
23
  standaloneSchema: {};
21
- macro: {
22
- readonly injectDynamicDB?: Omit<MSSQLDatabaseOptions, "databaseName">;
23
- readonly injectStaticDB?: string;
24
- };
24
+ macro: {};
25
+ macroFn: {};
26
+ parser: {};
27
+ response: {};
28
+ } & {
29
+ schema: {};
30
+ standaloneSchema: {};
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
25
35
  macroFn: {
26
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
27
37
  readonly headers: "dbResolverHeader";
@@ -190,9 +200,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
190
200
  response: {
191
201
  200: {
192
202
  message: "mrx-core.crud.success.update_response";
193
- content: {
194
- [x: string]: /*elided*/ any;
195
- }[];
203
+ content: Required<Record<string, unknown>>[];
196
204
  };
197
205
  };
198
206
  };
@@ -204,9 +212,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
204
212
  response: {
205
213
  200: {
206
214
  message: "mrx-core.crud.success.update_response";
207
- content: {
208
- [x: string]: /*elided*/ any;
209
- }[];
215
+ content: Required<Record<string, unknown>>[];
210
216
  };
211
217
  };
212
218
  };
@@ -218,9 +224,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
218
224
  response: {
219
225
  200: {
220
226
  message: "mrx-core.crud.success.update_response";
221
- content: {
222
- [x: string]: /*elided*/ any;
223
- }[];
227
+ content: Required<Record<string, unknown>>[];
224
228
  };
225
229
  };
226
230
  };
@@ -232,9 +236,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
232
236
  response: {
233
237
  200: {
234
238
  message: "mrx-core.crud.success.update_response";
235
- content: {
236
- [x: string]: /*elided*/ any;
237
- }[];
239
+ content: Required<Record<string, unknown>>[];
238
240
  };
239
241
  };
240
242
  };
@@ -246,9 +248,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
246
248
  response: {
247
249
  200: {
248
250
  message: "mrx-core.crud.success.update_response";
249
- content: {
250
- [x: string]: /*elided*/ any;
251
- }[];
251
+ content: Required<Record<string, unknown>>[];
252
252
  };
253
253
  };
254
254
  };
@@ -265,4 +265,10 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
265
265
  schema: {};
266
266
  standaloneSchema: {};
267
267
  response: {};
268
+ } & {
269
+ derive: {};
270
+ resolve: {};
271
+ schema: {};
272
+ standaloneSchema: {};
273
+ response: {};
268
274
  }>;
@@ -9,6 +9,9 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
9
9
  derive: {};
10
10
  resolve: {};
11
11
  }, {
12
+ typebox: {};
13
+ error: {};
14
+ } & {
12
15
  typebox: {
13
16
  readonly dbResolverHeader: TObject<{
14
17
  'database-using': import("@sinclair/typebox").TString;
@@ -18,10 +21,17 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
18
21
  }, {
19
22
  schema: {};
20
23
  standaloneSchema: {};
21
- macro: {
22
- readonly injectDynamicDB?: Omit<MSSQLDatabaseOptions, "databaseName">;
23
- readonly injectStaticDB?: string;
24
- };
24
+ macro: {};
25
+ macroFn: {};
26
+ parser: {};
27
+ response: {};
28
+ } & {
29
+ schema: {};
30
+ standaloneSchema: {};
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
25
35
  macroFn: {
26
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
27
37
  readonly headers: "dbResolverHeader";
@@ -190,9 +200,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
190
200
  response: {
191
201
  200: {
192
202
  message: "mrx-core.crud.success.update_one_response";
193
- content: {
194
- [x: string]: /*elided*/ any;
195
- }[];
203
+ content: Required<Record<string, unknown>>[];
196
204
  };
197
205
  };
198
206
  };
@@ -204,9 +212,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
204
212
  response: {
205
213
  200: {
206
214
  message: "mrx-core.crud.success.update_one_response";
207
- content: {
208
- [x: string]: /*elided*/ any;
209
- }[];
215
+ content: Required<Record<string, unknown>>[];
210
216
  };
211
217
  };
212
218
  };
@@ -218,9 +224,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
218
224
  response: {
219
225
  200: {
220
226
  message: "mrx-core.crud.success.update_one_response";
221
- content: {
222
- [x: string]: /*elided*/ any;
223
- }[];
227
+ content: Required<Record<string, unknown>>[];
224
228
  };
225
229
  };
226
230
  };
@@ -232,9 +236,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
232
236
  response: {
233
237
  200: {
234
238
  message: "mrx-core.crud.success.update_one_response";
235
- content: {
236
- [x: string]: /*elided*/ any;
237
- }[];
239
+ content: Required<Record<string, unknown>>[];
238
240
  };
239
241
  };
240
242
  };
@@ -246,9 +248,7 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
246
248
  response: {
247
249
  200: {
248
250
  message: "mrx-core.crud.success.update_one_response";
249
- content: {
250
- [x: string]: /*elided*/ any;
251
- }[];
251
+ content: Required<Record<string, unknown>>[];
252
252
  };
253
253
  };
254
254
  };
@@ -265,4 +265,10 @@ export declare const updateOne: <const TDatabase extends Omit<MSSQLDatabaseOptio
265
265
  schema: {};
266
266
  standaloneSchema: {};
267
267
  response: {};
268
+ } & {
269
+ derive: {};
270
+ resolve: {};
271
+ schema: {};
272
+ standaloneSchema: {};
273
+ response: {};
268
274
  }>;
@@ -1,8 +1,8 @@
1
- import type { Static, TArray, TNull, TObject, TPartial, TString, TUnion } from '@sinclair/typebox/type';
1
+ import type { Static, TArray, TNull, TObject, TRequired, TString, TUnion } from '@sinclair/typebox/type';
2
2
  import type { TFlatten } from '../../../../shared/types/tflatten';
3
3
  export type Response200Schema<TSourceResponseSchema extends TObject> = TObject<{
4
4
  message: TString;
5
- content: TArray<TPartial<TObject<{
5
+ content: TArray<TRequired<TObject<{
6
6
  [K in keyof Static<TSourceResponseSchema>]: TFlatten<TUnion<[
7
7
  TSourceResponseSchema['properties'][K],
8
8
  TNull
@@ -1,8 +1,3 @@
1
- import type { TArray, TObject, TOptional, TUnion } from '@sinclair/typebox/type';
2
- import type { SelectedFieldsSchema } from '../../../../modules/elysia/crud/types/selected-field-schema';
3
- export declare const createInsertSchema: <TSourceInsertSchema extends TObject>(schema: TSourceInsertSchema) => TObject<{
4
- queryOptions: TOptional<TObject<{
5
- selectedFields: SelectedFieldsSchema<TSourceInsertSchema>;
6
- }>>;
7
- data: TUnion<[TSourceInsertSchema, TArray<TSourceInsertSchema>]>;
8
- }>;
1
+ import type { TObject } from '@sinclair/typebox/type';
2
+ import type { InsertSchema } from '../types';
3
+ export declare const createInsertSchema: <TSourceInsertSchema extends TObject>(schema: TSourceInsertSchema) => InsertSchema<TSourceInsertSchema>;
@@ -16,11 +16,11 @@ import {
16
16
  createUpdateOneSchema,
17
17
  createUpdateSchema,
18
18
  isDateFromElysiaTypeBox
19
- } from "../../../../chunk-p14h6jfs.js";
19
+ } from "../../../../chunk-4g0x6g4j.js";
20
20
  import"../../../../chunk-9dzsj7f2.js";
21
- import"../../../../chunk-gtn1kn0z.js";
22
- import"../../../../chunk-jksb9ers.js";
23
- import"../../../../chunk-9cgzhc50.js";
21
+ import"../../../../chunk-hv6g22kf.js";
22
+ import"../../../../chunk-10w8mg8e.js";
23
+ import"../../../../chunk-jz3wd472.js";
24
24
  export {
25
25
  isDateFromElysiaTypeBox,
26
26
  createUpdateSchema,
@@ -1,3 +1,3 @@
1
1
  export declare const DB_RESOLVER_ERROR_KEYS: {
2
- readonly DB_RESOLVER_STATIC_DB_NOT_FOUND: "mrx-core.db-resolver.error.static_db_not_found";
2
+ readonly DB_RESOLVER_STATIC_DB_NOT_FOUND: "mrx.mrx-core.db-resolver.error.static_db_not_found";
3
3
  };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  DB_RESOLVER_ERROR_KEYS
4
- } from "../../../../chunk-8tffnbpn.js";
4
+ } from "../../../../chunk-ayyrgqyv.js";
5
5
  export {
6
6
  DB_RESOLVER_ERROR_KEYS
7
7
  };
@@ -1,18 +1,18 @@
1
1
  // @bun
2
2
  import {
3
3
  dbResolver
4
- } from "../../../chunk-441xs5k1.js";
5
- import"../../../chunk-fs3wm3p4.js";
6
- import"../../../chunk-z0ct35ft.js";
7
- import"../../../chunk-8tffnbpn.js";
8
- import"../../../chunk-afd82epa.js";
9
- import"../../../chunk-afyz8rg5.js";
4
+ } from "../../../chunk-yzgdqb02.js";
5
+ import"../../../chunk-r7yr9p57.js";
6
+ import"../../../chunk-y5dtkmnp.js";
7
+ import"../../../chunk-ayyrgqyv.js";
8
+ import"../../../chunk-sbpj7f3p.js";
9
+ import"../../../chunk-7j86h1nd.js";
10
10
  import"../../../chunk-grfyngq0.js";
11
11
  import"../../../chunk-mvrxngm7.js";
12
- import"../../../chunk-4v86f7gp.js";
13
- import"../../../chunk-7t524zqh.js";
12
+ import"../../../chunk-zv4ta4fb.js";
14
13
  import"../../../chunk-sqts8vyk.js";
15
- import"../../../chunk-9cgzhc50.js";
14
+ import"../../../chunk-jz3wd472.js";
15
+ import"../../../chunk-642xajvx.js";
16
16
  export {
17
17
  dbResolver
18
18
  };
@@ -1,6 +1,6 @@
1
1
  export declare const ERROR_KEYS: {
2
- readonly CORE_ERROR_VALIDATION: "mrx-core.error.validation";
3
- readonly CORE_ERROR_NOT_FOUND: "mrx-core.error.not_found";
4
- readonly CORE_ERROR_PARSE: "mrx-core.error.parse";
5
- readonly CORE_ERROR_INTERNAL_SERVER_ERROR: "mrx-core.error.internal_server_error";
2
+ readonly VALIDATION: "mrx.mrx-core.error.validation";
3
+ readonly NOT_FOUND: "mrx.mrx-core.error.not_found";
4
+ readonly PARSE: "mrx.mrx-core.error.parse";
5
+ readonly INTERNAL_SERVER_ERROR: "mrx.mrx-core.error.internal_server_error";
6
6
  };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ERROR_KEYS
4
- } from "../../../../chunk-spnh9dzk.js";
4
+ } from "../../../../chunk-4t7sy5qt.js";
5
5
  export {
6
6
  ERROR_KEYS
7
7
  };
@@ -1,5 +1,51 @@
1
1
  import { Elysia } from 'elysia';
2
+ import { InternalError } from '../../../errors/internal-error';
3
+ import { HttpError } from '../../../errors/http-error';
2
4
  /**
3
5
  * The `errorPlugin` provides an error handling system for Elysia applications.
4
6
  */
5
- export declare const errorManager: Elysia;
7
+ export declare const error: Elysia<"", {
8
+ decorator: {};
9
+ store: {};
10
+ derive: {};
11
+ resolve: {};
12
+ }, {
13
+ typebox: {};
14
+ error: {
15
+ readonly InternalError: InternalError<any>;
16
+ readonly HttpError: HttpError<any>;
17
+ };
18
+ }, {
19
+ schema: {};
20
+ standaloneSchema: {};
21
+ macro: {};
22
+ macroFn: {};
23
+ parser: {};
24
+ response: {
25
+ 200: {
26
+ message: string;
27
+ content: any;
28
+ } | {
29
+ message: "mrx.mrx-core.error.not_found";
30
+ content?: never;
31
+ } | {
32
+ message: "mrx.mrx-core.error.parse";
33
+ content?: never;
34
+ } | {
35
+ message: "mrx.mrx-core.error.internal_server_error";
36
+ content?: never;
37
+ };
38
+ };
39
+ }, {}, {
40
+ derive: {};
41
+ resolve: {};
42
+ schema: {};
43
+ standaloneSchema: {};
44
+ response: {};
45
+ }, {
46
+ derive: {};
47
+ resolve: {};
48
+ schema: {};
49
+ standaloneSchema: {};
50
+ response: {};
51
+ }>;
@@ -1 +1 @@
1
- export { errorManager } from './error';
1
+ export { error } from './error';