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
56 lines
3.4 KiB
Plaintext
56 lines
3.4 KiB
Plaintext
import { entityKind } from "../../entity.cjs";
|
|
import { QueryPromise } from "../../query-promise.cjs";
|
|
import { type BuildQueryResult, type DBQueryConfig, type TableRelationalConfig, type TablesRelationalConfig } from "../../relations.cjs";
|
|
import type { RunnableQuery } from "../../runnable-query.cjs";
|
|
import type { Query, SQLWrapper } from "../../sql/sql.cjs";
|
|
import type { KnownKeysOnly } from "../../utils.cjs";
|
|
import type { SQLiteDialect } from "../dialect.cjs";
|
|
import type { PreparedQueryConfig, SQLitePreparedQuery, SQLiteSession } from "../session.cjs";
|
|
import type { SQLiteTable } from "../table.cjs";
|
|
export type SQLiteRelationalQueryKind<TMode extends 'sync' | 'async', TResult> = TMode extends 'async' ? SQLiteRelationalQuery<TMode, TResult> : SQLiteSyncRelationalQuery<TResult>;
|
|
export declare class RelationalQueryBuilder<TMode extends 'sync' | 'async', TFullSchema extends Record<string, unknown>, TSchema extends TablesRelationalConfig, TFields extends TableRelationalConfig> {
|
|
protected mode: TMode;
|
|
protected fullSchema: Record<string, unknown>;
|
|
protected schema: TSchema;
|
|
protected tableNamesMap: Record<string, string>;
|
|
protected table: SQLiteTable;
|
|
protected tableConfig: TableRelationalConfig;
|
|
protected dialect: SQLiteDialect;
|
|
protected session: SQLiteSession<'async', unknown, TFullSchema, TSchema>;
|
|
static readonly [entityKind]: string;
|
|
constructor(mode: TMode, fullSchema: Record<string, unknown>, schema: TSchema, tableNamesMap: Record<string, string>, table: SQLiteTable, tableConfig: TableRelationalConfig, dialect: SQLiteDialect, session: SQLiteSession<'async', unknown, TFullSchema, TSchema>);
|
|
findMany<TConfig extends DBQueryConfig<'many', true, TSchema, TFields>>(config?: KnownKeysOnly<TConfig, DBQueryConfig<'many', true, TSchema, TFields>>): SQLiteRelationalQueryKind<TMode, BuildQueryResult<TSchema, TFields, TConfig>[]>;
|
|
findFirst<TSelection extends Omit<DBQueryConfig<'many', true, TSchema, TFields>, 'limit'>>(config?: KnownKeysOnly<TSelection, Omit<DBQueryConfig<'many', true, TSchema, TFields>, 'limit'>>): SQLiteRelationalQueryKind<TMode, BuildQueryResult<TSchema, TFields, TSelection> | undefined>;
|
|
}
|
|
export declare class SQLiteRelationalQuery<TType extends 'sync' | 'async', TResult> extends QueryPromise<TResult> implements RunnableQuery<TResult, 'sqlite'>, SQLWrapper {
|
|
private fullSchema;
|
|
private schema;
|
|
private tableNamesMap;
|
|
private tableConfig;
|
|
private dialect;
|
|
private session;
|
|
private config;
|
|
static readonly [entityKind]: string;
|
|
readonly _: {
|
|
readonly dialect: 'sqlite';
|
|
readonly type: TType;
|
|
readonly result: TResult;
|
|
};
|
|
constructor(fullSchema: Record<string, unknown>, schema: TablesRelationalConfig, tableNamesMap: Record<string, string>,
|
|
/** @internal */
|
|
table: SQLiteTable, tableConfig: TableRelationalConfig, dialect: SQLiteDialect, session: SQLiteSession<'sync' | 'async', unknown, Record<string, unknown>, TablesRelationalConfig>, config: DBQueryConfig<'many', true> | true, mode: 'many' | 'first');
|
|
prepare(): SQLitePreparedQuery<PreparedQueryConfig & {
|
|
type: TType;
|
|
all: TResult;
|
|
get: TResult;
|
|
execute: TResult;
|
|
}>;
|
|
private _toSQL;
|
|
toSQL(): Query;
|
|
execute(): Promise<TResult>;
|
|
}
|
|
export declare class SQLiteSyncRelationalQuery<TResult> extends SQLiteRelationalQuery<'sync', TResult> {
|
|
static readonly [entityKind]: string;
|
|
sync(): TResult;
|
|
}
|