1- // @generated by Cratis. Source: Cratis.Chronicle.Api.Projections.SaveProjection. Time: 2026-01-31T09:21:29.7381330Z . Hash: E4F3AE9860C9117C0696CD8B2CF6AB787A94D9E81C8E52975DC5E229A75982CC
1+ // @generated by Cratis. Source: Cratis.Chronicle.Api.Projections.SaveProjection. Time: 2026-02-04T08:41:26.8151290Z . Hash: D9D17D53F2374E721623B8B80F72F13631F4EBFEF4A1BC9907298ED6E96F5763
22/*---------------------------------------------------------------------------------------------
33 * **DO NOT EDIT** - This file is an automatically generated file.
44 *--------------------------------------------------------------------------------------------*/
@@ -10,18 +10,18 @@ import { Command, CommandValidator } from '@cratis/arc/commands';
1010import { useCommand , SetCommandValues , ClearCommandValues } from '@cratis/arc.react/commands' ;
1111import { PropertyDescriptor } from '@cratis/arc/reflection' ;
1212import { DraftReadModel } from './DraftReadModel' ;
13- import { SaveProjectionResult } from './SaveProjectionResult ' ;
13+ import { ProjectionDeclarationSyntaxError } from './ProjectionDeclarationSyntaxError ' ;
1414
1515/**
1616 * Represents a request to save a projection from its projection declaration language representation.
1717 */
1818export interface ISaveProjection {
19-
19+
2020 /**
2121 * The projection declaration language representation of the projection.
2222 */
2323 declaration ?: string ;
24-
24+
2525 /**
2626 * Optional draft read model definition to save along with the projection.
2727 */
@@ -31,7 +31,7 @@ export interface ISaveProjection {
3131 * The event store the projection targets.
3232 */
3333 eventStore ?: string ;
34-
34+
3535 /**
3636 * The namespace the projection targets.
3737 */
@@ -47,7 +47,7 @@ export class SaveProjectionValidator extends CommandValidator<ISaveProjection> {
4747/**
4848 * Represents a request to save a projection from its projection declaration language representation.
4949 */
50- export class SaveProjection extends Command < ISaveProjection , SaveProjectionResult > implements ISaveProjection {
50+ export class SaveProjection extends Command < ISaveProjection , ProjectionDeclarationSyntaxError > implements ISaveProjection {
5151 readonly route : string = '/api/projections/save-projection' ;
5252 readonly validation : CommandValidator = new SaveProjectionValidator ( ) ;
5353 readonly propertyDescriptors : PropertyDescriptor [ ] = [
@@ -63,7 +63,7 @@ export class SaveProjection extends Command<ISaveProjection, SaveProjectionResul
6363 private _namespace ! : string ;
6464
6565 constructor ( ) {
66- super ( SaveProjectionResult , false ) ;
66+ super ( ProjectionDeclarationSyntaxError , true ) ;
6767 }
6868
6969 get requestParameters ( ) : string [ ] {
0 commit comments