{"version":3,"sources":["../src/apis/wsdot-traffic-flow/flowData/trafficFlowById.ts","../src/apis/wsdot-traffic-flow/flowData/trafficFlows.ts"],"names":["trafficFlowByIdMeta","trafficFlowByIdInputSchema","flowDataSchema","fetchTrafficFlowById","createFetchFunction","wsdotTrafficFlowApi","flowDataGroup","useTrafficFlowById","createHook","trafficFlowsMeta","trafficFlowsInputSchema","fetchTrafficFlows","useTrafficFlows"],"mappings":"6FAqBO,IAAMA,CAAAA,CAAsB,CACjC,YAAA,CAAc,sBAAA,CACd,QAAA,CAAU,+CAAA,CACV,WAAA,CAAaC,CAAAA,CACb,YAAA,CAAcC,GAAAA,CACd,YAAA,CAAc,CAAE,UAAA,CAAY,IAAK,CAAA,CACjC,mBAAA,CACE,kEACJ,CAAA,CAKaC,CAAAA,CAEYC,EAAAA,CACvBC,CAAAA,CACAC,CAAAA,CACAN,CACF,CAAA,CAKaO,CAAAA,CAG0BC,EAAAA,CACrCH,CAAAA,CACAC,CAAAA,CACAN,CACF,EC/BO,IAAMS,CAAAA,CAAmB,CAC9B,YAAA,CAAc,mBAAA,CACd,QAAA,CAAU,wBAAA,CACV,WAAA,CAAaC,CAAAA,CACb,YAAA,CAAcR,GAAAA,CAAe,KAAA,EAAM,CACnC,YAAA,CAAc,EAAC,CACf,mBAAA,CACE,kEACJ,CAAA,CAKaS,CAAAA,CAEcP,EAAAA,CACzBC,CAAAA,CACAC,CAAAA,CACAG,CACF,CAAA,CAKaG,CAAAA,CAG4BJ,EAAAA,CACvCH,CAAAA,CACAC,CAAAA,CACAG,CACF","file":"chunk-NIYPSAMD.mjs","sourcesContent":["import type { UseQueryResult } from \"@tanstack/react-query\";\nimport { wsdotTrafficFlowApi } from \"../api\";\nimport type {\n  EndpointMeta,\n  FetchFunctionParams,\n  QueryHookOptions,\n} from \"@/apis/types\";\nimport {\n  createFetchFunction,\n  createHook,\n} from \"@/shared/factories\";\nimport { flowDataGroup } from \"./shared/flowData.endpoints\";\nimport {\n  type TrafficFlowByIdInput,\n  trafficFlowByIdInputSchema,\n} from \"./shared/flowData.input\";\nimport { type FlowData, flowDataSchema } from \"./shared/flowData.output\";\n\n/**\n * Metadata for the fetchTrafficFlowById endpoint\n */\nexport const trafficFlowByIdMeta = {\n  functionName: \"fetchTrafficFlowById\",\n  endpoint: \"/getTrafficFlowAsJson?FlowDataID={FlowDataID}\",\n  inputSchema: trafficFlowByIdInputSchema,\n  outputSchema: flowDataSchema,\n  sampleParams: { FlowDataID: 2482 },\n  endpointDescription:\n    \"Get current traffic flow condition for a specific station by ID.\",\n} satisfies EndpointMeta<TrafficFlowByIdInput, FlowData>;\n\n/**\n * Fetch function for retrieving current traffic flow condition for a specific station by ID\n */\nexport const fetchTrafficFlowById: (\n  params?: FetchFunctionParams<TrafficFlowByIdInput>\n) => Promise<FlowData> = createFetchFunction(\n  wsdotTrafficFlowApi,\n  flowDataGroup,\n  trafficFlowByIdMeta\n);\n\n/**\n * React Query hook for retrieving current traffic flow condition for a specific station by ID\n */\nexport const useTrafficFlowById: (\n  params?: FetchFunctionParams<TrafficFlowByIdInput>,\n  options?: QueryHookOptions<FlowData>\n) => UseQueryResult<FlowData, Error> = createHook(\n  wsdotTrafficFlowApi,\n  flowDataGroup,\n  trafficFlowByIdMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport { wsdotTrafficFlowApi } from \"../api\";\nimport type {\n  EndpointMeta,\n  FetchFunctionParams,\n  QueryHookOptions,\n} from \"@/apis/types\";\nimport {\n  createFetchFunction,\n  createHook,\n} from \"@/shared/factories\";\nimport { flowDataGroup } from \"./shared/flowData.endpoints\";\nimport {\n  type TrafficFlowsInput,\n  trafficFlowsInputSchema,\n} from \"./shared/flowData.input\";\nimport { type FlowData, flowDataSchema } from \"./shared/flowData.output\";\n\n/**\n * Metadata for the fetchTrafficFlows endpoint\n */\nexport const trafficFlowsMeta = {\n  functionName: \"fetchTrafficFlows\",\n  endpoint: \"/getTrafficFlowsAsJson\",\n  inputSchema: trafficFlowsInputSchema,\n  outputSchema: flowDataSchema.array(),\n  sampleParams: {},\n  endpointDescription:\n    \"List current traffic flow conditions for all stations statewide.\",\n} satisfies EndpointMeta<TrafficFlowsInput, FlowData[]>;\n\n/**\n * Fetch function for retrieving current traffic flow conditions for all stations statewide\n */\nexport const fetchTrafficFlows: (\n  params?: FetchFunctionParams<TrafficFlowsInput>\n) => Promise<FlowData[]> = createFetchFunction(\n  wsdotTrafficFlowApi,\n  flowDataGroup,\n  trafficFlowsMeta\n);\n\n/**\n * React Query hook for retrieving current traffic flow conditions for all stations statewide\n */\nexport const useTrafficFlows: (\n  params?: FetchFunctionParams<TrafficFlowsInput>,\n  options?: QueryHookOptions<FlowData[]>\n) => UseQueryResult<FlowData[], Error> = createHook(\n  wsdotTrafficFlowApi,\n  flowDataGroup,\n  trafficFlowsMeta\n);\n"]}