initial for v1

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-07-28 00:05:32 +02:00
committed by Carl-Gerhard Lindesvärd
parent c770634e73
commit 15e997129a
23 changed files with 1019 additions and 528 deletions

View File

@@ -2,13 +2,15 @@ import { Queue } from 'bullmq';
import type { IServiceEvent } from '@openpanel/db';
import { getRedisQueue } from '@openpanel/redis';
import type { PostEventPayload } from '@openpanel/sdk';
import type { TrackPayload } from '@openpanel/sdk';
export interface EventsQueuePayloadIncomingEvent {
type: 'incomingEvent';
payload: {
projectId: string;
event: PostEventPayload;
event: TrackPayload & {
timestamp: string;
};
geo: {
country: string | undefined;
city: string | undefined;