@zenstackhq/runtime 3.0.0-beta.7 → 3.0.0-beta.8
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/{contract-BJce14-p.d.cts → errors-DVYyRUGp.d.cts} +39 -2
- package/dist/{contract-BJce14-p.d.ts → errors-DVYyRUGp.d.ts} +39 -2
- package/dist/index.cjs +334 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -27
- package/dist/index.d.ts +3 -27
- package/dist/index.js +341 -184
- package/dist/index.js.map +1 -1
- package/dist/plugins/policy/index.cjs +546 -308
- package/dist/plugins/policy/index.cjs.map +1 -1
- package/dist/plugins/policy/index.d.cts +2 -2
- package/dist/plugins/policy/index.d.ts +2 -2
- package/dist/plugins/policy/index.js +468 -230
- package/dist/plugins/policy/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { R as ZenStackError, $ as RuntimePlugin, a0 as ZModelFunction, a1 as OnKyselyQueryArgs } from '../../errors-DVYyRUGp.cjs';
|
|
1
2
|
import * as kysely from 'kysely';
|
|
2
|
-
import { R as RuntimePlugin, V as ZModelFunction, X as OnKyselyQueryArgs } from '../../contract-BJce14-p.cjs';
|
|
3
3
|
import { SchemaDef } from '@zenstackhq/sdk/schema';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@ declare enum RejectedByPolicyReason {
|
|
|
23
23
|
/**
|
|
24
24
|
* Error thrown when an operation is rejected by access policy.
|
|
25
25
|
*/
|
|
26
|
-
declare class RejectedByPolicyError extends
|
|
26
|
+
declare class RejectedByPolicyError extends ZenStackError {
|
|
27
27
|
readonly model: string | undefined;
|
|
28
28
|
readonly reason: RejectedByPolicyReason;
|
|
29
29
|
constructor(model: string | undefined, reason?: RejectedByPolicyReason, message?: string);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { R as ZenStackError, $ as RuntimePlugin, a0 as ZModelFunction, a1 as OnKyselyQueryArgs } from '../../errors-DVYyRUGp.js';
|
|
1
2
|
import * as kysely from 'kysely';
|
|
2
|
-
import { R as RuntimePlugin, V as ZModelFunction, X as OnKyselyQueryArgs } from '../../contract-BJce14-p.js';
|
|
3
3
|
import { SchemaDef } from '@zenstackhq/sdk/schema';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@ declare enum RejectedByPolicyReason {
|
|
|
23
23
|
/**
|
|
24
24
|
* Error thrown when an operation is rejected by access policy.
|
|
25
25
|
*/
|
|
26
|
-
declare class RejectedByPolicyError extends
|
|
26
|
+
declare class RejectedByPolicyError extends ZenStackError {
|
|
27
27
|
readonly model: string | undefined;
|
|
28
28
|
readonly reason: RejectedByPolicyReason;
|
|
29
29
|
constructor(model: string | undefined, reason?: RejectedByPolicyReason, message?: string);
|