@studious-lms/server 1.0.3 → 1.0.6

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.
@@ -1,20 +1,20 @@
1
1
  import { z } from "zod";
2
- export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
2
+ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
3
3
  ctx: import("../trpc").Context;
4
4
  meta: object;
5
5
  errorShape: {
6
6
  data: {
7
7
  zodError: z.typeToFlattenedError<any, string> | null;
8
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
8
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9
9
  httpStatus: number;
10
10
  path?: string;
11
11
  stack?: string;
12
12
  };
13
13
  message: string;
14
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
14
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
15
15
  };
16
16
  transformer: false;
17
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
18
18
  get: import("@trpc/server").TRPCQueryProcedure<{
19
19
  input: {
20
20
  id: string;
@@ -71,6 +71,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
71
71
  location: string | null;
72
72
  };
73
73
  };
74
+ meta: object;
74
75
  }>;
75
76
  create: import("@trpc/server").TRPCMutationProcedure<{
76
77
  input: {
@@ -99,6 +100,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
99
100
  location: string | null;
100
101
  };
101
102
  };
103
+ meta: object;
102
104
  }>;
103
105
  update: import("@trpc/server").TRPCMutationProcedure<{
104
106
  input: {
@@ -126,6 +128,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
126
128
  location: string | null;
127
129
  };
128
130
  };
131
+ meta: object;
129
132
  }>;
130
133
  delete: import("@trpc/server").TRPCMutationProcedure<{
131
134
  input: {
@@ -134,6 +137,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
134
137
  output: {
135
138
  success: boolean;
136
139
  };
140
+ meta: object;
137
141
  }>;
138
142
  attachAssignment: import("@trpc/server").TRPCMutationProcedure<{
139
143
  input: {
@@ -174,6 +178,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
174
178
  eventId: string | null;
175
179
  };
176
180
  };
181
+ meta: object;
177
182
  }>;
178
183
  detachAssignment: import("@trpc/server").TRPCMutationProcedure<{
179
184
  input: {
@@ -214,6 +219,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
214
219
  eventId: string | null;
215
220
  };
216
221
  };
222
+ meta: object;
217
223
  }>;
218
224
  getAvailableAssignments: import("@trpc/server").TRPCQueryProcedure<{
219
225
  input: {
@@ -244,6 +250,7 @@ export declare const eventRouter: import("@trpc/server/dist/unstable-core-do-not
244
250
  }[];
245
251
  }[];
246
252
  };
253
+ meta: object;
247
254
  }>;
248
255
  }>>;
249
256
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/routers/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4etB,CAAC"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/routers/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4etB,CAAC"}
@@ -1,20 +1,20 @@
1
1
  import { z } from "zod";
2
- export declare const fileRouter: import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
2
+ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
3
3
  ctx: import("../trpc").Context;
4
4
  meta: object;
5
5
  errorShape: {
6
6
  data: {
7
7
  zodError: z.typeToFlattenedError<any, string> | null;
8
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
8
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9
9
  httpStatus: number;
10
10
  path?: string;
11
11
  stack?: string;
12
12
  };
13
13
  message: string;
14
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
14
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
15
15
  };
16
16
  transformer: false;
