ode-ts-client 1.2.5 → 1.2.6

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.
Files changed (66) hide show
  1. package/dist/ode-ts-client.esm.js +2212 -1942
  2. package/dist/ode-ts-client.esm.js.map +1 -1
  3. package/dist/ode-ts-client.js +4 -4
  4. package/dist/ode-ts-client.js.map +1 -1
  5. package/dist/ode-ts-client.mjs +2212 -1942
  6. package/dist/ode-ts-client.mjs.map +1 -1
  7. package/dist/test/Foundation.spec.d.ts +0 -0
  8. package/dist/{analytics → ts/analytics}/Service.d.ts +2 -2
  9. package/dist/{apps → ts/apps}/timeline/Framework.d.ts +2 -2
  10. package/dist/{apps → ts/apps}/timeline/Notification.model.d.ts +1 -1
  11. package/dist/{apps → ts/apps}/timeline/interfaces.d.ts +1 -1
  12. package/dist/{cache → ts/cache}/Service.d.ts +2 -2
  13. package/dist/{configure → ts/configure}/Analytics.d.ts +3 -3
  14. package/dist/{configure → ts/configure}/AppConf.d.ts +2 -2
  15. package/dist/{configure → ts/configure}/Framework.d.ts +6 -6
  16. package/dist/{configure → ts/configure}/Service.d.ts +3 -3
  17. package/dist/{configure → ts/configure}/Theme.d.ts +1 -1
  18. package/dist/{configure → ts/configure}/User.d.ts +3 -3
  19. package/dist/{configure → ts/configure}/interfaces.d.ts +7 -7
  20. package/dist/{directory → ts/directory}/Service.d.ts +2 -2
  21. package/dist/{explorer → ts/explorer}/interfaces.d.ts +41 -41
  22. package/dist/{globals.d.ts → ts/globals.d.ts} +2 -2
  23. package/dist/{idiom → ts/idiom}/Idiom.d.ts +1 -1
  24. package/dist/{idiom → ts/idiom}/Service.d.ts +3 -3
  25. package/dist/{idiom → ts/idiom}/interfaces.d.ts +1 -1
  26. package/dist/ts/index.cjs.d.ts +1 -0
  27. package/dist/ts/index.d.ts +10 -0
  28. package/dist/{notify → ts/notify}/Framework.d.ts +5 -5
  29. package/dist/{notify → ts/notify}/interfaces.d.ts +5 -5
  30. package/dist/{resources → ts/resources}/BlogResourceService.d.ts +3 -3
  31. package/dist/{resources → ts/resources}/MindmapResourceService.d.ts +3 -3
  32. package/dist/{resources → ts/resources}/ResourceService.d.ts +4 -4
  33. package/dist/{resources → ts/resources}/interface.d.ts +1 -1
  34. package/dist/{rights → ts/rights}/Service.d.ts +4 -4
  35. package/dist/{rights → ts/rights}/interface.d.ts +2 -2
  36. package/dist/{services → ts/services}/OdeServices.d.ts +11 -11
  37. package/dist/ts/services/index.d.ts +7 -0
  38. package/dist/{session → ts/session}/Framework.d.ts +2 -2
  39. package/dist/{session → ts/session}/Service.d.ts +4 -4
  40. package/dist/{session → ts/session}/Session.d.ts +2 -2
  41. package/dist/{session → ts/session}/interfaces.d.ts +7 -7
  42. package/dist/{share → ts/share}/Service.d.ts +5 -5
  43. package/dist/{share → ts/share}/interface.d.ts +6 -6
  44. package/dist/{transport → ts/transport}/Framework.d.ts +1 -1
  45. package/dist/{transport → ts/transport}/Http.d.ts +1 -1
  46. package/dist/{transport → ts/transport}/Service.d.ts +2 -2
  47. package/dist/{transport → ts/transport}/interfaces.d.ts +3 -3
  48. package/dist/{utils → ts/utils}/FileTypeUtils.d.ts +1 -1
  49. package/dist/{widget → ts/widget}/Framework.d.ts +2 -2
  50. package/dist/{widget → ts/widget}/interfaces.d.ts +5 -5
  51. package/dist/{workspace → ts/workspace}/Service.d.ts +2 -2
  52. package/dist/version.txt +1 -1
  53. package/package.json +6 -6
  54. package/dist/index.cjs.d.ts +0 -1
  55. package/dist/index.d.ts +0 -10
  56. package/dist/legacy/Behaviours.d.ts +0 -35
  57. package/dist/legacy/entcore.d.ts +0 -7
  58. package/dist/legacy/http.d.ts +0 -24
  59. package/dist/legacy/me.d.ts +0 -12
  60. package/dist/legacy/rights.d.ts +0 -55
  61. package/dist/services/index.d.ts +0 -7
  62. /package/dist/{directory → ts/directory}/interface.d.ts +0 -0
  63. /package/dist/{utils → ts/utils}/MimeTypeUtils.d.ts +0 -0
  64. /package/dist/{utils → ts/utils}/StringUtils.d.ts +0 -0
  65. /package/dist/{widget → ts/widget}/LastInfos.widget.d.ts +0 -0
  66. /package/dist/{workspace → ts/workspace}/interface.d.ts +0 -0
