Skip to content

Commit f82ce24

Browse files
committed
fix: Resolve 42 TypeScript compilation errors (154→112)
- Fix import paths in feasibility.ts and system-event.ts (Link from base-types not shared/models) - Add missing query parameters to DatastreamsQueryOptions: q, system, foi, resultTime - Add missing query parameters to CommandsQueryOptions: sender, controlStream, system, foi, controlledProperty, statusCode This partially addresses Issue camptocamp#74. Remaining 112 errors tracked in child issues. Related: Sam-Bolling/CSAPI-Live-Testing#74
1 parent 19b2a54 commit f82ce24

3 files changed

Lines changed: 47 additions & 2 deletions

File tree

src/ogc-api/csapi/geojson/non-features/feasibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Link } from '../../../shared/models.js';
1+
import type { Link } from '../base-types.js';
22

33
/**
44
* Feasibility resource (NOT a GeoJSON Feature)

src/ogc-api/csapi/geojson/non-features/system-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Link } from '../../../shared/models.js';
1+
import type { Link } from '../base-types.js';
22

33
/**
44
* System Event resource (NOT a GeoJSON Feature)

src/ogc-api/csapi/model.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ export interface DatastreamsQueryOptions {
100100

101101
/** Property path filtering: comma-separated list of property paths */
102102
select?: string;
103+
104+
/** Text search query */
105+
q?: string;
106+
107+
/** Filter by parent system ID */
108+
system?: string;
109+
110+
/** Filter by feature of interest ID */
111+
foi?: string;
112+
113+
/** Temporal filter: result time range */
114+
resultTime?: DateTimeParameter;
103115
}
104116

105117
/**
@@ -139,6 +151,12 @@ export interface ObservationsQueryOptions {
139151

140152
/** Property path filtering: comma-separated list of property paths */
141153
select?: string;
154+
155+
/** Filter by datastream ID */
156+
dataStream?: string;
157+
158+
/** Filter by parent system ID */
159+
system?: string;
142160
}
143161

144162
/**
@@ -166,6 +184,15 @@ export interface ControlStreamsQueryOptions {
166184

167185
/** Property path filtering: comma-separated list of property paths */
168186
select?: string;
187+
188+
/** Text search query */
189+
q?: string;
190+
191+
/** Filter by parent system ID */
192+
system?: string;
193+
194+
/** Filter by feature of interest ID */
195+
foi?: string;
169196
}
170197

171198
/**
@@ -190,6 +217,24 @@ export interface CommandsQueryOptions {
190217

191218
/** Property path filtering: comma-separated list of property paths */
192219
select?: string;
220+
221+
/** Filter by sender ID */
222+
sender?: string;
223+
224+
/** Filter by control stream ID */
225+
controlStream?: string;
226+
227+
/** Filter by parent system ID */
228+
system?: string;
229+
230+
/** Filter by feature of interest ID */
231+
foi?: string;
232+
233+
/** Filter by controlled property */
234+
controlledProperty?: string;
235+
236+
/** Filter by status code */
237+
statusCode?: string;
193238
}
194239

195240
/**

0 commit comments

Comments
 (0)