2024-03-10 09:49:36 +00:00
|
|
|
import DomainEvent from "../DomainEvent";
|
|
|
|
|
2024-02-07 22:48:42 +00:00
|
|
|
type ApplicationUpdateStartedPayload = {
|
|
|
|
id: string;
|
|
|
|
newVersion: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export class ApplicationUpdateStarted
|
|
|
|
implements DomainEvent<ApplicationUpdateStartedPayload>
|
|
|
|
{
|
|
|
|
readonly type = "ApplicationUpdateStarted" as const;
|
|
|
|
constructor(
|
|
|
|
public readonly payload: ApplicationUpdateStartedPayload,
|
|
|
|
public readonly createdAt: Date
|
|
|
|
) {}
|
|
|
|
}
|