@camstack/server 1.2.244 → 1.2.245

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.
@@ -2,7 +2,7 @@
2
2
  // AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
3
3
  // Re-run: npx tsx scripts/generate-cap-mounts.ts
4
4
  //
5
- // Mounted: 152 Skipped (legacy): 3
5
+ // Mounted: 153 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -459,6 +459,22 @@ function mountAllCaps(services) {
459
459
  }, remoteCapProxy),
460
460
  storageMigration: (0, generated_cap_routers_js_1.createCapRouter_storageMigration)((_ctx) => reg?.getSingleton('storage-migration') ??
461
461
  null, remoteCapProxy),
462
+ storageOccupancy: (0, generated_cap_routers_js_1.createCapRouter_storageOccupancy)((_ctx, addonId) => {
463
+ if (!reg)
464
+ return null;
465
+ if (addonId !== undefined) {
466
+ return reg.getProviderByAddonId('storage-occupancy', addonId);
467
+ }
468
+ const entries = reg.getCollectionEntries('storage-occupancy');
469
+ if (entries.length === 0)
470
+ return null;
471
+ const providers = entries.map(([, p]) => p);
472
+ const first = providers[0];
473
+ return {
474
+ ...first,
475
+ getOccupancy: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'getOccupancy'),
476
+ };
477
+ }, remoteCapProxy),
462
478
  storageProvider: (0, generated_cap_routers_js_1.createCapRouter_storageProvider)((_ctx, addonId) => {
463
479
  if (!reg)
464
480
  return null;