Interface PostHogNodeParameters

Source
interface PostHogNodeParameters {
    additionalFields?:
        | {
            contextUi?: {
                contextValues: { key?: string; value?: string }[];
            };
            timestamp?: string;
        }
        | {
            propertiesUi?: {
                propertyValues: { key?: string; value?: string }[];
            };
            timestamp?: string;
        }
        | {
            messageId?: string;
            propertiesUi?: {
                propertyValues: { key?: string; value?: string }[];
            };
            timestamp?: string;
        }
        | {
            category?: string;
            contextUi?: {
                contextValues: { key?: string; value?: string }[];
            };
            messageId?: string;
            propertiesUi?: {
                propertyValues: { key?: string; value?: string }[];
            };
            timestamp?: string;
        };
    alias?: string;
    distinctId?: string;
    eventName?: string;
    name?: string;
    operation?: "create"
    | "page"
    | "screen";
    resource?: "event" | "track" | "alias" | "identity";
}

Properties§

Source§

readonly additionalFields?:
    | {
        contextUi?: {
            contextValues: { key?: string; value?: string }[];
        };
        timestamp?: string;
    }
    | {
        propertiesUi?: {
            propertyValues: { key?: string; value?: string }[];
        };
        timestamp?: string;
    }
    | {
        messageId?: string;
        propertiesUi?: {
            propertyValues: { key?: string; value?: string }[];
        };
        timestamp?: string;
    }
    | {
        category?: string;
        contextUi?: {
            contextValues: { key?: string; value?: string }[];
        };
        messageId?: string;
        propertiesUi?: {
            propertyValues: { key?: string; value?: string }[];
        };
        timestamp?: string;
    }

Default: {}

Source§

readonly alias?: string

The name of the alias

Source§

readonly distinctId?: string

The user's distinct ID

Source§

readonly eventName?: string

The name of the event

Source§

readonly name?: string

Source§

readonly operation?: "create" | "page" | "screen"

Default: "create"

Source§

readonly resource?: "event" | "track" | "alias" | "identity"

Default: "event"