puerto 0.12.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
8
9
10
import type { {{ pascal }}, {{ pascal }}Draft } from "./model";

/** The port the screens call. Every method rejects with the `{{ pascal }}Error` the API answered. */
export interface {{ pascal }}Repository {
  list(): Promise<{{ pascal }}[]>;
  get(id: string): Promise<{{ pascal }}>;
  create(draft: {{ pascal }}Draft): Promise<{{ pascal }}>;
  update(id: string, draft: {{ pascal }}Draft): Promise<{{ pascal }}>;
  remove(id: string): Promise<void>;
}