Merge pull request #99 from bknd-io/feat/data-api-bulk-update

feat/data-api-bulk-update
This commit is contained in:
dswbx
2025-02-26 19:55:22 +01:00
committed by GitHub
15 changed files with 291 additions and 246 deletions

View File

@@ -3,8 +3,7 @@ import { tbValidator as tb } from "core";
import { Type, TypeInvalidError, parse, transformObject } from "core/utils";
import { DataPermissions } from "data";
import type { Hono } from "hono";
import { Controller } from "modules/Controller";
import type { ServerEnv } from "modules/Module";
import { Controller, type ServerEnv } from "modules/Controller";
export type AuthActionResponse = {
success: boolean;

View File

@@ -13,7 +13,7 @@ import type { Context, Hono } from "hono";
import { deleteCookie, getSignedCookie, setSignedCookie } from "hono/cookie";
import { sign, verify } from "hono/jwt";
import type { CookieOptions } from "hono/utils/cookie";
import type { ServerEnv } from "modules/Module";
import type { ServerEnv } from "modules/Controller";
type Input = any; // workaround
export type JWTPayload = Parameters<typeof sign>[0];

View File

@@ -1,7 +1,7 @@
import { Exception, Permission } from "core";
import { objectTransform } from "core/utils";
import type { Context } from "hono";
import type { ServerEnv } from "modules/Module";
import type { ServerEnv } from "modules/Controller";
import { Role } from "./Role";
export type GuardUserContext = {

View File

@@ -2,7 +2,7 @@ import type { Permission } from "core";
import { patternMatch } from "core/utils";
import type { Context } from "hono";
import { createMiddleware } from "hono/factory";
import type { ServerEnv } from "modules/Module";
import type { ServerEnv } from "modules/Controller";
function getPath(reqOrCtx: Request | Context) {
const req = reqOrCtx instanceof Request ? reqOrCtx : reqOrCtx.req.raw;