@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 15 lines 522 Bytes
Raw
1 import * as Domain from "@alchemy.run/domain";
2 import * as Schema from "effect/Schema";
3 import { CustomerId } from "./Customer.id.ts";
4 import { Username } from "./Username.ts";
5
6 export class CustomerRegistered extends Domain.Event("CustomerRegistered", {
7 name: Schema.String,
8 username: Username,
9 }) {}
10
11 /** The username was claimed. Reports an outcome, so it never rejects. */
12 export class ConfirmRegistration extends Domain.Command("ConfirmRegistration", {
13 target: CustomerId,
14 events: [CustomerRegistered],
15 }) {}