import type { RailDeckDirectIntegrationClient } from '@raildeck/frontend-sdk/direct-integration'; // Fixture values illustrate the source contract. Use reviewed development records. // Importing this module performs no requests. Every mutation requires an explicit call. /** * Calls system.getTrackPower with retained, non-production fixture values. * @param client - Configured source client; use an isolated development environment. * @returns The SDK result; failures propagate without automatic retry. */ export async function exampleSystemGetTrackPower(client: RailDeckDirectIntegrationClient) { return client.system.getTrackPower( "account-1", "layout-1", {} ); } /** * Calls system.setTrackPower with retained, non-production fixture values. * @param client - Configured source client; use an isolated development environment. * @returns The SDK result; failures propagate without automatic retry. */ export async function exampleSystemSetTrackPower(client: RailDeckDirectIntegrationClient) { return client.system.setTrackPower( "account 1", "layout-1", { "controllerId": "controller-1", "track": "main", "state": "on" }, {} ); }