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 locomotiveMatching.list 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 exampleLocomotiveMatchingList(client: RailDeckDirectIntegrationClient) { return client.locomotiveMatching.list( "1", "2", {} ); } /** * Calls locomotiveMatching.get 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 exampleLocomotiveMatchingGet(client: RailDeckDirectIntegrationClient) { return client.locomotiveMatching.get( "1", "2", "44444444-4444-4444-8444-444444444444", {} ); } /** * Calls locomotiveMatching.save 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 exampleLocomotiveMatchingSave(client: RailDeckDirectIntegrationClient) { return client.locomotiveMatching.save( "1", "2", { "intentId": "11111111-1111-4111-8111-111111111111", "expectedRevision": 0, "expectedEquipmentRevision": 0, "confirmed": true, "pairId": "44444444-4444-4444-8444-444444444444", "matchedLocomotiveId": "3", "expectedMatchedEquipmentRevision": 0, "comparison": { "schemaVersion": 2, "calculationVersion": 1, "evidence": "simulated", "reference": { "locomotiveId": "3", "recordId": null, "matchingRevision": 0, "equipmentRevision": 0 }, "directions": [ { "direction": "forward", "referenceDirection": "forward", "points": [ { "referenceOutputPercent": 20, "locomotiveOutputPercent": 20 }, { "referenceOutputPercent": 80, "locomotiveOutputPercent": 80 } ], "starting": "last", "stopping": "first" }, { "direction": "reverse", "referenceDirection": "reverse", "points": [ { "referenceOutputPercent": 20, "locomotiveOutputPercent": 20 }, { "referenceOutputPercent": 80, "locomotiveOutputPercent": 80 } ], "starting": "last", "stopping": "first" } ] } }, {} ); } /** * Calls locomotiveMatching.remove 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 exampleLocomotiveMatchingRemove(client: RailDeckDirectIntegrationClient) { return client.locomotiveMatching.remove( "1", "2", { "intentId": "11111111-1111-4111-8111-111111111111", "expectedRevision": 0, "expectedEquipmentRevision": 0, "confirmed": true, "pairId": "44444444-4444-4444-8444-444444444444", "matchedLocomotiveId": "3", "expectedMatchedEquipmentRevision": 0 }, {} ); }