Skip to content

Commit

Permalink
refactor: remove deprecated mobility data queries and related code
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Nov 19, 2024
1 parent 6e21ce4 commit b3c0c33
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 682 deletions.
71 changes: 0 additions & 71 deletions src/data/mobility.json

This file was deleted.

18 changes: 0 additions & 18 deletions src/queries/bus.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/queries/charging.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/queries/parking.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/queries/train.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { deleteUniversitySport } from '@/mutations/university-sports/delete'
import { upsertUniversitySport } from '@/mutations/university-sports/upsert'
import { bus } from '@/queries/bus'
import { charging } from '@/queries/charging'
import { clEvents } from '@/queries/cl-events'
import { food } from '@/queries/food'
import { parking } from '@/queries/parking'
import { sports } from '@/queries/sports'
import { train } from '@/queries/train'
import { GraphQLScalarType, Kind } from 'graphql'
import {
DateTimeResolver,
Expand Down Expand Up @@ -56,12 +52,8 @@ const LocationInput = new GraphQLScalarType({

export const resolvers = {
Query: {
charging,
parking,
food,
clEvents,
bus,
train,
appAnnouncements: appAnnouncementsQuery,
announcements: appAnnouncementsQuery,
universitySports: sports,
Expand Down
72 changes: 0 additions & 72 deletions src/schema/enums.gql
Original file line number Diff line number Diff line change
Expand Up @@ -12,78 +12,6 @@ enum OriginalLanguage {
en
}

"""
Enum representing available bus stations to query.
"""
enum BusStation {
"""
Fruehlingstrasse
"""
fruehlingstrasse
"""
Hauptbahnhof
"""
hauptbahnhof
"""
Heydeckstrasse
"""
heydeckstrasse
"""
Hochschule
"""
hochschule
"""
Rathausplatz
"""
rathausplatz
"""
Rechbergstrasse
"""
rechbergstrasse
"""
Stadttheater
"""
stadttheater
"""
ZOB
"""
zob
"""
Kreuztor
"""
kreuztor
}

"""
Enum representing the different types of train stations.
"""
enum TrainStation {
"""
Ingolstadt Nord
"""
INGOLSTADT_NORD
"""
Ingolstadt Hbf
"""
INGOLSTADT_HBF
"""
Ingolstadt Audi
"""
INGOLSTADT_AUDI
"""
Ingolstadt Nord
"""
nord @deprecated(reason: "Use INGOLSTADT_NORD instead")
"""
Ingolstadt Hbf
"""
hbf @deprecated(reason: "Use INGOLSTADT_HBF instead")
"""
Ingolstadt Audi
"""
audi @deprecated(reason: "Use INGOLSTADT_AUDI instead")
}

"""
Enum representing the kind of user. This is used to target announcements to specific user groups.
"""
Expand Down
20 changes: 0 additions & 20 deletions src/schema/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ Root query
"""
type Query {
"""
Get the current parking data in Ingolstadt. This includes the main parking lots and garages near the university.
"""
parking: ParkingData!
@deprecated(reason: "Mobility dat is no longer available")
"""
Get the current electric vehicle charging stations in Ingolstadt. This includes the main charging stations near the university.
"""
charging: [ChargingStation!]!
@deprecated(reason: "Mobility data is no longer available")
"""
Get the meal plan for a specific restaurant.
"""
food(locations: [LocationInput!]!): FoodResponse!
Expand All @@ -21,16 +11,6 @@ type Query {
"""
clEvents: [ClEvent!]!
"""
Get the current bus departures at a specific station
"""
bus(station: BusStation!): [Bus!]!
@deprecated(reason: "Mobility data is no longer available")
"""
Get the current train departures at a specific station
"""
train(station: TrainStation!): [Train!]!
@deprecated(reason: "Mobility data is no longer available")
"""
Get the current announcements
"""
announcements: [Announcement!]!
Expand Down
Loading

0 comments on commit b3c0c33

Please sign in to comment.