Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /**
* What a project inherits from its parent, by reference (svc-core
* `app/services/inheritance.py`, `GET /projects/{id}/inheritance`).
*/
export interface InheritableKind {
key: string;
label: string;
/** A parent can require it of every project (rules). */
requirable: boolean;
}
export interface InheritanceDeclaration {
id: string;
kind: string;
/** null: every resource of the kind, future ones included. */
resource_id: string | null;
resource_name?: string | null;
declared_by_user_id?: string | null;
created_at?: string | null;
}
/** A parent's rule that applies here without a declaration. */
export interface RequiredRule {
id: string;
name: string;
reason: "required" | "pinned";
}
export interface ProjectInheritance {
parent: { key: string; kind: "personal" | "organisation"; name?: string | null };
kinds: InheritableKind[];
declarations: InheritanceDeclaration[];
required: RequiredRule[];
}
export interface InheritanceCandidate {
id: string;
name: string;
inherited: boolean;
}
export interface InheritanceDependent {
kind: string;
id: string;
name?: string | null;
}
|