@mrxsys/mrx-core 2.11.0-1-and-280-20251103 → 2.11.0-1-and-284-20251113

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 (116) 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-afd82epa.js → chunk-1yykvnyz.js} +13 -13
  4. package/dist/{chunk-dre2fgj0.js → chunk-2z8amjqt.js} +1 -1
  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-8pw0syzf.js +9 -0
  9. package/dist/{chunk-eeb7yskp.js → chunk-awphtyzp.js} +4 -4
  10. package/dist/{chunk-8tffnbpn.js → chunk-ayyrgqyv.js} +1 -1
  11. package/dist/{chunk-12qzn7jw.js → chunk-dmsev7vs.js} +1 -1
  12. package/dist/{chunk-afyz8rg5.js → chunk-dyntzdyn.js} +10 -9
  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-441xs5k1.js → chunk-pcfjfxbw.js} +6 -6
  18. package/dist/{chunk-fs3wm3p4.js → chunk-r7yr9p57.js} +6 -6
  19. package/dist/{chunk-pjv1ekwr.js → chunk-tg6wsheh.js} +1 -1
  20. package/dist/chunk-y5dtkmnp.js +8 -0
  21. package/dist/chunk-yrt0ffvf.js +9 -0
  22. package/dist/{chunk-p14h6jfs.js → chunk-yxedm2vx.js} +1 -1
  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/cache.d.ts +3 -151
  40. package/dist/modules/elysia/cache/index.js +3 -3
  41. package/dist/modules/elysia/crud/index.js +13 -13
  42. package/dist/modules/elysia/crud/operations/count.d.ts +4 -156
  43. package/dist/modules/elysia/crud/operations/delete.d.ts +4 -156
  44. package/dist/modules/elysia/crud/operations/deleteOne.d.ts +4 -156
  45. package/dist/modules/elysia/crud/operations/find.d.ts +9 -161
  46. package/dist/modules/elysia/crud/operations/findOne.d.ts +9 -161
  47. package/dist/modules/elysia/crud/operations/index.js +10 -10
  48. package/dist/modules/elysia/crud/operations/insert.d.ts +4 -156
  49. package/dist/modules/elysia/crud/operations/update.d.ts +9 -171
  50. package/dist/modules/elysia/crud/operations/updateOne.d.ts +9 -171
  51. package/dist/modules/elysia/crud/utils/index.js +4 -4
  52. package/dist/modules/elysia/db-resolver/db-resolver.d.ts +4 -156
  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 +5 -5
  59. package/dist/modules/elysia/error/index.js +14 -14
  60. package/dist/modules/elysia/microservice/enums/index.js +1 -1
  61. package/dist/modules/elysia/microservice/enums/microservice-success-keys.d.ts +2 -2
  62. package/dist/modules/elysia/microservice/index.js +1 -1
  63. package/dist/modules/elysia/rate-limit/enums/index.js +1 -1
  64. package/dist/modules/elysia/rate-limit/enums/rate-limit-error-keys.d.ts +1 -1
  65. package/dist/modules/elysia/rate-limit/index.js +5 -5
  66. package/dist/modules/elysia/rate-limit/rate-limit.d.ts +3 -292
  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 +7 -9
  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 +11 -10
  82. package/dist/modules/logger/logger.d.ts +1 -1
  83. package/dist/modules/logger/sinks/file-logger/enums/file-logger-error-keys.d.ts +1 -1
  84. package/dist/modules/logger/sinks/index.js +4 -4
  85. package/dist/modules/mailer/enums/index.js +1 -1
  86. package/dist/modules/mailer/enums/mailer-error-keys.d.ts +3 -3
  87. package/dist/modules/mailer/index.js +6 -6
  88. package/dist/modules/mailer/smtp.d.ts +4 -4
  89. package/dist/modules/repository/index.js +4 -4
  90. package/dist/modules/repository/repository.d.ts +6 -6
  91. package/dist/modules/singleton-manager/enums/index.js +1 -1
  92. package/dist/modules/singleton-manager/enums/singleton-manager-error-keys.d.ts +2 -2
  93. package/dist/modules/singleton-manager/index.js +3 -3
  94. package/dist/modules/singleton-manager/singleton-manager.d.ts +3 -3
  95. package/dist/modules/totp/enums/index.js +1 -1
  96. package/dist/modules/totp/enums/totp-error-keys.d.ts +5 -5
  97. package/dist/modules/totp/index.js +6 -6
  98. package/dist/modules/totp/otp-auth-uri.d.ts +1 -1
  99. package/dist/modules/totp/utils/base32.d.ts +1 -1
  100. package/dist/modules/totp/utils/generate-secret-bytes.d.ts +1 -1
  101. package/dist/modules/totp/utils/index.js +5 -5
  102. package/dist/shared/utils/env.d.ts +1 -1
  103. package/dist/shared/utils/index.js +3 -3
  104. package/package.json +13 -14
  105. package/dist/chunk-4v86f7gp.js +0 -59
  106. package/dist/chunk-6w9ja96e.js +0 -9
  107. package/dist/chunk-9cgzhc50.js +0 -15
  108. package/dist/chunk-9d3zvgp6.js +0 -9
  109. package/dist/chunk-9r5anep5.js +0 -11
  110. package/dist/chunk-rz5p4j3p.js +0 -13
  111. package/dist/chunk-spnh9dzk.js +0 -10
  112. package/dist/chunk-xhhj1gvj.js +0 -9
  113. package/dist/chunk-z0ct35ft.js +0 -8
  114. package/dist/errors/utils/index.d.ts +0 -1
  115. package/dist/errors/utils/index.js +0 -16
  116. package/dist/errors/utils/is-nowarajs-error.ts.d.ts +0 -4
