@edifice.io/client 2.5.23 → 2.5.24-develop.20260623184311

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,21 +1,22 @@
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';
5
+ import { DataService } from '../data/Service';
6
+ import { IDataService } from '../data/interface';
3
7
  import { DirectoryService } from '../directory/Service';
4
- import { HttpService } from '../transport/Service';
8
+ import { EmbedderService } from '../embedder/Service';
9
+ import { App, ResourceType } from '../globals';
10
+ import { IdiomService } from '../idiom/Service';
11
+ import { INotifyFramework } from '../notify/interfaces';
12
+ import { IBehaviourService, IResourceService, IWebResourceService } from '../resources/interface';
5
13
  import { RightService } from '../rights/Service';
6
14
  import { SessionService } from '../session/Service';
7
15
  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';
16
+ import { HttpService } from '../transport/Service';
12
17
  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';
18
+ import { WidgetService } from '../widget/Service';
19
+ import { WorkspaceService } from '../workspace/Service';
19
20
  export interface IOdeServices {
20
21
  analytics(): AnalyticsService;
21
22
  audience(application: App, resourceType: ResourceType): IAudienceService;
@@ -32,6 +33,7 @@ export interface IOdeServices {
32
33
  session(): SessionService;
33
34
  share(): ShareService;
34
35
  video(): VideoService;
36
+ widget(): WidgetService;
35
37
  workspace(): WorkspaceService;
36
38
  embedder(): EmbedderService;
37
39
  }
@@ -48,6 +50,7 @@ export declare class OdeServices implements IOdeServices {
48
50
  private _session;
49
51
  private _share;
50
52
  private _video;
53
+ private _widget;
51
54
  private _workspace;
52
55
  private _embedder;
53
56
  constructor();
@@ -67,6 +70,7 @@ export declare class OdeServices implements IOdeServices {
67
70
  session(): SessionService;
68
71
  share(): ShareService;
69
72
  video(): VideoService;
73
+ widget(): WidgetService;
70
74
  workspace(): WorkspaceService;
71
75
  embedder(): EmbedderService;
72
76
  }
@@ -7,4 +7,5 @@ export * from '../resources/ResourceService';
7
7
  export * from '../resources/SnipletsService';
8
8
  export * from '../rights/interface';
9
9
  export * from '../share/interface';
10
+ export type { IWidgetPreferences } from '../widget/Service';
10
11
  export * from '../workspace/interface';
@@ -30,6 +30,7 @@ export declare class SessionService {
30
30
  private loadDescription;
31
31
  private getBookmarks;
32
32
  getUserProfile(options?: Partial<GetUserProfileOptions>): Promise<UserProfile>;
33
+ private getPerson;
33
34
  isAdml(): Promise<boolean>;
34
35
  /**
35
36
  * Get details of an application if the user can access it.
@@ -80,7 +80,7 @@ export type School = {
80
80
  id: string;
81
81
  name: string;
82
82
  UAI: string;
83
- exports: string[];
83
+ exports: string[] | null;
84
84
  };
85
85
  export type UserProfile = Array<'Student' | 'Teacher' | 'Relative' | 'Personnel' | 'Guest'>;
86
86
  export interface IUserDescription {
@@ -263,7 +263,10 @@ export interface IGetSession {
263
263
  userProfile?: UserProfile;
264
264
  bookmarkedApps: IWebApp[];
265
265
  }
266
+ export type IPerson = Pick<IUserDescription, 'address' | 'birthdate' | 'displayName' | 'email' | 'id' | 'login' | 'mobile' | 'photo' | 'relatedId' | 'relatedName' | 'relatedType' | 'schools' | 'tel' | 'userId' | 'visibleInfos'> & {
267
+ type: UserProfile;
268
+ };
266
269
  export type PersonApiResult = {
267
270
  status: 'ok' | string;
268
- result: Array<IUserDescription>;
271
+ result: Array<IPerson>;
269
272
  };
@@ -0,0 +1,13 @@
1
+ import { IOdeServices } from '../services/OdeServices';
2
+ import { WidgetUserPref } from './interfaces';
3
+ export interface IWidgetPreferences {
4
+ [widgetName: string]: WidgetUserPref;
5
+ }
6
+ export declare class WidgetService {
7
+ private context;
8
+ constructor(context: IOdeServices);
9
+ private get session();
10
+ getSystemWidgets(): Promise<import('..').IWidgetModel[] | undefined>;
11
+ getPreferences(): Promise<IWidgetPreferences>;
12
+ setPreferences(prefs: IWidgetPreferences): Promise<void>;
13
+ }
@@ -50,4 +50,3 @@ export type WidgetUserPref = {
50
50
  } & {
51
51
  [pref in WidgetSpecificUserPrefs]?: any;
52
52
  };
53
- export * from './LastInfos.widget';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/client",
3
- "version": "2.5.23",
3
+ "version": "2.5.24-develop.20260623184311",
4
4
  "description": "Edifice TypeScript Client",
5
5
  "keywords": [
6
6
  "typescript",
@@ -37,7 +37,7 @@
37
37
  "axios": "1.13.4",
38
38
  "core-js": "3.48.0",
39
39
  "ua-parser-js": "2.0.9",
40
- "@edifice.io/utilities": "2.5.23"
40
+ "@edifice.io/utilities": "2.5.24-develop.20260623184311"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/jasmine": "5.1.4",
@@ -49,7 +49,7 @@
49
49
  "typedoc-plugin-markdown": "3.17.1",
50
50
  "vite": "5.4.14",
51
51
  "vite-plugin-dts": "4.5.4",
52
- "@edifice.io/config": "2.5.23"
52
+ "@edifice.io/config": "2.5.24-develop.20260623184311"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "vite build",
@@ -1,15 +0,0 @@
1
- export interface ILastInfosModel {
2
- date: string;
3
- shared: [];
4
- thread_icon: string;
5
- thread_id: number;
6
- thread_title: string;
7
- title: string;
8
- username: string;
9
- _id: number;
10
- }
11
- export declare class LastInfosWidget {
12
- loadInfos(maxResults: number): Promise<ILastInfosModel[]>;
13
- getMaxResults(): Promise<number>;
14
- setMaxResults(maxResults: number): Promise<void>;
15
- }