Skip to content

Commit

Permalink
Import new model-garage with CurrentEnergy (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs authored Feb 28, 2025
1 parent 8ec7723 commit 856085b
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/DIMO-Network/attestation-api v0.0.11
github.com/DIMO-Network/clickhouse-infra v0.0.3
github.com/DIMO-Network/fetch-api v0.0.6
github.com/DIMO-Network/model-garage v0.4.11
github.com/DIMO-Network/model-garage v0.4.13
github.com/DIMO-Network/shared v0.12.7
github.com/Khan/genqlient v0.7.0
github.com/auth0/go-jwt-middleware/v2 v2.2.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ github.com/DIMO-Network/clickhouse-infra v0.0.3 h1:B6/4IY9IxLcyydET14IjHUT+A5SDE
github.com/DIMO-Network/clickhouse-infra v0.0.3/go.mod h1:NtpQ1btkPzebDvpYYygeqiiBmJ/q5oJb/T/JWzUVRlk=
github.com/DIMO-Network/fetch-api v0.0.6 h1:kL5aYKKf+idUKWIgJNnnsurCol2C4n91gVPhiKDvEss=
github.com/DIMO-Network/fetch-api v0.0.6/go.mod h1:W51V8G+5kjxGVJzsRK6e4Hzoh8kS/T2kQmsTUqaDyqE=
github.com/DIMO-Network/model-garage v0.4.11 h1:y6J4zbx0bGZXPYOKsOaEGfzAebv7GJh+VPNXX7gYwHU=
github.com/DIMO-Network/model-garage v0.4.11/go.mod h1:qDCcVsJ//KfYNwElttRCJmwywZnWLp55RwSc0jFKAXI=
github.com/DIMO-Network/model-garage v0.4.13 h1:Cva3gb49EwiNNsGSl4uVy8H1WE+w7DYE3ArZLPZ1NyA=
github.com/DIMO-Network/model-garage v0.4.13/go.mod h1:N4Tm1X7fU2IewHDfLhmx5aQqOnbxrC4LuhPBZccc25s=
github.com/DIMO-Network/shared v0.12.7 h1:6H8Pngxn2zXxhh/y34UHxCXBI6JGWCBr1Bpuczz57UQ=
github.com/DIMO-Network/shared v0.12.7/go.mod h1:lDHUKwwT2LW6Zvd42Nb33dXklRNTmfyOlbUNx2dQfGY=
github.com/DIMO-Network/yaml v0.1.0 h1:KQ3oKHUZETchR6Pxbmmol3e4ewrPv/q8cEwqxfwyZbU=
Expand Down
279 changes: 279 additions & 0 deletions internal/graph/generated.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions internal/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions internal/graph/model/signalSetter_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions internal/graph/signals_gen.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions schema/signals_gen.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,15 @@ extend type SignalAggregations {
agg: FloatAggregation!
): Float @requiresAllOfPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryStateOfChargeCurrent", forceResolver: true) @isSignal @hasAggregation

"""
Physical state of charge of high voltage battery expressed in kWh.
Unit: 'kWh'
Required Privileges: [VEHICLE_NON_LOCATION_DATA]
"""
powertrainTractionBatteryStateOfChargeCurrentEnergy(
agg: FloatAggregation!
): Float @requiresAllOfPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryStateOfChargeCurrentEnergy", forceResolver: true) @isSignal @hasAggregation

"""
Current average temperature of the battery cells.
Unit: 'celsius'
Expand Down Expand Up @@ -970,6 +979,13 @@ extend type SignalCollection {
"""
powertrainTractionBatteryStateOfChargeCurrent: SignalFloat @requiresAllOfPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryStateOfChargeCurrent") @isSignal

"""
Physical state of charge of high voltage battery expressed in kWh.
Unit: 'kWh'
Required Privileges: [VEHICLE_NON_LOCATION_DATA]
"""
powertrainTractionBatteryStateOfChargeCurrentEnergy: SignalFloat @requiresAllOfPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryStateOfChargeCurrentEnergy") @isSignal

"""
Current average temperature of the battery cells.
Unit: 'celsius'
Expand Down

0 comments on commit 856085b

Please sign in to comment.