@@ -28,162 +28,10 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
28
28
  } & {
29
29
  schema: {};
30
30
  standaloneSchema: {};
31
- macro: Partial<import("elysia").MacroToProperty<{
32
- readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
33
- readonly headers: "dbResolverHeader";
34
- readonly resolve: ({ headers }: {
35
- body: unknown;
36
- query: Record<string, string>;
37
- params: Record<string, string>;
38
- headers: Record<string, string | undefined>;
39
- cookie: Record<string, import("elysia").Cookie<unknown>>;
40
- server: import("elysia/universal/server").Server | null;
41
- redirect: import("elysia").redirect;
42
- set: {
43
- headers: import("elysia").HTTPHeaders;
44
- status?: number | keyof import("elysia").StatusMap;
45
- redirect?: string;
46
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
47
- };
48
- path: string;
49
- route: string;
50
- request: Request;
51
- store: {};
52
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 420 ? {
53
- readonly 100: "Continue";
54
- readonly 101: "Switching Protocols";
55
- readonly 102: "Processing";
56
- readonly 103: "Early Hints";
57
- readonly 200: "OK";
58
- readonly 201: "Created";
59
- readonly 202: "Accepted";
60
- readonly 203: "Non-Authoritative Information";
61
- readonly 204: "No Content";
62
- readonly 205: "Reset Content";
63
- readonly 206: "Partial Content";
64
- readonly 207: "Multi-Status";
65
- readonly 208: "Already Reported";
66
- readonly 300: "Multiple Choices";
67
- readonly 301: "Moved Permanently";
68
- readonly 302: "Found";
69
- readonly 303: "See Other";
70
- readonly 304: "Not Modified";
71
- readonly 307: "Temporary Redirect";
72
- readonly 308: "Permanent Redirect";
73
- readonly 400: "Bad Request";
74
- readonly 401: "Unauthorized";
75
- readonly 402: "Payment Required";
76
- readonly 403: "Forbidden";
77
- readonly 404: "Not Found";
78
- readonly 405: "Method Not Allowed";
79
- readonly 406: "Not Acceptable";
80
- readonly 407: "Proxy Authentication Required";
81
- readonly 408: "Request Timeout";
82
- readonly 409: "Conflict";
83
- readonly 410: "Gone";
84
- readonly 411: "Length Required";
85
- readonly 412: "Precondition Failed";
86
- readonly 413: "Payload Too Large";
87
- readonly 414: "URI Too Long";
88
- readonly 415: "Unsupported Media Type";
89
- readonly 416: "Range Not Satisfiable";
90
- readonly 417: "Expectation Failed";
91
- readonly 418: "I'm a teapot";
92
- readonly 420: "Enhance Your Calm";
93
- readonly 421: "Misdirected Request";
94
- readonly 422: "Unprocessable Content";
95
- readonly 423: "Locked";
96
- readonly 424: "Failed Dependency";
97
- readonly 425: "Too Early";
98
- readonly 426: "Upgrade Required";
99
- readonly 428: "Precondition Required";
100
- readonly 429: "Too Many Requests";
101
- readonly 431: "Request Header Fields Too Large";
102
- readonly 451: "Unavailable For Legal Reasons";
103
- readonly 500: "Internal Server Error";
104
- readonly 501: "Not Implemented";
105
- readonly 502: "Bad Gateway";
106
- readonly 503: "Service Unavailable";
107
- readonly 504: "Gateway Timeout";
108
- readonly 505: "HTTP Version Not Supported";
109
- readonly 506: "Variant Also Negotiates";
110
- readonly 507: "Insufficient Storage";
111
- readonly 508: "Loop Detected";
112
- readonly 510: "Not Extended";
113
- readonly 511: "Network Authentication Required";
114
- }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
115
- readonly Continue: 100;
116
- readonly "Switching Protocols": 101;
117
- readonly Processing: 102;
118
- readonly "Early Hints": 103;
119
- readonly OK: 200;
120
- readonly Created: 201;
121
- readonly Accepted: 202;
122
- readonly "Non-Authoritative Information": 203;
123
- readonly "No Content": 204;
124
- readonly "Reset Content": 205;
125
- readonly "Partial Content": 206;
126
- readonly "Multi-Status": 207;
127
- readonly "Already Reported": 208;
128
- readonly "Multiple Choices": 300;
129
- readonly "Moved Permanently": 301;
130
- readonly Found: 302;
131
- readonly "See Other": 303;
132
- readonly "Not Modified": 304;
133
- readonly "Temporary Redirect": 307;
134
- readonly "Permanent Redirect": 308;
135
- readonly "Bad Request": 400;
136
- readonly Unauthorized: 401;
137
- readonly "Payment Required": 402;
138
- readonly Forbidden: 403;
139
- readonly "Not Found": 404;
140
- readonly "Method Not Allowed": 405;
141
- readonly "Not Acceptable": 406;
142
- readonly "Proxy Authentication Required": 407;
143
- readonly "Request Timeout": 408;
144
- readonly Conflict: 409;
145
- readonly Gone: 410;
146
- readonly "Length Required": 411;
147
- readonly "Precondition Failed": 412;
148
- readonly "Payload Too Large": 413;
149
- readonly "URI Too Long": 414;
150
- readonly "Unsupported Media Type": 415;
151
- readonly "Range Not Satisfiable": 416;
152
- readonly "Expectation Failed": 417;
153
- readonly "I'm a teapot": 418;
154
- readonly "Enhance Your Calm": 420;
155
- readonly "Misdirected Request": 421;
156
- readonly "Unprocessable Content": 422;
157
- readonly Locked: 423;
158
- readonly "Failed Dependency": 424;
159
- readonly "Too Early": 425;
160
- readonly "Upgrade Required": 426;
161
- readonly "Precondition Required": 428;
162
- readonly "Too Many Requests": 429;
163
- readonly "Request Header Fields Too Large": 431;
164
- readonly "Unavailable For Legal Reasons": 451;
165
- readonly "Internal Server Error": 500;
166
- readonly "Not Implemented": 501;
167
- readonly "Bad Gateway": 502;
168
- readonly "Service Unavailable": 503;
169
- readonly "Gateway Timeout": 504;
170
- readonly "HTTP Version Not Supported": 505;
171
- readonly "Variant Also Negotiates": 506;
172
- readonly "Insufficient Storage": 507;
173
- readonly "Loop Detected": 508;
174
- readonly "Not Extended": 510;
175
- readonly "Network Authentication Required": 511;
176
- }[Code] : Code>;
177
- }) => Promise<{
178
- dynamicDB: MSSQL;
179
- }>;
180
- };
181
- readonly injectStaticDB: (databaseName: string) => {
182
- readonly resolve: () => {
183
- staticDB: MSSQL;
184
- };
185
- };
186
- }>>;
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
187
35
  macroFn: {
188
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
189
37
  readonly headers: "dbResolverHeader";
@@ -352,7 +200,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
352
200
  response: {
353
201
  200: {
354
202
  message: "mrx-core.crud.success.find_one_response";
355
- content: unknown[];
203
+ content: Record<string, unknown>[];
356
204
  };
357
205
  };
358
206
  };
