Skip to content

Commit

Permalink
weather API
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Mar 30, 2024
1 parent 1df6eb6 commit 0005537
Show file tree
Hide file tree
Showing 18 changed files with 1,011 additions and 49 deletions.
300 changes: 296 additions & 4 deletions packages/client/src/graphql-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,74 @@ export type introspection = {
}
]
},
{
"kind": "OBJECT",
"name": "GeographicResult",
"fields": [
{
"name": "country",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"args": []
},
{
"name": "lat",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"args": []
},
{
"name": "lon",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"args": []
},
{
"name": "name",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"args": []
},
{
"name": "state",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"args": []
}
],
"interfaces": []
},
{
"kind": "SCALAR",
"name": "Float"
},
{
"kind": "SCALAR",
"name": "JSON"
Expand Down Expand Up @@ -1635,6 +1703,36 @@ export type introspection = {
},
"args": []
},
{
"name": "geographicLocations",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "LIST",
"ofType": {
"kind": "NON_NULL",
"ofType": {
"kind": "OBJECT",
"name": "GeographicResult",
"ofType": null
}
}
}
},
"args": [
{
"name": "search",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
}
]
},
{
"name": "me",
"type": {
Expand Down Expand Up @@ -1817,6 +1915,30 @@ export type introspection = {
}
}
]
},
{
"name": "weatherForecast",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "OBJECT",
"name": "WeatherForecast",
"ofType": null
}
},
"args": [
{
"name": "input",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "INPUT_OBJECT",
"name": "WeatherForecastInput",
"ofType": null
}
}
}
]
}
],
"interfaces": []
Expand Down Expand Up @@ -2134,10 +2256,6 @@ export type introspection = {
],
"interfaces": []
},
{
"kind": "SCALAR",
"name": "Float"
},
{
"kind": "OBJECT",
"name": "RecipeScanDetailedStep",
Expand Down Expand Up @@ -2339,6 +2457,18 @@ export type introspection = {
],
"interfaces": []
},
{
"kind": "ENUM",
"name": "TemperatureUnit",
"enumValues": [
{
"name": "Celsius"
},
{
"name": "Fahrenheit"
}
]
},
{
"kind": "INPUT_OBJECT",
"name": "UpdateCategoryInput",
Expand Down Expand Up @@ -2471,6 +2601,168 @@ export type introspection = {
"name": "Node"
}
]
},
{
"kind": "OBJECT",
"name": "WeatherForecast",
"fields": [
{
"name": "days",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "LIST",
"ofType": {
"kind": "NON_NULL",
"ofType": {
"kind": "OBJECT",
"name": "WeatherForecastDay",
"ofType": null
}
}
}
},
"args": []
},
{
"name": "error",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"args": []
}
],
"interfaces": []
},
{
"kind": "OBJECT",
"name": "WeatherForecastDay",
"fields": [
{
"name": "date",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
},
"args": []
},
{
"name": "high",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"args": []
},
{
"name": "low",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"args": []
},
{
"name": "precipitationMM",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"args": []
},
{
"name": "temperatureUnit",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "ENUM",
"name": "TemperatureUnit",
"ofType": null
}
},
"args": []
}
],
"interfaces": []
},
{
"kind": "INPUT_OBJECT",
"name": "WeatherForecastInput",
"inputFields": [
{
"name": "endDate",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
}
},
{
"name": "latitude",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
}
},
{
"name": "longitude",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
}
},
{
"name": "startDate",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
}
},
{
"name": "temperatureUnits",
"type": {
"kind": "NON_NULL",
"ofType": {
"kind": "ENUM",
"name": "TemperatureUnit",
"ofType": null
}
}
}
]
}
],
"directives": []
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "module",
"private": true,
"dependencies": {
"@a-type/auth": "^0.4.3",
"@a-type/auth": "^0.4.8",
"@a-type/utils": "^1.0.5",
"@biscuits/apps": "workspace:*",
"@biscuits/db": "workspace:*",
Expand Down
Loading

0 comments on commit 0005537

Please sign in to comment.