@contello/store 4.2.0 → 4.3.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/index.cjs +234 -9
- package/dist/index.d.cts +70 -20
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +70 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +235 -10
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -278,6 +278,52 @@ function createRefreshByTtlQueue() {
|
|
|
278
278
|
} };
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
|
+
//#region src/write-buffer.ts
|
|
282
|
+
function createWriteBuffer() {
|
|
283
|
+
const parked = /* @__PURE__ */ new Map();
|
|
284
|
+
const awaited = /* @__PURE__ */ new Map();
|
|
285
|
+
return {
|
|
286
|
+
park(id, entity) {
|
|
287
|
+
if (!awaited.has(id)) parked.set(id, entity);
|
|
288
|
+
},
|
|
289
|
+
release(ids) {
|
|
290
|
+
for (const id of ids) parked.delete(id);
|
|
291
|
+
},
|
|
292
|
+
clear() {
|
|
293
|
+
parked.clear();
|
|
294
|
+
},
|
|
295
|
+
take(ids) {
|
|
296
|
+
const written = [];
|
|
297
|
+
const missing = [];
|
|
298
|
+
for (const id of ids) {
|
|
299
|
+
const entity = parked.get(id);
|
|
300
|
+
if (entity === void 0) missing.push(id);
|
|
301
|
+
else {
|
|
302
|
+
parked.delete(id);
|
|
303
|
+
written.push(entity);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return {
|
|
307
|
+
written,
|
|
308
|
+
missing
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
awaitingUpstream(ids) {
|
|
312
|
+
for (const id of ids) {
|
|
313
|
+
parked.delete(id);
|
|
314
|
+
awaited.set(id, (awaited.get(id) ?? 0) + 1);
|
|
315
|
+
}
|
|
316
|
+
return () => {
|
|
317
|
+
for (const id of ids) {
|
|
318
|
+
const count = awaited.get(id) ?? 0;
|
|
319
|
+
if (count > 1) awaited.set(id, count - 1);
|
|
320
|
+
else awaited.delete(id);
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
//#endregion
|
|
281
327
|
//#region src/assets.ts
|
|
282
328
|
function mapFile$1(raw) {
|
|
283
329
|
return {
|
|
@@ -309,11 +355,29 @@ function createAssetsCollection(options, client, updates$, refreshByTtl) {
|
|
|
309
355
|
run: () => runFullRefresh("ttl")
|
|
310
356
|
});
|
|
311
357
|
let loaded = false;
|
|
312
|
-
const
|
|
358
|
+
const assetSource = {
|
|
359
|
+
...schema.sources.storeAsset,
|
|
360
|
+
mutations: _contello_client.BUILT_IN_MUTATIONS.asset
|
|
361
|
+
};
|
|
362
|
+
const assetsSourceDoc = (0, _contello_client.createSourceSubscription)(assetSource);
|
|
363
|
+
const writeBuffer = createWriteBuffer();
|
|
364
|
+
function fetchAssets(ids) {
|
|
365
|
+
return (0, _entwico_dash_async.concatAsync)((0, _entwico_dash_async.mapAsync)(client.subscribe(assetsSourceDoc, { ids }), (data) => data.source));
|
|
366
|
+
}
|
|
367
|
+
async function fetchOrTakeWritten(ids) {
|
|
368
|
+
if (ids === void 0) {
|
|
369
|
+
writeBuffer.clear();
|
|
370
|
+
return fetchAssets(void 0);
|
|
371
|
+
}
|
|
372
|
+
const { written, missing } = writeBuffer.take(ids);
|
|
373
|
+
if (missing.length === 0) return written;
|
|
374
|
+
const fetched = await fetchAssets(missing);
|
|
375
|
+
return written.length === 0 ? fetched : [...written, ...fetched];
|
|
376
|
+
}
|
|
313
377
|
const projected = new _entwico_projected.ProjectedMap({
|
|
314
378
|
key: (asset) => asset.id,
|
|
315
379
|
values: (ids) => wrap("assets", async () => {
|
|
316
|
-
const items = (await (
|
|
380
|
+
const items = (await fetchOrTakeWritten(ids)).map((item) => mapAsset$1(item));
|
|
317
381
|
if (ids === void 0 && !loaded) {
|
|
318
382
|
loaded = true;
|
|
319
383
|
ttl.mark();
|
|
@@ -340,10 +404,11 @@ function createAssetsCollection(options, client, updates$, refreshByTtl) {
|
|
|
340
404
|
emit(changedIds, "upstream-update");
|
|
341
405
|
return;
|
|
342
406
|
}
|
|
407
|
+
const settled = writeBuffer.awaitingUpstream(refreshIds);
|
|
343
408
|
(0, _entwico_dash_async.retryWithBackoff)(async () => {
|
|
344
409
|
await projected.refresh(refreshIds);
|
|
345
410
|
emit(changedIds, "upstream-update");
|
|
346
|
-
});
|
|
411
|
+
}).finally(settled);
|
|
347
412
|
}
|
|
348
413
|
const unsubUpdates = updates$.subscribe((batch) => {
|
|
349
414
|
if (!loaded || batch.asset.length === 0) return;
|
|
@@ -352,14 +417,46 @@ function createAssetsCollection(options, client, updates$, refreshByTtl) {
|
|
|
352
417
|
for (const event of batch.asset) if (event.mutation === "delete") deleted.push(event.id);
|
|
353
418
|
else upserted.add(event.id);
|
|
354
419
|
if (cache.eviction === "clear") {
|
|
420
|
+
writeBuffer.clear();
|
|
355
421
|
projected.clear();
|
|
356
422
|
return;
|
|
357
423
|
}
|
|
424
|
+
writeBuffer.release(deleted);
|
|
358
425
|
if (deleted.length > 0) projected.delete(deleted);
|
|
359
426
|
runPartialRefresh([...upserted], deleted);
|
|
360
427
|
});
|
|
428
|
+
async function runMutation(kind, values) {
|
|
429
|
+
const binding = assetSource.mutations?.[kind];
|
|
430
|
+
if (!binding) throw new Error(`@contello/store: assets cannot ${kind} — the schema exposes no ${kind} mutation for assets`);
|
|
431
|
+
const response = await client.execute((0, _contello_client.createSourceMutation)(assetSource, kind), (0, _contello_client.createSourceMutationVariables)(binding, values));
|
|
432
|
+
if (response?.result === void 0 || response.result === null) throw new Error(`@contello/store: ${kind} on assets returned nothing`);
|
|
433
|
+
return response.result;
|
|
434
|
+
}
|
|
361
435
|
return {
|
|
362
436
|
instance: {
|
|
437
|
+
async update(input) {
|
|
438
|
+
const raw = await runMutation("update", { input });
|
|
439
|
+
writeBuffer.park(raw.id, raw);
|
|
440
|
+
let map;
|
|
441
|
+
try {
|
|
442
|
+
map = await projected.refresh([raw.id]);
|
|
443
|
+
} finally {
|
|
444
|
+
writeBuffer.release([raw.id]);
|
|
445
|
+
}
|
|
446
|
+
emit([raw.id], "write");
|
|
447
|
+
const asset = map.get(raw.id);
|
|
448
|
+
if (!asset) throw new Error(`@contello/store: wrote asset "${raw.id}" but it is not in the cache — a concurrent full refresh did not return it`);
|
|
449
|
+
return asset;
|
|
450
|
+
},
|
|
451
|
+
async delete(id) {
|
|
452
|
+
await runMutation("delete", {
|
|
453
|
+
input: { id },
|
|
454
|
+
id
|
|
455
|
+
});
|
|
456
|
+
writeBuffer.release([id]);
|
|
457
|
+
projected.delete([id]);
|
|
458
|
+
emit([id], "write");
|
|
459
|
+
},
|
|
363
460
|
refresh$: channel.stream$,
|
|
364
461
|
async load() {
|
|
365
462
|
if (!loaded) await projected.getAllAsMap();
|
|
@@ -557,6 +654,19 @@ var DependencyCollector = class {
|
|
|
557
654
|
function fetchCollection(source, client, ids) {
|
|
558
655
|
return (0, _entwico_dash_async.concatAsync)((0, _entwico_dash_async.mapAsync)(client.subscribe((0, _contello_client.createSourceSubscription)(source), { ids }), (r) => r.source));
|
|
559
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Runs one write mutation of the source. A create/update selects the source's fragment, so the
|
|
659
|
+
* answer is a raw entity in exactly the shape the source subscription yields — the cache takes it
|
|
660
|
+
* from there. A delete only carries an id.
|
|
661
|
+
*/
|
|
662
|
+
async function runMutation(source, client, name, kind, values) {
|
|
663
|
+
const binding = source.mutations?.[kind];
|
|
664
|
+
if (!binding) throw new Error(`@contello/store: collection "${name}" cannot ${kind} — the schema exposes no ${kind} mutation for model "${source.__model}"`);
|
|
665
|
+
const document = (0, _contello_client.createSourceMutation)(source, kind);
|
|
666
|
+
const response = await client.execute(document, (0, _contello_client.createSourceMutationVariables)(binding, values));
|
|
667
|
+
if (!response?.result) throw new Error(`@contello/store: ${kind} on collection "${name}" returned no entity`);
|
|
668
|
+
return response.result;
|
|
669
|
+
}
|
|
560
670
|
function createCollection(source, options, client, updates$, resolver, refreshByTtl) {
|
|
561
671
|
const opts = options ?? {};
|
|
562
672
|
const mapFn = opts.map ?? ((item) => item);
|
|
@@ -575,9 +685,20 @@ function createCollection(source, options, client, updates$, resolver, refreshBy
|
|
|
575
685
|
run: () => runFullRefresh("ttl")
|
|
576
686
|
});
|
|
577
687
|
let loaded = false;
|
|
688
|
+
const writeBuffer = createWriteBuffer();
|
|
689
|
+
function fetchOrTakeWritten(ids) {
|
|
690
|
+
if (ids === void 0) {
|
|
691
|
+
writeBuffer.clear();
|
|
692
|
+
return fetchCollection(source, client, void 0);
|
|
693
|
+
}
|
|
694
|
+
const { written, missing } = writeBuffer.take(ids);
|
|
695
|
+
if (missing.length === 0) return written;
|
|
696
|
+
if (written.length === 0) return fetchCollection(source, client, missing);
|
|
697
|
+
return (0, _entwico_dash.maybeThen)(fetchCollection(source, client, missing), (fetched) => [...written, ...fetched]);
|
|
698
|
+
}
|
|
578
699
|
const projected = new _entwico_projected.ProjectedMap({
|
|
579
700
|
key: (item) => item.id,
|
|
580
|
-
values: (ids) => wrap(`collection:${_def.name}`, () => (0, _entwico_dash.maybeThen)(
|
|
701
|
+
values: (ids) => wrap(`collection:${_def.name}`, () => (0, _entwico_dash.maybeThen)(fetchOrTakeWritten(ids), async (rawItems) => {
|
|
581
702
|
const items = await (0, _entwico_dash.maybeAll)(rawItems.map((item) => dependencyCollector.createContext((ref, register) => (0, _entwico_dash.maybeThen)(mapFn(item, ref), (mapped) => {
|
|
582
703
|
register(mapped.id);
|
|
583
704
|
return mapped;
|
|
@@ -615,10 +736,11 @@ function createCollection(source, options, client, updates$, resolver, refreshBy
|
|
|
615
736
|
emit(changedIds, "upstream-update");
|
|
616
737
|
return;
|
|
617
738
|
}
|
|
739
|
+
const settled = writeBuffer.awaitingUpstream(refreshIds);
|
|
618
740
|
(0, _entwico_dash_async.retryWithBackoff)(async () => {
|
|
619
741
|
await projected.refresh(refreshIds);
|
|
620
742
|
emit(changedIds, "upstream-update");
|
|
621
|
-
});
|
|
743
|
+
}).finally(settled);
|
|
622
744
|
}
|
|
623
745
|
const unsubUpdates = updates$.subscribe((batch) => {
|
|
624
746
|
if (!loaded) return;
|
|
@@ -632,15 +754,55 @@ function createCollection(source, options, client, updates$, resolver, refreshBy
|
|
|
632
754
|
if (deleted.length === 0 && upserted.size === 0 && depAffected.size === 0) return;
|
|
633
755
|
if (_def.cache.eviction === "clear") {
|
|
634
756
|
dependencyCollector.clear();
|
|
757
|
+
writeBuffer.clear();
|
|
635
758
|
projected.clear();
|
|
636
759
|
return;
|
|
637
760
|
}
|
|
761
|
+
writeBuffer.release(deleted);
|
|
638
762
|
for (const id of deleted) dependencyCollector.removeItem(id);
|
|
639
763
|
if (deleted.length > 0) projected.delete(deleted);
|
|
640
764
|
const refreshIds = upserted.union(depAffected);
|
|
641
765
|
for (const id of deleted) refreshIds.delete(id);
|
|
642
766
|
runPartialRefresh([...refreshIds], deleted);
|
|
643
767
|
});
|
|
768
|
+
/** Puts a written entity into the cache through the normal refresh path and returns it mapped. */
|
|
769
|
+
async function takeIntoCache(entity) {
|
|
770
|
+
writeBuffer.park(entity.id, entity);
|
|
771
|
+
let map;
|
|
772
|
+
try {
|
|
773
|
+
map = await projected.refresh([entity.id]);
|
|
774
|
+
} finally {
|
|
775
|
+
writeBuffer.release([entity.id]);
|
|
776
|
+
}
|
|
777
|
+
emit([entity.id], "write");
|
|
778
|
+
const item = map.get(entity.id);
|
|
779
|
+
if (!item) throw new Error(`@contello/store: collection "${_def.name}" wrote entity "${entity.id}" but it is not in the cache — a concurrent full refresh did not return it`);
|
|
780
|
+
return item;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* One method per mutation the source binds — a model the schema exposes no `createX` for has
|
|
784
|
+
* no `create`, matching what `CollectionWrites` types. Permission is not decided here: the
|
|
785
|
+
* server rejects a write the token may not run.
|
|
786
|
+
*/
|
|
787
|
+
function createWrites() {
|
|
788
|
+
const out = {};
|
|
789
|
+
if (source.mutations?.create) out["create"] = async (input) => takeIntoCache(await runMutation(source, client, _def.name, "create", { input }));
|
|
790
|
+
if (source.mutations?.update) out["update"] = async (input) => takeIntoCache(await runMutation(source, client, _def.name, "update", { input }));
|
|
791
|
+
if (source.mutations?.delete) out["delete"] = async (id, options) => {
|
|
792
|
+
await runMutation(source, client, _def.name, "delete", {
|
|
793
|
+
input: {
|
|
794
|
+
...options,
|
|
795
|
+
id
|
|
796
|
+
},
|
|
797
|
+
id
|
|
798
|
+
});
|
|
799
|
+
writeBuffer.release([id]);
|
|
800
|
+
dependencyCollector.removeItem(id);
|
|
801
|
+
projected.delete([id]);
|
|
802
|
+
emit([id], "write");
|
|
803
|
+
};
|
|
804
|
+
return out;
|
|
805
|
+
}
|
|
644
806
|
return {
|
|
645
807
|
instance: {
|
|
646
808
|
name: _def.name,
|
|
@@ -656,7 +818,8 @@ function createCollection(source, options, client, updates$, resolver, refreshBy
|
|
|
656
818
|
},
|
|
657
819
|
async load() {
|
|
658
820
|
if (!loaded) await projected.getAllAsMap();
|
|
659
|
-
}
|
|
821
|
+
},
|
|
822
|
+
...createWrites()
|
|
660
823
|
},
|
|
661
824
|
destroy() {
|
|
662
825
|
unsubUpdates();
|
|
@@ -1262,11 +1425,29 @@ function createRoutesCollection(options, client, updates$, resolver, refreshByTt
|
|
|
1262
1425
|
const pathById = /* @__PURE__ */ new Map();
|
|
1263
1426
|
const idByPath = /* @__PURE__ */ new Map();
|
|
1264
1427
|
let loaded = false;
|
|
1265
|
-
const
|
|
1428
|
+
const routeSource = {
|
|
1429
|
+
...schema.sources.storeRoute,
|
|
1430
|
+
mutations: _contello_client.BUILT_IN_MUTATIONS.route
|
|
1431
|
+
};
|
|
1432
|
+
const routesSourceDoc = (0, _contello_client.createSourceSubscription)(routeSource);
|
|
1433
|
+
const writeBuffer = createWriteBuffer();
|
|
1434
|
+
function fetchRoutes(ids) {
|
|
1435
|
+
return (0, _entwico_dash_async.concatAsync)((0, _entwico_dash_async.mapAsync)(client.subscribe(routesSourceDoc, { ids }), (data) => data.source));
|
|
1436
|
+
}
|
|
1437
|
+
async function fetchOrTakeWritten(ids) {
|
|
1438
|
+
if (ids === void 0) {
|
|
1439
|
+
writeBuffer.clear();
|
|
1440
|
+
return fetchRoutes(void 0);
|
|
1441
|
+
}
|
|
1442
|
+
const { written, missing } = writeBuffer.take(ids);
|
|
1443
|
+
if (missing.length === 0) return written;
|
|
1444
|
+
const fetched = await fetchRoutes(missing);
|
|
1445
|
+
return written.length === 0 ? fetched : [...written, ...fetched];
|
|
1446
|
+
}
|
|
1266
1447
|
const projected = new _entwico_projected.ProjectedMap({
|
|
1267
1448
|
key: (route) => route.id,
|
|
1268
1449
|
values: (ids) => wrap("routes", async () => {
|
|
1269
|
-
const items = (await (
|
|
1450
|
+
const items = (await fetchOrTakeWritten(ids)).reduce((acc, raw) => {
|
|
1270
1451
|
const mapped = mapRoute(raw, resolver);
|
|
1271
1452
|
if (mapped) acc.push(mapped);
|
|
1272
1453
|
return acc;
|
|
@@ -1321,10 +1502,11 @@ function createRoutesCollection(options, client, updates$, resolver, refreshByTt
|
|
|
1321
1502
|
emit(changedIds, "upstream-update");
|
|
1322
1503
|
return;
|
|
1323
1504
|
}
|
|
1505
|
+
const settled = writeBuffer.awaitingUpstream(refreshIds);
|
|
1324
1506
|
(0, _entwico_dash_async.retryWithBackoff)(async () => {
|
|
1325
1507
|
await projected.refresh(refreshIds);
|
|
1326
1508
|
emit(changedIds, "upstream-update");
|
|
1327
|
-
});
|
|
1509
|
+
}).finally(settled);
|
|
1328
1510
|
}
|
|
1329
1511
|
const unsubUpdates = updates$.subscribe((batch) => {
|
|
1330
1512
|
if (!loaded || batch.route.length === 0) return;
|
|
@@ -1335,9 +1517,11 @@ function createRoutesCollection(options, client, updates$, resolver, refreshByTt
|
|
|
1335
1517
|
if (cache.eviction === "clear") {
|
|
1336
1518
|
pathById.clear();
|
|
1337
1519
|
idByPath.clear();
|
|
1520
|
+
writeBuffer.clear();
|
|
1338
1521
|
projected.clear();
|
|
1339
1522
|
return;
|
|
1340
1523
|
}
|
|
1524
|
+
writeBuffer.release(deleted);
|
|
1341
1525
|
for (const id of deleted) {
|
|
1342
1526
|
const oldPath = pathById.get(id);
|
|
1343
1527
|
if (oldPath !== void 0) {
|
|
@@ -1374,8 +1558,49 @@ function createRoutesCollection(options, client, updates$, resolver, refreshByTt
|
|
|
1374
1558
|
if (loaded) return;
|
|
1375
1559
|
return (0, _entwico_dash.maybeThen)(projected.getAllAsMap(), () => {});
|
|
1376
1560
|
}
|
|
1561
|
+
async function runMutation(kind, values) {
|
|
1562
|
+
const binding = routeSource.mutations?.[kind];
|
|
1563
|
+
if (!binding) throw new Error(`@contello/store: routes cannot ${kind} — the schema exposes no ${kind} mutation for routes`);
|
|
1564
|
+
const response = await client.execute((0, _contello_client.createSourceMutation)(routeSource, kind), (0, _contello_client.createSourceMutationVariables)(binding, values));
|
|
1565
|
+
if (response?.result === void 0 || response.result === null) throw new Error(`@contello/store: ${kind} on routes returned nothing`);
|
|
1566
|
+
return response.result;
|
|
1567
|
+
}
|
|
1568
|
+
/** Takes a written route into the cache through the normal refresh path, keeping both indexes. */
|
|
1569
|
+
async function takeIntoCache(raw) {
|
|
1570
|
+
writeBuffer.park(raw.id, raw);
|
|
1571
|
+
let map;
|
|
1572
|
+
try {
|
|
1573
|
+
map = await projected.refresh([raw.id]);
|
|
1574
|
+
} finally {
|
|
1575
|
+
writeBuffer.release([raw.id]);
|
|
1576
|
+
}
|
|
1577
|
+
emit([raw.id], "write");
|
|
1578
|
+
const route = map.get(raw.id);
|
|
1579
|
+
if (!route) throw new Error(`@contello/store: wrote route "${raw.id}" but it is not in the cache — its target may not have resolved, or a concurrent full refresh did not return it`);
|
|
1580
|
+
return route;
|
|
1581
|
+
}
|
|
1377
1582
|
return {
|
|
1378
1583
|
instance: {
|
|
1584
|
+
async create(input) {
|
|
1585
|
+
return takeIntoCache(await runMutation("create", { input }));
|
|
1586
|
+
},
|
|
1587
|
+
async update(input) {
|
|
1588
|
+
return takeIntoCache(await runMutation("update", { input }));
|
|
1589
|
+
},
|
|
1590
|
+
async delete(id) {
|
|
1591
|
+
await runMutation("delete", {
|
|
1592
|
+
input: { id },
|
|
1593
|
+
id
|
|
1594
|
+
});
|
|
1595
|
+
writeBuffer.release([id]);
|
|
1596
|
+
const oldPath = pathById.get(id);
|
|
1597
|
+
if (oldPath !== void 0) {
|
|
1598
|
+
idByPath.delete(oldPath);
|
|
1599
|
+
pathById.delete(id);
|
|
1600
|
+
}
|
|
1601
|
+
projected.delete([id]);
|
|
1602
|
+
emit([id], "write");
|
|
1603
|
+
},
|
|
1379
1604
|
refresh$: channel.stream$,
|
|
1380
1605
|
async load() {
|
|
1381
1606
|
if (!loaded) await projected.getAllAsMap();
|
package/dist/index.d.cts
CHANGED
|
@@ -133,8 +133,10 @@ type CreateStoreOptions<TSchema extends Schema | undefined = undefined> = {
|
|
|
133
133
|
* full on singleton / i18n, cache eviction on lazy stores).
|
|
134
134
|
* - `'ttl'` — periodic safety-net timer fired.
|
|
135
135
|
* - `'on-demand'` — consumer called `instance.refresh()`.
|
|
136
|
+
* - `'write'` — a `create` / `update` / `delete` on the collection itself; the watcher event
|
|
137
|
+
* for the same change still arrives afterwards and refreshes again.
|
|
136
138
|
*/
|
|
137
|
-
type RefreshKind = 'upstream-update' | 'ttl' | 'on-demand';
|
|
139
|
+
type RefreshKind = 'upstream-update' | 'ttl' | 'on-demand' | 'write';
|
|
138
140
|
/** Refresh event shape for stores keyed by id (collection, lazy-collection, routes, assets, i18n). */
|
|
139
141
|
type RefreshEvent = {
|
|
140
142
|
ids: string[];
|
|
@@ -231,7 +233,7 @@ type CollectionSyncOptions<TRaw, TMapped extends {
|
|
|
231
233
|
onLoad?: ((ids: string[]) => void) | undefined;
|
|
232
234
|
onRefresh?: ((event: RefreshEvent) => void) | undefined;
|
|
233
235
|
};
|
|
234
|
-
type Collection<T> = {
|
|
236
|
+
type Collection<T, TWrites = unknown> = {
|
|
235
237
|
readonly name: string;
|
|
236
238
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
237
239
|
load(): Promise<void>;
|
|
@@ -239,8 +241,8 @@ type Collection<T> = {
|
|
|
239
241
|
get(ids: readonly string[]): MaybePromise<ReadonlyArray<ReadonlyDeep<T>>>;
|
|
240
242
|
getAll(): MaybePromise<ReadonlyArray<ReadonlyDeep<T>>>;
|
|
241
243
|
refresh(): void;
|
|
242
|
-
}
|
|
243
|
-
type CollectionSync<T> = {
|
|
244
|
+
} & CollectionWrites<T, TWrites>;
|
|
245
|
+
type CollectionSync<T, TWrites = unknown> = {
|
|
244
246
|
readonly name: string;
|
|
245
247
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
246
248
|
load(): Promise<void>;
|
|
@@ -248,7 +250,43 @@ type CollectionSync<T> = {
|
|
|
248
250
|
get(ids: readonly string[]): ReadonlyArray<ReadonlyDeep<T>>;
|
|
249
251
|
getAll(): ReadonlyArray<ReadonlyDeep<T>>;
|
|
250
252
|
refresh(): void;
|
|
251
|
-
}
|
|
253
|
+
} & CollectionWrites<T, TWrites>;
|
|
254
|
+
/** The phantom write-input shape a SourceDef carries, or `unknown` when it carries none. */
|
|
255
|
+
type ExtractSourceWrites<S> = S extends SourceDef<string, SourceCardinality, any, infer TWrites> ? TWrites : unknown;
|
|
256
|
+
/** Everything the model's delete mutation accepts besides the id (e.g. `force`). */
|
|
257
|
+
type DeleteOptions<TDelete> = Omit<TDelete, 'id'>;
|
|
258
|
+
/**
|
|
259
|
+
* The write-input shape of the schema's built-in source of a given cardinality — `unknown` when
|
|
260
|
+
* the app's documents carry no fragment for it, which is also when its writes cannot be typed.
|
|
261
|
+
*/
|
|
262
|
+
type BuiltInWrites<TSchema, TCardinality extends SourceCardinality> = [SourceKeysOf<TSchema, TCardinality>] extends [never] ? unknown : ExtractSourceWrites<SourceAt<TSchema, SourceKeysOf<TSchema, TCardinality>>>;
|
|
263
|
+
/**
|
|
264
|
+
* The write half of a source-backed store — collections, routes, assets: one method per mutation
|
|
265
|
+
* the schema defines for it, so a model without a `createX` has no `create` here, and an asset
|
|
266
|
+
* (which comes into being through `client.upload()`) has no `create` at all. Whether the token
|
|
267
|
+
* may run them is the server's call — it answers a write it does not allow with an error, like
|
|
268
|
+
* any other request.
|
|
269
|
+
*
|
|
270
|
+
* Writes are expressed in the model's raw input types, not in the mapped shape: `map()` is
|
|
271
|
+
* one-way, so there is no way back from `T` to what the server accepts. What comes back is
|
|
272
|
+
* mapped — `create` and `update` answer with the entity as the collection sees it.
|
|
273
|
+
*
|
|
274
|
+
* `update` is a patch: attributes left out keep their stored value, per property and, for
|
|
275
|
+
* translatable ones, per locale.
|
|
276
|
+
*/
|
|
277
|
+
type CollectionWrites<TMapped, TWrites> = (TWrites extends {
|
|
278
|
+
create: infer TCreate;
|
|
279
|
+
} ? {
|
|
280
|
+
create(input: TCreate): Promise<ReadonlyDeep<TMapped>>;
|
|
281
|
+
} : Record<never, never>) & (TWrites extends {
|
|
282
|
+
update: infer TUpdate;
|
|
283
|
+
} ? {
|
|
284
|
+
update(input: TUpdate): Promise<ReadonlyDeep<TMapped>>;
|
|
285
|
+
} : Record<never, never>) & (TWrites extends {
|
|
286
|
+
delete: infer TDelete;
|
|
287
|
+
} ? {
|
|
288
|
+
delete(id: string, options?: DeleteOptions<TDelete> | undefined): Promise<void>;
|
|
289
|
+
} : Record<never, never>);
|
|
252
290
|
type LazyCollectionOptions<TRaw, TMapped extends {
|
|
253
291
|
id: string;
|
|
254
292
|
}, TModels extends string = string> = {
|
|
@@ -308,7 +346,11 @@ type AssetsSyncOptions = {
|
|
|
308
346
|
onLoad?: ((ids: string[]) => void) | undefined;
|
|
309
347
|
onRefresh?: ((event: RefreshEvent) => void) | undefined;
|
|
310
348
|
};
|
|
311
|
-
|
|
349
|
+
/**
|
|
350
|
+
* There is no `create`: an asset comes into being through `upload()`, which is the transport, not
|
|
351
|
+
* a mutation. `update` patches the mutable metadata — fields left out keep their value.
|
|
352
|
+
*/
|
|
353
|
+
type Assets<TWrites = unknown> = {
|
|
312
354
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
313
355
|
load(): Promise<void>;
|
|
314
356
|
get(id: string): MaybePromise<ReadonlyDeep<StoreAsset> | undefined>;
|
|
@@ -317,8 +359,8 @@ type Assets = {
|
|
|
317
359
|
download(fileId: string): Promise<DownloadResult>;
|
|
318
360
|
proxyHls(path: string, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
319
361
|
refresh(): void;
|
|
320
|
-
}
|
|
321
|
-
type AssetsSync = {
|
|
362
|
+
} & CollectionWrites<StoreAsset, TWrites>;
|
|
363
|
+
type AssetsSync<TWrites = unknown> = {
|
|
322
364
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
323
365
|
load(): Promise<void>;
|
|
324
366
|
get(id: string): ReadonlyDeep<StoreAsset> | undefined;
|
|
@@ -327,7 +369,7 @@ type AssetsSync = {
|
|
|
327
369
|
download(fileId: string): Promise<DownloadResult>;
|
|
328
370
|
proxyHls(path: string, signal?: AbortSignal | undefined): Promise<ProxyResult>;
|
|
329
371
|
refresh(): void;
|
|
330
|
-
}
|
|
372
|
+
} & CollectionWrites<StoreAsset, TWrites>;
|
|
331
373
|
//#endregion
|
|
332
374
|
//#region src/i18n.d.ts
|
|
333
375
|
type I18nTranslation = {
|
|
@@ -397,7 +439,11 @@ type RoutesSyncOptions = {
|
|
|
397
439
|
onLoad?: ((ids: string[]) => void) | undefined;
|
|
398
440
|
onRefresh?: ((event: RefreshEvent) => void) | undefined;
|
|
399
441
|
};
|
|
400
|
-
|
|
442
|
+
/**
|
|
443
|
+
* `update` is not the patch a collection's is: `updateContelloRoute` is keyed by the `path` in its
|
|
444
|
+
* input — there is no id — and it replaces the route, so a field left out is cleared, not kept.
|
|
445
|
+
*/
|
|
446
|
+
type Routes<TWrites = unknown> = {
|
|
401
447
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
402
448
|
load(): Promise<void>;
|
|
403
449
|
get(id: string): MaybePromise<ReadonlyDeep<StoreRoute> | undefined>;
|
|
@@ -405,8 +451,8 @@ type Routes = {
|
|
|
405
451
|
getByPath(path: string): MaybePromise<ReadonlyDeep<StoreRoute> | undefined>;
|
|
406
452
|
getByPath(paths: readonly string[]): MaybePromise<ReadonlyArray<ReadonlyDeep<StoreRoute>>>;
|
|
407
453
|
refresh(): void;
|
|
408
|
-
}
|
|
409
|
-
type RoutesSync = {
|
|
454
|
+
} & CollectionWrites<StoreRoute, TWrites>;
|
|
455
|
+
type RoutesSync<TWrites = unknown> = {
|
|
410
456
|
readonly refresh$: AsyncIterable<RefreshEvent>;
|
|
411
457
|
load(): Promise<void>;
|
|
412
458
|
get(id: string): ReadonlyDeep<StoreRoute> | undefined;
|
|
@@ -414,7 +460,7 @@ type RoutesSync = {
|
|
|
414
460
|
getByPath(path: string): ReadonlyDeep<StoreRoute> | undefined;
|
|
415
461
|
getByPath(paths: readonly string[]): ReadonlyArray<ReadonlyDeep<StoreRoute>>;
|
|
416
462
|
refresh(): void;
|
|
417
|
-
}
|
|
463
|
+
} & CollectionWrites<StoreRoute, TWrites>;
|
|
418
464
|
//#endregion
|
|
419
465
|
//#region src/store.d.ts
|
|
420
466
|
/** Project the model-reference-name union out of a Schema generic, falling back to `string`. */
|
|
@@ -424,6 +470,10 @@ type ModelsOf<TSchema> = TSchema extends {
|
|
|
424
470
|
type CollectionArg<TSchema> = SourceKeysOf<TSchema, 'entity'> | SourceDef<ModelsOf<TSchema>, 'entity'>;
|
|
425
471
|
type SingletonArg<TSchema> = SourceKeysOf<TSchema, 'singleton'> | SourceDef<ModelsOf<TSchema>, 'singleton'>;
|
|
426
472
|
type CollectionRaw<TSchema, TArg> = ExtractSourceResult<Extract<ResolveSource<TSchema, TArg>, SourceDef<string, 'entity'>>>;
|
|
473
|
+
/** The write-input shape the source carries — `unknown` for sources the generator bound no mutations to. */
|
|
474
|
+
type CollectionWritesOf<TSchema, TArg> = ExtractSourceWrites<Extract<ResolveSource<TSchema, TArg>, SourceDef<string, 'entity'>>>;
|
|
475
|
+
type RouteWrites<TSchema> = BuiltInWrites<TSchema, 'route'>;
|
|
476
|
+
type AssetWrites<TSchema> = BuiltInWrites<TSchema, 'asset'>;
|
|
427
477
|
type SingletonRaw<TSchema, TArg> = ExtractSourceResult<Extract<ResolveSource<TSchema, TArg>, SourceDef<string, 'singleton'>>>;
|
|
428
478
|
declare class Store<TSchema extends Schema | undefined = undefined> {
|
|
429
479
|
private _client;
|
|
@@ -450,26 +500,26 @@ declare class Store<TSchema extends Schema | undefined = undefined> {
|
|
|
450
500
|
id: string;
|
|
451
501
|
} = CollectionRaw<TSchema, TArg> & {
|
|
452
502
|
id: string;
|
|
453
|
-
}>(sourceOrKey: TArg, options?: CollectionOptions<CollectionRaw<TSchema, TArg>, TMapped, ModelsOf<TSchema>>): Collection<TMapped
|
|
503
|
+
}>(sourceOrKey: TArg, options?: CollectionOptions<CollectionRaw<TSchema, TArg>, TMapped, ModelsOf<TSchema>>): Collection<TMapped, CollectionWritesOf<TSchema, TArg>>;
|
|
454
504
|
defineCollectionSync<TArg extends CollectionArg<TSchema>, TMapped extends {
|
|
455
505
|
id: string;
|
|
456
506
|
} = CollectionRaw<TSchema, TArg> & {
|
|
457
507
|
id: string;
|
|
458
|
-
}>(sourceOrKey: TArg, options?: CollectionSyncOptions<CollectionRaw<TSchema, TArg>, TMapped, ModelsOf<TSchema>>): CollectionSync<TMapped
|
|
508
|
+
}>(sourceOrKey: TArg, options?: CollectionSyncOptions<CollectionRaw<TSchema, TArg>, TMapped, ModelsOf<TSchema>>): CollectionSync<TMapped, CollectionWritesOf<TSchema, TArg>>;
|
|
459
509
|
defineLazyCollection<TArg extends CollectionArg<TSchema>, TMapped extends {
|
|
460
510
|
id: string;
|
|
461
511
|
} = CollectionRaw<TSchema, TArg> & {
|
|
462
512
|
id: string;
|
|
463
513
|
}>(sourceOrKey: TArg, options?: LazyCollectionOptions<CollectionRaw<TSchema, TArg>, TMapped, ModelsOf<TSchema>>): LazyCollection<TMapped>;
|
|
464
|
-
defineAssets(options?: AssetsOptions | undefined): Assets
|
|
465
|
-
defineAssetsSync(options?: AssetsSyncOptions | undefined): AssetsSync
|
|
514
|
+
defineAssets(options?: AssetsOptions | undefined): Assets<AssetWrites<TSchema>>;
|
|
515
|
+
defineAssetsSync(options?: AssetsSyncOptions | undefined): AssetsSync<AssetWrites<TSchema>>;
|
|
466
516
|
defineLazyAssets(options?: LazyAssetsOptions | undefined): LazyAssets;
|
|
467
|
-
defineRoutes(options?: RoutesOptions | undefined): Routes
|
|
468
|
-
defineRoutesSync(options?: RoutesSyncOptions | undefined): RoutesSync
|
|
517
|
+
defineRoutes(options?: RoutesOptions | undefined): Routes<RouteWrites<TSchema>>;
|
|
518
|
+
defineRoutesSync(options?: RoutesSyncOptions | undefined): RoutesSync<RouteWrites<TSchema>>;
|
|
469
519
|
defineLazyRoutes(options?: LazyRoutesOptions | undefined): LazyRoutes;
|
|
470
520
|
defineI18nMessages(def: I18nMessageDef): I18nMessages;
|
|
471
521
|
}
|
|
472
522
|
declare function createStore<TSchema extends Schema | undefined = undefined>(options: CreateStoreOptions<TSchema>): Store<TSchema>;
|
|
473
523
|
//#endregion
|
|
474
|
-
export { type Assets, type AssetsOptions, type AssetsSync, type AssetsSyncOptions, type CacheOptions, type Collection, type CollectionOptions, type CollectionSync, type CollectionSyncOptions, type CreateStoreOptions, type ExtractSourceResult, type I18nInitialTranslation, type I18nMessage, type I18nMessageDef, type I18nMessageRegistrationDefinition, type I18nMessages, type I18nTranslation, type I18nVariableInput, type LazyAssets, type LazyAssetsOptions, type LazyCacheOptions, type LazyCollection, type LazyCollectionOptions, type LazyRoutes, type LazyRoutesOptions, type Loadable, type MapperContext, type ResolveSource, type Routes, type RoutesOptions, type RoutesSync, type RoutesSyncOptions, type Singleton, type SingletonOptions, type SingletonSync, type SingletonSyncOptions, type SourceAt, type SourceKeysOf, Store, type StoreAsset, type StoreFile, type StoreFileMetadata, type StoreRoute, type StoreRouteCustomHeader, type SyncCacheOptions, type UpdateBatch, type UpdateEvent, type UpdateEventFor, type UpdateMutationType, createStore };
|
|
524
|
+
export { type Assets, type AssetsOptions, type AssetsSync, type AssetsSyncOptions, type BuiltInWrites, type CacheOptions, type Collection, type CollectionOptions, type CollectionSync, type CollectionSyncOptions, type CollectionWrites, type CreateStoreOptions, type DeleteOptions, type ExtractSourceResult, type ExtractSourceWrites, type I18nInitialTranslation, type I18nMessage, type I18nMessageDef, type I18nMessageRegistrationDefinition, type I18nMessages, type I18nTranslation, type I18nVariableInput, type LazyAssets, type LazyAssetsOptions, type LazyCacheOptions, type LazyCollection, type LazyCollectionOptions, type LazyRoutes, type LazyRoutesOptions, type Loadable, type MapperContext, type ResolveSource, type Routes, type RoutesOptions, type RoutesSync, type RoutesSyncOptions, type Singleton, type SingletonOptions, type SingletonSync, type SingletonSyncOptions, type SourceAt, type SourceKeysOf, Store, type StoreAsset, type StoreFile, type StoreFileMetadata, type StoreRoute, type StoreRouteCustomHeader, type SyncCacheOptions, type UpdateBatch, type UpdateEvent, type UpdateEventFor, type UpdateMutationType, createStore };
|
|
475
525
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/routes-mapping.ts","../src/watcher.ts","../src/dependency-collector.ts","../src/types.ts","../src/lazy-assets.ts","../src/assets.ts","../src/i18n.ts","../src/lazy-routes.ts","../src/routes.ts","../src/store.ts"],"mappings":";;;KAGY,sBAAA;EACV,IAAA;EACA,KAAK;AAAA;AAAA,KAGK,UAAA;EACV,EAAA;EACA,IAAA;EACA,aAAA,EAAe,sBAAsB;AAAA;EAEjC,IAAA;EAAkB,QAAA;EAAkB,MAAA;AAAA;EACpC,IAAA;EAAc,OAAA;EAAiB,QAAA;AAAA;EAC/B,IAAA;EAAe,OA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AAA,EAAS,IAAA,GAAO,OAAA,EAAS,QAAA,CAAS,OAAA,KAC3E,UAAA,CAAW,OAAA;EAgBP,oBAAA,cACQ,aAAA,CAAc,OAAA;IACT,EAAA;EAAA,IAAe,aAAA,CAAc,OAAA,EAAS,IAAA;IAAU,EAAA;EAAA,GAElE,WAAA,EAAa,IAAA,EACb,OAAA,GAAU,qBAAA,CAAsB,aAAA,CAAc,OAAA,EAAS,IAAA,GAAO,OAAA,EAAS,QAAA,CAAS,OAAA,KAC/E,cAAA,CAAe,OAAA;EAkBX,oBAAA,cACQ,aAAA,CAAc,OAAA;IACT,EAAA;EAAA,IAAe,aAAA,CAAc,OAAA,EAAS,IAAA;IAAU,EAAA;EAAA,GAElE,WAAA,EAAa,IAAA,EACb,OAAA,GAAU,qBAAA,CAAsB,aAAA,CAAc,OAAA,EAAS,IAAA,GAAO,OAAA,EAAS,QAAA,CAAS,OAAA,KAC/E,cAAA,CAAe,OAAA;EAmBX,YAAA,CAAa,OAAA,GAAU,aAAA,eAA4B,MAAA;EAanD,gBAAA,CAAiB,OAAA,GAAU,iBAAA,eAAgC,UAAA;EAa3D,gBAAA,CAAiB,OAAA,GAAU,iBAAA,eAAgC,UAAA;EAU3D,YAAA,CAAa,OAAA,GAAU,aAAA,eAA4B,MAAA;EAcnD,gBAAA,CAAiB,OAAA,GAAU,iBAAA,eAAgC,UAAA;EAc3D,gBAAA,CAAiB,OAAA,GAAU,iBAAA,eAAgC,UAAA;EAa3D,kBAAA,CAAmB,GAAA,EAAK,cAAA,GAAiB,YAAA;AAAA;AAAA,iBASlC,WAAA,iBAA4B,MAAA,0BAC1C,OAAA,EAAS,kBAAA,CAAmB,OAAA,IAC3B,KAAA,CAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/routes-mapping.ts","../src/watcher.ts","../src/dependency-collector.ts","../src/types.ts","../src/lazy-assets.ts","../src/assets.ts","../src/i18n.ts","../src/lazy-routes.ts","../src/routes.ts","../src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