@mx-cartographer/experiences 3.8.0-alpha.sms12 → 3.8.0-alpha.sms8

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ import { AnalyticsEvent } from '../types';
3
3
 
4
4
  export declare class AnalyticsApi {
5
5
  fetchInstance: Fetch;
6
- constructor(endpoint: string, token: string);
6
+ constructor(endpoint: string, token: string, shouldPropagateError?: boolean);
7
7
  initializeAnalyticsSession: (version: string, featureName?: string) => Promise<{
8
8
  analytics_session: any;
9
9
  }>;
@@ -1,6 +1,6 @@
1
1
  import { BasicAnalyticsEvent, BasicAnalyticsPageview } from '../types';
2
2
 
3
- export declare const analyticsSession: (endpoint: string, token: string, version?: string, featureName?: string) => Promise<{
3
+ export declare const analyticsSession: (endpoint: string, token: string, version?: string, featureName?: string, shouldPropagateError?: boolean) => Promise<{
4
4
  sendAnalyticEvent: (event: BasicAnalyticsEvent) => Promise<any>;
5
5
  sendAnalyticsPageview: (pageview: BasicAnalyticsPageview) => Promise<any>;
6
6
  }>;
@@ -1,7 +1,8 @@
1
1
  export declare class Fetch {
2
2
  endpoint: string;
3
3
  headers: {};
4
- constructor(endpoint: string, token: string);
4
+ propagateError?: boolean;
5
+ constructor(endpoint: string, token: string, propagateError?: boolean);
5
6
  get: (url: string) => Promise<any>;
6
7
  post: (url: string, data?: any) => Promise<any>;
7
8
  put: (url: string, data: any) => Promise<any>;