@lblod/ember-rdfa-editor-lblod-plugins 33.0.0 → 33.1.0-dev.367f7322beb7deee231dd44356f445bd1d6515fd
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/.changeset/eleven-jeans-yell.md +5 -0
- package/CHANGELOG.md +10 -0
- package/addon/components/besluit-topic-plugin/besluit-topic-toolbar-dropdown.ts +1 -1
- package/addon/components/besluit-type-plugin/toolbar-dropdown.gts +1 -1
- package/addon/components/decision-plugin/decision-plugin-card.gts +3 -2
- package/addon/components/decision-plugin/insert-article.gts +1 -1
- package/addon/components/document-validation-plugin/card.gts +130 -33
- package/addon/components/lpdc-plugin/lpdc-insert.ts +1 -1
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.gts +1 -1
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.gts +1 -1
- package/addon/plugins/besluit-type-plugin/utils/besluit-type-instances.ts +1 -1
- package/addon/plugins/besluit-type-plugin/utils/set-besluit-type.ts +1 -1
- package/addon/plugins/decision-plugin/commands/insert-article-container.ts +14 -1
- package/addon/plugins/decision-plugin/commands/insert-description.ts +9 -1
- package/addon/plugins/decision-plugin/commands/insert-motivation.ts +9 -1
- package/addon/plugins/decision-plugin/commands/insert-title.ts +9 -1
- package/addon/plugins/document-validation-plugin/common-fixes.ts +125 -0
- package/addon/plugins/document-validation-plugin/index.ts +61 -32
- package/addon/plugins/roadsign-regulation-plugin/actions/insert-measure.ts +69 -18
- package/addon/plugins/roadsign-regulation-plugin/queries/mobility-measure-concept.ts +9 -1
- package/addon/plugins/roadsign-regulation-plugin/schemas/mobility-measure-preview.ts +22 -0
- package/addon/plugins/roadsign-regulation-plugin/schemas/traffic-signal.ts +18 -0
- package/addon/plugins/roadsign-regulation-plugin/schemas/variable-instance.ts +55 -0
- package/addon/plugins/roadsign-regulation-plugin/schemas/variable.ts +6 -6
- package/addon/{plugins/besluit-topic-plugin/utils/helpers.ts → utils/decision-utils.ts} +33 -9
- package/declarations/addon/components/document-validation-plugin/card.d.ts +51 -1
- package/declarations/addon/plugins/decision-plugin/commands/insert-article-container.d.ts +3 -1
- package/declarations/addon/plugins/document-validation-plugin/common-fixes.d.ts +6 -0
- package/declarations/addon/plugins/document-validation-plugin/index.d.ts +30 -6
- package/declarations/addon/plugins/roadsign-regulation-plugin/actions/insert-measure.d.ts +10 -5
- package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/mobility-measure-preview.d.ts +279 -0
- package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/traffic-signal.d.ts +90 -0
- package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/variable-instance.d.ts +246 -0
- package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/variable.d.ts +120 -0
- package/declarations/addon/{plugins/besluit-topic-plugin/utils/helpers.d.ts → utils/decision-utils.d.ts} +5 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +5 -5
- package/translations/en-US.yaml +1 -0
- package/translations/nl-BE.yaml +1 -0
|
@@ -1,20 +1,43 @@
|
|
|
1
|
-
import { ProsePlugin, PluginKey, EditorView } from '@lblod/ember-rdfa-editor';
|
|
1
|
+
import { ProsePlugin, PluginKey, EditorView, SayController } from '@lblod/ember-rdfa-editor';
|
|
2
2
|
import { DataFactory, DatasetCore, DatasetCoreFactory, Quad } from '@rdfjs/types';
|
|
3
3
|
import ValidationReport from 'rdf-validate-shacl/src/validation-report';
|
|
4
4
|
export declare const documentValidationPluginKey: PluginKey<DocumentValidationPluginState>;
|
|
5
|
-
|
|
5
|
+
type Violation = {
|
|
6
|
+
action: (controller: SayController, report: ValidationReport) => void;
|
|
7
|
+
buttonTitle: string;
|
|
8
|
+
} | {
|
|
9
|
+
helpText: string;
|
|
10
|
+
};
|
|
11
|
+
type Rule = {
|
|
12
|
+
shaclRule: string;
|
|
13
|
+
violations: {
|
|
14
|
+
[key: string]: Violation;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
shaclRule: string;
|
|
18
|
+
action: (controller: SayController, report: ValidationReport) => void;
|
|
19
|
+
buttonTitle: string;
|
|
20
|
+
} | {
|
|
21
|
+
shaclRule: string;
|
|
22
|
+
helpText: string;
|
|
23
|
+
};
|
|
24
|
+
export interface DocumentValidationPluginArgs {
|
|
6
25
|
documentShape: string;
|
|
26
|
+
rules: Rule[];
|
|
7
27
|
}
|
|
8
28
|
export type ShaclValidationReport = ValidationReport.ValidationReport<DataFactory<Quad, Quad> & DatasetCoreFactory<Quad, Quad, DatasetCore<Quad, Quad>>>;
|
|
29
|
+
type PropertyWithError = {
|
|
30
|
+
message: string;
|
|
31
|
+
subject: string | undefined;
|
|
32
|
+
shape: string;
|
|
33
|
+
constraint: string;
|
|
34
|
+
};
|
|
9
35
|
interface DocumentValidationResult {
|
|
10
36
|
report?: ValidationReport;
|
|
11
37
|
propertiesWithoutErrors: {
|
|
12
38
|
message: string;
|
|
13
39
|
}[];
|
|
14
|
-
propertiesWithErrors:
|
|
15
|
-
message: string;
|
|
16
|
-
subject: string | undefined;
|
|
17
|
-
} | undefined)[];
|
|
40
|
+
propertiesWithErrors: PropertyWithError[];
|
|
18
41
|
}
|
|
19
42
|
export interface DocumentValidationTransactionMeta extends DocumentValidationResult {
|
|
20
43
|
type: string;
|
|
@@ -22,6 +45,7 @@ export interface DocumentValidationTransactionMeta extends DocumentValidationRes
|
|
|
22
45
|
export interface DocumentValidationPluginState extends DocumentValidationResult {
|
|
23
46
|
documentShape: string;
|
|
24
47
|
validationCallback: typeof validationCallback;
|
|
48
|
+
rules: Rule[];
|
|
25
49
|
}
|
|
26
50
|
export declare const documentValidationPlugin: (options: DocumentValidationPluginArgs) => ProsePlugin<DocumentValidationPluginState>;
|
|
27
51
|
declare function validationCallback(view: EditorView, documentHtml: string): Promise<void>;
|
|
@@ -2,16 +2,21 @@ import { TransactionMonad } from '@lblod/ember-rdfa-editor/utils/transaction-uti
|
|
|
2
2
|
import { MobilityMeasureConcept } from '../schemas/mobility-measure-concept';
|
|
3
3
|
import { Variable } from '../schemas/variable';
|
|
4
4
|
import { ZonalOrNot } from '../constants';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { MobilityMeasurePreview } from '../schemas/mobility-measure-preview';
|
|
6
|
+
import { VariableInstance } from '../schemas/variable-instance';
|
|
7
|
+
type InsertMeasureArgs = {
|
|
7
8
|
zonality: ZonalOrNot;
|
|
8
9
|
temporal: boolean;
|
|
9
10
|
variables: Record<string, Exclude<Variable, {
|
|
10
11
|
type: 'instruction';
|
|
11
|
-
}
|
|
12
|
+
}> | VariableInstance>;
|
|
12
13
|
templateString: string;
|
|
13
14
|
decisionUri: string;
|
|
14
15
|
articleUriGenerator?: () => string;
|
|
15
|
-
}
|
|
16
|
-
|
|
16
|
+
} & ({
|
|
17
|
+
measureConcept: MobilityMeasureConcept;
|
|
18
|
+
} | {
|
|
19
|
+
measurePreview: MobilityMeasurePreview;
|
|
20
|
+
});
|
|
21
|
+
export default function insertMeasure({ zonality, temporal, variables, templateString, articleUriGenerator, decisionUri, ...args }: InsertMeasureArgs): TransactionMonad<boolean>;
|
|
17
22
|
export {};
|
package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/mobility-measure-preview.d.ts
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type MobilityMeasureConcept } from './mobility-measure-concept';
|
|
3
|
+
export declare const MobilityMeasurePreviewSchema: z.ZodObject<{
|
|
4
|
+
uri: z.ZodString;
|
|
5
|
+
trafficSignals: z.ZodArray<z.ZodObject<{
|
|
6
|
+
uri: z.ZodString;
|
|
7
|
+
trafficSignalConcept: z.ZodIntersection<z.ZodObject<{
|
|
8
|
+
uri: z.ZodString;
|
|
9
|
+
code: z.ZodString;
|
|
10
|
+
regulatoryNotation: z.ZodOptional<z.ZodString>;
|
|
11
|
+
image: z.ZodString;
|
|
12
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
code: string;
|
|
15
|
+
image: string;
|
|
16
|
+
uri: string;
|
|
17
|
+
position: number;
|
|
18
|
+
regulatoryNotation?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
code: string;
|
|
21
|
+
image: string;
|
|
22
|
+
uri: string;
|
|
23
|
+
position?: number | undefined;
|
|
24
|
+
regulatoryNotation?: string | undefined;
|
|
25
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept">;
|
|
27
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
uri: z.ZodString;
|
|
29
|
+
label: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
label: string;
|
|
32
|
+
uri: string;
|
|
33
|
+
}, {
|
|
34
|
+
label: string;
|
|
35
|
+
uri: string;
|
|
36
|
+
}>, "many">>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
39
|
+
categories: {
|
|
40
|
+
label: string;
|
|
41
|
+
uri: string;
|
|
42
|
+
}[];
|
|
43
|
+
}, {
|
|
44
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
45
|
+
categories?: {
|
|
46
|
+
label: string;
|
|
47
|
+
uri: string;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
}>, z.ZodObject<{
|
|
50
|
+
type: z.ZodEnum<["https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept", "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept"]>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
53
|
+
}, {
|
|
54
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
55
|
+
}>]>>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
uri: string;
|
|
58
|
+
trafficSignalConcept: {
|
|
59
|
+
code: string;
|
|
60
|
+
image: string;
|
|
61
|
+
uri: string;
|
|
62
|
+
position: number;
|
|
63
|
+
regulatoryNotation?: string | undefined;
|
|
64
|
+
} & ({
|
|
65
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
66
|
+
categories: {
|
|
67
|
+
label: string;
|
|
68
|
+
uri: string;
|
|
69
|
+
}[];
|
|
70
|
+
} | {
|
|
71
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
72
|
+
});
|
|
73
|
+
}, {
|
|
74
|
+
uri: string;
|
|
75
|
+
trafficSignalConcept: {
|
|
76
|
+
code: string;
|
|
77
|
+
image: string;
|
|
78
|
+
uri: string;
|
|
79
|
+
position?: number | undefined;
|
|
80
|
+
regulatoryNotation?: string | undefined;
|
|
81
|
+
} & ({
|
|
82
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
83
|
+
categories?: {
|
|
84
|
+
label: string;
|
|
85
|
+
uri: string;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
89
|
+
});
|
|
90
|
+
}>, "many">;
|
|
91
|
+
measureConcept: z.ZodObject<{
|
|
92
|
+
uri: z.ZodString;
|
|
93
|
+
label: z.ZodString;
|
|
94
|
+
preview: z.ZodString;
|
|
95
|
+
zonality: z.ZodNativeEnum<{
|
|
96
|
+
readonly POTENTIALLY_ZONAL: "http://register.mobiliteit.vlaanderen.be/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f";
|
|
97
|
+
readonly ZONAL: "http://register.mobiliteit.vlaanderen.be/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d";
|
|
98
|
+
readonly NON_ZONAL: "http://register.mobiliteit.vlaanderen.be/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc";
|
|
99
|
+
}>;
|
|
100
|
+
variableSignage: z.ZodDefault<z.ZodBoolean>;
|
|
101
|
+
trafficSignalConcepts: z.ZodDefault<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
102
|
+
uri: z.ZodString;
|
|
103
|
+
code: z.ZodString;
|
|
104
|
+
regulatoryNotation: z.ZodOptional<z.ZodString>;
|
|
105
|
+
image: z.ZodString;
|
|
106
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
code: string;
|
|
109
|
+
image: string;
|
|
110
|
+
uri: string;
|
|
111
|
+
position: number;
|
|
112
|
+
regulatoryNotation?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
code: string;
|
|
115
|
+
image: string;
|
|
116
|
+
uri: string;
|
|
117
|
+
position?: number | undefined;
|
|
118
|
+
regulatoryNotation?: string | undefined;
|
|
119
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept">;
|
|
121
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
122
|
+
uri: z.ZodString;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
label: string;
|
|
126
|
+
uri: string;
|
|
127
|
+
}, {
|
|
128
|
+
label: string;
|
|
129
|
+
uri: string;
|
|
130
|
+
}>, "many">>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
133
|
+
categories: {
|
|
134
|
+
label: string;
|
|
135
|
+
uri: string;
|
|
136
|
+
}[];
|
|
137
|
+
}, {
|
|
138
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
139
|
+
categories?: {
|
|
140
|
+
label: string;
|
|
141
|
+
uri: string;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
}>, z.ZodObject<{
|
|
144
|
+
type: z.ZodEnum<["https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept", "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept"]>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
147
|
+
}, {
|
|
148
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
149
|
+
}>]>>, "many">>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
label: string;
|
|
152
|
+
uri: string;
|
|
153
|
+
preview: string;
|
|
154
|
+
zonality: "http://register.mobiliteit.vlaanderen.be/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f" | "http://register.mobiliteit.vlaanderen.be/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d" | "http://register.mobiliteit.vlaanderen.be/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc";
|
|
155
|
+
variableSignage: boolean;
|
|
156
|
+
trafficSignalConcepts: ({
|
|
157
|
+
code: string;
|
|
158
|
+
image: string;
|
|
159
|
+
uri: string;
|
|
160
|
+
position: number;
|
|
161
|
+
regulatoryNotation?: string | undefined;
|
|
162
|
+
} & ({
|
|
163
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
164
|
+
categories: {
|
|
165
|
+
label: string;
|
|
166
|
+
uri: string;
|
|
167
|
+
}[];
|
|
168
|
+
} | {
|
|
169
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
170
|
+
}))[];
|
|
171
|
+
}, {
|
|
172
|
+
label: string;
|
|
173
|
+
uri: string;
|
|
174
|
+
preview: string;
|
|
175
|
+
zonality: "http://register.mobiliteit.vlaanderen.be/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f" | "http://register.mobiliteit.vlaanderen.be/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d" | "http://register.mobiliteit.vlaanderen.be/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc";
|
|
176
|
+
variableSignage?: boolean | undefined;
|
|
177
|
+
trafficSignalConcepts?: ({
|
|
178
|
+
code: string;
|
|
179
|
+
image: string;
|
|
180
|
+
uri: string;
|
|
181
|
+
position?: number | undefined;
|
|
182
|
+
regulatoryNotation?: string | undefined;
|
|
183
|
+
} & ({
|
|
184
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
185
|
+
categories?: {
|
|
186
|
+
label: string;
|
|
187
|
+
uri: string;
|
|
188
|
+
}[] | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
191
|
+
}))[] | undefined;
|
|
192
|
+
}>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
uri: string;
|
|
195
|
+
measureConcept: {
|
|
196
|
+
label: string;
|
|
197
|
+
uri: string;
|
|
198
|
+
preview: string;
|
|
199
|
+
zonality: "http://register.mobiliteit.vlaanderen.be/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f" | "http://register.mobiliteit.vlaanderen.be/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d" | "http://register.mobiliteit.vlaanderen.be/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc";
|
|
200
|
+
variableSignage: boolean;
|
|
201
|
+
trafficSignalConcepts: ({
|
|
202
|
+
code: string;
|
|
203
|
+
image: string;
|
|
204
|
+
uri: string;
|
|
205
|
+
position: number;
|
|
206
|
+
regulatoryNotation?: string | undefined;
|
|
207
|
+
} & ({
|
|
208
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
209
|
+
categories: {
|
|
210
|
+
label: string;
|
|
211
|
+
uri: string;
|
|
212
|
+
}[];
|
|
213
|
+
} | {
|
|
214
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
215
|
+
}))[];
|
|
216
|
+
};
|
|
217
|
+
trafficSignals: {
|
|
218
|
+
uri: string;
|
|
219
|
+
trafficSignalConcept: {
|
|
220
|
+
code: string;
|
|
221
|
+
image: string;
|
|
222
|
+
uri: string;
|
|
223
|
+
position: number;
|
|
224
|
+
regulatoryNotation?: string | undefined;
|
|
225
|
+
} & ({
|
|
226
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
227
|
+
categories: {
|
|
228
|
+
label: string;
|
|
229
|
+
uri: string;
|
|
230
|
+
}[];
|
|
231
|
+
} | {
|
|
232
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
233
|
+
});
|
|
234
|
+
}[];
|
|
235
|
+
}, {
|
|
236
|
+
uri: string;
|
|
237
|
+
measureConcept: {
|
|
238
|
+
label: string;
|
|
239
|
+
uri: string;
|
|
240
|
+
preview: string;
|
|
241
|
+
zonality: "http://register.mobiliteit.vlaanderen.be/concepts/8f9367b2-c717-4be7-8833-4c75bbb4ae1f" | "http://register.mobiliteit.vlaanderen.be/concepts/c81c6b96-736a-48cf-b003-6f5cc3dbc55d" | "http://register.mobiliteit.vlaanderen.be/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc";
|
|
242
|
+
variableSignage?: boolean | undefined;
|
|
243
|
+
trafficSignalConcepts?: ({
|
|
244
|
+
code: string;
|
|
245
|
+
image: string;
|
|
246
|
+
uri: string;
|
|
247
|
+
position?: number | undefined;
|
|
248
|
+
regulatoryNotation?: string | undefined;
|
|
249
|
+
} & ({
|
|
250
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
251
|
+
categories?: {
|
|
252
|
+
label: string;
|
|
253
|
+
uri: string;
|
|
254
|
+
}[] | undefined;
|
|
255
|
+
} | {
|
|
256
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
257
|
+
}))[] | undefined;
|
|
258
|
+
};
|
|
259
|
+
trafficSignals: {
|
|
260
|
+
uri: string;
|
|
261
|
+
trafficSignalConcept: {
|
|
262
|
+
code: string;
|
|
263
|
+
image: string;
|
|
264
|
+
uri: string;
|
|
265
|
+
position?: number | undefined;
|
|
266
|
+
regulatoryNotation?: string | undefined;
|
|
267
|
+
} & ({
|
|
268
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
269
|
+
categories?: {
|
|
270
|
+
label: string;
|
|
271
|
+
uri: string;
|
|
272
|
+
}[] | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
275
|
+
});
|
|
276
|
+
}[];
|
|
277
|
+
}>;
|
|
278
|
+
export type MobilityMeasurePreview = z.infer<typeof MobilityMeasurePreviewSchema>;
|
|
279
|
+
export declare function isMobilityMeasurePreview(conceptOrPreview: MobilityMeasureConcept | MobilityMeasurePreview): conceptOrPreview is MobilityMeasurePreview;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TrafficSignalConcept } from './traffic-signal-concept';
|
|
3
|
+
export declare const TrafficSignalSchema: z.ZodObject<{
|
|
4
|
+
uri: z.ZodString;
|
|
5
|
+
trafficSignalConcept: z.ZodIntersection<z.ZodObject<{
|
|
6
|
+
uri: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
regulatoryNotation: z.ZodOptional<z.ZodString>;
|
|
9
|
+
image: z.ZodString;
|
|
10
|
+
position: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
code: string;
|
|
13
|
+
image: string;
|
|
14
|
+
uri: string;
|
|
15
|
+
position: number;
|
|
16
|
+
regulatoryNotation?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
code: string;
|
|
19
|
+
image: string;
|
|
20
|
+
uri: string;
|
|
21
|
+
position?: number | undefined;
|
|
22
|
+
regulatoryNotation?: string | undefined;
|
|
23
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept">;
|
|
25
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
|
+
uri: z.ZodString;
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
label: string;
|
|
30
|
+
uri: string;
|
|
31
|
+
}, {
|
|
32
|
+
label: string;
|
|
33
|
+
uri: string;
|
|
34
|
+
}>, "many">>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
37
|
+
categories: {
|
|
38
|
+
label: string;
|
|
39
|
+
uri: string;
|
|
40
|
+
}[];
|
|
41
|
+
}, {
|
|
42
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
43
|
+
categories?: {
|
|
44
|
+
label: string;
|
|
45
|
+
uri: string;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
}>, z.ZodObject<{
|
|
48
|
+
type: z.ZodEnum<["https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept", "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept"]>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
51
|
+
}, {
|
|
52
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
53
|
+
}>]>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
uri: string;
|
|
56
|
+
trafficSignalConcept: {
|
|
57
|
+
code: string;
|
|
58
|
+
image: string;
|
|
59
|
+
uri: string;
|
|
60
|
+
position: number;
|
|
61
|
+
regulatoryNotation?: string | undefined;
|
|
62
|
+
} & ({
|
|
63
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
64
|
+
categories: {
|
|
65
|
+
label: string;
|
|
66
|
+
uri: string;
|
|
67
|
+
}[];
|
|
68
|
+
} | {
|
|
69
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
70
|
+
});
|
|
71
|
+
}, {
|
|
72
|
+
uri: string;
|
|
73
|
+
trafficSignalConcept: {
|
|
74
|
+
code: string;
|
|
75
|
+
image: string;
|
|
76
|
+
uri: string;
|
|
77
|
+
position?: number | undefined;
|
|
78
|
+
regulatoryNotation?: string | undefined;
|
|
79
|
+
} & ({
|
|
80
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
|
|
81
|
+
categories?: {
|
|
82
|
+
label: string;
|
|
83
|
+
uri: string;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeerslichtconcept" | "https://data.vlaanderen.be/ns/mobiliteit#Wegmarkeringconcept";
|
|
87
|
+
});
|
|
88
|
+
}>;
|
|
89
|
+
export type TrafficSignal = z.infer<typeof TrafficSignalSchema>;
|
|
90
|
+
export declare function isTrafficSignal(signalOrSignalConcept: TrafficSignal | TrafficSignalConcept): signalOrSignalConcept is TrafficSignal;
|