File without changes
@@ -1,5 +1,5 @@
1
- import { IWebApp } from "../index.cjs";
2
- import { IOdeServices } from "../services/OdeServices";
1
+ import { IWebApp } from '../index.cjs';
2
+ import { IOdeServices } from '../services/OdeServices';
3
3
  export declare class AnalyticsService {
4
4
  private context;
5
5
  constructor(context: IOdeServices);
@@ -1,5 +1,5 @@
1
- import { IFlashMessageModel, ITimelineApp } from "./interfaces";
2
- import { Notification } from "./Notification.model";
1
+ import { IFlashMessageModel, ITimelineApp } from './interfaces';
2
+ import { Notification } from './Notification.model';
3
3
  export declare class TimelineApp implements ITimelineApp {
4
4
  private _notifications;
5
5
  private _notificationTypes;
@@ -1,4 +1,4 @@
1
- import { ITimelineNotification, NotificationModel } from "./interfaces";
1
+ import { ITimelineNotification, NotificationModel } from './interfaces';
2
2
  export declare class Notification implements ITimelineNotification {
3
3
  constructor(model: NotificationModel);
4
4
  _id: string;
@@ -27,7 +27,7 @@ export interface ITimelineNotification {
27
27
  discard(): Promise<void>;
28
28
  report(): Promise<void>;
29
29
  }
30
- export declare type NotificationModel = {
30
+ export type NotificationModel = {
31
31
  _id: string;
32
32
  type: string;
33
33
  eventType: string;
@@ -1,5 +1,5 @@
1
- import { IHttpParams, IHttpResponse } from "../transport/interfaces";
2
- import { OdeServices } from "../services/OdeServices";
1
+ import { IHttpParams, IHttpResponse } from '../transport/interfaces';
2
+ import { OdeServices } from '../services/OdeServices';
3
3
  export declare class CacheService {
4
4
  private context;
5
5
  constructor(context: OdeServices);
@@ -1,11 +1,11 @@
1
- import { AnalyticStatus, IXitiTrackingParams, IMatomoTrackingParams, ITrackingParams, TrackingType } from "./interfaces";
2
- export declare type ParamsByTrackingSystem = {
1
+ import { AnalyticStatus, IXitiTrackingParams, IMatomoTrackingParams, ITrackingParams, TrackingType } from './interfaces';
2
+ export type ParamsByTrackingSystem = {
3
3
  type: "none" | "internal" | "matomo" | "multiple";
4
4
  internal?: ITrackingParams;
5
5
  matomo?: IMatomoTrackingParams;
6
6
  xiti?: IXitiTrackingParams;
7
7
  };
8
- export declare type XitiConf = {
8
+ export type XitiConf = {
9
9
  ID_EXPLOITANT: string;
10
10
  ID_PLATEFORME: string;
11
11
  ID_PROJET: string;
@@ -1,5 +1,5 @@
1
- import { App } from "../globals";
2
- import { IWebApp } from "../index.cjs";
1
+ import { App } from '../globals';
2
+ import { IWebApp } from '../index.cjs';
3
3
  export declare class AppConf {
4
4
  private _publicConf;
5
5
  private _currentApp?;
@@ -1,9 +1,9 @@
1
- import { IConfigurationFramework } from "./interfaces";
2
- import { Theme } from "./Theme";
3
- import { Idiom } from "../idiom/Idiom";
4
- import { User } from "./User";
5
- import { AppConf } from "./AppConf";
6
- import { Analytics } from "./Analytics";
1
+ import { IConfigurationFramework } from './interfaces';
2
+ import { Theme } from './Theme';
3
+ import { Idiom } from '../idiom/Idiom';
4
+ import { User } from './User';
5
+ import { AppConf } from './AppConf';
6
+ import { Analytics } from './Analytics';
7
7
  export declare class ConfigurationFramework implements IConfigurationFramework {
8
8
  readonly Platform: {
9
9
  deploymentTag: string;
@@ -1,6 +1,6 @@
1
- import { IGetConf } from "./interfaces";
2
- import { App } from "../globals";
3
- import { IOdeServices } from "../services/OdeServices";
1
+ import { IGetConf } from './interfaces';
2
+ import { App } from '../globals';
3
+ import { IOdeServices } from '../services/OdeServices';
4
4
  export declare class ConfService {
5
5
  private context;
6
6
  constructor(context: IOdeServices);
@@ -1,4 +1,4 @@
1
- import { ITheme, IThemeConf, IThemeDesc, IThemeOverrides, IThemeConfOverriding } from "./interfaces";
1
+ import { ITheme, IThemeConf, IThemeDesc, IThemeOverrides, IThemeConfOverriding } from './interfaces';
2
2
  export declare class Theme implements ITheme {
3
3
  private _conf?;
4
4
  private _loaded?;
@@ -1,6 +1,6 @@
1
- import { App } from "../globals";
2
- import { IUserPreferences } from "./interfaces";
3
- import { IWebApp } from "../session/interfaces";
1
+ import { App } from '../globals';
2
+ import { IUserPreferences } from './interfaces';
3
+ import { IWebApp } from '../session/interfaces';
4
4
  export declare class User {
5
5
  private _me;
6
6
  private _keepOpenOnLogout;
@@ -1,5 +1,5 @@
1
- import { App, USER_PREFS } from "../globals";
2
- import { IWebApp } from "../session/interfaces";
1
+ import { App, USER_PREFS } from '../globals';
2
+ import { IWebApp } from '../session/interfaces';
3
3
  export declare abstract class ConfigurationFrameworkFactory {
4
4
  static instance(): IConfigurationFramework;
5
5
  }
@@ -58,8 +58,8 @@ export interface IConfigurationFramework {
58
58
  saveLanguage(lang: string): Promise<void>;
59
59
  };
60
60
  }
61
- export declare type AnalyticStatus = "void" | "pending" | "ready" | "failed";
62
- export declare type TrackingType = "matomo" | "internal";
61
+ export type AnalyticStatus = "void" | "pending" | "ready" | "failed";
62
+ export type TrackingType = "matomo" | "internal";
63
63
  export interface ITrackingParams {
64
64
  /** Whitelist of events to track, in the form "app" or "app.eventName" or "*.eventName". */
65
65
  trackOnly: string[];
@@ -162,10 +162,10 @@ export interface IThemeConfOverriding {
162
162
  ignoreSubjects?: Array<string>;
163
163
  };
164
164
  }
165
- export declare type IThemeOverrides = {
165
+ export type IThemeOverrides = {
166
166
  [app in App]?: string;
167
167
  };
168
- export declare type AddBundleCallback = () => void | Promise<void>;
168
+ export type AddBundleCallback = () => void | Promise<void>;
169
169
  export interface IIdiom {
170
170
  /** Get the translation of a given key.
171
171
  * @param params (optional) map of key/value variables.
@@ -187,7 +187,7 @@ export interface IIdiom {
187
187
  /** @return a new string without accentuation. */
188
188
  removeAccents(str: string): string;
189
189
  }
190
- export declare type UserPreferenceKey = (typeof USER_PREFS)[keyof typeof USER_PREFS] | App;
190
+ export type UserPreferenceKey = (typeof USER_PREFS)[keyof typeof USER_PREFS] | App;
191
191
  export interface IUserPreferences {
192
192
  data: {
193
193
  [key in UserPreferenceKey]?: any;
@@ -1,5 +1,5 @@
1
- import { OdeServices } from "../services/OdeServices";
2
- import { Bookmark, BookmarkWithDetails, BookmarkWithMembers, Group, User } from "./interface";
1
+ import { OdeServices } from '../services/OdeServices';
2
+ import { Bookmark, BookmarkWithDetails, BookmarkWithMembers, Group, User } from './interface';
3
3
  export declare class DirectoryService {
4
4
  private odeServices;
5
5
  constructor(odeServices: OdeServices);
@@ -1,6 +1,6 @@
1
- import { Observable } from "rxjs";
2
- import { App } from "../globals";
3
- import { RightRole } from "../services";
1
+ import { Observable } from 'rxjs';
2
+ import { App } from '../globals';
3
+ import { RightRole } from '../services';
4
4
  /** Framework exploration capabilities offered to the client. */
5
5
  export interface IExplorerFramework {
6
6
  /**
@@ -114,7 +114,7 @@ export declare const RESOURCE: {
114
114
  readonly EXERCISE: "exercise";
115
115
  readonly MINDMAP: "mindmap";
116
116
  };
117
- export declare type ResourceType = (typeof RESOURCE)[keyof typeof RESOURCE];
117
+ export type ResourceType = (typeof RESOURCE)[keyof typeof RESOURCE];
118
118
  export declare const appNameForResource: {
119
119
  [R in ResourceType]: App;
120
120
  };
@@ -140,26 +140,26 @@ export declare const ACTION: {
140
140
  readonly PUBLISH: "publish";
141
141
  readonly PUBLISH_MOODLE: "publish_moodle";
142
142
  };
143
- export declare type ActionType = (typeof ACTION)[keyof typeof ACTION];
143
+ export type ActionType = (typeof ACTION)[keyof typeof ACTION];
144
144
  export declare const FOLDER: {
145
145
  readonly BIN: "bin";
146
146
  readonly DEFAULT: "default";
147
147
  };
148
- export declare type FolderType = (typeof FOLDER)[keyof typeof FOLDER];
148
+ export type FolderType = (typeof FOLDER)[keyof typeof FOLDER];
149
149
  export declare const BOOLEAN_FILTER: {
150
150
  readonly OWNER: "owner";
151
151
  readonly SHARED: "shared";
152
152
  readonly PUBLIC: "public";
153
153
  readonly FAVORITE: "favorite";
154
154
  };
155
- export declare type BooleanFilterType = (typeof BOOLEAN_FILTER)[keyof typeof BOOLEAN_FILTER];
155
+ export type BooleanFilterType = (typeof BOOLEAN_FILTER)[keyof typeof BOOLEAN_FILTER];
156
156
  export declare const STRING_FILTER: {};
157
- export declare type StringFilterType = (typeof STRING_FILTER)[keyof typeof STRING_FILTER];
157
+ export type StringFilterType = (typeof STRING_FILTER)[keyof typeof STRING_FILTER];
158
158
  export declare const SORT_ORDER: {
159
159
  readonly ASC: "asc";
160
160
  readonly DESC: "desc";
161
161
  };
162
- export declare type SortOrderType = (typeof SORT_ORDER)[keyof typeof SORT_ORDER];
162
+ export type SortOrderType = (typeof SORT_ORDER)[keyof typeof SORT_ORDER];
163
163
  export declare const SORT_BY: {
164
164
  readonly NAME: "name";
165
165
  readonly MODIFY_DATE: "updatedAt";
@@ -167,9 +167,9 @@ export declare const SORT_BY: {
167
167
  readonly APPLICATION: "application";
168
168
  readonly RESOURCE_TYPE: "resourceType";
169
169
  };
170
- export declare type SortByType = (typeof SORT_BY)[keyof typeof SORT_BY];
171
- export declare type ID = string;
172
- export declare type StringFilterValue = {
170
+ export type SortByType = (typeof SORT_BY)[keyof typeof SORT_BY];
171
+ export type ID = string;
172
+ export type StringFilterValue = {
173
173
  value: string;
174
174
  i18n: string;
175
175
  };
@@ -180,24 +180,24 @@ export declare const PROP_KEY: {
180
180
  readonly DESCRIPTION: "description";
181
181
  readonly URL: "url";
182
182
  };
183
- export declare type PropKeyType = (typeof PROP_KEY)[keyof typeof PROP_KEY];
183
+ export type PropKeyType = (typeof PROP_KEY)[keyof typeof PROP_KEY];
184
184
  export declare const PROP_MODE: {
185
185
  readonly READONLY: "RO";
186
186
  readonly READWRITE: "RW";
187
187
  };
188
- export declare type PropModeType = (typeof PROP_MODE)[keyof typeof PROP_MODE];
188
+ export type PropModeType = (typeof PROP_MODE)[keyof typeof PROP_MODE];
189
189
  export declare const PROP_TYPE: {
190
190
  readonly TEXT: "text";
191
191
  readonly NUMBER: "number";
192
192
  readonly DATE: "date";
193
193
  readonly IMAGE: "image";
194
194
  };
195
- export declare type PropTypeType = (typeof PROP_TYPE)[keyof typeof PROP_TYPE];
195
+ export type PropTypeType = (typeof PROP_TYPE)[keyof typeof PROP_TYPE];
196
196
  export declare const PROP_FORMAT: {
197
197
  readonly PLAIN: "plain";
198
198
  };
199
- export declare type PropFormatType = (typeof PROP_FORMAT)[keyof typeof PROP_FORMAT];
200
- export declare type SearchResultHandler = (input: IActionParameters, output: IActionResult) => void;
199
+ export type PropFormatType = (typeof PROP_FORMAT)[keyof typeof PROP_FORMAT];
200
+ export type SearchResultHandler = (input: IActionParameters, output: IActionResult) => void;
201
201
  export interface ISearchParameters {
202
202
  types: ResourceType[];
203
203
  app: App;
@@ -279,69 +279,69 @@ export interface IResource {
279
279
  rights: RightStringified[];
280
280
  description: string;
281
281
  }
282
- export declare type RightStringified = string;
282
+ export type RightStringified = string;
283
283
  export interface IPreferences {
284
284
  view: "card" | "list";
285
285
  }
286
286
  export interface IActionParameters {
287
287
  }
288
- export declare type GetContextParameters = IActionParameters & ISearchParameters;
289
- export declare type GetResourcesParameters = IActionParameters & ISearchParameters;
290
- export declare type CreateFolderParameters = IActionParameters & {
288
+ export type GetContextParameters = IActionParameters & ISearchParameters;
289
+ export type GetResourcesParameters = IActionParameters & ISearchParameters;
290
+ export type CreateFolderParameters = IActionParameters & {
291
291
  app: App;
292
292
  type: ResourceType;
293
293
  parentId: ID | "default";
294
294
  name: string;
295
295
  };
296
- export declare type UpdateFolderParameters = IActionParameters & {
296
+ export type UpdateFolderParameters = IActionParameters & {
297
297
  folderId: ID;
298
298
  app: App;
299
299
  type: ResourceType;
300
300
  parentId: ID | "default";
301
301
  name: string;
302
302
  };
303
- export declare type OpenParameters = IActionParameters & {
303
+ export type OpenParameters = IActionParameters & {
304
304
  resourceId: ID;
305
305
  };
306
- export declare type PrintParameters = IActionParameters & {
306
+ export type PrintParameters = IActionParameters & {
307
307
  resourceId: ID;
308
308
  withComments?: boolean;
309
309
  };
310
- export declare type CopyParameters = IActionParameters & {
310
+ export type CopyParameters = IActionParameters & {
311
311
  application: string;
312
312
  folderId: ID;
313
313
  resourceIds: ID[];
314
314
  folderIds: ID[];
315
315
  };
316
- export declare type MoveParameters = IActionParameters & {
316
+ export type MoveParameters = IActionParameters & {
317
317
  application: string;
318
318
  folderId: ID;
319
319
  resourceIds: ID[];
320
320
  folderIds: ID[];
321
321
  };
322
- export declare type DeleteParameters = IActionParameters & {
322
+ export type DeleteParameters = IActionParameters & {
323
323
  application: string;
324
324
  resourceType: string;
325
325
  resourceIds: ID[];
326
326
  folderIds: ID[];
327
327
  };
328
- export declare type TrashParameters = IActionParameters & {
328
+ export type TrashParameters = IActionParameters & {
329
329
  trash: boolean;
330
330
  application: string;
331
331
  resourceType: string;
332
332
  resourceIds: ID[];
333
333
  folderIds: ID[];
334
334
  };
335
- export declare type ManagePropertiesParameters = IActionParameters & {
335
+ export type ManagePropertiesParameters = IActionParameters & {
336
336
  resources: IResource[];
337
337
  };
338
- export declare type UpdatePropertiesParameters = IActionParameters & {
338
+ export type UpdatePropertiesParameters = IActionParameters & {
339
339
  resources: IResource[];
340
340
  props: {
341
341
  [key in PropKeyType]?: string;
342
342
  };
343
343
  };
344
- export declare type PublishParameters = IActionParameters & {
344
+ export type PublishParameters = IActionParameters & {
345
345
  userId: string | undefined;
346
346
  title: string;
347
347
  cover: Blob;
@@ -358,38 +358,38 @@ export declare type PublishParameters = IActionParameters & {
358
358
  resourceEntId: string;
359
359
  userStructureName: string;
360
360
  };
361
- export declare type FilterValues = {
361
+ export type FilterValues = {
362
362
  [B in BooleanFilterType]?: boolean;
363
363
  } & {
364
364
  [S in StringFilterType]?: string;
365
365
  } & {
366
366
  folder?: ID;
367
367
  };
368
- export declare type OrderValues = {
368
+ export type OrderValues = {
369
369
  [O in SortByType]?: SortOrderType;
370
370
  };
371
371
  export interface IActionResult {
372
372
  }
373
- export declare type GetContextResult = IActionResult & IContext;
374
- export declare type GetResourcesResult = IActionResult & ISearchResults;
375
- export declare type GetSubFoldersResult = IActionResult & {
373
+ export type GetContextResult = IActionResult & IContext;
374
+ export type GetResourcesResult = IActionResult & ISearchResults;
375
+ export type GetSubFoldersResult = IActionResult & {
376
376
  folders: IFolder[];
377
377
  };
378
- export declare type CreateFolderResult = IActionResult & IFolder & {
378
+ export type CreateFolderResult = IActionResult & IFolder & {
379
379
  createdAt: string;
380
380
  creator_id?: string;
381
381
  };
382
- export declare type UpdateFolderResult = CreateFolderResult & {
382
+ export type UpdateFolderResult = CreateFolderResult & {
383
383
  updatedAt: string;
384
384
  parentId: ID | "default";
385
385
  };
386
- export declare type ManagePropertiesResult = IActionResult & {
386
+ export type ManagePropertiesResult = IActionResult & {
387
387
  genericProps: IProperty[];
388
388
  };
389
- export declare type UpdatePropertiesResult = IActionResult & {
389
+ export type UpdatePropertiesResult = IActionResult & {
390
390
  resources: IResource[];
391
391
  };
392
- export declare type PublishResult = IActionResult & {
392
+ export type PublishResult = IActionResult & {
393
393
  details: {
394
394
  application: string;
395
395
  created_at: string;
@@ -10,7 +10,7 @@ export declare const ERROR_CODE: {
10
10
  readonly MALFORMED_DATA: "0080";
11
11
  readonly NOT_LOGGED_IN: "0090";
12
12
  };
13
- export declare type ErrorCode = (typeof ERROR_CODE)[keyof typeof ERROR_CODE];
13
+ export type ErrorCode = (typeof ERROR_CODE)[keyof typeof ERROR_CODE];
14
14
  export declare const APP: {
15
15
  readonly EXPLORER: "explorer";
16
16
  readonly PORTAL: "portal";
@@ -21,7 +21,7 @@ export declare const APP: {
21
21
  readonly VIDEO: "video";
22
22
  readonly MINDMAP: "mindmap";
23
23
  };
24
- export declare type App = (typeof APP)[keyof typeof APP];
24
+ export type App = (typeof APP)[keyof typeof APP];
25
25
  export declare const USER_PREFS: {
26
26
  readonly APPS: "apps";
27
27
  readonly WIDGETS: "widgets";
@@ -1,4 +1,4 @@
1
- import { AddBundleCallback, IIdiom } from "../configure/interfaces";
1
+ import { AddBundleCallback, IIdiom } from '../configure/interfaces';
2
2
  export declare const defaultDiacriticsRemovalMap: {
3
3
  base: string;
4
4
  letters: RegExp;
@@ -1,6 +1,6 @@
1
- import { AddBundleCallback, IIdiom } from "./interfaces";
2
- import { IOdeServices } from "../services/OdeServices";
3
- import { App } from "../globals";
1
+ import { AddBundleCallback, IIdiom } from './interfaces';
2
+ import { IOdeServices } from '../services/OdeServices';
3
+ import { App } from '../globals';
4
4
  export declare const defaultDiacriticsRemovalMap: {
5
5
  base: string;
6
6
  letters: RegExp;
@@ -1,4 +1,4 @@
1
- export declare type AddBundleCallback = () => void | Promise<void>;
1
+ export type AddBundleCallback = () => void | Promise<void>;
2
2
  export interface IIdiom {
3
3
  /** Get the translation of a given key.
4
4
  * @param params (optional) map of key/value variables.
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1,10 @@
1
+ export * from './globals';
2
+ export * from './explorer/interfaces';
3
+ export * from './notify/interfaces';
4
+ export * as RxJS from 'rxjs';
5
+ export * from './transport/interfaces';
6
+ export * from './configure/interfaces';
7
+ export * from './session/interfaces';
8
+ export * from './widget/interfaces';
9
+ export * from './apps/timeline/interfaces';
10
+ export * from './services';
@@ -1,8 +1,8 @@
1
- import { Subject } from "rxjs";
2
- import { EventName, LayerName } from "..";
3
- import { ITheme, IThemeOverrides } from "../configure/interfaces";
4
- import { IUserInfo } from "../session/interfaces";
5
- import { IPromisified, INotifyFramework } from "./interfaces";
1
+ import { Subject } from 'rxjs';
2
+ import { EventName, LayerName } from '..';
3
+ import { ITheme, IThemeOverrides } from '../configure/interfaces';
4
+ import { IUserInfo } from '../session/interfaces';
5
+ import { IPromisified, INotifyFramework } from './interfaces';
6
6
  /** Utility class */
7
7
  export declare class Promisified<T> implements IPromisified<T> {
8
8
  private _resolution?;
@@ -1,6 +1,6 @@
1
- import { Subject } from "rxjs";
2
- import { ITheme, IThemeOverrides } from "../configure/interfaces";
3
- import { IUserInfo } from "../session/interfaces";
1
+ import { Subject } from 'rxjs';
2
+ import { ITheme, IThemeOverrides } from '../configure/interfaces';
3
+ import { IUserInfo } from '../session/interfaces';
4
4
  export declare abstract class NotifyFrameworkFactory {
5
5
  static instance(): INotifyFramework;
6
6
  }
@@ -53,9 +53,9 @@ export declare const LAYER_NAME: {
53
53
  readonly WIDGETS: "widgets";
54
54
  readonly EXPLORER: "explorer";
55
55
  };
56
- export declare type LayerName = (typeof LAYER_NAME)[keyof typeof LAYER_NAME];
56
+ export type LayerName = (typeof LAYER_NAME)[keyof typeof LAYER_NAME];
57
57
  export declare const EVENT_NAME: {
58
58
  readonly USERPREF_CHANGED: "userprefChanged";
59
59
  readonly SEARCH_RESULTED: "searchResulted";
60
60
  };
61
- export declare type EventName = (typeof EVENT_NAME)[keyof typeof EVENT_NAME];
61
+ export type EventName = (typeof EVENT_NAME)[keyof typeof EVENT_NAME];
@@ -1,6 +1,6 @@
1
- import { ResourceType } from "..";
2
- import { BlogUpdate, CreateParameters, CreateResult, UpdateResult } from "./interface";
3
- import { ResourceService } from "./ResourceService";
1
+ import { ResourceType } from '..';
2
+ import { BlogUpdate, CreateParameters, CreateResult, UpdateResult } from './interface';
3
+ import { ResourceService } from './ResourceService';
4
4
  export declare class BlogResourceService extends ResourceService {
5
5
  create(parameters: CreateParameters): Promise<CreateResult>;
6
6
  update(parameters: BlogUpdate): Promise<UpdateResult>;
@@ -1,6 +1,6 @@
1
- import { ResourceType } from "..";
2
- import { CreateParameters, CreateResult, MindmapUpdate, UpdateResult } from "./interface";
3
- import { ResourceService } from "./ResourceService";
1
+ import { ResourceType } from '..';
2
+ import { CreateParameters, CreateResult, MindmapUpdate, UpdateResult } from './interface';
3
+ import { ResourceService } from './ResourceService';
4
4
  export declare class MindmapResourceService extends ResourceService {
5
5
  create(parameters: CreateParameters): Promise<CreateResult>;
6
6
  update(parameters: MindmapUpdate): Promise<UpdateResult>;
@@ -1,6 +1,6 @@
1
- import { PublishParameters, PublishResult, GetContextParameters, GetContextResult, ISearchResults, CreateFolderParameters, MoveParameters, IActionResult, TrashParameters, CreateFolderResult, UpdateFolderParameters, ID, GetSubFoldersResult, DeleteParameters, ResourceType } from "..";
2
- import { OdeServices } from "../services/OdeServices";
3
- import { CreateParameters, CreateResult, UpdateParameters, UpdateResult } from "./interface";
1
+ import { PublishParameters, PublishResult, GetContextParameters, GetContextResult, ISearchResults, CreateFolderParameters, MoveParameters, IActionResult, TrashParameters, CreateFolderResult, UpdateFolderParameters, ID, GetSubFoldersResult, DeleteParameters, ResourceType } from '..';
2
+ import { OdeServices } from '../services/OdeServices';
3
+ import { CreateParameters, CreateResult, UpdateParameters, UpdateResult } from './interface';
4
4
  export declare abstract class ResourceService {
5
5
  protected context: OdeServices;
6
6
  private static registry;
@@ -16,7 +16,7 @@ export declare abstract class ResourceService {
16
16
  application: string;
17
17
  }, context: OdeServices): ResourceService;
18
18
  constructor(context: OdeServices);
19
- protected get http(): import("../transport/Service").HttpService;
19
+ protected get http(): import('../transport/Service').HttpService;
20
20
  abstract getApplication(): string;
21
21
  abstract getPrintUrl(resourceId: string, withComment?: boolean): string;
22
22
  abstract getViewUrl(resourceId: string): string;
@@ -1,4 +1,4 @@
1
- import { IResource } from "..";
1
+ import { IResource } from '..';
2
2
  /**
3
3
  * Parameters expected to create resource
4
4
  */
@@ -1,10 +1,10 @@
1
- import { RightStringified } from "../explorer/interfaces";
2
- import { OdeServices } from "../services/OdeServices";
3
- import { ResourceRight, RightRole } from "./interface";
1
+ import { RightStringified } from '../explorer/interfaces';
2
+ import { OdeServices } from '../services/OdeServices';
3
+ import { ResourceRight, RightRole } from './interface';
4
4
  export declare class RightService {
5
5
  private context;
6
6
  constructor(context: OdeServices);
7
- get session(): import("../session/Service").SessionService;
7
+ get session(): import('../session/Service').SessionService;
8
8
  /**
9
9
  * Parse right concat as "$TYPE:$ID:$RIGHT"
10
10
  * $TYPE = user | group | creator
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * Identify the type of "user"
3
3
  */
4
- export declare type RightSubject = "user" | "group" | "creator";
4
+ export type RightSubject = "user" | "group" | "creator";
5
5
  /**
6
6
  * Identify the role of the right
7
7
  */
8
- export declare type RightRole = "read" | "contrib" | "manager" | "creator";
8
+ export type RightRole = "read" | "contrib" | "manager" | "creator";
9
9
  /**
10
10
  * Right of a resource
11
11
  */
@@ -1,14 +1,14 @@
1
- import { CacheService } from "../cache/Service";
2
- import { ConfService } from "../configure/Service";
3
- import { DirectoryService } from "../directory/Service";
4
- import { HttpService } from "../transport/Service";
5
- import { ResourceService } from "../resources/ResourceService";
6
- import { RightService } from "../rights/Service";
7
- import { SessionService } from "../session/Service";
8
- import { ShareService } from "../share/Service";
9
- import { WorkspaceService } from "../workspace/Service";
10
- import { IdiomService } from "../idiom/Service";
11
- import { AnalyticsService } from "../analytics/Service";
1
+ import { CacheService } from '../cache/Service';
2
+ import { ConfService } from '../configure/Service';
3
+ import { DirectoryService } from '../directory/Service';
4
+ import { HttpService } from '../transport/Service';
5
+ import { ResourceService } from '../resources/ResourceService';
6
+ import { RightService } from '../rights/Service';
7
+ import { SessionService } from '../session/Service';
8
+ import { ShareService } from '../share/Service';
9
+ import { WorkspaceService } from '../workspace/Service';
10
+ import { IdiomService } from '../idiom/Service';
11
+ import { AnalyticsService } from '../analytics/Service';
12
12
  export interface IOdeServices {
13
13
  analytics(): AnalyticsService;
14
14
  cache(): CacheService;
@@ -0,0 +1,7 @@
1
+ import { IOdeServices } from './OdeServices';
2
+ export declare const odeServices: IOdeServices;
3
+ export * from '../directory/interface';
4
+ export * from '../resources/interface';
5
+ export * from '../rights/interface';
6
+ export * from '../share/interface';
7
+ export * from '../workspace/interface';
@@ -1,5 +1,5 @@
1
- import { ISessionFramework } from "./interfaces";
2
- import { Session } from "./Session";
1
+ import { ISessionFramework } from './interfaces';
2
+ import { Session } from './Session';
3
3
  export declare class SessionFramework implements ISessionFramework {
4
4
  session: Session;
5
5
  initialize(): Promise<void>;
@@ -1,10 +1,10 @@
1
- import { IGetSession, IQuotaAndUsage, IUserInfo, UserProfile } from "./interfaces";
2
- import { IOdeServices } from "../services/OdeServices";
1
+ import { IGetSession, IQuotaAndUsage, IUserInfo, UserProfile } from './interfaces';
2
+ import { IOdeServices } from '../services/OdeServices';
3
3
  export declare class SessionService {
4
4
  private context;
5
5
  constructor(context: IOdeServices);
6
- get http(): import("../transport/Service").HttpService;
7
- get cache(): import("../cache/Service").CacheService;
6
+ get http(): import('../transport/Service').HttpService;
7
+ get cache(): import('../cache/Service').CacheService;
8
8
  /**
9
9
  * Callback to call when user logout
10
10
  */