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 17.1 kB
{"version":3,"sources":["../src/apis/wsf-fares/fareLineItems/shared/fareLineItems.input.ts","../src/apis/wsf-fares/terminalCombo/shared/terminalCombo.output.ts","../src/apis/wsf-fares/fareLineItems/shared/fareLineItems.output.ts","../src/apis/wsf-fares/fareTotals/shared/fareTotals.input.ts","../src/apis/wsf-fares/fareTotals/shared/fareTotals.output.ts","../src/apis/wsf-fares/terminalCombo/shared/terminalCombo.input.ts","../src/apis/wsf-fares/validDateRange/shared/validDateRange.input.ts"],"names":["fareLineItemsBasicInputSchema","z","fareLineItemsByTripDateAndTerminalsInputSchema","fareLineItemsVerboseInputSchema","terminalComboFaresSchema","terminalComboFaresVerboseSchema","lineItemSchema","lineItemXrefSchema","lineItemVerboseSchema","fareTotalsByTripDateAndRouteInputSchema","fareTotalTypeSchema","fareTotalSchema","terminalComboInputSchema","terminalComboFaresVerboseInputSchema","faresValidDateRangeInputSchema"],"mappings":"4CASO,IAAMA,CAAAA,CAAgCC,GAAAA,CAC1C,MAAA,CAAO,CACN,QAAA,CAAUA,GAAAA,CACP,MAAA,EAAO,CACP,QAAA,CACC,kEACF,CAAA,CACF,mBAAA,CAAqBA,GAAAA,CAClB,QAAO,CACP,QAAA,CAAS,uCAAuC,CAAA,CACnD,kBAAA,CAAoBA,GAAAA,CACjB,MAAA,EAAO,CACP,QAAA,CAAS,sCAAsC,CAAA,CAClD,SAAA,CAAWA,GAAAA,CACR,OAAA,GACA,QAAA,CAAS,qDAAqD,CACnE,CAAC,CAAA,CACA,QAAA,CACC,qFACF,CAAA,CAMWC,CAAAA,CAAiDD,GAAAA,CAC3D,MAAA,CAAO,CACN,QAAA,CAAUA,GAAAA,CACP,QAAO,CACP,QAAA,CACC,kEACF,CAAA,CACF,mBAAA,CAAqBA,GAAAA,CAClB,MAAA,EAAO,CACP,QAAA,CAAS,uCAAuC,CAAA,CACnD,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,0DAA0D,EC5B/D,IAAMW,CAAAA,CAA2BX,GAAAA,CACrC,MAAA,CAAO,CACN,QAAA,CAAUA,GAAAA,CACP,MAAA,EAAO,CACP,QAAA,CACC,kEACF,EACF,mBAAA,CAAqBA,GAAAA,CAClB,MAAA,EAAO,CACP,QAAA,CAAS,uCAAuC,CAAA,CACnD,kBAAA,CAAoBA,GAAAA,CACjB,MAAA,EAAO,CACP,QAAA,CAAS,sCAAsC,CACpD,CAAC,CAAA,CACA,QAAA,CACC,yFACF,CAAA,CAIWY,CAAAA,CAAuCZ,GAAAA,CACjD,MAAA,CAAO,CACN,QAAA,CAAUA,GAAAA,CACP,MAAA,EAAO,CACP,QAAA,CACC,kEACF,CACJ,CAAC,CAAA,CACA,QAAA,CACC,6FACF,EC9BK,IAAMa,CAAAA,CAAiCb,GAAAA,CAC3C,MAAA,CAAO,EAAE,CAAA,CACT,QAAA,CACC,yEACF","file":"chunk-TFSTTMAY.mjs","sourcesContent":["/**\n * @fileoverview Input schemas for WSF Fares API FareLineItems endpoints\n *\n * These schemas define the input parameters for WSF Fares API FareLineItems endpoints.\n * Note: AccessCode is handled separately and is not included in these schemas.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const fareLineItemsBasicInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n DepartingTerminalID: z\n .number()\n .describe(\"Numeric ID of the departing terminal.\"),\n ArrivingTerminalID: z\n .number()\n .describe(\"Numeric ID of the arriving terminal.\"),\n RoundTrip: z\n .boolean()\n .describe(\"True for round trip fares, false for one-way fares.\"),\n })\n .describe(\n \"Input parameters for retrieving popular fare line items for a terminal combination.\"\n );\n\nexport type FareLineItemsBasicInput = z.infer<\n typeof fareLineItemsBasicInputSchema\n>;\n\nexport const fareLineItemsByTripDateAndTerminalsInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n DepartingTerminalID: z\n .number()\n .describe(\"Numeric ID of the departing terminal.\"),\n ArrivingTerminalID: z\n .number()\n .describe(\"Numeric ID of the arriving terminal.\"),\n RoundTrip: z\n .boolean()\n .describe(\"True for round trip fares, false for one-way fares.\"),\n })\n .describe(\n \"Input parameters for retrieving all fare line items for a terminal combination.\"\n );\n\nexport type FareLineItemsByTripDateAndTerminalsInput = z.infer<\n typeof fareLineItemsByTripDateAndTerminalsInputSchema\n>;\n\nexport const fareLineItemsVerboseInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n })\n .describe(\n \"Input parameters for retrieving fare line items for all terminal combinations.\"\n );\n\nexport type FareLineItemsVerboseInput = z.infer<\n typeof fareLineItemsVerboseInputSchema\n>;\n","/**\n * @fileoverview Output schemas for WSF Fares API TerminalCombo endpoints\n *\n * These schemas define the response structures for WSF Fares API TerminalCombo endpoints.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const terminalComboFaresSchema = z\n .object({\n DepartingDescription: z\n .string()\n .nullable()\n .describe(\n \"Display name of the departing terminal, or null if unavailable.\"\n ),\n ArrivingDescription: z\n .string()\n .nullable()\n .describe(\n \"Display name of the arriving terminal, or null if unavailable.\"\n ),\n CollectionDescription: z\n .string()\n .nullable()\n .describe(\n \"Text description of fare collection procedures for this terminal combination, or null if unavailable.\"\n ),\n })\n .describe(\n \"Fare collection description for a terminal combination with terminal names and collection procedures.\"\n );\n\nexport type TerminalComboFares = z.infer<typeof terminalComboFaresSchema>;\n\nexport const terminalComboFaresVerboseSchema = z\n .object({\n DepartingTerminalID: z\n .number()\n .describe(\"Numeric ID of the departing terminal.\"),\n DepartingDescription: z\n .string()\n .nullable()\n .describe(\n \"Display name of the departing terminal, or null if unavailable.\"\n ),\n ArrivingTerminalID: z\n .number()\n .describe(\"Numeric ID of the arriving terminal.\"),\n ArrivingDescription: z\n .string()\n .nullable()\n .describe(\n \"Display name of the arriving terminal, or null if unavailable.\"\n ),\n CollectionDescription: z\n .string()\n .nullable()\n .describe(\n \"Text description of fare collection procedures for this terminal combination, or null if unavailable.\"\n ),\n })\n .describe(\n \"Fare collection description for a terminal combination with IDs, names, and collection procedures.\"\n );\n\nexport type TerminalComboFaresVerbose = z.infer<\n typeof terminalComboFaresVerboseSchema\n>;\n","/**\n * @fileoverview Output schemas for WSF Fares API FareLineItems endpoints\n *\n * These schemas define the response structures for WSF Fares API FareLineItems endpoints.\n */\n\nimport { z } from \"@/shared/zod\";\nimport { terminalComboFaresVerboseSchema } from \"../../terminalCombo/shared/terminalCombo.output\";\n\nexport const lineItemSchema = z\n .object({\n FareLineItemID: z.number().describe(\"Numeric ID of the fare line item.\"),\n FareLineItem: z\n .string()\n .nullable()\n .describe(\"Display name of the fare line item, or null if unavailable.\"),\n Category: z\n .string()\n .nullable()\n .describe(\n \"Category grouping for the fare (e.g., 'Passenger', 'Vehicle'), or null if unavailable.\"\n ),\n DirectionIndependent: z\n .boolean()\n .describe(\n \"True if fare amount is the same regardless of departure direction, false if it varies by terminal.\"\n ),\n Amount: z.number().describe(\"Fare cost in dollars.\"),\n })\n .describe(\n \"Fare line item with identifier, description, category, direction independence, and cost.\"\n );\n\nexport type LineItem = z.infer<typeof lineItemSchema>;\n\nexport const lineItemXrefSchema = z\n .object({\n TerminalComboIndex: z\n .number()\n .describe(\n \"Array index of terminal combination in TerminalComboVerbose array.\"\n ),\n LineItemIndex: z\n .number()\n .describe(\"Array index of one-way fare line items in LineItems array.\"),\n RoundTripLineItemIndex: z\n .number()\n .describe(\n \"Array index of round trip fare line items in RoundTripLineItems array.\"\n ),\n })\n .describe(\n \"Cross-reference mapping between terminal combinations and fare line item arrays.\"\n );\n\nexport type LineItemXref = z.infer<typeof lineItemXrefSchema>;\n\nexport const lineItemVerboseSchema = z\n .object({\n TerminalComboVerbose: z\n .array(terminalComboFaresVerboseSchema)\n .optional()\n .describe(\"Array of terminal combination information for the trip date.\"),\n LineItemLookup: z\n .array(lineItemXrefSchema)\n .optional()\n .describe(\n \"Array of cross-reference mappings between terminal combinations and fare line items.\"\n ),\n LineItems: z\n .array(z.array(lineItemSchema))\n .optional()\n .describe(\n \"Array of one-way fare line item arrays, one per terminal combination.\"\n ),\n RoundTripLineItems: z\n .array(z.array(lineItemSchema))\n .optional()\n .describe(\n \"Array of round trip fare line item arrays, one per terminal combination.\"\n ),\n })\n .describe(\n \"Comprehensive fare line item data for all terminal combinations on a trip date.\"\n );\n\nexport type LineItemVerbose = z.infer<typeof lineItemVerboseSchema>;\n","/**\n * @fileoverview Input schemas for WSF Fares API FareTotals endpoint\n *\n * These schemas define the input parameters for WSF Fares API FareTotals endpoint.\n * Note: AccessCode is handled separately and is not included in these schemas.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const fareTotalsByTripDateAndRouteInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n DepartingTerminalID: z\n .number()\n .describe(\"Numeric ID of the departing terminal.\"),\n ArrivingTerminalID: z\n .number()\n .describe(\"Numeric ID of the arriving terminal.\"),\n RoundTrip: z\n .boolean()\n .describe(\"True for round trip totals, false for one-way totals.\"),\n FareLineItemID: z\n .string()\n .describe(\"Comma-separated list of fare line item IDs (e.g., '1,2,3').\"),\n Quantity: z\n .string()\n .describe(\n \"Comma-separated list of quantities matching FareLineItemID order (e.g., '2,1,0'). Values must be >= 0.\"\n ),\n })\n .describe(\n \"Input parameters for calculating fare totals with selected line items and quantities.\"\n );\n\nexport type FareTotalsByTripDateAndRouteInput = z.infer<\n typeof fareTotalsByTripDateAndRouteInputSchema\n>;\n","/**\n * @fileoverview Output schemas for WSF Fares API FareTotals endpoint\n *\n * These schemas define the response structures for WSF Fares API FareTotals endpoint.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const fareTotalTypeSchema = z\n .union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)])\n .describe(\n \"Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total.\"\n );\n\nexport type FareTotalType = z.infer<typeof fareTotalTypeSchema>;\n\nexport const fareTotalSchema = z\n .object({\n TotalType: fareTotalTypeSchema.describe(\n \"Code indicating total type: 1 = Departing, 2 = Return, 3 = Either (direction independent), 4 = Grand Total.\"\n ),\n Description: z\n .string()\n .nullable()\n .describe(\n \"Display name of the fare total (e.g., 'Anacortes to Friday Harbor', 'Grand Total'), or null if unavailable.\"\n ),\n BriefDescription: z\n .string()\n .nullable()\n .describe(\n \"Short string representation of total type (e.g., 'Depart', 'Either', 'Total'), or null if unavailable.\"\n ),\n Amount: z\n .number()\n .describe(\"Total fare amount in dollars for this total type.\"),\n })\n .describe(\"Fare total breakdown with type, description, and amount.\");\n\nexport type FareTotal = z.infer<typeof fareTotalSchema>;\n","/**\n * @fileoverview Input schemas for WSF Fares API TerminalCombo endpoints\n *\n * These schemas define the input parameters for WSF Fares API TerminalCombo endpoints.\n * Note: AccessCode is handled separately and is not included in these schemas.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const terminalComboInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n DepartingTerminalID: z\n .number()\n .describe(\"Numeric ID of the departing terminal.\"),\n ArrivingTerminalID: z\n .number()\n .describe(\"Numeric ID of the arriving terminal.\"),\n })\n .describe(\n \"Input parameters for retrieving fare collection description for a terminal combination.\"\n );\n\nexport type TerminalComboInput = z.infer<typeof terminalComboInputSchema>;\n\nexport const terminalComboFaresVerboseInputSchema = z\n .object({\n TripDate: z\n .string()\n .describe(\n \"Trip date in YYYY-MM-DD format. Must be within valid date range.\"\n ),\n })\n .describe(\n \"Input parameters for retrieving fare collection descriptions for all terminal combinations.\"\n );\n\nexport type TerminalComboFaresVerboseInput = z.infer<\n typeof terminalComboFaresVerboseInputSchema\n>;\n","/**\n * @fileoverview Input schemas for WSF Fares API ValidDateRange endpoint\n *\n * These schemas define the input parameters for WSF Fares API ValidDateRange endpoint.\n * Note: AccessCode is handled separately and is not included in these schemas.\n */\n\nimport { z } from \"@/shared/zod\";\n\nexport const faresValidDateRangeInputSchema = z\n .object({})\n .describe(\n \"Input parameters for retrieving the validity date range for fares data.\"\n );\n\nexport type FaresValidDateRangeInput = z.infer<\n typeof faresValidDateRangeInputSchema\n>;\n"]}