diff options
Diffstat (limited to 'subprojects/frontend/src/xtext/xtextServiceResults.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/xtextServiceResults.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/subprojects/frontend/src/xtext/xtextServiceResults.ts b/subprojects/frontend/src/xtext/xtextServiceResults.ts index e473bd48..792c7de3 100644 --- a/subprojects/frontend/src/xtext/xtextServiceResults.ts +++ b/subprojects/frontend/src/xtext/xtextServiceResults.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | 2 | * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/> |
3 | * | 3 | * |
4 | * SPDX-License-Identifier: EPL-2.0 | 4 | * SPDX-License-Identifier: EPL-2.0 |
5 | */ | 5 | */ |
@@ -137,6 +137,7 @@ export type ModelGenerationStartedResult = z.infer< | |||
137 | export const NodeMetadata = z.object({ | 137 | export const NodeMetadata = z.object({ |
138 | name: z.string(), | 138 | name: z.string(), |
139 | simpleName: z.string(), | 139 | simpleName: z.string(), |
140 | typeHash: z.string().optional(), | ||
140 | kind: z.enum(['IMPLICIT', 'INDIVIDUAL', 'NEW']), | 141 | kind: z.enum(['IMPLICIT', 'INDIVIDUAL', 'NEW']), |
141 | }); | 142 | }); |
142 | 143 | ||
@@ -182,15 +183,15 @@ export type SemanticsResult = z.infer<typeof SemanticsResult>; | |||
182 | 183 | ||
183 | export const ModelGenerationResult = z.union([ | 184 | export const ModelGenerationResult = z.union([ |
184 | z.object({ | 185 | z.object({ |
185 | uuid: z.string().nonempty(), | 186 | uuid: z.string().min(1), |
186 | status: z.string(), | 187 | status: z.string(), |
187 | }), | 188 | }), |
188 | z.object({ | 189 | z.object({ |
189 | uuid: z.string().nonempty(), | 190 | uuid: z.string().min(1), |
190 | error: z.string(), | 191 | error: z.string(), |
191 | }), | 192 | }), |
192 | SemanticsSuccessResult.extend({ | 193 | SemanticsSuccessResult.extend({ |
193 | uuid: z.string().nonempty(), | 194 | uuid: z.string().min(1), |
194 | }), | 195 | }), |
195 | ]); | 196 | ]); |
196 | 197 | ||