Files
klz-cables.com/.pnpm-store/v10/files/1c/06f931a658e82bd521b58596a702783e7bb593be6909446a2c05400e2d0bf4fda1451a48d36218b92e594ce55341a1d7548cbaa8802cc69f5c54b6f4f488d3
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

67 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: string) => Date | null;
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;
}
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>;