@openenvx/admin 0.1.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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Next.js API route handler for admin operations
3
+ */
4
+ import { type NextRequest, NextResponse } from 'next/server';
5
+ import type { AdminRouterConfig } from '../core/types';
6
+ interface RouteContext {
7
+ params: Promise<{
8
+ path: string[];
9
+ }>;
10
+ }
11
+ export declare function createAdminRouter(config: AdminRouterConfig): {
12
+ GET: (request: NextRequest, context: RouteContext) => Promise<NextResponse<unknown>>;
13
+ POST: (request: NextRequest, context: RouteContext) => Promise<NextResponse<unknown>>;
14
+ PUT: (request: NextRequest, context: RouteContext) => Promise<NextResponse<unknown>>;
15
+ DELETE: (request: NextRequest, context: RouteContext) => Promise<NextResponse<unknown>>;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/server/router.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAa,MAAM,eAAe,CAAC;AAElE,UAAU,YAAY;IACpB,MAAM,EAAE,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CACrC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB;mBA+DxC,WAAW,WAAW,YAAY;oBAEjC,WAAW,WAAW,YAAY;mBAEnC,WAAW,WAAW,YAAY;sBAE/B,WAAW,WAAW,YAAY;EAGvD"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@openenvx/admin",
3
+ "version": "0.1.0",
4
+ "author": "OpenEnvX",
5
+ "devDependencies": {
6
+ "@refinedev/core": "^4.57.0",
7
+ "@types/node": "^25.3.5",
8
+ "@types/react": "^19.0.10",
9
+ "drizzle-orm": "^0.40.0",
10
+ "next": "^16.0.0",
11
+ "react": "^19.0.0",
12
+ "react-dom": "^19.0.0",
13
+ "rolldown": "^1.0.0-rc.9",
14
+ "typescript": "^5.9.3"
15
+ },
16
+ "peerDependencies": {
17
+ "@refinedev/core": "^4.0.0",
18
+ "@refinedev/react-table": "^5.0.0",
19
+ "drizzle-orm": "^0.40.0",
20
+ "react": "^19.0.0",
21
+ "react-dom": "^19.0.0",
22
+ "next": "^16.0.0",
23
+ "@tanstack/react-table": "^8.0.0"
24
+ },
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./server": {
31
+ "types": "./dist/server/index.d.ts",
32
+ "import": "./dist/server/index.js"
33
+ },
34
+ "./client": {
35
+ "types": "./dist/client/index.d.ts",
36
+ "import": "./dist/client/index.js"
37
+ }
38
+ },
39
+ "description": "Runtime-generated admin panel for Drizzle ORM using Refine and shadcn/ui",
40
+ "files": [
41
+ "dist"
42
+ ],
43
+ "license": "MIT",
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "scripts": {
48
+ "build": "rolldown -c && tsc --emitDeclarationOnly",
49
+ "dev": "rolldown -c --watch",
50
+ "typecheck": "tsc --noEmit",
51
+ "prepublishOnly": "bun run build"
52
+ },
53
+ "type": "module",
54
+ "types": "./dist/index.d.ts"
55
+ }