puerto 0.15.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
11
import type { Page, PageRequest } from "../shared/page";
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(page: PageRequest): Promise<Page<{{ 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>;
}