@nicia-ai/typegraph 0.14.0 → 0.15.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/backend/postgres/index.cjs +32 -26
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +5 -5
- package/dist/backend/postgres/index.d.ts +5 -5
- package/dist/backend/postgres/index.js +14 -8
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +12 -12
- package/dist/backend/sqlite/index.d.cts +5 -5
- package/dist/backend/sqlite/index.d.ts +5 -5
- package/dist/backend/sqlite/index.js +2 -2
- package/dist/backend/sqlite/local.cjs +5 -5
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +5 -5
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-QFZ5QB2J.cjs → chunk-3HQLOKS5.cjs} +25 -3
- package/dist/chunk-3HQLOKS5.cjs.map +1 -0
- package/dist/{chunk-OEKH5PWL.cjs → chunk-56RQFK7U.cjs} +22 -15
- package/dist/chunk-56RQFK7U.cjs.map +1 -0
- package/dist/{chunk-KE2BL3JZ.cjs → chunk-CRMN2NOM.cjs} +179 -179
- package/dist/chunk-CRMN2NOM.cjs.map +1 -0
- package/dist/{chunk-BNIBR5U2.js → chunk-HWWF3FOP.js} +91 -91
- package/dist/chunk-HWWF3FOP.js.map +1 -0
- package/dist/{chunk-KLOSTZDQ.js → chunk-L4ON6RJF.js} +25 -3
- package/dist/chunk-L4ON6RJF.js.map +1 -0
- package/dist/{chunk-RVUEBUBH.js → chunk-XZBAGJJH.js} +15 -8
- package/dist/chunk-XZBAGJJH.js.map +1 -0
- package/dist/{ddl-BJg93HDN.d.cts → ddl-BBo2EcFc.d.cts} +2 -2
- package/dist/{ddl-CsfWcl_B.d.ts → ddl-D4jlcOH_.d.ts} +2 -2
- package/dist/index.cjs +67 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +36 -42
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +2 -2
- package/dist/indexes/index.d.ts +2 -2
- package/dist/interchange/index.d.cts +3 -3
- package/dist/interchange/index.d.ts +3 -3
- package/dist/{manager-oh2mTMvy.d.cts → manager-Bj1UEnhE.d.cts} +2 -2
- package/dist/{manager-qRSdnKEO.d.ts → manager-Chhrq1vl.d.ts} +2 -2
- package/dist/profiler/index.d.cts +3 -3
- package/dist/profiler/index.d.ts +3 -3
- package/dist/schema/index.cjs +20 -20
- package/dist/schema/index.d.cts +4 -4
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +2 -2
- package/dist/{sqlite-DVca_IIy.d.cts → sqlite-Blq-AhmK.d.ts} +1 -1
- package/dist/{sqlite-H01wIXvB.d.ts → sqlite-DE-6NWtC.d.cts} +1 -1
- package/dist/{store-BJPIoe8u.d.cts → store-BNercm8P.d.cts} +51 -16
- package/dist/{store-B9ItxA-Q.d.ts → store-CD_0yf2s.d.ts} +51 -16
- package/dist/{types-Ckfwgv9l.d.cts → types-B3mmOMJV.d.cts} +8 -0
- package/dist/{types-C8Ra3ROE.d.cts → types-CZd2PEOc.d.cts} +8 -2
- package/dist/{types-CC8eB0PB.d.ts → types-Ceb01czq.d.ts} +8 -2
- package/dist/{types-5t_MIcvv.d.ts → types-ThB4cFLp.d.ts} +8 -0
- package/package.json +1 -1
- package/dist/chunk-BNIBR5U2.js.map +0 -1
- package/dist/chunk-KE2BL3JZ.cjs.map +0 -1
- package/dist/chunk-KLOSTZDQ.js.map +0 -1
- package/dist/chunk-OEKH5PWL.cjs.map +0 -1
- package/dist/chunk-QFZ5QB2J.cjs.map +0 -1
- package/dist/chunk-RVUEBUBH.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3HQLOKS5_cjs = require('./chunk-3HQLOKS5.cjs');
|
|
4
4
|
var chunkNI2GV74U_cjs = require('./chunk-NI2GV74U.cjs');
|
|
5
5
|
var chunk44SXEVF4_cjs = require('./chunk-44SXEVF4.cjs');
|
|
6
6
|
var chunkMME3H4ZF_cjs = require('./chunk-MME3H4ZF.cjs');
|
|
@@ -125,7 +125,7 @@ function metaEdge(name, options = {}) {
|
|
|
125
125
|
description: options.description
|
|
126
126
|
};
|
|
127
127
|
return Object.freeze({
|
|
128
|
-
[
|
|
128
|
+
[chunk3HQLOKS5_cjs.META_EDGE_BRAND]: true,
|
|
129
129
|
name,
|
|
130
130
|
properties
|
|
131
131
|
});
|
|
@@ -161,7 +161,7 @@ function createExternalRef(table) {
|
|
|
161
161
|
// src/ontology/core-meta-edges.ts
|
|
162
162
|
function createMetaEdge(name, properties) {
|
|
163
163
|
return Object.freeze({
|
|
164
|
-
[
|
|
164
|
+
[chunk3HQLOKS5_cjs.META_EDGE_BRAND]: true,
|
|
165
165
|
name,
|
|
166
166
|
properties: {
|
|
167
167
|
transitive: properties.transitive ?? false,
|
|
@@ -173,7 +173,7 @@ function createMetaEdge(name, properties) {
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
var subClassOfMetaEdge = createMetaEdge(
|
|
176
|
+
var subClassOfMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_SUB_CLASS_OF, {
|
|
177
177
|
transitive: true,
|
|
178
178
|
inference: "subsumption",
|
|
179
179
|
description: "Type inheritance (Podcast subClassOf Media)"
|
|
@@ -185,9 +185,9 @@ function subClassOf(child, parent) {
|
|
|
185
185
|
to: parent
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
var broaderMetaEdge = createMetaEdge(
|
|
188
|
+
var broaderMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_BROADER, {
|
|
189
189
|
transitive: true,
|
|
190
|
-
inverse:
|
|
190
|
+
inverse: chunk3HQLOKS5_cjs.META_EDGE_NARROWER,
|
|
191
191
|
inference: "hierarchy",
|
|
192
192
|
description: "Broader concept (ML broader AI)"
|
|
193
193
|
});
|
|
@@ -198,9 +198,9 @@ function broader(narrowerConcept, broaderConcept) {
|
|
|
198
198
|
to: broaderConcept
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
var narrowerMetaEdge = createMetaEdge(
|
|
201
|
+
var narrowerMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_NARROWER, {
|
|
202
202
|
transitive: true,
|
|
203
|
-
inverse:
|
|
203
|
+
inverse: chunk3HQLOKS5_cjs.META_EDGE_BROADER,
|
|
204
204
|
inference: "hierarchy",
|
|
205
205
|
description: "Narrower concept (AI narrower ML)"
|
|
206
206
|
});
|
|
@@ -211,7 +211,7 @@ function narrower(broaderConcept, narrowerConcept) {
|
|
|
211
211
|
to: narrowerConcept
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
var relatedToMetaEdge = createMetaEdge(
|
|
214
|
+
var relatedToMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_RELATED_TO, {
|
|
215
215
|
symmetric: true,
|
|
216
216
|
inference: "association",
|
|
217
217
|
description: "Non-hierarchical association"
|
|
@@ -223,7 +223,7 @@ function relatedTo(conceptA, conceptB) {
|
|
|
223
223
|
to: conceptB
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
var equivalentToMetaEdge = createMetaEdge(
|
|
226
|
+
var equivalentToMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_EQUIVALENT_TO, {
|
|
227
227
|
symmetric: true,
|
|
228
228
|
transitive: true,
|
|
229
229
|
inference: "substitution",
|
|
@@ -236,7 +236,7 @@ function equivalentTo(kindA, kindBOrIri) {
|
|
|
236
236
|
to: kindBOrIri
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
var sameAsMetaEdge = createMetaEdge(
|
|
239
|
+
var sameAsMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_SAME_AS, {
|
|
240
240
|
symmetric: true,
|
|
241
241
|
transitive: true,
|
|
242
242
|
inference: "substitution",
|
|
@@ -249,7 +249,7 @@ function sameAs(kindA, kindBOrIri) {
|
|
|
249
249
|
to: kindBOrIri
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
var differentFromMetaEdge = createMetaEdge(
|
|
252
|
+
var differentFromMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_DIFFERENT_FROM, {
|
|
253
253
|
symmetric: true,
|
|
254
254
|
inference: "constraint",
|
|
255
255
|
description: "Explicitly different individuals"
|
|
@@ -261,7 +261,7 @@ function differentFrom(kindA, kindB) {
|
|
|
261
261
|
to: kindB
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
var disjointWithMetaEdge = createMetaEdge(
|
|
264
|
+
var disjointWithMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_DISJOINT_WITH, {
|
|
265
265
|
symmetric: true,
|
|
266
266
|
inference: "constraint",
|
|
267
267
|
description: "Mutually exclusive types"
|
|
@@ -273,9 +273,9 @@ function disjointWith(kindA, kindB) {
|
|
|
273
273
|
to: kindB
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
var partOfMetaEdge = createMetaEdge(
|
|
276
|
+
var partOfMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_PART_OF, {
|
|
277
277
|
transitive: true,
|
|
278
|
-
inverse:
|
|
278
|
+
inverse: chunk3HQLOKS5_cjs.META_EDGE_HAS_PART,
|
|
279
279
|
inference: "composition",
|
|
280
280
|
description: "X is part of Y"
|
|
281
281
|
});
|
|
@@ -286,9 +286,9 @@ function partOf(part, whole) {
|
|
|
286
286
|
to: whole
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
var hasPartMetaEdge = createMetaEdge(
|
|
289
|
+
var hasPartMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_HAS_PART, {
|
|
290
290
|
transitive: true,
|
|
291
|
-
inverse:
|
|
291
|
+
inverse: chunk3HQLOKS5_cjs.META_EDGE_PART_OF,
|
|
292
292
|
inference: "composition",
|
|
293
293
|
description: "Y has part X"
|
|
294
294
|
});
|
|
@@ -299,12 +299,12 @@ function hasPart(whole, part) {
|
|
|
299
299
|
to: part
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
var inverseOfMetaEdge = createMetaEdge(
|
|
302
|
+
var inverseOfMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_INVERSE_OF, {
|
|
303
303
|
symmetric: true,
|
|
304
304
|
inference: "none",
|
|
305
305
|
description: "Edge A is inverse of edge B"
|
|
306
306
|
});
|
|
307
|
-
var impliesMetaEdge = createMetaEdge(
|
|
307
|
+
var impliesMetaEdge = createMetaEdge(chunk3HQLOKS5_cjs.META_EDGE_IMPLIES, {
|
|
308
308
|
transitive: true,
|
|
309
309
|
inference: "none",
|
|
310
310
|
description: "Edge A implies edge B exists"
|
|
@@ -8837,8 +8837,8 @@ function createQueryBuilder(graphId, registry, options) {
|
|
|
8837
8837
|
function buildKindRegistry(graph) {
|
|
8838
8838
|
const nodeTypes = extractNodeTypes(graph);
|
|
8839
8839
|
const edgeTypes = extractEdgeTypes(graph);
|
|
8840
|
-
const closures = graph.ontology.length > 0 ?
|
|
8841
|
-
return new
|
|
8840
|
+
const closures = graph.ontology.length > 0 ? chunk3HQLOKS5_cjs.computeClosuresFromOntology(graph.ontology) : chunk3HQLOKS5_cjs.createEmptyClosures();
|
|
8841
|
+
return new chunk3HQLOKS5_cjs.KindRegistry(nodeTypes, edgeTypes, closures);
|
|
8842
8842
|
}
|
|
8843
8843
|
function extractNodeTypes(graph) {
|
|
8844
8844
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -9591,53 +9591,47 @@ function createNodeCollection(config) {
|
|
|
9591
9591
|
// src/store/collection-factory.ts
|
|
9592
9592
|
function createNodeCollectionsProxy(graph, graphId, registry, backend, operations) {
|
|
9593
9593
|
const collectionCache = /* @__PURE__ */ new Map();
|
|
9594
|
-
return new Proxy(
|
|
9595
|
-
{
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
if (cached !== void 0) {
|
|
9603
|
-
return cached;
|
|
9604
|
-
}
|
|
9605
|
-
const collection = createNodeCollection({
|
|
9606
|
-
graphId,
|
|
9607
|
-
kind,
|
|
9608
|
-
backend,
|
|
9609
|
-
...operations
|
|
9610
|
-
});
|
|
9611
|
-
collectionCache.set(kind, collection);
|
|
9612
|
-
return collection;
|
|
9594
|
+
return new Proxy({}, {
|
|
9595
|
+
get: (_, kind) => {
|
|
9596
|
+
if (!(kind in graph.nodes)) {
|
|
9597
|
+
throw new chunk44SXEVF4_cjs.KindNotFoundError(kind, "node");
|
|
9598
|
+
}
|
|
9599
|
+
const cached = collectionCache.get(kind);
|
|
9600
|
+
if (cached !== void 0) {
|
|
9601
|
+
return cached;
|
|
9613
9602
|
}
|
|
9603
|
+
const collection = createNodeCollection({
|
|
9604
|
+
graphId,
|
|
9605
|
+
kind,
|
|
9606
|
+
backend,
|
|
9607
|
+
...operations
|
|
9608
|
+
});
|
|
9609
|
+
collectionCache.set(kind, collection);
|
|
9610
|
+
return collection;
|
|
9614
9611
|
}
|
|
9615
|
-
);
|
|
9612
|
+
});
|
|
9616
9613
|
}
|
|
9617
9614
|
function createEdgeCollectionsProxy(graph, graphId, registry, backend, operations) {
|
|
9618
9615
|
const collectionCache = /* @__PURE__ */ new Map();
|
|
9619
|
-
return new Proxy(
|
|
9620
|
-
{
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
if (cached !== void 0) {
|
|
9628
|
-
return cached;
|
|
9629
|
-
}
|
|
9630
|
-
const collection = createEdgeCollection({
|
|
9631
|
-
graphId,
|
|
9632
|
-
kind,
|
|
9633
|
-
backend,
|
|
9634
|
-
...operations
|
|
9635
|
-
});
|
|
9636
|
-
collectionCache.set(kind, collection);
|
|
9637
|
-
return collection;
|
|
9616
|
+
return new Proxy({}, {
|
|
9617
|
+
get: (_, kind) => {
|
|
9618
|
+
if (!(kind in graph.edges)) {
|
|
9619
|
+
throw new chunk44SXEVF4_cjs.KindNotFoundError(kind, "edge");
|
|
9620
|
+
}
|
|
9621
|
+
const cached = collectionCache.get(kind);
|
|
9622
|
+
if (cached !== void 0) {
|
|
9623
|
+
return cached;
|
|
9638
9624
|
}
|
|
9625
|
+
const collection = createEdgeCollection({
|
|
9626
|
+
graphId,
|
|
9627
|
+
kind,
|
|
9628
|
+
backend,
|
|
9629
|
+
...operations
|
|
9630
|
+
});
|
|
9631
|
+
collectionCache.set(kind, collection);
|
|
9632
|
+
return collection;
|
|
9639
9633
|
}
|
|
9640
|
-
);
|
|
9634
|
+
});
|
|
9641
9635
|
}
|
|
9642
9636
|
|
|
9643
9637
|
// src/constraints/index.ts
|
|
@@ -10040,7 +10034,7 @@ async function validateAndPrepareEdgeCreate(ctx, input, id, backend) {
|
|
|
10040
10034
|
nodeId: input.toId
|
|
10041
10035
|
});
|
|
10042
10036
|
}
|
|
10043
|
-
const validatedProps =
|
|
10037
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateEdgeProps(edgeKind.schema, input.props, {
|
|
10044
10038
|
kind,
|
|
10045
10039
|
operation: "create"
|
|
10046
10040
|
});
|
|
@@ -10190,7 +10184,7 @@ async function executeEdgeUpdate(ctx, input, backend) {
|
|
|
10190
10184
|
const edgeKind = registration.type;
|
|
10191
10185
|
const existingProps = JSON.parse(existing.props);
|
|
10192
10186
|
const mergedProps = { ...existingProps, ...input.props };
|
|
10193
|
-
const validatedProps =
|
|
10187
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
|
|
10194
10188
|
kind: existing.kind,
|
|
10195
10189
|
operation: "update",
|
|
10196
10190
|
id
|
|
@@ -10216,7 +10210,7 @@ async function executeEdgeUpsertUpdate(ctx, input, backend, options) {
|
|
|
10216
10210
|
const edgeKind = registration.type;
|
|
10217
10211
|
const existingProps = JSON.parse(existing.props);
|
|
10218
10212
|
const mergedProps = { ...existingProps, ...input.props };
|
|
10219
|
-
const validatedProps =
|
|
10213
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateEdgeProps(edgeKind.schema, mergedProps, {
|
|
10220
10214
|
kind: existing.kind,
|
|
10221
10215
|
operation: "update",
|
|
10222
10216
|
id
|
|
@@ -10373,7 +10367,7 @@ async function executeEdgeGetOrCreateByEndpoints(ctx, kind, fromKind, fromId, to
|
|
|
10373
10367
|
const matchOn = options?.matchOn ?? [];
|
|
10374
10368
|
const registration = getEdgeRegistration(ctx.graph, kind);
|
|
10375
10369
|
const edgeKind = registration.type;
|
|
10376
|
-
const validatedProps =
|
|
10370
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateEdgeProps(edgeKind.schema, props, {
|
|
10377
10371
|
kind,
|
|
10378
10372
|
operation: "create"
|
|
10379
10373
|
});
|
|
@@ -10455,7 +10449,7 @@ async function executeEdgeBulkGetOrCreateByEndpoints(ctx, kind, items, backend,
|
|
|
10455
10449
|
validateMatchOnFields(edgeKind.schema, matchOn, kind);
|
|
10456
10450
|
const validated = [];
|
|
10457
10451
|
for (const item of items) {
|
|
10458
|
-
const validatedProps =
|
|
10452
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateEdgeProps(edgeKind.schema, item.props, {
|
|
10459
10453
|
kind,
|
|
10460
10454
|
operation: "create"
|
|
10461
10455
|
});
|
|
@@ -11000,7 +10994,7 @@ async function validateAndPrepareNodeCreate(ctx, input, id, backend) {
|
|
|
11000
10994
|
const kind = input.kind;
|
|
11001
10995
|
const registration = getNodeRegistration(ctx.graph, kind);
|
|
11002
10996
|
const nodeKind = registration.type;
|
|
11003
|
-
const validatedProps =
|
|
10997
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateNodeProps(nodeKind.schema, input.props, {
|
|
11004
10998
|
kind,
|
|
11005
10999
|
operation: "create"
|
|
11006
11000
|
});
|
|
@@ -11069,7 +11063,7 @@ async function performNodeUpdate(ctx, input, backend, options) {
|
|
|
11069
11063
|
const existingProps = JSON.parse(existing.props);
|
|
11070
11064
|
const mergedProps = { ...existingProps, ...input.props };
|
|
11071
11065
|
const nodeKind = registration.type;
|
|
11072
|
-
const validatedProps =
|
|
11066
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateNodeProps(nodeKind.schema, mergedProps, {
|
|
11073
11067
|
kind,
|
|
11074
11068
|
operation: "update",
|
|
11075
11069
|
id
|
|
@@ -11333,7 +11327,7 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
|
|
|
11333
11327
|
const ifExists = options?.ifExists ?? "return";
|
|
11334
11328
|
const registration = getNodeRegistration(ctx.graph, kind);
|
|
11335
11329
|
const nodeKind = registration.type;
|
|
11336
|
-
const validatedProps =
|
|
11330
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateNodeProps(nodeKind.schema, props, {
|
|
11337
11331
|
kind,
|
|
11338
11332
|
operation: "create"
|
|
11339
11333
|
});
|
|
@@ -11405,7 +11399,7 @@ async function executeNodeGetOrCreateByConstraint(ctx, kind, constraintName, pro
|
|
|
11405
11399
|
async function executeNodeFindByConstraint(ctx, kind, constraintName, props, backend) {
|
|
11406
11400
|
const registration = getNodeRegistration(ctx.graph, kind);
|
|
11407
11401
|
const nodeKind = registration.type;
|
|
11408
|
-
const validatedProps =
|
|
11402
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateNodeProps(nodeKind.schema, props, {
|
|
11409
11403
|
kind,
|
|
11410
11404
|
operation: "create"
|
|
11411
11405
|
});
|
|
@@ -11442,7 +11436,7 @@ async function executeNodeFindByConstraint(ctx, kind, constraintName, props, bac
|
|
|
11442
11436
|
function validateAndComputeKeys(nodeKind, kind, constraint, items) {
|
|
11443
11437
|
const validated = [];
|
|
11444
11438
|
for (const item of items) {
|
|
11445
|
-
const validatedProps =
|
|
11439
|
+
const validatedProps = chunk3HQLOKS5_cjs.validateNodeProps(nodeKind.schema, item.props, {
|
|
11446
11440
|
kind,
|
|
11447
11441
|
operation: "create"
|
|
11448
11442
|
});
|
|
@@ -12063,13 +12057,13 @@ function createStore(graph, backend, options) {
|
|
|
12063
12057
|
}
|
|
12064
12058
|
async function createStoreWithSchema(graph, backend, options) {
|
|
12065
12059
|
const store = createStore(graph, backend, options);
|
|
12066
|
-
const result = await
|
|
12060
|
+
const result = await chunk3HQLOKS5_cjs.ensureSchema(backend, graph, options);
|
|
12067
12061
|
return [store, result];
|
|
12068
12062
|
}
|
|
12069
12063
|
|
|
12070
12064
|
Object.defineProperty(exports, "isMetaEdge", {
|
|
12071
12065
|
enumerable: true,
|
|
12072
|
-
get: function () { return
|
|
12066
|
+
get: function () { return chunk3HQLOKS5_cjs.isMetaEdge; }
|
|
12073
12067
|
});
|
|
12074
12068
|
Object.defineProperty(exports, "defineGraph", {
|
|
12075
12069
|
enumerable: true,
|