studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
249 lines (248 loc) • 10 kB
TypeScript
import type { WebVitalsMetricType } from './schemas.js';
import type { GetWebVitalsData } from './types.js';
export declare const WEB_VITALS_METRIC_TABLE = "AstrojsWebVitals_Metric";
export declare const CoreWebVitals: WebVitalsMetricType[];
export declare const WEB_VITALS_METRIC_LABELS: Record<WebVitalsMetricType, string>;
export declare const tsMetric: import("@astrojs/db/runtime").Table<"AstrojsWebVitals_Metric", {
pathname: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
route: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
name: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
id: {
type: "text";
schema: {
readonly primaryKey: true;
};
};
value: {
type: "number";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
} & ({
optional?: boolean | undefined;
default?: number | import("drizzle-orm").SQL<any> | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
default?: undefined;
})) & {
references?: () => {
type: "number";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
} & ({
optional?: boolean | undefined;
default?: number | import("drizzle-orm").SQL<any> | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
default?: undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
rating: {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => {
type: "text";
schema: ({
name?: string | undefined;
label?: string | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: string | import("drizzle-orm").SQL<any> | undefined;
multiline?: boolean | undefined;
enum?: [string, ...string[]] | undefined;
} & ({
optional?: boolean | undefined;
primaryKey?: false | undefined;
} | {
primaryKey: true;
optional?: false | undefined;
})) & {
references?: () => /*elided*/ any;
};
};
};
};
timestamp: {
type: "date";
schema: {
name?: string | undefined;
label?: string | undefined;
optional?: boolean | undefined;
unique?: boolean | undefined;
deprecated?: boolean | undefined;
collection?: string | undefined;
default?: Date | import("drizzle-orm").SQL<any> | undefined;
};
};
}>;
/**
* An object representing the default empty return value for web vitals data.
*
* @constant
* @type {GetWebVitalsData}
*
* @property {Array} raw - An empty array representing raw web vitals data.
* @property {Array} routeSummary - An empty array representing route summary data.
* @property {Object} summary - An empty object representing the summary of web vitals data.
* @property {Object} twentyFourHours - An object representing web vitals data for the last 24 hours.
* @property {Object} twentyFourHours.summary - An empty object representing the summary of web vitals data for the last 24 hours.
* @property {Array} twentyFourHours.routeSummary - An empty array representing route summary data for the last 24 hours.
* @property {Object} sevenDays - An object representing web vitals data for the last 7 days.
* @property {Object} sevenDays.summary - An empty object representing the summary of web vitals data for the last 7 days.
* @property {Array} sevenDays.routeSummary - An empty array representing route summary data for the last 7 days.
* @property {Object} thirtyDays - An object representing web vitals data for the last 30 days.
* @property {Object} thirtyDays.summary - An empty object representing the summary of web vitals data for the last 30 days.
* @property {Array} thirtyDays.routeSummary - An empty array representing route summary data for the last 30 days.
*/
export declare const EmptyReturn: GetWebVitalsData;