dochub-sdk 0.1.252 → 0.1.253

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.
@@ -249,6 +249,27 @@ export interface IDataSetResolveOptions {
249
249
  params?: IDocHubPullDataParams; // Передаваемые параметры
250
250
  }
251
251
 
252
+
253
+ export enum DocHubDataLakeDebuggerHandleActions {
254
+ run = 'run', // Продолжить выполнение
255
+ next = 'next' // Перейти на следующий шаг
256
+ }
257
+
258
+ export interface IDocHubDataLakeDebuggerContext {
259
+ source: () => Promise<string>;
260
+ position: number;
261
+ [keys: string]: any;
262
+ }
263
+
264
+ export type IDocHubDataLakeDebuggerHandle = (context: IDocHubDataLakeDebuggerContext) => Promise<DocHubDataLakeDebuggerHandleActions>;
265
+
266
+ /**
267
+ * Интерфейс внутрисистемного отладчика
268
+ */
269
+ export interface IDocHubDataLakeDebugger {
270
+ handle: IDocHubDataLakeDebuggerHandle;
271
+ }
272
+
252
273
  /**
253
274
  * Интерфейс доступа к DataLake
254
275
  */
@@ -497,5 +518,14 @@ export interface IDocHubDataLake {
497
518
  * @returns - Тип контента. Например: text/markdown
498
519
  */
499
520
  getContentTypeForFile(file: string): string | null;
521
+
522
+ /*********************************************************************
523
+ * Внутрисистемный отладчик запросов к DataLake
524
+ *********************************************************************/
525
+ /**
526
+ * Регистрирует отладчик в системе
527
+ * @param debug - Объект реализующий отладчик
528
+ */
529
+ registerDebugger(debug: IDocHubDataLakeDebugger);
500
530
  }
501
531
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.252",
3
+ "version": "0.1.253",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",