Some checks failed
Main Confidence / confidence (push) Failing after 45s
## 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
63 lines
2.5 KiB
Plaintext
63 lines
2.5 KiB
Plaintext
import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
|
|
import type { ColumnBaseConfig } from "../../column.js";
|
|
import { entityKind } from "../../entity.js";
|
|
import { type Equal } from "../../utils.js";
|
|
import { PgColumn, PgColumnBuilder } from "./common.js";
|
|
export type PgPointTupleBuilderInitial<TName extends string> = PgPointTupleBuilder<{
|
|
name: TName;
|
|
dataType: 'array';
|
|
columnType: 'PgPointTuple';
|
|
data: [number, number];
|
|
driverParam: number | string;
|
|
enumValues: undefined;
|
|
}>;
|
|
export declare class PgPointTupleBuilder<T extends ColumnBuilderBaseConfig<'array', 'PgPointTuple'>> extends PgColumnBuilder<T> {
|
|
static readonly [entityKind]: string;
|
|
constructor(name: string);
|
|
}
|
|
export declare class PgPointTuple<T extends ColumnBaseConfig<'array', 'PgPointTuple'>> extends PgColumn<T> {
|
|
static readonly [entityKind]: string;
|
|
getSQLType(): string;
|
|
mapFromDriverValue(value: string | {
|
|
x: number;
|
|
y: number;
|
|
}): [number, number];
|
|
mapToDriverValue(value: [number, number]): string;
|
|
}
|
|
export type PgPointObjectBuilderInitial<TName extends string> = PgPointObjectBuilder<{
|
|
name: TName;
|
|
dataType: 'json';
|
|
columnType: 'PgPointObject';
|
|
data: {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
driverParam: string;
|
|
enumValues: undefined;
|
|
}>;
|
|
export declare class PgPointObjectBuilder<T extends ColumnBuilderBaseConfig<'json', 'PgPointObject'>> extends PgColumnBuilder<T> {
|
|
static readonly [entityKind]: string;
|
|
constructor(name: string);
|
|
}
|
|
export declare class PgPointObject<T extends ColumnBaseConfig<'json', 'PgPointObject'>> extends PgColumn<T> {
|
|
static readonly [entityKind]: string;
|
|
getSQLType(): string;
|
|
mapFromDriverValue(value: string | {
|
|
x: number;
|
|
y: number;
|
|
}): {
|
|
x: number;
|
|
y: number;
|
|
};
|
|
mapToDriverValue(value: {
|
|
x: number;
|
|
y: number;
|
|
}): string;
|
|
}
|
|
export interface PgPointConfig<T extends 'tuple' | 'xy' = 'tuple' | 'xy'> {
|
|
mode?: T;
|
|
}
|
|
export declare function point(): PgPointTupleBuilderInitial<''>;
|
|
export declare function point<TMode extends PgPointConfig['mode'] & {}>(config?: PgPointConfig<TMode>): Equal<TMode, 'xy'> extends true ? PgPointObjectBuilderInitial<''> : PgPointTupleBuilderInitial<''>;
|
|
export declare function point<TName extends string, TMode extends PgPointConfig['mode'] & {}>(name: TName, config?: PgPointConfig<TMode>): Equal<TMode, 'xy'> extends true ? PgPointObjectBuilderInitial<TName> : PgPointTupleBuilderInitial<TName>;
|