Files
klz-cables.com/.pnpm-store/v10/files/92/d9c975594926363fce47e8e71216f896fc60c15fbe5a45a1dd10956db668da58fc7f654eedfc7b156930c3b5a0b4c1713d9cc6e2949b17a71e53142eae5808
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

33 lines
1.2 KiB
Plaintext

import type { Payload } from '../../types/index.js';
import type { AdminInitEvent } from './events/adminInit.js';
import type { ServerInitEvent } from './events/serverInit.js';
export type BaseEvent = {
ciName: null | string;
dbAdapter: string;
emailAdapter: null | string;
envID: string;
isCI: boolean;
locales: string[];
localizationDefaultLocale: null | string;
localizationEnabled: boolean;
nodeEnv: string;
nodeVersion: string;
payloadVersion: string;
projectID: string;
projectIDSource: 'cwd' | 'git' | 'packageJSON' | 'serverURL';
uploadAdapters: string[];
};
type PackageJSON = {
dependencies: Record<string, string | undefined>;
name: string;
};
type TelemetryEvent = AdminInitEvent | ServerInitEvent;
type Args = {
event: TelemetryEvent;
payload: Payload;
};
export declare const sendEvent: ({ event, payload }: Args) => Promise<void>;
export declare const getPayloadVersion: (packageJSON: PackageJSON) => string;
export declare const getLocalizationInfo: (payload: Payload) => Pick<BaseEvent, "locales" | "localizationDefaultLocale" | "localizationEnabled">;
export {};
//# sourceMappingURL=index.d.ts.map