fix: Patch UI queries to use camelCase Hasura relations
- Patch GraphQL queries in source code (charging.stations.ts, locations.ts, transactions.ts) - Rebuild Docker image with patched source - Fix missing Transactions.authorization relationship in Hasura - All 3 critical queries now work: GetChargingStations, LocationsList, TransactionList - UI rebuilt from scratch with Node.js 24.16.0
This commit is contained in:
@@ -25,7 +25,7 @@ export const CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
floorLevel
|
floorLevel
|
||||||
parkingRestrictions
|
parkingRestrictions
|
||||||
capabilities
|
capabilities
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -37,20 +37,20 @@ export const CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
evses: Evses {
|
evses: evses {
|
||||||
id
|
id
|
||||||
evseTypeId
|
evseTypeId
|
||||||
evseId
|
evseId
|
||||||
physicalReference
|
physicalReference
|
||||||
}
|
}
|
||||||
LatestStatusNotifications {
|
latestStatusNotifications {
|
||||||
id
|
id
|
||||||
stationId
|
stationId
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
statusNotificationId
|
statusNotificationId
|
||||||
updatedAt
|
updatedAt
|
||||||
createdAt
|
createdAt
|
||||||
StatusNotification {
|
statusNotification {
|
||||||
connectorId
|
connectorId
|
||||||
connectorStatus
|
connectorStatus
|
||||||
createdAt
|
createdAt
|
||||||
@@ -62,7 +62,7 @@ export const CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transactions: Transactions(where: { isActive: { _eq: true } }) {
|
transactions: transactions(where: { isActive: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
timeSpentCharging
|
timeSpentCharging
|
||||||
isActive
|
isActive
|
||||||
@@ -77,7 +77,7 @@ export const CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
connectors: Connectors {
|
connectors: connectors {
|
||||||
connectorId
|
connectorId
|
||||||
status
|
status
|
||||||
errorCode
|
errorCode
|
||||||
@@ -126,7 +126,7 @@ export const FAULTED_CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
locationId
|
locationId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -138,13 +138,13 @@ export const FAULTED_CHARGING_STATIONS_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
LatestStatusNotifications {
|
latestStatusNotifications {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
statusNotificationId
|
statusNotificationId
|
||||||
updatedAt
|
updatedAt
|
||||||
createdAt
|
createdAt
|
||||||
StatusNotification {
|
statusNotification {
|
||||||
connectorId
|
connectorId
|
||||||
connectorStatus
|
connectorStatus
|
||||||
createdAt
|
createdAt
|
||||||
@@ -211,7 +211,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
capabilities
|
capabilities
|
||||||
coordinates
|
coordinates
|
||||||
use16StatusNotification0
|
use16StatusNotification0
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -223,7 +223,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
evses: Evses {
|
evses: evses {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
stationId
|
stationId
|
||||||
@@ -233,7 +233,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
removed
|
removed
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
connectors: Connectors {
|
connectors: connectors {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
evseId
|
evseId
|
||||||
@@ -257,14 +257,14 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LatestStatusNotifications {
|
latestStatusNotifications {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
stationId
|
stationId
|
||||||
statusNotificationId
|
statusNotificationId
|
||||||
updatedAt
|
updatedAt
|
||||||
createdAt
|
createdAt
|
||||||
StatusNotification {
|
statusNotification {
|
||||||
connectorId
|
connectorId
|
||||||
connectorStatus
|
connectorStatus
|
||||||
createdAt
|
createdAt
|
||||||
@@ -276,7 +276,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transactions: Transactions(where: { isActive: { _eq: true } }) {
|
transactions: transactions(where: { isActive: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
stationId
|
stationId
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
@@ -292,7 +292,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
connectors: Connectors {
|
connectors: connectors {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
stationId
|
stationId
|
||||||
@@ -320,7 +320,7 @@ export const CHARGING_STATIONS_GET_QUERY = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS_AND_TRANSACTIONS = gql`
|
export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS_AND_TRANSACTIONS = gql`
|
||||||
query GetChargingStationsWithLocationAndLatestStatusNotificationsAndTransactions {
|
query GetChargingStationsWithLocationAndLatestStatusNotificationsAndtransactions {
|
||||||
ChargingStations {
|
ChargingStations {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
@@ -329,8 +329,8 @@ export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS
|
|||||||
locationId
|
locationId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
latestStatusNotifications: LatestStatusNotifications {
|
latestStatusNotifications: latestStatusNotifications {
|
||||||
statusNotification: StatusNotification {
|
statusNotification: statusNotification {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
evseId
|
evseId
|
||||||
@@ -341,7 +341,7 @@ export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transactions: Transactions(where: { isActive: { _eq: true } }) {
|
transactions: transactions(where: { isActive: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
timeSpentCharging
|
timeSpentCharging
|
||||||
isActive
|
isActive
|
||||||
@@ -355,7 +355,7 @@ export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -367,7 +367,7 @@ export const GET_CHARGING_STATIONS_WITH_LOCATION_AND_LATEST_STATUS_NOTIFICATIONS
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
evses: Evses {
|
evses: evses {
|
||||||
id
|
id
|
||||||
evseTypeId
|
evseTypeId
|
||||||
createdAt
|
createdAt
|
||||||
|
|||||||
@@ -32,20 +32,20 @@ export const LOCATIONS_LIST_QUERY = gql`
|
|||||||
protocol
|
protocol
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
evses: Evses {
|
evses: evses {
|
||||||
id
|
id
|
||||||
evseTypeId
|
evseTypeId
|
||||||
evseId
|
evseId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
LatestStatusNotifications {
|
latestStatusNotifications {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
statusNotificationId
|
statusNotificationId
|
||||||
updatedAt
|
updatedAt
|
||||||
createdAt
|
createdAt
|
||||||
StatusNotification {
|
statusNotification {
|
||||||
connectorId
|
connectorId
|
||||||
connectorStatus
|
connectorStatus
|
||||||
createdAt
|
createdAt
|
||||||
@@ -56,7 +56,7 @@ export const LOCATIONS_LIST_QUERY = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transactions: Transactions(where: { isActive: { _eq: true } }) {
|
transactions: transactions(where: { isActive: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
timeSpentCharging
|
timeSpentCharging
|
||||||
isActive
|
isActive
|
||||||
@@ -70,7 +70,7 @@ export const LOCATIONS_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
connectors: Connectors {
|
connectors: connectors {
|
||||||
connectorId
|
connectorId
|
||||||
status
|
status
|
||||||
errorCode
|
errorCode
|
||||||
@@ -123,13 +123,13 @@ export const LOCATIONS_GET_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
LatestStatusNotifications {
|
latestStatusNotifications {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
statusNotificationId
|
statusNotificationId
|
||||||
updatedAt
|
updatedAt
|
||||||
createdAt
|
createdAt
|
||||||
StatusNotification {
|
statusNotification {
|
||||||
connectorId
|
connectorId
|
||||||
connectorStatus
|
connectorStatus
|
||||||
createdAt
|
createdAt
|
||||||
@@ -140,7 +140,7 @@ export const LOCATIONS_GET_QUERY = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Transactions(where: { isActive: { _eq: true } }) {
|
transactions(where: { isActive: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
timeSpentCharging
|
timeSpentCharging
|
||||||
isActive
|
isActive
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const TRANSACTION_LIST_QUERY = gql`
|
|||||||
endTime
|
endTime
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -38,19 +38,19 @@ export const TRANSACTION_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
evse: Evse {
|
evse: evse {
|
||||||
id
|
id
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
connector: Connector {
|
connector: connector {
|
||||||
id
|
id
|
||||||
connectorId
|
connectorId
|
||||||
type
|
type
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
authorization: Authorization {
|
authorization: authorization {
|
||||||
id
|
id
|
||||||
idToken
|
idToken
|
||||||
idTokenType
|
idTokenType
|
||||||
@@ -66,7 +66,7 @@ export const TRANSACTION_LIST_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
chargingStation: ChargingStation {
|
chargingStation: chargingStation {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
isOnline
|
isOnline
|
||||||
@@ -74,7 +74,7 @@ export const TRANSACTION_LIST_QUERY = gql`
|
|||||||
locationId
|
locationId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -124,7 +124,7 @@ export const GET_TRANSACTIONS_FOR_AUTHORIZATION = gql`
|
|||||||
endTime
|
endTime
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
chargingStation: ChargingStation {
|
chargingStation: chargingStation {
|
||||||
id
|
id
|
||||||
ocppConnectionName
|
ocppConnectionName
|
||||||
isOnline
|
isOnline
|
||||||
@@ -132,7 +132,7 @@ export const GET_TRANSACTIONS_FOR_AUTHORIZATION = gql`
|
|||||||
locationId
|
locationId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -199,17 +199,17 @@ export const GET_TRANSACTION_LIST_FOR_STATION = gql`
|
|||||||
StartTransaction {
|
StartTransaction {
|
||||||
idTokenDatabaseId
|
idTokenDatabaseId
|
||||||
}
|
}
|
||||||
authorization: Authorization {
|
authorization: authorization {
|
||||||
id
|
id
|
||||||
idToken
|
idToken
|
||||||
}
|
}
|
||||||
chargingStation: ChargingStation {
|
chargingStation: chargingStation {
|
||||||
id
|
id
|
||||||
isOnline
|
isOnline
|
||||||
locationId
|
locationId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
@@ -267,7 +267,7 @@ export const TRANSACTION_GET_QUERY = gql`
|
|||||||
endTime
|
endTime
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
location: Location {
|
location: location {
|
||||||
name
|
name
|
||||||
address
|
address
|
||||||
city
|
city
|
||||||
@@ -278,14 +278,14 @@ export const TRANSACTION_GET_QUERY = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
evse: Evse {
|
evse: evse {
|
||||||
id
|
id
|
||||||
evseTypeId
|
evseTypeId
|
||||||
evseId
|
evseId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
connector: Connector {
|
connector: connector {
|
||||||
id
|
id
|
||||||
connectorId
|
connectorId
|
||||||
type
|
type
|
||||||
@@ -297,7 +297,7 @@ export const TRANSACTION_GET_QUERY = gql`
|
|||||||
pricePerKwh
|
pricePerKwh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
authorization: Authorization {
|
authorization: authorization {
|
||||||
id
|
id
|
||||||
idToken
|
idToken
|
||||||
idTokenType
|
idTokenType
|
||||||
|
|||||||
Reference in New Issue
Block a user