UNPKG

1.25 kBTypeScriptView Raw
1import { PromiseHandlers } from '../Provider';
2export declare type Event = {
3 eventId: string;
4 name: string;
5 attributes: string;
6 metrics: string;
7 session: object;
8 immediate: boolean;
9};
10export declare type EventConfig = {
11 appId: string;
12 endpointId: string;
13 region: string;
14 resendLimit: number;
15};
16export declare type EventParams = {
17 event: Event;
18 timestamp: string;
19 config: EventConfig;
20 credentials: object;
21 resendLimit: number;
22};
23export declare type EventObject = {
24 params: EventParams;
25 handlers: PromiseHandlers;
26};
27export declare type EventMap = {
28 [key: string]: EventObject;
29};
30export declare type EventBuffer = Array<EventMap>;
31export declare type EndpointBuffer = Array<EventObject>;
32export declare type PutEventsResponse = {
33 EventsResponse: {
34 Results?: {
35 [endpointId: string]: {
36 EventsItemResponse?: {
37 [eventId: string]: {
38 StatusCode?: number;
39 Message?: string;
40 };
41 };
42 };
43 };
44 };
45};
46export declare type EndpointFailureData = {
47 err: any;
48 update_params: any;
49 endpointObject: EventObject;
50};