@camstack/server 1.2.444 → 1.2.446

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: 160 Skipped (legacy): 3
5
+ // Mounted: 162 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -106,6 +106,24 @@ function mountAllCaps(services) {
106
106
  };
107
107
  }, remoteCapProxy),
108
108
  button: (0, generated_cap_routers_js_1.createCapRouter_button)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'button'), remoteCapProxy),
109
+ calendarSource: (0, generated_cap_routers_js_1.createCapRouter_calendarSource)((_ctx, addonId) => {
110
+ if (!reg)
111
+ return null;
112
+ if (addonId !== undefined) {
113
+ return reg.getProviderByAddonId('calendar-source', addonId);
114
+ }
115
+ const entries = reg.getCollectionEntries('calendar-source');
116
+ if (entries.length === 0)
117
+ return null;
118
+ const providers = entries.map(([, p]) => p);
119
+ const first = providers[0];
120
+ return {
121
+ ...first,
122
+ listCalendars: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listCalendars'),
123
+ listEvents: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listEvents'),
124
+ };
125
+ }, remoteCapProxy),
126
+ calendars: (0, generated_cap_routers_js_1.createCapRouter_calendars)((_ctx) => reg?.getSingleton('calendars') ?? null, remoteCapProxy),
109
127
  cameraCredentials: (0, generated_cap_routers_js_1.createCapRouter_cameraCredentials)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'camera-credentials'), remoteCapProxy),
110
128
  cameraGridLayout: (0, generated_cap_routers_js_1.createCapRouter_cameraGridLayout)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'camera-grid-layout'), remoteCapProxy),
111
129
  cameraPipelineConfig: (0, generated_cap_routers_js_1.createCapRouter_cameraPipelineConfig)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'camera-pipeline-config'), remoteCapProxy),