@camstack/ui-library 1.2.198 → 1.2.200
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.
|
@@ -18,6 +18,11 @@ import { DeviceControlProps } from './control-registry';
|
|
|
18
18
|
* of sizing makes it. So the row shows what a row is for — **the state** — and
|
|
19
19
|
* offers the modes through a select, which is one line at any width. The four
|
|
20
20
|
* segments live in the hero, where there is room for them.
|
|
21
|
+
*
|
|
22
|
+
* A refusal (D630) still has to be visible here, one line or not — it is a
|
|
23
|
+
* small danger badge (icon only, `title` carries the full message, same
|
|
24
|
+
* pattern as `OfflineBadge`) appended after the select. It never grows the
|
|
25
|
+
* row past one line.
|
|
21
26
|
*/
|
|
22
27
|
export declare function AlarmInlineControl({ trpc, deviceId, optimistic }: DeviceControlProps): ReactNode;
|
|
23
28
|
/**
|
|
@@ -34,5 +39,9 @@ export declare function AlarmInlineControl({ trpc, deviceId, optimistic }: Devic
|
|
|
34
39
|
* PIN entry (when `requiresCode`) is deferred to a later task; the segments
|
|
35
40
|
* call arm/disarm without a code, and the provider rejects when a code is
|
|
36
41
|
* required — surfaced upstream.
|
|
42
|
+
*
|
|
43
|
+
* A refusal (D630: an open device, a required code, …) is never a swallowed
|
|
44
|
+
* promise — `useAlarmControl` rolls the optimistic state back and hands the
|
|
45
|
+
* rejection's message back as `error`, rendered below the segments.
|
|
37
46
|
*/
|
|
38
47
|
export declare function AlarmHeroCard({ trpc, deviceId, optimistic }: DeviceControlProps): ReactNode;
|
|
@@ -669,12 +669,6 @@ export declare const useDoorbellApplyDeviceSettingsPatch: typeof trpc.doorbell.a
|
|
|
669
669
|
export declare const useEnumSensorGetStatus: typeof trpc.enumSensor.getStatus.useQuery;
|
|
670
670
|
/** Generated alias around `trpc.eventEmitter.getStatus.useQuery`. */
|
|
671
671
|
export declare const useEventEmitterGetStatus: typeof trpc.eventEmitter.getStatus.useQuery;
|
|
672
|
-
/** Generated alias around `trpc.events.getEvents.useQuery`. */
|
|
673
|
-
export declare const useEventsGetEvents: typeof trpc.events.getEvents.useQuery;
|
|
674
|
-
/** Generated alias around `trpc.events.getEventThumbnail.useQuery`. */
|
|
675
|
-
export declare const useEventsGetEventThumbnail: typeof trpc.events.getEventThumbnail.useQuery;
|
|
676
|
-
/** Generated alias around `trpc.events.getEventClipUrl.useQuery`. */
|
|
677
|
-
export declare const useEventsGetEventClipUrl: typeof trpc.events.getEventClipUrl.useQuery;
|
|
678
672
|
/** Generated alias around `trpc.faceGallery.listIdentities.useQuery`. */
|
|
679
673
|
export declare const useFaceGalleryListIdentities: typeof trpc.faceGallery.listIdentities.useQuery;
|
|
680
674
|
/** Generated alias around `trpc.faceGallery.createIdentity.useMutation`. */
|
|
@@ -1079,6 +1073,10 @@ export declare const useNotificationRulesSetDeviceMuted: typeof trpc.notificatio
|
|
|
1079
1073
|
export declare const useNotificationRulesTestRule: typeof trpc.notificationRules.testRule.useMutation;
|
|
1080
1074
|
/** Generated alias around `trpc.notificationRules.getConditionCatalog.useQuery`. */
|
|
1081
1075
|
export declare const useNotificationRulesGetConditionCatalog: typeof trpc.notificationRules.getConditionCatalog.useQuery;
|
|
1076
|
+
/** Generated alias around `trpc.notificationRules.getTemplateCatalog.useQuery`. */
|
|
1077
|
+
export declare const useNotificationRulesGetTemplateCatalog: typeof trpc.notificationRules.getTemplateCatalog.useQuery;
|
|
1078
|
+
/** Generated alias around `trpc.notificationRules.previewTemplate.useMutation`. */
|
|
1079
|
+
export declare const useNotificationRulesPreviewTemplate: typeof trpc.notificationRules.previewTemplate.useMutation;
|
|
1082
1080
|
/** Generated alias around `trpc.notificationRules.getHistory.useQuery`. */
|
|
1083
1081
|
export declare const useNotificationRulesGetHistory: typeof trpc.notificationRules.getHistory.useQuery;
|
|
1084
1082
|
/** Generated alias around `trpc.notificationRules.resolveArtifactUrl.useQuery`. */
|
|
@@ -1583,80 +1581,84 @@ export declare const usePtzAutotrackGetSettings: typeof trpc.ptzAutotrack.getSet
|
|
|
1583
1581
|
export declare const usePtzAutotrackSetSettings: typeof trpc.ptzAutotrack.setSettings.useMutation;
|
|
1584
1582
|
/** Generated alias around `trpc.reboot.reboot.useMutation`. */
|
|
1585
1583
|
export declare const useRebootReboot: typeof trpc.reboot.reboot.useMutation;
|
|
1584
|
+
/** Generated alias around `trpc.recording.listSources.useQuery`. */
|
|
1585
|
+
export declare const useRecordingListSources: typeof trpc.recording.listSources.useQuery;
|
|
1586
1586
|
/** Generated alias around `trpc.recording.getAvailability.useQuery`. */
|
|
1587
1587
|
export declare const useRecordingGetAvailability: typeof trpc.recording.getAvailability.useQuery;
|
|
1588
|
-
/** Generated alias around `trpc.recording.getAvailabilityBatch.useQuery`. */
|
|
1589
|
-
export declare const useRecordingGetAvailabilityBatch: typeof trpc.recording.getAvailabilityBatch.useQuery;
|
|
1590
1588
|
/** Generated alias around `trpc.recording.getDaysWithRecordings.useQuery`. */
|
|
1591
1589
|
export declare const useRecordingGetDaysWithRecordings: typeof trpc.recording.getDaysWithRecordings.useQuery;
|
|
1592
|
-
/** Generated alias around `trpc.recording.
|
|
1593
|
-
export declare const
|
|
1594
|
-
/** Generated alias around `trpc.recording.
|
|
1595
|
-
export declare const
|
|
1596
|
-
/** Generated alias around `trpc.
|
|
1597
|
-
export declare const
|
|
1598
|
-
/** Generated alias around `trpc.
|
|
1599
|
-
export declare const
|
|
1600
|
-
/** Generated alias around `trpc.
|
|
1601
|
-
export declare const
|
|
1602
|
-
/** Generated alias around `trpc.
|
|
1603
|
-
export declare const
|
|
1604
|
-
/** Generated alias around `trpc.
|
|
1605
|
-
export declare const
|
|
1606
|
-
/** Generated alias around `trpc.
|
|
1607
|
-
export declare const
|
|
1608
|
-
/** Generated alias around `trpc.
|
|
1609
|
-
export declare const
|
|
1610
|
-
/** Generated alias around `trpc.
|
|
1611
|
-
export declare const
|
|
1612
|
-
/** Generated alias around `trpc.
|
|
1613
|
-
export declare const
|
|
1614
|
-
/** Generated alias around `trpc.
|
|
1615
|
-
export declare const
|
|
1616
|
-
/** Generated alias around `trpc.
|
|
1617
|
-
export declare const
|
|
1618
|
-
/** Generated alias around `trpc.
|
|
1619
|
-
export declare const
|
|
1620
|
-
/** Generated alias around `trpc.
|
|
1621
|
-
export declare const
|
|
1622
|
-
/** Generated alias around `trpc.
|
|
1623
|
-
export declare const
|
|
1624
|
-
/** Generated alias around `trpc.
|
|
1625
|
-
export declare const
|
|
1626
|
-
/** Generated alias around `trpc.
|
|
1627
|
-
export declare const
|
|
1628
|
-
/** Generated alias around `trpc.
|
|
1629
|
-
export declare const
|
|
1630
|
-
/** Generated alias around `trpc.
|
|
1631
|
-
export declare const
|
|
1632
|
-
/** Generated alias around `trpc.
|
|
1633
|
-
export declare const
|
|
1634
|
-
/** Generated alias around `trpc.
|
|
1635
|
-
export declare const
|
|
1636
|
-
/** Generated alias around `trpc.
|
|
1637
|
-
export declare const
|
|
1638
|
-
/** Generated alias around `trpc.
|
|
1639
|
-
export declare const
|
|
1640
|
-
/** Generated alias around `trpc.
|
|
1641
|
-
export declare const
|
|
1642
|
-
/** Generated alias around `trpc.
|
|
1643
|
-
export declare const
|
|
1644
|
-
/** Generated alias around `trpc.
|
|
1645
|
-
export declare const
|
|
1646
|
-
/** Generated alias around `trpc.
|
|
1647
|
-
export declare const
|
|
1648
|
-
/** Generated alias around `trpc.
|
|
1649
|
-
export declare const
|
|
1650
|
-
/** Generated alias around `trpc.
|
|
1651
|
-
export declare const
|
|
1652
|
-
/** Generated alias around `trpc.
|
|
1653
|
-
export declare const
|
|
1654
|
-
/** Generated alias around `trpc.
|
|
1655
|
-
export declare const
|
|
1656
|
-
/** Generated alias around `trpc.
|
|
1657
|
-
export declare const
|
|
1658
|
-
/** Generated alias around `trpc.
|
|
1659
|
-
export declare const
|
|
1590
|
+
/** Generated alias around `trpc.recording.getPlayback.useQuery`. */
|
|
1591
|
+
export declare const useRecordingGetPlayback: typeof trpc.recording.getPlayback.useQuery;
|
|
1592
|
+
/** Generated alias around `trpc.recording.getPlaybackOptions.useQuery`. */
|
|
1593
|
+
export declare const useRecordingGetPlaybackOptions: typeof trpc.recording.getPlaybackOptions.useQuery;
|
|
1594
|
+
/** Generated alias around `trpc.recordingArchive.getAvailabilityBatch.useQuery`. */
|
|
1595
|
+
export declare const useRecordingArchiveGetAvailabilityBatch: typeof trpc.recordingArchive.getAvailabilityBatch.useQuery;
|
|
1596
|
+
/** Generated alias around `trpc.recordingArchive.getDaysWithRecordingsBatch.useQuery`. */
|
|
1597
|
+
export declare const useRecordingArchiveGetDaysWithRecordingsBatch: typeof trpc.recordingArchive.getDaysWithRecordingsBatch.useQuery;
|
|
1598
|
+
/** Generated alias around `trpc.recordingArchive.getStorageUsage.useQuery`. */
|
|
1599
|
+
export declare const useRecordingArchiveGetStorageUsage: typeof trpc.recordingArchive.getStorageUsage.useQuery;
|
|
1600
|
+
/** Generated alias around `trpc.recordingArchive.getDeviceConfig.useQuery`. */
|
|
1601
|
+
export declare const useRecordingArchiveGetDeviceConfig: typeof trpc.recordingArchive.getDeviceConfig.useQuery;
|
|
1602
|
+
/** Generated alias around `trpc.recordingArchive.locateSegment.useQuery`. */
|
|
1603
|
+
export declare const useRecordingArchiveLocateSegment: typeof trpc.recordingArchive.locateSegment.useQuery;
|
|
1604
|
+
/** Generated alias around `trpc.recordingArchive.readSegmentBytes.useQuery`. */
|
|
1605
|
+
export declare const useRecordingArchiveReadSegmentBytes: typeof trpc.recordingArchive.readSegmentBytes.useQuery;
|
|
1606
|
+
/** Generated alias around `trpc.recordingArchive.readGopBytes.useQuery`. */
|
|
1607
|
+
export declare const useRecordingArchiveReadGopBytes: typeof trpc.recordingArchive.readGopBytes.useQuery;
|
|
1608
|
+
/** Generated alias around `trpc.recordingArchive.readWindowBytes.useQuery`. */
|
|
1609
|
+
export declare const useRecordingArchiveReadWindowBytes: typeof trpc.recordingArchive.readWindowBytes.useQuery;
|
|
1610
|
+
/** Generated alias around `trpc.recordingArchive.setDeviceConfig.useMutation`. */
|
|
1611
|
+
export declare const useRecordingArchiveSetDeviceConfig: typeof trpc.recordingArchive.setDeviceConfig.useMutation;
|
|
1612
|
+
/** Generated alias around `trpc.recordingArchive.rescanStorage.useMutation`. */
|
|
1613
|
+
export declare const useRecordingArchiveRescanStorage: typeof trpc.recordingArchive.rescanStorage.useMutation;
|
|
1614
|
+
/** Generated alias around `trpc.recordingArchive.pruneFootage.useMutation`. */
|
|
1615
|
+
export declare const useRecordingArchivePruneFootage: typeof trpc.recordingArchive.pruneFootage.useMutation;
|
|
1616
|
+
/** Generated alias around `trpc.recordingArchive.deleteFootprint.useMutation`. */
|
|
1617
|
+
export declare const useRecordingArchiveDeleteFootprint: typeof trpc.recordingArchive.deleteFootprint.useMutation;
|
|
1618
|
+
/** Generated alias around `trpc.recordingArchive.listOpsLog.useQuery`. */
|
|
1619
|
+
export declare const useRecordingArchiveListOpsLog: typeof trpc.recordingArchive.listOpsLog.useQuery;
|
|
1620
|
+
/** Generated alias around `trpc.recordingArchive.renderGif.useMutation`. */
|
|
1621
|
+
export declare const useRecordingArchiveRenderGif: typeof trpc.recordingArchive.renderGif.useMutation;
|
|
1622
|
+
/** Generated alias around `trpc.recordingArchive.renderClip.useMutation`. */
|
|
1623
|
+
export declare const useRecordingArchiveRenderClip: typeof trpc.recordingArchive.renderClip.useMutation;
|
|
1624
|
+
/** Generated alias around `trpc.recordingArchive.pauseForStorageMigration.useMutation`. */
|
|
1625
|
+
export declare const useRecordingArchivePauseForStorageMigration: typeof trpc.recordingArchive.pauseForStorageMigration.useMutation;
|
|
1626
|
+
/** Generated alias around `trpc.recordingArchive.resumeForStorageMigration.useMutation`. */
|
|
1627
|
+
export declare const useRecordingArchiveResumeForStorageMigration: typeof trpc.recordingArchive.resumeForStorageMigration.useMutation;
|
|
1628
|
+
/** Generated alias around `trpc.recordingArchive.refreshStorageLocationsForMigration.useMutation`. */
|
|
1629
|
+
export declare const useRecordingArchiveRefreshStorageLocationsForMigration: typeof trpc.recordingArchive.refreshStorageLocationsForMigration.useMutation;
|
|
1630
|
+
/** Generated alias around `trpc.recordingArchive.startStorageMigrationMove.useMutation`. */
|
|
1631
|
+
export declare const useRecordingArchiveStartStorageMigrationMove: typeof trpc.recordingArchive.startStorageMigrationMove.useMutation;
|
|
1632
|
+
/** Generated alias around `trpc.recordingArchive.getStorageMigrationMoveStatus.useQuery`. */
|
|
1633
|
+
export declare const useRecordingArchiveGetStorageMigrationMoveStatus: typeof trpc.recordingArchive.getStorageMigrationMoveStatus.useQuery;
|
|
1634
|
+
/** Generated alias around `trpc.recordingArchive.cancelStorageMigrationMove.useMutation`. */
|
|
1635
|
+
export declare const useRecordingArchiveCancelStorageMigrationMove: typeof trpc.recordingArchive.cancelStorageMigrationMove.useMutation;
|
|
1636
|
+
/** Generated alias around `trpc.recordingArchive.relocateFootage.useMutation`. */
|
|
1637
|
+
export declare const useRecordingArchiveRelocateFootage: typeof trpc.recordingArchive.relocateFootage.useMutation;
|
|
1638
|
+
/** Generated alias around `trpc.recordingArchive.listRelocateJobs.useQuery`. */
|
|
1639
|
+
export declare const useRecordingArchiveListRelocateJobs: typeof trpc.recordingArchive.listRelocateJobs.useQuery;
|
|
1640
|
+
/** Generated alias around `trpc.recordingArchive.getRelocateResidue.useQuery`. */
|
|
1641
|
+
export declare const useRecordingArchiveGetRelocateResidue: typeof trpc.recordingArchive.getRelocateResidue.useQuery;
|
|
1642
|
+
/** Generated alias around `trpc.recordingArchive.reconcileLedgerAgainstDisk.useMutation`. */
|
|
1643
|
+
export declare const useRecordingArchiveReconcileLedgerAgainstDisk: typeof trpc.recordingArchive.reconcileLedgerAgainstDisk.useMutation;
|
|
1644
|
+
/** Generated alias around `trpc.recordingArchive.cancelRelocateJob.useMutation`. */
|
|
1645
|
+
export declare const useRecordingArchiveCancelRelocateJob: typeof trpc.recordingArchive.cancelRelocateJob.useMutation;
|
|
1646
|
+
/** Generated alias around `trpc.recordingArchive.planStorageRebalance.useQuery`. */
|
|
1647
|
+
export declare const useRecordingArchivePlanStorageRebalance: typeof trpc.recordingArchive.planStorageRebalance.useQuery;
|
|
1648
|
+
/** Generated alias around `trpc.recordingArchive.startStorageRebalance.useMutation`. */
|
|
1649
|
+
export declare const useRecordingArchiveStartStorageRebalance: typeof trpc.recordingArchive.startStorageRebalance.useMutation;
|
|
1650
|
+
/** Generated alias around `trpc.recordingArchive.getPlacement.useQuery`. */
|
|
1651
|
+
export declare const useRecordingArchiveGetPlacement: typeof trpc.recordingArchive.getPlacement.useQuery;
|
|
1652
|
+
/** Generated alias around `trpc.recordingArchive.setDevicePlacement.useMutation`. */
|
|
1653
|
+
export declare const useRecordingArchiveSetDevicePlacement: typeof trpc.recordingArchive.setDevicePlacement.useMutation;
|
|
1654
|
+
/** Generated alias around `trpc.recordingArchive.getStatus.useQuery`. */
|
|
1655
|
+
export declare const useRecordingArchiveGetStatus: typeof trpc.recordingArchive.getStatus.useQuery;
|
|
1656
|
+
/** Generated alias around `trpc.recordingArchive.getDeviceSettingsContribution.useQuery`. */
|
|
1657
|
+
export declare const useRecordingArchiveGetDeviceSettingsContribution: typeof trpc.recordingArchive.getDeviceSettingsContribution.useQuery;
|
|
1658
|
+
/** Generated alias around `trpc.recordingArchive.getDeviceLiveContribution.useQuery`. */
|
|
1659
|
+
export declare const useRecordingArchiveGetDeviceLiveContribution: typeof trpc.recordingArchive.getDeviceLiveContribution.useQuery;
|
|
1660
|
+
/** Generated alias around `trpc.recordingArchive.applyDeviceSettingsPatch.useMutation`. */
|
|
1661
|
+
export declare const useRecordingArchiveApplyDeviceSettingsPatch: typeof trpc.recordingArchive.applyDeviceSettingsPatch.useMutation;
|
|
1660
1662
|
/** Generated alias around `trpc.recordingExport.createExport.useMutation`. */
|
|
1661
1663
|
export declare const useRecordingExportCreateExport: typeof trpc.recordingExport.createExport.useMutation;
|
|
1662
1664
|
/** Generated alias around `trpc.recordingExport.listExports.useQuery`. */
|
|
@@ -7,5 +7,12 @@ export interface UseOptimisticSliceResult<T> {
|
|
|
7
7
|
readonly display: T | undefined;
|
|
8
8
|
/** Apply an optimistic patch (merged onto the current display) after issuing a command. */
|
|
9
9
|
readonly applyOptimistic: (patch: Partial<T>) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Revert immediately to the real slice — a real rollback, not a timer wait.
|
|
12
|
+
* Use this when the command the optimistic patch anticipated is REJECTED
|
|
13
|
+
* (the server refused it), so `display` never keeps showing a state the
|
|
14
|
+
* server never produced.
|
|
15
|
+
*/
|
|
16
|
+
readonly rollback: () => void;
|
|
10
17
|
}
|
|
11
18
|
export declare function useOptimisticSlice<T extends object>(realSlice: T | undefined, opts?: UseOptimisticSliceOptions): UseOptimisticSliceResult<T>;
|