Skip to content
Myr

claim.ts

This file

Path

packages/protocol/src/domain/claim.ts

39 lines · 868 bytes · TypeScript

Last changed by

Merge build/comments-cli-protocol-checks into mainoscabrielbefore adoptionc86204f

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–39why, one step back
1import { Schema } from "effect";
23import {4 AskId,5 CommitSha,6 Handle,7 ProjectName,8 RepoName,9 SuiteRoot,10} from "../ids.ts";1112export const ClaimState = Schema.Literals([13 "live",14 "warned",15 "lapsed",16 "released",17 "answered",18]);1920export type ClaimState = typeof ClaimState.Type;2122export const ClaimView = Schema.Struct({23 ask: AskId,24 base: CommitSha,25 checkCommand: Schema.NonEmptyString,26 claimant: Handle,27 fork: RepoName,28 lapsesAt: Schema.DateTimeUtcFromString,29 lastPushAt: Schema.optionalKey(Schema.DateTimeUtcFromString),30 openedAt: Schema.DateTimeUtcFromString,31 project: ProjectName,32 /** The fork's URL at the gateway; never a storage URL. */33 remote: Schema.NonEmptyString,34 state: ClaimState,35 suite: Schema.optionalKey(SuiteRoot),36 warnsAt: Schema.DateTimeUtcFromString,37});3839export type ClaimView = typeof ClaimView.Type;