@vestcards/server-types 1.4.0 → 1.5.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/dist/apps/server/src/app.d.ts +98 -6
- package/dist/apps/server/src/config/env.d.ts +2 -0
- package/dist/apps/server/src/middleware/logger.d.ts +2 -0
- package/dist/apps/server/src/middleware/logger.test.d.ts +1 -0
- package/dist/apps/server/src/modules/auth/index.d.ts +4 -4
- package/dist/apps/server/src/modules/auth/lib.d.ts +3 -0
- package/dist/apps/server/src/modules/auth/tracing.d.ts +18 -0
- package/dist/apps/server/src/modules/auth/tracing.test.d.ts +1 -0
- package/dist/apps/server/src/modules/card/index.d.ts +6 -6
- package/dist/apps/server/src/modules/deck/access.d.ts +5 -0
- package/dist/apps/server/src/modules/deck/index.d.ts +4 -4
- package/dist/apps/server/src/modules/exam/exam.test.d.ts +1 -0
- package/dist/apps/server/src/modules/exam/index.d.ts +457 -0
- package/dist/apps/server/src/modules/exam/model.d.ts +18 -0
- package/dist/apps/server/src/modules/exam/service.d.ts +43 -0
- package/dist/apps/server/src/modules/library/index.d.ts +4 -4
- package/dist/apps/server/src/modules/ranking/cache.d.ts +6 -0
- package/dist/apps/server/src/modules/ranking/helpers.d.ts +9 -0
- package/dist/apps/server/src/modules/ranking/index.d.ts +4 -4
- package/dist/apps/server/src/modules/ranking/repository.d.ts +10 -0
- package/dist/apps/server/src/modules/stats/index.d.ts +4 -4
- package/dist/apps/server/src/modules/stats/service.d.ts +2 -2
- package/dist/apps/server/src/modules/study/index.d.ts +4 -4
- package/dist/apps/server/src/modules/topic/index.d.ts +4 -4
- package/dist/apps/server/src/modules/user/index.d.ts +4 -4
- package/dist/apps/server/src/modules/vesty/index.d.ts +4 -4
- package/dist/apps/server/src/modules/vesty/resilience.d.ts +40 -0
- package/dist/apps/server/src/modules/vesty/resilience.test.d.ts +1 -0
- package/dist/apps/server/src/modules/vesty/utils.d.ts +12 -19
- package/dist/apps/server/src/tests/helpers/index.d.ts +1 -0
- package/dist/apps/server/src/tests/helpers/redis-mock.d.ts +33 -0
- package/dist/apps/server/src/tests/preload/redis-mock.d.ts +1 -0
- package/dist/packages/db-core/src/db.d.ts +1 -2
- package/dist/packages/db-core/src/index.d.ts +1 -0
- package/dist/packages/db-core/src/queries/decks.d.ts +2 -0
- package/dist/packages/db-core/src/queries/index.d.ts +1 -0
- package/dist/packages/db-core/src/schema/exams.d.ts +721 -0
- package/dist/packages/db-core/src/schema/index.d.ts +1 -0
- package/dist/packages/db-core/src/tracing.d.ts +2 -0
- package/dist/packages/shared/src/constants.d.ts +2 -0
- package/dist/packages/shared/src/index.d.ts +1 -0
- package/dist/packages/shared/src/spaced-repetition/session-manager.d.ts +3 -0
- package/dist/packages/shared/src/theme/tokens/colors.d.ts +18 -18
- package/dist/packages/shared/src/types/permissions.d.ts +4 -0
- package/dist/packages/utils/src/logger/config.d.ts +12 -0
- package/dist/packages/utils/src/logger/index.d.ts +4 -1
- package/dist/packages/utils/src/logger/pino.d.ts +7 -0
- package/dist/packages/utils/src/logger/posthog.d.ts +12 -16
- package/dist/packages/utils/src/logger/timeout.d.ts +4 -0
- package/dist/packages/utils/src/logger/tracing.d.ts +34 -0
- package/package.json +1 -1
- /package/dist/apps/server/src/{libs → lib}/mappers.d.ts +0 -0
|
@@ -47,7 +47,7 @@ declare const app: Elysia<"", {
|
|
|
47
47
|
}>;
|
|
48
48
|
macroFn: {
|
|
49
49
|
readonly auth: {
|
|
50
|
-
readonly resolve: ({ request: { headers } }: {
|
|
50
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
51
51
|
body: unknown;
|
|
52
52
|
query: Record<string, string>;
|
|
53
53
|
params: {};
|
|
@@ -65,7 +65,7 @@ declare const app: Elysia<"", {
|
|
|
65
65
|
route: string;
|
|
66
66
|
request: Request;
|
|
67
67
|
store: {};
|
|
68
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
68
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
69
69
|
readonly 100: "Continue";
|
|
70
70
|
readonly 101: "Switching Protocols";
|
|
71
71
|
readonly 102: "Processing";
|
|
@@ -221,7 +221,7 @@ declare const app: Elysia<"", {
|
|
|
221
221
|
};
|
|
222
222
|
} & {
|
|
223
223
|
readonly permission: (permission?: import("@vestcards/shared").Permission) => {
|
|
224
|
-
readonly resolve: ({ request: { headers } }: {
|
|
224
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
225
225
|
body: unknown;
|
|
226
226
|
query: Record<string, string>;
|
|
227
227
|
params: {};
|
|
@@ -239,7 +239,7 @@ declare const app: Elysia<"", {
|
|
|
239
239
|
route: string;
|
|
240
240
|
request: Request;
|
|
241
241
|
store: {};
|
|
242
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
242
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
243
243
|
readonly 100: "Continue";
|
|
244
244
|
readonly 101: "Switching Protocols";
|
|
245
245
|
readonly 102: "Processing";
|
|
@@ -455,8 +455,8 @@ declare const app: Elysia<"", {
|
|
|
455
455
|
createdAt: Date;
|
|
456
456
|
updatedAt: Date;
|
|
457
457
|
userId: string;
|
|
458
|
-
content: string;
|
|
459
458
|
cardId: string;
|
|
459
|
+
content: string;
|
|
460
460
|
} | null;
|
|
461
461
|
422: {
|
|
462
462
|
type: "validation";
|
|
@@ -479,8 +479,8 @@ declare const app: Elysia<"", {
|
|
|
479
479
|
post: {
|
|
480
480
|
body: {
|
|
481
481
|
type: string;
|
|
482
|
-
content: string;
|
|
483
482
|
cardId: string;
|
|
483
|
+
content: string;
|
|
484
484
|
};
|
|
485
485
|
params: {};
|
|
486
486
|
query: {};
|
|
@@ -708,6 +708,98 @@ declare const app: Elysia<"", {
|
|
|
708
708
|
};
|
|
709
709
|
};
|
|
710
710
|
};
|
|
711
|
+
} & {
|
|
712
|
+
v1: {
|
|
713
|
+
exam: {
|
|
714
|
+
v1: {
|
|
715
|
+
auth: {
|
|
716
|
+
"validate-reset-token": {
|
|
717
|
+
get: {
|
|
718
|
+
body: unknown;
|
|
719
|
+
params: {};
|
|
720
|
+
query: {
|
|
721
|
+
token: string;
|
|
722
|
+
};
|
|
723
|
+
headers: unknown;
|
|
724
|
+
response: {
|
|
725
|
+
200: {
|
|
726
|
+
valid: boolean;
|
|
727
|
+
};
|
|
728
|
+
422: {
|
|
729
|
+
type: "validation";
|
|
730
|
+
on: string;
|
|
731
|
+
summary?: string;
|
|
732
|
+
message?: string;
|
|
733
|
+
found?: unknown;
|
|
734
|
+
property?: string;
|
|
735
|
+
expected?: string;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
} & {
|
|
745
|
+
v1: {
|
|
746
|
+
exam: {
|
|
747
|
+
filters: {
|
|
748
|
+
get: {
|
|
749
|
+
body: {};
|
|
750
|
+
params: {};
|
|
751
|
+
query: {};
|
|
752
|
+
headers: {};
|
|
753
|
+
response: {
|
|
754
|
+
200: {
|
|
755
|
+
vestibulares: string[];
|
|
756
|
+
topics: {
|
|
757
|
+
id: string;
|
|
758
|
+
name: string;
|
|
759
|
+
subject: "matemática" | "geografia" | "física" | "biologia" | "história" | "literatura" | "gramática" | "sociologia" | "química" | "filosofia" | "redação" | "artes" | "inglês";
|
|
760
|
+
}[];
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
} & {
|
|
768
|
+
v1: {
|
|
769
|
+
exam: {
|
|
770
|
+
questions: {
|
|
771
|
+
get: {
|
|
772
|
+
body: {};
|
|
773
|
+
params: {};
|
|
774
|
+
query: {
|
|
775
|
+
q?: string | undefined;
|
|
776
|
+
topicIds?: string[] | undefined;
|
|
777
|
+
subjects?: ("matemática" | "geografia" | "física" | "biologia" | "história" | "literatura" | "gramática" | "sociologia" | "química" | "filosofia" | "redação" | "artes" | "inglês")[] | undefined;
|
|
778
|
+
vestibular?: string | undefined;
|
|
779
|
+
size: number;
|
|
780
|
+
page: number;
|
|
781
|
+
};
|
|
782
|
+
headers: {};
|
|
783
|
+
response: {
|
|
784
|
+
200: {
|
|
785
|
+
data: import("./modules/exam/service").ExamQuestionListItem[];
|
|
786
|
+
pageCount: number;
|
|
787
|
+
total: number;
|
|
788
|
+
};
|
|
789
|
+
422: {
|
|
790
|
+
type: "validation";
|
|
791
|
+
on: string;
|
|
792
|
+
summary?: string;
|
|
793
|
+
message?: string;
|
|
794
|
+
found?: unknown;
|
|
795
|
+
property?: string;
|
|
796
|
+
expected?: string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
};
|
|
711
803
|
} & {
|
|
712
804
|
v1: {
|
|
713
805
|
topics: {
|
|
@@ -13,6 +13,8 @@ export declare const config: {
|
|
|
13
13
|
applePrivateKey: string;
|
|
14
14
|
appleAppBundleIdentifier: string;
|
|
15
15
|
geminiApiKey: string;
|
|
16
|
+
geminiModel: "gemini-3.1-pro-preview" | "gemini-3-pro-preview" | "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-09-2025" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-lite-preview-09-2025" | "gemini-2.0-flash" | "gemini-2.0-flash-lite";
|
|
17
|
+
geminiFallbackModel: "gemini-3.1-pro-preview" | "gemini-3-pro-preview" | "gemini-3-flash-preview" | "gemini-3.1-flash-lite-preview" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.5-flash-preview-09-2025" | "gemini-2.5-flash-lite" | "gemini-2.5-flash-lite-preview-09-2025" | "gemini-2.0-flash" | "gemini-2.0-flash-lite";
|
|
16
18
|
port: number;
|
|
17
19
|
nodeEnv: string;
|
|
18
20
|
corsOrigins: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -23,7 +23,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
23
23
|
}>;
|
|
24
24
|
macroFn: {
|
|
25
25
|
readonly auth: {
|
|
26
|
-
readonly resolve: ({ request: { headers } }: {
|
|
26
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
27
27
|
body: unknown;
|
|
28
28
|
query: Record<string, string>;
|
|
29
29
|
params: {};
|
|
@@ -41,7 +41,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -197,7 +197,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
197
197
|
};
|
|
198
198
|
} & {
|
|
199
199
|
readonly permission: (permission?: Permission) => {
|
|
200
|
-
readonly resolve: ({ request: { headers } }: {
|
|
200
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
201
201
|
body: unknown;
|
|
202
202
|
query: Record<string, string>;
|
|
203
203
|
params: {};
|
|
@@ -215,7 +215,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
215
215
|
route: string;
|
|
216
216
|
request: Request;
|
|
217
217
|
store: {};
|
|
218
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
218
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
219
219
|
readonly 100: "Continue";
|
|
220
220
|
readonly 101: "Switching Protocols";
|
|
221
221
|
readonly 102: "Processing";
|
|
@@ -240,6 +240,9 @@ export declare const auth: import("better-auth").Auth<{
|
|
|
240
240
|
basePath: string;
|
|
241
241
|
database: (options: BetterAuthOptions) => import("better-auth").DBAdapter<BetterAuthOptions>;
|
|
242
242
|
secondaryStorage: import("better-auth").SecondaryStorage | undefined;
|
|
243
|
+
verification: {
|
|
244
|
+
storeInDatabase: true;
|
|
245
|
+
};
|
|
243
246
|
emailAndPassword: {
|
|
244
247
|
enabled: true;
|
|
245
248
|
autoSignIn: true;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Entitlement } from '@vestcards/shared';
|
|
2
|
+
import type { TraceAttributes } from '@vestcards/utils/logger';
|
|
3
|
+
interface AuthTraceUser {
|
|
4
|
+
email?: string | null;
|
|
5
|
+
entityId?: string | null;
|
|
6
|
+
id: string;
|
|
7
|
+
role?: string | null;
|
|
8
|
+
}
|
|
9
|
+
interface AuthTraceContext {
|
|
10
|
+
completedProfile?: boolean;
|
|
11
|
+
entitlements?: Entitlement[];
|
|
12
|
+
user: AuthTraceUser;
|
|
13
|
+
}
|
|
14
|
+
export declare function getAuthTraceAttributes({ completedProfile, entitlements, user }: AuthTraceContext): Promise<TraceAttributes>;
|
|
15
|
+
export declare function getTraceSpanFromStore(store: {
|
|
16
|
+
traceSpan?: unknown;
|
|
17
|
+
}): unknown;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,7 +24,7 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
24
24
|
}>;
|
|
25
25
|
macroFn: {
|
|
26
26
|
readonly auth: {
|
|
27
|
-
readonly resolve: ({ request: { headers } }: {
|
|
27
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
28
28
|
body: unknown;
|
|
29
29
|
query: Record<string, string>;
|
|
30
30
|
params: {};
|
|
@@ -42,7 +42,7 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
42
42
|
route: string;
|
|
43
43
|
request: Request;
|
|
44
44
|
store: {};
|
|
45
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
45
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
46
46
|
readonly 100: "Continue";
|
|
47
47
|
readonly 101: "Switching Protocols";
|
|
48
48
|
readonly 102: "Processing";
|
|
@@ -198,7 +198,7 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
198
198
|
};
|
|
199
199
|
} & {
|
|
200
200
|
readonly permission: (permission?: import("@vestcards/shared").Permission) => {
|
|
201
|
-
readonly resolve: ({ request: { headers } }: {
|
|
201
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
202
202
|
body: unknown;
|
|
203
203
|
query: Record<string, string>;
|
|
204
204
|
params: {};
|
|
@@ -216,7 +216,7 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
216
216
|
route: string;
|
|
217
217
|
request: Request;
|
|
218
218
|
store: {};
|
|
219
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
219
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
220
220
|
readonly 100: "Continue";
|
|
221
221
|
readonly 101: "Switching Protocols";
|
|
222
222
|
readonly 102: "Processing";
|
|
@@ -397,8 +397,8 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
397
397
|
createdAt: Date;
|
|
398
398
|
updatedAt: Date;
|
|
399
399
|
userId: string;
|
|
400
|
-
content: string;
|
|
401
400
|
cardId: string;
|
|
401
|
+
content: string;
|
|
402
402
|
} | null;
|
|
403
403
|
422: {
|
|
404
404
|
type: "validation";
|
|
@@ -421,8 +421,8 @@ export declare const cardModule: Elysia<"/v1/card", {
|
|
|
421
421
|
post: {
|
|
422
422
|
body: {
|
|
423
423
|
type: string;
|
|
424
|
-
content: string;
|
|
425
424
|
cardId: string;
|
|
425
|
+
content: string;
|
|
426
426
|
};
|
|
427
427
|
params: {};
|
|
428
428
|
query: {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDeckDetail } from '@vestcards/shared';
|
|
2
|
+
export declare function assertDeckIsOfficialOrOwned(deck: IDeckDetail, entityId: string | null | undefined): {
|
|
3
|
+
isOwner: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function requiresPremiumDeckAccess(deck: IDeckDetail): boolean;
|
|
@@ -24,7 +24,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
|
|
|
24
24
|
}>;
|
|
25
25
|
macroFn: {
|
|
26
26
|
readonly auth: {
|
|
27
|
-
readonly resolve: ({ request: { headers } }: {
|
|
27
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
28
28
|
body: unknown;
|
|
29
29
|
query: Record<string, string>;
|
|
30
30
|
params: {};
|
|
@@ -42,7 +42,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
|
|
|
42
42
|
route: string;
|
|
43
43
|
request: Request;
|
|
44
44
|
store: {};
|
|
45
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
45
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
46
46
|
readonly 100: "Continue";
|
|
47
47
|
readonly 101: "Switching Protocols";
|
|
48
48
|
readonly 102: "Processing";
|
|
@@ -198,7 +198,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
|
|
|
198
198
|
};
|
|
199
199
|
} & {
|
|
200
200
|
readonly permission: (permission?: import("@vestcards/shared").Permission) => {
|
|
201
|
-
readonly resolve: ({ request: { headers } }: {
|
|
201
|
+
readonly resolve: ({ request: { headers }, store }: {
|
|
202
202
|
body: unknown;
|
|
203
203
|
query: Record<string, string>;
|
|
204
204
|
params: {};
|
|
@@ -216,7 +216,7 @@ export declare const deckModule: Elysia<"/v1/decks", {
|
|
|
216
216
|
route: string;
|
|
217
217
|
request: Request;
|
|
218
218
|
store: {};
|
|
219
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 |
|
|
219
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 500 | 400 | 401 | 403 | 404 | 409 | 429 | 100 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
220
220
|
readonly 100: "Continue";
|
|
221
221
|
readonly 101: "Switching Protocols";
|
|
222
222
|
readonly 102: "Processing";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|