@almadar/core 10.48.0 → 10.50.0
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/builders.d.ts +3 -3
- package/dist/builders.js +1 -1
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DiHGegt9.d.ts → effect-DjMRX8sI.d.ts} +16 -8
- package/dist/entityAccess-dYpx6Ipw.d.ts +54 -0
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +1 -1
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +272 -7
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +19 -1
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +518 -8
- package/dist/patterns/index.js +253 -6
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +225 -3
- package/dist/patterns/registry.json +225 -3
- package/dist/{schema-C0QwW3G2.d.ts → schema-1bzTH92n.d.ts} +2 -2
- package/dist/{trait-pw49W-zL.d.ts → trait-DkMVtmED.d.ts} +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1DvdNPye.d.ts → types-CUdqUyzi.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/entityAccess-OjD7XSBO.d.ts +0 -33
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-
|
|
2
|
-
import { T as TraitEventListener, a as TraitReference } from './trait-
|
|
1
|
+
import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-DjMRX8sI.js';
|
|
2
|
+
import { T as TraitEventListener, a as TraitReference } from './trait-DkMVtmED.js';
|
|
3
3
|
import { J as JsonValue } from './expression-Yf7qvvOs.js';
|
|
4
4
|
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.50.0",
|
|
4
4
|
"description": "Core schema types and definitions for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@almadar/eslint-plugin": "^2.15.0",
|
|
69
69
|
"@types/node": "^22.0.0",
|
|
70
|
-
"@typescript-eslint/parser": "8.
|
|
70
|
+
"@typescript-eslint/parser": "8.65.0",
|
|
71
71
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
72
72
|
"eslint": "10.0.0",
|
|
73
73
|
"tsup": "^8.0.0",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { O as OrbitalSchema } from './schema-C0QwW3G2.js';
|
|
2
|
-
import { S as SExpr } from './expression-Yf7qvvOs.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
|
|
6
|
-
* directives, keyed by entity name.
|
|
7
|
-
*
|
|
8
|
-
* The JS mirror of `orbital-core/src/runtime/entity_access.rs`'s
|
|
9
|
-
* `EntityAccessPolicies`/`EntityAccessTable`. Both paths must agree: a
|
|
10
|
-
* directive is a per-row predicate (`@entity` = the candidate row, or for
|
|
11
|
-
* `@create` the incoming data; `@user` = the viewer), enforced once for
|
|
12
|
-
* every trait that touches the entity — the un-bypassable twin of a
|
|
13
|
-
* call-site `filter:`, which sibling traits can skip simply by not
|
|
14
|
-
* declaring one.
|
|
15
|
-
*
|
|
16
|
-
* @packageDocumentation
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/** An entity's four declared directives. Any may be absent — an absent
|
|
20
|
-
* directive means "no restriction" for that operation, exactly like an
|
|
21
|
-
* absent fetch `filter:`. */
|
|
22
|
-
interface EntityAccessPolicies {
|
|
23
|
-
read?: SExpr;
|
|
24
|
-
create?: SExpr;
|
|
25
|
-
update?: SExpr;
|
|
26
|
-
delete?: SExpr;
|
|
27
|
-
}
|
|
28
|
-
/** Every entity's access policies, keyed by entity name. */
|
|
29
|
-
declare function entityAccessTable(schema: OrbitalSchema): Map<string, EntityAccessPolicies>;
|
|
30
|
-
/** One entity's access policies, or `undefined` when it declares none. */
|
|
31
|
-
declare function entityAccessPolicies(schema: OrbitalSchema, entityName: string): EntityAccessPolicies | undefined;
|
|
32
|
-
|
|
33
|
-
export { type EntityAccessPolicies as E, entityAccessTable as a, entityAccessPolicies as e };
|