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 • 27.1 kB
Source Map (JSON)
{"version":3,"sources":["../src/apis/wsf-vessels/vesselAccommodations/vesselAccommodations.ts","../src/apis/wsf-vessels/vesselAccommodations/vesselAccommodationsByVesselId.ts","../src/apis/wsf-vessels/vesselBasics/vesselBasics.ts","../src/apis/wsf-vessels/vesselBasics/vesselBasicsByVesselId.ts","../src/apis/wsf-vessels/vesselHistories/vesselHistories.ts","../src/apis/wsf-vessels/vesselHistories/vesselHistoriesByVesselNameAndDateRange.ts","../src/apis/wsf-vessels/vesselLocations/vesselLocations.ts","../src/apis/wsf-vessels/vesselLocations/vesselLocationsByVesselId.ts","../src/apis/wsf-vessels/vesselStats/vesselStats.ts","../src/apis/wsf-vessels/vesselStats/vesselStatsByVesselId.ts","../src/apis/wsf-vessels/vesselVerbose/vesselsVerbose.ts","../src/apis/wsf-vessels/vesselVerbose/vesselsVerboseById.ts"],"names":["vesselAccommodationsMeta","vesselAccommodationsInputSchema","vesselAccommodationSchema","fetchVesselAccommodations","createFetchFunction","wsfVesselsApi","vesselAccommodationsGroup","useVesselAccommodations","createHook","vesselAccommodationsByVesselIdMeta","vesselAccommodationsByIdInputSchema","fetchVesselAccommodationsByVesselId","useVesselAccommodationsByVesselId","vesselBasicsMeta","vesselBasicsInputSchema","vesselBasicSchema","fetchVesselBasics","vesselBasicsGroup","useVesselBasics","vesselBasicsByVesselIdMeta","vesselBasicsByIdInputSchema","fetchVesselBasicsByVesselId","useVesselBasicsByVesselId","vesselHistoriesMeta","vesselHistoriesInputSchema","vesselHistorySchema","fetchVesselHistories","vesselHistoriesGroup","useVesselHistories","vesselHistoriesByVesselNameAndDateRangeMeta","vesselHistoriesByVesselNameAndDateRangeInputSchema","fetchVesselHistoriesByVesselNameAndDateRange","useVesselHistoriesByVesselNameAndDateRange","vesselLocationsMeta","vesselLocationsInputSchema","vesselLocationSchema","fetchVesselLocations","vesselLocationsGroup","useVesselLocations","vesselLocationsByVesselIdMeta","vesselLocationsByIdInputSchema","fetchVesselLocationsByVesselId","useVesselLocationsByVesselId","vesselStatsMeta","vesselStatsInputSchema","vesselStatSchema","fetchVesselStats","vesselStatsGroup","useVesselStats","vesselStatsByVesselIdMeta","vesselStatsByIdInputSchema","fetchVesselStatsByVesselId","useVesselStatsByVesselId","vesselsVerboseMeta","vesselVerboseInputSchema","vesselVerboseSchema","fetchVesselsVerbose","vesselVerboseGroup","useVesselsVerbose","vesselsVerboseByVesselIdMeta","vesselVerboseByIdInputSchema","fetchVesselsVerboseByVesselId","useVesselsVerboseByVesselId"],"mappings":"4IAqBO,IAAMA,EAA2B,CACtC,YAAA,CAAc,4BACd,QAAA,CAAU,uBAAA,CACV,YAAaC,CAAAA,CACb,YAAA,CAAcC,EAA0B,KAAA,EAAM,CAC9C,aAAc,EAAC,CACf,oBACE,4DACJ,CAAA,CAKaC,EAEyBC,EAAAA,CACpCC,EAAAA,CACAC,GACAN,CACF,CAAA,CAKaO,EAGuCC,EAAAA,CAClDH,EAAAA,CACAC,GACAN,CACF,MC/BaS,CAAAA,CAAqC,CAChD,aAAc,qCAAA,CACd,QAAA,CAAU,mCACV,WAAA,CAAaC,GAAAA,CACb,aAAcR,CAAAA,CACd,YAAA,CAAc,CAAE,QAAA,CAAU,EAAG,CAAA,CAC7B,mBAAA,CACE,iEACJ,CAAA,CAKaS,CAAAA,CAEuBP,GAClCC,EAAAA,CACAC,EAAAA,CACAG,CACF,CAAA,CAKaG,CAAAA,CAGqCJ,GAChDH,EAAAA,CACAC,EAAAA,CACAG,CACF,EC/BO,IAAMI,EAAmB,CAC9B,YAAA,CAAc,oBACd,QAAA,CAAU,eAAA,CACV,YAAaC,CAAAA,CACb,YAAA,CAAcC,EAAkB,KAAA,EAAM,CACtC,aAAc,EAAC,CACf,oBAAqB,sDACvB,CAAA,CAKaC,GAEiBZ,EAAAA,CAC5BC,EAAAA,CACAY,GACAJ,CACF,CAAA,CAKa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A,CACAJ,CACF,CAAA,CAKaK,EAAAA,CAGiClD,GAC5CH,EAAAA,CACAoD,EAAAA,CACAJ,CACF,EC9BO,IAAMM,EAA+B,CAC1C,YAAA,CAAc,gCACd,QAAA,CAAU,2BAAA,CACV,YAAaC,CAAAA,CACb,YAAA,CAAcL,EACd,YAAA,CAAc,CAAE,SAAU,EAAG,CAAA,CAC7B,oBACE,8DACJ,CAAA,CAKaM,GAEiBzD,EAAAA,CAC5BC,EAAAA,CACAoD,GACAE,CACF,CAAA,CAKaG,GAG+BtD,EAAAA,CAC1CH,EAAAA,CACAoD,GACAE,CACF","file":"chunk-EYORGLMI.mjs","sourcesContent":["import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselAccommodationsGroup } from \"./shared/vesselAccommodations.endpoints\";\nimport {\n type VesselAccommodationsInput,\n vesselAccommodationsInputSchema,\n} from \"./shared/vesselAccommodations.input\";\nimport {\n type VesselAccommodation,\n vesselAccommodationSchema,\n} from \"./shared/vesselAccommodations.output\";\n\n/**\n * Metadata for the fetchVesselAccommodations endpoint\n */\nexport const vesselAccommodationsMeta = {\n functionName: \"fetchVesselAccommodations\",\n endpoint: \"/vesselAccommodations\",\n inputSchema: vesselAccommodationsInputSchema,\n outputSchema: vesselAccommodationSchema.array(),\n sampleParams: {},\n endpointDescription:\n \"List amenities and accessibility features for all vessels.\",\n} satisfies EndpointMeta<VesselAccommodationsInput, VesselAccommodation[]>;\n\n/**\n * Fetch function for retrieving amenities and accessibility features for all vessels\n */\nexport const fetchVesselAccommodations: (\n params?: FetchFunctionParams<VesselAccommodationsInput>\n) => Promise<VesselAccommodation[]> = createFetchFunction(\n wsfVesselsApi,\n vesselAccommodationsGroup,\n vesselAccommodationsMeta\n);\n\n/**\n * React Query hook for retrieving amenities and accessibility features for all vessels\n */\nexport const useVesselAccommodations: (\n params?: FetchFunctionParams<VesselAccommodationsInput>,\n options?: QueryHookOptions<VesselAccommodation[]>\n) => UseQueryResult<VesselAccommodation[], Error> = createHook(\n wsfVesselsApi,\n vesselAccommodationsGroup,\n vesselAccommodationsMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselAccommodationsGroup } from \"./shared/vesselAccommodations.endpoints\";\nimport {\n type VesselAccommodationsByIdInput,\n vesselAccommodationsByIdInputSchema,\n} from \"./shared/vesselAccommodations.input\";\nimport {\n type VesselAccommodation,\n vesselAccommodationSchema,\n} from \"./shared/vesselAccommodations.output\";\n\n/**\n * Metadata for the fetchVesselAccommodationsByVesselId endpoint\n */\nexport const vesselAccommodationsByVesselIdMeta = {\n functionName: \"fetchVesselAccommodationsByVesselId\",\n endpoint: \"/vesselAccommodations/{VesselID}\",\n inputSchema: vesselAccommodationsByIdInputSchema,\n outputSchema: vesselAccommodationSchema,\n sampleParams: { VesselID: 65 },\n endpointDescription:\n \"Get amenities and accessibility features for a specific vessel.\",\n} satisfies EndpointMeta<VesselAccommodationsByIdInput, VesselAccommodation>;\n\n/**\n * Fetch function for retrieving amenities and accessibility features for a specific vessel\n */\nexport const fetchVesselAccommodationsByVesselId: (\n params?: FetchFunctionParams<VesselAccommodationsByIdInput>\n) => Promise<VesselAccommodation> = createFetchFunction(\n wsfVesselsApi,\n vesselAccommodationsGroup,\n vesselAccommodationsByVesselIdMeta\n);\n\n/**\n * React Query hook for retrieving amenities and accessibility features for a specific vessel\n */\nexport const useVesselAccommodationsByVesselId: (\n params?: FetchFunctionParams<VesselAccommodationsByIdInput>,\n options?: QueryHookOptions<VesselAccommodation>\n) => UseQueryResult<VesselAccommodation, Error> = createHook(\n wsfVesselsApi,\n vesselAccommodationsGroup,\n vesselAccommodationsByVesselIdMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselBasicsGroup } from \"./shared/vesselBasics.endpoints\";\nimport {\n type VesselBasicsInput,\n vesselBasicsInputSchema,\n} from \"./shared/vesselBasics.input\";\nimport {\n type VesselBasic,\n vesselBasicSchema,\n} from \"./shared/vesselBasics.output\";\n\n/**\n * Metadata for the fetchVesselBasics endpoint\n */\nexport const vesselBasicsMeta = {\n functionName: \"fetchVesselBasics\",\n endpoint: \"/vesselBasics\",\n inputSchema: vesselBasicsInputSchema,\n outputSchema: vesselBasicSchema.array(),\n sampleParams: {},\n endpointDescription: \"List basic information for all vessels in the fleet.\",\n} satisfies EndpointMeta<VesselBasicsInput, VesselBasic[]>;\n\n/**\n * Fetch function for retrieving basic information for all vessels in the fleet\n */\nexport const fetchVesselBasics: (\n params?: FetchFunctionParams<VesselBasicsInput>\n) => Promise<VesselBasic[]> = createFetchFunction(\n wsfVesselsApi,\n vesselBasicsGroup,\n vesselBasicsMeta\n);\n\n/**\n * React Query hook for retrieving basic information for all vessels in the fleet\n */\nexport const useVesselBasics: (\n params?: FetchFunctionParams<VesselBasicsInput>,\n options?: QueryHookOptions<VesselBasic[]>\n) => UseQueryResult<VesselBasic[], Error> = createHook(\n wsfVesselsApi,\n vesselBasicsGroup,\n vesselBasicsMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselBasicsGroup } from \"./shared/vesselBasics.endpoints\";\nimport {\n type VesselBasicsByIdInput,\n vesselBasicsByIdInputSchema,\n} from \"./shared/vesselBasics.input\";\nimport {\n type VesselBasic,\n vesselBasicSchema,\n} from \"./shared/vesselBasics.output\";\n\n/**\n * Metadata for the fetchVesselBasicsByVesselId endpoint\n */\nexport const vesselBasicsByVesselIdMeta = {\n functionName: \"fetchVesselBasicsByVesselId\",\n endpoint: \"/vesselBasics/{VesselID}\",\n inputSchema: vesselBasicsByIdInputSchema,\n outputSchema: vesselBasicSchema,\n sampleParams: { VesselID: 74 },\n endpointDescription: \"Get basic information for a specific vessel by ID.\",\n} satisfies EndpointMeta<VesselBasicsByIdInput, VesselBasic>;\n\n/**\n * Fetch function for retrieving basic information for a specific vessel by ID\n */\nexport const fetchVesselBasicsByVesselId: (\n params?: FetchFunctionParams<VesselBasicsByIdInput>\n) => Promise<VesselBasic> = createFetchFunction(\n wsfVesselsApi,\n vesselBasicsGroup,\n vesselBasicsByVesselIdMeta\n);\n\n/**\n * React Query hook for retrieving basic information for a specific vessel by ID\n */\nexport const useVesselBasicsByVesselId: (\n params?: FetchFunctionParams<VesselBasicsByIdInput>,\n options?: QueryHookOptions<VesselBasic>\n) => UseQueryResult<VesselBasic, Error> = createHook(\n wsfVesselsApi,\n vesselBasicsGroup,\n vesselBasicsByVesselIdMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselHistoriesGroup } from \"./shared/vesselHistories.endpoints\";\nimport {\n type VesselHistoriesInput,\n vesselHistoriesInputSchema,\n} from \"./shared/vesselHistories.input\";\nimport {\n type VesselHistory,\n vesselHistorySchema,\n} from \"./shared/vesselHistories.output\";\n\n/**\n * Metadata for the fetchVesselHistories endpoint\n */\nexport const vesselHistoriesMeta = {\n functionName: \"fetchVesselHistories\",\n endpoint: \"/vesselHistory\",\n inputSchema: vesselHistoriesInputSchema,\n outputSchema: vesselHistorySchema.array(),\n sampleParams: {},\n endpointDescription: \"List historical sailing records for all vessels.\",\n} satisfies EndpointMeta<VesselHistoriesInput, VesselHistory[]>;\n\n/**\n * Fetch function for retrieving historical sailing records for all vessels\n */\nexport const fetchVesselHistories: (\n params?: FetchFunctionParams<VesselHistoriesInput>\n) => Promise<VesselHistory[]> = createFetchFunction(\n wsfVesselsApi,\n vesselHistoriesGroup,\n vesselHistoriesMeta\n);\n\n/**\n * React Query hook for retrieving historical sailing records for all vessels\n */\nexport const useVesselHistories: (\n params?: FetchFunctionParams<VesselHistoriesInput>,\n options?: QueryHookOptions<VesselHistory[]>\n) => UseQueryResult<VesselHistory[], Error> = createHook(\n wsfVesselsApi,\n vesselHistoriesGroup,\n vesselHistoriesMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselHistoriesGroup } from \"./shared/vesselHistories.endpoints\";\nimport {\n type VesselHistoriesByVesselNameAndDateRangeInput,\n vesselHistoriesByVesselNameAndDateRangeInputSchema,\n} from \"./shared/vesselHistories.input\";\nimport {\n type VesselHistory,\n vesselHistorySchema,\n} from \"./shared/vesselHistories.output\";\n\n/**\n * Metadata for the fetchVesselHistoriesByVesselNameAndDateRange endpoint\n */\nexport const vesselHistoriesByVesselNameAndDateRangeMeta = {\n functionName: \"fetchVesselHistoriesByVesselNameAndDateRange\",\n endpoint: \"/vesselHistory/{VesselName}/{DateStart}/{DateEnd}\",\n inputSchema: vesselHistoriesByVesselNameAndDateRangeInputSchema,\n outputSchema: vesselHistorySchema.array(),\n sampleParams: {\n VesselName: \"Tacoma\",\n DateStart: \"2025-09-01\",\n DateEnd: \"2025-10-01\",\n },\n endpointDescription:\n \"Get historical sailing records for a vessel within a date range.\",\n} satisfies EndpointMeta<\n VesselHistoriesByVesselNameAndDateRangeInput,\n VesselHistory[]\n>;\n\n/**\n * Fetch function for retrieving historical sailing records for a vessel within a date range\n */\nexport const fetchVesselHistoriesByVesselNameAndDateRange: (\n params?: FetchFunctionParams<VesselHistoriesByVesselNameAndDateRangeInput>\n) => Promise<VesselHistory[]> = createFetchFunction(\n wsfVesselsApi,\n vesselHistoriesGroup,\n vesselHistoriesByVesselNameAndDateRangeMeta\n);\n\n/**\n * React Query hook for retrieving historical sailing records for a vessel within a date range\n */\nexport const useVesselHistoriesByVesselNameAndDateRange: (\n params?: FetchFunctionParams<VesselHistoriesByVesselNameAndDateRangeInput>,\n options?: QueryHookOptions<VesselHistory[]>\n) => UseQueryResult<VesselHistory[], Error> = createHook(\n wsfVesselsApi,\n vesselHistoriesGroup,\n vesselHistoriesByVesselNameAndDateRangeMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselLocationsGroup } from \"./shared/vesselLocations.endpoints\";\nimport {\n type VesselLocationsInput,\n vesselLocationsInputSchema,\n} from \"./shared/vesselLocations.input\";\nimport {\n type VesselLocation,\n vesselLocationSchema,\n} from \"./shared/vesselLocations.output\";\n\n/**\n * Metadata for the fetchVesselLocations endpoint\n */\nexport const vesselLocationsMeta = {\n functionName: \"fetchVesselLocations\",\n endpoint: \"/vesselLocations\",\n inputSchema: vesselLocationsInputSchema,\n outputSchema: vesselLocationSchema.array(),\n sampleParams: {},\n endpointDescription:\n \"List current locations and status for all active vessels.\",\n} satisfies EndpointMeta<VesselLocationsInput, VesselLocation[]>;\n\n/**\n * Fetch function for retrieving current locations and status for all active vessels\n */\nexport const fetchVesselLocations: (\n params?: FetchFunctionParams<VesselLocationsInput>\n) => Promise<VesselLocation[]> = createFetchFunction(\n wsfVesselsApi,\n vesselLocationsGroup,\n vesselLocationsMeta\n);\n\n/**\n * React Query hook for retrieving current locations and status for all active vessels\n */\nexport const useVesselLocations: (\n params?: FetchFunctionParams<VesselLocationsInput>,\n options?: QueryHookOptions<VesselLocation[]>\n) => UseQueryResult<VesselLocation[], Error> = createHook(\n wsfVesselsApi,\n vesselLocationsGroup,\n vesselLocationsMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselLocationsGroup } from \"./shared/vesselLocations.endpoints\";\nimport {\n type VesselLocationsByIdInput,\n vesselLocationsByIdInputSchema,\n} from \"./shared/vesselLocations.input\";\nimport {\n type VesselLocation,\n vesselLocationSchema,\n} from \"./shared/vesselLocations.output\";\n\n/**\n * Metadata for the fetchVesselLocationsByVesselId endpoint\n */\nexport const vesselLocationsByVesselIdMeta = {\n functionName: \"fetchVesselLocationsByVesselId\",\n endpoint: \"/vesselLocations/{VesselID}\",\n inputSchema: vesselLocationsByIdInputSchema,\n outputSchema: vesselLocationSchema,\n sampleParams: { VesselID: 18 },\n endpointDescription:\n \"Get current location and status for a specific vessel by ID.\",\n} satisfies EndpointMeta<VesselLocationsByIdInput, VesselLocation>;\n\n/**\n * Fetch function for retrieving current location and status for a specific vessel by ID\n */\nexport const fetchVesselLocationsByVesselId: (\n params?: FetchFunctionParams<VesselLocationsByIdInput>\n) => Promise<VesselLocation> = createFetchFunction(\n wsfVesselsApi,\n vesselLocationsGroup,\n vesselLocationsByVesselIdMeta\n);\n\n/**\n * React Query hook for retrieving current location and status for a specific vessel by ID\n */\nexport const useVesselLocationsByVesselId: (\n params?: FetchFunctionParams<VesselLocationsByIdInput>,\n options?: QueryHookOptions<VesselLocation>\n) => UseQueryResult<VesselLocation, Error> = createHook(\n wsfVesselsApi,\n vesselLocationsGroup,\n vesselLocationsByVesselIdMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselStatsGroup } from \"./shared/vesselStats.endpoints\";\nimport {\n type VesselStatsInput,\n vesselStatsInputSchema,\n} from \"./shared/vesselStats.input\";\nimport { type VesselStat, vesselStatSchema } from \"./shared/vesselStats.output\";\n\n/**\n * Metadata for the fetchVesselStats endpoint\n */\nexport const vesselStatsMeta = {\n functionName: \"fetchVesselStats\",\n endpoint: \"/vesselStats\",\n inputSchema: vesselStatsInputSchema,\n outputSchema: vesselStatSchema.array(),\n sampleParams: {},\n endpointDescription: \"List technical specifications for all vessels.\",\n} satisfies EndpointMeta<VesselStatsInput, VesselStat[]>;\n\n/**\n * Fetch function for retrieving technical specifications for all vessels\n */\nexport const fetchVesselStats: (\n params?: FetchFunctionParams<VesselStatsInput>\n) => Promise<VesselStat[]> = createFetchFunction(\n wsfVesselsApi,\n vesselStatsGroup,\n vesselStatsMeta\n);\n\n/**\n * React Query hook for retrieving technical specifications for all vessels\n */\nexport const useVesselStats: (\n params?: FetchFunctionParams<VesselStatsInput>,\n options?: QueryHookOptions<VesselStat[]>\n) => UseQueryResult<VesselStat[], Error> = createHook(\n wsfVesselsApi,\n vesselStatsGroup,\n vesselStatsMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselStatsGroup } from \"./shared/vesselStats.endpoints\";\nimport {\n type VesselStatsByIdInput,\n vesselStatsByIdInputSchema,\n} from \"./shared/vesselStats.input\";\nimport { type VesselStat, vesselStatSchema } from \"./shared/vesselStats.output\";\n\n/**\n * Metadata for the fetchVesselStatsByVesselId endpoint\n */\nexport const vesselStatsByVesselIdMeta = {\n functionName: \"fetchVesselStatsByVesselId\",\n endpoint: \"/vesselStats/{VesselID}\",\n inputSchema: vesselStatsByIdInputSchema,\n outputSchema: vesselStatSchema,\n sampleParams: { VesselID: 32 },\n endpointDescription:\n \"Get technical specifications for a specific vessel by ID.\",\n} satisfies EndpointMeta<VesselStatsByIdInput, VesselStat>;\n\n/**\n * Fetch function for retrieving technical specifications for a specific vessel by ID\n */\nexport const fetchVesselStatsByVesselId: (\n params?: FetchFunctionParams<VesselStatsByIdInput>\n) => Promise<VesselStat> = createFetchFunction(\n wsfVesselsApi,\n vesselStatsGroup,\n vesselStatsByVesselIdMeta\n);\n\n/**\n * React Query hook for retrieving technical specifications for a specific vessel by ID\n */\nexport const useVesselStatsByVesselId: (\n params?: FetchFunctionParams<VesselStatsByIdInput>,\n options?: QueryHookOptions<VesselStat>\n) => UseQueryResult<VesselStat, Error> = createHook(\n wsfVesselsApi,\n vesselStatsGroup,\n vesselStatsByVesselIdMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselVerboseGroup } from \"./shared/vesselVerbose.endpoints\";\nimport {\n type VesselVerboseInput,\n vesselVerboseInputSchema,\n} from \"./shared/vesselVerbose.input\";\nimport {\n type VesselVerbose,\n vesselVerboseSchema,\n} from \"./shared/vesselVerbose.output\";\n\n/**\n * Metadata for the fetchVesselsVerbose endpoint\n */\nexport const vesselsVerboseMeta = {\n functionName: \"fetchVesselsVerbose\",\n endpoint: \"/vesselVerbose\",\n inputSchema: vesselVerboseInputSchema,\n outputSchema: vesselVerboseSchema.array(),\n sampleParams: {},\n endpointDescription: \"List complete vessel information for all vessels.\",\n} satisfies EndpointMeta<VesselVerboseInput, VesselVerbose[]>;\n\n/**\n * Fetch function for retrieving complete vessel information for all vessels\n */\nexport const fetchVesselsVerbose: (\n params?: FetchFunctionParams<VesselVerboseInput>\n) => Promise<VesselVerbose[]> = createFetchFunction(\n wsfVesselsApi,\n vesselVerboseGroup,\n vesselsVerboseMeta\n);\n\n/**\n * React Query hook for retrieving complete vessel information for all vessels\n */\nexport const useVesselsVerbose: (\n params?: FetchFunctionParams<VesselVerboseInput>,\n options?: QueryHookOptions<VesselVerbose[]>\n) => UseQueryResult<VesselVerbose[], Error> = createHook(\n wsfVesselsApi,\n vesselVerboseGroup,\n vesselsVerboseMeta\n);\n","import type { UseQueryResult } from \"@tanstack/react-query\";\nimport type {\n EndpointMeta,\n FetchFunctionParams,\n QueryHookOptions,\n} from \"@/apis/types\";\nimport { createFetchFunction, createHook } from \"@/shared/factories\";\nimport { wsfVesselsApi } from \"../api\";\nimport { vesselVerboseGroup } from \"./shared/vesselVerbose.endpoints\";\nimport {\n type VesselVerboseByIdInput,\n vesselVerboseByIdInputSchema,\n} from \"./shared/vesselVerbose.input\";\nimport {\n type VesselVerbose,\n vesselVerboseSchema,\n} from \"./shared/vesselVerbose.output\";\n\n/**\n * Metadata for the fetchVesselsVerboseByVesselId endpoint\n */\nexport const vesselsVerboseByVesselIdMeta = {\n functionName: \"fetchVesselsVerboseByVesselId\",\n endpoint: \"/vesselVerbose/{VesselID}\",\n inputSchema: vesselVerboseByIdInputSchema,\n outputSchema: vesselVerboseSchema,\n sampleParams: { VesselID: 68 },\n endpointDescription:\n \"Get complete vessel information for a specific vessel by ID.\",\n} satisfies EndpointMeta<VesselVerboseByIdInput, VesselVerbose>;\n\n/**\n * Fetch function for retrieving complete vessel information for a specific vessel by ID\n */\nexport const fetchVesselsVerboseByVesselId: (\n params?: FetchFunctionParams<VesselVerboseByIdInput>\n) => Promise<VesselVerbose> = createFetchFunction(\n wsfVesselsApi,\n vesselVerboseGroup,\n vesselsVerboseByVesselIdMeta\n);\n\n/**\n * React Query hook for retrieving complete vessel information for a specific vessel by ID\n */\nexport const useVesselsVerboseByVesselId: (\n params?: FetchFunctionParams<VesselVerboseByIdInput>,\n options?: QueryHookOptions<VesselVerbose>\n) => UseQueryResult<VesselVerbose, Error> = createHook(\n wsfVesselsApi,\n vesselVerboseGroup,\n vesselsVerboseByVesselIdMeta\n);\n"]}