dochub-sdk 0.1.31 → 0.1.33

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.
@@ -9,10 +9,16 @@ export interface IDocHubConstructorItem {
9
9
  title: string;
10
10
  }
11
11
 
12
+ // Дополнительная метаинформация о конструкторе
13
+ export interface IDocHubConstructorMeta {
14
+ description?: string; // Описание смысла конструктора
15
+ img?: string; // Картинка для пользователя
16
+ }
17
+
12
18
  // Интерфейс конструкторов
13
19
  export interface IDocHubConstructors {
14
20
  // Регистрирует конструктор
15
- register(uid: string, title: string, component: IDocHubConstructorComponent);
21
+ register(uid: string, title: string, component: IDocHubConstructorComponent, meta?: IDocHubConstructorMeta);
16
22
  // Возвращает список конструкторов
17
23
  fetch():IDocHubConstructorItem[];
18
24
  // Возвращает запись коллекции по идентификатору
@@ -49,5 +49,7 @@ export interface IDocHubDataLake {
49
49
  // uri - URI файла во внутреннем формате DocHub
50
50
  // В результате возвращает статус выполненного запроса
51
51
  pullFile(uri: string): Promise<any>;
52
+ // Возвращает конечный URI на основании массива относительных и прямых URI
53
+ resolveURI(...uri: string[]): string;
52
54
  }
53
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",