Skip to content

Commit 1ef2344

Browse files
committed
Update CHANGELOG
1 parent f9cd222 commit 1ef2344

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
## Version History
1212

13+
### v1.7.0
14+
15+
- :rocket: Update Core Deps
16+
1317
### v1.6.0
1418

1519
- :rocket: Update Core Deps

task.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Err from '@openaddresses/batch-error';
2+
import { Feature } from '@tak-ps/node-cot';
23
import Schema from '@openaddresses/batch-schema';
34
import type { Static, TSchema } from '@sinclair/typebox';
45
import { Type } from '@sinclair/typebox';
5-
import ETL, { DataFlowType, SchemaType, handler as internal, local, InvocationType, fetch, InputFeatureCollection, InputFeature } from '@tak-ps/etl';
6+
import ETL, { DataFlowType, SchemaType, handler as internal, local, InvocationType, fetch } from '@tak-ps/etl';
67
import type { Event } from '@tak-ps/etl';
78

89
export interface Share {
@@ -41,7 +42,7 @@ const EphemeralStore = Type.Object({
4142
cachetime: Type.Optional(Type.Integer({
4243
description: 'Cache timestamp for the last time devices were synced via the API'
4344
})),
44-
devices: Type.Optional(Type.Record(Type.String(), InputFeature))
45+
devices: Type.Optional(Type.Record(Type.String(), Feature.InputFeature))
4546
})
4647

4748
const Input = Type.Object({
@@ -117,7 +118,7 @@ export default class Task extends ETL {
117118
}
118119

119120
try {
120-
const feat: Static<typeof InputFeature> = {
121+
const feat: Static<typeof Feature.InputFeature> = {
121122
id: `inreach-${req.body.entityId}`,
122123
type: 'Feature',
123124
properties: {
@@ -206,7 +207,7 @@ export default class Task extends ETL {
206207

207208
ephem.cachetime = new Date().getTime();
208209

209-
const fc: Static<typeof InputFeatureCollection> = {
210+
const fc: Static<typeof Feature.InputFeatureCollection> = {
210211
type: 'FeatureCollection',
211212
features: latest.features.map((feature) => {
212213
return {
@@ -243,7 +244,7 @@ export default class Task extends ETL {
243244
} else {
244245
console.log('ok - reusing cached data');
245246

246-
const fc: Static<typeof InputFeatureCollection> = {
247+
const fc: Static<typeof Feature.InputFeatureCollection> = {
247248
type: 'FeatureCollection',
248249
features: []
249250
};

0 commit comments

Comments
 (0)