TenantAtlas/apps/platform/.pnpm-store/v10/files/cc/8203616478fa546b6df08836408696e66b5b77ca29d821c0fffd0ae4cfbc67b4e1155165073a58b59c54e551cadca2476c2678798a49d9ef3a2d7f14531b47
ahmido 1fec9c6f9d
Some checks failed
Main Confidence / confidence (push) Failing after 45s
feat: compress governance operator outcomes (#253)
## Summary
- introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries
- apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces
- expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests

## Validation
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`
- focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions)
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions)

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #253
2026-04-19 12:30:36 +00:00

100 lines
4.2 KiB
Plaintext

import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
import type { ColumnBaseConfig } from "../../column.js";
import { entityKind } from "../../entity.js";
import type { AnyPgTable } from "../table.js";
import { type Equal } from "../../utils.js";
import { PgColumn, PgColumnBuilder } from "./common.js";
export type PgNumericBuilderInitial<TName extends string> = PgNumericBuilder<{
name: TName;
dataType: 'string';
columnType: 'PgNumeric';
data: string;
driverParam: string;
enumValues: undefined;
}>;
export declare class PgNumericBuilder<T extends ColumnBuilderBaseConfig<'string', 'PgNumeric'>> extends PgColumnBuilder<T, {
precision: number | undefined;
scale: number | undefined;
}> {
static readonly [entityKind]: string;
constructor(name: T['name'], precision?: number, scale?: number);
}
export declare class PgNumeric<T extends ColumnBaseConfig<'string', 'PgNumeric'>> extends PgColumn<T> {
static readonly [entityKind]: string;
readonly precision: number | undefined;
readonly scale: number | undefined;
constructor(table: AnyPgTable<{
name: T['tableName'];
}>, config: PgNumericBuilder<T>['config']);
mapFromDriverValue(value: unknown): string;
getSQLType(): string;
}
export type PgNumericNumberBuilderInitial<TName extends string> = PgNumericNumberBuilder<{
name: TName;
dataType: 'number';
columnType: 'PgNumericNumber';
data: number;
driverParam: string;
enumValues: undefined;
}>;
export declare class PgNumericNumberBuilder<T extends ColumnBuilderBaseConfig<'number', 'PgNumericNumber'>> extends PgColumnBuilder<T, {
precision: number | undefined;
scale: number | undefined;
}> {
static readonly [entityKind]: string;
constructor(name: T['name'], precision?: number, scale?: number);
}
export declare class PgNumericNumber<T extends ColumnBaseConfig<'number', 'PgNumericNumber'>> extends PgColumn<T> {
static readonly [entityKind]: string;
readonly precision: number | undefined;
readonly scale: number | undefined;
constructor(table: AnyPgTable<{
name: T['tableName'];
}>, config: PgNumericNumberBuilder<T>['config']);
mapFromDriverValue(value: unknown): number;
mapToDriverValue: StringConstructor;
getSQLType(): string;
}
export type PgNumericBigIntBuilderInitial<TName extends string> = PgNumericBigIntBuilder<{
name: TName;
dataType: 'bigint';
columnType: 'PgNumericBigInt';
data: bigint;
driverParam: string;
enumValues: undefined;
}>;
export declare class PgNumericBigIntBuilder<T extends ColumnBuilderBaseConfig<'bigint', 'PgNumericBigInt'>> extends PgColumnBuilder<T, {
precision: number | undefined;
scale: number | undefined;
}> {
static readonly [entityKind]: string;
constructor(name: T['name'], precision?: number, scale?: number);
}
export declare class PgNumericBigInt<T extends ColumnBaseConfig<'bigint', 'PgNumericBigInt'>> extends PgColumn<T> {
static readonly [entityKind]: string;
readonly precision: number | undefined;
readonly scale: number | undefined;
constructor(table: AnyPgTable<{
name: T['tableName'];
}>, config: PgNumericBigIntBuilder<T>['config']);
mapFromDriverValue: BigIntConstructor;
mapToDriverValue: StringConstructor;
getSQLType(): string;
}
export type PgNumericConfig<T extends 'string' | 'number' | 'bigint' = 'string' | 'number' | 'bigint'> = {
precision: number;
scale?: number;
mode?: T;
} | {
precision?: number;
scale: number;
mode?: T;
} | {
precision?: number;
scale?: number;
mode: T;
};
export declare function numeric<TMode extends 'string' | 'number' | 'bigint'>(config?: PgNumericConfig<TMode>): Equal<TMode, 'number'> extends true ? PgNumericNumberBuilderInitial<''> : Equal<TMode, 'bigint'> extends true ? PgNumericBigIntBuilderInitial<''> : PgNumericBuilderInitial<''>;
export declare function numeric<TName extends string, TMode extends 'string' | 'number' | 'bigint'>(name: TName, config?: PgNumericConfig<TMode>): Equal<TMode, 'number'> extends true ? PgNumericNumberBuilderInitial<TName> : Equal<TMode, 'bigint'> extends true ? PgNumericBigIntBuilderInitial<TName> : PgNumericBuilderInitial<TName>;
export declare const decimal: typeof numeric;