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
68 lines
3.1 KiB
Plaintext
68 lines
3.1 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 } from "./common.js";
|
|
import { PgDateColumnBaseBuilder } from "./date.common.js";
|
|
export type PgTimestampBuilderInitial<TName extends string> = PgTimestampBuilder<{
|
|
name: TName;
|
|
dataType: 'date';
|
|
columnType: 'PgTimestamp';
|
|
data: Date;
|
|
driverParam: string;
|
|
enumValues: undefined;
|
|
}>;
|
|
export declare class PgTimestampBuilder<T extends ColumnBuilderBaseConfig<'date', 'PgTimestamp'>> extends PgDateColumnBaseBuilder<T, {
|
|
withTimezone: boolean;
|
|
precision: number | undefined;
|
|
}> {
|
|
static readonly [entityKind]: string;
|
|
constructor(name: T['name'], withTimezone: boolean, precision: number | undefined);
|
|
}
|
|
export declare class PgTimestamp<T extends ColumnBaseConfig<'date', 'PgTimestamp'>> extends PgColumn<T> {
|
|
static readonly [entityKind]: string;
|
|
readonly withTimezone: boolean;
|
|
readonly precision: number | undefined;
|
|
constructor(table: AnyPgTable<{
|
|
name: T['tableName'];
|
|
}>, config: PgTimestampBuilder<T>['config']);
|
|
getSQLType(): string;
|
|
mapFromDriverValue(value: Date | string): Date;
|
|
mapToDriverValue: (value: Date) => string;
|
|
}
|
|
export type PgTimestampStringBuilderInitial<TName extends string> = PgTimestampStringBuilder<{
|
|
name: TName;
|
|
dataType: 'string';
|
|
columnType: 'PgTimestampString';
|
|
data: string;
|
|
driverParam: string;
|
|
enumValues: undefined;
|
|
}>;
|
|
export declare class PgTimestampStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'PgTimestampString'>> extends PgDateColumnBaseBuilder<T, {
|
|
withTimezone: boolean;
|
|
precision: number | undefined;
|
|
}> {
|
|
static readonly [entityKind]: string;
|
|
constructor(name: T['name'], withTimezone: boolean, precision: number | undefined);
|
|
}
|
|
export declare class PgTimestampString<T extends ColumnBaseConfig<'string', 'PgTimestampString'>> extends PgColumn<T> {
|
|
static readonly [entityKind]: string;
|
|
readonly withTimezone: boolean;
|
|
readonly precision: number | undefined;
|
|
constructor(table: AnyPgTable<{
|
|
name: T['tableName'];
|
|
}>, config: PgTimestampStringBuilder<T>['config']);
|
|
getSQLType(): string;
|
|
mapFromDriverValue(value: Date | string): string;
|
|
}
|
|
export type Precision = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
export interface PgTimestampConfig<TMode extends 'date' | 'string' = 'date' | 'string'> {
|
|
mode?: TMode;
|
|
precision?: Precision;
|
|
withTimezone?: boolean;
|
|
}
|
|
export declare function timestamp(): PgTimestampBuilderInitial<''>;
|
|
export declare function timestamp<TMode extends PgTimestampConfig['mode'] & {}>(config?: PgTimestampConfig<TMode>): Equal<TMode, 'string'> extends true ? PgTimestampStringBuilderInitial<''> : PgTimestampBuilderInitial<''>;
|
|
export declare function timestamp<TName extends string, TMode extends PgTimestampConfig['mode'] & {}>(name: TName, config?: PgTimestampConfig<TMode>): Equal<TMode, 'string'> extends true ? PgTimestampStringBuilderInitial<TName> : PgTimestampBuilderInitial<TName>;
|