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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "cSpell.words": [
3
+ "задекларированного",
4
+ "Задекларированные",
5
+ "задекларированных",
6
+ "Параметризируемый"
7
+ ]
8
+ }
package/index.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { IDocHubCore } from './interfaces/core';
2
2
 
3
- export * from './interfaces/context';
4
- export * from './interfaces/protocol';
3
+ export * from './interfaces/contexts';
4
+ export * from './interfaces/protocols';
5
5
  export * from './interfaces/core';
6
- export * from './interfaces/document';
7
- export * from './interfaces/protocol';
8
- export * from './interfaces/uicomponent';
9
- export * from './interfaces/editor';
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/constructor';
12
- export * from './interfaces/content';
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'];
@@ -1,4 +1,4 @@
1
- import { IDocHubContext } from './context';
1
+ import { IDocHubContext } from './contexts';
2
2
  import { IDataLakeChange } from './datalake';
3
3
  export interface IDocHubContentProvider {
4
4
  // Флаг активности провайдера
@@ -1,10 +1,11 @@
1
- import { IDocHubContentProvider } from './content';
2
- import { IDocHubProtocol } from './protocol';
3
- import { IDocHubDocument } from './document';
4
- import { IDocHubEditors } from './editor';
5
- import { IDocHubUIComponent } from './uicomponent';
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 './constructor';
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 './context';
2
+ import { IDocHubContext } from './contexts';
3
3
 
4
4
  // Прослойка интерфейсов Axios для последующей кастомизации и поддержания совместимости
5
5
  export interface IDocHubProtocolRequestConfig extends AxiosRequestConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",
File without changes
File without changes
File without changes
File without changes
File without changes