17
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
18
18
  getSignedUrl: import("@trpc/server").TRPCMutationProcedure<{
19
19
  input: {
20
20
  fileId: string;
@@ -22,6 +22,7 @@ export declare const fileRouter: import("@trpc/server/dist/unstable-core-do-not-
22
22
  output: {
23
23
  signedUrl: string;
24
24
  };
25
+ meta: object;
25
26
  }>;
26
27
  }>>;
27
28
  //# sourceMappingURL=file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/routers/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;GAwFrB,CAAC"}
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/routers/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GAwFrB,CAAC"}
@@ -1,20 +1,20 @@
1
1
  import { z } from "zod";
2
- export declare const sectionRouter: import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
2
+ export declare const sectionRouter: import("@trpc/server").TRPCBuiltRouter<{
3
3
  ctx: import("../trpc").Context;
4
4
  meta: object;
5
5
  errorShape: {
6
6
  data: {
7
7
  zodError: z.typeToFlattenedError<any, string> | null;
8
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
8
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9
9
  httpStatus: number;
10
10
  path?: string;
11
11
  stack?: string;
12
12
  };
13
13
  message: string;
14
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
14
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
15
15
  };
16
16
  transformer: false;
17
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
18
18
  create: import("@trpc/server").TRPCMutationProcedure<{
19
19
  input: {
20
20
  name: string;
@@ -25,6 +25,7 @@ export declare const sectionRouter: import("@trpc/server/dist/unstable-core-do-n
25
25
  name: string;
26
26
  classId: string;
27
27
  };
28
+ meta: object;
28
29
  }>;
29
30
  update: import("@trpc/server").TRPCMutationProcedure<{
30
31
  input: {
@@ -37,6 +38,7 @@ export declare const sectionRouter: import("@trpc/server/dist/unstable-core-do-n
37
38
  name: string;
38
39
  classId: string;
39
40
  };
41
+ meta: object;
40
42
  }>;
41
43
  delete: import("@trpc/server").TRPCMutationProcedure<{
42
44
  input: {
@@ -46,6 +48,7 @@ export declare const sectionRouter: import("@trpc/server/dist/unstable-core-do-n
46
48
  output: {
47
49
  id: string;
48
50
  };
51
+ meta: object;
49
52
  }>;
50
53
  }>>;
51
54
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/routers/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHxB,CAAC"}
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/routers/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHxB,CAAC"}
@@ -1,20 +1,20 @@
1
1
  import { z } from "zod";
2
- export declare const userRouter: import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
2
+ export declare const userRouter: import("@trpc/server").TRPCBuiltRouter<{
3
3
  ctx: import("../trpc").Context;
4
4
  meta: object;
5
5
  errorShape: {
6
6
  data: {
7
7
  zodError: z.typeToFlattenedError<any, string> | null;
8
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
8
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9
9
  httpStatus: number;
10
10
  path?: string;
11
11
  stack?: string;
12
12
  };
13
13
  message: string;
14
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
14
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
15
15
  };
16
16
  transformer: false;
17
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<{
17
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
18
18
  getProfile: import("@trpc/server").TRPCQueryProcedure<{
19
19
  input: void;
20
20
  output: {
@@ -25,6 +25,7 @@ export declare const userRouter: import("@trpc/server/dist/unstable-core-do-not-
25
25
  userId: string;
26
26
  } | null;
27
27
  };
28
+ meta: object;
28
29
  }>;
29
30
  updateProfile: import("@trpc/server").TRPCMutationProcedure<{
30
31
  input: {
@@ -44,6 +45,7 @@ export declare const userRouter: import("@trpc/server/dist/unstable-core-do-not-
44
45
  userId: string;
45
46
  } | null;
46
47
  };
48
+ meta: object;
47
49
  }>;
48
50
  }>>;
49
51
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/routers/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DrB,CAAC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/routers/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DrB,CAAC"}
package/dist/trpc.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { TRPCError } from '@trpc/server';
1
2
  import { Request, Response } from 'express';
2
3
  import { z } from 'zod';
3
4
  interface CreateContextOptions {
@@ -16,132 +17,84 @@ export type Context = {
16
17
  };
17
18
  };
18
19
  export declare const createTRPCContext: (opts: CreateContextOptions) => Promise<Context>;
19
- export declare const t: {
20
- _config: import("@trpc/server/dist/unstable-core-do-not-import").RootConfig<{
21
- ctx: Context;
22
- meta: object;
23
- errorShape: {
24
- data: {
25
- zodError: z.typeToFlattenedError<any, string> | null;
26
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
27
- httpStatus: number;
28
- path?: string;
29
- stack?: string;
30
- };
31
- message: string;
32
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
33
- };
34
- transformer: false;
35
- }>;
36
- procedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<Context, object, object, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
37
- middleware: <$ContextOverrides>(fn: import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareFunction<Context, object, object, $ContextOverrides, unknown>) => import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareBuilder<Context, object, $ContextOverrides, unknown>;
38
- router: <TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput) => import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
39
- ctx: Context;
40
- meta: object;
41
- errorShape: {
42
- data: {
43
- zodError: z.typeToFlattenedError<any, string> | null;
44
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
45
- httpStatus: number;
46
- path?: string;
47
- stack?: string;
48
- };
49
- message: string;
50
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
51
- };
52
- transformer: false;
53
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
54
- mergeRouters: typeof import("@trpc/server/dist/unstable-core-do-not-import").mergeRouters;
55
- createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/dist/unstable-core-do-not-import").Router<{
56
- ctx: Context;
57
- meta: object;
58
- errorShape: {
59
- data: {
60
- zodError: z.typeToFlattenedError<any, string> | null;
61
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
62
- httpStatus: number;
63
- path?: string;
64
- stack?: string;
65
- };
66
- message: string;
67
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
68
- };
69
- transformer: false;
70
- }, TRecord>, "_def">) => import("@trpc/server/dist/unstable-core-do-not-import").RouterCaller<{
71
- ctx: Context;
72
- meta: object;
73
- errorShape: {
74
- data: {
75
- zodError: z.typeToFlattenedError<any, string> | null;
76
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
77
- httpStatus: number;
78
- path?: string;
79
- stack?: string;
80
- };
81
- message: string;
82
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
20
+ export declare const t: import("@trpc/server").TRPCRootObject<Context, object, {
21
+ errorFormatter({ shape, error }: {
22
+ error: TRPCError;
23
+ type: import("@trpc/server").ProcedureType | "unknown";
24
+ path: string | undefined;
25
+ input: unknown;
26
+ ctx: Context | undefined;
27
+ shape: import("@trpc/server").TRPCDefaultErrorShape;
28
+ }): {
29
+ data: {
30
+ zodError: z.typeToFlattenedError<any, string> | null;
31
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
32
+ httpStatus: number;
33
+ path?: string;
34
+ stack?: string;
83
35
  };
84
- transformer: false;
85
- }, TRecord>;
86
- };
87
- export declare const createTRPCRouter: <TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput) => import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
36
+ message: string;
37
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
38
+ };
39
+ }, {
88
40
  ctx: Context;
89
41
  meta: object;
90
42
  errorShape: {
91
43
  data: {
92
44
  zodError: z.typeToFlattenedError<any, string> | null;
93
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
45
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
94
46
  httpStatus: number;
95
47
  path?: string;
96
48
  stack?: string;
97
49
  };
98
50
  message: string;
99
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
51
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
100
52
  };
101
53
  transformer: false;
102
- }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
103
- export declare const publicProcedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<Context, object, {}, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
104
- export declare const protectedProcedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<Context, object, {}, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
105
- export declare const protectedClassMemberProcedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<Context, object, {}, z.objectInputType<{
106
- classId: z.ZodString;
107
- }, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
108
- classId: z.ZodString;
109
- }, z.ZodTypeAny, "passthrough">, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
110
- export declare const protectedTeacherProcedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<Context, object, {}, z.objectInputType<{
111
- classId: z.ZodString;
112
- }, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
113
- classId: z.ZodString;
114
- }, z.ZodTypeAny, "passthrough">, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
115
- export declare const createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/dist/unstable-core-do-not-import").Router<{
54
+ }>;
55
+ export declare const createTRPCRouter: import("@trpc/server").TRPCRouterBuilder<{
116
56
  ctx: Context;
117
57
  meta: object;
118
58
  errorShape: {
119
59
  data: {
120
60
  zodError: z.typeToFlattenedError<any, string> | null;
121
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
61
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
122
62
  httpStatus: number;
123
63
  path?: string;
124
64
  stack?: string;
125
65
  };
126
66
  message: string;
127
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
67
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
128
68
  };
129
69
  transformer: false;
130
- }, TRecord>, "_def">) => import("@trpc/server/dist/unstable-core-do-not-import").RouterCaller<{
70
+ }>;
71
+ export declare const publicProcedure: import("@trpc/server").TRPCProcedureBuilder<Context, object, {}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
72
+ export declare const protectedProcedure: import("@trpc/server").TRPCProcedureBuilder<Context, object, {}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
73
+ export declare const protectedClassMemberProcedure: import("@trpc/server").TRPCProcedureBuilder<Context, object, {}, z.objectInputType<{
74
+ classId: z.ZodString;
75
+ }, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
76
+ classId: z.ZodString;
77
+ }, z.ZodTypeAny, "passthrough">, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
78
+ export declare const protectedTeacherProcedure: import("@trpc/server").TRPCProcedureBuilder<Context, object, {}, z.objectInputType<{
79
+ classId: z.ZodString;
80
+ }, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
81
+ classId: z.ZodString;
82
+ }, z.ZodTypeAny, "passthrough">, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
83
+ export declare const createCallerFactory: import("@trpc/server").TRPCRouterCallerFactory<{
131
84
  ctx: Context;
132
85
  meta: object;
133
86
  errorShape: {
134
87
  data: {
135
88
  zodError: z.typeToFlattenedError<any, string> | null;
136
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_KEY;
89
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
137
90
  httpStatus: number;
138
91
  path?: string;
139
92
  stack?: string;
140
93
  };
141
94
  message: string;
142
- code: import("@trpc/server/dist/unstable-core-do-not-import").TRPC_ERROR_CODE_NUMBER;
95
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
143
96
  };
144
97
  transformer: false;
145
- }, TRecord>;
98
+ }>;
146
99
  export {};
