1 | import { PromiseHandlers } from '../Provider';
|
2 | export declare type Event = {
|
3 | eventId: string;
|
4 | name: string;
|
5 | attributes: string;
|
6 | metrics: string;
|
7 | session: object;
|
8 | immediate: boolean;
|
9 | };
|
10 | export declare type EventConfig = {
|
11 | appId: string;
|
12 | endpointId: string;
|
13 | region: string;
|
14 | resendLimit: number;
|
15 | };
|
16 | export declare type EventParams = {
|
17 | event: Event;
|
18 | timestamp: string;
|
19 | config: EventConfig;
|
20 | credentials: object;
|
21 | resendLimit: number;
|
22 | };
|
23 | export declare type EventObject = {
|
24 | params: EventParams;
|
25 | handlers: PromiseHandlers;
|
26 | };
|
27 | export declare type EventMap = {
|
28 | [key: string]: EventObject;
|
29 | };
|
30 | export declare type EventBuffer = Array<EventMap>;
|
31 | export declare type EndpointBuffer = Array<EventObject>;
|
32 | export 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 | };
|
46 | export declare type EndpointFailureData = {
|
47 | err: any;
|
48 | update_params: any;
|
49 | endpointObject: EventObject;
|
50 | };
|