| 29 | export const queueLogger = createLogger({ name: 'queue' }); |
| 30 | |
| 31 | export interface EventsQueuePayloadIncomingEvent { |
| 32 | type: 'incomingEvent'; |
| 33 | payload: { |
| 34 | projectId: string; |
| 35 | event: ITrackPayload & { |
| 36 | timestamp: string | number; |
| 37 | isTimestampFromThePast: boolean; |
| 38 | }; |
| 39 | uaInfo: |
| 40 | | { |
| 41 | readonly isServer: true; |
| 42 | readonly device: 'server'; |
| 43 | readonly os: ''; |
| 44 | readonly osVersion: ''; |
| 45 | readonly browser: ''; |
| 46 | readonly browserVersion: ''; |
| 47 | readonly brand: ''; |
| 48 | readonly model: ''; |
| 49 | } |
| 50 | | { |
| 51 | readonly os: string | undefined; |
| 52 | readonly osVersion: string | undefined; |
| 53 | readonly browser: string | undefined; |
| 54 | readonly browserVersion: string | undefined; |
| 55 | readonly device: string; |
| 56 | readonly brand: string | undefined; |
| 57 | readonly model: string | undefined; |
| 58 | readonly isServer: false; |
| 59 | }; |
| 60 | geo: { |
| 61 | country: string | undefined; |
| 62 | city: string | undefined; |
| 63 | region: string | undefined; |
| 64 | longitude: number | undefined; |
| 65 | latitude: number | undefined; |
| 66 | }; |
| 67 | headers: Record<string, string | undefined>; |
| 68 | deviceId: string; |
| 69 | sessionId: string; |
| 70 | }; |
| 71 | } |
| 72 | export interface EventsQueuePayloadCreateEvent { |
| 73 | type: 'createEvent'; |
| 74 | payload: Omit<IServiceEvent, 'id'>; |
nothing calls this directly
no outgoing calls
no test coverage detected