@wecode-team/cms-supabase-api 0.1.52 → 0.1.53-beta.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.
@@ -1,9 +1,12 @@
1
1
  import { Hono } from "hono";
2
- export declare function createModelRoute(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
3
- export declare function createDataRoute(app: Hono, tableName: string): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
4
- export declare function createDynamicDataRoute(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
2
+ export type CmsRouteOptions = {
3
+ skipAuth?: boolean;
4
+ };
5
+ export declare function createModelRoute(app: Hono, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
6
+ export declare function createDataRoute(app: Hono, tableName: string, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
7
+ export declare function createDynamicDataRoute(app: Hono, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
5
8
  export declare function createDynamicAuthRoute(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
6
9
  export declare function createAuthRoute(app: Hono, tableName: string): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
7
- export declare function createOssUploadRoute(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
8
- export declare function createConfigRoute(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
9
- export declare function createCmsRoutes(app: Hono): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
10
+ export declare function createOssUploadRoute(app: Hono, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
11
+ export declare function createConfigRoute(app: Hono, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
12
+ export declare function createCmsRoutes(app: Hono, options?: CmsRouteOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wecode-team/cms-supabase-api",
3
- "version": "0.1.52",
3
+ "version": "0.1.53-beta.1",
4
4
  "description": "A CMS API package using Hono framework with Supabase and dynamic table management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",