ode-ts-client 1.1.4-dev.202306051713 → 1.1.4-develop-b2school.202306121546

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ import { IWebApp } from "../index.cjs";
2
+ import { IOdeServices } from "../services/OdeServices";
3
+ export declare class AnalyticsService {
4
+ private context;
5
+ constructor(context: IOdeServices);
6
+ private get http();
7
+ private get session();
8
+ /**
9
+ * Xiti tracker for page loading.
10
+ * @param locationPath
11
+ * @param app
12
+ */
13
+ trackPageLoad(locationPath: string, app: IWebApp): Promise<void>;
14
+ private getXitiConfig;
15
+ private loadXitiScript;
16
+ private getXitiTrackingParams;
17
+ }
@@ -1,4 +1,26 @@
1
- import { AnalyticStatus, IXitiTrackingParams, ITrackingParams, TrackingType } from "./interfaces";
1
+ import { AnalyticStatus, IXitiTrackingParams, IMatomoTrackingParams, ITrackingParams, TrackingType } from "./interfaces";
2
+ export declare type ParamsByTrackingSystem = {
3
+ type: "none" | "internal" | "matomo" | "multiple";
4
+ internal?: ITrackingParams;
5
+ matomo?: IMatomoTrackingParams;
6
+ xiti?: IXitiTrackingParams;
7
+ };
8
+ export declare type XitiConf = {
9
+ ID_EXPLOITANT: string;
10
+ ID_PLATEFORME: string;
11
+ ID_PROJET: string;
12
+ active: boolean;
13
+ config: boolean;
14
+ structureMap?: {
15
+ [structureId: string]: {
16
+ UAI?: string;
17
+ active: boolean;
18
+ collectiviteId?: number;
19
+ plateformeId?: any;
20
+ projetId?: any;
21
+ };
22
+ };
23
+ };
2
24
  export declare class Analytics {
3
25
  private _status;
4
26
  private _params?;