Interface: CreateChange
Defined in: packages/core/src/application/use-cases/create-change.ts:38
Creates a new change and persists it to the repository.
Rejects with ChangeAlreadyExistsError when a change with the same
name already exists. The initial history contains a single created event
recording the actor, workspaces, specIds, and schema reference.
Methods
execute()
execute(
input):Promise<CreateChangeResult>
Defined in: packages/core/src/application/use-cases/create-change.ts:67
Executes the use case.
Parameters
input
Creation parameters
Returns
Promise<CreateChangeResult>
The newly created change and its filesystem path
Throws
If a change with the given name already exists