dochub-sdk 0.1.128 → 0.1.129
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/datalake.ts +18 -1
- package/package.json +1 -1
package/interfaces/datalake.ts
CHANGED
@@ -189,6 +189,23 @@ export type DocHubDataLakeRequest = string;
|
|
189
189
|
*/
|
190
190
|
export type DocHubDataLakeFileFollower = () => void;
|
191
191
|
|
192
|
+
export enum DataLakePullFileOptionsResponseTypes {
|
193
|
+
arraybuffer = 'arraybuffer',
|
194
|
+
document = 'document',
|
195
|
+
json = 'json',
|
196
|
+
text = 'text',
|
197
|
+
stream = 'stream'
|
198
|
+
}
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Опции получения файла из DataLake
|
202
|
+
*/
|
203
|
+
export interface IDataLakePullFileOptions {
|
204
|
+
responseType?: DataLakePullFileOptionsResponseTypes;
|
205
|
+
responseEncoding?: string;
|
206
|
+
timeout?: number;
|
207
|
+
}
|
208
|
+
|
192
209
|
// Интерфейс доступа к DataLake
|
193
210
|
export interface IDocHubDataLake {
|
194
211
|
/**
|
@@ -304,7 +321,7 @@ export interface IDocHubDataLake {
|
|
304
321
|
* @param uri - URI файла во внутреннем формате DocHub
|
305
322
|
* @returns - Результат выполнения запроса
|
306
323
|
*/
|
307
|
-
pullFile(uri: string): Promise<AxiosResponse>;
|
324
|
+
pullFile(uri: string, options?: IDataLakePullFileOptions): Promise<AxiosResponse>;
|
308
325
|
|
309
326
|
/**
|
310
327
|
* Возвращает конечный URI на основании массива относительных и прямых URI
|