nextjs-cms 0.7.11 → 0.8.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/api/index.d.ts +0 -12
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/root.d.ts +0 -24
- package/dist/api/root.d.ts.map +1 -1
- package/dist/api/routers/files.d.ts +0 -12
- package/dist/api/routers/files.d.ts.map +1 -1
- package/dist/api/routers/files.js +1 -10
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -608,18 +608,6 @@ declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
608
608
|
output: string;
|
|
609
609
|
meta: object;
|
|
610
610
|
}>;
|
|
611
|
-
getDocument: import("@trpc/server").TRPCQueryProcedure<{
|
|
612
|
-
input: {
|
|
613
|
-
name: string;
|
|
614
|
-
sectionName: string;
|
|
615
|
-
fieldName: string;
|
|
616
|
-
};
|
|
617
|
-
output: {
|
|
618
|
-
base64: string;
|
|
619
|
-
mimeType: string;
|
|
620
|
-
};
|
|
621
|
-
meta: object;
|
|
622
|
-
}>;
|
|
623
611
|
}>>;
|
|
624
612
|
gallery: import("@trpc/server").TRPCBuiltRouter<{
|
|
625
613
|
ctx: {
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC5E,OAAO,EAEH,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,eAAe,EAClB,MAAM,WAAW,CAAA;AAElB;;;;;;GAMG;AACH,QAAA,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAA;AAEnD;;;;;IAKI;AACJ,KAAK,YAAY,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAA;AAEhD;;;;;IAKI;AACJ,KAAK,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA;AAElD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,YAAY,EAAE,uBAAuB,EAAE,YAAY,EAAE,CAAA;AAC5F,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAA;AACrE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA"}
|
package/dist/api/root.d.ts
CHANGED
|
@@ -599,18 +599,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
599
599
|
output: string;
|
|
600
600
|
meta: object;
|
|
601
601
|
}>;
|
|
602
|
-
getDocument: import("@trpc/server").TRPCQueryProcedure<{
|
|
603
|
-
input: {
|
|
604
|
-
name: string;
|
|
605
|
-
sectionName: string;
|
|
606
|
-
fieldName: string;
|
|
607
|
-
};
|
|
608
|
-
output: {
|
|
609
|
-
base64: string;
|
|
610
|
-
mimeType: string;
|
|
611
|
-
};
|
|
612
|
-
meta: object;
|
|
613
|
-
}>;
|
|
614
602
|
}>>;
|
|
615
603
|
gallery: import("@trpc/server").TRPCBuiltRouter<{
|
|
616
604
|
ctx: {
|
|
@@ -1496,18 +1484,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
1496
1484
|
output: string;
|
|
1497
1485
|
meta: object;
|
|
1498
1486
|
}>;
|
|
1499
|
-
getDocument: import("@trpc/server").TRPCQueryProcedure<{
|
|
1500
|
-
input: {
|
|
1501
|
-
name: string;
|
|
1502
|
-
sectionName: string;
|
|
1503
|
-
fieldName: string;
|
|
1504
|
-
};
|
|
1505
|
-
output: {
|
|
1506
|
-
base64: string;
|
|
1507
|
-
mimeType: string;
|
|
1508
|
-
};
|
|
1509
|
-
meta: object;
|
|
1510
|
-
}>;
|
|
1511
1487
|
}>>;
|
|
1512
1488
|
gallery: import("@trpc/server").TRPCBuiltRouter<{
|
|
1513
1489
|
ctx: {
|
package/dist/api/root.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/api/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAgB5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8FvB,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/api/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAgB5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8FvB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAA"}
|
|
@@ -30,17 +30,5 @@ export declare const filesRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30
30
|
output: string;
|
|
31
31
|
meta: object;
|
|
32
32
|
}>;
|
|
33
|
-
getDocument: import("@trpc/server").TRPCQueryProcedure<{
|
|
34
|
-
input: {
|
|
35
|
-
name: string;
|
|
36
|
-
sectionName: string;
|
|
37
|
-
fieldName: string;
|
|
38
|
-
};
|
|
39
|
-
output: {
|
|
40
|
-
base64: string;
|
|
41
|
-
mimeType: string;
|
|
42
|
-
};
|
|
43
|
-
meta: object;
|
|
44
|
-
}>;
|
|
45
33
|
}>>;
|
|
46
34
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/api/routers/files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/api/routers/files.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYtB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { privateProcedure, router } from '../trpc.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
|
-
import { getPhoto
|
|
3
|
+
import { getPhoto } from '../lib/serverActions.js';
|
|
4
4
|
export const filesRouter = router({
|
|
5
5
|
getPhoto: privateProcedure
|
|
6
6
|
.input(z.object({
|
|
@@ -11,13 +11,4 @@ export const filesRouter = router({
|
|
|
11
11
|
.query(async ({ ctx, input }) => {
|
|
12
12
|
return await getPhoto(input);
|
|
13
13
|
}),
|
|
14
|
-
getDocument: privateProcedure
|
|
15
|
-
.input(z.object({
|
|
16
|
-
name: z.string(),
|
|
17
|
-
sectionName: z.string(),
|
|
18
|
-
fieldName: z.string(),
|
|
19
|
-
}))
|
|
20
|
-
.query(async ({ ctx, input }) => {
|
|
21
|
-
return await getDocument(ctx.session, input);
|
|
22
|
-
}),
|
|
23
14
|
});
|