@pilotdev/pilot-web-sdk 26.14.0 → 26.16.0
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/fesm2022/pilotdev-pilot-web-sdk.mjs +4 -0
- package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +1 -1
- package/package.json +8 -9
- package/types/pilotdev-pilot-web-sdk.d.ts +2104 -0
- package/esm2022/lib/base/disposable.mjs +0 -14
- package/esm2022/lib/base/index.mjs +0 -3
- package/esm2022/lib/base/initializable.mjs +0 -14
- package/esm2022/lib/commands/command-builder.mjs +0 -2
- package/esm2022/lib/commands/index.mjs +0 -2
- package/esm2022/lib/contexts/bim-element-panel-context.mjs +0 -16
- package/esm2022/lib/contexts/bim-right-panel-context.mjs +0 -16
- package/esm2022/lib/contexts/context.mjs +0 -32
- package/esm2022/lib/contexts/dialog-context.mjs +0 -10
- package/esm2022/lib/contexts/document-annotations-list-context.mjs +0 -16
- package/esm2022/lib/contexts/index.mjs +0 -10
- package/esm2022/lib/contexts/object-card-context.mjs +0 -63
- package/esm2022/lib/contexts/page-context.mjs +0 -3
- package/esm2022/lib/contexts/render-context.mjs +0 -24
- package/esm2022/lib/contexts/settings-feature-context.mjs +0 -21
- package/esm2022/lib/data/access.mjs +0 -29
- package/esm2022/lib/data/annotations.mjs +0 -34
- package/esm2022/lib/data/attribute.mjs +0 -35
- package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +0 -9
- package/esm2022/lib/data/bim-features/bim-search-set.mjs +0 -2
- package/esm2022/lib/data/bim-features/index.mjs +0 -3
- package/esm2022/lib/data/cades-type.mjs +0 -13
- package/esm2022/lib/data/certificate.mjs +0 -2
- package/esm2022/lib/data/data-object.mjs +0 -19
- package/esm2022/lib/data/expected-error.mjs +0 -9
- package/esm2022/lib/data/file.mjs +0 -2
- package/esm2022/lib/data/files-snapshot.mjs +0 -2
- package/esm2022/lib/data/index.mjs +0 -21
- package/esm2022/lib/data/organisation-unit.mjs +0 -7
- package/esm2022/lib/data/person.mjs +0 -2
- package/esm2022/lib/data/relation.mjs +0 -2
- package/esm2022/lib/data/signature-custom-state.mjs +0 -2
- package/esm2022/lib/data/signature-verification-result.mjs +0 -2
- package/esm2022/lib/data/signature-verification-status.mjs +0 -11
- package/esm2022/lib/data/subscription-type.mjs +0 -6
- package/esm2022/lib/data/theme.mjs +0 -6
- package/esm2022/lib/data/user-state-machine.mjs +0 -2
- package/esm2022/lib/data/user-state.mjs +0 -12
- package/esm2022/lib/icrypto-provider.mjs +0 -96
- package/esm2022/lib/idata.plugin.mjs +0 -11
- package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/bim-features.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +0 -2
- package/esm2022/lib/injectable/bim-features/index.mjs +0 -4
- package/esm2022/lib/injectable/command-builder-provider.mjs +0 -2
- package/esm2022/lib/injectable/dialog-service.mjs +0 -2
- package/esm2022/lib/injectable/index.mjs +0 -12
- package/esm2022/lib/injectable/injection-source.mjs +0 -55
- package/esm2022/lib/injectable/ipersonal-settings.mjs +0 -2
- package/esm2022/lib/injectable/modifier-provider.mjs +0 -2
- package/esm2022/lib/injectable/objects-repository.mjs +0 -2
- package/esm2022/lib/injectable/progress-service.mjs +0 -8
- package/esm2022/lib/injectable/render-context-provider.mjs +0 -2
- package/esm2022/lib/injectable/repository-events.mjs +0 -2
- package/esm2022/lib/injectable/theme-service.mjs +0 -2
- package/esm2022/lib/menu/checkable-menu.builder.mjs +0 -14
- package/esm2022/lib/menu/index.mjs +0 -5
- package/esm2022/lib/menu/menu-item.builder.mjs +0 -39
- package/esm2022/lib/menu/menu.builder.mjs +0 -68
- package/esm2022/lib/menu/menu.mjs +0 -23
- package/esm2022/lib/modifier/attribute-modifier.mjs +0 -2
- package/esm2022/lib/modifier/index.mjs +0 -5
- package/esm2022/lib/modifier/modifier.mjs +0 -2
- package/esm2022/lib/modifier/object-builder.mjs +0 -2
- package/esm2022/lib/modifier/signature-modifier.mjs +0 -2
- package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +0 -20
- package/esm2022/lib/object-card/index.mjs +0 -3
- package/esm2022/lib/object-card/object-card-handler.mjs +0 -30
- package/esm2022/lib/openspace/index.mjs +0 -2
- package/esm2022/lib/openspace/openspace-view.mjs +0 -29
- package/esm2022/lib/page-navigation/index.mjs +0 -5
- package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +0 -42
- package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +0 -47
- package/esm2022/lib/page-navigation/page-navigation.builder.mjs +0 -40
- package/esm2022/lib/page-navigation/page-navigation.mjs +0 -15
- package/esm2022/lib/personal-settings/index.mjs +0 -4
- package/esm2022/lib/personal-settings/isettings-feature.mjs +0 -42
- package/esm2022/lib/personal-settings/isettings-value-provider.mjs +0 -27
- package/esm2022/lib/personal-settings/system-settings-keys.mjs +0 -83
- package/esm2022/lib/tabs/index.mjs +0 -4
- package/esm2022/lib/tabs/tab-item.builder.mjs +0 -35
- package/esm2022/lib/tabs/tabs.builder.mjs +0 -40
- package/esm2022/lib/tabs/tabs.mjs +0 -15
- package/esm2022/lib/toolbar/index.mjs +0 -7
- package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -11
- package/esm2022/lib/toolbar/toolbar-item.builder.mjs +0 -41
- package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +0 -15
- package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -14
- package/esm2022/lib/toolbar/toolbar.builder.mjs +0 -88
- package/esm2022/lib/toolbar/toolbar.mjs +0 -28
- package/esm2022/lib/tools/attribute-permission.info.mjs +0 -45
- package/esm2022/lib/tools/guid.mjs +0 -53
- package/esm2022/lib/tools/index.mjs +0 -4
- package/esm2022/lib/tools/utils.mjs +0 -8
- package/esm2022/pilotdev-pilot-web-sdk.mjs +0 -5
- package/esm2022/public-api.mjs +0 -20
- package/index.d.ts +0 -5
- package/lib/base/disposable.d.ts +0 -7
- package/lib/base/index.d.ts +0 -2
- package/lib/base/initializable.d.ts +0 -8
- package/lib/commands/command-builder.d.ts +0 -15
- package/lib/commands/index.d.ts +0 -1
- package/lib/contexts/bim-element-panel-context.d.ts +0 -8
- package/lib/contexts/bim-right-panel-context.d.ts +0 -8
- package/lib/contexts/context.d.ts +0 -22
- package/lib/contexts/dialog-context.d.ts +0 -5
- package/lib/contexts/document-annotations-list-context.d.ts +0 -12
- package/lib/contexts/index.d.ts +0 -9
- package/lib/contexts/object-card-context.d.ts +0 -41
- package/lib/contexts/page-context.d.ts +0 -2
- package/lib/contexts/render-context.d.ts +0 -17
- package/lib/contexts/settings-feature-context.d.ts +0 -11
- package/lib/data/access.d.ts +0 -38
- package/lib/data/annotations.d.ts +0 -113
- package/lib/data/attribute.d.ts +0 -48
- package/lib/data/bim-features/bim-compare-diff.d.ts +0 -15
- package/lib/data/bim-features/bim-search-set.d.ts +0 -13
- package/lib/data/bim-features/index.d.ts +0 -2
- package/lib/data/cades-type.d.ts +0 -11
- package/lib/data/certificate.d.ts +0 -29
- package/lib/data/data-object.d.ts +0 -77
- package/lib/data/expected-error.d.ts +0 -5
- package/lib/data/file.d.ts +0 -31
- package/lib/data/files-snapshot.d.ts +0 -8
- package/lib/data/index.d.ts +0 -20
- package/lib/data/organisation-unit.d.ts +0 -20
- package/lib/data/person.d.ts +0 -17
- package/lib/data/relation.d.ts +0 -8
- package/lib/data/signature-custom-state.d.ts +0 -23
- package/lib/data/signature-verification-result.d.ts +0 -18
- package/lib/data/signature-verification-status.d.ts +0 -9
- package/lib/data/subscription-type.d.ts +0 -4
- package/lib/data/theme.d.ts +0 -7
- package/lib/data/user-state-machine.d.ts +0 -10
- package/lib/data/user-state.d.ts +0 -20
- package/lib/icrypto-provider.d.ts +0 -82
- package/lib/idata.plugin.d.ts +0 -6
- package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +0 -4
- package/lib/injectable/bim-features/bim-features.d.ts +0 -6
- package/lib/injectable/bim-features/bim-search-set-service.d.ts +0 -39
- package/lib/injectable/bim-features/index.d.ts +0 -3
- package/lib/injectable/command-builder-provider.d.ts +0 -10
- package/lib/injectable/dialog-service.d.ts +0 -5
- package/lib/injectable/index.d.ts +0 -11
- package/lib/injectable/injection-source.d.ts +0 -26
- package/lib/injectable/ipersonal-settings.d.ts +0 -48
- package/lib/injectable/modifier-provider.d.ts +0 -10
- package/lib/injectable/objects-repository.d.ts +0 -87
- package/lib/injectable/progress-service.d.ts +0 -18
- package/lib/injectable/render-context-provider.d.ts +0 -10
- package/lib/injectable/repository-events.d.ts +0 -31
- package/lib/injectable/theme-service.d.ts +0 -6
- package/lib/menu/checkable-menu.builder.d.ts +0 -11
- package/lib/menu/index.d.ts +0 -4
- package/lib/menu/menu-item.builder.d.ts +0 -27
- package/lib/menu/menu.builder.d.ts +0 -49
- package/lib/menu/menu.d.ts +0 -20
- package/lib/modifier/attribute-modifier.d.ts +0 -9
- package/lib/modifier/index.d.ts +0 -4
- package/lib/modifier/modifier.d.ts +0 -30
- package/lib/modifier/object-builder.d.ts +0 -140
- package/lib/modifier/signature-modifier.d.ts +0 -87
- package/lib/object-card/attribute-value-changed-event-args.d.ts +0 -10
- package/lib/object-card/index.d.ts +0 -2
- package/lib/object-card/object-card-handler.d.ts +0 -25
- package/lib/openspace/index.d.ts +0 -1
- package/lib/openspace/openspace-view.d.ts +0 -20
- package/lib/page-navigation/index.d.ts +0 -4
- package/lib/page-navigation/page-navigation-section-element.builder.d.ts +0 -29
- package/lib/page-navigation/page-navigation-section.builder.d.ts +0 -33
- package/lib/page-navigation/page-navigation.builder.d.ts +0 -28
- package/lib/page-navigation/page-navigation.d.ts +0 -9
- package/lib/personal-settings/index.d.ts +0 -3
- package/lib/personal-settings/isettings-feature.d.ts +0 -31
- package/lib/personal-settings/isettings-value-provider.d.ts +0 -17
- package/lib/personal-settings/system-settings-keys.d.ts +0 -82
- package/lib/tabs/index.d.ts +0 -3
- package/lib/tabs/tab-item.builder.d.ts +0 -24
- package/lib/tabs/tabs.builder.d.ts +0 -28
- package/lib/tabs/tabs.d.ts +0 -14
- package/lib/toolbar/index.d.ts +0 -6
- package/lib/toolbar/toolbar-item-submenu.handler.d.ts +0 -9
- package/lib/toolbar/toolbar-item.builder.d.ts +0 -28
- package/lib/toolbar/toolbar-menu-item.builder.d.ts +0 -13
- package/lib/toolbar/toolbar-toggle-item.builder.d.ts +0 -11
- package/lib/toolbar/toolbar.builder.d.ts +0 -65
- package/lib/toolbar/toolbar.d.ts +0 -21
- package/lib/tools/attribute-permission.info.d.ts +0 -9
- package/lib/tools/guid.d.ts +0 -7
- package/lib/tools/index.d.ts +0 -3
- package/lib/tools/utils.d.ts +0 -3
- package/public-api.d.ts +0 -16
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { IBimModelSearchResult, IBimSearchSetData } from "../../data";
|
|
3
|
-
export interface IBimSearchSetService {
|
|
4
|
-
/**
|
|
5
|
-
* Get the first-level search sets located directly under the hidden root folder of a model.
|
|
6
|
-
* Does not traverse into subfolders; returns only immediate children.
|
|
7
|
-
* @param {string} id Model identifier whose root search-set folder is queried.
|
|
8
|
-
* @returns {Observable<IBimSearchSetData[]>} Emits the list of search sets at level 1, then completes.
|
|
9
|
-
*/
|
|
10
|
-
getFromModel(id: string): Observable<IBimSearchSetData[]>;
|
|
11
|
-
/**
|
|
12
|
-
* Get all search sets from the hidden root folder of a model recursively.
|
|
13
|
-
* Traverses all nested folders and aggregates every search set found.
|
|
14
|
-
* @param {string} id Model identifier whose search sets are retrieved recursively.
|
|
15
|
-
* @returns {Observable<IBimSearchSetData[]>} Emits the flattened list of all search sets from all levels, then completes.
|
|
16
|
-
*/
|
|
17
|
-
getRecursivelyFromModel(id: string): Observable<IBimSearchSetData[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Get search sets directly contained in a specific search-set folder by its ID.
|
|
20
|
-
* Does not include items from child folders.
|
|
21
|
-
* @param {string} id Search-set folder identifier to read from.
|
|
22
|
-
* @returns {Observable<IBimSearchSetData[]>} Emits the list of immediate search sets in the folder, then completes.
|
|
23
|
-
*/
|
|
24
|
-
getFromFolder(id: string): Observable<IBimSearchSetData[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Execute a stored search set against specified model parts.
|
|
27
|
-
* @param {string} id Identifier of the search set to execute.
|
|
28
|
-
* @param {string[]} modelPartIds Identifiers of model parts to include in the search scope.
|
|
29
|
-
* @returns {Observable<IBimModelSearchResult[]>} Emits matched items for the executed search set, then completes.
|
|
30
|
-
*/
|
|
31
|
-
executeSearchSet(id: string, modelPartIds: string[]): Observable<IBimModelSearchResult[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Execute an ad-hoc string-based query against specified model parts.
|
|
34
|
-
* @param {string} query Query expression.
|
|
35
|
-
* @param {string[]} modelPartIds Identifiers of model parts to include in the search scope.
|
|
36
|
-
* @returns {Observable<IBimModelSearchResult[]>} Emits matched items for the query, then completes.
|
|
37
|
-
*/
|
|
38
|
-
executeStringQuery(query: string, modelPartIds: string[]): Observable<IBimModelSearchResult[]>;
|
|
39
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './injection-source';
|
|
2
|
-
export * from './objects-repository';
|
|
3
|
-
export * from './render-context-provider';
|
|
4
|
-
export * from './modifier-provider';
|
|
5
|
-
export * from './repository-events';
|
|
6
|
-
export * from './progress-service';
|
|
7
|
-
export * from './theme-service';
|
|
8
|
-
export * from './command-builder-provider';
|
|
9
|
-
export * from './ipersonal-settings';
|
|
10
|
-
export * from './dialog-service';
|
|
11
|
-
export * from './bim-features';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IModifierProvider, IObjectsRepository, IProgressService, IRenderContextProvider, IRepositoryEvents, IThemeService, IPersonalSettings, IDialogService } from '../injectable';
|
|
2
|
-
import { IBimFeatures } from './bim-features';
|
|
3
|
-
import { ICommandBuilderProvider } from './command-builder-provider';
|
|
4
|
-
export declare class InjectionSource {
|
|
5
|
-
private _modifierProvider;
|
|
6
|
-
private _objectsRepository;
|
|
7
|
-
private _renderContextProvider;
|
|
8
|
-
private _repositoryEvents;
|
|
9
|
-
private _progressService;
|
|
10
|
-
private _themeService;
|
|
11
|
-
private _commandBuilderProvider;
|
|
12
|
-
private _personalSettings;
|
|
13
|
-
private _dialogService;
|
|
14
|
-
private _bimFeatures;
|
|
15
|
-
constructor(_modifierProvider: IModifierProvider, _objectsRepository: IObjectsRepository, _renderContextProvider: IRenderContextProvider, _repositoryEvents: IRepositoryEvents, _progressService: IProgressService, _themeService: IThemeService, _commandBuilderProvider: ICommandBuilderProvider, _personalSettings: IPersonalSettings, _dialogService: IDialogService, _bimFeatures: IBimFeatures);
|
|
16
|
-
get modifierProvider(): IModifierProvider;
|
|
17
|
-
get objectsRepository(): IObjectsRepository;
|
|
18
|
-
get renderContextProvider(): IRenderContextProvider;
|
|
19
|
-
get repositoryEvents(): IRepositoryEvents;
|
|
20
|
-
get progressService(): IProgressService;
|
|
21
|
-
get themeService(): IThemeService;
|
|
22
|
-
get personalSettings(): IPersonalSettings;
|
|
23
|
-
get commandBuilderProvider(): ICommandBuilderProvider;
|
|
24
|
-
get dialogService(): IDialogService;
|
|
25
|
-
get bimFeatures(): IBimFeatures;
|
|
26
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
/**
|
|
3
|
-
* Interface for personal settings
|
|
4
|
-
* @interface IPersonalSettings
|
|
5
|
-
*/
|
|
6
|
-
export interface IPersonalSettings {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the personal setting value for a given key
|
|
9
|
-
* @method getPersonalSettingValue
|
|
10
|
-
* @param {string} key - The key of the setting to retrieve
|
|
11
|
-
* @returns {Observable<string | undefined>} An observable containing the setting value or undefined
|
|
12
|
-
* @memberof IPersonalSettings
|
|
13
|
-
*/
|
|
14
|
-
getPersonalSettingValue(key: string): Observable<string | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* Subscribes to the personal setting value changes for a given key
|
|
17
|
-
* @method subscribePersonalSettingValueChange
|
|
18
|
-
* @param {string} key - The key of the setting to retrieve
|
|
19
|
-
* @returns {Observable<string | undefined>} An observable containing the setting value or undefined
|
|
20
|
-
* @memberof IPersonalSettings
|
|
21
|
-
*/
|
|
22
|
-
subscribePersonalSettingValueChange(key: string): Observable<string | undefined>;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves the common setting value for a given key
|
|
25
|
-
* @method getCommonSettingValue
|
|
26
|
-
* @param {string} key - The key of the setting to retrieve
|
|
27
|
-
* @returns {Observable<string[]>} An observable containing the array of common setting values
|
|
28
|
-
* @memberof IPersonalSettings
|
|
29
|
-
*/
|
|
30
|
-
getCommonSettingValue(key: string): Observable<string[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Subscribes to the common setting value changes for a given key
|
|
33
|
-
* @method subscribeCommonSettingValueChange
|
|
34
|
-
* @param {string} key - The key of the setting to retrieve
|
|
35
|
-
* @returns {Observable<string[]>} An observable containing the setting value or undefined
|
|
36
|
-
* @memberof IPersonalSettings
|
|
37
|
-
*/
|
|
38
|
-
subscribeCommonSettingValueChange(key: string): Observable<string[]>;
|
|
39
|
-
/**
|
|
40
|
-
* Changes the value of a setting
|
|
41
|
-
* @method changeSettingValue
|
|
42
|
-
* @param {string} key - The key of the setting to change
|
|
43
|
-
* @param {string} value - The new value of the setting
|
|
44
|
-
* @returns {Observable<void>}
|
|
45
|
-
* @memberof IPersonalSettings
|
|
46
|
-
*/
|
|
47
|
-
changeSettingValue(key: string, value: string): Observable<void>;
|
|
48
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { AccessLevel, IAccessRecord } from "../data/access";
|
|
3
|
-
import { IDataObject, IPerson, IType, IOrganisationUnit } from "../data";
|
|
4
|
-
import { IUserStateMachine } from "../data/user-state-machine";
|
|
5
|
-
/**
|
|
6
|
-
* Represents the repository that provides access to objects, types, organisation units and people
|
|
7
|
-
*/
|
|
8
|
-
export interface IObjectsRepository {
|
|
9
|
-
/**
|
|
10
|
-
* Get objects with specified ids
|
|
11
|
-
*
|
|
12
|
-
* @param ids Ids of objects to subsribe
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
getObjects(ids: string[]): Observable<IDataObject[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Get object's access for the person
|
|
18
|
-
*
|
|
19
|
-
* @param objectId Object id
|
|
20
|
-
* @param personId Person Id
|
|
21
|
-
* @returns Cold Observable
|
|
22
|
-
*/
|
|
23
|
-
getCurrentAccess(objectId: string, personId: number): Observable<AccessLevel>;
|
|
24
|
-
/**
|
|
25
|
-
* Get access records for the object
|
|
26
|
-
*
|
|
27
|
-
* @param objectId Object id
|
|
28
|
-
* @param positions Person position ids
|
|
29
|
-
* @returns Cold Observable
|
|
30
|
-
*/
|
|
31
|
-
getAccessRecords(objectId: string, positions: number[]): Observable<IAccessRecord[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the person with specified id
|
|
34
|
-
*
|
|
35
|
-
* @param id Person id
|
|
36
|
-
* @returns Person
|
|
37
|
-
*/
|
|
38
|
-
getPerson(id: number): IPerson;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the current person
|
|
41
|
-
*
|
|
42
|
-
* @returns Person
|
|
43
|
-
*/
|
|
44
|
-
getCurrentPerson(): IPerson;
|
|
45
|
-
/**
|
|
46
|
-
* Gets all the people registred in database
|
|
47
|
-
*
|
|
48
|
-
* @returns Person[]
|
|
49
|
-
*/
|
|
50
|
-
getPeople(): IPerson[];
|
|
51
|
-
/**
|
|
52
|
-
* Gets type by identifier
|
|
53
|
-
*
|
|
54
|
-
* @returns Type
|
|
55
|
-
*/
|
|
56
|
-
getType(id: number): IType;
|
|
57
|
-
/**
|
|
58
|
-
* Gets type by name
|
|
59
|
-
*
|
|
60
|
-
* @returns Type
|
|
61
|
-
*/
|
|
62
|
-
getTypeByName(name: string): IType;
|
|
63
|
-
/**
|
|
64
|
-
* Gets all the types registered in database
|
|
65
|
-
*
|
|
66
|
-
* @returns Type[]
|
|
67
|
-
*/
|
|
68
|
-
getTypes(): IType[];
|
|
69
|
-
/**
|
|
70
|
-
* Gets organisation unit by identifier
|
|
71
|
-
*
|
|
72
|
-
* @returns OrganisationUnit
|
|
73
|
-
*/
|
|
74
|
-
getOrganisationUnit(id: number): IOrganisationUnit;
|
|
75
|
-
/**
|
|
76
|
-
* Get all the organisation units registered in database
|
|
77
|
-
*
|
|
78
|
-
* @returns OrganisationUnit
|
|
79
|
-
*/
|
|
80
|
-
getOrganisationUnits(): IOrganisationUnit[];
|
|
81
|
-
/**
|
|
82
|
-
* Get all the user state machines registered in database
|
|
83
|
-
*
|
|
84
|
-
* @returns IUserStateMachine
|
|
85
|
-
*/
|
|
86
|
-
getUserStateMachines(): Map<string, IUserStateMachine>;
|
|
87
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export interface IProgressService {
|
|
6
|
-
get percentage(): Observable<number>;
|
|
7
|
-
get isOpen(): boolean;
|
|
8
|
-
open(mode: ProgressBarMode): void;
|
|
9
|
-
update(percentage: number): void;
|
|
10
|
-
reset(): void;
|
|
11
|
-
close(): void;
|
|
12
|
-
}
|
|
13
|
-
export declare enum ProgressBarMode {
|
|
14
|
-
Determinate = 0,
|
|
15
|
-
Indeterminate = 1,
|
|
16
|
-
Buffer = 2,
|
|
17
|
-
Query = 3
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { IDataObject, IPerson, IType, IOrganisationUnit } from "../data";
|
|
3
|
-
/**
|
|
4
|
-
* Notifies on change events
|
|
5
|
-
*/
|
|
6
|
-
export interface IRepositoryEvents {
|
|
7
|
-
/**
|
|
8
|
-
* Subsribes to changes in objects with specified identifiers
|
|
9
|
-
*
|
|
10
|
-
* @returns Hot observable
|
|
11
|
-
*/
|
|
12
|
-
subscribeObjects(ids: string[]): Observable<IDataObject>;
|
|
13
|
-
/**
|
|
14
|
-
* Subsribes to changes in people
|
|
15
|
-
*
|
|
16
|
-
* @returns Hot observable
|
|
17
|
-
*/
|
|
18
|
-
subscribePeople(): Observable<IPerson>;
|
|
19
|
-
/**
|
|
20
|
-
* Subsribes to changes in types
|
|
21
|
-
*
|
|
22
|
-
* @returns Hot observable
|
|
23
|
-
*/
|
|
24
|
-
subscribeTypes(): Observable<IType>;
|
|
25
|
-
/**
|
|
26
|
-
* Subsribes to changes in organisation units
|
|
27
|
-
*
|
|
28
|
-
* @returns Hot observable
|
|
29
|
-
*/
|
|
30
|
-
subscribeOrganisationUnits(): Observable<IOrganisationUnit>;
|
|
31
|
-
}
|
package/lib/menu/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IMenuBuilder } from "./menu.builder";
|
|
2
|
-
/**
|
|
3
|
-
* Represents a menu item and enables to set parametres to it
|
|
4
|
-
*/
|
|
5
|
-
export declare abstract class IMenuItemBuilder {
|
|
6
|
-
constructor();
|
|
7
|
-
/**
|
|
8
|
-
* Item's name to be displayed
|
|
9
|
-
* @param header value
|
|
10
|
-
*/
|
|
11
|
-
withHeader(header: string): IMenuItemBuilder;
|
|
12
|
-
/**
|
|
13
|
-
* Item's icon
|
|
14
|
-
* @param name Icon name
|
|
15
|
-
* @param iconSvg Url of icon or base64 string
|
|
16
|
-
*/
|
|
17
|
-
withIcon(name: string, iconSvg: string): IMenuItemBuilder;
|
|
18
|
-
/**
|
|
19
|
-
* Enabled the item
|
|
20
|
-
* @param value value
|
|
21
|
-
*/
|
|
22
|
-
withIsEnabled(value: boolean): IMenuItemBuilder;
|
|
23
|
-
/**
|
|
24
|
-
* Item's submenu
|
|
25
|
-
*/
|
|
26
|
-
withSubmenu(): IMenuBuilder;
|
|
27
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ICheckableMenuItemBuilder } from "./checkable-menu.builder";
|
|
2
|
-
import { IMenuItemBuilder } from "./menu-item.builder";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a menu and enables to add new items to it
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class IMenuBuilder {
|
|
7
|
-
constructor();
|
|
8
|
-
/**
|
|
9
|
-
* Gets the list of existing items of associated menu or subitems of an item
|
|
10
|
-
* @returns Existing menu item names
|
|
11
|
-
*/
|
|
12
|
-
get itemNames(): string[];
|
|
13
|
-
/**
|
|
14
|
-
* Gets count of menu items
|
|
15
|
-
*/
|
|
16
|
-
get count(): number;
|
|
17
|
-
/**
|
|
18
|
-
* Adds a new separator to the associated menu
|
|
19
|
-
* @param index The index to put the new item at
|
|
20
|
-
*/
|
|
21
|
-
addSeparator(index: number): void;
|
|
22
|
-
/**
|
|
23
|
-
* Adds a new item to the associated menu
|
|
24
|
-
* @param name Item's internal name
|
|
25
|
-
* @param index The index to put the new item at
|
|
26
|
-
*/
|
|
27
|
-
addItem(name: string, index: number): IMenuItemBuilder;
|
|
28
|
-
/**
|
|
29
|
-
* Adds a new checkable item to the associated menu
|
|
30
|
-
* @param name Item's internal name
|
|
31
|
-
* @param index The index to put the new item at
|
|
32
|
-
*/
|
|
33
|
-
addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder;
|
|
34
|
-
/**
|
|
35
|
-
* Replaces the item to the associated menu
|
|
36
|
-
* @param name Item's internal name
|
|
37
|
-
*/
|
|
38
|
-
replaceItem(name: string): IMenuItemBuilder;
|
|
39
|
-
/**
|
|
40
|
-
* Removes the item with the specified name
|
|
41
|
-
* @param name Item's internal name
|
|
42
|
-
*/
|
|
43
|
-
removeItem(name: string): void;
|
|
44
|
-
/**
|
|
45
|
-
* Gets the item
|
|
46
|
-
* @param name Item's internal name
|
|
47
|
-
*/
|
|
48
|
-
getItem(name: string): IMenuBuilder;
|
|
49
|
-
}
|
package/lib/menu/menu.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DocumentAnnotationsListContext, ObjectsViewContext } from "../contexts";
|
|
2
|
-
import { IMenuBuilder } from "./menu.builder";
|
|
3
|
-
/**
|
|
4
|
-
* Interface that allows to add new items to the menu and context menus
|
|
5
|
-
* @exposedInterface
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class IMenu<TMenuContext extends ObjectsViewContext | DocumentAnnotationsListContext> {
|
|
8
|
-
/**
|
|
9
|
-
* The method is called just before the menu is shown
|
|
10
|
-
* @param builder The menu builder object of associated menu
|
|
11
|
-
* @param context Context
|
|
12
|
-
*/
|
|
13
|
-
build(builder: IMenuBuilder, context: TMenuContext): void;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @param name
|
|
17
|
-
* @param context
|
|
18
|
-
*/
|
|
19
|
-
onMenuItemClick(name: string, context: TMenuContext): void;
|
|
20
|
-
}
|
package/lib/modifier/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs/internal/Observable";
|
|
2
|
-
import { IDataObject } from "../data";
|
|
3
|
-
import { IObjectBuilder } from "./object-builder";
|
|
4
|
-
/**
|
|
5
|
-
* Creates, modifies and deletes objects
|
|
6
|
-
*/
|
|
7
|
-
export interface IModifier {
|
|
8
|
-
/**
|
|
9
|
-
* Creates a new object
|
|
10
|
-
*
|
|
11
|
-
* @param id New object id
|
|
12
|
-
* @param parentId Parent id
|
|
13
|
-
* @param typeId Creating object's type id
|
|
14
|
-
* @return Fluent interface that enables you to modify created object
|
|
15
|
-
*/
|
|
16
|
-
create(id: string, parentId: string, typeId: number): IObjectBuilder;
|
|
17
|
-
/**
|
|
18
|
-
* Edits existing object
|
|
19
|
-
*
|
|
20
|
-
* @param id Id of object to modify
|
|
21
|
-
* @returns Fluent interface that enables you to modify created object
|
|
22
|
-
*/
|
|
23
|
-
edit(id: string): IObjectBuilder;
|
|
24
|
-
/**
|
|
25
|
-
* Applies all the changes have been made in modifier
|
|
26
|
-
*
|
|
27
|
-
* @returns Created and edited objects wrapped in cold Observable
|
|
28
|
-
*/
|
|
29
|
-
apply(): Observable<IDataObject[]>;
|
|
30
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { AttributeType } from "../data/attribute";
|
|
2
|
-
import { IAnnotationContainer, IMarkup } from "../data/annotations";
|
|
3
|
-
import { IAccessRecord } from "../data/access";
|
|
4
|
-
import { IRelation } from "../data/relation";
|
|
5
|
-
import { ISignatureModifier } from "./signature-modifier";
|
|
6
|
-
/**
|
|
7
|
-
* Fluent interface that enables you to modify the associated object
|
|
8
|
-
*/
|
|
9
|
-
export interface IObjectBuilder {
|
|
10
|
-
/**
|
|
11
|
-
* Sets the string attribute value
|
|
12
|
-
*
|
|
13
|
-
* @param name Attribute name
|
|
14
|
-
* @param value Attribute value
|
|
15
|
-
* @returns Self
|
|
16
|
-
*/
|
|
17
|
-
setAttribute(name: string, value: any, type: AttributeType): IObjectBuilder;
|
|
18
|
-
/**
|
|
19
|
-
* Adds access record to an object
|
|
20
|
-
*
|
|
21
|
-
* @param record Access record
|
|
22
|
-
* @returns Self
|
|
23
|
-
*/
|
|
24
|
-
setAccess(record: IAccessRecord): IObjectBuilder;
|
|
25
|
-
/**
|
|
26
|
-
* Removes access record
|
|
27
|
-
*
|
|
28
|
-
* @param record Access record
|
|
29
|
-
* @returns Self
|
|
30
|
-
*/
|
|
31
|
-
removeAccess(record: IAccessRecord): IObjectBuilder;
|
|
32
|
-
/**
|
|
33
|
-
* Adds a relation
|
|
34
|
-
*
|
|
35
|
-
* @param relation Relation
|
|
36
|
-
* @returns Self
|
|
37
|
-
*/
|
|
38
|
-
addRelation(relation: IRelation): IObjectBuilder;
|
|
39
|
-
/**
|
|
40
|
-
* Removes relation
|
|
41
|
-
*
|
|
42
|
-
* @param relationId Relation id
|
|
43
|
-
* @returns Self
|
|
44
|
-
*/
|
|
45
|
-
removeRelation(relationId: string): IObjectBuilder;
|
|
46
|
-
/**
|
|
47
|
-
* Sets new type. It is recommended to use this method only for recovering permanently deleted objects. In other cases, this can lead to system malfunction.
|
|
48
|
-
*
|
|
49
|
-
* @param typeId Type id
|
|
50
|
-
* @returns Self
|
|
51
|
-
*/
|
|
52
|
-
setTypeId(typeId: number): IObjectBuilder;
|
|
53
|
-
/**
|
|
54
|
-
* Sets new parent
|
|
55
|
-
*
|
|
56
|
-
* @param parentId Parent id
|
|
57
|
-
* @returns Self
|
|
58
|
-
*/
|
|
59
|
-
setParentId(parentId: string): IObjectBuilder;
|
|
60
|
-
/**
|
|
61
|
-
* Adds file snapshot
|
|
62
|
-
*
|
|
63
|
-
* @param reason Reason
|
|
64
|
-
* @returns Self
|
|
65
|
-
*/
|
|
66
|
-
createSnapshot(reason: string): IObjectBuilder;
|
|
67
|
-
/**
|
|
68
|
-
* Makes file snapshot actual
|
|
69
|
-
*
|
|
70
|
-
* @param version Version of file snapshot to make actual
|
|
71
|
-
* @param reason Reason
|
|
72
|
-
* @returns Self
|
|
73
|
-
*/
|
|
74
|
-
createSnapshotFrom(version: string, reason: string): IObjectBuilder;
|
|
75
|
-
/**
|
|
76
|
-
* Adds a new file to the associated object
|
|
77
|
-
*
|
|
78
|
-
* @param file File identificator
|
|
79
|
-
* @param file File interface
|
|
80
|
-
* @param creationTime File creation time
|
|
81
|
-
* @param lastAccessTime File last access time
|
|
82
|
-
* @param lastWriteTime File last write time
|
|
83
|
-
* @returns Fluent interface that enables you to modify the associated object
|
|
84
|
-
*/
|
|
85
|
-
addFile(fileId: string, file: File, creationTime: Date, lastAccessTime: Date, lastWriteTime: Date): IObjectBuilder;
|
|
86
|
-
/**
|
|
87
|
-
* Removes file from actual file snapshot by identifier
|
|
88
|
-
* @param fileId file identificator
|
|
89
|
-
* @returns Fluent interface that enables you to modify the associated object
|
|
90
|
-
*/
|
|
91
|
-
removeFile(fileId: string): IObjectBuilder;
|
|
92
|
-
/**
|
|
93
|
-
* Sets permanently deleted flag
|
|
94
|
-
*
|
|
95
|
-
* @param isDeleted Value
|
|
96
|
-
* @returns Self
|
|
97
|
-
*/
|
|
98
|
-
setIsDeleted(isDeleted: boolean): IObjectBuilder;
|
|
99
|
-
/**
|
|
100
|
-
* Set flag in recycle bin
|
|
101
|
-
*
|
|
102
|
-
* @param isInRecycleBin Value
|
|
103
|
-
* @returns Self
|
|
104
|
-
*/
|
|
105
|
-
setIsInRecycleBin(isInRecycleBin: boolean): IObjectBuilder;
|
|
106
|
-
/**
|
|
107
|
-
* Sets frozen flag
|
|
108
|
-
*
|
|
109
|
-
* @param isFreezed Value
|
|
110
|
-
* @returns Self
|
|
111
|
-
*/
|
|
112
|
-
setIsFreezed(isFreezed: boolean): IObjectBuilder;
|
|
113
|
-
/**
|
|
114
|
-
* Sets object's secret info
|
|
115
|
-
*
|
|
116
|
-
* @param isSecret Value
|
|
117
|
-
* @returns Self
|
|
118
|
-
*/
|
|
119
|
-
setIsSecret(isSecret: boolean): IObjectBuilder;
|
|
120
|
-
/**
|
|
121
|
-
* Adds or changes a annotation
|
|
122
|
-
*
|
|
123
|
-
* @param container Annotation container
|
|
124
|
-
* @param attrbutes Annotation attributes
|
|
125
|
-
* @returns Self
|
|
126
|
-
*/
|
|
127
|
-
addAnnotationContainer(container: IAnnotationContainer, attrbutes: any): IObjectBuilder;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @param markups
|
|
131
|
-
*/
|
|
132
|
-
addMarkups(markups: IMarkup[]): IObjectBuilder;
|
|
133
|
-
/**
|
|
134
|
-
* Sets new signature requests to the selected file
|
|
135
|
-
*
|
|
136
|
-
* @param fileId file id
|
|
137
|
-
* @returns Fluent interface that enables you to modify the signatures of the filtered files
|
|
138
|
-
*/
|
|
139
|
-
setSignatures(fileId: string): ISignatureModifier;
|
|
140
|
-
}
|