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.
@@ -66,25 +66,25 @@ export type DocHubResourceMetaFile = {
66
66
  export type DocHubResourceMetaFolder = {
67
67
  type: DocHubResourceType.folder;
68
68
  uri: string;
69
- files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
69
+ files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
70
70
  }
71
71
 
72
72
  /**
73
- * Метаинформация о репозиторие
73
+ * Метаинформация о ветке
74
74
  */
75
- export type DocHubResourceMetaRepo = {
76
- type: DocHubResourceType.repo;
75
+ export type DocHubResourceMetaBranch = {
76
+ type: DocHubResourceType.branch,
77
77
  uri: string;
78
- branches?: string[]; // Если undefined - статус содержания веток неопределен
78
+ files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
79
79
  }
80
80
 
81
81
  /**
82
- * Метаинформация о ветке
82
+ * Метаинформация о репозиторие
83
83
  */
84
- export type DocHubResourceMetaBranch = {
85
- type: DocHubResourceType.branch,
84
+ export type DocHubResourceMetaRepo = {
85
+ type: DocHubResourceType.repo;
86
86
  uri: string;
87
- files?: DocHubResourceMetaFile[] // Если undefined - статус содержания файлов не определен
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?: string[]; // В зависимости от хоста может быть репозиторием и т.п.
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
  * Информация о версии ресурса
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.298",
3
+ "version": "0.1.300",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",