dochub-sdk 0.1.297 → 0.1.299
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.
- package/interfaces/protocols.ts +15 -6
- package/package.json +1 -1
package/interfaces/protocols.ts
CHANGED
@@ -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
|
|
@@ -68,6 +69,15 @@ export type DocHubResourceMetaFolder = {
|
|
68
69
|
files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
|
69
70
|
}
|
70
71
|
|
72
|
+
/**
|
73
|
+
* Метаинформация о ветке
|
74
|
+
*/
|
75
|
+
export type DocHubResourceMetaBranch = {
|
76
|
+
type: DocHubResourceType.branch,
|
77
|
+
uri: string;
|
78
|
+
files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
|
79
|
+
}
|
80
|
+
|
71
81
|
/**
|
72
82
|
* Метаинформация о репозиторие
|
73
83
|
*/
|
@@ -78,12 +88,12 @@ export type DocHubResourceMetaRepo = {
|
|
78
88
|
}
|
79
89
|
|
80
90
|
/**
|
81
|
-
* Метаинформация о
|
91
|
+
* Метаинформация о хосте
|
82
92
|
*/
|
83
|
-
export type
|
84
|
-
type: DocHubResourceType.
|
93
|
+
export type DocHubResourceMetaHost = {
|
94
|
+
type: DocHubResourceType.host;
|
85
95
|
uri: string;
|
86
|
-
|
96
|
+
buckets?: DocHubResourceMetaRepo[]; // В зависимости от хоста может быть репозиторием и т.п.
|
87
97
|
}
|
88
98
|
|
89
99
|
/**
|
@@ -95,8 +105,7 @@ export type DocHubResourceMetaOther = {
|
|
95
105
|
[prop: string]: any
|
96
106
|
}
|
97
107
|
|
98
|
-
|
99
|
-
export type DocHubResourceMeta = DocHubResourceMetaFile | DocHubResourceMetaFolder| DocHubResourceMetaBranch | DocHubResourceMetaRepo | DocHubResourceMetaOther;
|
108
|
+
export type DocHubResourceMeta = DocHubResourceMetaFile | DocHubResourceMetaFolder| DocHubResourceMetaBranch | DocHubResourceMetaRepo | DocHubResourceMetaHost | DocHubResourceMetaOther;
|
100
109
|
|
101
110
|
/**
|
102
111
|
* Информация о версии ресурса
|