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