UNPKG

ws-dottie

Version:

Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration

3 lines 852 B
import {b,a as a$1}from'./chunk-Y7ZPKVJH.mjs';import {e,a as a$2}from'./chunk-C3URDYFJ.mjs';import {a}from'./chunk-XEHBQAFR.mjs';var s,c,p=a(()=>{e();b();s=()=>a$1.string().refine(t=>c(t),{message:"Invalid date format. Expected .NET /Date(timestamp)/ format"}).transform(t=>{let a=a$2(t.replace(/\\\//g,"/"));if(!a)throw new Error(`Failed to parse .NET date: ${t}`);return a}),c=t=>t.length>=19&&(t.startsWith("/Date(")||t.startsWith("\\/Date("))&&(t.endsWith(")/")||t.endsWith(")\\/"));});var l,z,d=a(()=>{b();p();l=a$1.object({}).describe("Input parameters for cache flush date endpoint."),z=s().optional().describe("UTC datetime when static endpoint data was last updated, or undefined if no update has occurred.");}); export{s as a,p as b,l as c,z as d,d as e};//# sourceMappingURL=chunk-NTLB7E5P.mjs.map //# sourceMappingURL=chunk-NTLB7E5P.mjs.map