@wordrhyme/auto-crud-server 1.0.10 → 1.1.1
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/index.d.ts +7 -7
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AnyColumn, SQL } from "drizzle-orm";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _trpc_server0 from "@trpc/server";
|
|
4
4
|
import superjson from "superjson";
|
|
5
5
|
import { PgTable } from "drizzle-orm/pg-core";
|
|
6
6
|
import { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
@@ -13,13 +13,13 @@ import { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
|
13
13
|
interface Context {
|
|
14
14
|
db: PostgresJsDatabase<Record<string, never>>;
|
|
15
15
|
}
|
|
16
|
-
declare const router:
|
|
16
|
+
declare const router: _trpc_server0.TRPCRouterBuilder<{
|
|
17
17
|
ctx: Context;
|
|
18
18
|
meta: object;
|
|
19
|
-
errorShape:
|
|
19
|
+
errorShape: _trpc_server0.TRPCDefaultErrorShape;
|
|
20
20
|
transformer: true;
|
|
21
21
|
}>;
|
|
22
|
-
declare const publicProcedure:
|
|
22
|
+
declare const publicProcedure: _trpc_server0.TRPCProcedureBuilder<Context, object, object, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, _trpc_server0.TRPCUnsetMarker, false>;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/types/config.d.ts
|
|
25
25
|
type CrudOperation = 'list' | 'get' | 'create' | 'update' | 'delete' | 'deleteMany' | 'updateMany' | 'upsert' | 'export' | 'import' | 'createMany';
|
|
@@ -880,12 +880,12 @@ type CrudHookEventMap<PluginId extends string, ResourceName extends string, TCre
|
|
|
880
880
|
} } & { [K in `${PluginId}.${ResourceName}.createMany`]: TCreate[] };
|
|
881
881
|
//#endregion
|
|
882
882
|
//#region src/routers/index.d.ts
|
|
883
|
-
declare const appRouter:
|
|
883
|
+
declare const appRouter: _trpc_server0.TRPCBuiltRouter<{
|
|
884
884
|
ctx: Context;
|
|
885
885
|
meta: object;
|
|
886
|
-
errorShape:
|
|
886
|
+
errorShape: _trpc_server0.TRPCDefaultErrorShape;
|
|
887
887
|
transformer: true;
|
|
888
|
-
},
|
|
888
|
+
}, _trpc_server0.TRPCDecorateCreateRouterOptions<{}>>;
|
|
889
889
|
type AppRouter = typeof appRouter;
|
|
890
890
|
//#endregion
|
|
891
891
|
export { type AnyProcedure, type AppRouter, type CreateManyMiddlewareParams, type CreateMiddlewareParams, type CrudColumnConfig, type CrudColumnExpression, type CrudColumnRef, type CrudExtensionFilter, type CrudExtensionMetadata, type CrudExtensionsConfig, type CrudExtensionsProvider, type CrudHookEventMap, type CrudMiddleware, type CrudOperation, type CrudProcedures, type CrudRouterConfig, type DeleteManyMiddlewareParams, type DeleteMiddlewareParams, type ExportInput, type ExportMiddlewareParams, type ExportResult, type GetInput, type GetMiddlewareParams, type ImportFailedRow, type ImportInput, type ImportMiddlewareParams, type ImportResult, type ListInput, type ListMiddlewareParams, type ListResult, type ProcedureConfig, type ProcedureFactory, type ProcedureMap, type SoftDeleteConfig, type SoftDeleteOption, type UpdateManyMiddlewareParams, type UpdateMiddlewareParams, type UpsertMiddlewareParams, type WriteOperation, afterMiddleware, appRouter, baseExportInputSchema, baseGetInputSchema, baseListInputSchema, beforeMiddleware, composeMiddleware, createCrudRouter, publicProcedure, router };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordrhyme/auto-crud-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "tRPC server utilities for auto-crud - automatic CRUD routers for Drizzle ORM",
|
|
6
6
|
"author": "wordrhyme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"vitest": "^4.0.18",
|
|
49
49
|
"zod": "^4.3.6",
|
|
50
50
|
"@internal/eslint-config": "0.3.0",
|
|
51
|
-
"@internal/tsconfig": "0.1.0",
|
|
52
|
-
"@internal/prettier-config": "0.0.1",
|
|
53
51
|
"@internal/tsdown-config": "0.1.0",
|
|
54
|
-
"@internal/
|
|
52
|
+
"@internal/prettier-config": "0.0.1",
|
|
53
|
+
"@internal/vitest-config": "0.1.0",
|
|
54
|
+
"@internal/tsconfig": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"prettier": "@internal/prettier-config",
|
|
57
57
|
"scripts": {
|