@wordrhyme/auto-crud-server 2.0.2 → 2.0.3
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 +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _trpc_server2 from "@trpc/server";
|
|
2
2
|
import { AnyColumn, SQL, Table } from "drizzle-orm";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import superjson from "superjson";
|
|
@@ -41,13 +41,13 @@ interface Context {
|
|
|
41
41
|
db: PostgresJsDatabase<Record<string, never>>;
|
|
42
42
|
resolveDateRange?: DateRangeResolver;
|
|
43
43
|
}
|
|
44
|
-
declare const router:
|
|
44
|
+
declare const router: _trpc_server2.TRPCRouterBuilder<{
|
|
45
45
|
ctx: Context;
|
|
46
46
|
meta: object;
|
|
47
|
-
errorShape:
|
|
47
|
+
errorShape: _trpc_server2.TRPCDefaultErrorShape;
|
|
48
48
|
transformer: true;
|
|
49
49
|
}>;
|
|
50
|
-
declare const publicProcedure:
|
|
50
|
+
declare const publicProcedure: _trpc_server2.TRPCProcedureBuilder<Context, object, object, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, _trpc_server2.TRPCUnsetMarker, false>;
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/types/config.d.ts
|
|
53
53
|
type CrudOperation = 'list' | 'get' | 'create' | 'update' | 'delete' | 'deleteMany' | 'updateMany' | 'upsert' | 'export' | 'import' | 'createMany';
|
|
@@ -1022,12 +1022,12 @@ type CrudHookEventMap<PluginId extends string, ResourceName extends string, TCre
|
|
|
1022
1022
|
} } & { [K in `${PluginId}.${ResourceName}.createMany`]: TCreate[] };
|
|
1023
1023
|
//#endregion
|
|
1024
1024
|
//#region src/routers/index.d.ts
|
|
1025
|
-
declare const appRouter:
|
|
1025
|
+
declare const appRouter: _trpc_server2.TRPCBuiltRouter<{
|
|
1026
1026
|
ctx: Context;
|
|
1027
1027
|
meta: object;
|
|
1028
|
-
errorShape:
|
|
1028
|
+
errorShape: _trpc_server2.TRPCDefaultErrorShape;
|
|
1029
1029
|
transformer: true;
|
|
1030
|
-
},
|
|
1030
|
+
}, _trpc_server2.TRPCDecorateCreateRouterOptions<{}>>;
|
|
1031
1031
|
type AppRouter = typeof appRouter;
|
|
1032
1032
|
//#endregion
|
|
1033
1033
|
export { type AnyProcedure, type AppRouter, type CreateManyMiddlewareParams, type CreateMiddlewareParams, type CrudCapabilityMetadata, type CrudColumnCapability, type CrudColumnConfig, type CrudColumnExpression, type CrudColumnRef, type CrudExtensionFilter, type CrudExtensionMetadata, type CrudExtensionValueWrite, type CrudExtensionsConfig, type CrudExtensionsProvider, type CrudHookEventMap, type CrudMiddleware, type CrudOperation, type CrudProcedures, type CrudResourceMetadata, type CrudRouterConfig, type DateFilterRange, type DateRangeResolver, type DeleteManyMiddlewareParams, type DeleteMiddlewareParams, type ExportInput, type ExportMiddlewareParams, type ExportResult, type ExtendedColumnFilter, type FilterOperator, type FilterVariant, 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": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "tRPC server utilities for auto-crud - automatic CRUD routers for Drizzle ORM",
|
|
6
6
|
"author": "wordrhyme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@internal/eslint-config": "0.3.0",
|
|
52
52
|
"@internal/prettier-config": "0.0.1",
|
|
53
53
|
"@internal/tsconfig": "0.1.0",
|
|
54
|
-
"@internal/
|
|
55
|
-
"@internal/
|
|
54
|
+
"@internal/vitest-config": "0.1.0",
|
|
55
|
+
"@internal/tsdown-config": "0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"prettier": "@internal/prettier-config",
|
|
58
58
|
"scripts": {
|