@skyvexsoftware/stratos-sdk 0.5.4 → 0.5.5
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.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { useShellNavigation } from "./hooks/useShellNavigation";
|
|
|
22
22
|
export { useShellToast } from "./hooks/useShellToast";
|
|
23
23
|
export { useSocket, useSimulatorData, useProtocolUrl, useNotifications, useSystemMetrics, } from "./hooks/useSimulatorData";
|
|
24
24
|
export { SOCKET_EVENTS } from "./shared-types/socket-events";
|
|
25
|
-
export type { ConnectionState, LogEntryPayload, NotificationPayload, ProtocolUrlPayload, SimulatorDataPayload, SimulatorStatusPayload, SocketEventName, SystemMetricsPayload, } from "./shared-types/socket-events";
|
|
25
|
+
export type { AutoStartConfirmPayload, ConnectionState, LogEntryPayload, NotificationPayload, ProtocolUrlPayload, SimulatorDataPayload, SimulatorStatusPayload, SocketEventName, SystemMetricsPayload, } from "./shared-types/socket-events";
|
|
26
26
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, Badge, badgeVariants, Button, buttonVariants, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, Label, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "./ui";
|
|
27
27
|
export type { BadgeProps, ButtonProps } from "./ui";
|
|
28
28
|
export { STRATOS_ICONS, STRATOS_ICON_NAMES } from "./icons";
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
* All flight-related events include a `timestamp` field (epoch ms).
|
|
31
31
|
*/
|
|
32
32
|
import type { FlightData, FlightTrends, SimulatorStatus } from "./simulator";
|
|
33
|
+
import type { FlightPlan } from "./flight-manager";
|
|
33
34
|
/** Canonical Socket.io event names shared by shell and SDK. */
|
|
34
35
|
export declare const SOCKET_EVENTS: {
|
|
35
36
|
/** Real-time flight data broadcast (~10-20 Hz). Payload: SimulatorDataPayload */
|
|
@@ -62,6 +63,8 @@ export declare const SOCKET_EVENTS: {
|
|
|
62
63
|
readonly LOG_ENTRY: "log:entry";
|
|
63
64
|
/** VA session expired (401 from upstream VA API). No payload. */
|
|
64
65
|
readonly AUTH_SESSION_EXPIRED: "auth:session-expired";
|
|
66
|
+
/** Auto-start detected a VA confirmation — renderer should show dialog. */
|
|
67
|
+
readonly AUTO_START_CONFIRM: "flight:auto-start-confirm";
|
|
65
68
|
readonly PLUGIN_LOADED: "plugin:loaded";
|
|
66
69
|
readonly PLUGIN_UNLOADED: "plugin:unloaded";
|
|
67
70
|
readonly PLUGIN_EVENT: "plugin:event";
|
|
@@ -166,6 +169,23 @@ export type LogEntryPayload = {
|
|
|
166
169
|
message: string;
|
|
167
170
|
data?: string;
|
|
168
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* Payload for `flight:auto-start-confirm` events.
|
|
174
|
+
*
|
|
175
|
+
* Emitted when auto-start receives a VA confirmation that the pilot
|
|
176
|
+
* must acknowledge before tracking begins. The renderer should show
|
|
177
|
+
* the VaConfirmDialog.
|
|
178
|
+
*/
|
|
179
|
+
export type AutoStartConfirmPayload = {
|
|
180
|
+
/** VA-issued confirmation message. */
|
|
181
|
+
confirmation: string;
|
|
182
|
+
/** Current sim variables for display. */
|
|
183
|
+
simVariables: Record<string, string>;
|
|
184
|
+
/** The flight plan built from the matched booking. */
|
|
185
|
+
flightPlan: FlightPlan;
|
|
186
|
+
/** Booking bid_id so the renderer can fetch the full booking. */
|
|
187
|
+
bidId: number;
|
|
188
|
+
};
|
|
169
189
|
/** Socket.io connection state as observed by the client. */
|
|
170
190
|
export type ConnectionState = "connecting" | "connected" | "disconnected" | "error";
|
|
171
191
|
//# sourceMappingURL=socket-events.d.ts.map
|
|
@@ -71,6 +71,9 @@ export const SOCKET_EVENTS = {
|
|
|
71
71
|
// Auth events
|
|
72
72
|
/** VA session expired (401 from upstream VA API). No payload. */
|
|
73
73
|
AUTH_SESSION_EXPIRED: "auth:session-expired",
|
|
74
|
+
// Auto-start events
|
|
75
|
+
/** Auto-start detected a VA confirmation — renderer should show dialog. */
|
|
76
|
+
AUTO_START_CONFIRM: "flight:auto-start-confirm",
|
|
74
77
|
// Plugin events
|
|
75
78
|
PLUGIN_LOADED: "plugin:loaded",
|
|
76
79
|
PLUGIN_UNLOADED: "plugin:unloaded",
|