UNPKG

899 BTypeScriptView Raw
1import { ICredentials } from '@aws-amplify/core';
2interface BasePayload {
3 userId: string;
4 trackingId: string;
5 sessionId: string;
6}
7declare type Config = {
8 [key: string]: string | number;
9};
10declare type Properties = {
11 [key: string]: any;
12};
13export interface RequestParams {
14 eventData: EventData;
15 sessionInfo: SessionInfo;
16 config: Config;
17 sentAt: number;
18 credentials: ICredentials;
19}
20export interface EventData {
21 eventType: string;
22 properties: Properties;
23}
24export interface SessionInfo {
25 userId: string;
26 trackingId: string;
27 sessionId: string;
28}
29export interface RecordEventPayload {
30 eventId: string;
31 eventType: string;
32 sentAt: number;
33 properties?: string;
34}
35export interface RecordEventListPayload extends BasePayload {
36 eventList: RecordEventPayload[];
37 config?: Config;
38 credentials?: ICredentials;
39}
40export {};