dochub-sdk 0.1.296 → 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
 
@@ -65,15 +66,16 @@ export type DocHubResourceMetaFile = {
65
66
  export type DocHubResourceMetaFolder = {
66
67
  type: DocHubResourceType.folder;
67
68
  uri: string;
68
- files: DocHubResourceMetaFile[] | null // Если null - статус содержания файлов не определен
69
+ files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
69
70
  }
70
71
 
71
72
  /**
72
73
  * Метаинформация о репозиторие
73
74
  */
74
75
  export type DocHubResourceMetaRepo = {
75
- type: DocHubResourceType.repo,
76
- uri: string
76
+ type: DocHubResourceType.repo;
77
+ uri: string;
78
+ branches?: string[]; // Если undefined - статус содержания веток неопределен
77
79
  }
78
80
 
79
81
  /**
@@ -81,7 +83,17 @@ export type DocHubResourceMetaRepo = {
81
83
  */
82
84
  export type DocHubResourceMetaBranch = {
83
85
  type: DocHubResourceType.branch,
84
- uri: string
86
+ uri: string;
87
+ files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
88
+ }
89
+
90
+ /**
91
+ * Метаинформация о хосте
92
+ */
93
+ export type DocHubResourceMetaHost = {
94
+ type: DocHubResourceType.host;
95
+ uri: string;
96
+ buckets?: string[]; // В зависимости от хоста может быть репозиторием и т.п.
85
97
  }
86
98
 
87
99
  /**
@@ -93,7 +105,6 @@ export type DocHubResourceMetaOther = {
93
105
  [prop: string]: any
94
106
  }
95
107
 
96
-
97
108
  export type DocHubResourceMeta = DocHubResourceMetaFile | DocHubResourceMetaFolder| DocHubResourceMetaBranch | DocHubResourceMetaRepo | DocHubResourceMetaOther;
98
109
 
99
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.296",
3
+ "version": "0.1.298",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",