@mrxsys/mrx-core 2.11.0-1-and-283-20251112 → 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.
- package/dist/{chunk-0d0zd2yg.js → chunk-037vwvd4.js} +2 -2
- package/dist/{chunk-jksb9ers.js → chunk-10w8mg8e.js} +1 -1
- package/dist/{chunk-afd82epa.js → chunk-1yykvnyz.js} +13 -13
- package/dist/{chunk-dre2fgj0.js → chunk-2z8amjqt.js} +1 -1
- package/dist/chunk-4t7sy5qt.js +10 -0
- package/dist/chunk-642xajvx.js +59 -0
- package/dist/chunk-6hs00zfd.js +13 -0
- package/dist/chunk-8pw0syzf.js +9 -0
- package/dist/{chunk-eeb7yskp.js → chunk-awphtyzp.js} +4 -4
- package/dist/{chunk-8tffnbpn.js → chunk-ayyrgqyv.js} +1 -1
- package/dist/{chunk-12qzn7jw.js → chunk-dmsev7vs.js} +1 -1
- package/dist/{chunk-afyz8rg5.js → chunk-dyntzdyn.js} +10 -9
- package/dist/{chunk-gtn1kn0z.js → chunk-hv6g22kf.js} +4 -4
- package/dist/chunk-hwfebx4x.js +11 -0
- package/dist/{chunk-e30paw8a.js → chunk-j7dyc5ks.js} +5 -5
- package/dist/chunk-jz3wd472.js +23 -0
- package/dist/{chunk-441xs5k1.js → chunk-pcfjfxbw.js} +6 -6
- package/dist/{chunk-fs3wm3p4.js → chunk-r7yr9p57.js} +6 -6
- package/dist/{chunk-pjv1ekwr.js → chunk-tg6wsheh.js} +1 -1
- package/dist/chunk-y5dtkmnp.js +8 -0
- package/dist/chunk-yrt0ffvf.js +9 -0
- package/dist/{chunk-p14h6jfs.js → chunk-yxedm2vx.js} +1 -1
- package/dist/chunk-zn2nm5gg.js +9 -0
- package/dist/{chunk-7t524zqh.js → chunk-zv4ta4fb.js} +3 -3
- package/dist/errors/{base-error.d.ts → app-error.d.ts} +2 -1
- package/dist/errors/http-error.d.ts +2 -2
- package/dist/errors/index.d.ts +2 -1
- package/dist/errors/index.js +6 -4
- package/dist/errors/internal-error.d.ts +4 -0
- package/dist/modules/data/data.d.ts +5 -5
- package/dist/modules/data/enums/data-error-keys.d.ts +1 -1
- package/dist/modules/data/enums/index.js +1 -1
- package/dist/modules/data/index.js +3 -3
- package/dist/modules/database/enums/database-error-keys.d.ts +26 -26
- package/dist/modules/database/enums/index.js +1 -1
- package/dist/modules/database/enums/mssql-error-code.d.ts +23 -23
- package/dist/modules/database/index.js +5 -5
- package/dist/modules/database/mssql.d.ts +8 -8
- package/dist/modules/elysia/cache/cache.d.ts +3 -151
- package/dist/modules/elysia/cache/index.js +3 -3
- package/dist/modules/elysia/crud/index.js +13 -13
- package/dist/modules/elysia/crud/operations/count.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/delete.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/deleteOne.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/find.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/findOne.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/index.js +10 -10
- package/dist/modules/elysia/crud/operations/insert.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/update.d.ts +4 -156
- package/dist/modules/elysia/crud/operations/updateOne.d.ts +4 -156
- package/dist/modules/elysia/crud/utils/index.js +4 -4
- package/dist/modules/elysia/db-resolver/db-resolver.d.ts +4 -156
- package/dist/modules/elysia/db-resolver/enums/db-resolver-error-keys.d.ts +1 -1
- package/dist/modules/elysia/db-resolver/enums/index.js +1 -1
- package/dist/modules/elysia/db-resolver/index.js +9 -9
- package/dist/modules/elysia/error/enums/error.keys.d.ts +4 -4
- package/dist/modules/elysia/error/enums/index.js +1 -1
- package/dist/modules/elysia/error/error.d.ts +5 -5
- package/dist/modules/elysia/error/index.js +14 -14
- package/dist/modules/elysia/microservice/enums/index.js +1 -1
- package/dist/modules/elysia/microservice/enums/microservice-success-keys.d.ts +2 -2
- package/dist/modules/elysia/microservice/index.js +1 -1
- package/dist/modules/elysia/rate-limit/enums/index.js +1 -1
- package/dist/modules/elysia/rate-limit/enums/rate-limit-error-keys.d.ts +1 -1
- package/dist/modules/elysia/rate-limit/index.js +5 -5
- package/dist/modules/elysia/rate-limit/rate-limit.d.ts +3 -292
- package/dist/modules/jwt/enums/index.js +2 -2
- package/dist/modules/jwt/enums/jwt-error-keys.d.ts +3 -3
- package/dist/modules/jwt/enums/parse-human-time-to-seconds-error-keys.d.ts +1 -1
- package/dist/modules/jwt/index.js +7 -9
- package/dist/modules/jwt/utils/index.js +3 -3
- package/dist/modules/jwt/utils/parse-human-time-to-seconds.d.ts +1 -1
- package/dist/modules/kv-store/bun-redis/index.js +7 -7
- package/dist/modules/kv-store/enums/index.js +1 -1
- package/dist/modules/kv-store/enums/kv-store-error-keys.d.ts +3 -3
- package/dist/modules/kv-store/ioredis/index.js +7 -7
- package/dist/modules/kv-store/memory/index.js +3 -3
- package/dist/modules/logger/enums/index.js +1 -1
- package/dist/modules/logger/enums/logger-error-keys.d.ts +7 -7
- package/dist/modules/logger/events/logger-events.d.ts +4 -4
- package/dist/modules/logger/index.js +11 -10
- package/dist/modules/logger/logger.d.ts +1 -1
- package/dist/modules/logger/sinks/file-logger/enums/file-logger-error-keys.d.ts +1 -1
- package/dist/modules/logger/sinks/index.js +4 -4
- package/dist/modules/mailer/enums/index.js +1 -1
- package/dist/modules/mailer/enums/mailer-error-keys.d.ts +3 -3
- package/dist/modules/mailer/index.js +6 -6
- package/dist/modules/mailer/smtp.d.ts +4 -4
- package/dist/modules/repository/index.js +4 -4
- package/dist/modules/singleton-manager/enums/index.js +1 -1
- package/dist/modules/singleton-manager/enums/singleton-manager-error-keys.d.ts +2 -2
- package/dist/modules/singleton-manager/index.js +3 -3
- package/dist/modules/singleton-manager/singleton-manager.d.ts +3 -3
- package/dist/modules/totp/enums/index.js +1 -1
- package/dist/modules/totp/enums/totp-error-keys.d.ts +5 -5
- package/dist/modules/totp/index.js +6 -6
- package/dist/modules/totp/otp-auth-uri.d.ts +1 -1
- package/dist/modules/totp/utils/base32.d.ts +1 -1
- package/dist/modules/totp/utils/generate-secret-bytes.d.ts +1 -1
- package/dist/modules/totp/utils/index.js +5 -5
- package/dist/shared/utils/env.d.ts +1 -1
- package/dist/shared/utils/index.js +3 -3
- package/package.json +6 -7
- package/dist/chunk-4v86f7gp.js +0 -59
- package/dist/chunk-6w9ja96e.js +0 -9
- package/dist/chunk-9cgzhc50.js +0 -15
- package/dist/chunk-9d3zvgp6.js +0 -9
- package/dist/chunk-9r5anep5.js +0 -11
- package/dist/chunk-rz5p4j3p.js +0 -13
- package/dist/chunk-spnh9dzk.js +0 -10
- package/dist/chunk-xhhj1gvj.js +0 -9
- package/dist/chunk-z0ct35ft.js +0 -8
- package/dist/errors/utils/index.d.ts +0 -1
- package/dist/errors/utils/index.js +0 -16
- package/dist/errors/utils/is-nowarajs-error.ts.d.ts +0 -4
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
filterByKeyInclusion,
|
|
6
6
|
filterByValue,
|
|
7
7
|
transformKeys
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import"../../chunk-
|
|
10
|
-
import"../../chunk-
|
|
8
|
+
} from "../../chunk-hv6g22kf.js";
|
|
9
|
+
import"../../chunk-10w8mg8e.js";
|
|
10
|
+
import"../../chunk-jz3wd472.js";
|
|
11
11
|
export {
|
|
12
12
|
transformKeys,
|
|
13
13
|
filterByValue,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export declare const DATABASE_ERROR_KEYS: {
|
|
2
|
-
readonly MSSQL_CONNECTION_ERROR: "mrx-core.mssql.error.database.connection_error";
|
|
3
|
-
readonly MSSQL_DATABASE_ACCESS_DENIED: "mrx-core.mssql.error.database.access_denied";
|
|
4
|
-
readonly MSSQL_DATABASE_AMBIGUOUS_COLUMN: "mrx-core.mssql.error.database.ambiguous_column";
|
|
5
|
-
readonly MSSQL_DATABASE_AUTHORIZATION_FAILED: "mrx-core.mssql.error.database.authorization_failed";
|
|
6
|
-
readonly MSSQL_DATABASE_COLUMN_NOT_FOUND: "mrx-core.mssql.error.database.column_not_found";
|
|
7
|
-
readonly MSSQL_DATABASE_CONVERSION_FAILED: "mrx-core.mssql.error.database.conversion_failed";
|
|
8
|
-
readonly MSSQL_DATABASE_DATA_TOO_LARGE: "mrx-core.mssql.error.database.data_too_large";
|
|
9
|
-
readonly MSSQL_DATABASE_DEADLOCK_DETECTED: "mrx-core.mssql.error.database.deadlock_detected";
|
|
10
|
-
readonly MSSQL_DATABASE_DUPLICATE_KEY: "mrx-core.mssql.error.database.duplicate_key";
|
|
11
|
-
readonly MSSQL_DATABASE_FOREIGN_KEY_VIOLATION: "mrx-core.mssql.error.database.foreign_key_violation";
|
|
12
|
-
readonly MSSQL_DATABASE_IDENTITY_INSERT_NOT_ALLOWED: "mrx-core.mssql.error.database.identity_insert_not_allowed";
|
|
13
|
-
readonly MSSQL_DATABASE_INSUFFICIENT_MEMORY: "mrx-core.mssql.error.database.insufficient_memory";
|
|
14
|
-
readonly MSSQL_DATABASE_INSUFFICIENT_STORAGE: "mrx-core.mssql.error.database.insufficient_storage";
|
|
15
|
-
readonly MSSQL_DATABASE_PERMISSION_DENIED: "mrx-core.mssql.error.database.permission_denied";
|
|
16
|
-
readonly MSSQL_DATABASE_QUERY_TIMEOUT: "mrx-core.mssql.error.database.query_timeout";
|
|
17
|
-
readonly MSSQL_DATABASE_RESOURCE_LOCKED: "mrx-core.mssql.error.database.resource_locked";
|
|
18
|
-
readonly MSSQL_DATABASE_SYNTAX_ERROR: "mrx-core.mssql.error.database.syntax_error";
|
|
19
|
-
readonly MSSQL_DATABASE_TRANSACTION_ABORTED: "mrx-core.mssql.error.database.transaction_aborted";
|
|
20
|
-
readonly MSSQL_DATABASE_TRANSACTION_LOG_FULL: "mrx-core.mssql.error.database.transaction_log_full";
|
|
21
|
-
readonly MSSQL_DATABASE_UNIQUE_CONSTRAINT_VIOLATION: "mrx-core.mssql.error.database.unique_constraint_violation";
|
|
22
|
-
readonly MSSQL_DATABASE_CANNOT_UPDATE_IDENTITY_COLUMN: "mrx-core.mssql.error.database.cannot_update_identity_column";
|
|
23
|
-
readonly MSSQL_DISCONNECT_ERROR: "mrx-core.mssql.error.database.disconnect_error";
|
|
24
|
-
readonly MSSQL_NO_RESULT: "mrx-core.mssql.error.database.no_result";
|
|
25
|
-
readonly MSSQL_NOT_CONNECTED: "mrx-core.mssql.error.database.not_connected";
|
|
26
|
-
readonly MSSQL_QUERY_ERROR: "mrx-core.mssql.error.database.query_error";
|
|
27
|
-
readonly MSSQL_TABLE_NOT_FOUND: "mrx-core.mssql.error.database.table_not_found";
|
|
2
|
+
readonly MSSQL_CONNECTION_ERROR: "mrx.mrx-core.mssql.error.database.connection_error";
|
|
3
|
+
readonly MSSQL_DATABASE_ACCESS_DENIED: "mrx.mrx-core.mssql.error.database.access_denied";
|
|
4
|
+
readonly MSSQL_DATABASE_AMBIGUOUS_COLUMN: "mrx.mrx-core.mssql.error.database.ambiguous_column";
|
|
5
|
+
readonly MSSQL_DATABASE_AUTHORIZATION_FAILED: "mrx.mrx-core.mssql.error.database.authorization_failed";
|
|
6
|
+
readonly MSSQL_DATABASE_COLUMN_NOT_FOUND: "mrx.mrx-core.mssql.error.database.column_not_found";
|
|
7
|
+
readonly MSSQL_DATABASE_CONVERSION_FAILED: "mrx.mrx-core.mssql.error.database.conversion_failed";
|
|
8
|
+
readonly MSSQL_DATABASE_DATA_TOO_LARGE: "mrx.mrx-core.mssql.error.database.data_too_large";
|
|
9
|
+
readonly MSSQL_DATABASE_DEADLOCK_DETECTED: "mrx.mrx-core.mssql.error.database.deadlock_detected";
|
|
10
|
+
readonly MSSQL_DATABASE_DUPLICATE_KEY: "mrx.mrx-core.mssql.error.database.duplicate_key";
|
|
11
|
+
readonly MSSQL_DATABASE_FOREIGN_KEY_VIOLATION: "mrx.mrx-core.mssql.error.database.foreign_key_violation";
|
|
12
|
+
readonly MSSQL_DATABASE_IDENTITY_INSERT_NOT_ALLOWED: "mrx.mrx-core.mssql.error.database.identity_insert_not_allowed";
|
|
13
|
+
readonly MSSQL_DATABASE_INSUFFICIENT_MEMORY: "mrx.mrx-core.mssql.error.database.insufficient_memory";
|
|
14
|
+
readonly MSSQL_DATABASE_INSUFFICIENT_STORAGE: "mrx.mrx-core.mssql.error.database.insufficient_storage";
|
|
15
|
+
readonly MSSQL_DATABASE_PERMISSION_DENIED: "mrx.mrx-core.mssql.error.database.permission_denied";
|
|
16
|
+
readonly MSSQL_DATABASE_QUERY_TIMEOUT: "mrx.mrx-core.mssql.error.database.query_timeout";
|
|
17
|
+
readonly MSSQL_DATABASE_RESOURCE_LOCKED: "mrx.mrx-core.mssql.error.database.resource_locked";
|
|
18
|
+
readonly MSSQL_DATABASE_SYNTAX_ERROR: "mrx.mrx-core.mssql.error.database.syntax_error";
|
|
19
|
+
readonly MSSQL_DATABASE_TRANSACTION_ABORTED: "mrx.mrx-core.mssql.error.database.transaction_aborted";
|
|
20
|
+
readonly MSSQL_DATABASE_TRANSACTION_LOG_FULL: "mrx.mrx-core.mssql.error.database.transaction_log_full";
|
|
21
|
+
readonly MSSQL_DATABASE_UNIQUE_CONSTRAINT_VIOLATION: "mrx.mrx-core.mssql.error.database.unique_constraint_violation";
|
|
22
|
+
readonly MSSQL_DATABASE_CANNOT_UPDATE_IDENTITY_COLUMN: "mrx.mrx-core.mssql.error.database.cannot_update_identity_column";
|
|
23
|
+
readonly MSSQL_DISCONNECT_ERROR: "mrx.mrx-core.mssql.error.database.disconnect_error";
|
|
24
|
+
readonly MSSQL_NO_RESULT: "mrx.mrx-core.mssql.error.database.no_result";
|
|
25
|
+
readonly MSSQL_NOT_CONNECTED: "mrx.mrx-core.mssql.error.database.not_connected";
|
|
26
|
+
readonly MSSQL_QUERY_ERROR: "mrx.mrx-core.mssql.error.database.query_error";
|
|
27
|
+
readonly MSSQL_TABLE_NOT_FOUND: "mrx.mrx-core.mssql.error.database.table_not_found";
|
|
28
28
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const MSSQL_ERROR_CODE: {
|
|
2
|
-
readonly 0: "mrx-core.mssql.error.database.query_error";
|
|
3
|
-
readonly 102: "mrx-core.mssql.error.database.syntax_error";
|
|
4
|
-
readonly 1105: "mrx-core.mssql.error.database.insufficient_storage";
|
|
5
|
-
readonly 1205: "mrx-core.mssql.error.database.deadlock_detected";
|
|
6
|
-
readonly 1222: "mrx-core.mssql.error.database.resource_locked";
|
|
7
|
-
readonly 18452: "mrx-core.mssql.error.database.authorization_failed";
|
|
8
|
-
readonly 18456: "mrx-core.mssql.error.database.authorization_failed";
|
|
9
|
-
readonly 207: "mrx-core.mssql.error.database.column_not_found";
|
|
10
|
-
readonly 208: "mrx-core.mssql.error.database.table_not_found";
|
|
11
|
-
readonly 209: "mrx-core.mssql.error.database.ambiguous_column";
|
|
12
|
-
readonly 229: "mrx-core.mssql.error.database.permission_denied";
|
|
13
|
-
readonly 2601: "mrx-core.mssql.error.database.unique_constraint_violation";
|
|
14
|
-
readonly 2627: "mrx-core.mssql.error.database.duplicate_key";
|
|
15
|
-
readonly 3928: "mrx-core.mssql.error.database.transaction_aborted";
|
|
16
|
-
readonly 4060: "mrx-core.mssql.error.database.access_denied";
|
|
17
|
-
readonly 544: "mrx-core.mssql.error.database.identity_insert_not_allowed";
|
|
18
|
-
readonly 547: "mrx-core.mssql.error.database.foreign_key_violation";
|
|
19
|
-
readonly 701: "mrx-core.mssql.error.database.insufficient_memory";
|
|
20
|
-
readonly 8102: "mrx-core.mssql.error.database.cannot_update_identity_column";
|
|
21
|
-
readonly 8152: "mrx-core.mssql.error.database.data_too_large";
|
|
22
|
-
readonly 8169: "mrx-core.mssql.error.database.conversion_failed";
|
|
23
|
-
readonly 8645: "mrx-core.mssql.error.database.query_timeout";
|
|
24
|
-
readonly 9002: "mrx-core.mssql.error.database.transaction_log_full";
|
|
2
|
+
readonly 0: "mrx.mrx-core.mssql.error.database.query_error";
|
|
3
|
+
readonly 102: "mrx.mrx-core.mssql.error.database.syntax_error";
|
|
4
|
+
readonly 1105: "mrx.mrx-core.mssql.error.database.insufficient_storage";
|
|
5
|
+
readonly 1205: "mrx.mrx-core.mssql.error.database.deadlock_detected";
|
|
6
|
+
readonly 1222: "mrx.mrx-core.mssql.error.database.resource_locked";
|
|
7
|
+
readonly 18452: "mrx.mrx-core.mssql.error.database.authorization_failed";
|
|
8
|
+
readonly 18456: "mrx.mrx-core.mssql.error.database.authorization_failed";
|
|
9
|
+
readonly 207: "mrx.mrx-core.mssql.error.database.column_not_found";
|
|
10
|
+
readonly 208: "mrx.mrx-core.mssql.error.database.table_not_found";
|
|
11
|
+
readonly 209: "mrx.mrx-core.mssql.error.database.ambiguous_column";
|
|
12
|
+
readonly 229: "mrx.mrx-core.mssql.error.database.permission_denied";
|
|
13
|
+
readonly 2601: "mrx.mrx-core.mssql.error.database.unique_constraint_violation";
|
|
14
|
+
readonly 2627: "mrx.mrx-core.mssql.error.database.duplicate_key";
|
|
15
|
+
readonly 3928: "mrx.mrx-core.mssql.error.database.transaction_aborted";
|
|
16
|
+
readonly 4060: "mrx.mrx-core.mssql.error.database.access_denied";
|
|
17
|
+
readonly 544: "mrx.mrx-core.mssql.error.database.identity_insert_not_allowed";
|
|
18
|
+
readonly 547: "mrx.mrx-core.mssql.error.database.foreign_key_violation";
|
|
19
|
+
readonly 701: "mrx.mrx-core.mssql.error.database.insufficient_memory";
|
|
20
|
+
readonly 8102: "mrx.mrx-core.mssql.error.database.cannot_update_identity_column";
|
|
21
|
+
readonly 8152: "mrx.mrx-core.mssql.error.database.data_too_large";
|
|
22
|
+
readonly 8169: "mrx.mrx-core.mssql.error.database.conversion_failed";
|
|
23
|
+
readonly 8645: "mrx.mrx-core.mssql.error.database.query_timeout";
|
|
24
|
+
readonly 9002: "mrx.mrx-core.mssql.error.database.transaction_log_full";
|
|
25
25
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
MSSQL,
|
|
4
4
|
Table
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import"../../chunk-
|
|
5
|
+
} from "../../chunk-1yykvnyz.js";
|
|
6
|
+
import"../../chunk-dyntzdyn.js";
|
|
7
7
|
import"../../chunk-grfyngq0.js";
|
|
8
8
|
import"../../chunk-mvrxngm7.js";
|
|
9
|
-
import"../../chunk-
|
|
10
|
-
import"../../chunk-7t524zqh.js";
|
|
9
|
+
import"../../chunk-zv4ta4fb.js";
|
|
11
10
|
import"../../chunk-sqts8vyk.js";
|
|
12
|
-
import"../../chunk-
|
|
11
|
+
import"../../chunk-jz3wd472.js";
|
|
12
|
+
import"../../chunk-642xajvx.js";
|
|
13
13
|
export {
|
|
14
14
|
Table,
|
|
15
15
|
MSSQL
|
|
@@ -57,14 +57,14 @@ export declare class MSSQL extends TypedEventEmitter<MssqlEventMap> {
|
|
|
57
57
|
* If the connection is successful, introspection is performed to retrieve information about tables, columns(fields), and primary keys.
|
|
58
58
|
* This information is used to create instances of {@link Table} and {@link Repository} for each table in the database.
|
|
59
59
|
*
|
|
60
|
-
* @throws ({@link
|
|
60
|
+
* @throws ({@link InternalError}) Thrown if an error occurs during the connection process.
|
|
61
61
|
*/
|
|
62
62
|
connect(): Promise<void>;
|
|
63
63
|
/**
|
|
64
64
|
* Closes the connection to the MSSQL database.
|
|
65
65
|
*
|
|
66
|
-
* @throws ({@link
|
|
67
|
-
* @throws ({@link
|
|
66
|
+
* @throws ({@link InternalError}) Thrown if the database is not connected.
|
|
67
|
+
* @throws ({@link InternalError}) Thrown if an error occurs during the disconnection process.
|
|
68
68
|
*/
|
|
69
69
|
disconnect(): Promise<void>;
|
|
70
70
|
/**
|
|
@@ -76,8 +76,8 @@ export declare class MSSQL extends TypedEventEmitter<MssqlEventMap> {
|
|
|
76
76
|
* @param tableName - The name of the table to retrieve the repository for.
|
|
77
77
|
* @param customRepository - Optional custom repository class to use for the table.
|
|
78
78
|
*
|
|
79
|
-
* @throws ({@link
|
|
80
|
-
* @throws ({@link
|
|
79
|
+
* @throws ({@link InternalError}) Thrown if the database is not connected.
|
|
80
|
+
* @throws ({@link InternalError}) Thrown if the specified table is not found.
|
|
81
81
|
*
|
|
82
82
|
* @returns The {@link Repository} for the specified table.
|
|
83
83
|
*/
|
|
@@ -88,8 +88,8 @@ export declare class MSSQL extends TypedEventEmitter<MssqlEventMap> {
|
|
|
88
88
|
*
|
|
89
89
|
* @param tableName - The name of the table to retrieve.
|
|
90
90
|
*
|
|
91
|
-
* @throws ({@link
|
|
92
|
-
* @throws ({@link
|
|
91
|
+
* @throws ({@link InternalError}) Thrown if the database is not connected.
|
|
92
|
+
* @throws ({@link InternalError}) Thrown if the specified table is not found.
|
|
93
93
|
*
|
|
94
94
|
* @returns The {@link Table} object for the specified table.
|
|
95
95
|
*/
|
|
@@ -121,7 +121,7 @@ export declare class MSSQL extends TypedEventEmitter<MssqlEventMap> {
|
|
|
121
121
|
/**
|
|
122
122
|
* Retrieves the Knex instance for the database connection.
|
|
123
123
|
*
|
|
124
|
-
* @throws ({@link
|
|
124
|
+
* @throws ({@link InternalError}) Thrown if the database is not connected.
|
|
125
125
|
*
|
|
126
126
|
* @returns The {@link Knex} instance for the database connection.
|
|
127
127
|
*/
|
|
@@ -12,157 +12,9 @@ export declare const cache: (store?: KvStore) => Elysia<"", {
|
|
|
12
12
|
}, {
|
|
13
13
|
schema: {};
|
|
14
14
|
standaloneSchema: {};
|
|
15
|
-
macro: Partial<
|
|
16
|
-
readonly isCached:
|
|
17
|
-
|
|
18
|
-
body: unknown;
|
|
19
|
-
query: Record<string, string>;
|
|
20
|
-
params: {};
|
|
21
|
-
headers: Record<string, string | undefined>;
|
|
22
|
-
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
23
|
-
server: import("elysia/universal/server").Server | null;
|
|
24
|
-
redirect: import("elysia").redirect;
|
|
25
|
-
set: {
|
|
26
|
-
headers: import("elysia").HTTPHeaders;
|
|
27
|
-
status?: number | keyof import("elysia").StatusMap;
|
|
28
|
-
redirect?: string;
|
|
29
|
-
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
30
|
-
};
|
|
31
|
-
path: string;
|
|
32
|
-
route: string;
|
|
33
|
-
request: Request;
|
|
34
|
-
store: {};
|
|
35
|
-
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 ? {
|
|
36
|
-
readonly 100: "Continue";
|
|
37
|
-
readonly 101: "Switching Protocols";
|
|
38
|
-
readonly 102: "Processing";
|
|
39
|
-
readonly 103: "Early Hints";
|
|
40
|
-
readonly 200: "OK";
|
|
41
|
-
readonly 201: "Created";
|
|
42
|
-
readonly 202: "Accepted";
|
|
43
|
-
readonly 203: "Non-Authoritative Information";
|
|
44
|
-
readonly 204: "No Content";
|
|
45
|
-
readonly 205: "Reset Content";
|
|
46
|
-
readonly 206: "Partial Content";
|
|
47
|
-
readonly 207: "Multi-Status";
|
|
48
|
-
readonly 208: "Already Reported";
|
|
49
|
-
readonly 300: "Multiple Choices";
|
|
50
|
-
readonly 301: "Moved Permanently";
|
|
51
|
-
readonly 302: "Found";
|
|
52
|
-
readonly 303: "See Other";
|
|
53
|
-
readonly 304: "Not Modified";
|
|
54
|
-
readonly 307: "Temporary Redirect";
|
|
55
|
-
readonly 308: "Permanent Redirect";
|
|
56
|
-
readonly 400: "Bad Request";
|
|
57
|
-
readonly 401: "Unauthorized";
|
|
58
|
-
readonly 402: "Payment Required";
|
|
59
|
-
readonly 403: "Forbidden";
|
|
60
|
-
readonly 404: "Not Found";
|
|
61
|
-
readonly 405: "Method Not Allowed";
|
|
62
|
-
readonly 406: "Not Acceptable";
|
|
63
|
-
readonly 407: "Proxy Authentication Required";
|
|
64
|
-
readonly 408: "Request Timeout";
|
|
65
|
-
readonly 409: "Conflict";
|
|
66
|
-
readonly 410: "Gone";
|
|
67
|
-
readonly 411: "Length Required";
|
|
68
|
-
readonly 412: "Precondition Failed";
|
|
69
|
-
readonly 413: "Payload Too Large";
|
|
70
|
-
readonly 414: "URI Too Long";
|
|
71
|
-
readonly 415: "Unsupported Media Type";
|
|
72
|
-
readonly 416: "Range Not Satisfiable";
|
|
73
|
-
readonly 417: "Expectation Failed";
|
|
74
|
-
readonly 418: "I'm a teapot";
|
|
75
|
-
readonly 420: "Enhance Your Calm";
|
|
76
|
-
readonly 421: "Misdirected Request";
|
|
77
|
-
readonly 422: "Unprocessable Content";
|
|
78
|
-
readonly 423: "Locked";
|
|
79
|
-
readonly 424: "Failed Dependency";
|
|
80
|
-
readonly 425: "Too Early";
|
|
81
|
-
readonly 426: "Upgrade Required";
|
|
82
|
-
readonly 428: "Precondition Required";
|
|
83
|
-
readonly 429: "Too Many Requests";
|
|
84
|
-
readonly 431: "Request Header Fields Too Large";
|
|
85
|
-
readonly 451: "Unavailable For Legal Reasons";
|
|
86
|
-
readonly 500: "Internal Server Error";
|
|
87
|
-
readonly 501: "Not Implemented";
|
|
88
|
-
readonly 502: "Bad Gateway";
|
|
89
|
-
readonly 503: "Service Unavailable";
|
|
90
|
-
readonly 504: "Gateway Timeout";
|
|
91
|
-
readonly 505: "HTTP Version Not Supported";
|
|
92
|
-
readonly 506: "Variant Also Negotiates";
|
|
93
|
-
readonly 507: "Insufficient Storage";
|
|
94
|
-
readonly 508: "Loop Detected";
|
|
95
|
-
readonly 510: "Not Extended";
|
|
96
|
-
readonly 511: "Network Authentication Required";
|
|
97
|
-
}[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" ? {
|
|
98
|
-
readonly Continue: 100;
|
|
99
|
-
readonly "Switching Protocols": 101;
|
|
100
|
-
readonly Processing: 102;
|
|
101
|
-
readonly "Early Hints": 103;
|
|
102
|
-
readonly OK: 200;
|
|
103
|
-
readonly Created: 201;
|
|
104
|
-
readonly Accepted: 202;
|
|
105
|
-
readonly "Non-Authoritative Information": 203;
|
|
106
|
-
readonly "No Content": 204;
|
|
107
|
-
readonly "Reset Content": 205;
|
|
108
|
-
readonly "Partial Content": 206;
|
|
109
|
-
readonly "Multi-Status": 207;
|
|
110
|
-
readonly "Already Reported": 208;
|
|
111
|
-
readonly "Multiple Choices": 300;
|
|
112
|
-
readonly "Moved Permanently": 301;
|
|
113
|
-
readonly Found: 302;
|
|
114
|
-
readonly "See Other": 303;
|
|
115
|
-
readonly "Not Modified": 304;
|
|
116
|
-
readonly "Temporary Redirect": 307;
|
|
117
|
-
readonly "Permanent Redirect": 308;
|
|
118
|
-
readonly "Bad Request": 400;
|
|
119
|
-
readonly Unauthorized: 401;
|
|
120
|
-
readonly "Payment Required": 402;
|
|
121
|
-
readonly Forbidden: 403;
|
|
122
|
-
readonly "Not Found": 404;
|
|
123
|
-
readonly "Method Not Allowed": 405;
|
|
124
|
-
readonly "Not Acceptable": 406;
|
|
125
|
-
readonly "Proxy Authentication Required": 407;
|
|
126
|
-
readonly "Request Timeout": 408;
|
|
127
|
-
readonly Conflict: 409;
|
|
128
|
-
readonly Gone: 410;
|
|
129
|
-
readonly "Length Required": 411;
|
|
130
|
-
readonly "Precondition Failed": 412;
|
|
131
|
-
readonly "Payload Too Large": 413;
|
|
132
|
-
readonly "URI Too Long": 414;
|
|
133
|
-
readonly "Unsupported Media Type": 415;
|
|
134
|
-
readonly "Range Not Satisfiable": 416;
|
|
135
|
-
readonly "Expectation Failed": 417;
|
|
136
|
-
readonly "I'm a teapot": 418;
|
|
137
|
-
readonly "Enhance Your Calm": 420;
|
|
138
|
-
readonly "Misdirected Request": 421;
|
|
139
|
-
readonly "Unprocessable Content": 422;
|
|
140
|
-
readonly Locked: 423;
|
|
141
|
-
readonly "Failed Dependency": 424;
|
|
142
|
-
readonly "Too Early": 425;
|
|
143
|
-
readonly "Upgrade Required": 426;
|
|
144
|
-
readonly "Precondition Required": 428;
|
|
145
|
-
readonly "Too Many Requests": 429;
|
|
146
|
-
readonly "Request Header Fields Too Large": 431;
|
|
147
|
-
readonly "Unavailable For Legal Reasons": 451;
|
|
148
|
-
readonly "Internal Server Error": 500;
|
|
149
|
-
readonly "Not Implemented": 501;
|
|
150
|
-
readonly "Bad Gateway": 502;
|
|
151
|
-
readonly "Service Unavailable": 503;
|
|
152
|
-
readonly "Gateway Timeout": 504;
|
|
153
|
-
readonly "HTTP Version Not Supported": 505;
|
|
154
|
-
readonly "Variant Also Negotiates": 506;
|
|
155
|
-
readonly "Insufficient Storage": 507;
|
|
156
|
-
readonly "Loop Detected": 508;
|
|
157
|
-
readonly "Not Extended": 510;
|
|
158
|
-
readonly "Network Authentication Required": 511;
|
|
159
|
-
}[Code] : Code>;
|
|
160
|
-
} & {
|
|
161
|
-
responseValue: unknown;
|
|
162
|
-
response: unknown;
|
|
163
|
-
}) => Promise<void>;
|
|
164
|
-
};
|
|
165
|
-
}>>;
|
|
15
|
+
macro: Partial<{
|
|
16
|
+
readonly isCached: CacheOptions;
|
|
17
|
+
}>;
|
|
166
18
|
macroFn: {
|
|
167
19
|
readonly isCached: ({ ttl, prefix }: CacheOptions) => {
|
|
168
20
|
readonly afterHandle: ({ set, responseValue, request }: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
MemoryStore
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
6
|
-
import"../../../chunk-
|
|
4
|
+
} from "../../../chunk-j7dyc5ks.js";
|
|
5
|
+
import"../../../chunk-8pw0syzf.js";
|
|
6
|
+
import"../../../chunk-jz3wd472.js";
|
|
7
7
|
|
|
8
8
|
// source/modules/elysia/cache/cache.ts
|
|
9
9
|
import { Elysia } from "elysia";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
createResponse200Schema,
|
|
10
10
|
createUpdateOneSchema,
|
|
11
11
|
createUpdateSchema
|
|
12
|
-
} from "../../../chunk-
|
|
12
|
+
} from "../../../chunk-yxedm2vx.js";
|
|
13
13
|
import"../../../chunk-9dzsj7f2.js";
|
|
14
14
|
import {
|
|
15
15
|
batchDelete,
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
insert,
|
|
21
21
|
update,
|
|
22
22
|
updateOne
|
|
23
|
-
} from "../../../chunk-
|
|
24
|
-
import"../../../chunk-
|
|
25
|
-
import"../../../chunk-
|
|
26
|
-
import"../../../chunk-
|
|
27
|
-
import"../../../chunk-
|
|
23
|
+
} from "../../../chunk-tg6wsheh.js";
|
|
24
|
+
import"../../../chunk-pcfjfxbw.js";
|
|
25
|
+
import"../../../chunk-r7yr9p57.js";
|
|
26
|
+
import"../../../chunk-y5dtkmnp.js";
|
|
27
|
+
import"../../../chunk-ayyrgqyv.js";
|
|
28
28
|
import"../../../chunk-w7h898m3.js";
|
|
29
|
-
import"../../../chunk-
|
|
30
|
-
import"../../../chunk-
|
|
31
|
-
import"../../../chunk-
|
|
32
|
-
import"../../../chunk-
|
|
29
|
+
import"../../../chunk-hv6g22kf.js";
|
|
30
|
+
import"../../../chunk-10w8mg8e.js";
|
|
31
|
+
import"../../../chunk-1yykvnyz.js";
|
|
32
|
+
import"../../../chunk-dyntzdyn.js";
|
|
33
33
|
import"../../../chunk-grfyngq0.js";
|
|
34
34
|
import"../../../chunk-mvrxngm7.js";
|
|
35
|
-
import"../../../chunk-
|
|
36
|
-
import"../../../chunk-7t524zqh.js";
|
|
35
|
+
import"../../../chunk-zv4ta4fb.js";
|
|
37
36
|
import"../../../chunk-sqts8vyk.js";
|
|
38
|
-
import"../../../chunk-
|
|
37
|
+
import"../../../chunk-jz3wd472.js";
|
|
38
|
+
import"../../../chunk-642xajvx.js";
|
|
39
39
|
|
|
40
40
|
// source/modules/elysia/crud/crud.ts
|
|
41
41
|
import { Elysia as Elysia2 } from "elysia";
|
|
@@ -28,162 +28,10 @@ export declare const count: <const TDatabase extends Omit<MSSQLDatabaseOptions,
|
|
|
28
28
|
} & {
|
|
29
29
|
schema: {};
|
|
30
30
|
standaloneSchema: {};
|
|
31
|
-
macro: Partial<
|
|
32
|
-
readonly injectDynamicDB:
|
|
33
|
-
|
|
34
|
-
|
|
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";
|