arkos 1.4.12-beta → 1.4.14-beta
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/cjs/app.js +4 -1
- package/dist/cjs/app.js.map +1 -1
- package/dist/cjs/modules/auth/auth.router.js +3 -0
- package/dist/cjs/modules/auth/auth.router.js.map +1 -1
- package/dist/cjs/modules/base/base.middlewares.js +2 -1
- package/dist/cjs/modules/base/base.middlewares.js.map +1 -1
- package/dist/cjs/modules/base/utils/helpers/base.router.helpers.js +3 -0
- package/dist/cjs/modules/base/utils/helpers/base.router.helpers.js.map +1 -1
- package/dist/cjs/modules/error-handler/error-handler.controller.js +18 -39
- package/dist/cjs/modules/error-handler/error-handler.controller.js.map +1 -1
- package/dist/cjs/modules/error-handler/utils/app-error.js +0 -1
- package/dist/cjs/modules/error-handler/utils/app-error.js.map +1 -1
- package/dist/cjs/modules/error-handler/utils/error-handler.helpers.js +8 -7
- package/dist/cjs/modules/error-handler/utils/error-handler.helpers.js.map +1 -1
- package/dist/cjs/modules/error-handler/utils/errors.js +158 -0
- package/dist/cjs/modules/error-handler/utils/errors.js.map +1 -0
- package/dist/cjs/modules/swagger/utils/helpers/openapi-schema-converter.js +1 -1
- package/dist/cjs/modules/swagger/utils/helpers/openapi-schema-converter.js.map +1 -1
- package/dist/cjs/types/arkos-config/utils.js.map +1 -1
- package/dist/cjs/types/new-arkos-config.js.map +1 -1
- package/dist/cjs/utils/arkos-router/index.js +2 -1
- package/dist/cjs/utils/arkos-router/index.js.map +1 -1
- package/dist/cjs/utils/arkos-router/utils/helpers/apply-arkos-router-proxy.js +1 -1
- package/dist/cjs/utils/arkos-router/utils/helpers/apply-arkos-router-proxy.js.map +1 -1
- package/dist/cjs/utils/arkos-router/utils/helpers/upload-manager.js +0 -1
- package/dist/cjs/utils/arkos-router/utils/helpers/upload-manager.js.map +1 -1
- package/dist/cjs/utils/cli/build.js +1 -1
- package/dist/cjs/utils/cli/build.js.map +1 -1
- package/dist/cjs/utils/cli/dev.js +3 -1
- package/dist/cjs/utils/cli/dev.js.map +1 -1
- package/dist/cjs/utils/cli/utils/cli.helpers.js +1 -1
- package/dist/cjs/utils/dotenv.helpers.js +0 -6
- package/dist/cjs/utils/dotenv.helpers.js.map +1 -1
- package/dist/cjs/utils/helpers/arkos-config.helpers.js +17 -0
- package/dist/cjs/utils/helpers/arkos-config.helpers.js.map +1 -1
- package/dist/cjs/utils/helpers/exit-error.js +1 -0
- package/dist/cjs/utils/helpers/exit-error.js.map +1 -1
- package/dist/cjs/utils/helpers/prisma.helpers.js +6 -7
- package/dist/cjs/utils/helpers/prisma.helpers.js.map +1 -1
- package/dist/cjs/utils/helpers/routers.helpers.js.map +1 -1
- package/dist/cjs/utils/helpers/url-helpers.js +14 -0
- package/dist/cjs/utils/helpers/url-helpers.js.map +1 -0
- package/dist/cjs/utils/initialize-app.js +8 -10
- package/dist/cjs/utils/initialize-app.js.map +1 -1
- package/dist/cjs/utils/prisma/prisma-json-schema-generator.js +12 -6
- package/dist/cjs/utils/prisma/prisma-json-schema-generator.js.map +1 -1
- package/dist/cjs/utils/prisma/prisma-schema-parser.js +10 -3
- package/dist/cjs/utils/prisma/prisma-schema-parser.js.map +1 -1
- package/dist/esm/app.js +5 -2
- package/dist/esm/app.js.map +1 -1
- package/dist/esm/modules/auth/auth.router.js +3 -0
- package/dist/esm/modules/auth/auth.router.js.map +1 -1
- package/dist/esm/modules/base/base.middlewares.js +2 -1
- package/dist/esm/modules/base/base.middlewares.js.map +1 -1
- package/dist/esm/modules/base/utils/helpers/base.router.helpers.js +3 -0
- package/dist/esm/modules/base/utils/helpers/base.router.helpers.js.map +1 -1
- package/dist/esm/modules/error-handler/error-handler.controller.js +18 -39
- package/dist/esm/modules/error-handler/error-handler.controller.js.map +1 -1
- package/dist/esm/modules/error-handler/utils/app-error.js +0 -1
- package/dist/esm/modules/error-handler/utils/app-error.js.map +1 -1
- package/dist/esm/modules/error-handler/utils/error-handler.helpers.js +8 -7
- package/dist/esm/modules/error-handler/utils/error-handler.helpers.js.map +1 -1
- package/dist/esm/modules/error-handler/utils/errors.js +127 -0
- package/dist/esm/modules/error-handler/utils/errors.js.map +1 -0
- package/dist/esm/modules/swagger/utils/helpers/openapi-schema-converter.js +1 -1
- package/dist/esm/modules/swagger/utils/helpers/openapi-schema-converter.js.map +1 -1
- package/dist/esm/types/arkos-config/utils.js.map +1 -1
- package/dist/esm/types/new-arkos-config.js.map +1 -1
- package/dist/esm/utils/arkos-router/index.js +2 -1
- package/dist/esm/utils/arkos-router/index.js.map +1 -1
- package/dist/esm/utils/arkos-router/utils/helpers/apply-arkos-router-proxy.js +1 -1
- package/dist/esm/utils/arkos-router/utils/helpers/apply-arkos-router-proxy.js.map +1 -1
- package/dist/esm/utils/arkos-router/utils/helpers/upload-manager.js +0 -1
- package/dist/esm/utils/arkos-router/utils/helpers/upload-manager.js.map +1 -1
- package/dist/esm/utils/cli/build.js +1 -1
- package/dist/esm/utils/cli/build.js.map +1 -1
- package/dist/esm/utils/cli/dev.js +3 -1
- package/dist/esm/utils/cli/dev.js.map +1 -1
- package/dist/esm/utils/cli/utils/cli.helpers.js +1 -1
- package/dist/esm/utils/dotenv.helpers.js +0 -6
- package/dist/esm/utils/dotenv.helpers.js.map +1 -1
- package/dist/esm/utils/helpers/arkos-config.helpers.js +15 -0
- package/dist/esm/utils/helpers/arkos-config.helpers.js.map +1 -1
- package/dist/esm/utils/helpers/exit-error.js +1 -0
- package/dist/esm/utils/helpers/exit-error.js.map +1 -1
- package/dist/esm/utils/helpers/prisma.helpers.js +6 -7
- package/dist/esm/utils/helpers/prisma.helpers.js.map +1 -1
- package/dist/esm/utils/helpers/routers.helpers.js.map +1 -1
- package/dist/esm/utils/helpers/url-helpers.js +11 -0
- package/dist/esm/utils/helpers/url-helpers.js.map +1 -0
- package/dist/esm/utils/initialize-app.js +7 -10
- package/dist/esm/utils/initialize-app.js.map +1 -1
- package/dist/esm/utils/prisma/prisma-json-schema-generator.js +12 -6
- package/dist/esm/utils/prisma/prisma-json-schema-generator.js.map +1 -1
- package/dist/esm/utils/prisma/prisma-schema-parser.js +10 -3
- package/dist/esm/utils/prisma/prisma-schema-parser.js.map +1 -1
- package/dist/types/modules/error-handler/utils/app-error.d.ts +0 -2
- package/dist/types/modules/error-handler/utils/error-handler.helpers.d.ts +1 -1
- package/dist/types/modules/error-handler/utils/errors.d.ts +176 -0
- package/dist/types/types/arkos-config/utils.d.ts +58 -21
- package/dist/types/types/new-arkos-config.d.ts +23 -0
- package/dist/types/utils/helpers/arkos-config.helpers.d.ts +2 -0
- package/dist/types/utils/helpers/url-helpers.d.ts +1 -0
- package/dist/types/utils/initialize-app.d.ts +1 -0
- package/dist/types/utils/prisma/prisma-schema-parser.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import AppError from "./app-error";
|
|
2
|
+
/**
|
|
3
|
+
* 400 - Bad Request
|
|
4
|
+
* @example throw new BadRequestError("Invalid input", "InvalidInput", { field: "email" })
|
|
5
|
+
*/
|
|
6
|
+
export declare class BadRequestError extends AppError {
|
|
7
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 401 - Unauthorized
|
|
11
|
+
* @example throw new UnauthorizedError("Invalid token", "InvalidToken")
|
|
12
|
+
*/
|
|
13
|
+
export declare class UnauthorizedError extends AppError {
|
|
14
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 402 - Payment Required
|
|
18
|
+
* @example throw new PaymentRequiredError("Subscription expired", "PaymentRequired")
|
|
19
|
+
*/
|
|
20
|
+
export declare class PaymentRequiredError extends AppError {
|
|
21
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 403 - Forbidden
|
|
25
|
+
* @example throw new ForbiddenError("Access denied", "Forbidden", { resource: "admin" })
|
|
26
|
+
*/
|
|
27
|
+
export declare class ForbiddenError extends AppError {
|
|
28
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 404 - Not Found
|
|
32
|
+
* @example throw new NotFoundError("User not found", "NotFound", { id: 123 })
|
|
33
|
+
*/
|
|
34
|
+
export declare class NotFoundError extends AppError {
|
|
35
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 405 - Method Not Allowed
|
|
39
|
+
* @example throw new MethodNotAllowedError("POST not allowed", "MethodNotAllowed")
|
|
40
|
+
*/
|
|
41
|
+
export declare class MethodNotAllowedError extends AppError {
|
|
42
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 406 - Not Acceptable
|
|
46
|
+
* @example throw new NotAcceptableError("Unsupported format", "NotAcceptable")
|
|
47
|
+
*/
|
|
48
|
+
export declare class NotAcceptableError extends AppError {
|
|
49
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 408 - Request Timeout
|
|
53
|
+
* @example throw new RequestTimeoutError("Upload took too long", "RequestTimeout")
|
|
54
|
+
*/
|
|
55
|
+
export declare class RequestTimeoutError extends AppError {
|
|
56
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 409 - Conflict
|
|
60
|
+
* @example throw new ConflictError("Duplicate entry", "Conflict", { field: "email" })
|
|
61
|
+
*/
|
|
62
|
+
export declare class ConflictError extends AppError {
|
|
63
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 410 - Gone
|
|
67
|
+
* @example throw new GoneError("Resource deleted", "Gone")
|
|
68
|
+
*/
|
|
69
|
+
export declare class GoneError extends AppError {
|
|
70
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 411 - Length Required
|
|
74
|
+
* @example throw new LengthRequiredError("Content-Length missing", "LengthRequired")
|
|
75
|
+
*/
|
|
76
|
+
export declare class LengthRequiredError extends AppError {
|
|
77
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 412 - Precondition Failed
|
|
81
|
+
* @example throw new PreconditionFailedError("ETag mismatch", "PreconditionFailed")
|
|
82
|
+
*/
|
|
83
|
+
export declare class PreconditionFailedError extends AppError {
|
|
84
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 413 - Payload Too Large
|
|
88
|
+
* @example throw new PayloadTooLargeError("File exceeds 10MB", "PayloadTooLarge", { max: "10MB" })
|
|
89
|
+
*/
|
|
90
|
+
export declare class PayloadTooLargeError extends AppError {
|
|
91
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 414 - URI Too Long
|
|
95
|
+
* @example throw new UriTooLongError("Query string too long", "UriTooLong")
|
|
96
|
+
*/
|
|
97
|
+
export declare class UriTooLongError extends AppError {
|
|
98
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* 415 - Unsupported Media Type
|
|
102
|
+
* @example throw new UnsupportedMediaTypeError("Expected JSON", "UnsupportedMediaType")
|
|
103
|
+
*/
|
|
104
|
+
export declare class UnsupportedMediaTypeError extends AppError {
|
|
105
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 416 - Range Not Satisfiable
|
|
109
|
+
* @example throw new RangeNotSatisfiableError("Invalid byte range", "RangeNotSatisfiable")
|
|
110
|
+
*/
|
|
111
|
+
export declare class RangeNotSatisfiableError extends AppError {
|
|
112
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 417 - Expectation Failed
|
|
116
|
+
* @example throw new ExpectationFailedError("Expect header failed", "ExpectationFailed")
|
|
117
|
+
*/
|
|
118
|
+
export declare class ExpectationFailedError extends AppError {
|
|
119
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 418 - I'm a teapot
|
|
123
|
+
* @example throw new ImATeapotError("Cannot brew coffee", "ImATeapot")
|
|
124
|
+
*/
|
|
125
|
+
export declare class ImATeapotError extends AppError {
|
|
126
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 422 - Unprocessable Content
|
|
130
|
+
* @example throw new UnprocessableContentError("Validation failed", "ValidationFailed", { errors: [...] })
|
|
131
|
+
*/
|
|
132
|
+
export declare class UnprocessableContentError extends AppError {
|
|
133
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* 429 - Too Many Requests
|
|
137
|
+
* @example throw new TooManyRequestsError("Rate limit exceeded", "RateLimitExceeded", { retryAfter: 60 })
|
|
138
|
+
*/
|
|
139
|
+
export declare class TooManyRequestsError extends AppError {
|
|
140
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 500 - Internal Server Error
|
|
144
|
+
* @example throw new InternalServerError("Database connection failed", "DatabaseError")
|
|
145
|
+
*/
|
|
146
|
+
export declare class InternalServerError extends AppError {
|
|
147
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 501 - Not Implemented
|
|
151
|
+
* @example throw new NotImplementedError("Feature coming soon", "NotImplemented")
|
|
152
|
+
*/
|
|
153
|
+
export declare class NotImplementedError extends AppError {
|
|
154
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 502 - Bad Gateway
|
|
158
|
+
* @example throw new BadGatewayError("Upstream timeout", "BadGateway")
|
|
159
|
+
*/
|
|
160
|
+
export declare class BadGatewayError extends AppError {
|
|
161
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* 503 - Service Unavailable
|
|
165
|
+
* @example throw new ServiceUnavailableError("Maintenance mode", "ServiceUnavailable", { retryAfter: 300 })
|
|
166
|
+
*/
|
|
167
|
+
export declare class ServiceUnavailableError extends AppError {
|
|
168
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* 504 - Gateway Timeout
|
|
172
|
+
* @example throw new GatewayTimeoutError("Upstream timeout", "GatewayTimeout")
|
|
173
|
+
*/
|
|
174
|
+
export declare class GatewayTimeoutError extends AppError {
|
|
175
|
+
constructor(message?: string, code?: string, meta?: Record<string, any>);
|
|
176
|
+
}
|
|
@@ -1,31 +1,68 @@
|
|
|
1
1
|
import { ArkosRequest } from "..";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { AccessAction, DetailedAccessControlRule } from "../auth";
|
|
3
|
+
/** Context passed to `before` hooks of `authenticate`. */
|
|
4
|
+
export interface AuthenticateBeforeHookContext {
|
|
5
|
+
/** The incoming request object. */
|
|
6
6
|
req: ArkosRequest;
|
|
7
|
-
/**
|
|
8
|
-
* Bypasses core logic and jumps directly to `after` hooks.
|
|
9
|
-
*/
|
|
7
|
+
/** Bypasses core logic and jumps directly to `after` hooks. */
|
|
10
8
|
skip: () => void;
|
|
11
9
|
}
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
export interface AuthAfterHookContext {
|
|
10
|
+
/** Context passed to `after` hooks of `authenticate`. */
|
|
11
|
+
export interface AuthenticateAfterHookContext {
|
|
12
|
+
/** The incoming request object. */
|
|
16
13
|
req: ArkosRequest;
|
|
17
14
|
}
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
*/
|
|
21
|
-
export interface AuthErrorHookContext {
|
|
15
|
+
/** Context passed to `onError` hooks of `authenticate`. */
|
|
16
|
+
export interface AuthenticateErrorHookContext {
|
|
17
|
+
/** The incoming request object. */
|
|
22
18
|
req: ArkosRequest;
|
|
19
|
+
/** The error thrown during authentication. */
|
|
23
20
|
error: unknown;
|
|
24
|
-
/**
|
|
25
|
-
* Suppress the error and jump to `after` hooks.
|
|
26
|
-
*/
|
|
21
|
+
/** Suppresses the error and jumps to `after` hooks. */
|
|
27
22
|
skip: () => void;
|
|
28
23
|
}
|
|
29
|
-
export type
|
|
30
|
-
export type
|
|
31
|
-
export type
|
|
24
|
+
export type AuthenticateHookHandler = (ctx: AuthenticateBeforeHookContext) => void | Promise<void>;
|
|
25
|
+
export type AuthenticateAfterHookHandler = (ctx: AuthenticateAfterHookContext) => void | Promise<void>;
|
|
26
|
+
export type AuthenticateErrorHookHandler = (ctx: AuthenticateErrorHookContext) => void | Promise<void>;
|
|
27
|
+
/** Context passed to `before` hooks of `authorize`. */
|
|
28
|
+
export interface AuthorizeBeforeHookContext {
|
|
29
|
+
/** The incoming request object. */
|
|
30
|
+
req: ArkosRequest;
|
|
31
|
+
/** The action being authorized (e.g. `"Create"`, `"Delete"`). */
|
|
32
|
+
action: AccessAction;
|
|
33
|
+
/** The resource being accessed in kebab-case (e.g. `"post"`, `"cart-item"`). */
|
|
34
|
+
resource: string;
|
|
35
|
+
/** The access control rule for this action. */
|
|
36
|
+
rule?: string[] | DetailedAccessControlRule | "*";
|
|
37
|
+
/** Bypasses core logic and jumps directly to `after` hooks. */
|
|
38
|
+
skip: () => void;
|
|
39
|
+
}
|
|
40
|
+
/** Context passed to `after` hooks of `authorize`. */
|
|
41
|
+
export interface AuthorizeAfterHookContext {
|
|
42
|
+
/** The incoming request object. */
|
|
43
|
+
req: ArkosRequest;
|
|
44
|
+
/** The action that was authorized (e.g. `"Create"`, `"Delete"`). */
|
|
45
|
+
action: AccessAction;
|
|
46
|
+
/** The resource that was accessed in kebab-case (e.g. `"post"`, `"cart-item"`). */
|
|
47
|
+
resource: string;
|
|
48
|
+
/** The access control rule that was applied. */
|
|
49
|
+
rule?: string[] | DetailedAccessControlRule | "*";
|
|
50
|
+
}
|
|
51
|
+
/** Context passed to `onError` hooks of `authorize`. */
|
|
52
|
+
export interface AuthorizeErrorHookContext {
|
|
53
|
+
/** The incoming request object. */
|
|
54
|
+
req: ArkosRequest;
|
|
55
|
+
/** The error thrown during authorization. */
|
|
56
|
+
error: unknown;
|
|
57
|
+
/** The action being authorized (e.g. `"Create"`, `"Delete"`). */
|
|
58
|
+
action: AccessAction;
|
|
59
|
+
/** The resource being accessed in kebab-case (e.g. `"post"`, `"cart-item"`). */
|
|
60
|
+
resource: string;
|
|
61
|
+
/** The access control rule for this action. */
|
|
62
|
+
rule?: string[] | DetailedAccessControlRule | "*";
|
|
63
|
+
/** Suppresses the error and jumps to `after` hooks. */
|
|
64
|
+
skip: () => void;
|
|
65
|
+
}
|
|
66
|
+
export type AuthorizeHookHandler = (ctx: AuthorizeBeforeHookContext) => void | Promise<void>;
|
|
67
|
+
export type AuthorizeAfterHookHandler = (ctx: AuthorizeAfterHookContext) => void | Promise<void>;
|
|
68
|
+
export type AuthorizeErrorHookHandler = (ctx: AuthorizeErrorHookContext) => void | Promise<void>;
|
|
@@ -731,4 +731,27 @@ export type ArkosConfig = {
|
|
|
731
731
|
};
|
|
732
732
|
};
|
|
733
733
|
};
|
|
734
|
+
/**
|
|
735
|
+
* Allows to suppress specific warnings emitted by Arkos at startup or runtime.
|
|
736
|
+
*/
|
|
737
|
+
warnings?: {
|
|
738
|
+
/**
|
|
739
|
+
* Suppresses specific warning messages.
|
|
740
|
+
*/
|
|
741
|
+
suppress?: {
|
|
742
|
+
/**
|
|
743
|
+
* Suppresses Prisma-related warnings.
|
|
744
|
+
*/
|
|
745
|
+
prisma?: {
|
|
746
|
+
/**
|
|
747
|
+
* Suppresses the warning emitted when no Prisma instance is found.
|
|
748
|
+
*/
|
|
749
|
+
noInstanceFound?: boolean;
|
|
750
|
+
/**
|
|
751
|
+
* Suppresses the warning emitted when no Prisma schema is found.
|
|
752
|
+
*/
|
|
753
|
+
noSchemaFound?: boolean;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
};
|
|
734
757
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function lenientDecode(str: string): string;
|