From a0b2fea49059f594fcc9db732cf7467ba85f889b Mon Sep 17 00:00:00 2001 From: dennemark Date: Thu, 8 Aug 2024 19:16:29 +0200 Subject: [PATCH] Release 0.5.2 --- CHANGELOG.md | 7 ++ dist/index.d.mts | 216 +---------------------------------------------- dist/index.d.ts | 216 +---------------------------------------------- package.json | 2 +- 4 files changed, 10 insertions(+), 431 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f0675..1185a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +## [0.5.2](https://github.com/dennemark/prisma-extension-casl/compare/0.5.1...0.5.2) (2024-08-08) + + +### Bug Fixes + +* :label: try fix type of casl client ([d39c4cc](https://github.com/dennemark/prisma-extension-casl/commit/d39c4cc3e02546975085c08615cb5759fd6c12fa)) + ## [0.5.1](https://github.com/dennemark/prisma-extension-casl/compare/0.5.0...0.5.1) (2024-08-08) diff --git a/dist/index.d.mts b/dist/index.d.mts index cac2390..772376c 100644 --- a/dist/index.d.mts +++ b/dist/index.d.mts @@ -41,221 +41,7 @@ declare function useCaslAbilities(getAbilityFactory: () => AbilityBuilder (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - } & { - $casl: unknown; - } & { - [K: symbol]: { - ctx: { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - }; - }; - } & { - $casl(extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>): { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - } & { - $casl: unknown; - } & { - [K: symbol]: { - ctx: { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - }; - }; - } & any & { - name?: string; - $name?: string; - $parent?: unknown; - }; - } & { - name?: string; - $name?: string; - $parent?: unknown; - }; + $casl: () => (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => _prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>; }; }; }; diff --git a/dist/index.d.ts b/dist/index.d.ts index cac2390..772376c 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -41,221 +41,7 @@ declare function useCaslAbilities(getAbilityFactory: () => AbilityBuilder (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - } & { - $casl: unknown; - } & { - [K: symbol]: { - ctx: { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - }; - }; - } & { - $casl(extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>): { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - } & { - $casl: unknown; - } & { - [K: symbol]: { - ctx: { - $connect?: (() => Promise) | undefined; - $disconnect?: (() => Promise) | undefined; - $transaction?: { -

[]>(arg: [...P], options?: { - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise<_prisma_client_runtime_library.UnwrapTuple

>; - (fn: (client: Omit<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">) => Promise, options?: { - maxWait?: number; - timeout?: number; - isolationLevel?: "Serializable" | undefined; - } | undefined): Promise; - } | undefined; - $extends?: _prisma_client_runtime_library.ExtendsHook<"extends", Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, Prisma.TypeMap<_prisma_client_runtime_library.InternalArgs & _prisma_client_runtime_library.DefaultArgs, Prisma.PrismaClientOptions>, {}> | undefined; - } & { - [x: symbol]: { - types: { - payload: any; - operations: { - $executeRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $executeRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - $queryRawUnsafe: { - args: [query: string, ...values: any[]]; - result: any; - }; - $queryRaw: { - args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]]; - result: any; - }; - }; - }; - }; - $executeRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $executeRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRaw: (query: TemplateStringsArray | Prisma.Sql, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - $queryRawUnsafe: (query: string, ...values: any[]) => _prisma_client_runtime_library.PrismaPromise; - user: _prisma_client_runtime_library.DynamicModelExtensionThis, "User", _prisma_client_runtime_library.DefaultArgs, {}>; - topic: _prisma_client_runtime_library.DynamicModelExtensionThis, "Topic", _prisma_client_runtime_library.DefaultArgs, {}>; - thread: _prisma_client_runtime_library.DynamicModelExtensionThis, "Thread", _prisma_client_runtime_library.DefaultArgs, {}>; - post: _prisma_client_runtime_library.DynamicModelExtensionThis, "Post", _prisma_client_runtime_library.DefaultArgs, {}>; - } & { - $parent: _prisma_client_runtime_library.Optional<_prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>, "$on" | "$connect" | "$disconnect" | "$use" | "$transaction" | "$extends">; - }; - }; - } & any & { - name?: string; - $name?: string; - $parent?: unknown; - }; - } & { - name?: string; - $name?: string; - $parent?: unknown; - }; + $casl: () => (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => _prisma_client_runtime_library.DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>; }; }; }; diff --git a/package.json b/package.json index 38714ea..cffa950 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prisma-extension-casl", - "version": "0.5.1", + "version": "0.5.2", "description": "Enforce casl abilities on prisma client ", "main": "dist/index.js", "types": "dist/index.d.ts",