diff --git a/go.mod b/go.mod index 3cd075f..2958866 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,11 @@ module github.com/DIMO-Network/telemetry-api go 1.23 require ( - github.com/99designs/gqlgen v0.17.55 + github.com/99designs/gqlgen v0.17.56 github.com/ClickHouse/clickhouse-go/v2 v2.30.0 github.com/DIMO-Network/attestation-api v0.0.11 github.com/DIMO-Network/clickhouse-infra v0.0.3 - github.com/DIMO-Network/model-garage v0.3.4 + github.com/DIMO-Network/model-garage v0.4.2 github.com/DIMO-Network/nameindexer v0.0.11 github.com/DIMO-Network/shared v0.12.1 github.com/Khan/genqlient v0.7.0 @@ -20,7 +20,7 @@ require ( github.com/prometheus/client_golang v1.20.5 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 - github.com/vektah/gqlparser/v2 v2.5.17 + github.com/vektah/gqlparser/v2 v2.5.19 github.com/volatiletech/sqlboiler/v4 v4.16.2 go.uber.org/mock v0.5.0 ) @@ -66,6 +66,7 @@ require ( github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.3.0 // indirect + github.com/go-viper/mapstructure/v2 v2.2.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/uuid v1.6.0 // indirect @@ -81,7 +82,6 @@ require ( github.com/mattn/go-runewidth v0.0.16 // indirect github.com/mdelapenya/tlscert v0.1.0 // indirect github.com/mfridman/interpolate v0.0.2 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect github.com/moby/patternmatcher v0.6.0 // indirect github.com/moby/sys/sequential v0.5.0 // indirect @@ -134,9 +134,9 @@ require ( golang.org/x/crypto v0.28.0 // indirect golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/net v0.30.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.9.0 // indirect + golang.org/x/sys v0.27.0 // indirect + golang.org/x/text v0.20.0 // indirect golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect diff --git a/go.sum b/go.sum index c562332..66b0ee5 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/99designs/gqlgen v0.17.55 h1:3vzrNWYyzSZjGDFo68e5j9sSauLxfKvLp+6ioRokVtM= -github.com/99designs/gqlgen v0.17.55/go.mod h1:3Bq768f8hgVPGZxL8aY9MaYmbxa6llPM/qu1IGH1EJo= +github.com/99designs/gqlgen v0.17.56 h1:+J42ARAHvnysH6klO9Wq+tCsGF32cpAgU3SyF0VRJtI= +github.com/99designs/gqlgen v0.17.56/go.mod h1:rmB6vLvtL8uf9F9w0/irJ5alBkD8DJvj35ET31BKbtY= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= @@ -78,8 +78,8 @@ github.com/DIMO-Network/attestation-api v0.0.11 h1:LWZmrQSsmAwSD6ew7t12ioBdC6h/x github.com/DIMO-Network/attestation-api v0.0.11/go.mod h1:sxb0ooOdbNXlv4wd6g/sPiflDyVKL4uODmc/uNq59bE= github.com/DIMO-Network/clickhouse-infra v0.0.3 h1:B6/4IY9IxLcyydET14IjHUT+A5SDEis7p//DoFzrMk4= github.com/DIMO-Network/clickhouse-infra v0.0.3/go.mod h1:NtpQ1btkPzebDvpYYygeqiiBmJ/q5oJb/T/JWzUVRlk= -github.com/DIMO-Network/model-garage v0.3.4 h1:uwvvw0gT8TyqS+EJ6csdu+MFSOzKbBNqaPPJnq2k0Ek= -github.com/DIMO-Network/model-garage v0.3.4/go.mod h1:w8TaTi9XJ33R4wh/AYfbKUJBBVYy5E+Ayc4CmDfPcYA= +github.com/DIMO-Network/model-garage v0.4.2 h1:TF+RNC1n1Y58QSdzmKaf5REixdariAP4tqHihzjSe70= +github.com/DIMO-Network/model-garage v0.4.2/go.mod h1:SXaBHFFARooOEoaV1wFaOC1K0LMt0bovkILsFXoUQTg= github.com/DIMO-Network/nameindexer v0.0.11 h1:VmonlyW98BSIX7c4hwlRqpzIBLlyMby4x5WvzvANbCA= github.com/DIMO-Network/nameindexer v0.0.11/go.mod h1:Hd+vs7PCqSIdAdkcHprdqQjsMED5fuiHP6TNKdqUajs= github.com/DIMO-Network/shared v0.12.1 h1:vYnXZSZKR3tzixXreTAuDx9OFe37m7Xzoacx9C5+UAM= @@ -296,6 +296,8 @@ github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= +github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofiber/fiber/v2 v2.52.5 h1:tWoP1MJQjGEe4GB5TUGOi7P2E0ZMMRx5ZTG4rT+yGMo= github.com/gofiber/fiber/v2 v2.52.5/go.mod h1:KEOE+cXMhXG0zHc9d8+E38hoX+ZN7bhOtgeF2oT6jrQ= @@ -532,7 +534,6 @@ github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eI github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= @@ -733,8 +734,8 @@ github.com/valyala/fasthttp v1.55.0 h1:Zkefzgt6a7+bVKHnu/YaYSOPfNYNisSVBo/unVCf8 github.com/valyala/fasthttp v1.55.0/go.mod h1:NkY9JtkrpPKmgwV3HTaS2HWaJss9RSIsRVfcxxoHiOM= github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -github.com/vektah/gqlparser/v2 v2.5.17 h1:9At7WblLV7/36nulgekUgIaqHZWn5hxqluxrxGUhOmI= -github.com/vektah/gqlparser/v2 v2.5.17/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= +github.com/vektah/gqlparser/v2 v2.5.19 h1:bhCPCX1D4WWzCDvkPl4+TP1N8/kLrWnp43egplt7iSg= +github.com/vektah/gqlparser/v2 v2.5.19/go.mod h1:y7kvl5bBlDeuWIvLtA9849ncyvx6/lj06RsMrEjVy3U= github.com/volatiletech/inflect v0.0.1 h1:2a6FcMQyhmPZcLa+uet3VJ8gLn/9svWhJxJYwvE8KsU= github.com/volatiletech/inflect v0.0.1/go.mod h1:IBti31tG6phkHitLlr5j7shC5SOo//x0AjDzaJU1PLA= github.com/volatiletech/null/v8 v8.1.2 h1:kiTiX1PpwvuugKwfvUNX/SU/5A2KGZMXfGD0DUHdKEI= @@ -942,8 +943,8 @@ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= +golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1042,8 +1043,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= @@ -1057,8 +1058,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= +golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1328,7 +1329,6 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/graph/base.resolvers.go b/internal/graph/base.resolvers.go index a10cebb..e3ae4dc 100644 --- a/internal/graph/base.resolvers.go +++ b/internal/graph/base.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen version v0.17.56 import ( "context" diff --git a/internal/graph/device_activity.resolvers.go b/internal/graph/device_activity.resolvers.go index a474ba5..12547cb 100644 --- a/internal/graph/device_activity.resolvers.go +++ b/internal/graph/device_activity.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen version v0.17.56 import ( "context" diff --git a/internal/graph/generated.go b/internal/graph/generated.go index 5bcef57..f9a3b52 100644 --- a/internal/graph/generated.go +++ b/internal/graph/generated.go @@ -76,123 +76,131 @@ type ComplexityRoot struct { } SignalAggregations struct { - AngularVelocityYaw func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow1WheelLeftSpeed func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow1WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow1WheelRightSpeed func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow1WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow2WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int - ChassisAxleRow2WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int - CurrentLocationAltitude func(childComplexity int, agg model.FloatAggregation) int - CurrentLocationIsRedacted func(childComplexity int, agg model.FloatAggregation) int - CurrentLocationLatitude func(childComplexity int, agg model.FloatAggregation) int - CurrentLocationLongitude func(childComplexity int, agg model.FloatAggregation) int - DimoAftermarketHdop func(childComplexity int, agg model.FloatAggregation) int - DimoAftermarketNsat func(childComplexity int, agg model.FloatAggregation) int - DimoAftermarketSsid func(childComplexity int, agg model.StringAggregation) int - DimoAftermarketWPAState func(childComplexity int, agg model.StringAggregation) int - ExteriorAirTemperature func(childComplexity int, agg model.FloatAggregation) int - LowVoltageBatteryCurrentVoltage func(childComplexity int, agg model.FloatAggregation) int - ObdBarometricPressure func(childComplexity int, agg model.FloatAggregation) int - ObdCommandedEgr func(childComplexity int, agg model.FloatAggregation) int - ObdCommandedEvap func(childComplexity int, agg model.FloatAggregation) int - ObdDistanceSinceDTCClear func(childComplexity int, agg model.FloatAggregation) int - ObdDistanceWithMil func(childComplexity int, agg model.FloatAggregation) int - ObdEngineLoad func(childComplexity int, agg model.FloatAggregation) int - ObdFuelPressure func(childComplexity int, agg model.FloatAggregation) int - ObdIntakeTemp func(childComplexity int, agg model.FloatAggregation) int - ObdLongTermFuelTrim1 func(childComplexity int, agg model.FloatAggregation) int - ObdMap func(childComplexity int, agg model.FloatAggregation) int - ObdO2WRSensor1Voltage func(childComplexity int, agg model.FloatAggregation) int - ObdO2WRSensor2Voltage func(childComplexity int, agg model.FloatAggregation) int - ObdRunTime func(childComplexity int, agg model.FloatAggregation) int - ObdShortTermFuelTrim1 func(childComplexity int, agg model.FloatAggregation) int - ObdWarmupsSinceDTCClear func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineEct func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineEngineOilLevel func(childComplexity int, agg model.StringAggregation) int - PowertrainCombustionEngineEngineOilRelativeLevel func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineMaf func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineSpeed func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineTorque func(childComplexity int, agg model.FloatAggregation) int - PowertrainCombustionEngineTps func(childComplexity int, agg model.FloatAggregation) int - PowertrainFuelSystemAbsoluteLevel func(childComplexity int, agg model.FloatAggregation) int - PowertrainFuelSystemRelativeLevel func(childComplexity int, agg model.FloatAggregation) int - PowertrainFuelSystemSupportedFuelTypes func(childComplexity int, agg model.StringAggregation) int - PowertrainRange func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryChargingChargeLimit func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryChargingIsCharging func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryCurrentPower func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryCurrentVoltage func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryGrossCapacity func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int, agg model.FloatAggregation) int - PowertrainTractionBatteryTemperatureAverage func(childComplexity int, agg model.FloatAggregation) int - PowertrainTransmissionCurrentGear func(childComplexity int, agg model.FloatAggregation) int - PowertrainTransmissionTemperature func(childComplexity int, agg model.FloatAggregation) int - PowertrainTransmissionTravelledDistance func(childComplexity int, agg model.FloatAggregation) int - PowertrainType func(childComplexity int, agg model.StringAggregation) int - ServiceDistanceToService func(childComplexity int, agg model.FloatAggregation) int - Speed func(childComplexity int, agg model.FloatAggregation) int - Timestamp func(childComplexity int) int + AngularVelocityYaw func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow1WheelLeftSpeed func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow1WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow1WheelRightSpeed func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow1WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow2WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int + ChassisAxleRow2WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int + CurrentLocationAltitude func(childComplexity int, agg model.FloatAggregation) int + CurrentLocationIsRedacted func(childComplexity int, agg model.FloatAggregation) int + CurrentLocationLatitude func(childComplexity int, agg model.FloatAggregation) int + CurrentLocationLongitude func(childComplexity int, agg model.FloatAggregation) int + DimoAftermarketHdop func(childComplexity int, agg model.FloatAggregation) int + DimoAftermarketNsat func(childComplexity int, agg model.FloatAggregation) int + DimoAftermarketSsid func(childComplexity int, agg model.StringAggregation) int + DimoAftermarketWPAState func(childComplexity int, agg model.StringAggregation) int + ExteriorAirTemperature func(childComplexity int, agg model.FloatAggregation) int + LowVoltageBatteryCurrentVoltage func(childComplexity int, agg model.FloatAggregation) int + ObdBarometricPressure func(childComplexity int, agg model.FloatAggregation) int + ObdCommandedEgr func(childComplexity int, agg model.FloatAggregation) int + ObdCommandedEvap func(childComplexity int, agg model.FloatAggregation) int + ObdDistanceSinceDTCClear func(childComplexity int, agg model.FloatAggregation) int + ObdDistanceWithMil func(childComplexity int, agg model.FloatAggregation) int + ObdEngineLoad func(childComplexity int, agg model.FloatAggregation) int + ObdFuelPressure func(childComplexity int, agg model.FloatAggregation) int + ObdIntakeTemp func(childComplexity int, agg model.FloatAggregation) int + ObdLongTermFuelTrim1 func(childComplexity int, agg model.FloatAggregation) int + ObdMap func(childComplexity int, agg model.FloatAggregation) int + ObdO2WRSensor1Voltage func(childComplexity int, agg model.FloatAggregation) int + ObdO2WRSensor2Voltage func(childComplexity int, agg model.FloatAggregation) int + ObdRunTime func(childComplexity int, agg model.FloatAggregation) int + ObdShortTermFuelTrim1 func(childComplexity int, agg model.FloatAggregation) int + ObdWarmupsSinceDTCClear func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineDieselExhaustFluidCapacity func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineDieselExhaustFluidLevel func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineEct func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineEngineOilLevel func(childComplexity int, agg model.StringAggregation) int + PowertrainCombustionEngineEngineOilRelativeLevel func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineMaf func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineSpeed func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineTorque func(childComplexity int, agg model.FloatAggregation) int + PowertrainCombustionEngineTps func(childComplexity int, agg model.FloatAggregation) int + PowertrainFuelSystemAbsoluteLevel func(childComplexity int, agg model.FloatAggregation) int + PowertrainFuelSystemRelativeLevel func(childComplexity int, agg model.FloatAggregation) int + PowertrainFuelSystemSupportedFuelTypes func(childComplexity int, agg model.StringAggregation) int + PowertrainRange func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryChargingAddedEnergy func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryChargingChargeLimit func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryChargingIsCharging func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryCurrentPower func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryCurrentVoltage func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryGrossCapacity func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryRange func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int, agg model.FloatAggregation) int + PowertrainTractionBatteryTemperatureAverage func(childComplexity int, agg model.FloatAggregation) int + PowertrainTransmissionCurrentGear func(childComplexity int, agg model.FloatAggregation) int + PowertrainTransmissionTemperature func(childComplexity int, agg model.FloatAggregation) int + PowertrainTransmissionTravelledDistance func(childComplexity int, agg model.FloatAggregation) int + PowertrainType func(childComplexity int, agg model.StringAggregation) int + ServiceDistanceToService func(childComplexity int, agg model.FloatAggregation) int + Speed func(childComplexity int, agg model.FloatAggregation) int + Timestamp func(childComplexity int) int } SignalCollection struct { - AngularVelocityYaw func(childComplexity int) int - ChassisAxleRow1WheelLeftSpeed func(childComplexity int) int - ChassisAxleRow1WheelLeftTirePressure func(childComplexity int) int - ChassisAxleRow1WheelRightSpeed func(childComplexity int) int - ChassisAxleRow1WheelRightTirePressure func(childComplexity int) int - ChassisAxleRow2WheelLeftTirePressure func(childComplexity int) int - ChassisAxleRow2WheelRightTirePressure func(childComplexity int) int - CurrentLocationAltitude func(childComplexity int) int - CurrentLocationIsRedacted func(childComplexity int) int - CurrentLocationLatitude func(childComplexity int) int - CurrentLocationLongitude func(childComplexity int) int - DIMOAftermarketHDOP func(childComplexity int) int - DIMOAftermarketNSAT func(childComplexity int) int - DIMOAftermarketSSID func(childComplexity int) int - DIMOAftermarketWPAState func(childComplexity int) int - ExteriorAirTemperature func(childComplexity int) int - LastSeen func(childComplexity int) int - LowVoltageBatteryCurrentVoltage func(childComplexity int) int - OBDBarometricPressure func(childComplexity int) int - OBDCommandedEGR func(childComplexity int) int - OBDCommandedEVAP func(childComplexity int) int - OBDDistanceSinceDTCClear func(childComplexity int) int - OBDDistanceWithMIL func(childComplexity int) int - OBDEngineLoad func(childComplexity int) int - OBDFuelPressure func(childComplexity int) int - OBDIntakeTemp func(childComplexity int) int - OBDLongTermFuelTrim1 func(childComplexity int) int - OBDMAP func(childComplexity int) int - OBDO2WRSensor1Voltage func(childComplexity int) int - OBDO2WRSensor2Voltage func(childComplexity int) int - OBDRunTime func(childComplexity int) int - OBDShortTermFuelTrim1 func(childComplexity int) int - OBDWarmupsSinceDTCClear func(childComplexity int) int - PowertrainCombustionEngineECT func(childComplexity int) int - PowertrainCombustionEngineEngineOilLevel func(childComplexity int) int - PowertrainCombustionEngineEngineOilRelativeLevel func(childComplexity int) int - PowertrainCombustionEngineMAF func(childComplexity int) int - PowertrainCombustionEngineSpeed func(childComplexity int) int - PowertrainCombustionEngineTPS func(childComplexity int) int - PowertrainCombustionEngineTorque func(childComplexity int) int - PowertrainFuelSystemAbsoluteLevel func(childComplexity int) int - PowertrainFuelSystemRelativeLevel func(childComplexity int) int - PowertrainFuelSystemSupportedFuelTypes func(childComplexity int) int - PowertrainRange func(childComplexity int) int - PowertrainTractionBatteryChargingChargeLimit func(childComplexity int) int - PowertrainTractionBatteryChargingIsCharging func(childComplexity int) int - PowertrainTractionBatteryCurrentPower func(childComplexity int) int - PowertrainTractionBatteryCurrentVoltage func(childComplexity int) int - PowertrainTractionBatteryGrossCapacity func(childComplexity int) int - PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int) int - PowertrainTractionBatteryTemperatureAverage func(childComplexity int) int - PowertrainTransmissionCurrentGear func(childComplexity int) int - PowertrainTransmissionTemperature func(childComplexity int) int - PowertrainTransmissionTravelledDistance func(childComplexity int) int - PowertrainType func(childComplexity int) int - ServiceDistanceToService func(childComplexity int) int - Speed func(childComplexity int) int + AngularVelocityYaw func(childComplexity int) int + ChassisAxleRow1WheelLeftSpeed func(childComplexity int) int + ChassisAxleRow1WheelLeftTirePressure func(childComplexity int) int + ChassisAxleRow1WheelRightSpeed func(childComplexity int) int + ChassisAxleRow1WheelRightTirePressure func(childComplexity int) int + ChassisAxleRow2WheelLeftTirePressure func(childComplexity int) int + ChassisAxleRow2WheelRightTirePressure func(childComplexity int) int + CurrentLocationAltitude func(childComplexity int) int + CurrentLocationIsRedacted func(childComplexity int) int + CurrentLocationLatitude func(childComplexity int) int + CurrentLocationLongitude func(childComplexity int) int + DIMOAftermarketHDOP func(childComplexity int) int + DIMOAftermarketNSAT func(childComplexity int) int + DIMOAftermarketSSID func(childComplexity int) int + DIMOAftermarketWPAState func(childComplexity int) int + ExteriorAirTemperature func(childComplexity int) int + LastSeen func(childComplexity int) int + LowVoltageBatteryCurrentVoltage func(childComplexity int) int + OBDBarometricPressure func(childComplexity int) int + OBDCommandedEGR func(childComplexity int) int + OBDCommandedEVAP func(childComplexity int) int + OBDDistanceSinceDTCClear func(childComplexity int) int + OBDDistanceWithMIL func(childComplexity int) int + OBDEngineLoad func(childComplexity int) int + OBDFuelPressure func(childComplexity int) int + OBDIntakeTemp func(childComplexity int) int + OBDLongTermFuelTrim1 func(childComplexity int) int + OBDMAP func(childComplexity int) int + OBDO2WRSensor1Voltage func(childComplexity int) int + OBDO2WRSensor2Voltage func(childComplexity int) int + OBDRunTime func(childComplexity int) int + OBDShortTermFuelTrim1 func(childComplexity int) int + OBDWarmupsSinceDTCClear func(childComplexity int) int + PowertrainCombustionEngineDieselExhaustFluidCapacity func(childComplexity int) int + PowertrainCombustionEngineDieselExhaustFluidLevel func(childComplexity int) int + PowertrainCombustionEngineECT func(childComplexity int) int + PowertrainCombustionEngineEngineOilLevel func(childComplexity int) int + PowertrainCombustionEngineEngineOilRelativeLevel func(childComplexity int) int + PowertrainCombustionEngineMAF func(childComplexity int) int + PowertrainCombustionEngineSpeed func(childComplexity int) int + PowertrainCombustionEngineTPS func(childComplexity int) int + PowertrainCombustionEngineTorque func(childComplexity int) int + PowertrainFuelSystemAbsoluteLevel func(childComplexity int) int + PowertrainFuelSystemRelativeLevel func(childComplexity int) int + PowertrainFuelSystemSupportedFuelTypes func(childComplexity int) int + PowertrainRange func(childComplexity int) int + PowertrainTractionBatteryChargingAddedEnergy func(childComplexity int) int + PowertrainTractionBatteryChargingChargeLimit func(childComplexity int) int + PowertrainTractionBatteryChargingIsCharging func(childComplexity int) int + PowertrainTractionBatteryCurrentPower func(childComplexity int) int + PowertrainTractionBatteryCurrentVoltage func(childComplexity int) int + PowertrainTractionBatteryGrossCapacity func(childComplexity int) int + PowertrainTractionBatteryRange func(childComplexity int) int + PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int) int + PowertrainTractionBatteryTemperatureAverage func(childComplexity int) int + PowertrainTransmissionCurrentGear func(childComplexity int) int + PowertrainTransmissionTemperature func(childComplexity int) int + PowertrainTransmissionTravelledDistance func(childComplexity int) int + PowertrainType func(childComplexity int) int + ServiceDistanceToService func(childComplexity int) int + Speed func(childComplexity int) int } SignalFloat struct { @@ -259,6 +267,8 @@ type SignalAggregationsResolver interface { ObdRunTime(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) ObdShortTermFuelTrim1(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) ObdWarmupsSinceDTCClear(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) + PowertrainCombustionEngineDieselExhaustFluidCapacity(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) + PowertrainCombustionEngineDieselExhaustFluidLevel(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainCombustionEngineEct(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainCombustionEngineEngineOilLevel(ctx context.Context, obj *model.SignalAggregations, agg model.StringAggregation) (*string, error) PowertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) @@ -270,11 +280,13 @@ type SignalAggregationsResolver interface { PowertrainFuelSystemRelativeLevel(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainFuelSystemSupportedFuelTypes(ctx context.Context, obj *model.SignalAggregations, agg model.StringAggregation) (*string, error) PowertrainRange(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) + PowertrainTractionBatteryChargingAddedEnergy(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryChargingChargeLimit(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryChargingIsCharging(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryCurrentPower(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryCurrentVoltage(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryGrossCapacity(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) + PowertrainTractionBatteryRange(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTractionBatteryTemperatureAverage(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) PowertrainTransmissionCurrentGear(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) @@ -802,6 +814,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalAggregations.ObdWarmupsSinceDTCClear(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainCombustionEngineDieselExhaustFluidCapacity": + if e.complexity.SignalAggregations.PowertrainCombustionEngineDieselExhaustFluidCapacity == nil { + break + } + + args, err := ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SignalAggregations.PowertrainCombustionEngineDieselExhaustFluidCapacity(childComplexity, args["agg"].(model.FloatAggregation)), true + + case "SignalAggregations.powertrainCombustionEngineDieselExhaustFluidLevel": + if e.complexity.SignalAggregations.PowertrainCombustionEngineDieselExhaustFluidLevel == nil { + break + } + + args, err := ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SignalAggregations.PowertrainCombustionEngineDieselExhaustFluidLevel(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainCombustionEngineECT": if e.complexity.SignalAggregations.PowertrainCombustionEngineEct == nil { break @@ -934,6 +970,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalAggregations.PowertrainRange(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainTractionBatteryChargingAddedEnergy": + if e.complexity.SignalAggregations.PowertrainTractionBatteryChargingAddedEnergy == nil { + break + } + + args, err := ec.field_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SignalAggregations.PowertrainTractionBatteryChargingAddedEnergy(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainTractionBatteryChargingChargeLimit": if e.complexity.SignalAggregations.PowertrainTractionBatteryChargingChargeLimit == nil { break @@ -994,6 +1042,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalAggregations.PowertrainTractionBatteryGrossCapacity(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainTractionBatteryRange": + if e.complexity.SignalAggregations.PowertrainTractionBatteryRange == nil { + break + } + + args, err := ec.field_SignalAggregations_powertrainTractionBatteryRange_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.SignalAggregations.PowertrainTractionBatteryRange(childComplexity, args["agg"].(model.FloatAggregation)), true + case "SignalAggregations.powertrainTractionBatteryStateOfChargeCurrent": if e.complexity.SignalAggregations.PowertrainTractionBatteryStateOfChargeCurrent == nil { break @@ -1328,6 +1388,20 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalCollection.OBDWarmupsSinceDTCClear(childComplexity), true + case "SignalCollection.powertrainCombustionEngineDieselExhaustFluidCapacity": + if e.complexity.SignalCollection.PowertrainCombustionEngineDieselExhaustFluidCapacity == nil { + break + } + + return e.complexity.SignalCollection.PowertrainCombustionEngineDieselExhaustFluidCapacity(childComplexity), true + + case "SignalCollection.powertrainCombustionEngineDieselExhaustFluidLevel": + if e.complexity.SignalCollection.PowertrainCombustionEngineDieselExhaustFluidLevel == nil { + break + } + + return e.complexity.SignalCollection.PowertrainCombustionEngineDieselExhaustFluidLevel(childComplexity), true + case "SignalCollection.powertrainCombustionEngineECT": if e.complexity.SignalCollection.PowertrainCombustionEngineECT == nil { break @@ -1405,6 +1479,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalCollection.PowertrainRange(childComplexity), true + case "SignalCollection.powertrainTractionBatteryChargingAddedEnergy": + if e.complexity.SignalCollection.PowertrainTractionBatteryChargingAddedEnergy == nil { + break + } + + return e.complexity.SignalCollection.PowertrainTractionBatteryChargingAddedEnergy(childComplexity), true + case "SignalCollection.powertrainTractionBatteryChargingChargeLimit": if e.complexity.SignalCollection.PowertrainTractionBatteryChargingChargeLimit == nil { break @@ -1440,6 +1521,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SignalCollection.PowertrainTractionBatteryGrossCapacity(childComplexity), true + case "SignalCollection.powertrainTractionBatteryRange": + if e.complexity.SignalCollection.PowertrainTractionBatteryRange == nil { + break + } + + return e.complexity.SignalCollection.PowertrainTractionBatteryRange(childComplexity), true + case "SignalCollection.powertrainTractionBatteryStateOfChargeCurrent": if e.complexity.SignalCollection.PowertrainTractionBatteryStateOfChargeCurrent == nil { break @@ -1592,15 +1680,15 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in } func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - rc := graphql.GetOperationContext(ctx) - ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} + opCtx := graphql.GetOperationContext(ctx) + ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputAftermarketDeviceBy, ec.unmarshalInputSignalFilter, ) first := true - switch rc.Operation.Operation { + switch opCtx.Operation.Operation { case ast.Query: return func(ctx context.Context) *graphql.Response { var response graphql.Response @@ -1608,7 +1696,7 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { if first { first = false ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap) - data = ec._Query(ctx, rc.Operation.SelectionSet) + data = ec._Query(ctx, opCtx.Operation.SelectionSet) } else { if atomic.LoadInt32(&ec.pendingDeferred) > 0 { result := <-ec.deferredResults @@ -2144,6 +2232,24 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDWarmupsSinceDTCClear", forceResolver: true) @isSignal @hasAggregation + """ + Capacity in liters of the Diesel Exhaust Fluid Tank. + Unit: 'l' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidCapacity( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidCapacity", forceResolver: true) @isSignal @hasAggregation + + """ + Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. + Unit: 'percent' Min: '0' Max: '100' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidLevel( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidLevel", forceResolver: true) @isSignal @hasAggregation + """ Engine coolant temperature. Unit: 'celsius' @@ -2241,6 +2347,15 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainRange", forceResolver: true) @isSignal @hasAggregation + """ + Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + Unit: 'kWh' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryChargingAddedEnergy( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryChargingAddedEnergy", forceResolver: true) @isSignal @hasAggregation + """ Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100' @@ -2285,6 +2400,15 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryGrossCapacity", forceResolver: true) @isSignal @hasAggregation + """ + Remaining range in meters using only battery. + Unit: 'm' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryRange( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryRange", forceResolver: true) @isSignal @hasAggregation + """ Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0' @@ -2488,6 +2612,7 @@ extend type SignalCollection { """ PID 2E - Commanded evaporative purge (EVAP) valve + Unit: 'percent' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdCommandedEVAP: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDCommandedEVAP") @isSignal @@ -2515,6 +2640,7 @@ extend type SignalCollection { """ PID 0A - Fuel pressure + Unit: 'kPa' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdFuelPressure: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDFuelPressure") @isSignal @@ -2542,12 +2668,14 @@ extend type SignalCollection { """ PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdO2WRSensor1Voltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDO2WRSensor1Voltage") @isSignal """ PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdO2WRSensor2Voltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDO2WRSensor2Voltage") @isSignal @@ -2572,6 +2700,20 @@ extend type SignalCollection { """ obdWarmupsSinceDTCClear: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDWarmupsSinceDTCClear") @isSignal + """ + Capacity in liters of the Diesel Exhaust Fluid Tank. + Unit: 'l' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidCapacity: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidCapacity") @isSignal + + """ + Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. + Unit: 'percent' Min: '0' Max: '100' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidLevel: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidLevel") @isSignal + """ Engine coolant temperature. Unit: 'celsius' @@ -2615,6 +2757,7 @@ extend type SignalCollection { """ Current engine torque. Shall be reported as 0 during engine breaking. + Unit: 'Nm' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainCombustionEngineTorque: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineTorque") @isSignal @@ -2646,6 +2789,13 @@ extend type SignalCollection { """ powertrainRange: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainRange") @isSignal + """ + Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + Unit: 'kWh' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryChargingAddedEnergy: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryChargingAddedEnergy") @isSignal + """ Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100' @@ -2668,6 +2818,7 @@ extend type SignalCollection { """ Current Voltage of the battery. + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainTractionBatteryCurrentVoltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryCurrentVoltage") @isSignal @@ -2679,6 +2830,13 @@ extend type SignalCollection { """ powertrainTractionBatteryGrossCapacity: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryGrossCapacity") @isSignal + """ + Remaining range in meters using only battery. + Unit: 'm' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryRange: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryRange") @isSignal + """ Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0' @@ -2701,6 +2859,7 @@ extend type SignalCollection { """ The current gearbox temperature. + Unit: 'celsius' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainTransmissionTemperature: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTransmissionTemperature") @isSignal @@ -2720,6 +2879,7 @@ extend type SignalCollection { """ Remaining distance to service (of any kind). Negative values indicate service overdue. + Unit: 'km' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ serviceDistanceToService: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "ServiceDistanceToService") @isSignal @@ -4286,6 +4446,70 @@ func (ec *executionContext) field_SignalAggregations_obdWarmupsSinceDTCClear_arg return zeroVal, nil } +func (ec *executionContext) field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity_argsAgg(ctx, rawArgs) + if err != nil { + return nil, err + } + args["agg"] = arg0 + return args, nil +} +func (ec *executionContext) field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity_argsAgg( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.FloatAggregation, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["agg"] + if !ok { + var zeroVal model.FloatAggregation + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("agg")) + if tmp, ok := rawArgs["agg"]; ok { + return ec.unmarshalNFloatAggregation2githubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐFloatAggregation(ctx, tmp) + } + + var zeroVal model.FloatAggregation + return zeroVal, nil +} + +func (ec *executionContext) field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel_argsAgg(ctx, rawArgs) + if err != nil { + return nil, err + } + args["agg"] = arg0 + return args, nil +} +func (ec *executionContext) field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel_argsAgg( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.FloatAggregation, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["agg"] + if !ok { + var zeroVal model.FloatAggregation + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("agg")) + if tmp, ok := rawArgs["agg"]; ok { + return ec.unmarshalNFloatAggregation2githubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐFloatAggregation(ctx, tmp) + } + + var zeroVal model.FloatAggregation + return zeroVal, nil +} + func (ec *executionContext) field_SignalAggregations_powertrainCombustionEngineECT_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -4638,6 +4862,38 @@ func (ec *executionContext) field_SignalAggregations_powertrainRange_argsAgg( return zeroVal, nil } +func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy_argsAgg(ctx, rawArgs) + if err != nil { + return nil, err + } + args["agg"] = arg0 + return args, nil +} +func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy_argsAgg( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.FloatAggregation, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["agg"] + if !ok { + var zeroVal model.FloatAggregation + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("agg")) + if tmp, ok := rawArgs["agg"]; ok { + return ec.unmarshalNFloatAggregation2githubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐFloatAggregation(ctx, tmp) + } + + var zeroVal model.FloatAggregation + return zeroVal, nil +} + func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryChargingChargeLimit_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -4798,6 +5054,38 @@ func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryGr return zeroVal, nil } +func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryRange_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_SignalAggregations_powertrainTractionBatteryRange_argsAgg(ctx, rawArgs) + if err != nil { + return nil, err + } + args["agg"] = arg0 + return args, nil +} +func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryRange_argsAgg( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.FloatAggregation, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["agg"] + if !ok { + var zeroVal model.FloatAggregation + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("agg")) + if tmp, ok := rawArgs["agg"]; ok { + return ec.unmarshalNFloatAggregation2githubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐFloatAggregation(ctx, tmp) + } + + var zeroVal model.FloatAggregation + return zeroVal, nil +} + func (ec *executionContext) field_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -5499,6 +5787,10 @@ func (ec *executionContext) fieldContext_Query_signals(ctx context.Context, fiel return ec.fieldContext_SignalAggregations_obdShortTermFuelTrim1(ctx, field) case "obdWarmupsSinceDTCClear": return ec.fieldContext_SignalAggregations_obdWarmupsSinceDTCClear(ctx, field) + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + return ec.fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field) + case "powertrainCombustionEngineDieselExhaustFluidLevel": + return ec.fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field) case "powertrainCombustionEngineECT": return ec.fieldContext_SignalAggregations_powertrainCombustionEngineECT(ctx, field) case "powertrainCombustionEngineEngineOilLevel": @@ -5521,6 +5813,8 @@ func (ec *executionContext) fieldContext_Query_signals(ctx context.Context, fiel return ec.fieldContext_SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx, field) case "powertrainRange": return ec.fieldContext_SignalAggregations_powertrainRange(ctx, field) + case "powertrainTractionBatteryChargingAddedEnergy": + return ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy(ctx, field) case "powertrainTractionBatteryChargingChargeLimit": return ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx, field) case "powertrainTractionBatteryChargingIsCharging": @@ -5531,6 +5825,8 @@ func (ec *executionContext) fieldContext_Query_signals(ctx context.Context, fiel return ec.fieldContext_SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx, field) case "powertrainTractionBatteryGrossCapacity": return ec.fieldContext_SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx, field) + case "powertrainTractionBatteryRange": + return ec.fieldContext_SignalAggregations_powertrainTractionBatteryRange(ctx, field) case "powertrainTractionBatteryStateOfChargeCurrent": return ec.fieldContext_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx, field) case "powertrainTractionBatteryTemperatureAverage": @@ -5689,6 +5985,10 @@ func (ec *executionContext) fieldContext_Query_signalsLatest(ctx context.Context return ec.fieldContext_SignalCollection_obdShortTermFuelTrim1(ctx, field) case "obdWarmupsSinceDTCClear": return ec.fieldContext_SignalCollection_obdWarmupsSinceDTCClear(ctx, field) + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + return ec.fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field) + case "powertrainCombustionEngineDieselExhaustFluidLevel": + return ec.fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field) case "powertrainCombustionEngineECT": return ec.fieldContext_SignalCollection_powertrainCombustionEngineECT(ctx, field) case "powertrainCombustionEngineEngineOilLevel": @@ -5711,6 +6011,8 @@ func (ec *executionContext) fieldContext_Query_signalsLatest(ctx context.Context return ec.fieldContext_SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx, field) case "powertrainRange": return ec.fieldContext_SignalCollection_powertrainRange(ctx, field) + case "powertrainTractionBatteryChargingAddedEnergy": + return ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingAddedEnergy(ctx, field) case "powertrainTractionBatteryChargingChargeLimit": return ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx, field) case "powertrainTractionBatteryChargingIsCharging": @@ -5721,6 +6023,8 @@ func (ec *executionContext) fieldContext_Query_signalsLatest(ctx context.Context return ec.fieldContext_SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx, field) case "powertrainTractionBatteryGrossCapacity": return ec.fieldContext_SignalCollection_powertrainTractionBatteryGrossCapacity(ctx, field) + case "powertrainTractionBatteryRange": + return ec.fieldContext_SignalCollection_powertrainTractionBatteryRange(ctx, field) case "powertrainTractionBatteryStateOfChargeCurrent": return ec.fieldContext_SignalCollection_powertrainTractionBatteryStateOfChargeCurrent(ctx, field) case "powertrainTractionBatteryTemperatureAverage": @@ -9272,8 +9576,8 @@ func (ec *executionContext) fieldContext_SignalAggregations_obdWarmupsSinceDTCCl return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineECT(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field) if err != nil { return graphql.Null } @@ -9287,7 +9591,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineECT(ct resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEct(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineDieselExhaustFluidCapacity(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9341,7 +9645,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineECT(ct return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -9358,15 +9662,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineECT_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field) if err != nil { return graphql.Null } @@ -9380,31 +9684,31 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngine resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEngineOilLevel(rctx, obj, fc.Args["agg"].(model.StringAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineDieselExhaustFluidLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } directive3 := func(ctx context.Context) (interface{}, error) { if ec.directives.HasAggregation == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive hasAggregation is not implemented") } return ec.directives.HasAggregation(ctx, obj, directive2) @@ -9417,10 +9721,10 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngine if tmp == nil { return nil, nil } - if data, ok := tmp.(*string); ok { + if data, ok := tmp.(*float64); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -9429,19 +9733,19 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngine if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*float64) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Float does not have child fields") }, } defer func() { @@ -9451,15 +9755,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineEngineOilLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineECT(ctx, field) if err != nil { return graphql.Null } @@ -9473,7 +9777,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngine resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEngineOilRelativeLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEct(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9527,7 +9831,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngine return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -9544,15 +9848,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineECT_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineMAF(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx, field) if err != nil { return graphql.Null } @@ -9566,31 +9870,31 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineMAF(ct resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineMaf(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEngineOilLevel(rctx, obj, fc.Args["agg"].(model.StringAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } directive3 := func(ctx context.Context) (interface{}, error) { if ec.directives.HasAggregation == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive hasAggregation is not implemented") } return ec.directives.HasAggregation(ctx, obj, directive2) @@ -9603,10 +9907,10 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineMAF(ct if tmp == nil { return nil, nil } - if data, ok := tmp.(*float64); ok { + if data, ok := tmp.(*string); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -9615,19 +9919,19 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineMAF(ct if resTmp == nil { return graphql.Null } - res := resTmp.(*float64) + res := resTmp.(*string) fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } defer func() { @@ -9637,15 +9941,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineMAF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineEngineOilLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineSpeed(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx, field) if err != nil { return graphql.Null } @@ -9659,7 +9963,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineSpeed( resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineSpeed(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineEngineOilRelativeLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9713,7 +10017,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineSpeed( return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -9730,15 +10034,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineSpeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineEngineOilRelativeLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineTPS(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineMAF(ctx, field) if err != nil { return graphql.Null } @@ -9752,7 +10056,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTPS(ct resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineTps(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineMaf(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9806,7 +10110,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTPS(ct return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -9823,15 +10127,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineTPS_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineMAF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineTorque(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineSpeed(ctx, field) if err != nil { return graphql.Null } @@ -9845,7 +10149,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTorque resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainCombustionEngineTorque(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineSpeed(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9899,7 +10203,7 @@ func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTorque return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -9916,15 +10220,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustion } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineTorque_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineSpeed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineTPS(ctx, field) if err != nil { return graphql.Null } @@ -9938,7 +10242,7 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemAbsoluteLeve resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainFuelSystemAbsoluteLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineTps(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -9992,7 +10296,7 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemAbsoluteLeve return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10009,15 +10313,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystem } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemAbsoluteLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineTPS_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemRelativeLevel(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainCombustionEngineTorque(ctx, field) if err != nil { return graphql.Null } @@ -10031,7 +10335,7 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemRelativeLeve resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainFuelSystemRelativeLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainCombustionEngineTorque(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10085,7 +10389,7 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemRelativeLeve return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10102,15 +10406,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystem } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemRelativeLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainCombustionEngineTorque_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx, field) if err != nil { return graphql.Null } @@ -10124,31 +10428,31 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemSupportedFue resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainFuelSystemSupportedFuelTypes(rctx, obj, fc.Args["agg"].(model.StringAggregation)) + return ec.resolvers.SignalAggregations().PowertrainFuelSystemAbsoluteLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } directive3 := func(ctx context.Context) (interface{}, error) { if ec.directives.HasAggregation == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive hasAggregation is not implemented") } return ec.directives.HasAggregation(ctx, obj, directive2) @@ -10161,10 +10465,10 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemSupportedFue if tmp == nil { return nil, nil } - if data, ok := tmp.(*string); ok { + if data, ok := tmp.(*float64); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -10173,19 +10477,19 @@ func (ec *executionContext) _SignalAggregations_powertrainFuelSystemSupportedFue if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*float64) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Float does not have child fields") }, } defer func() { @@ -10195,15 +10499,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystem } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemSupportedFuelTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemAbsoluteLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainRange(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemRelativeLevel(ctx, field) if err != nil { return graphql.Null } @@ -10217,7 +10521,7 @@ func (ec *executionContext) _SignalAggregations_powertrainRange(ctx context.Cont resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainRange(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainFuelSystemRelativeLevel(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10271,7 +10575,7 @@ func (ec *executionContext) _SignalAggregations_powertrainRange(ctx context.Cont return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10288,15 +10592,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainRange(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemRelativeLevel_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx, field) if err != nil { return graphql.Null } @@ -10310,31 +10614,31 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargin resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryChargingChargeLimit(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainFuelSystemSupportedFuelTypes(rctx, obj, fc.Args["agg"].(model.StringAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } directive3 := func(ctx context.Context) (interface{}, error) { if ec.directives.HasAggregation == nil { - var zeroVal *float64 + var zeroVal *string return zeroVal, errors.New("directive hasAggregation is not implemented") } return ec.directives.HasAggregation(ctx, obj, directive2) @@ -10347,10 +10651,10 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargin if tmp == nil { return nil, nil } - if data, ok := tmp.(*float64); ok { + if data, ok := tmp.(*string); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -10359,19 +10663,19 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargin if resTmp == nil { return graphql.Null } - res := resTmp.(*float64) + res := resTmp.(*string) fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } defer func() { @@ -10381,15 +10685,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryChargingChargeLimit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainFuelSystemSupportedFuelTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainRange(ctx, field) if err != nil { return graphql.Null } @@ -10403,7 +10707,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargin resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryChargingIsCharging(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainRange(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10457,7 +10761,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargin return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10474,15 +10778,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryChargingIsCharging_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryCurrentPower(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargingAddedEnergy(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy(ctx, field) if err != nil { return graphql.Null } @@ -10496,7 +10800,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrent resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryCurrentPower(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryChargingAddedEnergy(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10550,7 +10854,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrent return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10567,15 +10871,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryCurrentPower_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryChargingAddedEnergy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx, field) if err != nil { return graphql.Null } @@ -10589,7 +10893,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrent resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryCurrentVoltage(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryChargingChargeLimit(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10643,7 +10947,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrent return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10660,15 +10964,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryCurrentVoltage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryChargingChargeLimit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx, field) if err != nil { return graphql.Null } @@ -10682,7 +10986,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryGrossCa resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryGrossCapacity(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryChargingIsCharging(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10736,7 +11040,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryGrossCa return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10753,15 +11057,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryGrossCapacity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryChargingIsCharging_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryCurrentPower(ctx, field) if err != nil { return graphql.Null } @@ -10775,7 +11079,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryStateOf resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryStateOfChargeCurrent(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryCurrentPower(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10829,7 +11133,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryStateOf return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10846,15 +11150,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryCurrentPower_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx, field) if err != nil { return graphql.Null } @@ -10868,7 +11172,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryTempera resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTractionBatteryTemperatureAverage(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryCurrentVoltage(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -10922,7 +11226,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryTempera return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -10939,15 +11243,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBa } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryTemperatureAverage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryCurrentVoltage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTransmissionCurrentGear(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionCurrentGear(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx, field) if err != nil { return graphql.Null } @@ -10961,7 +11265,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionCurrentGea resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTransmissionCurrentGear(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryGrossCapacity(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11015,7 +11319,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionCurrentGea return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionCurrentGear(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -11032,15 +11336,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionCurrentGear_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryGrossCapacity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTransmissionTemperature(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionTemperature(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryRange(ctx, field) if err != nil { return graphql.Null } @@ -11054,7 +11358,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionTemperatur resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTransmissionTemperature(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryRange(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11108,7 +11412,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionTemperatur return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionTemperature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryRange(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -11125,15 +11429,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionTemperature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryRange_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainTransmissionTravelledDistance(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionTravelledDistance(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx, field) if err != nil { return graphql.Null } @@ -11147,7 +11451,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionTravelledD resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainTransmissionTravelledDistance(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryStateOfChargeCurrent(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11201,7 +11505,7 @@ func (ec *executionContext) _SignalAggregations_powertrainTransmissionTravelledD return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionTravelledDistance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -11218,15 +11522,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionTravelledDistance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryStateOfChargeCurrent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_powertrainType(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_powertrainType(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx, field) if err != nil { return graphql.Null } @@ -11240,31 +11544,31 @@ func (ec *executionContext) _SignalAggregations_powertrainType(ctx context.Conte resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().PowertrainType(rctx, obj, fc.Args["agg"].(model.StringAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTractionBatteryTemperatureAverage(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } directive3 := func(ctx context.Context) (interface{}, error) { if ec.directives.HasAggregation == nil { - var zeroVal *string + var zeroVal *float64 return zeroVal, errors.New("directive hasAggregation is not implemented") } return ec.directives.HasAggregation(ctx, obj, directive2) @@ -11277,10 +11581,10 @@ func (ec *executionContext) _SignalAggregations_powertrainType(ctx context.Conte if tmp == nil { return nil, nil } - if data, ok := tmp.(*string); ok { + if data, ok := tmp.(*float64); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -11289,19 +11593,19 @@ func (ec *executionContext) _SignalAggregations_powertrainType(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*float64) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_powertrainType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTractionBatteryTemperatureAverage(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, IsMethod: true, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Float does not have child fields") }, } defer func() { @@ -11311,15 +11615,15 @@ func (ec *executionContext) fieldContext_SignalAggregations_powertrainType(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_powertrainType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTractionBatteryTemperatureAverage_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_serviceDistanceToService(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_serviceDistanceToService(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainTransmissionCurrentGear(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionCurrentGear(ctx, field) if err != nil { return graphql.Null } @@ -11333,7 +11637,7 @@ func (ec *executionContext) _SignalAggregations_serviceDistanceToService(ctx con resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().ServiceDistanceToService(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return ec.resolvers.SignalAggregations().PowertrainTransmissionCurrentGear(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11387,7 +11691,7 @@ func (ec *executionContext) _SignalAggregations_serviceDistanceToService(ctx con return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalAggregations_serviceDistanceToService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionCurrentGear(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalAggregations", Field: field, @@ -11404,15 +11708,764 @@ func (ec *executionContext) fieldContext_SignalAggregations_serviceDistanceToSer } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_serviceDistanceToService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionCurrentGear_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SignalAggregations_powertrainTransmissionTemperature(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionTemperature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.SignalAggregations().PowertrainTransmissionTemperature(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *float64 + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + directive3 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAggregation == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive hasAggregation is not implemented") + } + return ec.directives.HasAggregation(ctx, obj, directive2) + } + + tmp, err := directive3(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*float64); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*float64) + fc.Result = res + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionTemperature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalAggregations", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionTemperature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SignalAggregations_powertrainTransmissionTravelledDistance(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainTransmissionTravelledDistance(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.SignalAggregations().PowertrainTransmissionTravelledDistance(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *float64 + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + directive3 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAggregation == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive hasAggregation is not implemented") + } + return ec.directives.HasAggregation(ctx, obj, directive2) + } + + tmp, err := directive3(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*float64); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*float64) + fc.Result = res + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalAggregations_powertrainTransmissionTravelledDistance(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalAggregations", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SignalAggregations_powertrainTransmissionTravelledDistance_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _SignalAggregations_speed(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalAggregations_speed(ctx, field) +func (ec *executionContext) _SignalAggregations_powertrainType(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_powertrainType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.SignalAggregations().PowertrainType(rctx, obj, fc.Args["agg"].(model.StringAggregation)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *string + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *string + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *string + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + directive3 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAggregation == nil { + var zeroVal *string + return zeroVal, errors.New("directive hasAggregation is not implemented") + } + return ec.directives.HasAggregation(ctx, obj, directive2) + } + + tmp, err := directive3(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*string); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalAggregations_powertrainType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalAggregations", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SignalAggregations_powertrainType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SignalAggregations_serviceDistanceToService(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_serviceDistanceToService(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.SignalAggregations().ServiceDistanceToService(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *float64 + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + directive3 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAggregation == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive hasAggregation is not implemented") + } + return ec.directives.HasAggregation(ctx, obj, directive2) + } + + tmp, err := directive3(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*float64); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*float64) + fc.Result = res + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalAggregations_serviceDistanceToService(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalAggregations", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SignalAggregations_serviceDistanceToService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SignalAggregations_speed(ctx context.Context, field graphql.CollectedField, obj *model.SignalAggregations) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalAggregations_speed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.SignalAggregations().Speed(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *float64 + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + directive3 := func(ctx context.Context) (interface{}, error) { + if ec.directives.HasAggregation == nil { + var zeroVal *float64 + return zeroVal, errors.New("directive hasAggregation is not implemented") + } + return ec.directives.HasAggregation(ctx, obj, directive2) + } + + tmp, err := directive3(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*float64); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*float64) + fc.Result = res + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalAggregations_speed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalAggregations", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Float does not have child fields") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_SignalAggregations_speed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _SignalCollection_lastSeen(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_lastSeen(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastSeen, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalCollection_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalCollection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SignalCollection_angularVelocityYaw(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_angularVelocityYaw(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AngularVelocityYaw, nil + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *model.SignalFloat + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + + tmp, err := directive2(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*model.SignalFloat); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SignalFloat) + fc.Result = res + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalCollection_angularVelocityYaw(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalCollection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "timestamp": + return ec.fieldContext_SignalFloat_timestamp(ctx, field) + case "value": + return ec.fieldContext_SignalFloat_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChassisAxleRow1WheelLeftSpeed, nil + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *model.SignalFloat + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + + tmp, err := directive2(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*model.SignalFloat); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SignalFloat) + fc.Result = res + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLeftSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalCollection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "timestamp": + return ec.fieldContext_SignalFloat_timestamp(ctx, field) + case "value": + return ec.fieldContext_SignalFloat_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelLeftTirePressure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + directive0 := func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ChassisAxleRow1WheelLeftTirePressure, nil + } + + directive1 := func(ctx context.Context) (interface{}, error) { + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + if err != nil { + var zeroVal *model.SignalFloat + return zeroVal, err + } + if ec.directives.RequiresPrivileges == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive requiresPrivileges is not implemented") + } + return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) + } + directive2 := func(ctx context.Context) (interface{}, error) { + if ec.directives.IsSignal == nil { + var zeroVal *model.SignalFloat + return zeroVal, errors.New("directive isSignal is not implemented") + } + return ec.directives.IsSignal(ctx, obj, directive1) + } + + tmp, err := directive2(rctx) + if err != nil { + return nil, graphql.ErrorOnPath(ctx, err) + } + if tmp == nil { + return nil, nil + } + if data, ok := tmp.(*model.SignalFloat); ok { + return data, nil + } + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.SignalFloat) + fc.Result = res + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLeftTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SignalCollection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "timestamp": + return ec.fieldContext_SignalFloat_timestamp(ctx, field) + case "value": + return ec.fieldContext_SignalFloat_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelRightSpeed(ctx, field) if err != nil { return graphql.Null } @@ -11426,99 +12479,40 @@ func (ec *executionContext) _SignalAggregations_speed(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.SignalAggregations().Speed(rctx, obj, fc.Args["agg"].(model.FloatAggregation)) + return obj.ChassisAxleRow1WheelRightSpeed, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *float64 + var zeroVal *model.SignalFloat return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *float64 + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *float64 + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) } - directive3 := func(ctx context.Context) (interface{}, error) { - if ec.directives.HasAggregation == nil { - var zeroVal *float64 - return zeroVal, errors.New("directive hasAggregation is not implemented") - } - return ec.directives.HasAggregation(ctx, obj, directive2) - } - tmp, err := directive3(rctx) + tmp, err := directive2(rctx) if err != nil { return nil, graphql.ErrorOnPath(ctx, err) } if tmp == nil { return nil, nil } - if data, ok := tmp.(*float64); ok { + if data, ok := tmp.(*model.SignalFloat); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *float64`, tmp) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*float64) - fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SignalAggregations_speed(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignalAggregations", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_SignalAggregations_speed_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SignalCollection_lastSeen(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_lastSeen(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastSeen, nil + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -11527,26 +12521,32 @@ func (ec *executionContext) _SignalCollection_lastSeen(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(*model.SignalFloat) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRightSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "timestamp": + return ec.fieldContext_SignalFloat_timestamp(ctx, field) + case "value": + return ec.fieldContext_SignalFloat_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_angularVelocityYaw(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_angularVelocityYaw(ctx, field) +func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelRightTirePressure(ctx, field) if err != nil { return graphql.Null } @@ -11560,7 +12560,7 @@ func (ec *executionContext) _SignalCollection_angularVelocityYaw(ctx context.Con resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AngularVelocityYaw, nil + return obj.ChassisAxleRow1WheelRightTirePressure, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11607,7 +12607,7 @@ func (ec *executionContext) _SignalCollection_angularVelocityYaw(ctx context.Con return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_angularVelocityYaw(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRightTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -11626,8 +12626,8 @@ func (ec *executionContext) fieldContext_SignalCollection_angularVelocityYaw(_ c return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx, field) +func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelLeftTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow2WheelLeftTirePressure(ctx, field) if err != nil { return graphql.Null } @@ -11641,7 +12641,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow1WheelLeftSpeed, nil + return obj.ChassisAxleRow2WheelLeftTirePressure, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11688,7 +12688,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftSpeed(ctx return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLeftSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelLeftTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -11707,8 +12707,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLe return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelLeftTirePressure(ctx, field) +func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelRightTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_chassisAxleRow2WheelRightTirePressure(ctx, field) if err != nil { return graphql.Null } @@ -11722,7 +12722,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftTirePressu resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow1WheelLeftTirePressure, nil + return obj.ChassisAxleRow2WheelRightTirePressure, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -11769,7 +12769,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelLeftTirePressu return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLeftTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelRightTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -11788,8 +12788,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelLe return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelRightSpeed(ctx, field) +func (ec *executionContext) _SignalCollection_currentLocationAltitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_currentLocationAltitude(ctx, field) if err != nil { return graphql.Null } @@ -11803,11 +12803,11 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightSpeed(ctx resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow1WheelRightSpeed, nil + return obj.CurrentLocationAltitude, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -11850,7 +12850,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightSpeed(ctx return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRightSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_currentLocationAltitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -11869,8 +12869,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRi return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow1WheelRightTirePressure(ctx, field) +func (ec *executionContext) _SignalCollection_currentLocationIsRedacted(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_currentLocationIsRedacted(ctx, field) if err != nil { return graphql.Null } @@ -11884,11 +12884,11 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightTirePress resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow1WheelRightTirePressure, nil + return obj.CurrentLocationIsRedacted, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -11931,7 +12931,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow1WheelRightTirePress return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRightTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_currentLocationIsRedacted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -11950,8 +12950,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow1WheelRi return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelLeftTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow2WheelLeftTirePressure(ctx, field) +func (ec *executionContext) _SignalCollection_currentLocationLatitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_currentLocationLatitude(ctx, field) if err != nil { return graphql.Null } @@ -11965,11 +12965,11 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelLeftTirePressu resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow2WheelLeftTirePressure, nil + return obj.CurrentLocationLatitude, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -12012,7 +13012,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelLeftTirePressu return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelLeftTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_currentLocationLatitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12031,8 +13031,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelLe return fc, nil } -func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelRightTirePressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_chassisAxleRow2WheelRightTirePressure(ctx, field) +func (ec *executionContext) _SignalCollection_currentLocationLongitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_currentLocationLongitude(ctx, field) if err != nil { return graphql.Null } @@ -12046,11 +13046,11 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelRightTirePress resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ChassisAxleRow2WheelRightTirePressure, nil + return obj.CurrentLocationLongitude, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -12093,7 +13093,7 @@ func (ec *executionContext) _SignalCollection_chassisAxleRow2WheelRightTirePress return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelRightTirePressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_currentLocationLongitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12112,8 +13112,8 @@ func (ec *executionContext) fieldContext_SignalCollection_chassisAxleRow2WheelRi return fc, nil } -func (ec *executionContext) _SignalCollection_currentLocationAltitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_currentLocationAltitude(ctx, field) +func (ec *executionContext) _SignalCollection_dimoAftermarketHDOP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_dimoAftermarketHDOP(ctx, field) if err != nil { return graphql.Null } @@ -12127,11 +13127,11 @@ func (ec *executionContext) _SignalCollection_currentLocationAltitude(ctx contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CurrentLocationAltitude, nil + return obj.DIMOAftermarketHDOP, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -12174,7 +13174,7 @@ func (ec *executionContext) _SignalCollection_currentLocationAltitude(ctx contex return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_currentLocationAltitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketHDOP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12193,8 +13193,8 @@ func (ec *executionContext) fieldContext_SignalCollection_currentLocationAltitud return fc, nil } -func (ec *executionContext) _SignalCollection_currentLocationIsRedacted(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_currentLocationIsRedacted(ctx, field) +func (ec *executionContext) _SignalCollection_dimoAftermarketNSAT(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_dimoAftermarketNSAT(ctx, field) if err != nil { return graphql.Null } @@ -12208,11 +13208,11 @@ func (ec *executionContext) _SignalCollection_currentLocationIsRedacted(ctx cont resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CurrentLocationIsRedacted, nil + return obj.DIMOAftermarketNSAT, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { var zeroVal *model.SignalFloat return zeroVal, err @@ -12255,7 +13255,7 @@ func (ec *executionContext) _SignalCollection_currentLocationIsRedacted(ctx cont return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_currentLocationIsRedacted(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketNSAT(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12274,8 +13274,8 @@ func (ec *executionContext) fieldContext_SignalCollection_currentLocationIsRedac return fc, nil } -func (ec *executionContext) _SignalCollection_currentLocationLatitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_currentLocationLatitude(ctx, field) +func (ec *executionContext) _SignalCollection_dimoAftermarketSSID(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_dimoAftermarketSSID(ctx, field) if err != nil { return graphql.Null } @@ -12289,24 +13289,24 @@ func (ec *executionContext) _SignalCollection_currentLocationLatitude(ctx contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CurrentLocationLatitude, nil + return obj.DIMOAftermarketSSID, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -12319,10 +13319,10 @@ func (ec *executionContext) _SignalCollection_currentLocationLatitude(ctx contex if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalFloat); ok { + if data, ok := tmp.(*model.SignalString); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -12331,12 +13331,12 @@ func (ec *executionContext) _SignalCollection_currentLocationLatitude(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalFloat) + res := resTmp.(*model.SignalString) fc.Result = res - return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) + return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_currentLocationLatitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketSSID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12345,18 +13345,18 @@ func (ec *executionContext) fieldContext_SignalCollection_currentLocationLatitud Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalFloat_timestamp(ctx, field) + return ec.fieldContext_SignalString_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalFloat_value(ctx, field) + return ec.fieldContext_SignalString_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_currentLocationLongitude(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_currentLocationLongitude(ctx, field) +func (ec *executionContext) _SignalCollection_dimoAftermarketWPAState(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_dimoAftermarketWPAState(ctx, field) if err != nil { return graphql.Null } @@ -12370,24 +13370,24 @@ func (ec *executionContext) _SignalCollection_currentLocationLongitude(ctx conte resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CurrentLocationLongitude, nil + return obj.DIMOAftermarketWPAState, nil } directive1 := func(ctx context.Context) (interface{}, error) { - privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_ALL_TIME_LOCATION"}) + privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -12400,10 +13400,10 @@ func (ec *executionContext) _SignalCollection_currentLocationLongitude(ctx conte if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalFloat); ok { + if data, ok := tmp.(*model.SignalString); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -12412,12 +13412,12 @@ func (ec *executionContext) _SignalCollection_currentLocationLongitude(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalFloat) + res := resTmp.(*model.SignalString) fc.Result = res - return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) + return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_currentLocationLongitude(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketWPAState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12426,18 +13426,18 @@ func (ec *executionContext) fieldContext_SignalCollection_currentLocationLongitu Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalFloat_timestamp(ctx, field) + return ec.fieldContext_SignalString_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalFloat_value(ctx, field) + return ec.fieldContext_SignalString_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_dimoAftermarketHDOP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_dimoAftermarketHDOP(ctx, field) +func (ec *executionContext) _SignalCollection_exteriorAirTemperature(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_exteriorAirTemperature(ctx, field) if err != nil { return graphql.Null } @@ -12451,7 +13451,7 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketHDOP(ctx context.Co resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DIMOAftermarketHDOP, nil + return obj.ExteriorAirTemperature, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -12498,7 +13498,7 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketHDOP(ctx context.Co return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketHDOP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_exteriorAirTemperature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12517,8 +13517,8 @@ func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketHDOP(_ return fc, nil } -func (ec *executionContext) _SignalCollection_dimoAftermarketNSAT(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_dimoAftermarketNSAT(ctx, field) +func (ec *executionContext) _SignalCollection_lowVoltageBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_lowVoltageBatteryCurrentVoltage(ctx, field) if err != nil { return graphql.Null } @@ -12532,7 +13532,7 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketNSAT(ctx context.Co resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DIMOAftermarketNSAT, nil + return obj.LowVoltageBatteryCurrentVoltage, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -12579,7 +13579,7 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketNSAT(ctx context.Co return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketNSAT(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_lowVoltageBatteryCurrentVoltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12598,8 +13598,8 @@ func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketNSAT(_ return fc, nil } -func (ec *executionContext) _SignalCollection_dimoAftermarketSSID(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_dimoAftermarketSSID(ctx, field) +func (ec *executionContext) _SignalCollection_obdBarometricPressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdBarometricPressure(ctx, field) if err != nil { return graphql.Null } @@ -12613,24 +13613,24 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketSSID(ctx context.Co resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DIMOAftermarketSSID, nil + return obj.OBDBarometricPressure, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -12643,10 +13643,10 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketSSID(ctx context.Co if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalString); ok { + if data, ok := tmp.(*model.SignalFloat); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -12655,12 +13655,12 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketSSID(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalString) + res := resTmp.(*model.SignalFloat) fc.Result = res - return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketSSID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdBarometricPressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12669,18 +13669,18 @@ func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketSSID(_ Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalString_timestamp(ctx, field) + return ec.fieldContext_SignalFloat_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalString_value(ctx, field) + return ec.fieldContext_SignalFloat_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_dimoAftermarketWPAState(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_dimoAftermarketWPAState(ctx, field) +func (ec *executionContext) _SignalCollection_obdCommandedEGR(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdCommandedEGR(ctx, field) if err != nil { return graphql.Null } @@ -12694,24 +13694,24 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketWPAState(ctx contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DIMOAftermarketWPAState, nil + return obj.OBDCommandedEGR, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -12724,10 +13724,10 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketWPAState(ctx contex if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalString); ok { + if data, ok := tmp.(*model.SignalFloat); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -12736,12 +13736,12 @@ func (ec *executionContext) _SignalCollection_dimoAftermarketWPAState(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalString) + res := resTmp.(*model.SignalFloat) fc.Result = res - return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketWPAState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEGR(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12750,18 +13750,18 @@ func (ec *executionContext) fieldContext_SignalCollection_dimoAftermarketWPAStat Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalString_timestamp(ctx, field) + return ec.fieldContext_SignalFloat_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalString_value(ctx, field) + return ec.fieldContext_SignalFloat_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_exteriorAirTemperature(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_exteriorAirTemperature(ctx, field) +func (ec *executionContext) _SignalCollection_obdCommandedEVAP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdCommandedEVAP(ctx, field) if err != nil { return graphql.Null } @@ -12775,7 +13775,7 @@ func (ec *executionContext) _SignalCollection_exteriorAirTemperature(ctx context resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExteriorAirTemperature, nil + return obj.OBDCommandedEVAP, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -12822,7 +13822,7 @@ func (ec *executionContext) _SignalCollection_exteriorAirTemperature(ctx context return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_exteriorAirTemperature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEVAP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12841,8 +13841,8 @@ func (ec *executionContext) fieldContext_SignalCollection_exteriorAirTemperature return fc, nil } -func (ec *executionContext) _SignalCollection_lowVoltageBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_lowVoltageBatteryCurrentVoltage(ctx, field) +func (ec *executionContext) _SignalCollection_obdDistanceSinceDTCClear(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdDistanceSinceDTCClear(ctx, field) if err != nil { return graphql.Null } @@ -12856,7 +13856,7 @@ func (ec *executionContext) _SignalCollection_lowVoltageBatteryCurrentVoltage(ct resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LowVoltageBatteryCurrentVoltage, nil + return obj.OBDDistanceSinceDTCClear, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -12903,7 +13903,7 @@ func (ec *executionContext) _SignalCollection_lowVoltageBatteryCurrentVoltage(ct return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_lowVoltageBatteryCurrentVoltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdDistanceSinceDTCClear(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -12922,8 +13922,8 @@ func (ec *executionContext) fieldContext_SignalCollection_lowVoltageBatteryCurre return fc, nil } -func (ec *executionContext) _SignalCollection_obdBarometricPressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdBarometricPressure(ctx, field) +func (ec *executionContext) _SignalCollection_obdDistanceWithMIL(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdDistanceWithMIL(ctx, field) if err != nil { return graphql.Null } @@ -12937,7 +13937,7 @@ func (ec *executionContext) _SignalCollection_obdBarometricPressure(ctx context. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDBarometricPressure, nil + return obj.OBDDistanceWithMIL, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -12984,7 +13984,7 @@ func (ec *executionContext) _SignalCollection_obdBarometricPressure(ctx context. return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdBarometricPressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdDistanceWithMIL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13003,8 +14003,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdBarometricPressure( return fc, nil } -func (ec *executionContext) _SignalCollection_obdCommandedEGR(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdCommandedEGR(ctx, field) +func (ec *executionContext) _SignalCollection_obdEngineLoad(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdEngineLoad(ctx, field) if err != nil { return graphql.Null } @@ -13018,7 +14018,7 @@ func (ec *executionContext) _SignalCollection_obdCommandedEGR(ctx context.Contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDCommandedEGR, nil + return obj.OBDEngineLoad, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13065,7 +14065,7 @@ func (ec *executionContext) _SignalCollection_obdCommandedEGR(ctx context.Contex return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEGR(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdEngineLoad(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13084,8 +14084,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEGR(_ cont return fc, nil } -func (ec *executionContext) _SignalCollection_obdCommandedEVAP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdCommandedEVAP(ctx, field) +func (ec *executionContext) _SignalCollection_obdFuelPressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdFuelPressure(ctx, field) if err != nil { return graphql.Null } @@ -13099,7 +14099,7 @@ func (ec *executionContext) _SignalCollection_obdCommandedEVAP(ctx context.Conte resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDCommandedEVAP, nil + return obj.OBDFuelPressure, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13146,7 +14146,7 @@ func (ec *executionContext) _SignalCollection_obdCommandedEVAP(ctx context.Conte return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEVAP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdFuelPressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13165,8 +14165,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdCommandedEVAP(_ con return fc, nil } -func (ec *executionContext) _SignalCollection_obdDistanceSinceDTCClear(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdDistanceSinceDTCClear(ctx, field) +func (ec *executionContext) _SignalCollection_obdIntakeTemp(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdIntakeTemp(ctx, field) if err != nil { return graphql.Null } @@ -13180,7 +14180,7 @@ func (ec *executionContext) _SignalCollection_obdDistanceSinceDTCClear(ctx conte resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDDistanceSinceDTCClear, nil + return obj.OBDIntakeTemp, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13227,7 +14227,7 @@ func (ec *executionContext) _SignalCollection_obdDistanceSinceDTCClear(ctx conte return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdDistanceSinceDTCClear(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdIntakeTemp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13246,8 +14246,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdDistanceSinceDTCCle return fc, nil } -func (ec *executionContext) _SignalCollection_obdDistanceWithMIL(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdDistanceWithMIL(ctx, field) +func (ec *executionContext) _SignalCollection_obdLongTermFuelTrim1(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdLongTermFuelTrim1(ctx, field) if err != nil { return graphql.Null } @@ -13261,7 +14261,7 @@ func (ec *executionContext) _SignalCollection_obdDistanceWithMIL(ctx context.Con resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDDistanceWithMIL, nil + return obj.OBDLongTermFuelTrim1, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13308,7 +14308,7 @@ func (ec *executionContext) _SignalCollection_obdDistanceWithMIL(ctx context.Con return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdDistanceWithMIL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdLongTermFuelTrim1(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13327,8 +14327,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdDistanceWithMIL(_ c return fc, nil } -func (ec *executionContext) _SignalCollection_obdEngineLoad(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdEngineLoad(ctx, field) +func (ec *executionContext) _SignalCollection_obdMAP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdMAP(ctx, field) if err != nil { return graphql.Null } @@ -13342,7 +14342,7 @@ func (ec *executionContext) _SignalCollection_obdEngineLoad(ctx context.Context, resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDEngineLoad, nil + return obj.OBDMAP, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13389,7 +14389,7 @@ func (ec *executionContext) _SignalCollection_obdEngineLoad(ctx context.Context, return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdEngineLoad(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdMAP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13408,8 +14408,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdEngineLoad(_ contex return fc, nil } -func (ec *executionContext) _SignalCollection_obdFuelPressure(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdFuelPressure(ctx, field) +func (ec *executionContext) _SignalCollection_obdO2WRSensor1Voltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdO2WRSensor1Voltage(ctx, field) if err != nil { return graphql.Null } @@ -13423,7 +14423,7 @@ func (ec *executionContext) _SignalCollection_obdFuelPressure(ctx context.Contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDFuelPressure, nil + return obj.OBDO2WRSensor1Voltage, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13470,7 +14470,7 @@ func (ec *executionContext) _SignalCollection_obdFuelPressure(ctx context.Contex return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdFuelPressure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor1Voltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13489,8 +14489,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdFuelPressure(_ cont return fc, nil } -func (ec *executionContext) _SignalCollection_obdIntakeTemp(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdIntakeTemp(ctx, field) +func (ec *executionContext) _SignalCollection_obdO2WRSensor2Voltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdO2WRSensor2Voltage(ctx, field) if err != nil { return graphql.Null } @@ -13504,7 +14504,7 @@ func (ec *executionContext) _SignalCollection_obdIntakeTemp(ctx context.Context, resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDIntakeTemp, nil + return obj.OBDO2WRSensor2Voltage, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13551,7 +14551,7 @@ func (ec *executionContext) _SignalCollection_obdIntakeTemp(ctx context.Context, return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdIntakeTemp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor2Voltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13570,8 +14570,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdIntakeTemp(_ contex return fc, nil } -func (ec *executionContext) _SignalCollection_obdLongTermFuelTrim1(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdLongTermFuelTrim1(ctx, field) +func (ec *executionContext) _SignalCollection_obdRunTime(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdRunTime(ctx, field) if err != nil { return graphql.Null } @@ -13585,7 +14585,7 @@ func (ec *executionContext) _SignalCollection_obdLongTermFuelTrim1(ctx context.C resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDLongTermFuelTrim1, nil + return obj.OBDRunTime, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13632,7 +14632,7 @@ func (ec *executionContext) _SignalCollection_obdLongTermFuelTrim1(ctx context.C return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdLongTermFuelTrim1(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdRunTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13651,8 +14651,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdLongTermFuelTrim1(_ return fc, nil } -func (ec *executionContext) _SignalCollection_obdMAP(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdMAP(ctx, field) +func (ec *executionContext) _SignalCollection_obdShortTermFuelTrim1(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdShortTermFuelTrim1(ctx, field) if err != nil { return graphql.Null } @@ -13666,7 +14666,7 @@ func (ec *executionContext) _SignalCollection_obdMAP(ctx context.Context, field resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDMAP, nil + return obj.OBDShortTermFuelTrim1, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13713,7 +14713,7 @@ func (ec *executionContext) _SignalCollection_obdMAP(ctx context.Context, field return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdMAP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdShortTermFuelTrim1(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13732,8 +14732,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdMAP(_ context.Conte return fc, nil } -func (ec *executionContext) _SignalCollection_obdO2WRSensor1Voltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdO2WRSensor1Voltage(ctx, field) +func (ec *executionContext) _SignalCollection_obdWarmupsSinceDTCClear(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_obdWarmupsSinceDTCClear(ctx, field) if err != nil { return graphql.Null } @@ -13747,7 +14747,7 @@ func (ec *executionContext) _SignalCollection_obdO2WRSensor1Voltage(ctx context. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDO2WRSensor1Voltage, nil + return obj.OBDWarmupsSinceDTCClear, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13794,7 +14794,7 @@ func (ec *executionContext) _SignalCollection_obdO2WRSensor1Voltage(ctx context. return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor1Voltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_obdWarmupsSinceDTCClear(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13813,8 +14813,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor1Voltage( return fc, nil } -func (ec *executionContext) _SignalCollection_obdO2WRSensor2Voltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdO2WRSensor2Voltage(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field) if err != nil { return graphql.Null } @@ -13828,7 +14828,7 @@ func (ec *executionContext) _SignalCollection_obdO2WRSensor2Voltage(ctx context. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDO2WRSensor2Voltage, nil + return obj.PowertrainCombustionEngineDieselExhaustFluidCapacity, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13875,7 +14875,7 @@ func (ec *executionContext) _SignalCollection_obdO2WRSensor2Voltage(ctx context. return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor2Voltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidCapacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13894,8 +14894,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdO2WRSensor2Voltage( return fc, nil } -func (ec *executionContext) _SignalCollection_obdRunTime(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdRunTime(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineDieselExhaustFluidLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field) if err != nil { return graphql.Null } @@ -13909,7 +14909,7 @@ func (ec *executionContext) _SignalCollection_obdRunTime(ctx context.Context, fi resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDRunTime, nil + return obj.PowertrainCombustionEngineDieselExhaustFluidLevel, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -13956,7 +14956,7 @@ func (ec *executionContext) _SignalCollection_obdRunTime(ctx context.Context, fi return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdRunTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineDieselExhaustFluidLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -13975,8 +14975,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdRunTime(_ context.C return fc, nil } -func (ec *executionContext) _SignalCollection_obdShortTermFuelTrim1(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdShortTermFuelTrim1(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineECT(ctx, field) if err != nil { return graphql.Null } @@ -13990,7 +14990,7 @@ func (ec *executionContext) _SignalCollection_obdShortTermFuelTrim1(ctx context. resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDShortTermFuelTrim1, nil + return obj.PowertrainCombustionEngineECT, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14037,7 +15037,7 @@ func (ec *executionContext) _SignalCollection_obdShortTermFuelTrim1(ctx context. return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdShortTermFuelTrim1(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineECT(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14056,8 +15056,8 @@ func (ec *executionContext) fieldContext_SignalCollection_obdShortTermFuelTrim1( return fc, nil } -func (ec *executionContext) _SignalCollection_obdWarmupsSinceDTCClear(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_obdWarmupsSinceDTCClear(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineEngineOilLevel(ctx, field) if err != nil { return graphql.Null } @@ -14071,24 +15071,24 @@ func (ec *executionContext) _SignalCollection_obdWarmupsSinceDTCClear(ctx contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OBDWarmupsSinceDTCClear, nil + return obj.PowertrainCombustionEngineEngineOilLevel, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -14101,10 +15101,10 @@ func (ec *executionContext) _SignalCollection_obdWarmupsSinceDTCClear(ctx contex if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalFloat); ok { + if data, ok := tmp.(*model.SignalString); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -14113,12 +15113,12 @@ func (ec *executionContext) _SignalCollection_obdWarmupsSinceDTCClear(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalFloat) + res := resTmp.(*model.SignalString) fc.Result = res - return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) + return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_obdWarmupsSinceDTCClear(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineEngineOilLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14127,18 +15127,18 @@ func (ec *executionContext) fieldContext_SignalCollection_obdWarmupsSinceDTCClea Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalFloat_timestamp(ctx, field) + return ec.fieldContext_SignalString_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalFloat_value(ctx, field) + return ec.fieldContext_SignalString_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineECT(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineECT(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(ctx, field) if err != nil { return graphql.Null } @@ -14152,7 +15152,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineECT(ctx resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineECT, nil + return obj.PowertrainCombustionEngineEngineOilRelativeLevel, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14199,7 +15199,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineECT(ctx return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineECT(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14218,8 +15218,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOilLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineEngineOilLevel(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineMAF(ctx, field) if err != nil { return graphql.Null } @@ -14233,24 +15233,24 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOi resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineEngineOilLevel, nil + return obj.PowertrainCombustionEngineMAF, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -14263,10 +15263,10 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOi if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalString); ok { + if data, ok := tmp.(*model.SignalFloat); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -14275,12 +15275,12 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOi if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalString) + res := resTmp.(*model.SignalFloat) fc.Result = res - return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineEngineOilLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineMAF(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14289,18 +15289,18 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalString_timestamp(ctx, field) + return ec.fieldContext_SignalFloat_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalString_value(ctx, field) + return ec.fieldContext_SignalFloat_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineSpeed(ctx, field) if err != nil { return graphql.Null } @@ -14314,7 +15314,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOi resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineEngineOilRelativeLevel, nil + return obj.PowertrainCombustionEngineSpeed, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14361,7 +15361,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineEngineOi return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineEngineOilRelativeLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14380,8 +15380,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineMAF(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineMAF(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineTPS(ctx, field) if err != nil { return graphql.Null } @@ -14395,7 +15395,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineMAF(ctx resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineMAF, nil + return obj.PowertrainCombustionEngineTPS, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14442,7 +15442,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineMAF(ctx return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineMAF(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineTPS(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14461,8 +15461,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineSpeed(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineSpeed(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineTorque(ctx, field) if err != nil { return graphql.Null } @@ -14476,7 +15476,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineSpeed(ct resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineSpeed, nil + return obj.PowertrainCombustionEngineTorque, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14523,7 +15523,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineSpeed(ct return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineSpeed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineTorque(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14542,8 +15542,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTPS(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineTPS(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemAbsoluteLevel(ctx, field) if err != nil { return graphql.Null } @@ -14557,7 +15557,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTPS(ctx resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineTPS, nil + return obj.PowertrainFuelSystemAbsoluteLevel, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14604,7 +15604,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTPS(ctx return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineTPS(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemAbsoluteLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14623,8 +15623,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTorque(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainCombustionEngineTorque(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemRelativeLevel(ctx, field) if err != nil { return graphql.Null } @@ -14638,7 +15638,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTorque(c resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainCombustionEngineTorque, nil + return obj.PowertrainFuelSystemRelativeLevel, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14685,7 +15685,7 @@ func (ec *executionContext) _SignalCollection_powertrainCombustionEngineTorque(c return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEngineTorque(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemRelativeLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14704,8 +15704,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainCombustionEn return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainFuelSystemAbsoluteLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemAbsoluteLevel(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx, field) if err != nil { return graphql.Null } @@ -14719,24 +15719,24 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemAbsoluteLevel( resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainFuelSystemAbsoluteLevel, nil + return obj.PowertrainFuelSystemSupportedFuelTypes, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalFloat + var zeroVal *model.SignalString return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -14749,10 +15749,10 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemAbsoluteLevel( if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalFloat); ok { + if data, ok := tmp.(*model.SignalString); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -14761,12 +15761,12 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemAbsoluteLevel( if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalFloat) + res := resTmp.(*model.SignalString) fc.Result = res - return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) + return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemAbsoluteLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemSupportedFuelTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14775,18 +15775,18 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemAb Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalFloat_timestamp(ctx, field) + return ec.fieldContext_SignalString_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalFloat_value(ctx, field) + return ec.fieldContext_SignalString_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainFuelSystemRelativeLevel(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemRelativeLevel(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainRange(ctx, field) if err != nil { return graphql.Null } @@ -14800,7 +15800,7 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemRelativeLevel( resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainFuelSystemRelativeLevel, nil + return obj.PowertrainRange, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -14847,7 +15847,7 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemRelativeLevel( return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemRelativeLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14866,8 +15866,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemRe return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingAddedEnergy(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingAddedEnergy(ctx, field) if err != nil { return graphql.Null } @@ -14881,24 +15881,24 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemSupportedFuelT resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainFuelSystemSupportedFuelTypes, nil + return obj.PowertrainTractionBatteryChargingAddedEnergy, nil } directive1 := func(ctx context.Context) (interface{}, error) { privileges, err := ec.unmarshalNPrivilege2ᚕgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐPrivilegeᚄ(ctx, []interface{}{"VEHICLE_NON_LOCATION_DATA"}) if err != nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, err } if ec.directives.RequiresPrivileges == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive requiresPrivileges is not implemented") } return ec.directives.RequiresPrivileges(ctx, obj, directive0, privileges) } directive2 := func(ctx context.Context) (interface{}, error) { if ec.directives.IsSignal == nil { - var zeroVal *model.SignalString + var zeroVal *model.SignalFloat return zeroVal, errors.New("directive isSignal is not implemented") } return ec.directives.IsSignal(ctx, obj, directive1) @@ -14911,10 +15911,10 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemSupportedFuelT if tmp == nil { return nil, nil } - if data, ok := tmp.(*model.SignalString); ok { + if data, ok := tmp.(*model.SignalFloat); ok { return data, nil } - return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalString`, tmp) + return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/DIMO-Network/telemetry-api/internal/graph/model.SignalFloat`, tmp) }) if err != nil { ec.Error(ctx, err) @@ -14923,12 +15923,12 @@ func (ec *executionContext) _SignalCollection_powertrainFuelSystemSupportedFuelT if resTmp == nil { return graphql.Null } - res := resTmp.(*model.SignalString) + res := resTmp.(*model.SignalFloat) fc.Result = res - return ec.marshalOSignalString2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalString(ctx, field.Selections, res) + return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemSupportedFuelTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryChargingAddedEnergy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -14937,18 +15937,18 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainFuelSystemSu Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "timestamp": - return ec.fieldContext_SignalString_timestamp(ctx, field) + return ec.fieldContext_SignalFloat_timestamp(ctx, field) case "value": - return ec.fieldContext_SignalString_value(ctx, field) + return ec.fieldContext_SignalFloat_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SignalString", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SignalFloat", field.Name) }, } return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainRange(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx, field) if err != nil { return graphql.Null } @@ -14962,7 +15962,7 @@ func (ec *executionContext) _SignalCollection_powertrainRange(ctx context.Contex resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainRange, nil + return obj.PowertrainTractionBatteryChargingChargeLimit, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15009,7 +16009,7 @@ func (ec *executionContext) _SignalCollection_powertrainRange(ctx context.Contex return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryChargingChargeLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -15028,8 +16028,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainRange(_ cont return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingIsCharging(ctx, field) if err != nil { return graphql.Null } @@ -15043,7 +16043,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingC resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainTractionBatteryChargingChargeLimit, nil + return obj.PowertrainTractionBatteryChargingIsCharging, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15090,7 +16090,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingC return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryChargingChargeLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryChargingIsCharging(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -15109,8 +16109,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatt return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingIsCharging(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryChargingIsCharging(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryCurrentPower(ctx, field) if err != nil { return graphql.Null } @@ -15124,7 +16124,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingI resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainTractionBatteryChargingIsCharging, nil + return obj.PowertrainTractionBatteryCurrentPower, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15171,7 +16171,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryChargingI return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryChargingIsCharging(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryCurrentPower(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -15190,8 +16190,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatt return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentPower(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryCurrentPower(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx, field) if err != nil { return graphql.Null } @@ -15205,7 +16205,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentPo resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainTractionBatteryCurrentPower, nil + return obj.PowertrainTractionBatteryCurrentVoltage, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15252,7 +16252,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentPo return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryCurrentPower(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryCurrentVoltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -15271,8 +16271,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatt return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryGrossCapacity(ctx, field) if err != nil { return graphql.Null } @@ -15286,7 +16286,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentVo resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainTractionBatteryCurrentVoltage, nil + return obj.PowertrainTractionBatteryGrossCapacity, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15333,7 +16333,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryCurrentVo return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryCurrentVoltage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryGrossCapacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -15352,8 +16352,8 @@ func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatt return fc, nil } -func (ec *executionContext) _SignalCollection_powertrainTractionBatteryGrossCapacity(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryGrossCapacity(ctx, field) +func (ec *executionContext) _SignalCollection_powertrainTractionBatteryRange(ctx context.Context, field graphql.CollectedField, obj *model.SignalCollection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SignalCollection_powertrainTractionBatteryRange(ctx, field) if err != nil { return graphql.Null } @@ -15367,7 +16367,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryGrossCapa resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { directive0 := func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PowertrainTractionBatteryGrossCapacity, nil + return obj.PowertrainTractionBatteryRange, nil } directive1 := func(ctx context.Context) (interface{}, error) { @@ -15414,7 +16414,7 @@ func (ec *executionContext) _SignalCollection_powertrainTractionBatteryGrossCapa return ec.marshalOSignalFloat2ᚖgithubᚗcomᚋDIMOᚑNetworkᚋtelemetryᚑapiᚋinternalᚋgraphᚋmodelᚐSignalFloat(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryGrossCapacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SignalCollection_powertrainTractionBatteryRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "SignalCollection", Field: field, @@ -19849,6 +20849,72 @@ func (ec *executionContext) _SignalAggregations(ctx context.Context, sel ast.Sel continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._SignalAggregations_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "powertrainCombustionEngineDieselExhaustFluidLevel": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._SignalAggregations_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "powertrainCombustionEngineECT": field := field @@ -20212,6 +21278,39 @@ func (ec *executionContext) _SignalAggregations(ctx context.Context, sel ast.Sel continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "powertrainTractionBatteryChargingAddedEnergy": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._SignalAggregations_powertrainTractionBatteryChargingAddedEnergy(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "powertrainTractionBatteryChargingChargeLimit": field := field @@ -20377,6 +21476,39 @@ func (ec *executionContext) _SignalAggregations(ctx context.Context, sel ast.Sel continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "powertrainTractionBatteryRange": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._SignalAggregations_powertrainTractionBatteryRange(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) case "powertrainTractionBatteryStateOfChargeCurrent": field := field @@ -20742,6 +21874,10 @@ func (ec *executionContext) _SignalCollection(ctx context.Context, sel ast.Selec out.Values[i] = ec._SignalCollection_obdShortTermFuelTrim1(ctx, field, obj) case "obdWarmupsSinceDTCClear": out.Values[i] = ec._SignalCollection_obdWarmupsSinceDTCClear(ctx, field, obj) + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + out.Values[i] = ec._SignalCollection_powertrainCombustionEngineDieselExhaustFluidCapacity(ctx, field, obj) + case "powertrainCombustionEngineDieselExhaustFluidLevel": + out.Values[i] = ec._SignalCollection_powertrainCombustionEngineDieselExhaustFluidLevel(ctx, field, obj) case "powertrainCombustionEngineECT": out.Values[i] = ec._SignalCollection_powertrainCombustionEngineECT(ctx, field, obj) case "powertrainCombustionEngineEngineOilLevel": @@ -20764,6 +21900,8 @@ func (ec *executionContext) _SignalCollection(ctx context.Context, sel ast.Selec out.Values[i] = ec._SignalCollection_powertrainFuelSystemSupportedFuelTypes(ctx, field, obj) case "powertrainRange": out.Values[i] = ec._SignalCollection_powertrainRange(ctx, field, obj) + case "powertrainTractionBatteryChargingAddedEnergy": + out.Values[i] = ec._SignalCollection_powertrainTractionBatteryChargingAddedEnergy(ctx, field, obj) case "powertrainTractionBatteryChargingChargeLimit": out.Values[i] = ec._SignalCollection_powertrainTractionBatteryChargingChargeLimit(ctx, field, obj) case "powertrainTractionBatteryChargingIsCharging": @@ -20774,6 +21912,8 @@ func (ec *executionContext) _SignalCollection(ctx context.Context, sel ast.Selec out.Values[i] = ec._SignalCollection_powertrainTractionBatteryCurrentVoltage(ctx, field, obj) case "powertrainTractionBatteryGrossCapacity": out.Values[i] = ec._SignalCollection_powertrainTractionBatteryGrossCapacity(ctx, field, obj) + case "powertrainTractionBatteryRange": + out.Values[i] = ec._SignalCollection_powertrainTractionBatteryRange(ctx, field, obj) case "powertrainTractionBatteryStateOfChargeCurrent": out.Values[i] = ec._SignalCollection_powertrainTractionBatteryStateOfChargeCurrent(ctx, field, obj) case "powertrainTractionBatteryTemperatureAverage": diff --git a/internal/graph/model/models_gen.go b/internal/graph/model/models_gen.go index 43eaa92..291f162 100644 --- a/internal/graph/model/models_gen.go +++ b/internal/graph/model/models_gen.go @@ -115,6 +115,7 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDCommandedEGR *SignalFloat `json:"obdCommandedEGR,omitempty"` // PID 2E - Commanded evaporative purge (EVAP) valve + // Unit: 'percent' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDCommandedEVAP *SignalFloat `json:"obdCommandedEVAP,omitempty"` // PID 31 - Distance traveled since codes cleared @@ -130,6 +131,7 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDEngineLoad *SignalFloat `json:"obdEngineLoad,omitempty"` // PID 0A - Fuel pressure + // Unit: 'kPa' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDFuelPressure *SignalFloat `json:"obdFuelPressure,omitempty"` // PID 0F - Intake temperature @@ -145,9 +147,11 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDMAP *SignalFloat `json:"obdMAP,omitempty"` // PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + // Unit: 'V' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDO2WRSensor1Voltage *SignalFloat `json:"obdO2WRSensor1Voltage,omitempty"` // PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + // Unit: 'V' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDO2WRSensor2Voltage *SignalFloat `json:"obdO2WRSensor2Voltage,omitempty"` // PID 1F - Engine run time @@ -161,6 +165,14 @@ type SignalCollection struct { // PID 30 - Number of warm-ups since codes cleared // Required Privileges: [VEHICLE_NON_LOCATION_DATA] OBDWarmupsSinceDTCClear *SignalFloat `json:"obdWarmupsSinceDTCClear,omitempty"` + // Capacity in liters of the Diesel Exhaust Fluid Tank. + // Unit: 'l' + // Required Privileges: [VEHICLE_NON_LOCATION_DATA] + PowertrainCombustionEngineDieselExhaustFluidCapacity *SignalFloat `json:"powertrainCombustionEngineDieselExhaustFluidCapacity,omitempty"` + // Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. + // Unit: 'percent' Min: '0' Max: '100' + // Required Privileges: [VEHICLE_NON_LOCATION_DATA] + PowertrainCombustionEngineDieselExhaustFluidLevel *SignalFloat `json:"powertrainCombustionEngineDieselExhaustFluidLevel,omitempty"` // Engine coolant temperature. // Unit: 'celsius' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] @@ -185,6 +197,7 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainCombustionEngineTPS *SignalFloat `json:"powertrainCombustionEngineTPS,omitempty"` // Current engine torque. Shall be reported as 0 during engine breaking. + // Unit: 'Nm' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainCombustionEngineTorque *SignalFloat `json:"powertrainCombustionEngineTorque,omitempty"` // Current available fuel in the fuel tank expressed in liters. @@ -202,6 +215,10 @@ type SignalCollection struct { // Unit: 'm' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainRange *SignalFloat `json:"powertrainRange,omitempty"` + // Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + // Unit: 'kWh' + // Required Privileges: [VEHICLE_NON_LOCATION_DATA] + PowertrainTractionBatteryChargingAddedEnergy *SignalFloat `json:"powertrainTractionBatteryChargingAddedEnergy,omitempty"` // Target charge limit (state of charge) for battery. // Unit: 'percent' Min: '0' Max: '100' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] @@ -214,12 +231,17 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainTractionBatteryCurrentPower *SignalFloat `json:"powertrainTractionBatteryCurrentPower,omitempty"` // Current Voltage of the battery. + // Unit: 'V' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainTractionBatteryCurrentVoltage *SignalFloat `json:"powertrainTractionBatteryCurrentVoltage,omitempty"` // Gross capacity of the battery. // Unit: 'kWh' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainTractionBatteryGrossCapacity *SignalFloat `json:"powertrainTractionBatteryGrossCapacity,omitempty"` + // Remaining range in meters using only battery. + // Unit: 'm' + // Required Privileges: [VEHICLE_NON_LOCATION_DATA] + PowertrainTractionBatteryRange *SignalFloat `json:"powertrainTractionBatteryRange,omitempty"` // Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. // Unit: 'percent' Min: '0' Max: '100.0' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] @@ -232,6 +254,7 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainTransmissionCurrentGear *SignalFloat `json:"powertrainTransmissionCurrentGear,omitempty"` // The current gearbox temperature. + // Unit: 'celsius' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainTransmissionTemperature *SignalFloat `json:"powertrainTransmissionTemperature,omitempty"` // Odometer reading, total distance travelled during the lifetime of the transmission. @@ -242,6 +265,7 @@ type SignalCollection struct { // Required Privileges: [VEHICLE_NON_LOCATION_DATA] PowertrainType *SignalString `json:"powertrainType,omitempty"` // Remaining distance to service (of any kind). Negative values indicate service overdue. + // Unit: 'km' // Required Privileges: [VEHICLE_NON_LOCATION_DATA] ServiceDistanceToService *SignalFloat `json:"serviceDistanceToService,omitempty"` // Vehicle speed. diff --git a/internal/graph/model/signalSetter_gen.go b/internal/graph/model/signalSetter_gen.go index 476aacf..e49676b 100644 --- a/internal/graph/model/signalSetter_gen.go +++ b/internal/graph/model/signalSetter_gen.go @@ -169,6 +169,16 @@ func SetCollectionField(collection *SignalCollection, signal *vss.Signal) { Timestamp: signal.Timestamp, Value: signal.ValueNumber, } + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + collection.PowertrainCombustionEngineDieselExhaustFluidCapacity = &SignalFloat{ + Timestamp: signal.Timestamp, + Value: signal.ValueNumber, + } + case "powertrainCombustionEngineDieselExhaustFluidLevel": + collection.PowertrainCombustionEngineDieselExhaustFluidLevel = &SignalFloat{ + Timestamp: signal.Timestamp, + Value: signal.ValueNumber, + } case "powertrainCombustionEngineECT": collection.PowertrainCombustionEngineECT = &SignalFloat{ Timestamp: signal.Timestamp, @@ -224,6 +234,11 @@ func SetCollectionField(collection *SignalCollection, signal *vss.Signal) { Timestamp: signal.Timestamp, Value: signal.ValueNumber, } + case "powertrainTractionBatteryChargingAddedEnergy": + collection.PowertrainTractionBatteryChargingAddedEnergy = &SignalFloat{ + Timestamp: signal.Timestamp, + Value: signal.ValueNumber, + } case "powertrainTractionBatteryChargingChargeLimit": collection.PowertrainTractionBatteryChargingChargeLimit = &SignalFloat{ Timestamp: signal.Timestamp, @@ -249,6 +264,11 @@ func SetCollectionField(collection *SignalCollection, signal *vss.Signal) { Timestamp: signal.Timestamp, Value: signal.ValueNumber, } + case "powertrainTractionBatteryRange": + collection.PowertrainTractionBatteryRange = &SignalFloat{ + Timestamp: signal.Timestamp, + Value: signal.ValueNumber, + } case "powertrainTractionBatteryStateOfChargeCurrent": collection.PowertrainTractionBatteryStateOfChargeCurrent = &SignalFloat{ Timestamp: signal.Timestamp, @@ -362,6 +382,10 @@ func SetAggregationField(aggregations *SignalAggregations, signal *AggSignal) { aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "obdWarmupsSinceDTCClear": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber + case "powertrainCombustionEngineDieselExhaustFluidCapacity": + aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber + case "powertrainCombustionEngineDieselExhaustFluidLevel": + aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainCombustionEngineECT": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainCombustionEngineEngineOilLevel": @@ -384,6 +408,8 @@ func SetAggregationField(aggregations *SignalAggregations, signal *AggSignal) { aggregations.ValueStrings[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueString case "powertrainRange": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber + case "powertrainTractionBatteryChargingAddedEnergy": + aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainTractionBatteryChargingChargeLimit": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainTractionBatteryChargingIsCharging": @@ -394,6 +420,8 @@ func SetAggregationField(aggregations *SignalAggregations, signal *AggSignal) { aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainTractionBatteryGrossCapacity": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber + case "powertrainTractionBatteryRange": + aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainTractionBatteryStateOfChargeCurrent": aggregations.ValueNumbers[AliasKey{Name: signal.Name, Agg: signal.Agg}] = signal.ValueNumber case "powertrainTractionBatteryTemperatureAverage": diff --git a/internal/graph/signals_gen.resolvers.go b/internal/graph/signals_gen.resolvers.go index 81c7045..5f1baf5 100644 --- a/internal/graph/signals_gen.resolvers.go +++ b/internal/graph/signals_gen.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen version v0.17.56 import ( "context" @@ -298,6 +298,24 @@ func (r *signalAggregationsResolver) ObdWarmupsSinceDTCClear(ctx context.Context return &vn, nil } +// PowertrainCombustionEngineDieselExhaustFluidCapacity is the resolver for the powertrainCombustionEngineDieselExhaustFluidCapacity +func (r *signalAggregationsResolver) PowertrainCombustionEngineDieselExhaustFluidCapacity(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { + vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainCombustionEngineDieselExhaustFluidCapacity", Agg: agg.String()}] + if !ok { + return nil, nil + } + return &vn, nil +} + +// PowertrainCombustionEngineDieselExhaustFluidLevel is the resolver for the powertrainCombustionEngineDieselExhaustFluidLevel +func (r *signalAggregationsResolver) PowertrainCombustionEngineDieselExhaustFluidLevel(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { + vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainCombustionEngineDieselExhaustFluidLevel", Agg: agg.String()}] + if !ok { + return nil, nil + } + return &vn, nil +} + // PowertrainCombustionEngineEct is the resolver for the powertrainCombustionEngineECT func (r *signalAggregationsResolver) PowertrainCombustionEngineEct(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainCombustionEngineECT", Agg: agg.String()}] @@ -397,6 +415,15 @@ func (r *signalAggregationsResolver) PowertrainRange(ctx context.Context, obj *m return &vn, nil } +// PowertrainTractionBatteryChargingAddedEnergy is the resolver for the powertrainTractionBatteryChargingAddedEnergy +func (r *signalAggregationsResolver) PowertrainTractionBatteryChargingAddedEnergy(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { + vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainTractionBatteryChargingAddedEnergy", Agg: agg.String()}] + if !ok { + return nil, nil + } + return &vn, nil +} + // PowertrainTractionBatteryChargingChargeLimit is the resolver for the powertrainTractionBatteryChargingChargeLimit func (r *signalAggregationsResolver) PowertrainTractionBatteryChargingChargeLimit(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainTractionBatteryChargingChargeLimit", Agg: agg.String()}] @@ -442,6 +469,15 @@ func (r *signalAggregationsResolver) PowertrainTractionBatteryGrossCapacity(ctx return &vn, nil } +// PowertrainTractionBatteryRange is the resolver for the powertrainTractionBatteryRange +func (r *signalAggregationsResolver) PowertrainTractionBatteryRange(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { + vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainTractionBatteryRange", Agg: agg.String()}] + if !ok { + return nil, nil + } + return &vn, nil +} + // PowertrainTractionBatteryStateOfChargeCurrent is the resolver for the powertrainTractionBatteryStateOfChargeCurrent func (r *signalAggregationsResolver) PowertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, obj *model.SignalAggregations, agg model.FloatAggregation) (*float64, error) { vn, ok := obj.ValueNumbers[model.AliasKey{Name: "powertrainTractionBatteryStateOfChargeCurrent", Agg: agg.String()}] diff --git a/internal/graph/vc.resolvers.go b/internal/graph/vc.resolvers.go index 3661677..c1b99db 100644 --- a/internal/graph/vc.resolvers.go +++ b/internal/graph/vc.resolvers.go @@ -2,7 +2,7 @@ package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. -// Code generated by github.com/99designs/gqlgen version v0.17.55 +// Code generated by github.com/99designs/gqlgen version v0.17.56 import ( "context" diff --git a/internal/repositories/repositories.go b/internal/repositories/repositories.go index cfc89a4..cb0fdd4 100644 --- a/internal/repositories/repositories.go +++ b/internal/repositories/repositories.go @@ -48,7 +48,7 @@ type Repository struct { // NewRepository creates a new base repository. // clientCAs is optional and can be nil. func NewRepository(logger *zerolog.Logger, chService CHService, lastSeenBin int64) (*Repository, error) { - definitions, err := schema.LoadDefinitionFile(strings.NewReader(schema.DefinitionsYAML())) + definitions, err := schema.LoadDefinitionFile(strings.NewReader(schema.DefaultDefinitionsYAML())) if err != nil { return nil, fmt.Errorf("error reading definition file: %w", err) } diff --git a/schema/signals_gen.graphqls b/schema/signals_gen.graphqls index b68fd76..8fecb30 100644 --- a/schema/signals_gen.graphqls +++ b/schema/signals_gen.graphqls @@ -282,6 +282,24 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDWarmupsSinceDTCClear", forceResolver: true) @isSignal @hasAggregation + """ + Capacity in liters of the Diesel Exhaust Fluid Tank. + Unit: 'l' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidCapacity( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidCapacity", forceResolver: true) @isSignal @hasAggregation + + """ + Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. + Unit: 'percent' Min: '0' Max: '100' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidLevel( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidLevel", forceResolver: true) @isSignal @hasAggregation + """ Engine coolant temperature. Unit: 'celsius' @@ -379,6 +397,15 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainRange", forceResolver: true) @isSignal @hasAggregation + """ + Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + Unit: 'kWh' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryChargingAddedEnergy( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryChargingAddedEnergy", forceResolver: true) @isSignal @hasAggregation + """ Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100' @@ -423,6 +450,15 @@ extend type SignalAggregations { agg: FloatAggregation! ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryGrossCapacity", forceResolver: true) @isSignal @hasAggregation + """ + Remaining range in meters using only battery. + Unit: 'm' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryRange( + agg: FloatAggregation! + ): Float @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryRange", forceResolver: true) @isSignal @hasAggregation + """ Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0' @@ -626,6 +662,7 @@ extend type SignalCollection { """ PID 2E - Commanded evaporative purge (EVAP) valve + Unit: 'percent' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdCommandedEVAP: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDCommandedEVAP") @isSignal @@ -653,6 +690,7 @@ extend type SignalCollection { """ PID 0A - Fuel pressure + Unit: 'kPa' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdFuelPressure: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDFuelPressure") @isSignal @@ -680,12 +718,14 @@ extend type SignalCollection { """ PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdO2WRSensor1Voltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDO2WRSensor1Voltage") @isSignal """ PID 2x (byte CD) - Voltage for wide range/band oxygen sensor + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ obdO2WRSensor2Voltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDO2WRSensor2Voltage") @isSignal @@ -710,6 +750,20 @@ extend type SignalCollection { """ obdWarmupsSinceDTCClear: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "OBDWarmupsSinceDTCClear") @isSignal + """ + Capacity in liters of the Diesel Exhaust Fluid Tank. + Unit: 'l' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidCapacity: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidCapacity") @isSignal + + """ + Level of the Diesel Exhaust Fluid tank as percent of capacity. 0 = empty. 100 = full. + Unit: 'percent' Min: '0' Max: '100' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainCombustionEngineDieselExhaustFluidLevel: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineDieselExhaustFluidLevel") @isSignal + """ Engine coolant temperature. Unit: 'celsius' @@ -753,6 +807,7 @@ extend type SignalCollection { """ Current engine torque. Shall be reported as 0 during engine breaking. + Unit: 'Nm' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainCombustionEngineTorque: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineTorque") @isSignal @@ -784,6 +839,13 @@ extend type SignalCollection { """ powertrainRange: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainRange") @isSignal + """ + Amount of charge added to the high voltage battery during the current charging session, expressed in kilowatt-hours. + Unit: 'kWh' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryChargingAddedEnergy: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryChargingAddedEnergy") @isSignal + """ Target charge limit (state of charge) for battery. Unit: 'percent' Min: '0' Max: '100' @@ -806,6 +868,7 @@ extend type SignalCollection { """ Current Voltage of the battery. + Unit: 'V' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainTractionBatteryCurrentVoltage: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryCurrentVoltage") @isSignal @@ -817,6 +880,13 @@ extend type SignalCollection { """ powertrainTractionBatteryGrossCapacity: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryGrossCapacity") @isSignal + """ + Remaining range in meters using only battery. + Unit: 'm' + Required Privileges: [VEHICLE_NON_LOCATION_DATA] + """ + powertrainTractionBatteryRange: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTractionBatteryRange") @isSignal + """ Physical state of charge of the high voltage battery, relative to net capacity. This is not necessarily the state of charge being displayed to the customer. Unit: 'percent' Min: '0' Max: '100.0' @@ -839,6 +909,7 @@ extend type SignalCollection { """ The current gearbox temperature. + Unit: 'celsius' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ powertrainTransmissionTemperature: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainTransmissionTemperature") @isSignal @@ -858,6 +929,7 @@ extend type SignalCollection { """ Remaining distance to service (of any kind). Negative values indicate service overdue. + Unit: 'km' Required Privileges: [VEHICLE_NON_LOCATION_DATA] """ serviceDistanceToService: SignalFloat @requiresPrivileges(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "ServiceDistanceToService") @isSignal