dochub-sdk 0.1.365 → 0.1.366

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugins/manifest.ts +27 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.365",
3
+ "version": "0.1.366",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",
@@ -19,6 +19,27 @@ export interface IDocHubPluginEnvironmentsOneOf extends IDocHubJSONSchemaBase {
19
19
  oneOf: IDocHubJSONSchemaObject[];
20
20
  }
21
21
 
22
+ export interface IDocHubManifestProps {
23
+ building: {
24
+ // Момент сборки
25
+ moment: number;
26
+ // Версия SDK сборки
27
+ 'dochub-sdk': string;
28
+ // Коммит
29
+ commit: string;
30
+ // Версия node при сборке
31
+ node: string;
32
+ // Версия приложения в формате xx.xx.xx
33
+ version: string;
34
+ }
35
+ }
36
+
37
+ export type IDocHubManifestPlugins = string[];
38
+
39
+ export interface IDocHubManifestEnvironments {
40
+ [module: string]: string;
41
+ }
42
+
22
43
  export type IDocHubPluginEnvironments =
23
44
  | IDocHubJSONSchemaObject
24
45
  | IDocHubPluginEnvironmentsAllOf
@@ -33,8 +54,6 @@ export interface IDocHubPluginManifest {
33
54
  name: string;
34
55
  // Описание плагина
35
56
  description?: string;
36
- // Версия в формате xx.xx.xx
37
- version: string;
38
57
  // Ключевые слова для поиска в репозитории плагинов
39
58
  keywords?: string[];
40
59
  // Автор/вендор
@@ -47,15 +66,10 @@ export interface IDocHubPluginManifest {
47
66
  repository: string;
48
67
  support: string;
49
68
  }
50
- // Информация о сборке
51
- building?: {
52
- // Момент сборки
53
- moment: number;
54
- // Коммит
55
- commit: string;
56
- },
57
- // Зависимости
58
- dependencies?: IDocHubManifestDependencies;
59
- // Переменные окружения требуемые для работы плагина
60
- environments?: IDocHubPluginEnvironments;
69
+ // Свойства приложения
70
+ app_props: IDocHubManifestProps;
71
+ // Подключаемые плагины
72
+ app_plugins?: IDocHubManifestPlugins;
73
+ // Переменные среды исполнения
74
+ app_environments?: IDocHubManifestEnvironments;
61
75
  }