@navservice/core 1.116.0 → 1.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es/helpers/_set_response.d.ts +42 -33
- package/build/es/helpers/_token.d.ts +2 -2
- package/build/es/helpers/index.d.ts +62 -91
- package/build/es/helpers.js +119 -70
- package/build/es/index.js +5 -3
- package/build/es/types/_type_response.d.ts +4 -4
- package/build/lib/helpers/_set_response.d.ts +42 -33
- package/build/lib/helpers/_token.d.ts +2 -2
- package/build/lib/helpers/index.d.ts +62 -91
- package/build/lib/helpers.cjs +119 -70
- package/build/lib/index.cjs +5 -3
- package/build/lib/types/_type_response.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,76 +1,81 @@
|
|
|
1
1
|
import t from "../types";
|
|
2
|
-
type ResponseCOmmit = Omit<t.Geral.Response.C.Input, "type" | "code" | "status"
|
|
3
|
-
|
|
2
|
+
type ResponseCOmmit = Omit<t.Geral.Response.C.Input, "type" | "code" | "status"> & {
|
|
3
|
+
fn: string;
|
|
4
|
+
};
|
|
5
|
+
type ResponseErrorOmmit = Omit<t.Geral.Response.Error.Input, "type" | "code" | "status"> & {
|
|
6
|
+
fn: string;
|
|
7
|
+
};
|
|
4
8
|
export type ResponseCPayload<T = unknown> = Omit<t.Geral.Response.C.Input<T>, "c">;
|
|
5
9
|
declare const set_response: {
|
|
6
10
|
c: {
|
|
7
|
-
SUCCESS<T>({ message, results, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
11
|
+
SUCCESS<T>({ message, results, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
8
12
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
9
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
13
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
10
14
|
type: "success" | "warning" | "error";
|
|
11
15
|
message?: string | undefined;
|
|
12
16
|
results: any;
|
|
13
17
|
}, 200, "json">;
|
|
14
|
-
ACTION_REQUIRED<T>({ message, results, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
18
|
+
ACTION_REQUIRED<T>({ message, results, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
15
19
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
16
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
20
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
17
21
|
type: "success" | "warning" | "error";
|
|
18
22
|
message?: string | undefined;
|
|
19
23
|
results: any;
|
|
20
24
|
}, 428, "json">;
|
|
21
|
-
CREATED<T>({ message, results, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
25
|
+
CREATED<T>({ message, results, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
22
26
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
23
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
27
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
24
28
|
type: "success" | "warning" | "error";
|
|
25
29
|
message?: string | undefined;
|
|
26
30
|
results: any;
|
|
27
31
|
}, 201, "json">;
|
|
28
|
-
WARNING<T>({ message, results, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
32
|
+
WARNING<T>({ message, results, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
29
33
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
30
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
34
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
31
35
|
type: "success" | "warning" | "error";
|
|
32
36
|
message?: string | undefined;
|
|
33
37
|
results: any;
|
|
34
38
|
}, 400, "json">;
|
|
35
|
-
AUTHORIZATION_ERROR<T>({ message, results, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
39
|
+
AUTHORIZATION_ERROR<T>({ message, results, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
36
40
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
37
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
41
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
38
42
|
type: "success" | "warning" | "error";
|
|
39
43
|
message?: string | undefined;
|
|
40
44
|
results: any;
|
|
41
45
|
}, 405, "json">;
|
|
42
|
-
SERVER_ERROR<T>({ error, c }: {
|
|
46
|
+
SERVER_ERROR<T>({ error, c, fn }: {
|
|
43
47
|
error: any;
|
|
44
48
|
c: t.Context;
|
|
49
|
+
fn: string;
|
|
45
50
|
}): Response & import("hono").TypedResponse<{
|
|
46
51
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
47
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
52
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
48
53
|
type: "success" | "warning" | "error";
|
|
49
54
|
message?: string | undefined;
|
|
50
55
|
results: any;
|
|
51
56
|
}, any, "json">;
|
|
52
|
-
UNAUTHORIZED<T>({ message, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
57
|
+
UNAUTHORIZED<T>({ message, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
53
58
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
54
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
59
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
55
60
|
type: "success" | "warning" | "error";
|
|
56
61
|
message?: string | undefined;
|
|
57
62
|
results: any;
|
|
58
63
|
}, 401, "json">;
|
|
59
|
-
INVALID_TOKEN<T>({ message, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
64
|
+
INVALID_TOKEN<T>({ message, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
60
65
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
61
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
66
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
62
67
|
type: "success" | "warning" | "error";
|
|
63
68
|
message?: string | undefined;
|
|
64
69
|
results: any;
|
|
65
70
|
}, 409, "json">;
|
|
66
|
-
NOT_FOUND<T>({ message, c }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
71
|
+
NOT_FOUND<T>({ message, c, fn }: ResponseCOmmit): Response & import("hono").TypedResponse<{
|
|
67
72
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
68
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
73
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
69
74
|
type: "success" | "warning" | "error";
|
|
70
75
|
message?: string | undefined;
|
|
71
76
|
results: any;
|
|
72
77
|
}, 404, "json">;
|
|
73
|
-
SUCCESS_FILE({ message, file_buffer, content_type, filename, c }: t.Geral.Response.C.FileResponseParams): Promise<(Response & import("hono").TypedResponse<{
|
|
78
|
+
SUCCESS_FILE({ message, file_buffer, content_type, filename, c, fn }: t.Geral.Response.C.FileResponseParams): Promise<(Response & import("hono").TypedResponse<{
|
|
74
79
|
readonly byteLength: number;
|
|
75
80
|
slice: never;
|
|
76
81
|
readonly maxByteLength: number;
|
|
@@ -125,26 +130,30 @@ declare const set_response: {
|
|
|
125
130
|
with: never;
|
|
126
131
|
}, 200, "json">) | (Response & import("hono").TypedResponse<{
|
|
127
132
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
128
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
133
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
129
134
|
type: "success" | "warning" | "error";
|
|
130
135
|
message?: string | undefined;
|
|
131
136
|
results: any;
|
|
132
137
|
}, 200, "json">)>;
|
|
133
138
|
};
|
|
134
139
|
error: {
|
|
135
|
-
ACTION_REQUIRED({ message, results }: ResponseErrorOmmit): void;
|
|
136
|
-
WARNING({ message, results }: ResponseErrorOmmit): void;
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
ACTION_REQUIRED({ message, results, fn }: ResponseErrorOmmit): void;
|
|
141
|
+
WARNING({ message, results, fn }: ResponseErrorOmmit): void;
|
|
142
|
+
ERROR({ message, results, fn }: ResponseErrorOmmit): void;
|
|
143
|
+
TOKEN_AUTH_USER({ message, results, fn }: ResponseErrorOmmit): void;
|
|
144
|
+
AUTHORIZATION_ERROR({ message, results, fn }: ResponseErrorOmmit): void;
|
|
145
|
+
DATABASE_ERROR({ message, erro, fn }: ResponseErrorOmmit & {
|
|
146
|
+
erro: any;
|
|
147
|
+
}): void;
|
|
148
|
+
SCHEMA_VALIDATION({ results, fn }: ResponseErrorOmmit): void;
|
|
149
|
+
UNAUTHORIZED({ message, fn }: ResponseErrorOmmit): void;
|
|
150
|
+
INTEGRATION_ERROR({ message, fn, erro }: ResponseErrorOmmit & {
|
|
139
151
|
erro: any;
|
|
140
152
|
}): void;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
NOT_FOUND({ message }: ResponseErrorOmmit): void;
|
|
146
|
-
BUSINESS_RULE_VIOLATION({ message, results }: ResponseErrorOmmit): void;
|
|
147
|
-
PLAN_FORBIDDEN({ message, results }: ResponseErrorOmmit): void;
|
|
153
|
+
INVALID_TOKEN({ message, fn, results }: ResponseErrorOmmit): void;
|
|
154
|
+
NOT_FOUND({ message, fn, results }: ResponseErrorOmmit): void;
|
|
155
|
+
BUSINESS_RULE_VIOLATION({ message, results, fn }: ResponseErrorOmmit): void;
|
|
156
|
+
PLAN_FORBIDDEN({ message, results, fn }: ResponseErrorOmmit): void;
|
|
148
157
|
};
|
|
149
158
|
};
|
|
150
159
|
export default set_response;
|
|
@@ -3,7 +3,7 @@ import t from '../types';
|
|
|
3
3
|
declare const _token: {
|
|
4
4
|
verificar_token(c: t.Context, next: Next): Promise<void | (Response & import("hono").TypedResponse<{
|
|
5
5
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
6
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
6
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
7
7
|
type: "success" | "warning" | "error";
|
|
8
8
|
message?: string | undefined;
|
|
9
9
|
results: any;
|
|
@@ -13,7 +13,7 @@ declare const _token: {
|
|
|
13
13
|
}): Promise<string>;
|
|
14
14
|
verificar_token_micro_servico(c: t.Context, next: Next): Promise<void | (Response & import("hono").TypedResponse<{
|
|
15
15
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
16
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
16
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
17
17
|
type: "success" | "warning" | "error";
|
|
18
18
|
message?: string | undefined;
|
|
19
19
|
results: any;
|
|
@@ -1,105 +1,90 @@
|
|
|
1
1
|
declare const helpers: {
|
|
2
2
|
set_response: {
|
|
3
3
|
c: {
|
|
4
|
-
SUCCESS<T>({ message, results, c }: {
|
|
5
|
-
|
|
6
|
-
results: any;
|
|
7
|
-
c: import("..").TypesCore.Context;
|
|
4
|
+
SUCCESS<T>({ message, results, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
5
|
+
fn: string;
|
|
8
6
|
}): Response & import("hono").TypedResponse<{
|
|
9
7
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
10
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
8
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
11
9
|
type: "success" | "warning" | "error";
|
|
12
10
|
message?: string | undefined;
|
|
13
11
|
results: any;
|
|
14
12
|
}, 200, "json">;
|
|
15
|
-
ACTION_REQUIRED<T>({ message, results, c }: {
|
|
16
|
-
|
|
17
|
-
results: any;
|
|
18
|
-
c: import("..").TypesCore.Context;
|
|
13
|
+
ACTION_REQUIRED<T>({ message, results, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
14
|
+
fn: string;
|
|
19
15
|
}): Response & import("hono").TypedResponse<{
|
|
20
16
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
21
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
17
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
22
18
|
type: "success" | "warning" | "error";
|
|
23
19
|
message?: string | undefined;
|
|
24
20
|
results: any;
|
|
25
21
|
}, 428, "json">;
|
|
26
|
-
CREATED<T>({ message, results, c }: {
|
|
27
|
-
|
|
28
|
-
results: any;
|
|
29
|
-
c: import("..").TypesCore.Context;
|
|
22
|
+
CREATED<T>({ message, results, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
23
|
+
fn: string;
|
|
30
24
|
}): Response & import("hono").TypedResponse<{
|
|
31
25
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
32
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
26
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
33
27
|
type: "success" | "warning" | "error";
|
|
34
28
|
message?: string | undefined;
|
|
35
29
|
results: any;
|
|
36
30
|
}, 201, "json">;
|
|
37
|
-
WARNING<T>({ message, results, c }: {
|
|
38
|
-
|
|
39
|
-
results: any;
|
|
40
|
-
c: import("..").TypesCore.Context;
|
|
31
|
+
WARNING<T>({ message, results, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
32
|
+
fn: string;
|
|
41
33
|
}): Response & import("hono").TypedResponse<{
|
|
42
34
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
43
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
35
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
44
36
|
type: "success" | "warning" | "error";
|
|
45
37
|
message?: string | undefined;
|
|
46
38
|
results: any;
|
|
47
39
|
}, 400, "json">;
|
|
48
|
-
AUTHORIZATION_ERROR<T>({ message, results, c }: {
|
|
49
|
-
|
|
50
|
-
results: any;
|
|
51
|
-
c: import("..").TypesCore.Context;
|
|
40
|
+
AUTHORIZATION_ERROR<T>({ message, results, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
41
|
+
fn: string;
|
|
52
42
|
}): Response & import("hono").TypedResponse<{
|
|
53
43
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
54
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
44
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
55
45
|
type: "success" | "warning" | "error";
|
|
56
46
|
message?: string | undefined;
|
|
57
47
|
results: any;
|
|
58
48
|
}, 405, "json">;
|
|
59
|
-
SERVER_ERROR<T>({ error, c }: {
|
|
49
|
+
SERVER_ERROR<T>({ error, c, fn }: {
|
|
60
50
|
error: any;
|
|
61
51
|
c: import("..").TypesCore.Context;
|
|
52
|
+
fn: string;
|
|
62
53
|
}): Response & import("hono").TypedResponse<{
|
|
63
54
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
64
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
55
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
65
56
|
type: "success" | "warning" | "error";
|
|
66
57
|
message?: string | undefined;
|
|
67
58
|
results: any;
|
|
68
59
|
}, any, "json">;
|
|
69
|
-
UNAUTHORIZED<T>({ message, c }: {
|
|
70
|
-
|
|
71
|
-
results: any;
|
|
72
|
-
c: import("..").TypesCore.Context;
|
|
60
|
+
UNAUTHORIZED<T>({ message, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
61
|
+
fn: string;
|
|
73
62
|
}): Response & import("hono").TypedResponse<{
|
|
74
63
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
75
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
64
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
76
65
|
type: "success" | "warning" | "error";
|
|
77
66
|
message?: string | undefined;
|
|
78
67
|
results: any;
|
|
79
68
|
}, 401, "json">;
|
|
80
|
-
INVALID_TOKEN<T>({ message, c }: {
|
|
81
|
-
|
|
82
|
-
results: any;
|
|
83
|
-
c: import("..").TypesCore.Context;
|
|
69
|
+
INVALID_TOKEN<T>({ message, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
70
|
+
fn: string;
|
|
84
71
|
}): Response & import("hono").TypedResponse<{
|
|
85
72
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
86
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
73
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
87
74
|
type: "success" | "warning" | "error";
|
|
88
75
|
message?: string | undefined;
|
|
89
76
|
results: any;
|
|
90
77
|
}, 409, "json">;
|
|
91
|
-
NOT_FOUND<T>({ message, c }: {
|
|
92
|
-
|
|
93
|
-
results: any;
|
|
94
|
-
c: import("..").TypesCore.Context;
|
|
78
|
+
NOT_FOUND<T>({ message, c, fn }: Omit<import("../types/_type_response").default.C.Input<unknown>, "status" | "code" | "type"> & {
|
|
79
|
+
fn: string;
|
|
95
80
|
}): Response & import("hono").TypedResponse<{
|
|
96
81
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
97
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
82
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
98
83
|
type: "success" | "warning" | "error";
|
|
99
84
|
message?: string | undefined;
|
|
100
85
|
results: any;
|
|
101
86
|
}, 404, "json">;
|
|
102
|
-
SUCCESS_FILE({ message, file_buffer, content_type, filename, c }: import("../types/_type_response").default.C.FileResponseParams): Promise<(Response & import("hono").TypedResponse<{
|
|
87
|
+
SUCCESS_FILE({ message, file_buffer, content_type, filename, c, fn }: import("../types/_type_response").default.C.FileResponseParams): Promise<(Response & import("hono").TypedResponse<{
|
|
103
88
|
readonly byteLength: number;
|
|
104
89
|
slice: never;
|
|
105
90
|
readonly maxByteLength: number;
|
|
@@ -154,76 +139,62 @@ declare const helpers: {
|
|
|
154
139
|
with: never;
|
|
155
140
|
}, 200, "json">) | (Response & import("hono").TypedResponse<{
|
|
156
141
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
157
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
142
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
158
143
|
type: "success" | "warning" | "error";
|
|
159
144
|
message?: string | undefined;
|
|
160
145
|
results: any;
|
|
161
146
|
}, 200, "json">)>;
|
|
162
147
|
};
|
|
163
148
|
error: {
|
|
164
|
-
ACTION_REQUIRED({ message, results }: {
|
|
165
|
-
|
|
166
|
-
results?: unknown;
|
|
167
|
-
fn?: string | undefined;
|
|
149
|
+
ACTION_REQUIRED({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
150
|
+
fn: string;
|
|
168
151
|
}): void;
|
|
169
|
-
WARNING({ message, results }: {
|
|
170
|
-
|
|
171
|
-
results?: unknown;
|
|
172
|
-
fn?: string | undefined;
|
|
152
|
+
WARNING({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
153
|
+
fn: string;
|
|
173
154
|
}): void;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
results?: unknown;
|
|
177
|
-
fn?: string | undefined;
|
|
155
|
+
ERROR({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
156
|
+
fn: string;
|
|
178
157
|
}): void;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
158
|
+
TOKEN_AUTH_USER({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
159
|
+
fn: string;
|
|
160
|
+
}): void;
|
|
161
|
+
AUTHORIZATION_ERROR({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
162
|
+
fn: string;
|
|
163
|
+
}): void;
|
|
164
|
+
DATABASE_ERROR({ message, erro, fn }: (Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
165
|
+
fn: string;
|
|
166
|
+
}) & {
|
|
184
167
|
erro: any;
|
|
185
168
|
}): void;
|
|
186
|
-
SCHEMA_VALIDATION({ results }: {
|
|
187
|
-
|
|
188
|
-
results?: unknown;
|
|
189
|
-
fn?: string | undefined;
|
|
169
|
+
SCHEMA_VALIDATION({ results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
170
|
+
fn: string;
|
|
190
171
|
}): void;
|
|
191
|
-
UNAUTHORIZED({ message }: {
|
|
192
|
-
|
|
193
|
-
results?: unknown;
|
|
194
|
-
fn?: string | undefined;
|
|
172
|
+
UNAUTHORIZED({ message, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
173
|
+
fn: string;
|
|
195
174
|
}): void;
|
|
196
|
-
INTEGRATION_ERROR({ message }: {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
175
|
+
INTEGRATION_ERROR({ message, fn, erro }: (Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
176
|
+
fn: string;
|
|
177
|
+
}) & {
|
|
178
|
+
erro: any;
|
|
200
179
|
}): void;
|
|
201
|
-
INVALID_TOKEN({ message }: {
|
|
202
|
-
|
|
203
|
-
results?: unknown;
|
|
204
|
-
fn?: string | undefined;
|
|
180
|
+
INVALID_TOKEN({ message, fn, results }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
181
|
+
fn: string;
|
|
205
182
|
}): void;
|
|
206
|
-
NOT_FOUND({ message }: {
|
|
207
|
-
|
|
208
|
-
results?: unknown;
|
|
209
|
-
fn?: string | undefined;
|
|
183
|
+
NOT_FOUND({ message, fn, results }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
184
|
+
fn: string;
|
|
210
185
|
}): void;
|
|
211
|
-
BUSINESS_RULE_VIOLATION({ message, results }: {
|
|
212
|
-
|
|
213
|
-
results?: unknown;
|
|
214
|
-
fn?: string | undefined;
|
|
186
|
+
BUSINESS_RULE_VIOLATION({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
187
|
+
fn: string;
|
|
215
188
|
}): void;
|
|
216
|
-
PLAN_FORBIDDEN({ message, results }: {
|
|
217
|
-
|
|
218
|
-
results?: unknown;
|
|
219
|
-
fn?: string | undefined;
|
|
189
|
+
PLAN_FORBIDDEN({ message, results, fn }: Omit<import("../types/_type_response").default.Error.Input<unknown>, "status" | "code" | "type"> & {
|
|
190
|
+
fn: string;
|
|
220
191
|
}): void;
|
|
221
192
|
};
|
|
222
193
|
};
|
|
223
194
|
token: {
|
|
224
195
|
verificar_token(c: import("..").TypesCore.Context, next: import("hono").Next): Promise<void | (Response & import("hono").TypedResponse<{
|
|
225
196
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
226
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
197
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
227
198
|
type: "success" | "warning" | "error";
|
|
228
199
|
message?: string | undefined;
|
|
229
200
|
results: any;
|
|
@@ -233,7 +204,7 @@ declare const helpers: {
|
|
|
233
204
|
}): Promise<string>;
|
|
234
205
|
verificar_token_micro_servico(c: import("..").TypesCore.Context, next: import("hono").Next): Promise<void | (Response & import("hono").TypedResponse<{
|
|
235
206
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
236
|
-
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR";
|
|
207
|
+
code: "SUCCESS" | "ACTION_REQUIRED" | "CREATED" | "WARNING" | "ERROR" | "AUTHORIZATION_ERROR" | "SCHEMA_VALIDATION" | "SERVER_ERROR" | "UNAUTHORIZED" | "INVALID_TOKEN" | "NOT_FOUND" | "SUCCESS_FILE" | "DATABASE_ERROR" | "BUSINESS_RULE_VIOLATION" | "PLAN_FORBIDDEN" | "INTEGRATION_ERROR" | "TOKEN_AUTH_USER";
|
|
237
208
|
type: "success" | "warning" | "error";
|
|
238
209
|
message?: string | undefined;
|
|
239
210
|
results: any;
|