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