147
100
  //# sourceMappingURL=trpc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../src/trpc.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;CACf;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,MAAM,oBAAoB,KAAG,OAAO,CAAC,OAAO,CAwBnF,CAAC;AAEF,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBZ,CAAC;AAOH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;+FAAW,CAAC;AACzC,eAAO,MAAM,eAAe,sZAAqC,CAAC;AAGlE,eAAO,MAAM,kBAAkB,sZAAgC,CAAC;AAChE,eAAO,MAAM,6BAA6B;;;;+LAEnB,CAAC;AACxB,eAAO,MAAM,yBAAyB;;;;+LAEd,CAAC;AAIzB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAwB,CAAC"}
1
+ {"version":3,"file":"trpc.d.ts","sourceRoot":"","sources":["../src/trpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,UAAU,oBAAoB;IAC5B,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;CACf;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,MAAM,oBAAoB,KAAG,OAAO,CAAC,OAAO,CAwBnF,CAAC;AAEF,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBZ,CAAC;AAOH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAAW,CAAC;AACzC,eAAO,MAAM,eAAe,yOAAqC,CAAC;AAGlE,eAAO,MAAM,kBAAkB,yOAAgC,CAAC;AAChE,eAAO,MAAM,6BAA6B;;;;uHAEnB,CAAC;AACxB,eAAO,MAAM,yBAAyB;;;;uHAEd,CAAC;AAIzB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAAwB,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@studious-lms/server",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "Backend server for Studious application",
5
5
  "main": "dist/exportType.js",
6
6
  "types": "dist/exportType.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/exportType.d.ts",
10
+ "default": "./dist/exportType.js"
11
+ }
12
+ },
7
13
  "scripts": {
8
14
  "dev": "ts-node-dev -r tsconfig-paths/register --respawn --transpile-only src/index.ts",
9
15
  "build": "tsc",
@@ -14,7 +20,7 @@
14
20
  "dependencies": {
15
21
  "@google-cloud/storage": "^7.16.0",
16
22
  "@prisma/client": "^6.7.0",
17
- "@trpc/server": "^11.1.2",
23
+ "@trpc/server": "^11.4.3",
18
24
  "bcryptjs": "^3.0.2",
19
25
  "cors": "^2.8.5",
20
26
  "date-fns": "^4.1.0",