@@ -364,7 +212,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
364
212
  response: {
365
213
  200: {
366
214
  message: "mrx-core.crud.success.find_one_response";
367
- content: unknown[];
215
+ content: Record<string, unknown>[];
368
216
  };
369
217
  };
370
218
  };
@@ -376,7 +224,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
376
224
  response: {
377
225
  200: {
378
226
  message: "mrx-core.crud.success.find_one_response";
379
- content: unknown[];
227
+ content: Record<string, unknown>[];
380
228
  };
381
229
  };
382
230
  };
@@ -388,7 +236,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
388
236
  response: {
389
237
  200: {
390
238
  message: "mrx-core.crud.success.find_one_response";
391
- content: unknown[];
239
+ content: Record<string, unknown>[];
392
240
  };
393
241
  };
394
242
  };
@@ -400,7 +248,7 @@ export declare const findOne: <const TDatabase extends Omit<MSSQLDatabaseOptions
400
248
  response: {
401
249
  200: {
402
250
  message: "mrx-core.crud.success.find_one_response";
403
- content: unknown[];
251
+ content: Record<string, unknown>[];
404
252
  };
405
253
  };
406
254
  };
@@ -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-tg6wsheh.js";
12
+ import"../../../../chunk-pcfjfxbw.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-1yykvnyz.js";
18
+ import"../../../../chunk-dyntzdyn.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,
@@ -28,162 +28,10 @@ export declare const insert: <const TDatabase extends Omit<MSSQLDatabaseOptions,
28
28
  } & {
29
29
  schema: {};
30
30
  standaloneSchema: {};
31
- macro: Partial<import("elysia").MacroToProperty<{
32
- readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
33
- readonly headers: "dbResolverHeader";
34
- readonly resolve: ({ headers }: {
35
- body: unknown;
36
- query: Record<string, string>;
37
- params: Record<string, string>;
38
- headers: Record<string, string | undefined>;
39
- cookie: Record<string, import("elysia").Cookie<unknown>>;
40
- server: import("elysia/universal/server").Server | null;
41
- redirect: import("elysia").redirect;
42
- set: {
43
- headers: import("elysia").HTTPHeaders;
44
- status?: number | keyof import("elysia").StatusMap;
45
- redirect?: string;
46
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
47
- };
48
- path: string;
49
- route: string;
50
- request: Request;
51
- store: {};
52
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 420 ? {
53
- readonly 100: "Continue";
54
- readonly 101: "Switching Protocols";
55
- readonly 102: "Processing";
56
- readonly 103: "Early Hints";
57
- readonly 200: "OK";
58
- readonly 201: "Created";
59
- readonly 202: "Accepted";
60
- readonly 203: "Non-Authoritative Information";
61
- readonly 204: "No Content";
62
- readonly 205: "Reset Content";
63
- readonly 206: "Partial Content";
64
- readonly 207: "Multi-Status";
65
- readonly 208: "Already Reported";
66
- readonly 300: "Multiple Choices";
67
- readonly 301: "Moved Permanently";
68
- readonly 302: "Found";
69
- readonly 303: "See Other";
70
- readonly 304: "Not Modified";
71
- readonly 307: "Temporary Redirect";
72
- readonly 308: "Permanent Redirect";
73
- readonly 400: "Bad Request";
74
- readonly 401: "Unauthorized";
75
- readonly 402: "Payment Required";
76
- readonly 403: "Forbidden";
77
- readonly 404: "Not Found";
78
- readonly 405: "Method Not Allowed";
79
- readonly 406: "Not Acceptable";
80
- readonly 407: "Proxy Authentication Required";
81
- readonly 408: "Request Timeout";
82
- readonly 409: "Conflict";
83
- readonly 410: "Gone";
84
- readonly 411: "Length Required";
85
- readonly 412: "Precondition Failed";
86
- readonly 413: "Payload Too Large";
87
- readonly 414: "URI Too Long";
88
- readonly 415: "Unsupported Media Type";
89
- readonly 416: "Range Not Satisfiable";
90
- readonly 417: "Expectation Failed";
91
- readonly 418: "I'm a teapot";
92
- readonly 420: "Enhance Your Calm";
93
- readonly 421: "Misdirected Request";
94
- readonly 422: "Unprocessable Content";
95
- readonly 423: "Locked";
96
- readonly 424: "Failed Dependency";
97
- readonly 425: "Too Early";
98
- readonly 426: "Upgrade Required";
99
- readonly 428: "Precondition Required";
100
- readonly 429: "Too Many Requests";
101
- readonly 431: "Request Header Fields Too Large";
102
- readonly 451: "Unavailable For Legal Reasons";
103
- readonly 500: "Internal Server Error";
104
- readonly 501: "Not Implemented";
105
- readonly 502: "Bad Gateway";
106
- readonly 503: "Service Unavailable";
107
- readonly 504: "Gateway Timeout";
108
- readonly 505: "HTTP Version Not Supported";
109
- readonly 506: "Variant Also Negotiates";
110
- readonly 507: "Insufficient Storage";
111
- readonly 508: "Loop Detected";
112
- readonly 510: "Not Extended";
113
- readonly 511: "Network Authentication Required";
114
- }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
115
- readonly Continue: 100;
116
- readonly "Switching Protocols": 101;
117
- readonly Processing: 102;
118
- readonly "Early Hints": 103;
119
- readonly OK: 200;
120
- readonly Created: 201;
121
- readonly Accepted: 202;
122
- readonly "Non-Authoritative Information": 203;
123
- readonly "No Content": 204;
124
- readonly "Reset Content": 205;
125
- readonly "Partial Content": 206;
126
- readonly "Multi-Status": 207;
127
- readonly "Already Reported": 208;
128
- readonly "Multiple Choices": 300;
129
- readonly "Moved Permanently": 301;
130
- readonly Found: 302;
131
- readonly "See Other": 303;
132
- readonly "Not Modified": 304;
133
- readonly "Temporary Redirect": 307;
134
- readonly "Permanent Redirect": 308;
135
- readonly "Bad Request": 400;
136
- readonly Unauthorized: 401;
137
- readonly "Payment Required": 402;
138
- readonly Forbidden: 403;
139
- readonly "Not Found": 404;
140
- readonly "Method Not Allowed": 405;
141
- readonly "Not Acceptable": 406;
142
- readonly "Proxy Authentication Required": 407;
143
- readonly "Request Timeout": 408;
144
- readonly Conflict: 409;
145
- readonly Gone: 410;
146
- readonly "Length Required": 411;
147
- readonly "Precondition Failed": 412;
148
- readonly "Payload Too Large": 413;
149
- readonly "URI Too Long": 414;
150
- readonly "Unsupported Media Type": 415;
151
- readonly "Range Not Satisfiable": 416;
152
- readonly "Expectation Failed": 417;
153
- readonly "I'm a teapot": 418;
154
- readonly "Enhance Your Calm": 420;
155
- readonly "Misdirected Request": 421;
156
- readonly "Unprocessable Content": 422;
157
- readonly Locked: 423;
158
- readonly "Failed Dependency": 424;
159
- readonly "Too Early": 425;
160
- readonly "Upgrade Required": 426;
161
- readonly "Precondition Required": 428;
162
- readonly "Too Many Requests": 429;
163
- readonly "Request Header Fields Too Large": 431;
164
- readonly "Unavailable For Legal Reasons": 451;
165
- readonly "Internal Server Error": 500;
166
- readonly "Not Implemented": 501;
167
- readonly "Bad Gateway": 502;
168
- readonly "Service Unavailable": 503;
169
- readonly "Gateway Timeout": 504;
170
- readonly "HTTP Version Not Supported": 505;
171
- readonly "Variant Also Negotiates": 506;
172
- readonly "Insufficient Storage": 507;
173
- readonly "Loop Detected": 508;
174
- readonly "Not Extended": 510;
175
- readonly "Network Authentication Required": 511;
176
- }[Code] : Code>;
177
- }) => Promise<{
178
- dynamicDB: MSSQL;
179
- }>;
180
- };
181
- readonly injectStaticDB: (databaseName: string) => {
182
- readonly resolve: () => {
183
- staticDB: MSSQL;
184
- };
185
- };
186
- }>>;
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
187
35
  macroFn: {
188
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
189
37
  readonly headers: "dbResolverHeader";
@@ -28,162 +28,10 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
28
28
  } & {
29
29
  schema: {};
30
30
  standaloneSchema: {};
31
- macro: Partial<import("elysia").MacroToProperty<{
32
- readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
33
- readonly headers: "dbResolverHeader";
34
- readonly resolve: ({ headers }: {
35
- body: unknown;
36
- query: Record<string, string>;
37
- params: Record<string, string>;
38
- headers: Record<string, string | undefined>;
39
- cookie: Record<string, import("elysia").Cookie<unknown>>;
40
- server: import("elysia/universal/server").Server | null;
41
- redirect: import("elysia").redirect;
42
- set: {
43
- headers: import("elysia").HTTPHeaders;
44
- status?: number | keyof import("elysia").StatusMap;
45
- redirect?: string;
46
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
47
- };
48
- path: string;
49
- route: string;
50
- request: Request;
51
- store: {};
52
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 420 ? {
53
- readonly 100: "Continue";
54
- readonly 101: "Switching Protocols";
55
- readonly 102: "Processing";
56
- readonly 103: "Early Hints";
57
- readonly 200: "OK";
58
- readonly 201: "Created";
59
- readonly 202: "Accepted";
60
- readonly 203: "Non-Authoritative Information";
61
- readonly 204: "No Content";
62
- readonly 205: "Reset Content";
63
- readonly 206: "Partial Content";
64
- readonly 207: "Multi-Status";
65
- readonly 208: "Already Reported";
66
- readonly 300: "Multiple Choices";
67
- readonly 301: "Moved Permanently";
68
- readonly 302: "Found";
69
- readonly 303: "See Other";
70
- readonly 304: "Not Modified";
71
- readonly 307: "Temporary Redirect";
72
- readonly 308: "Permanent Redirect";
73
- readonly 400: "Bad Request";
74
- readonly 401: "Unauthorized";
75
- readonly 402: "Payment Required";
76
- readonly 403: "Forbidden";
77
- readonly 404: "Not Found";
78
- readonly 405: "Method Not Allowed";
79
- readonly 406: "Not Acceptable";
80
- readonly 407: "Proxy Authentication Required";
81
- readonly 408: "Request Timeout";
82
- readonly 409: "Conflict";
83
- readonly 410: "Gone";
84
- readonly 411: "Length Required";
85
- readonly 412: "Precondition Failed";
86
- readonly 413: "Payload Too Large";
87
- readonly 414: "URI Too Long";
88
- readonly 415: "Unsupported Media Type";
89
- readonly 416: "Range Not Satisfiable";
90
- readonly 417: "Expectation Failed";
91
- readonly 418: "I'm a teapot";
92
- readonly 420: "Enhance Your Calm";
93
- readonly 421: "Misdirected Request";
94
- readonly 422: "Unprocessable Content";
95
- readonly 423: "Locked";
96
- readonly 424: "Failed Dependency";
97
- readonly 425: "Too Early";
98
- readonly 426: "Upgrade Required";
99
- readonly 428: "Precondition Required";
100
- readonly 429: "Too Many Requests";
101
- readonly 431: "Request Header Fields Too Large";
102
- readonly 451: "Unavailable For Legal Reasons";
103
- readonly 500: "Internal Server Error";
104
- readonly 501: "Not Implemented";
105
- readonly 502: "Bad Gateway";
106
- readonly 503: "Service Unavailable";
107
- readonly 504: "Gateway Timeout";
108
- readonly 505: "HTTP Version Not Supported";
109
- readonly 506: "Variant Also Negotiates";
110
- readonly 507: "Insufficient Storage";
111
- readonly 508: "Loop Detected";
112
- readonly 510: "Not Extended";
113
- readonly 511: "Network Authentication Required";
114
- }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
115
- readonly Continue: 100;
116
- readonly "Switching Protocols": 101;
117
- readonly Processing: 102;
118
- readonly "Early Hints": 103;
119
- readonly OK: 200;
120
- readonly Created: 201;
121
- readonly Accepted: 202;
122
- readonly "Non-Authoritative Information": 203;
123
- readonly "No Content": 204;
124
- readonly "Reset Content": 205;
125
- readonly "Partial Content": 206;
126
- readonly "Multi-Status": 207;
127
- readonly "Already Reported": 208;
128
- readonly "Multiple Choices": 300;
129
- readonly "Moved Permanently": 301;
130
- readonly Found: 302;
131
- readonly "See Other": 303;
132
- readonly "Not Modified": 304;
133
- readonly "Temporary Redirect": 307;
134
- readonly "Permanent Redirect": 308;
135
- readonly "Bad Request": 400;
136
- readonly Unauthorized: 401;
137
- readonly "Payment Required": 402;
138
- readonly Forbidden: 403;
139
- readonly "Not Found": 404;
140
- readonly "Method Not Allowed": 405;
141
- readonly "Not Acceptable": 406;
142
- readonly "Proxy Authentication Required": 407;
143
- readonly "Request Timeout": 408;
144
- readonly Conflict: 409;
145
- readonly Gone: 410;
146
- readonly "Length Required": 411;
147
- readonly "Precondition Failed": 412;
148
- readonly "Payload Too Large": 413;
149
- readonly "URI Too Long": 414;
150
- readonly "Unsupported Media Type": 415;
151
- readonly "Range Not Satisfiable": 416;
152
- readonly "Expectation Failed": 417;
153
- readonly "I'm a teapot": 418;
154
- readonly "Enhance Your Calm": 420;
155
- readonly "Misdirected Request": 421;
156
- readonly "Unprocessable Content": 422;
157
- readonly Locked: 423;
158
- readonly "Failed Dependency": 424;
159
- readonly "Too Early": 425;
160
- readonly "Upgrade Required": 426;
161
- readonly "Precondition Required": 428;
162
- readonly "Too Many Requests": 429;
163
- readonly "Request Header Fields Too Large": 431;
164
- readonly "Unavailable For Legal Reasons": 451;
165
- readonly "Internal Server Error": 500;
166
- readonly "Not Implemented": 501;
167
- readonly "Bad Gateway": 502;
168
- readonly "Service Unavailable": 503;
169
- readonly "Gateway Timeout": 504;
170
- readonly "HTTP Version Not Supported": 505;
171
- readonly "Variant Also Negotiates": 506;
172
- readonly "Insufficient Storage": 507;
173
- readonly "Loop Detected": 508;
174
- readonly "Not Extended": 510;
175
- readonly "Network Authentication Required": 511;
176
- }[Code] : Code>;
177
- }) => Promise<{
178
- dynamicDB: MSSQL;
179
- }>;
180
- };
181
- readonly injectStaticDB: (databaseName: string) => {
182
- readonly resolve: () => {
183
- staticDB: MSSQL;
184
- };
185
- };
186
- }>>;
31
+ macro: Partial<{
32
+ readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
33
+ readonly injectStaticDB: string;
34
+ }>;
187
35
  macroFn: {
188
36
  readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
189
37
  readonly headers: "dbResolverHeader";
@@ -352,9 +200,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
352
200
  response: {
353
201
  200: {
354
202
  message: "mrx-core.crud.success.update_response";
355
- content: {
356
- [x: string]: /*elided*/ any;
357
- }[];
203
+ content: Record<string, unknown>[];
358
204
  };
359
205
  };
360
206
  };
