@zenstackhq/plugin-policy 3.2.0 → 3.3.0-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.
package/dist/index.d.cts CHANGED
@@ -3,14 +3,14 @@ import * as _zenstackhq_orm from '@zenstackhq/orm';
3
3
  import { RuntimePlugin, OnKyselyQueryArgs } from '@zenstackhq/orm';
4
4
  import { SchemaDef } from '@zenstackhq/orm/schema';
5
5
 
6
- declare class PolicyPlugin<Schema extends SchemaDef> implements RuntimePlugin<Schema> {
7
- get id(): string;
6
+ declare class PolicyPlugin implements RuntimePlugin {
7
+ get id(): "policy";
8
8
  get name(): string;
9
9
  get description(): string;
10
10
  get functions(): {
11
11
  check: _zenstackhq_orm.ZModelFunction<any>;
12
12
  };
13
- onKyselyQuery({ query, client, proceed }: OnKyselyQueryArgs<Schema>): Promise<kysely.QueryResult<any>>;
13
+ onKyselyQuery({ query, client, proceed }: OnKyselyQueryArgs<SchemaDef>): Promise<kysely.QueryResult<any>>;
14
14
  }
15
15
 
16
16
  export { PolicyPlugin };
package/dist/index.d.ts CHANGED
@@ -3,14 +3,14 @@ import * as _zenstackhq_orm from '@zenstackhq/orm';
3
3
  import { RuntimePlugin, OnKyselyQueryArgs } from '@zenstackhq/orm';
4
4
  import { SchemaDef } from '@zenstackhq/orm/schema';
5
5
 
6
- declare class PolicyPlugin<Schema extends SchemaDef> implements RuntimePlugin<Schema> {
7
- get id(): string;
6
+ declare class PolicyPlugin implements RuntimePlugin {
7
+ get id(): "policy";
8
8
  get name(): string;
9
9
  get description(): string;
10
10
  get functions(): {
11
11
  check: _zenstackhq_orm.ZModelFunction<any>;
12
12
  };
13
- onKyselyQuery({ query, client, proceed }: OnKyselyQueryArgs<Schema>): Promise<kysely.QueryResult<any>>;
13
+ onKyselyQuery({ query, client, proceed }: OnKyselyQueryArgs<SchemaDef>): Promise<kysely.QueryResult<any>>;
14
14
  }
15
15
 
16
16
  export { PolicyPlugin };