@almadar/core 10.93.1 → 10.94.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/{effect-BnSE0gKt.d.ts → effect-D73ryQpY.d.ts} +1 -1
- package/dist/{entityAccess-DtWseAgf.d.ts → entityAccess-B0rGIlYJ.d.ts} +12 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/{index-CWArRU6P.d.ts → index-0pglUbYf.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +9 -17
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/index.d.ts +2 -2
- package/dist/{schema-DFmFFcLs.d.ts → schema-BRVT0vy-.d.ts} +2 -2
- package/dist/{trait-DSMzclmJ.d.ts → trait-ZaXauUvA.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/{types-DzkFdgNJ.d.ts → types-CzEvY9lF.d.ts} +2 -2
- package/package.json +1 -1
package/dist/mock/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema } from '../schema-
|
|
1
|
+
import { O as OrbitalEntity, a as EntityPersistence, E as EntityField, F as FieldValue, g as EntityRow } from '../effect-D73ryQpY.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema } from '../schema-BRVT0vy-.js';
|
|
3
3
|
import { S as SExpr } from '../expression-WfTp2arD.js';
|
|
4
|
-
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-
|
|
4
|
+
export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-B0rGIlYJ.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../json-D8gmyK3l.js';
|
|
7
|
-
import '../trait-
|
|
7
|
+
import '../trait-ZaXauUvA.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Lightweight seeded pseudo-random generator for mock data.
|
package/dist/mock/index.js
CHANGED
|
@@ -167,18 +167,19 @@ function randomPhone() {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// src/access/entityAccess.ts
|
|
170
|
-
function
|
|
170
|
+
function orbitalInlineEntities(orbital) {
|
|
171
171
|
const out = [];
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
out.push(ref);
|
|
177
|
-
}
|
|
172
|
+
const refs = [orbital.entity, ...orbital.auxiliaryEntities ?? []];
|
|
173
|
+
for (const ref of refs) {
|
|
174
|
+
if (typeof ref === "object" && ref !== null && "fields" in ref) {
|
|
175
|
+
out.push(ref);
|
|
178
176
|
}
|
|
179
177
|
}
|
|
180
178
|
return out;
|
|
181
179
|
}
|
|
180
|
+
function inlineEntities(schema) {
|
|
181
|
+
return (schema.orbitals ?? []).flatMap(orbitalInlineEntities);
|
|
182
|
+
}
|
|
182
183
|
function isDeclared(p) {
|
|
183
184
|
return p.read !== void 0 || p.create !== void 0 || p.update !== void 0 || p.delete !== void 0;
|
|
184
185
|
}
|
|
@@ -227,16 +228,7 @@ function entityAccessPoliciesByStoreKey(schema) {
|
|
|
227
228
|
|
|
228
229
|
// src/mock/identityOwners.ts
|
|
229
230
|
function inlineEntities2(schema) {
|
|
230
|
-
|
|
231
|
-
for (const orbital of schema.orbitals ?? []) {
|
|
232
|
-
const refs = [orbital.entity, ...orbital.auxiliaryEntities ?? []];
|
|
233
|
-
for (const ref of refs) {
|
|
234
|
-
if (typeof ref === "object" && ref !== null && "fields" in ref) {
|
|
235
|
-
out.push(ref);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return out;
|
|
231
|
+
return (schema.orbitals ?? []).flatMap(orbitalInlineEntities);
|
|
240
232
|
}
|
|
241
233
|
function identityEntitiesTaggedOf(orbitals) {
|
|
242
234
|
const out = [];
|