@edifice.io/client 2.0.1-develop-hotfix.1736764109512 → 2.0.1-develop-hotfix.1736779480274

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.
@@ -1,31 +1,26 @@
1
+ import { AnalyticsService } from '../analytics/Service';
2
+ import { IAudienceService } from '../audience/interface';
1
3
  import { CacheService } from '../cache/Service';
2
4
  import { ConfService } from '../configure/Service';
3
5
  import { DirectoryService } from '../directory/Service';
4
- import { HttpService } from '../transport/Service';
6
+ import { EmbedderService } from '../embedder/Service';
7
+ import { App, ResourceType } from '../globals';
8
+ import { IdiomService } from '../idiom/Service';
9
+ import { IBehaviourService, IResourceService, IWebResourceService } from '../resources/interface';
5
10
  import { RightService } from '../rights/Service';
6
11
  import { SessionService } from '../session/Service';
7
12
  import { ShareService } from '../share/Service';
8
- import { WorkspaceService } from '../workspace/Service';
9
- import { IdiomService } from '../idiom/Service';
10
- import { AnalyticsService } from '../analytics/Service';
11
- import { IAudienceService } from '../audience/interface';
13
+ import { HttpService } from '../transport/Service';
12
14
  import { VideoService } from '../video/Service';
13
- import { App, ResourceType } from '../globals';
14
- import { IBehaviourService, IResourceService, IWebResourceService } from '../resources/interface';
15
- import { EmbedderService } from '../embedder/Service';
16
- import { INotifyFramework } from '../notify/interfaces';
17
- import { DataService } from '../data/Service';
18
- import { IDataService } from '../data/interface';
15
+ import { WorkspaceService } from '../workspace/Service';
19
16
  export interface IOdeServices {
20
17
  analytics(): AnalyticsService;
21
18
  audience(application: App, resourceType: ResourceType): IAudienceService;
22
19
  cache(): CacheService;
23
20
  conf(): ConfService;
24
- data(): IDataService;
25
21
  directory(): DirectoryService;
26
22
  http(): HttpService;
27
23
  idiom(): IdiomService;
28
- notify(): INotifyFramework;
29
24
  resource(application: App, resourceType?: ResourceType): IResourceService & IWebResourceService;
30
25
  behaviour(application: App, resourceType: ResourceType): IBehaviourService;
31
26
  rights(): RightService;
@@ -39,11 +34,9 @@ export declare class OdeServices implements IOdeServices {
39
34
  private _analytics;
40
35
  private _cache;
41
36
  private _conf;
42
- private _data;
43
37
  private _directory;
44
38
  private _http;
45
39
  private _idiom;
46
- private _notify;
47
40
  private _rights;
48
41
  private _session;
49
42
  private _share;
@@ -56,11 +49,9 @@ export declare class OdeServices implements IOdeServices {
56
49
  audience(application: App, resourceType: ResourceType): IAudienceService;
57
50
  cache(): CacheService;
58
51
  conf(): ConfService;
59
- data(): DataService;
60
52
  directory(): DirectoryService;
61
53
  http(): HttpService;
62
54
  idiom(): IdiomService;
63
- notify(): INotifyFramework;
64
55
  resource(application: App, resourceType?: ResourceType): IResourceService & IWebResourceService;
65
56
  behaviour(application: App, resourceType: ResourceType): IBehaviourService;
66
57
  rights(): RightService;
@@ -1,3 +1,4 @@
1
+ import { AxiosInstance } from 'axios';
1
2
  import { IOdeServices } from '../services/OdeServices';
2
3
  import { IHttp, IHttpParams, IHttpResponse } from './interfaces';
3
4
  export declare class HttpService implements IHttp {
@@ -6,7 +7,7 @@ export declare class HttpService implements IHttp {
6
7
  private baseUrl?;
7
8
  private headers;
8
9
  private _latestResponse;
9
- constructor(context: IOdeServices, params?: any);
10
+ constructor(context: IOdeServices, axiosInstance?: AxiosInstance);
10
11
  private fixBaseUrl;
11
12
  useBaseUrl(baseUrl?: string): this;
12
13
  useHeaders(headers: Record<string, string>): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/client",
3
- "version": "2.0.1-develop-hotfix.1736764109512",
3
+ "version": "2.0.1-develop-hotfix.1736779480274",
4
4
  "description": "Edifice TypeScript Client",
5
5
  "homepage": "https://github.com/edificeio/edifice-frontend-framework/tree/main/packages/client#readme",
6
6
  "bugs": {
@@ -1,25 +0,0 @@
1
- import { DataServiceProps, IDataService } from './interface';
2
- import { IOdeServices } from '../services/OdeServices';
3
- /** Public conf of an app with a DataService activated. See backend /conf/public */
4
- export interface PublicConfForDataService {
5
- 'data-service'?: DataServiceProps;
6
- }
7
- export declare class DataService implements IDataService {
8
- private odeServices;
9
- private _webBroker?;
10
- private app?;
11
- private user?;
12
- private profile?;
13
- constructor(odeServices: IOdeServices);
14
- private get conf();
15
- private get notify();
16
- initialize(): Promise<void>;
17
- predestroy(): void;
18
- /** Send a web-user-level event to the data pipeline. */
19
- private trackWebEvent;
20
- private addUserInfos;
21
- trackVideoSave(video_id: string, duration: number, weight: number, isCaptation: boolean, url: string, browser: string, deviceType?: string): void;
22
- trackVideoRead(video_id: string, isCaptation: boolean, url: string, browser: string, deviceType?: string): void;
23
- trackSpeechAndText(direction: 'STT' | 'TTS'): void;
24
- trackAccessLibraryFromExplorer(): void;
25
- }