Skip to content

Commit 9acf90d

Browse files
committed
fix: update dependencies
1 parent 2654faa commit 9acf90d

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

src/api/groundFix.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
1-
import {
2-
accuracy as TAccuracy,
3-
lat as TLat,
4-
lng as TLng,
5-
} from '@hello.nrfcloud.com/proto/hello'
61
import { Type, type Static } from '@sinclair/typebox'
72
import {
83
JSONPayload,
94
type ValidationError,
105
validatedFetch,
116
} from './validatedFetch.js'
127

8+
export const lat = Type.Number({
9+
minimum: -90,
10+
maximum: 90,
11+
description: 'Latitude in degrees',
12+
})
13+
export const lng = Type.Number({
14+
minimum: -180,
15+
maximum: 180,
16+
description: 'Longitude in degrees',
17+
})
18+
export const accuracy = Type.Number({
19+
minimum: 0,
20+
description: 'HPE (horizontal positioning error) in meters',
21+
})
22+
1323
/**
1424
* @link https://api.nrfcloud.com/v1/#tag/Ground-Fix
1525
*/
1626
export const GroundFixType = Type.Object({
17-
lat: TLat, // 63.41999531
18-
lon: TLng, // 10.42999506
19-
uncertainty: TAccuracy, // 2420
27+
lat, // 63.41999531
28+
lon: lng, // 10.42999506
29+
uncertainty: accuracy, // 2420
2030
fulfilledWith: Type.Literal('SCELL'),
2131
})
2232

0 commit comments

Comments
 (0)