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.
- package/dist/ode-ts-client.esm.js +2212 -1942
- package/dist/ode-ts-client.esm.js.map +1 -1
- package/dist/ode-ts-client.js +4 -4
- package/dist/ode-ts-client.js.map +1 -1
- package/dist/ode-ts-client.mjs +2212 -1942
- package/dist/ode-ts-client.mjs.map +1 -1
- package/dist/test/Foundation.spec.d.ts +0 -0
- package/dist/{analytics → ts/analytics}/Service.d.ts +2 -2
- package/dist/{apps → ts/apps}/timeline/Framework.d.ts +2 -2
- package/dist/{apps → ts/apps}/timeline/Notification.model.d.ts +1 -1
- package/dist/{apps → ts/apps}/timeline/interfaces.d.ts +1 -1
- package/dist/{cache → ts/cache}/Service.d.ts +2 -2
- package/dist/{configure → ts/configure}/Analytics.d.ts +3 -3
- package/dist/{configure → ts/configure}/AppConf.d.ts +2 -2
- package/dist/{configure → ts/configure}/Framework.d.ts +6 -6
- package/dist/{configure → ts/configure}/Service.d.ts +3 -3
- package/dist/{configure → ts/configure}/Theme.d.ts +1 -1
- package/dist/{configure → ts/configure}/User.d.ts +3 -3
- package/dist/{configure → ts/configure}/interfaces.d.ts +7 -7
- package/dist/{directory → ts/directory}/Service.d.ts +2 -2
- package/dist/{explorer → ts/explorer}/interfaces.d.ts +41 -41
- package/dist/{globals.d.ts → ts/globals.d.ts} +2 -2
- package/dist/{idiom → ts/idiom}/Idiom.d.ts +1 -1
- package/dist/{idiom → ts/idiom}/Service.d.ts +3 -3
- package/dist/{idiom → ts/idiom}/interfaces.d.ts +1 -1
- package/dist/ts/index.cjs.d.ts +1 -0
- package/dist/ts/index.d.ts +10 -0
- package/dist/{notify → ts/notify}/Framework.d.ts +5 -5
- package/dist/{notify → ts/notify}/interfaces.d.ts +5 -5
- package/dist/{resources → ts/resources}/BlogResourceService.d.ts +3 -3
- package/dist/{resources → ts/resources}/MindmapResourceService.d.ts +3 -3
- package/dist/{resources → ts/resources}/ResourceService.d.ts +4 -4
- package/dist/{resources → ts/resources}/interface.d.ts +1 -1
- package/dist/{rights → ts/rights}/Service.d.ts +4 -4
- package/dist/{rights → ts/rights}/interface.d.ts +2 -2
- package/dist/{services → ts/services}/OdeServices.d.ts +11 -11
- package/dist/ts/services/index.d.ts +7 -0
- package/dist/{session → ts/session}/Framework.d.ts +2 -2
- package/dist/{session → ts/session}/Service.d.ts +4 -4
- package/dist/{session → ts/session}/Session.d.ts +2 -2
- package/dist/{session → ts/session}/interfaces.d.ts +7 -7
- package/dist/{share → ts/share}/Service.d.ts +5 -5
- package/dist/{share → ts/share}/interface.d.ts +6 -6
- package/dist/{transport → ts/transport}/Framework.d.ts +1 -1
- package/dist/{transport → ts/transport}/Http.d.ts +1 -1
- package/dist/{transport → ts/transport}/Service.d.ts +2 -2
- package/dist/{transport → ts/transport}/interfaces.d.ts +3 -3
- package/dist/{utils → ts/utils}/FileTypeUtils.d.ts +1 -1
- package/dist/{widget → ts/widget}/Framework.d.ts +2 -2
- package/dist/{widget → ts/widget}/interfaces.d.ts +5 -5
- package/dist/{workspace → ts/workspace}/Service.d.ts +2 -2
- package/dist/version.txt +1 -1
- package/package.json +6 -6
- package/dist/index.cjs.d.ts +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/legacy/Behaviours.d.ts +0 -35
- package/dist/legacy/entcore.d.ts +0 -7
- package/dist/legacy/http.d.ts +0 -24
- package/dist/legacy/me.d.ts +0 -12
- package/dist/legacy/rights.d.ts +0 -55
- package/dist/services/index.d.ts +0 -7
- /package/dist/{directory → ts/directory}/interface.d.ts +0 -0
- /package/dist/{utils → ts/utils}/MimeTypeUtils.d.ts +0 -0
- /package/dist/{utils → ts/utils}/StringUtils.d.ts +0 -0
- /package/dist/{widget → ts/widget}/LastInfos.widget.d.ts +0 -0
- /package/dist/{workspace → ts/workspace}/interface.d.ts +0 -0
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IWebApp } from
|
|
2
|
-
import { IOdeServices } from
|
|
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
|
|
2
|
-
import { Notification } from
|
|
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
|
|
1
|
+
import { ITimelineNotification, NotificationModel } from './interfaces';
|
|
2
2
|
export declare class Notification implements ITimelineNotification {
|
|
3
3
|
constructor(model: NotificationModel);
|
|
4
4
|
_id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IHttpParams, IHttpResponse } from
|
|
2
|
-
import { OdeServices } from
|
|
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
|
|
2
|
-
export
|
|
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
|
|
8
|
+
export type XitiConf = {
|
|
9
9
|
ID_EXPLOITANT: string;
|
|
10
10
|
ID_PLATEFORME: string;
|
|
11
11
|
ID_PROJET: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IConfigurationFramework } from
|
|
2
|
-
import { Theme } from
|
|
3
|
-
import { Idiom } from
|
|
4
|
-
import { User } from
|
|
5
|
-
import { AppConf } from
|
|
6
|
-
import { Analytics } from
|
|
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
|
|
2
|
-
import { App } from
|
|
3
|
-
import { IOdeServices } from
|
|
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
|
|
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
|
|
2
|
-
import { IUserPreferences } from
|
|
3
|
-
import { IWebApp } from
|
|
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
|
|
2
|
-
import { IWebApp } from
|
|
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
|
|
62
|
-
export
|
|
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
|
|
165
|
+
export type IThemeOverrides = {
|
|
166
166
|
[app in App]?: string;
|
|
167
167
|
};
|
|
168
|
-
export
|
|
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
|
|
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
|
|
2
|
-
import { Bookmark, BookmarkWithDetails, BookmarkWithMembers, Group, User } from
|
|
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
|
|
2
|
-
import { App } from
|
|
3
|
-
import { RightRole } from
|
|
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
|
|
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
|
|
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
|
|
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
|
|
155
|
+
export type BooleanFilterType = (typeof BOOLEAN_FILTER)[keyof typeof BOOLEAN_FILTER];
|
|
156
156
|
export declare const STRING_FILTER: {};
|
|
157
|
-
export
|
|
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
|
|
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
|
|
171
|
-
export
|
|
172
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
200
|
-
export
|
|
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
|
|
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
|
|
289
|
-
export
|
|
290
|
-
export
|
|
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
|
|
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
|
|
303
|
+
export type OpenParameters = IActionParameters & {
|
|
304
304
|
resourceId: ID;
|
|
305
305
|
};
|
|
306
|
-
export
|
|
306
|
+
export type PrintParameters = IActionParameters & {
|
|
307
307
|
resourceId: ID;
|
|
308
308
|
withComments?: boolean;
|
|
309
309
|
};
|
|
310
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
335
|
+
export type ManagePropertiesParameters = IActionParameters & {
|
|
336
336
|
resources: IResource[];
|
|
337
337
|
};
|
|
338
|
-
export
|
|
338
|
+
export type UpdatePropertiesParameters = IActionParameters & {
|
|
339
339
|
resources: IResource[];
|
|
340
340
|
props: {
|
|
341
341
|
[key in PropKeyType]?: string;
|
|
342
342
|
};
|
|
343
343
|
};
|
|
344
|
-
export
|
|
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
|
|
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
|
|
368
|
+
export type OrderValues = {
|
|
369
369
|
[O in SortByType]?: SortOrderType;
|
|
370
370
|
};
|
|
371
371
|
export interface IActionResult {
|
|
372
372
|
}
|
|
373
|
-
export
|
|
374
|
-
export
|
|
375
|
-
export
|
|
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
|
|
378
|
+
export type CreateFolderResult = IActionResult & IFolder & {
|
|
379
379
|
createdAt: string;
|
|
380
380
|
creator_id?: string;
|
|
381
381
|
};
|
|
382
|
-
export
|
|
382
|
+
export type UpdateFolderResult = CreateFolderResult & {
|
|
383
383
|
updatedAt: string;
|
|
384
384
|
parentId: ID | "default";
|
|
385
385
|
};
|
|
386
|
-
export
|
|
386
|
+
export type ManagePropertiesResult = IActionResult & {
|
|
387
387
|
genericProps: IProperty[];
|
|
388
388
|
};
|
|
389
|
-
export
|
|
389
|
+
export type UpdatePropertiesResult = IActionResult & {
|
|
390
390
|
resources: IResource[];
|
|
391
391
|
};
|
|
392
|
-
export
|
|
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
|
|
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
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { AddBundleCallback, IIdiom } from
|
|
2
|
-
import { IOdeServices } from
|
|
3
|
-
import { App } from
|
|
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;
|
|
@@ -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
|
|
2
|
-
import { EventName, LayerName } from
|
|
3
|
-
import { ITheme, IThemeOverrides } from
|
|
4
|
-
import { IUserInfo } from
|
|
5
|
-
import { IPromisified, INotifyFramework } from
|
|
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
|
|
2
|
-
import { ITheme, IThemeOverrides } from
|
|
3
|
-
import { IUserInfo } from
|
|
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
|
|
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
|
|
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
|
|
3
|
-
import { ResourceService } from
|
|
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
|
|
3
|
-
import { ResourceService } from
|
|
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
|
|
3
|
-
import { CreateParameters, CreateResult, UpdateParameters, UpdateResult } from
|
|
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(
|
|
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,10 +1,10 @@
|
|
|
1
|
-
import { RightStringified } from
|
|
2
|
-
import { OdeServices } from
|
|
3
|
-
import { ResourceRight, RightRole } from
|
|
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(
|
|
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
|
|
4
|
+
export type RightSubject = "user" | "group" | "creator";
|
|
5
5
|
/**
|
|
6
6
|
* Identify the role of the right
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
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
|
|
2
|
-
import { ConfService } from
|
|
3
|
-
import { DirectoryService } from
|
|
4
|
-
import { HttpService } from
|
|
5
|
-
import { ResourceService } from
|
|
6
|
-
import { RightService } from
|
|
7
|
-
import { SessionService } from
|
|
8
|
-
import { ShareService } from
|
|
9
|
-
import { WorkspaceService } from
|
|
10
|
-
import { IdiomService } from
|
|
11
|
-
import { AnalyticsService } from
|
|
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
|
|
2
|
-
import { Session } from
|
|
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
|
|
2
|
-
import { IOdeServices } from
|
|
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(
|
|
7
|
-
get cache(): import(
|
|
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
|
*/
|