dochub-sdk 0.1.292 → 0.1.294
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 +25 -7
- package/package.json +1 -1
package/interfaces/protocols.ts
CHANGED
@@ -43,6 +43,8 @@ export interface IDocHubProtocolRequestConfig extends Modify<AxiosRequestConfig,
|
|
43
43
|
export enum DocHubResourceType {
|
44
44
|
file = 'file',
|
45
45
|
folder = 'folder',
|
46
|
+
repo = 'repo',
|
47
|
+
branch = 'branch',
|
46
48
|
other = 'other'
|
47
49
|
}
|
48
50
|
|
@@ -50,22 +52,38 @@ export enum DocHubResourceType {
|
|
50
52
|
* Метаинформация о файле
|
51
53
|
*/
|
52
54
|
export type DocHubResourceMetaFile = {
|
53
|
-
type: DocHubResourceType.file
|
54
|
-
uri: string
|
55
|
-
contentType?: string
|
56
|
-
size?: number
|
57
|
-
sha?: string
|
55
|
+
type: DocHubResourceType.file;
|
56
|
+
uri: string;
|
57
|
+
contentType?: string;
|
58
|
+
size?: number;
|
59
|
+
sha?: string;
|
58
60
|
}
|
59
61
|
|
60
62
|
/**
|
61
63
|
* Метаинформация о папке
|
62
64
|
*/
|
63
65
|
export type DocHubResourceMetaFolder = {
|
64
|
-
type: DocHubResourceType.folder
|
65
|
-
uri: string
|
66
|
+
type: DocHubResourceType.folder;
|
67
|
+
uri: string;
|
66
68
|
files: DocHubResourceMetaFile[] | null // Если null - статус содержания файлов не определен
|
67
69
|
}
|
68
70
|
|
71
|
+
/**
|
72
|
+
* Метаинформация о репозиторие
|
73
|
+
*/
|
74
|
+
export type DocHubResourceMetaRepo = {
|
75
|
+
type: DocHubResourceType.repo,
|
76
|
+
uri: string
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Метаинформация о ветке
|
81
|
+
*/
|
82
|
+
export type DocHubResourceMetaBranch = {
|
83
|
+
type: DocHubResourceType.branch,
|
84
|
+
uri: string
|
85
|
+
}
|
86
|
+
|
69
87
|
/**
|
70
88
|
* Метаинформация о прочих ресурсах
|
71
89
|
*/
|