@@ -366,9 +212,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
366
212
  response: {
367
213
  200: {
368
214
  message: "mrx-core.crud.success.update_response";
369
- content: {
370
- [x: string]: /*elided*/ any;
371
- }[];
215
+ content: Record<string, unknown>[];
372
216
  };
373
217
  };
374
218
  };
@@ -380,9 +224,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
380
224
  response: {
381
225
  200: {
382
226
  message: "mrx-core.crud.success.update_response";
383
- content: {
384
- [x: string]: /*elided*/ any;
385
- }[];
227
+ content: Record<string, unknown>[];
386
228
  };
387
229
  };
388
230
  };
@@ -394,9 +236,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
394
236
  response: {
395
237
  200: {
396
238
  message: "mrx-core.crud.success.update_response";
397
- content: {
398
- [x: string]: /*elided*/ any;
399
- }[];
239
+ content: Record<string, unknown>[];
400
240
  };
401
241
  };
402
242
  };
@@ -408,9 +248,7 @@ export declare const update: <const TDatabase extends Omit<MSSQLDatabaseOptions,
408
248
  response: {
409
249
  200: {
410
250
  message: "mrx-core.crud.success.update_response";
411
- content: {
412
- [x: string]: /*elided*/ any;
413
- }[];
251
+ content: Record<string, unknown>[];
414
252
  };
415
253
  };
416
254
  };