Files
dealplustech/node_modules/drizzle-orm/gel-core/policies.d.cts
Kunthawat 77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00

25 lines
1.0 KiB
TypeScript

import { entityKind } from "../entity.cjs";
import type { SQL } from "../sql/sql.cjs";
import type { GelRole } from "./roles.cjs";
import type { GelTable } from "./table.cjs";
export type GelPolicyToOption = 'public' | 'current_role' | 'current_user' | 'session_user' | (string & {}) | GelPolicyToOption[] | GelRole;
export interface GelPolicyConfig {
as?: 'permissive' | 'restrictive';
for?: 'all' | 'select' | 'insert' | 'update' | 'delete';
to?: GelPolicyToOption;
using?: SQL;
withCheck?: SQL;
}
export declare class GelPolicy implements GelPolicyConfig {
readonly name: string;
static readonly [entityKind]: string;
readonly as: GelPolicyConfig['as'];
readonly for: GelPolicyConfig['for'];
readonly to: GelPolicyConfig['to'];
readonly using: GelPolicyConfig['using'];
readonly withCheck: GelPolicyConfig['withCheck'];
constructor(name: string, config?: GelPolicyConfig);
link(table: GelTable): this;
}
export declare function gelPolicy(name: string, config?: GelPolicyConfig): GelPolicy;