jmapcloud-types 0.0.1 → 2.0.23-qa.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/das.d.ts +42 -0
- package/generated/das-generated.ts +3666 -0
- package/generated/es-generated.ts +1174 -0
- package/generated/fus-generated.ts +1033 -0
- package/generated/lms-generated.ts +232 -0
- package/generated/mcs-generated.ts +17675 -0
- package/generated/mcs-graphql-generated.ts +457 -0
- package/generated/mis-generated.ts +557 -0
- package/generated/ps-generated.ts +1099 -0
- package/generated/ss-generated.ts +4891 -0
- package/generated/vtcs-generated.ts +382 -0
- package/graphql/operations/mcs.graphql +152 -0
- package/index.d.ts +2 -0
- package/index.js +5 -0
- package/language.d.ts +2 -1
- package/mcs.d.ts +385 -150
- package/package.json +42 -4
- package/server.d.ts +40 -0
- package/ss.d.ts +28 -0
- package/theme.ts +8 -7
package/mcs.d.ts
CHANGED
|
@@ -1,31 +1,48 @@
|
|
|
1
|
+
import type { BaseUISchemaElement, JsonSchema7, Layout, Scoped } from "@jsonforms/core/lib/models"
|
|
1
2
|
import { JMultiLocaleTranslationValue, LOCALES } from "."
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { components } from "./generated/mcs-generated"
|
|
4
|
+
import { JServerExtent } from "./geography"
|
|
4
5
|
declare type JLAYER_ELEMENT_TYPES = "POINT" | "LINE" | "POLYGON" | "TEXT" | "IMAGE" | "LABEL" | "ELLIPSE" | "MIXED"
|
|
5
6
|
declare type JLAYER_LAYER_TYPES = "VECTOR" | "RASTER" | "OGC_API_FEATURES" | "WMS" | "WMTS"
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
export type JTYPEFACE = NonNullable<S["TextStyleDTO"]["typeface"]>
|
|
8
|
+
|
|
9
|
+
type S = components["schemas"]
|
|
10
|
+
|
|
11
|
+
export interface JProject<TText extends LocalizedText = JMultiLocaleTranslationValue> extends JCreationInfo {
|
|
8
12
|
id: string
|
|
9
13
|
defaultLanguage: LOCALES
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
languages: LOCALES[]
|
|
15
|
+
name: TText
|
|
16
|
+
description?: TText
|
|
17
|
+
presentationPage?: TText
|
|
12
18
|
organizationId: string
|
|
13
19
|
mapCrs: string
|
|
14
|
-
|
|
15
|
-
mapUnit: JMAP_SERVER_DISTANCE_UNITS
|
|
16
|
-
distanceUnit: JMAP_SERVER_DISTANCE_UNITS
|
|
17
|
-
displayUnit: JMAP_SERVER_DISTANCE_UNITS
|
|
20
|
+
distanceUnit: NonNullable<components["schemas"]["ProjectDTO"]["distanceUnit"]>
|
|
18
21
|
initialExtent: JServerExtent | null
|
|
19
22
|
maximumExtent: JServerExtent | null
|
|
23
|
+
owners: string[]
|
|
20
24
|
backgroundColor: string
|
|
21
25
|
defaultSelectionColor: string
|
|
22
26
|
rotation: number
|
|
23
27
|
tags: JTag[]
|
|
24
28
|
public: boolean
|
|
25
|
-
|
|
29
|
+
listed: boolean
|
|
30
|
+
terrainRasterDataSourceId?: string
|
|
31
|
+
terrain?: JTerrain
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
|
|
34
|
+
// The generated TerrainDTO declares java.awt colour objects, but the wire uses
|
|
35
|
+
// lowercase #rrggbb strings in both requests and responses.
|
|
36
|
+
export type JTerrain = Omit<S["TerrainDTO"], "hillshadeAccentColor" | "hillshadeHighlightColor" | "hillshadeShadowColor"> & {
|
|
37
|
+
hillshadeAccentColor?: string
|
|
38
|
+
hillshadeHighlightColor?: string
|
|
39
|
+
hillshadeShadowColor?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface JProjectLayersCount {
|
|
43
|
+
layerCount: number
|
|
44
|
+
tableCount: number
|
|
45
|
+
}
|
|
29
46
|
|
|
30
47
|
interface JCreationInfo {
|
|
31
48
|
createdBy: string
|
|
@@ -34,28 +51,50 @@ interface JCreationInfo {
|
|
|
34
51
|
lastModificationDate: string
|
|
35
52
|
}
|
|
36
53
|
|
|
37
|
-
export type
|
|
54
|
+
export type GeneralizationLevel = NonNullable<S["VectorLayerDTO"]["generalizationLevel"]>
|
|
55
|
+
|
|
56
|
+
export type JElementType = NonNullable<components["schemas"]["LayerDTO"]["elementType"]>
|
|
38
57
|
|
|
39
|
-
|
|
58
|
+
/** Common field definition; no resource identity, source indexing or display configuration. */
|
|
59
|
+
export type AttributeDefinition<TText extends LocalizedText = JMultiLocaleTranslationValue> = Pick<S["AttributeDTO"], "name" | "type" | "minimumFractionDigits" | "maximumFractionDigits"> & {
|
|
60
|
+
title?: TText | (TText extends string ? null : never)
|
|
61
|
+
valueDomain?: JValueDomain<TText>
|
|
62
|
+
}
|
|
40
63
|
|
|
41
|
-
interface
|
|
64
|
+
export interface DataSourceAttribute<TText extends LocalizedText = JMultiLocaleTranslationValue> extends Omit<S["AttributeDTO"], "title" | "valueDomain">, AttributeDefinition<TText> {
|
|
65
|
+
/** Data-source attribute ID, not a layer/table attribute ID. */
|
|
42
66
|
id: string
|
|
43
|
-
name: string
|
|
44
|
-
title: JMultiLocaleTranslationValue
|
|
45
67
|
indexed: boolean
|
|
46
|
-
type: JAttributeType
|
|
47
|
-
valueDomain?: JValueDomain
|
|
48
68
|
}
|
|
49
69
|
|
|
50
|
-
export
|
|
51
|
-
|
|
70
|
+
export interface LayerAttribute<TText extends LocalizedText = JMultiLocaleTranslationValue> extends Omit<S["AttributeDTO"], "title" | "valueDomain">, AttributeDefinition<TText> {
|
|
71
|
+
/** Layer attribute ID, used by layer reorder writes. */
|
|
72
|
+
id: string
|
|
73
|
+
indexed?: boolean
|
|
74
|
+
visible: boolean
|
|
75
|
+
/** GraphQL only: whether vector tiles carry the attribute (the backend binds what saved configuration references). */
|
|
76
|
+
bound?: boolean
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface TableAttribute<TText extends LocalizedText = JMultiLocaleTranslationValue> extends Omit<S["AttributeDTO"], "title" | "valueDomain">, AttributeDefinition<TText> {
|
|
80
|
+
/** Table attribute ID, used by table reorder writes. */
|
|
81
|
+
id: string
|
|
82
|
+
indexed?: boolean
|
|
83
|
+
visible: boolean
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** @deprecated Use DataSourceAttribute, LayerAttribute or TableAttribute at resource boundaries, or AttributeDefinition for shared consumers. */
|
|
87
|
+
export type JAttribute = DataSourceAttribute & { visible?: boolean }
|
|
88
|
+
|
|
89
|
+
export type JValueDomain<TText extends LocalizedText = JMultiLocaleTranslationValue> = JValueDomainEntry<TText>[]
|
|
90
|
+
export type JValueDomainEntry<TText extends LocalizedText = JMultiLocaleTranslationValue> =
|
|
52
91
|
| {
|
|
53
92
|
value: string | number
|
|
54
|
-
title:
|
|
93
|
+
title: TText
|
|
55
94
|
}
|
|
56
95
|
| {
|
|
57
96
|
nullValue: true
|
|
58
|
-
title:
|
|
97
|
+
title: TText
|
|
59
98
|
}
|
|
60
99
|
|
|
61
100
|
interface JMouseOver {
|
|
@@ -115,26 +154,64 @@ interface JLabelUpdate extends Omit<JLabel, "rotationUnit" | "rotationOrigin" |
|
|
|
115
154
|
offset: { x: number; y: number }
|
|
116
155
|
}
|
|
117
156
|
|
|
118
|
-
export type RotationDirection = "
|
|
157
|
+
export type RotationDirection = NonNullable<S["VectorLayerDTO"]["rotationDirection"]>
|
|
119
158
|
|
|
120
159
|
export type LabelAnchors = "CENTER" | "LEFT" | "RIGHT" | "TOP" | "BOTTOM" | "TOP_LEFT" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_RIGHT"
|
|
121
160
|
|
|
122
161
|
export type stringOffset = `POINT (${number} ${number})`
|
|
123
162
|
|
|
124
|
-
export type
|
|
163
|
+
export type AttributeType = S["AttributeDTO"]["type"]
|
|
125
164
|
|
|
126
|
-
export type
|
|
165
|
+
export type JAttributeCategory = "numeric" | "string" | "datetime" | "boolean" | "binary" | "other"
|
|
127
166
|
|
|
128
167
|
export type JLayerType = "VECTOR" | "RASTER" | "OGC_API_FEATURES" | "WMS" | "WMTS"
|
|
129
168
|
|
|
130
|
-
export type
|
|
169
|
+
export type LocalizedText = string | JMultiLocaleTranslationValue
|
|
170
|
+
|
|
171
|
+
// `spatialDataSourceOrganizationId` is optional on the shared backend base DTO because it is absent
|
|
172
|
+
// on localized layers, but it is always present on non-localized layer responses — refine it to
|
|
173
|
+
// required here so call sites don't need null guards. It stays optional on `LocalizedLayer`.
|
|
174
|
+
//
|
|
175
|
+
// `attributes` is omitted by the backend (NON_NULL) whenever a layer has none, so it is optional on
|
|
176
|
+
// every generated variant. `attributes` uses the layer domain model, so we
|
|
177
|
+
// retype it as such on every variant. Vector-capable layers (VECTOR / OGC_API_FEATURES) are the only
|
|
178
|
+
// ones that carry feature attributes and the vector-edition flow iterates them unconditionally, so we
|
|
179
|
+
// also refine it to required there and guarantee it at the fetch boundary (`layerSVC.getById`
|
|
180
|
+
// normalizes a missing array to `[]`). WMS/WMTS/raster keep it optional.
|
|
181
|
+
//
|
|
182
|
+
// `baseFilter` is generated as the opaque `Filter` schema (`unknown`), but the app universally treats
|
|
183
|
+
// it as a parsed `JAnyFilterCondition | string` (see `layerSVC`), so we refine it on the two vector
|
|
184
|
+
// variants to match the hand-written `JTable.baseFilter`.
|
|
185
|
+
type WithVectorFields<T> = Omit<T, "attributes" | "baseFilter"> & { attributes: LayerAttribute[]; baseFilter?: JAnyFilterCondition | string }
|
|
186
|
+
type WithOptionalAttributes<T> = Omit<T, "attributes"> & { attributes?: LayerAttribute[] }
|
|
187
|
+
export type Layer = (
|
|
188
|
+
| WithVectorFields<S["VectorLayerDTO"]>
|
|
189
|
+
| WithVectorFields<S["ApiFeaturesLayerDTO"]>
|
|
190
|
+
| WithOptionalAttributes<S["RasterLayerDTO"]>
|
|
191
|
+
| WithOptionalAttributes<S["WmsLayerDTO"]>
|
|
192
|
+
| WithOptionalAttributes<S["WmtsLayerDTO"]>
|
|
193
|
+
) & { spatialDataSourceOrganizationId: string }
|
|
194
|
+
|
|
195
|
+
// The layer variants that carry feature attributes (and the other vector-only fields like
|
|
196
|
+
// `selectable` / `generalizationLevel`). `attributes` is required on these — see `Layer` above.
|
|
197
|
+
export type VectorCapableLayer = Extract<Layer, { type: "VECTOR" | "OGC_API_FEATURES" }>
|
|
198
|
+
|
|
199
|
+
export type WmsLayer = Extract<Layer, { type: "WMS" }>
|
|
200
|
+
|
|
201
|
+
type WithLocalizedAttributes<T> = T extends unknown ? Omit<T, "attributes"> & { attributes?: LayerAttribute<string>[] } : never
|
|
202
|
+
export type LocalizedLayer = WithLocalizedAttributes<NonNullable<S["ResponseGetLocalizedLayer"]["result"]>>
|
|
131
203
|
|
|
132
|
-
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated Use the generated discriminated union `Layer` (and `VectorCapableLayer`) instead.
|
|
206
|
+
* This hand-maintained flat interface is being retired (PRD: adopt server-generated layer types);
|
|
207
|
+
* it survives only for consumers not yet migrated off it.
|
|
208
|
+
*/
|
|
209
|
+
interface JLayer<TText extends LocalizedText = JMultiLocaleTranslationValue> extends JCreationInfo {
|
|
133
210
|
id: string
|
|
134
211
|
organizationId: string
|
|
135
212
|
projectId: string
|
|
136
|
-
name:
|
|
137
|
-
description:
|
|
213
|
+
name: TText
|
|
214
|
+
description: TText
|
|
138
215
|
spatialDataSourceId: string
|
|
139
216
|
elementType: JElementType
|
|
140
217
|
visible: boolean
|
|
@@ -142,18 +219,23 @@ interface JLayer extends JCreationInfo {
|
|
|
142
219
|
maximumZoom: number
|
|
143
220
|
minimumZoom: number
|
|
144
221
|
defaultStyleId: string
|
|
222
|
+
/** @deprecated Legacy mixed attribute view. Use Layer.attributes with LayerAttribute instead. */
|
|
145
223
|
attributes: JAttribute[]
|
|
146
224
|
allowClientSideEditing: boolean
|
|
225
|
+
selectable: boolean
|
|
147
226
|
type: JLayerType
|
|
148
227
|
rotationAttribute?: string
|
|
149
228
|
rotationDirection?: RotationDirection
|
|
150
229
|
labellingConfiguration?: JLabel
|
|
230
|
+
spatialDataSourceOrganizationId: string
|
|
151
231
|
mouseOverConfiguration?: JMouseOver
|
|
152
|
-
generalizationLevel:
|
|
232
|
+
generalizationLevel: GeneralizationLevel
|
|
153
233
|
filter?: string
|
|
154
|
-
baseFilter?: JAnyFilterCondition
|
|
234
|
+
baseFilter?: JAnyFilterCondition | string
|
|
235
|
+
referencingLayerId?: string
|
|
155
236
|
}
|
|
156
237
|
|
|
238
|
+
/** @deprecated Use `Extract<Layer, { type: "WMS" }>` from the generated union instead. */
|
|
157
239
|
interface WMSJLayer extends JLayer {
|
|
158
240
|
layers: string[]
|
|
159
241
|
styles: string[]
|
|
@@ -161,6 +243,7 @@ interface WMSJLayer extends JLayer {
|
|
|
161
243
|
type: "WMS"
|
|
162
244
|
}
|
|
163
245
|
|
|
246
|
+
/** @deprecated Use `Extract<Layer, { type: "WMTS" }>` from the generated union instead. */
|
|
164
247
|
interface WMTSJLayer extends JLayer {
|
|
165
248
|
layer: string
|
|
166
249
|
style: string
|
|
@@ -168,18 +251,19 @@ interface WMTSJLayer extends JLayer {
|
|
|
168
251
|
type: "WMTS"
|
|
169
252
|
}
|
|
170
253
|
|
|
171
|
-
interface JTable extends JCreationInfo {
|
|
254
|
+
interface JTable<TText extends LocalizedText = JMultiLocaleTranslationValue> extends JCreationInfo {
|
|
172
255
|
id: string
|
|
173
256
|
organizationId: string
|
|
174
257
|
projectId: string
|
|
175
|
-
name:
|
|
176
|
-
description:
|
|
258
|
+
name: TText
|
|
259
|
+
description: TText
|
|
177
260
|
dataSourceId: string
|
|
261
|
+
dataSourceOrganizationId: string
|
|
178
262
|
allowClientSideEditing: boolean
|
|
179
263
|
filter?: string
|
|
180
264
|
listed: boolean
|
|
181
|
-
attributes:
|
|
182
|
-
baseFilter?: JAnyFilterCondition
|
|
265
|
+
attributes: TableAttribute<TText>[]
|
|
266
|
+
baseFilter?: JAnyFilterCondition | string
|
|
183
267
|
}
|
|
184
268
|
|
|
185
269
|
declare interface JLanguageOptions {
|
|
@@ -194,7 +278,7 @@ export type JTabularDataSourceType = "TabularDataSource"
|
|
|
194
278
|
|
|
195
279
|
export type JDataSourceType = JSpatialDataSourceType | JTabularDataSourceType
|
|
196
280
|
|
|
197
|
-
export type JStyleType = "
|
|
281
|
+
export type JStyleType = NonNullable<S["StyleDTO"]["type"]>
|
|
198
282
|
|
|
199
283
|
export interface JTag {
|
|
200
284
|
id: string
|
|
@@ -202,18 +286,54 @@ export interface JTag {
|
|
|
202
286
|
name: string
|
|
203
287
|
}
|
|
204
288
|
|
|
205
|
-
|
|
289
|
+
type ApiStyleCommonOverrides<TStyleType extends NonNullable<S["StyleDTO"]["type"]>> = JStyleBase &
|
|
290
|
+
JCreationInfo & {
|
|
291
|
+
type: TStyleType
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type JLineStyleDTO = ApiStyleCommonOverrides<"LINE"> &
|
|
295
|
+
Omit<S["LineStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "transparency" | "lineColor" | "arrowColor" | "lineCap" | "lineJoin"> & {
|
|
296
|
+
arrowColor: string
|
|
297
|
+
lineCap: JLineCap
|
|
298
|
+
lineColor: string
|
|
299
|
+
lineJoin: JLineJoin
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export type JPointStyleDTO = ApiStyleCommonOverrides<"POINT"> &
|
|
303
|
+
Omit<S["PointStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "transparency" | "symbolOffset" | "symbolMimeType"> & {
|
|
304
|
+
symbolMimeType: string
|
|
305
|
+
symbolOffset: string
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export type JPolygonStyleDTO = ApiStyleCommonOverrides<"POLYGON"> &
|
|
309
|
+
Omit<S["PolygonStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "transparency" | "fillColor" | "borderColor" | "patternBackgroundColor"> & {
|
|
310
|
+
borderColor: string
|
|
311
|
+
fillColor: string
|
|
312
|
+
patternBackgroundColor?: string
|
|
313
|
+
transparentFill?: boolean
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export type JTextAnnotationStyleDTO = ApiStyleCommonOverrides<"TEXT"> &
|
|
317
|
+
Omit<S["TextStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "transparency" | "textColor" | "outlineColor" | "typeface"> & {
|
|
318
|
+
outlineColor: string | undefined
|
|
319
|
+
textColor: string
|
|
320
|
+
typeface: JTYPEFACE
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export type JImageStyleDTO = ApiStyleCommonOverrides<"IMAGE"> & Omit<S["ImageStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "transparency">
|
|
324
|
+
|
|
325
|
+
export type JAllStyleDTO = JCompoundStyleDTO | JPolygonStyleDTO | JPointStyleDTO | JLineStyleDTO | JImageStyleDTO | JTextAnnotationStyleDTO
|
|
206
326
|
|
|
207
327
|
export type JAllStyleParams = JCompoundStyleParams | JPolygonStyleParams | JPointStyleParams | JLineStyleParams | JImageStyleParams | JTextAnnotationStyleParams
|
|
208
328
|
|
|
209
329
|
export type JAllStyle = JCompoundStyle | JPolygonStyle | JPointStyle | JLineStyle | JImageStyle | JTextAnnotationStyle
|
|
210
330
|
|
|
211
331
|
export interface JStyleBase {
|
|
212
|
-
id:
|
|
213
|
-
organizationId:
|
|
214
|
-
name:
|
|
332
|
+
id: NonNullable<S["StyleDTO"]["id"]>
|
|
333
|
+
organizationId: NonNullable<S["StyleDTO"]["organizationId"]>
|
|
334
|
+
name: NonNullable<S["StyleDTO"]["name"]>
|
|
215
335
|
description?: string
|
|
216
|
-
transparency:
|
|
336
|
+
transparency: NonNullable<S["SimpleStyleDTO"]["transparency"]>
|
|
217
337
|
tags: JTag[]
|
|
218
338
|
}
|
|
219
339
|
|
|
@@ -226,13 +346,13 @@ export interface JStyleParamsBase {
|
|
|
226
346
|
tags: string[]
|
|
227
347
|
}
|
|
228
348
|
|
|
229
|
-
export interface JCompoundStyleDTO extends JCreationInfo {
|
|
349
|
+
export interface JCompoundStyleDTO extends JCreationInfo, Omit<S["CompoundStyleDTO"], "id" | "organizationId" | "name" | "description" | "tags" | "type" | "styles" | keyof JCreationInfo> {
|
|
230
350
|
type: "COMPOUND"
|
|
231
|
-
id:
|
|
232
|
-
organizationId:
|
|
233
|
-
name:
|
|
234
|
-
description:
|
|
235
|
-
styles: Array<JPointStyleDTO |
|
|
351
|
+
id: NonNullable<S["CompoundStyleDTO"]["id"]>
|
|
352
|
+
organizationId: NonNullable<S["CompoundStyleDTO"]["organizationId"]>
|
|
353
|
+
name: NonNullable<S["CompoundStyleDTO"]["name"]>
|
|
354
|
+
description: NonNullable<S["CompoundStyleDTO"]["description"]>
|
|
355
|
+
styles: Array<JPointStyleDTO | JLineStyleDTO>
|
|
236
356
|
}
|
|
237
357
|
|
|
238
358
|
export interface JCompoundStyleParams {
|
|
@@ -253,14 +373,7 @@ export interface JCompoundStyle extends JCreationInfo {
|
|
|
253
373
|
styles: Array<JPointStyle | JLineStyle>
|
|
254
374
|
}
|
|
255
375
|
|
|
256
|
-
|
|
257
|
-
type: "TEXT"
|
|
258
|
-
bold: boolean
|
|
259
|
-
italic: boolean
|
|
260
|
-
typeface: JTYPEFACE
|
|
261
|
-
textColor: string
|
|
262
|
-
outlineColor: string | undefined
|
|
263
|
-
}
|
|
376
|
+
type JTextAnnotationStyle = JTextAnnotationStyleDTO
|
|
264
377
|
|
|
265
378
|
interface JTextAnnotationStyleParams extends JStyleParamsBase {
|
|
266
379
|
type: "TEXT"
|
|
@@ -271,17 +384,7 @@ interface JTextAnnotationStyleParams extends JStyleParamsBase {
|
|
|
271
384
|
tags: string[]
|
|
272
385
|
}
|
|
273
386
|
|
|
274
|
-
|
|
275
|
-
type: "POLYGON"
|
|
276
|
-
fillColor: string
|
|
277
|
-
borderColor: string
|
|
278
|
-
transparentFill: boolean
|
|
279
|
-
borderThickness: number
|
|
280
|
-
borderTransparency: number
|
|
281
|
-
patternData: string
|
|
282
|
-
borderDashPattern?: number[]
|
|
283
|
-
borderPatternData: string
|
|
284
|
-
}
|
|
387
|
+
type JPolygonStyle = JPolygonStyleDTO
|
|
285
388
|
|
|
286
389
|
interface JPolygonStyleParams extends JStyleParamsBase {
|
|
287
390
|
type: "POLYGON"
|
|
@@ -291,50 +394,35 @@ interface JPolygonStyleParams extends JStyleParamsBase {
|
|
|
291
394
|
borderThickness: number
|
|
292
395
|
borderTransparency: number
|
|
293
396
|
patternData: string
|
|
397
|
+
patternBackgroundColor?: string
|
|
398
|
+
showPatternBackgroundColor?: boolean
|
|
294
399
|
borderDashPattern?: number[]
|
|
295
400
|
borderPatternData: string
|
|
296
401
|
tags: string[]
|
|
297
402
|
}
|
|
298
403
|
|
|
299
|
-
|
|
300
|
-
type: "LINE"
|
|
301
|
-
lineThickness: number
|
|
302
|
-
lineColor: string
|
|
303
|
-
arrowType: JArrowType
|
|
304
|
-
arrowPosition: number
|
|
305
|
-
lineCap: JLineCap
|
|
306
|
-
lineJoin: JLineJoin
|
|
307
|
-
lineMiterLimit: number
|
|
308
|
-
lineRoundLimit: number
|
|
309
|
-
dashPattern?: number[]
|
|
310
|
-
patternData: string
|
|
311
|
-
}
|
|
404
|
+
export type JLineStyle = JLineStyleDTO
|
|
312
405
|
|
|
313
406
|
interface JLineStyleParams extends JStyleParamsBase {
|
|
314
407
|
type: "LINE"
|
|
315
408
|
lineThickness: number
|
|
316
409
|
lineColor: string
|
|
317
|
-
|
|
318
|
-
|
|
410
|
+
arrowActive: boolean
|
|
411
|
+
arrowColor: string
|
|
412
|
+
arrowSize: number
|
|
413
|
+
arrowTransparency: number
|
|
319
414
|
lineCap: JLineCap
|
|
320
415
|
lineJoin: JLineJoin
|
|
321
416
|
lineMiterLimit: number
|
|
322
417
|
lineRoundLimit: number
|
|
323
418
|
dashPattern?: number[]
|
|
324
419
|
patternData?: string
|
|
420
|
+
linePatternData?: string
|
|
325
421
|
tags: string[]
|
|
326
422
|
}
|
|
327
423
|
|
|
328
|
-
interface JPointStyle extends
|
|
329
|
-
type: "POINT"
|
|
330
|
-
size: number
|
|
331
|
-
rotation: number
|
|
332
|
-
rotationLocked: boolean
|
|
333
|
-
proportional: boolean
|
|
334
|
-
proportionalScale: number
|
|
424
|
+
interface JPointStyle extends Omit<JPointStyleDTO, "symbolOffset"> {
|
|
335
425
|
symbolOffset: { x: number; y: number }
|
|
336
|
-
symbolData: string
|
|
337
|
-
symbolMimeType: string
|
|
338
426
|
}
|
|
339
427
|
|
|
340
428
|
interface JPointStyleParams extends JStyleParamsBase {
|
|
@@ -350,50 +438,50 @@ interface JPointStyleParams extends JStyleParamsBase {
|
|
|
350
438
|
tags: string[]
|
|
351
439
|
}
|
|
352
440
|
|
|
353
|
-
|
|
354
|
-
type: "POINT"
|
|
355
|
-
size: number
|
|
356
|
-
rotation: number
|
|
357
|
-
rotationLocked: boolean
|
|
358
|
-
proportional: boolean
|
|
359
|
-
proportionalScale: number
|
|
360
|
-
symbolOffset: string
|
|
361
|
-
symbolData: string
|
|
362
|
-
symbolMimeType: string
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
interface JImageStyle extends JStyleBase, JCreationInfo {
|
|
366
|
-
type: "IMAGE"
|
|
367
|
-
transparency: number
|
|
368
|
-
}
|
|
441
|
+
type JImageStyle = JImageStyleDTO
|
|
369
442
|
|
|
370
443
|
interface JImageStyleParams extends JStyleParamsBase {
|
|
371
444
|
type: "IMAGE"
|
|
372
445
|
tags: string[]
|
|
373
446
|
}
|
|
374
447
|
|
|
375
|
-
export type JLineJoin = "
|
|
448
|
+
export type JLineJoin = NonNullable<S["LineStyleDTO"]["lineJoin"]>
|
|
376
449
|
|
|
377
|
-
export type JArrowType = "NONE" | "FORWARD" | "BACKWARD"
|
|
450
|
+
// export type JArrowType = "NONE" | "FORWARD" | "BACKWARD"
|
|
378
451
|
|
|
379
|
-
export type JLineCap = "
|
|
452
|
+
export type JLineCap = NonNullable<S["LineStyleDTO"]["lineCap"]>
|
|
380
453
|
|
|
381
454
|
export type JDataSource = JSpatialDataSource | JTabularDataSource
|
|
382
455
|
|
|
383
456
|
export type JSpatialDataSource = JRasterDataSource | JWmsWmtsDataSource | JFileDataSource | JVectorDataSource | JApiFeaturesDataSource | JCustomViewDataSource
|
|
384
457
|
|
|
458
|
+
export type IncludeMode = "all" | "myOrganization" | "otherOrganizations"
|
|
459
|
+
|
|
385
460
|
interface JDataSourceBase extends JCreationInfo {
|
|
386
461
|
id: string
|
|
387
462
|
organizationId: string
|
|
388
463
|
name: string
|
|
389
464
|
description: string
|
|
390
|
-
status:
|
|
391
|
-
attributes:
|
|
465
|
+
status: NonNullable<components["schemas"]["AbstractDataSourceDTO"]["status"]>
|
|
466
|
+
attributes: DataSourceAttribute[]
|
|
467
|
+
owners?: string[]
|
|
468
|
+
specs?: DataSourceSpecs
|
|
392
469
|
tags: JTag[]
|
|
393
470
|
type: JDataSourceType
|
|
471
|
+
userMetadata?: UserMetadata[]
|
|
394
472
|
additionalInfo?: JDataSourceAdditionalInfo
|
|
395
473
|
}
|
|
396
474
|
|
|
475
|
+
export type UserMetadataSystemPredefinedId = "DESCRIPTION" | "SOURCE" | "PRODUCTION_DATE" | "UPDATED_DATE" | "EXTERNAL_METADATA_URL"
|
|
476
|
+
export type UserMetadataId = UserMetadataSystemPredefinedId | (string & {})
|
|
477
|
+
|
|
478
|
+
export interface UserMetadata<TText extends LocalizedText = JMultiLocaleTranslationValue> {
|
|
479
|
+
id: UserMetadataId
|
|
480
|
+
type: "TEXT" | "DATE"
|
|
481
|
+
title?: TText
|
|
482
|
+
value?: TText | string
|
|
483
|
+
}
|
|
484
|
+
|
|
397
485
|
interface JApiFeaturesDataSource extends JDataSourceBase {
|
|
398
486
|
type: "ApiFeaturesDataSource"
|
|
399
487
|
crs: string
|
|
@@ -405,7 +493,7 @@ interface JRasterDataSource extends JDataSourceBase {
|
|
|
405
493
|
type: "RasterDataSource"
|
|
406
494
|
crs: string
|
|
407
495
|
fileIds: string[]
|
|
408
|
-
rasterInfo
|
|
496
|
+
rasterInfo?: S["RasterInfoDTO"] | null
|
|
409
497
|
}
|
|
410
498
|
|
|
411
499
|
interface JWmsWmtsDataSource extends JDataSourceBase {
|
|
@@ -417,24 +505,77 @@ interface JWmsWmtsDataSource extends JDataSourceBase {
|
|
|
417
505
|
interface JFileDataSource extends JDataSourceBase {
|
|
418
506
|
type: "FileDataSource"
|
|
419
507
|
crs: string
|
|
420
|
-
linkAttribute?:
|
|
508
|
+
linkAttribute?: DataSourceAttribute
|
|
421
509
|
}
|
|
422
510
|
|
|
423
511
|
interface JCustomViewDataSource extends JDataSourceBase {
|
|
424
512
|
type: "CustomViewDataSource"
|
|
425
513
|
crs: string
|
|
426
|
-
linkAttribute?:
|
|
514
|
+
linkAttribute?: DataSourceAttribute
|
|
427
515
|
}
|
|
428
516
|
|
|
429
517
|
interface JVectorDataSource extends JDataSourceBase {
|
|
430
518
|
type: "VectorDataSource"
|
|
431
519
|
crs: string
|
|
432
|
-
linkAttribute?:
|
|
520
|
+
linkAttribute?: DataSourceAttribute
|
|
433
521
|
}
|
|
434
522
|
|
|
435
523
|
interface JTabularDataSource extends JDataSourceBase {
|
|
436
524
|
type: "TabularDataSource"
|
|
437
|
-
linkAttribute?:
|
|
525
|
+
linkAttribute?: DataSourceAttribute
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export interface DataSourceSpecs {
|
|
529
|
+
files?: NonNullable<S["DataSourceSpecs"]["files"]>
|
|
530
|
+
layers?: NonNullable<S["DataSourceSpecs"]["layers"]>
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export type JStyleResourceDTO = S["SymbologyResourceDTO"]
|
|
534
|
+
|
|
535
|
+
export type JStyleResourceTagDTO = S["TagDTO"]
|
|
536
|
+
|
|
537
|
+
export type JStyleResourceType = NonNullable<JStyleResourceDTO["resourceType"]>
|
|
538
|
+
|
|
539
|
+
export interface JStyleResourceFilters {
|
|
540
|
+
q?: string
|
|
541
|
+
type?: JStyleResourceType
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export interface JStyleResourcePageDTO {
|
|
545
|
+
page?: {
|
|
546
|
+
number?: number
|
|
547
|
+
size?: number
|
|
548
|
+
totalElements?: number
|
|
549
|
+
totalPages?: number
|
|
550
|
+
}
|
|
551
|
+
result?: JStyleResourceDTO[]
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export interface JStyleResourceTag {
|
|
555
|
+
id: string
|
|
556
|
+
name: string
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export interface JStyleResource {
|
|
560
|
+
createdBy?: string
|
|
561
|
+
creationDate?: string
|
|
562
|
+
global: boolean
|
|
563
|
+
id: string
|
|
564
|
+
lastModificationDate?: string
|
|
565
|
+
lastModifiedBy?: string
|
|
566
|
+
name: string
|
|
567
|
+
organizationId?: string
|
|
568
|
+
resourceData: string
|
|
569
|
+
resourceType: JStyleResourceType
|
|
570
|
+
tags: JStyleResourceTag[]
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export interface JStyleResourcePage {
|
|
574
|
+
pageNumber: number
|
|
575
|
+
pageSize: number
|
|
576
|
+
resources: JStyleResource[]
|
|
577
|
+
totalElements: number
|
|
578
|
+
totalPages: number
|
|
438
579
|
}
|
|
439
580
|
|
|
440
581
|
export interface JDataSourceAdditionalInfo {
|
|
@@ -454,32 +595,67 @@ export interface JDataSourceReference {
|
|
|
454
595
|
|
|
455
596
|
export type JGEOMETRY_TYPES = "POINT" | "CURVE" | "SURFACE" | "ANNOTATION" | "COMPLEX" | "NONE"
|
|
456
597
|
|
|
457
|
-
|
|
598
|
+
/** Style-rule family, as classified by the backend when the rule is created. */
|
|
599
|
+
export type StyleRuleSpecsType = NonNullable<S["StyleRuleSpecs"]["type"]>
|
|
600
|
+
/** Classification method used to compute class-breaks. */
|
|
601
|
+
export type StyleRuleSpecsMethod = NonNullable<S["StyleRuleSpecs"]["method"]>
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Structured hints stored on the rule root describing how it was built.
|
|
605
|
+
* `type` is required whenever `specs` is present; legacy rules have no `specs`.
|
|
606
|
+
*/
|
|
607
|
+
export interface StyleRuleSpecs {
|
|
608
|
+
type: StyleRuleSpecsType
|
|
609
|
+
method?: StyleRuleSpecsMethod
|
|
610
|
+
attributes?: string[]
|
|
611
|
+
}
|
|
458
612
|
|
|
459
|
-
|
|
613
|
+
export type StyleRule = JCreationInfo & {
|
|
460
614
|
id: string
|
|
461
615
|
name: JMultiLocaleTranslationValue
|
|
462
616
|
active: boolean
|
|
463
|
-
defaultRule: boolean
|
|
464
617
|
conditions: JRuleCondition[]
|
|
618
|
+
specs?: StyleRuleSpecs
|
|
619
|
+
arrowType?: S["StyleRuleDTO"]["arrowType"]
|
|
620
|
+
arrowConfiguration?: ArrowConfiguration
|
|
621
|
+
extrusionConfiguration?: S["ExtrusionConfigurationDTO"]
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export type ArrowStyleRule =
|
|
625
|
+
| {
|
|
626
|
+
arrowType: "NONE"
|
|
627
|
+
arrowConfiguration?: ArrowConfiguration
|
|
628
|
+
}
|
|
629
|
+
| {
|
|
630
|
+
arrowType: "FIXED_DIRECTION"
|
|
631
|
+
arrowConfiguration: ArrowConfiguration
|
|
632
|
+
}
|
|
633
|
+
| {
|
|
634
|
+
arrowType: "VARIABLE_DIRECTION"
|
|
635
|
+
arrowConfiguration: ArrowConfiguration
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export type ArrowConfiguration = {
|
|
639
|
+
arrowDirection?: "FORWARD" | "BACKWARD"
|
|
640
|
+
directionAttribute?: string
|
|
641
|
+
forwardValue?: string | number | null
|
|
642
|
+
backwardValue?: string | number | null
|
|
465
643
|
}
|
|
466
644
|
|
|
467
|
-
interface JRuleCondition {
|
|
645
|
+
export interface JRuleCondition {
|
|
468
646
|
id: string
|
|
469
647
|
name: JMultiLocaleTranslationValue
|
|
470
648
|
conditionExpressions: JConditionExpression[]
|
|
471
649
|
styleMapScales: JStyleMapScale[]
|
|
472
650
|
}
|
|
473
651
|
|
|
474
|
-
interface JConditionExpression {
|
|
652
|
+
export interface JConditionExpression {
|
|
475
653
|
id: string
|
|
476
|
-
attribute:
|
|
477
|
-
operator:
|
|
654
|
+
attribute: AttributeDefinition & { id: string }
|
|
655
|
+
operator: NonNullable<components["schemas"]["ConditionExpressionDTO"]["operator"]>
|
|
478
656
|
value: any
|
|
479
657
|
}
|
|
480
658
|
|
|
481
|
-
export type JLogicalOperator = "EMPTY" | "NOT_EMPTY" | "IS_NULL" | "IS_NOT_NULL" | "EQUALS" | "NOT_EQUALS" | "GREATER_THAN" | "GREATER_OR_EQUALS_TO" | "LOWER_THAN" | "LOWER_OR_EQUALS_TO"
|
|
482
|
-
|
|
483
659
|
interface JStyleMapScale {
|
|
484
660
|
id: string
|
|
485
661
|
minimumZoom: number
|
|
@@ -487,6 +663,19 @@ interface JStyleMapScale {
|
|
|
487
663
|
styleId: string
|
|
488
664
|
}
|
|
489
665
|
|
|
666
|
+
/** Write payload for creating a style rule (full aggregate body). */
|
|
667
|
+
export type StyleRuleWrite = S["ParamCreateStyleRule"]
|
|
668
|
+
/** Write payload for patching a style rule's scalars, incl. `specs`. */
|
|
669
|
+
export type StyleRuleUpdate = S["ParamUpdateStyleRule"]
|
|
670
|
+
/** Write payload for a single rule condition. */
|
|
671
|
+
export type RuleConditionWrite = S["ParamCreateRuleCondition"]
|
|
672
|
+
/** Write payload for replacing the whole condition tree (bulk PUT). */
|
|
673
|
+
export type RuleConditionsWrite = S["ParamReplaceRuleConditions"]
|
|
674
|
+
/** Write payload for patching one rule condition (name-only by design). */
|
|
675
|
+
export type RuleConditionUpdate = S["ParamUpdateRuleCondition"]
|
|
676
|
+
/** Write payload for creating or updating one condition expression. */
|
|
677
|
+
export type ConditionExpressionWrite = S["ParamCreateOrUpdateConditionExpression"]
|
|
678
|
+
|
|
490
679
|
export type JCardinality = "ONE_TO_ONE" | "ONE_TO_MANY"
|
|
491
680
|
|
|
492
681
|
declare interface JExtent {
|
|
@@ -506,13 +695,16 @@ declare interface JRelationshipParams {
|
|
|
506
695
|
|
|
507
696
|
declare interface JRelationship {
|
|
508
697
|
id: string
|
|
698
|
+
/** organizationId is the organization id of the referencedDataSourceId */
|
|
699
|
+
organizationId: string
|
|
509
700
|
referencedDataSourceId: string
|
|
510
701
|
referencedAttributeName: string
|
|
511
702
|
referencingDataSourceId: string
|
|
703
|
+
referencingOrganizationId: string
|
|
512
704
|
referencingAttributeName: string
|
|
513
705
|
cardinality: JCardinality
|
|
514
706
|
referencingPrefix: string
|
|
515
|
-
referencingAttributes?:
|
|
707
|
+
referencingAttributes?: DataSourceAttribute[]
|
|
516
708
|
}
|
|
517
709
|
|
|
518
710
|
/**
|
|
@@ -521,9 +713,12 @@ declare interface JRelationship {
|
|
|
521
713
|
*
|
|
522
714
|
*/
|
|
523
715
|
|
|
524
|
-
export type FormComponentKeys = "Label" | "Text" | "Number" | "Boolean" | "Date" | "List" | "Column" | "Row" | "Group" | "Tabs" | "Tab" | "Space" | "Attachment"
|
|
716
|
+
export type FormComponentKeys = "Label" | "Text" | "Number" | "Boolean" | "Date" | "List" | "Column" | "Row" | "Group" | "Tabs" | "Tab" | "Space" | "Attachment" | "Table"
|
|
525
717
|
|
|
526
|
-
|
|
718
|
+
// The form's data schema is a narrowed JSON Schema 7 (the exact shape `<JsonForms schema>` consumes).
|
|
719
|
+
// We extend the library type so these stay structurally valid JSON Schema and inherit its field
|
|
720
|
+
// contracts, while pinning the keywords the builder actually edits.
|
|
721
|
+
export interface FormSchema extends JsonSchema7 {
|
|
527
722
|
type: "object"
|
|
528
723
|
properties: {
|
|
529
724
|
[key: string]: FormSchemaProperty
|
|
@@ -531,13 +726,8 @@ export interface FormSchema {
|
|
|
531
726
|
required: string[]
|
|
532
727
|
}
|
|
533
728
|
|
|
534
|
-
export interface FormSchemaProperty {
|
|
729
|
+
export interface FormSchemaProperty extends Pick<JsonSchema7, "format" | "title" | "default" | "minimum" | "maximum"> {
|
|
535
730
|
type: FORMSCHEMA_TYPES | FORMSCHEMA_TYPES[]
|
|
536
|
-
format?: string
|
|
537
|
-
title?: string
|
|
538
|
-
default?: any
|
|
539
|
-
minimum?: number
|
|
540
|
-
maximum?: number
|
|
541
731
|
oneOf?: Array<{ const: string | number | null; title?: string }>
|
|
542
732
|
}
|
|
543
733
|
|
|
@@ -546,16 +736,19 @@ export interface JDragPosition {
|
|
|
546
736
|
index: number
|
|
547
737
|
}
|
|
548
738
|
|
|
549
|
-
|
|
739
|
+
// Every node extends JSON Forms' BaseUISchemaElement, so the whole tree is assignable to
|
|
740
|
+
// UISchemaElement (valid `<JsonForms uischema>` input) and inherits `rule` (conditional
|
|
741
|
+
// show/hide) and the `options` bag. We keep the discriminated `type`/`designComponent` and
|
|
742
|
+
// narrow `options` per component, which the form builder relies on.
|
|
743
|
+
interface FormNodeBase extends BaseUISchemaElement {
|
|
550
744
|
type: string
|
|
551
745
|
designComponent: FormComponentKeys
|
|
552
746
|
id: string
|
|
553
747
|
}
|
|
554
748
|
|
|
555
|
-
export interface FormNodeControl extends FormNodeBase {
|
|
749
|
+
export interface FormNodeControl extends FormNodeBase, Scoped {
|
|
556
750
|
type: "Control"
|
|
557
751
|
title?: string
|
|
558
|
-
scope: string
|
|
559
752
|
options: {
|
|
560
753
|
readonly: boolean
|
|
561
754
|
}
|
|
@@ -567,6 +760,19 @@ export interface FormNodeAttachment extends FormNodeBase {
|
|
|
567
760
|
title?: string
|
|
568
761
|
}
|
|
569
762
|
|
|
763
|
+
export interface FormNodeTable extends FormNodeBase {
|
|
764
|
+
designComponent: "Table"
|
|
765
|
+
type: "Table"
|
|
766
|
+
title?: string
|
|
767
|
+
options: {
|
|
768
|
+
table?: {
|
|
769
|
+
relationshipId: string
|
|
770
|
+
attributeNames: string[]
|
|
771
|
+
attributeNameSorted?: string
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
570
776
|
export interface FormNodeLabel extends FormNodeBase {
|
|
571
777
|
designComponent: "Label"
|
|
572
778
|
type: "Label"
|
|
@@ -590,8 +796,8 @@ export interface FormNodeBoolean extends FormNodeControl {
|
|
|
590
796
|
options: FormNodeControl["options"] & {
|
|
591
797
|
toggle: boolean
|
|
592
798
|
asBoolean: boolean
|
|
593
|
-
checkedValue: string | number | null
|
|
594
|
-
uncheckedValue: string | number | null
|
|
799
|
+
checkedValue: string | number | boolean | null
|
|
800
|
+
uncheckedValue: string | number | boolean | null
|
|
595
801
|
}
|
|
596
802
|
}
|
|
597
803
|
export interface FormNodeDate extends FormNodeControl {
|
|
@@ -604,7 +810,7 @@ export interface FormNodeList extends FormNodeControl {
|
|
|
604
810
|
}
|
|
605
811
|
}
|
|
606
812
|
|
|
607
|
-
export interface FormNodeLayout extends FormNodeBase {
|
|
813
|
+
export interface FormNodeLayout extends FormNodeBase, Layout {
|
|
608
814
|
type: string
|
|
609
815
|
elements: FormNode[]
|
|
610
816
|
}
|
|
@@ -649,11 +855,11 @@ export interface FormNodeSpace extends FormNodeLayout {
|
|
|
649
855
|
export type FormNodesControl = FormNodeText | FormNodeNumber | FormNodeBoolean | FormNodeDate | FormNodeList
|
|
650
856
|
export type FormNodesLayout = FormNodeVertical | FormNodeHorizontal | FormNodeGroup | FormNodeTabs | FormNodeTab | FormNodeSpace
|
|
651
857
|
|
|
652
|
-
export type FormNode = FormNodesControl | FormNodesLayout | FormNodeLabel | FormNodeAttachment
|
|
858
|
+
export type FormNode = FormNodesControl | FormNodesLayout | FormNodeLabel | FormNodeAttachment | FormNodeTable
|
|
653
859
|
|
|
654
860
|
export interface JForm extends JCreationInfo {
|
|
655
861
|
id: string
|
|
656
|
-
name:
|
|
862
|
+
name: JMultiLocaleTranslationValue
|
|
657
863
|
organizationId: string
|
|
658
864
|
uiSchema: FormNodeVertical
|
|
659
865
|
formSchema: FormSchema
|
|
@@ -661,6 +867,23 @@ export interface JForm extends JCreationInfo {
|
|
|
661
867
|
dataSourceId: string
|
|
662
868
|
}
|
|
663
869
|
|
|
870
|
+
export type ReportType = "SIMPLE" | "MULTIPLE"
|
|
871
|
+
export type JReportAssignment = S["ReportAssignmentDTO"] & Required<Pick<S["ReportAssignmentDTO"], "id" | "name">> & { type: ReportType }
|
|
872
|
+
|
|
873
|
+
// MCS report entity: list responses omit the template; the datasource-scoped GET includes it.
|
|
874
|
+
// Repositories choose the type argument to match the endpoint's response.
|
|
875
|
+
export type Report<WithTemplate extends boolean = false> = {
|
|
876
|
+
mapComponent?: S["ReportDTO"]["mapComponent"]
|
|
877
|
+
type: ReportType
|
|
878
|
+
id: string
|
|
879
|
+
name: JMultiLocaleTranslationValue
|
|
880
|
+
organizationId: string
|
|
881
|
+
dataSourceId: string
|
|
882
|
+
creationDate: string
|
|
883
|
+
lastModificationDate: string
|
|
884
|
+
tags: JTag[]
|
|
885
|
+
} & (WithTemplate extends true ? { template: Record<string, unknown> } : { template?: never })
|
|
886
|
+
|
|
664
887
|
/**
|
|
665
888
|
*
|
|
666
889
|
|
|
@@ -768,6 +991,9 @@ export type JAnyFilterCondition =
|
|
|
768
991
|
| JBaseFilterConditionAnd
|
|
769
992
|
| JBaseFilterConditionNot
|
|
770
993
|
|
|
994
|
+
export type JAnyFilterConditionFrontend = Exclude<JAnyFilterCondition, JBaseFilterConditionLike>
|
|
995
|
+
export type JAnyFilterConditionBackend = Exclude<JAnyFilterCondition, JBaseFilterConditionContains | JBaseFilterConditionStartsWith | JBaseFilterConditionEndsWith>
|
|
996
|
+
|
|
771
997
|
// -----------------------------------------------------------------------------
|
|
772
998
|
// Filter composition
|
|
773
999
|
// -----------------------------------------------------------------------------
|
|
@@ -800,15 +1026,24 @@ export type JDynamicFilterType = "layer" | "table"
|
|
|
800
1026
|
export interface JDynamicFilterParams {
|
|
801
1027
|
id: string
|
|
802
1028
|
active: boolean
|
|
1029
|
+
resourceId: string
|
|
803
1030
|
name: JMultiLocaleTranslationValue
|
|
804
|
-
filter: JAnyFilterCondition
|
|
1031
|
+
filter: JAnyFilterCondition | string
|
|
805
1032
|
}
|
|
806
1033
|
|
|
807
|
-
export interface
|
|
808
|
-
|
|
1034
|
+
export interface JDynamicFilter extends JDynamicFilterParams {}
|
|
1035
|
+
|
|
1036
|
+
export interface JDynamicFilterDTO {
|
|
1037
|
+
id: string
|
|
1038
|
+
active: boolean
|
|
1039
|
+
resourceId: string
|
|
1040
|
+
name: JMultiLocaleTranslationValue
|
|
1041
|
+
filter: JAnyFilterCondition | string
|
|
809
1042
|
}
|
|
810
1043
|
|
|
811
|
-
export
|
|
812
|
-
|
|
1044
|
+
export interface JDynamicFilterGraphQL extends Omit<JDynamicFilterDTO, "name"> {
|
|
1045
|
+
name: string
|
|
1046
|
+
filter: JAnyFilterCondition | string
|
|
1047
|
+
}
|
|
813
1048
|
|
|
814
|
-
export type JAnyDynamicFilter =
|
|
1049
|
+
export type JAnyDynamicFilter = JDynamicFilter | JDynamicFilterGraphQL
|