generated from jeroentvb/node-typescript-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-sandbox.ts
32 lines (29 loc) · 808 Bytes
/
dev-sandbox.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import rwsApi from './dist/index.js';
import helper from 'jeroentvb-helper';
// import { LatestObservationRequestData } from '@interfaces/get-latest-observations.model.js';
(async () => {
const requestObj: LatestObservationRequestData = {
variables: {
compartiment: 'LT',
},
locations: [
{
code: 'BERK',
coordinates: {
x: 633877.337865742,
y: 5834359.52893178
}
},
{
'coordinates': {
'x': 646538.674114683,
'y': 5833598.51786221
},
'code': 'WIJD'
}
],
};
const data = await rwsApi.getLatestObservations(requestObj);
helper.export.json('latest-observations', data);
console.log(data);
})();