dochub-sdk 0.1.37 → 0.1.38
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/.vscode/settings.json +8 -0
- package/index.ts +9 -8
- package/interfaces/{content.ts → contents.ts} +1 -1
- package/interfaces/core.ts +8 -6
- package/interfaces/objects.ts +18 -0
- package/interfaces/{protocol.ts → protocols.ts} +1 -1
- package/package.json +1 -1
- /package/interfaces/{constructor.ts → constructors.ts} +0 -0
- /package/interfaces/{context.ts → contexts.ts} +0 -0
- /package/interfaces/{document.ts → documents.ts} +0 -0
- /package/interfaces/{editor.ts → editors.ts} +0 -0
- /package/interfaces/{uicomponent.ts → uicomponents.ts} +0 -0
package/index.ts
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
import { IDocHubCore } from './interfaces/core';
|
2
2
|
|
3
|
-
export * from './interfaces/
|
4
|
-
export * from './interfaces/
|
3
|
+
export * from './interfaces/contexts';
|
4
|
+
export * from './interfaces/protocols';
|
5
5
|
export * from './interfaces/core';
|
6
|
-
export * from './interfaces/
|
7
|
-
export * from './interfaces/
|
8
|
-
export * from './interfaces/
|
9
|
-
export * from './interfaces/
|
6
|
+
export * from './interfaces/documents';
|
7
|
+
export * from './interfaces/protocols';
|
8
|
+
export * from './interfaces/uicomponents';
|
9
|
+
export * from './interfaces/editors';
|
10
10
|
export * from './interfaces/datalake';
|
11
|
-
export * from './interfaces/
|
12
|
-
export * from './interfaces/
|
11
|
+
export * from './interfaces/constructors';
|
12
|
+
export * from './interfaces/contents';
|
13
|
+
export * from './interfaces/objects';
|
13
14
|
|
14
15
|
export const DocHub: IDocHubCore = window['DocHub'];
|
15
16
|
export const Vue2: any = window['Vue'];
|
package/interfaces/core.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { IDocHubContentProvider } from './
|
2
|
-
import { IDocHubProtocol } from './
|
3
|
-
import { IDocHubDocument } from './
|
4
|
-
import { IDocHubEditors } from './
|
5
|
-
import { IDocHubUIComponent } from './
|
1
|
+
import { IDocHubContentProvider } from './contents';
|
2
|
+
import { IDocHubProtocol } from './protocols';
|
3
|
+
import { IDocHubDocument } from './documents';
|
4
|
+
import { IDocHubEditors } from './editors';
|
5
|
+
import { IDocHubUIComponent } from './uicomponents';
|
6
6
|
import { IDocHubDataLake } from './datalake';
|
7
|
-
import { IDocHubConstructors } from './
|
7
|
+
import { IDocHubConstructors } from './constructors';
|
8
|
+
import { IDocHubObjects } from './objects';
|
8
9
|
|
9
10
|
export interface IDocHubEnv {
|
10
11
|
[id: string]: string
|
@@ -103,5 +104,6 @@ export interface IDocHubCore {
|
|
103
104
|
constructors: IDocHubConstructors; // Конструкторы
|
104
105
|
ui: IDocHubUI; // UI порт
|
105
106
|
dataLake: IDocHubDataLake; // Интерфейс к архкоду
|
107
|
+
objects: IDocHubObjects; // Задекларированные объекты сущностей
|
106
108
|
eventBus: IDocHubEventBus; // Внутренняя шина событий
|
107
109
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Содержит метаданные задекларированного объекта
|
2
|
+
export interface IDocHubObjectMeta {
|
3
|
+
uid: string; // Идентификатор объекта
|
4
|
+
entity: string; // Идентификатор сущности
|
5
|
+
route: string; // Параметризируемый путь к объекту в DataLake
|
6
|
+
symbol?: string; // Символ объекта для визуализации на диаграммах
|
7
|
+
title?: string; // Название объекта
|
8
|
+
description?: string; // Описание объекта
|
9
|
+
}
|
10
|
+
|
11
|
+
// Редакторы документов
|
12
|
+
export interface IDocHubObjects {
|
13
|
+
// Возвращает коллекцию задекларированных объектов
|
14
|
+
fetch(): IDocHubObjectMeta[];
|
15
|
+
// Возвращает объект по идентификатору
|
16
|
+
get(uid: string): IDocHubObjectMeta;
|
17
|
+
}
|
18
|
+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AxiosResponse, AxiosRequestConfig } from 'axios';
|
2
|
-
import { IDocHubContext } from './
|
2
|
+
import { IDocHubContext } from './contexts';
|
3
3
|
|
4
4
|
// Прослойка интерфейсов Axios для последующей кастомизации и поддержания совместимости
|
5
5
|
export interface IDocHubProtocolRequestConfig extends AxiosRequestConfig {
|
package/package.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|