UNPKG

ws-dottie

Version:

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

1 lines 30.5 kB
{"version":3,"sources":["../src/apis/wsf-fares/fareLineItems/fareLineItemsByTripDateAndTerminals.ts","../src/apis/wsf-fares/fareLineItems/fareLineItemsVerbose.ts","../src/apis/wsf-fares/fareLineItems/shared/fareLineItems.endpoints.ts","../src/apis/wsf-fares/fareLineItems/fareLineItemsBasic.ts","../src/apis/wsf-fares/fareTotals/shared/fareTotals.endpoints.ts","../src/apis/wsf-fares/fareTotals/fareTotalsByTripDateAndRoute.ts","../src/apis/wsf-fares/terminalCombo/terminalComboFaresVerbose.ts","../src/apis/wsf-fares/terminalCombo/shared/terminalCombo.endpoints.ts","../src/apis/wsf-fares/terminalCombo/terminalComboFares.ts","../src/apis/wsf-fares/terminals/terminalMatesFares.ts","../src/apis/wsf-fares/terminals/shared/terminals.endpoints.ts","../src/apis/wsf-fares/terminals/terminalFares.ts","../src/apis/wsf-fares/validDateRange/shared/validDateRange.endpoints.ts","../src/apis/wsf-fares/validDateRange/faresValidDateRange.ts"],"names":["fareLineItemsByTripDateAndTerminalsMeta","fareLineItemsByTripDateAndTerminalsFactory","fetchFareLineItemsByTripDateAndTerminals","useFareLineItemsByTripDateAndTerminals","init_fareLineItemsByTripDateAndTerminals","__esmMin","init_factories","init_utils","init_apiMeta","init_fareLineItems_input","init_fareLineItems_output","fareLineItemsByTripDateAndTerminalsInputSchema","lineItemSchema","datesHelper","createFetchAndHook","wsfFaresApiMeta","fareLineItemsVerboseMeta","fareLineItemsVerboseFactory","fetchFareLineItemsVerbose","useFareLineItemsVerbose","init_fareLineItemsVerbose","fareLineItemsVerboseInputSchema","lineItemVerboseSchema","fareLineItems_endpoints_exports","__export","fareLineItemsGroup","init_fareLineItems_endpoints","init_fareLineItemsBasic","fareLineItemsBasicMeta","fareLineItemsBasicFactory","fetchFareLineItemsBasic","useFareLineItemsBasic","fareLineItemsBasicInputSchema","i","fareTotals_endpoints_exports","fareTotalsGroup","init_fareTotals_endpoints","init_fareTotalsByTripDateAndRoute","fareTotalsByTripDateAndRouteMeta","fareTotalsByTripDateAndRouteFactory","fetchFareTotalsByTripDateAndRoute","useFareTotalsByTripDateAndRoute","init_fareTotals_input","init_fareTotals_output","fareTotalsByTripDateAndRouteInputSchema","fareTotalSchema","terminalComboFaresVerboseMeta","terminalComboFaresVerboseFactory","fetchTerminalComboFaresVerbose","useTerminalComboFaresVerbose","init_terminalComboFaresVerbose","init_terminalCombo_input","init_terminalCombo_output","terminalComboFaresVerboseInputSchema","terminalComboFaresVerboseSchema","terminalCombo_endpoints_exports","terminalComboGroup","init_terminalCombo_endpoints","init_terminalComboFares","terminalComboFaresMeta","terminalComboFaresFactory","fetchTerminalComboFares","useTerminalComboFares","terminalComboInputSchema","terminalComboFaresSchema","terminalMatesFaresMeta","terminalMatesFaresFactory","fetchTerminalMatesFares","useTerminalMatesFares","init_terminalMatesFares","init_terminals_input","init_terminals_output","terminalMatesInputSchema","terminalListSchema","terminals_endpoints_exports","terminalsGroup","init_terminals_endpoints","init_terminalFares","terminalFaresMeta","terminalFaresFactory","fetchTerminalFares","useTerminalFares","terminalsInputSchema","validDateRange_endpoints_exports","validDateRangeGroup","init_validDateRange_endpoints","init_faresValidDateRange","faresValidDateRangeMeta","faresValidDateRangeFactory","fetchFaresValidDateRange","useFaresValidDateRange","init_validDateRange_output","init_validDateRange_input","faresValidDateRangeInputSchema","validDateRangeSchema"],"mappings":"sZAAA,IAaaA,EAmBPC,EAAAA,CAcGC,EAAAA,CACDC,EAAAA,CA/CRC,CAAAA,CAAAC,EAAA,IAAA,CACAC,CAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,GAAAA,EAAAA,CACAC,MAIAC,CAAAA,EAAAA,CAKaV,CAAAA,CAA0C,CACrD,YAAA,CAAc,0CAAA,CACd,SACE,kFAAA,CACF,WAAA,CAAaW,CAAAA,CACb,YAAA,CAAcC,EAAe,KAAA,EAAM,CACnC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AAA,CAAqB,uDACvB,EAKMN,EAAAA,CAA6B1E,CAAAA,CAGjC,CACA,GAAA,CAAKC,GAAAA,CACL,SAAUwE,CAAAA,CACV,gBAAA,CAAkB,IAChB,CAAA,EAAA,EAAA,CAAAtD,GAAA,CAAA,EAAA,CAAA,EAA6C,mBACjD,CAAC,CAAA,CAKY,CAAE,KAAA,CAAOwD,EAAAA,CAA0B,KAAMC,EAAAA,CAAAA,CACpDF,GAAAA,CAAAA","file":"chunk-QJEXNPRI.mjs","sourcesContent":["import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type FareLineItemsByTripDateAndTerminalsInput,\n fareLineItemsByTripDateAndTerminalsInputSchema,\n} from \"./shared/fareLineItems.input\";\nimport { type LineItem, lineItemSchema } from \"./shared/fareLineItems.output\";\n\n/**\n * Metadata for the fetchFareLineItemsByTripDateAndTerminals endpoint\n */\nexport const fareLineItemsByTripDateAndTerminalsMeta = {\n functionName: \"fetchFareLineItemsByTripDateAndTerminals\",\n endpoint:\n \"/fareLineItems/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}\",\n inputSchema: fareLineItemsByTripDateAndTerminalsInputSchema,\n outputSchema: lineItemSchema.array(),\n sampleParams: {\n TripDate: datesHelper.tomorrow(),\n DepartingTerminalID: 3,\n ArrivingTerminalID: 7,\n RoundTrip: false,\n },\n endpointDescription:\n \"List all fare line items for a specific terminal combination and trip type.\",\n} satisfies EndpointMeta<FareLineItemsByTripDateAndTerminalsInput, LineItem[]>;\n\n/**\n * Factory result for fare line items by trip date and terminals\n */\nconst fareLineItemsByTripDateAndTerminalsFactory = createFetchAndHook<\n FareLineItemsByTripDateAndTerminalsInput,\n LineItem[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsByTripDateAndTerminalsMeta,\n getEndpointGroup: () =>\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving all fare line items for a specific terminal combination and trip type\n */\nexport const {\n fetch: fetchFareLineItemsByTripDateAndTerminals,\n hook: useFareLineItemsByTripDateAndTerminals,\n} = fareLineItemsByTripDateAndTerminalsFactory;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type FareLineItemsVerboseInput,\n fareLineItemsVerboseInputSchema,\n} from \"./shared/fareLineItems.input\";\nimport {\n type LineItemVerbose,\n lineItemVerboseSchema,\n} from \"./shared/fareLineItems.output\";\n\n/**\n * Metadata for the fetchFareLineItemsVerbose endpoint\n */\nexport const fareLineItemsVerboseMeta = {\n functionName: \"fetchFareLineItemsVerbose\",\n endpoint: \"/fareLineItemsVerbose/{TripDate}\",\n inputSchema: fareLineItemsVerboseInputSchema,\n outputSchema: lineItemVerboseSchema,\n sampleParams: { TripDate: datesHelper.today() },\n endpointDescription:\n \"Get all fare line items for all terminal combinations on a trip date.\",\n} satisfies EndpointMeta<FareLineItemsVerboseInput, LineItemVerbose>;\n\n/**\n * Factory result for fare line items verbose\n */\nconst fareLineItemsVerboseFactory = createFetchAndHook<\n FareLineItemsVerboseInput,\n LineItemVerbose\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsVerboseMeta,\n getEndpointGroup: () =>\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving all fare line items for all terminal combinations on a trip date\n */\nexport const {\n fetch: fetchFareLineItemsVerbose,\n hook: useFareLineItemsVerbose,\n} = fareLineItemsVerboseFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { fareLineItemsBasicMeta } from \"../fareLineItemsBasic\";\nimport { fareLineItemsByTripDateAndTerminalsMeta } from \"../fareLineItemsByTripDateAndTerminals\";\nimport { fareLineItemsVerboseMeta } from \"../fareLineItemsVerbose\";\n\n/**\n * Endpoint group metadata for fare line items endpoints\n */\nexport const fareLineItemsGroup: EndpointGroupMeta = {\n name: \"fare-line-items\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary:\n \"Individual fare components for WSF routes by passenger and vehicle types.\",\n description:\n \"Fare line items represent pricing components for different passenger categories, vehicle types, and route combinations. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.\",\n useCases: [\n \"Display fare options for different passenger and vehicle types.\",\n \"Calculate journey costs based on route and demographics.\",\n \"Build fare selection interfaces for ticket purchasing.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [\n fareLineItemsBasicMeta,\n fareLineItemsVerboseMeta,\n fareLineItemsByTripDateAndTerminalsMeta,\n ],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type FareLineItemsBasicInput,\n fareLineItemsBasicInputSchema,\n} from \"./shared/fareLineItems.input\";\nimport { type LineItem, lineItemSchema } from \"./shared/fareLineItems.output\";\n\n/**\n * Metadata for the fetchFareLineItemsBasic endpoint\n */\nexport const fareLineItemsBasicMeta = {\n functionName: \"fetchFareLineItemsBasic\",\n endpoint:\n \"/fareLineItemsBasic/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}\",\n inputSchema: fareLineItemsBasicInputSchema,\n outputSchema: lineItemSchema.array(),\n sampleParams: {\n TripDate: datesHelper.tomorrow(),\n DepartingTerminalID: 1,\n ArrivingTerminalID: 10,\n RoundTrip: false,\n },\n endpointDescription:\n \"List popular fare line items for a terminal combination.\",\n} satisfies EndpointMeta<FareLineItemsBasicInput, LineItem[]>;\n\n/**\n * Factory result for fare line items basic\n */\nconst fareLineItemsBasicFactory = createFetchAndHook<\n FareLineItemsBasicInput,\n LineItem[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsBasicMeta,\n getEndpointGroup: () =>\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving popular fare line items for a terminal combination\n */\nexport const { fetch: fetchFareLineItemsBasic, hook: useFareLineItemsBasic } =\n fareLineItemsBasicFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { fareTotalsByTripDateAndRouteMeta } from \"../fareTotalsByTripDateAndRoute\";\n\n/**\n * Endpoint group metadata for fare totals endpoints\n */\nexport const fareTotalsGroup: EndpointGroupMeta = {\n name: \"fare-totals\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary:\n \"Calculated fare totals for WSF journeys by selected line items and quantities.\",\n description:\n \"Fare totals combine individual fare line items with quantities to provide complete pricing breakdowns including departing, return, direction-independent, and grand totals. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.\",\n useCases: [\n \"Calculate complete journey costs for ticket pricing.\",\n \"Display fare breakdowns by leg and total amount.\",\n \"Process payment amounts for ferry trips.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [fareTotalsByTripDateAndRouteMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type FareTotalsByTripDateAndRouteInput,\n fareTotalsByTripDateAndRouteInputSchema,\n} from \"./shared/fareTotals.input\";\nimport { type FareTotal, fareTotalSchema } from \"./shared/fareTotals.output\";\n\n/**\n * Metadata for the fetchFareTotalsByTripDateAndRoute endpoint\n */\nexport const fareTotalsByTripDateAndRouteMeta = {\n functionName: \"fetchFareTotalsByTripDateAndRoute\",\n endpoint:\n \"/fareTotals/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}/{RoundTrip}/{FareLineItemID}/{Quantity}\",\n inputSchema: fareTotalsByTripDateAndRouteInputSchema,\n outputSchema: fareTotalSchema.array(),\n sampleParams: {\n TripDate: datesHelper.today(),\n DepartingTerminalID: 1,\n ArrivingTerminalID: 10,\n RoundTrip: false,\n FareLineItemID: \"1,2\",\n Quantity: \"3,1\",\n },\n endpointDescription:\n \"Calculate fare totals for a terminal combination with selected line items and quantities.\",\n} satisfies EndpointMeta<FareTotalsByTripDateAndRouteInput, FareTotal[]>;\n\n/**\n * Factory result for fare totals by trip date and route\n */\nconst fareTotalsByTripDateAndRouteFactory = createFetchAndHook<\n FareTotalsByTripDateAndRouteInput,\n FareTotal[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareTotalsByTripDateAndRouteMeta,\n getEndpointGroup: () =>\n require(\"./shared/fareTotals.endpoints\").fareTotalsGroup,\n});\n\n/**\n * Fetch function and React Query hook for calculating fare totals for a terminal combination with selected line items and quantities\n */\nexport const {\n fetch: fetchFareTotalsByTripDateAndRoute,\n hook: useFareTotalsByTripDateAndRoute,\n} = fareTotalsByTripDateAndRouteFactory;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type TerminalComboFaresVerboseInput,\n terminalComboFaresVerboseInputSchema,\n} from \"./shared/terminalCombo.input\";\nimport {\n type TerminalComboFaresVerbose,\n terminalComboFaresVerboseSchema,\n} from \"./shared/terminalCombo.output\";\n\n/**\n * Metadata for the fetchTerminalComboFaresVerbose endpoint\n */\nexport const terminalComboFaresVerboseMeta = {\n functionName: \"fetchTerminalComboFaresVerbose\",\n endpoint: \"/terminalComboVerbose/{TripDate}\",\n inputSchema: terminalComboFaresVerboseInputSchema,\n outputSchema: terminalComboFaresVerboseSchema.array(),\n sampleParams: { TripDate: datesHelper.tomorrow() },\n endpointDescription:\n \"Get fare collection descriptions for all terminal combinations on a trip date.\",\n} satisfies EndpointMeta<\n TerminalComboFaresVerboseInput,\n TerminalComboFaresVerbose[]\n>;\n\n/**\n * Factory result for terminal combo fares verbose\n */\nconst terminalComboFaresVerboseFactory = createFetchAndHook<\n TerminalComboFaresVerboseInput,\n TerminalComboFaresVerbose[]\n>({\n api: wsfFaresApiMeta,\n endpoint: terminalComboFaresVerboseMeta,\n getEndpointGroup: () =>\n require(\"./shared/terminalCombo.endpoints\").terminalComboGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving fare collection descriptions for all terminal combinations on a trip date\n */\nexport const {\n fetch: fetchTerminalComboFaresVerbose,\n hook: useTerminalComboFaresVerbose,\n} = terminalComboFaresVerboseFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { terminalComboFaresMeta } from \"../terminalComboFares\";\nimport { terminalComboFaresVerboseMeta } from \"../terminalComboFaresVerbose\";\n\n/**\n * Endpoint group metadata for terminal combo endpoints\n */\nexport const terminalComboGroup: EndpointGroupMeta = {\n name: \"terminal-combo\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary:\n \"Valid terminal pairings with fare collection procedures for WSF routes.\",\n description:\n \"Terminal combinations define which terminals are connected and describe where and how fares are collected for each route. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.\",\n useCases: [\n \"Determine route availability between terminal pairs.\",\n \"Understand fare collection procedures for specific routes.\",\n \"Build journey planning interfaces with fare collection details.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [terminalComboFaresMeta, terminalComboFaresVerboseMeta],\n};\n","import type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type TerminalComboInput,\n terminalComboInputSchema,\n} from \"./shared/terminalCombo.input\";\nimport {\n type TerminalComboFares,\n terminalComboFaresSchema,\n} from \"./shared/terminalCombo.output\";\n\n/**\n * Metadata for the fetchTerminalComboFares endpoint\n */\nexport const terminalComboFaresMeta = {\n functionName: \"fetchTerminalComboFares\",\n endpoint:\n \"/terminalCombo/{TripDate}/{DepartingTerminalID}/{ArrivingTerminalID}\",\n inputSchema: terminalComboInputSchema,\n outputSchema: terminalComboFaresSchema,\n sampleParams: {\n TripDate: datesHelper.tomorrow(),\n DepartingTerminalID: 1,\n ArrivingTerminalID: 10,\n },\n endpointDescription:\n \"Get fare collection description for a specific terminal combination and trip date.\",\n} satisfies EndpointMeta<TerminalComboInput, TerminalComboFares>;\n\n/**\n * Factory result for terminal combo fares\n */\nconst terminalComboFaresFactory = createFetchAndHook<\n TerminalComboInput,\n TerminalComboFares\n>({\n api: wsfFaresApiMeta,\n endpoint: terminalComboFaresMeta,\n getEndpointGroup: () =>\n require(\"./shared/terminalCombo.endpoints\").terminalComboGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving fare collection description for a specific terminal combination and trip date\n */\nexport const { fetch: fetchTerminalComboFares, hook: useTerminalComboFares } =\n terminalComboFaresFactory;\n","import {\n type TerminalMatesInput,\n terminalMatesInputSchema,\n} from \"@/apis/shared/terminals.input\";\nimport {\n type TerminalList,\n terminalListSchema,\n} from \"@/apis/shared/terminals.output\";\nimport type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\n\n/**\n * Metadata for the fetchTerminalMatesFares endpoint\n */\nexport const terminalMatesFaresMeta = {\n functionName: \"fetchTerminalMatesFares\",\n endpoint: \"/terminalMates/{TripDate}/{TerminalID}\",\n inputSchema: terminalMatesInputSchema,\n outputSchema: terminalListSchema,\n sampleParams: { TripDate: datesHelper.tomorrow(), TerminalID: 1 },\n endpointDescription:\n \"List arriving terminals for a given departing terminal and trip date.\",\n} satisfies EndpointMeta<TerminalMatesInput, TerminalList>;\n\n/**\n * Factory result for terminal mates fares\n */\nconst terminalMatesFaresFactory = createFetchAndHook<\n TerminalMatesInput,\n TerminalList\n>({\n api: wsfFaresApiMeta,\n endpoint: terminalMatesFaresMeta,\n getEndpointGroup: () =>\n require(\"./shared/terminals.endpoints\").terminalsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving arriving terminals for a given departing terminal and trip date\n */\nexport const { fetch: fetchTerminalMatesFares, hook: useTerminalMatesFares } =\n terminalMatesFaresFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { terminalFaresMeta } from \"../terminalFares\";\nimport { terminalMatesFaresMeta } from \"../terminalMatesFares\";\n\n/**\n * Endpoint group metadata for terminals endpoints\n */\nexport const terminalsGroup: EndpointGroupMeta = {\n name: \"terminals\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary:\n \"WSF terminal facilities serving as departure and arrival points for ferry routes.\",\n description:\n \"Terminals represent port facilities with unique identifiers and names. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.\",\n useCases: [\n \"Display terminal options for trip planning interfaces.\",\n \"Determine valid terminal pairs for route selection.\",\n \"Build terminal lookup and navigation features.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [terminalFaresMeta, terminalMatesFaresMeta],\n};\n","import {\n type TerminalsInput,\n terminalsInputSchema,\n} from \"@/apis/shared/terminals.input\";\nimport {\n type TerminalList,\n terminalListSchema,\n} from \"@/apis/shared/terminals.output\";\nimport type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { datesHelper } from \"@/shared/utils\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\n\n/**\n * Metadata for the fetchTerminalFares endpoint\n */\nexport const terminalFaresMeta = {\n functionName: \"fetchTerminalFares\",\n endpoint: \"/terminals/{TripDate}\",\n inputSchema: terminalsInputSchema,\n outputSchema: terminalListSchema,\n sampleParams: { TripDate: datesHelper.tomorrow() },\n endpointDescription: \"List valid departing terminals for a trip date.\",\n} satisfies EndpointMeta<TerminalsInput, TerminalList>;\n\n/**\n * Factory result for terminal fares\n */\nconst terminalFaresFactory = createFetchAndHook<TerminalsInput, TerminalList>({\n api: wsfFaresApiMeta,\n endpoint: terminalFaresMeta,\n getEndpointGroup: () =>\n require(\"./shared/terminals.endpoints\").terminalsGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving valid departing terminals for a trip date\n */\nexport const { fetch: fetchTerminalFares, hook: useTerminalFares } =\n terminalFaresFactory;\n","import type { EndpointGroupMeta } from \"@/apis/types\";\nimport { faresValidDateRangeMeta } from \"../faresValidDateRange\";\n\n/**\n * Endpoint group metadata for valid date range endpoints\n */\nexport const validDateRangeGroup: EndpointGroupMeta = {\n name: \"valid-date-range\",\n cacheStrategy: \"STATIC\",\n documentation: {\n summary: \"Validity period for published WSF fare data.\",\n description:\n \"Returns the start and end dates between which fare information is accurate and available for all ferry routes. Use the cacheFlushDate endpoint for this API to determine when to invalidate cached data for this group.\",\n useCases: [\n \"Determine valid trip dates for fare queries.\",\n \"Validate trip date inputs before calling other endpoints.\",\n \"Display available date ranges in booking interfaces.\",\n ],\n updateFrequency: \"daily\",\n },\n endpoints: [faresValidDateRangeMeta],\n};\n","import {\n type ValidDateRange,\n validDateRangeSchema,\n} from \"@/apis/shared/validDateRange.output\";\nimport type { EndpointMeta } from \"@/apis/types\";\nimport { createFetchAndHook } from \"@/shared/factories\";\nimport { wsfFaresApiMeta } from \"../apiMeta\";\nimport {\n type FaresValidDateRangeInput,\n faresValidDateRangeInputSchema,\n} from \"./shared/validDateRange.input\";\n\n/**\n * Metadata for the fetchFaresValidDateRange endpoint\n */\nexport const faresValidDateRangeMeta = {\n functionName: \"fetchFaresValidDateRange\",\n endpoint: \"/validdaterange\",\n inputSchema: faresValidDateRangeInputSchema,\n outputSchema: validDateRangeSchema,\n sampleParams: {},\n endpointDescription: \"Get the validity date range for published fares data.\",\n} satisfies EndpointMeta<FaresValidDateRangeInput, ValidDateRange>;\n\n/**\n * Factory result for fares valid date range\n */\nconst faresValidDateRangeFactory = createFetchAndHook<\n FaresValidDateRangeInput,\n ValidDateRange\n>({\n api: wsfFaresApiMeta,\n endpoint: faresValidDateRangeMeta,\n getEndpointGroup: () =>\n require(\"./shared/validDateRange.endpoints\").validDateRangeGroup,\n});\n\n/**\n * Fetch function and React Query hook for retrieving the validity date range for published fares data\n */\nexport const { fetch: fetchFaresValidDateRange, hook: useFaresValidDateRange } =\n faresValidDateRangeFactory;\n"]}