Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/objects/createCancellation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createCancellation(cancellation: DBCancellation): Cancellation {
const cancellationData: CancellationDataType | null = cancellation.data || null

return {
id: cancellation.id,
id: cancellation.id.toString(),
routeId: cancellation.route_id,
direction: getDirection(cancellation.direction_id),
departureDate: cancellation.start_date,
Expand Down
2 changes: 1 addition & 1 deletion src/schema/Alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const Alerts = gql`
}

type Cancellation {
id: Int!
id: ID!
routeId: String!
direction: Direction!
departureDate: Date!
Expand Down
8 changes: 4 additions & 4 deletions src/types/generated/resolver-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export type AreaEventsFilterInput = {

export type Cancellation = {
__typename?: 'Cancellation'
id: Scalars['Int']
id: Scalars['ID']
routeId: Scalars['String']
direction: Scalars['Direction']
departureDate: Scalars['Date']
Expand Down Expand Up @@ -744,9 +744,9 @@ export type QueryJourneysByBboxAndRouteIdArgs = {
date: Scalars['Date']
routeId: Scalars['String']
direction: Scalars['String']
speedFilter: Scalars['String']
filters?: Maybe<AreaEventsFilterInput>
unsignedEvents?: Maybe<Scalars['Boolean']>
speedFilter: Scalars['String']
}

export type QueryUnsignedVehicleEventsArgs = {
Expand Down Expand Up @@ -1216,7 +1216,7 @@ export type CancellationResolvers<
ContextType = any,
ParentType extends ResolversParentTypes['Cancellation'] = ResolversParentTypes['Cancellation']
> = {
id?: Resolver<ResolversTypes['Int'], ParentType, ContextType>
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>
routeId?: Resolver<ResolversTypes['String'], ParentType, ContextType>
direction?: Resolver<ResolversTypes['Direction'], ParentType, ContextType>
departureDate?: Resolver<ResolversTypes['Date'], ParentType, ContextType>
Expand Down Expand Up @@ -1793,7 +1793,7 @@ export type QueryResolvers<
ContextType,
RequireFields<
QueryJourneysByBboxAndRouteIdArgs,
'minTime' | 'maxTime' | 'bbox' | 'date' | 'routeId' | 'speedFilter'
'minTime' | 'maxTime' | 'bbox' | 'date' | 'routeId' | 'direction' | 'speedFilter'
>
>
unsignedVehicleEvents?: Resolver<
Expand Down
4 changes: 2 additions & 2 deletions src/types/generated/schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export type AreaEventsFilterInput = {

export type Cancellation = {
__typename?: 'Cancellation'
id: Scalars['Int']
id: Scalars['ID']
routeId: Scalars['String']
direction: Scalars['Direction']
departureDate: Scalars['Date']
Expand Down Expand Up @@ -740,9 +740,9 @@ export type QueryJourneysByBboxAndRouteIdArgs = {
date: Scalars['Date']
routeId: Scalars['String']
direction: Scalars['String']
speedFilter: Scalars['String']
filters?: Maybe<AreaEventsFilterInput>
unsignedEvents?: Maybe<Scalars['Boolean']>
speedFilter: Scalars['String']
}

export type QueryUnsignedVehicleEventsArgs = {
Expand Down
Loading