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 33.9 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","fetch","useHook","fetchFareLineItemsByTripDateAndTerminals","useFareLineItemsByTripDateAndTerminals","init_fareLineItemsByTripDateAndTerminals","__esmMin","init_factories","init_utils","init_apiMeta","init_fareLineItems_input","init_fareLineItems_output","fareLineItemsByTripDateAndTerminalsInputSchema","lineItemSchema","datesHelper","createFetchAndHook","wsfFaresApiMeta","o","fareLineItemsVerboseMeta","fetchFareLineItemsVerbose","useFareLineItemsVerbose","init_fareLineItemsVerbose","fareLineItemsVerboseInputSchema","lineItemVerboseSchema","fareLineItems_endpoints_exports","__export","fareLineItemsGroup","init_fareLineItems_endpoints","init_fareLineItemsBasic","fareLineItemsBasicMeta","fetchFareLineItemsBasic","useFareLineItemsBasic","fareLineItemsBasicInputSchema","fareTotals_endpoints_exports","fareTotalsGroup","init_fareTotals_endpoints","init_fareTotalsByTripDateAndRoute","fareTotalsByTripDateAndRouteMeta","fetchFareTotalsByTripDateAndRoute","useFareTotalsByTripDateAndRoute","init_fareTotals_input","init_fareTotals_output","fareTotalsByTripDateAndRouteInputSchema","fareTotalSchema","terminalComboFaresVerboseMeta","fetchTerminalComboFaresVerbose","useTerminalComboFaresVerbose","init_terminalComboFaresVerbose","init_terminalCombo_input","init_terminalCombo_output","terminalComboFaresVerboseInputSchema","terminalComboFaresVerboseSchema","terminalCombo_endpoints_exports","terminalComboGroup","init_terminalCombo_endpoints","init_terminalComboFares","terminalComboFaresMeta","fetchTerminalComboFares","useTerminalComboFares","terminalComboInputSchema","terminalComboFaresSchema","terminalMatesFaresMeta","fetchTerminalMatesFares","useTerminalMatesFares","init_terminalMatesFares","init_terminals_input","init_terminals_output","terminalMatesInputSchema","terminalListSchema","terminals_endpoints_exports","terminalsGroup","init_terminals_endpoints","init_terminalFares","terminalFaresMeta","fetchTerminalFares","useTerminalFares","terminalsInputSchema","validDateRange_endpoints_exports","validDateRangeGroup","init_validDateRange_endpoints","init_faresValidDateRange","faresValidDateRangeMeta","fetchFaresValidDateRange","useFaresValidDateRange","init_validDateRange_output","init_validDateRange_input","faresValidDateRangeInputSchema","validDateRangeSchema"],"mappings":"sZAAA,IAiBaA,EAmBLC,EAAAA,CAAOC,EAAAA,CAeFC,GAQAC,EAAAA,CA3DbC,CAAAA,CAAAC,EAAA,IAAA,CACAC,CAAAA,EAAAA,CAKAC,MACAC,GAAAA,EAAAA,CACAC,GAAAA,EAAAA,CAIAC,IAKaX,CAAAA,CAA0C,CACrD,aAAc,0CAAA,CACd,QAAA,CACE,mFACF,WAAA,CAAaY,CAAAA,CACb,YAAA,CAAcC,GAAAA,CAAe,OAAM,CACnC,YAAA,CAAc,CACZ,QAAA,CAAUC,GAAAA,CAAY,UAAS,CAC/B,mBAAA,CAAqB,EACrB,kBAAA,CAAoB,CAAA,CACpB,UAAW,KACb,CAAA,CACA,oBACE,6EACJ,CAAA,CAKM,CAAE,KAA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,CAQAC,EAAAA,CAtDbH,GAAA1E,CAAAA,CAAA,IAAA,CAAA8E,MAKA7E,CAAAA,EAAAA,CAKAE,GAAAA,EAAAA,CACA4E,MAQaJ,CAAAA,CAA0B,CACrC,aAAc,0BAAA,CACd,QAAA,CAAU,kBACV,WAAA,CAAaK,CAAAA,CACb,aAAcC,GAAAA,CACd,YAAA,CAAc,EAAC,CACf,mBAAA,CAAqB,uDACvB,CAAA,CAKM,CAAE,MAAAtF,EAAAA,CAAO,OAAA,CAAAC,IAAYa,CAAAA,CAGzB,CACA,IAAKC,GAAAA,CACL,QAAA,CAAUiE,EACV,gBAAA,CAAkB,IAEhB,aAA6C,mBAAA,CAC1C,aACP,CAAC,CAAA,CAKYC,EAAAA,CAGTjF,GAKSkF,EAAAA,CAGTjF,GAAAA,CAAAA","file":"chunk-PRGSUSTL.mjs","sourcesContent":["import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving all fare line items for a specific terminal combination and trip type\n */\nconst { fetch, useHook } = createFetchAndHook<\n FareLineItemsByTripDateAndTerminalsInput,\n LineItem[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsByTripDateAndTerminalsMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving all fare line items for a specific terminal combination and trip type\n */\nexport const fetchFareLineItemsByTripDateAndTerminals: FetchFactory<\n FareLineItemsByTripDateAndTerminalsInput,\n LineItem[]\n> = fetch;\n\n/**\n * React Query hook for retrieving all fare line items for a specific terminal combination and trip type\n */\nexport const useFareLineItemsByTripDateAndTerminals: HookFactory<\n FareLineItemsByTripDateAndTerminalsInput,\n LineItem[]\n> = useHook;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving all fare line items for all terminal combinations on a trip date\n */\nconst { fetch, useHook } = createFetchAndHook<\n FareLineItemsVerboseInput,\n LineItemVerbose\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsVerboseMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving all fare line items for all terminal combinations on a trip date\n */\nexport const fetchFareLineItemsVerbose: FetchFactory<\n FareLineItemsVerboseInput,\n LineItemVerbose\n> = fetch;\n\n/**\n * React Query hook for retrieving all fare line items for all terminal combinations on a trip date\n */\nexport const useFareLineItemsVerbose: HookFactory<\n FareLineItemsVerboseInput,\n LineItemVerbose\n> = useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving popular fare line items for a terminal combination\n */\nconst { fetch, useHook } = createFetchAndHook<\n FareLineItemsBasicInput,\n LineItem[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareLineItemsBasicMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/fareLineItems.endpoints\").fareLineItemsGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving popular fare line items for a terminal combination\n */\nexport const fetchFareLineItemsBasic: FetchFactory<\n FareLineItemsBasicInput,\n LineItem[]\n> = fetch;\n\n/**\n * React Query hook for retrieving popular fare line items for a terminal combination\n */\nexport const useFareLineItemsBasic: HookFactory<\n FareLineItemsBasicInput,\n LineItem[]\n> = useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for calculating fare totals for a terminal combination with selected line items and quantities\n */\nconst { fetch, useHook } = createFetchAndHook<\n FareTotalsByTripDateAndRouteInput,\n FareTotal[]\n>({\n api: wsfFaresApiMeta,\n endpoint: fareTotalsByTripDateAndRouteMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/fareTotals.endpoints\").fareTotalsGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for calculating fare totals for a terminal combination with selected line items and quantities\n */\nexport const fetchFareTotalsByTripDateAndRoute: FetchFactory<\n FareTotalsByTripDateAndRouteInput,\n FareTotal[]\n> = fetch;\n\n/**\n * React Query hook for calculating fare totals for a terminal combination with selected line items and quantities\n */\nexport const useFareTotalsByTripDateAndRoute: HookFactory<\n FareTotalsByTripDateAndRouteInput,\n FareTotal[]\n> = useHook;\n","import type { EndpointMeta } from \"@/apis/types\";\nimport {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving fare collection descriptions for all terminal combinations on a trip date\n */\nconst { fetch, useHook } = createFetchAndHook<\n TerminalComboFaresVerboseInput,\n TerminalComboFaresVerbose[]\n>({\n api: wsfFaresApiMeta,\n endpoint: terminalComboFaresVerboseMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/terminalCombo.endpoints\").terminalComboGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving fare collection descriptions for all terminal combinations on a trip date\n */\nexport const fetchTerminalComboFaresVerbose: FetchFactory<\n TerminalComboFaresVerboseInput,\n TerminalComboFaresVerbose[]\n> = fetch;\n\n/**\n * React Query hook for retrieving fare collection descriptions for all terminal combinations on a trip date\n */\nexport const useTerminalComboFaresVerbose: HookFactory<\n TerminalComboFaresVerboseInput,\n TerminalComboFaresVerbose[]\n> = useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving fare collection description for a specific terminal combination and trip date\n */\nconst { fetch, useHook } = createFetchAndHook<\n TerminalComboInput,\n TerminalComboFares\n>({\n api: wsfFaresApiMeta,\n endpoint: terminalComboFaresMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/terminalCombo.endpoints\").terminalComboGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving fare collection description for a specific terminal combination and trip date\n */\nexport const fetchTerminalComboFares: FetchFactory<\n TerminalComboInput,\n TerminalComboFares\n> = fetch;\n\n/**\n * React Query hook for retrieving fare collection description for a specific terminal combination and trip date\n */\nexport const useTerminalComboFares: HookFactory<\n TerminalComboInput,\n TerminalComboFares\n> = useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving arriving terminals for a given departing terminal and trip date\n */\nconst { fetch, useHook } = createFetchAndHook<TerminalMatesInput, TerminalList>(\n {\n api: wsfFaresApiMeta,\n endpoint: terminalMatesFaresMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/terminals.endpoints\").terminalsGroup.cacheStrategy,\n }\n);\n\n/**\n * Fetch function for retrieving arriving terminals for a given departing terminal and trip date\n */\nexport const fetchTerminalMatesFares: FetchFactory<\n TerminalMatesInput,\n TerminalList\n> = fetch;\n\n/**\n * React Query hook for retrieving arriving terminals for a given departing terminal and trip date\n */\nexport const useTerminalMatesFares: HookFactory<\n TerminalMatesInput,\n TerminalList\n> = useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving valid departing terminals for a trip date\n */\nconst { fetch, useHook } = createFetchAndHook<TerminalsInput, TerminalList>({\n api: wsfFaresApiMeta,\n endpoint: terminalFaresMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/terminals.endpoints\").terminalsGroup.cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving valid departing terminals for a trip date\n */\nexport const fetchTerminalFares: FetchFactory<TerminalsInput, TerminalList> =\n fetch;\n\n/**\n * React Query hook for retrieving valid departing terminals for a trip date\n */\nexport const useTerminalFares: HookFactory<TerminalsInput, TerminalList> =\n useHook;\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 {\n createFetchAndHook,\n type FetchFactory,\n type HookFactory,\n} 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 * Fetch function for retrieving the validity date range for published fares data\n */\nconst { fetch, useHook } = createFetchAndHook<\n FaresValidDateRangeInput,\n ValidDateRange\n>({\n api: wsfFaresApiMeta,\n endpoint: faresValidDateRangeMeta,\n getCacheStrategy: () =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n require(\"./shared/validDateRange.endpoints\").validDateRangeGroup\n .cacheStrategy,\n});\n\n/**\n * Fetch function for retrieving the validity date range for published fares data\n */\nexport const fetchFaresValidDateRange: FetchFactory<\n FaresValidDateRangeInput,\n ValidDateRange\n> = fetch;\n\n/**\n * React Query hook for retrieving the validity date range for published fares data\n */\nexport const useFaresValidDateRange: HookFactory<\n FaresValidDateRangeInput,\n ValidDateRange\n> = useHook;\n"]}