dochub-sdk 0.1.297 → 0.1.298

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.
@@ -45,6 +45,7 @@ export enum DocHubResourceType {
45
45
  folder = 'folder',
46
46
  repo = 'repo',
47
47
  branch = 'branch',
48
+ host = 'host',
48
49
  other = 'other'
49
50
  }
50
51
 
@@ -86,6 +87,15 @@ export type DocHubResourceMetaBranch = {
86
87
  files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
87
88
  }
88
89
 
90
+ /**
91
+ * Метаинформация о хосте
92
+ */
93
+ export type DocHubResourceMetaHost = {
94
+ type: DocHubResourceType.host;
95
+ uri: string;
96
+ buckets?: string[]; // В зависимости от хоста может быть репозиторием и т.п.
97
+ }
98
+
89
99
  /**
90
100
  * Метаинформация о прочих ресурсах
91
101
  */
@@ -95,7 +105,6 @@ export type DocHubResourceMetaOther = {
95
105
  [prop: string]: any
96
106
  }
97
107
 
98
-
99
108
  export type DocHubResourceMeta = DocHubResourceMetaFile | DocHubResourceMetaFolder| DocHubResourceMetaBranch | DocHubResourceMetaRepo | DocHubResourceMetaOther;
100
109
 
101
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.297",
3
+ "version": "0.1.298",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",