dochub-sdk 0.1.201 → 0.1.202
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/problems.ts +8 -6
- package/package.json +1 -1
package/interfaces/problems.ts
CHANGED
@@ -4,10 +4,7 @@ import { IDocHubDataSetProfile } from "./datasets";
|
|
4
4
|
export type IDocHubProblemUID = string;
|
5
5
|
export type IDocHubValidatorUID = string;
|
6
6
|
|
7
|
-
|
8
|
-
* Валидаторы проблем
|
9
|
-
*/
|
10
|
-
export interface IDocHubValidator extends IDocHubDataSetProfile {
|
7
|
+
export interface IDocHubValidatorBase extends IDocHubDataSetProfile {
|
11
8
|
/**
|
12
9
|
* Идентификатор валидатора
|
13
10
|
*/
|
@@ -17,6 +14,11 @@ export interface IDocHubValidator extends IDocHubDataSetProfile {
|
|
17
14
|
*/
|
18
15
|
title: string;
|
19
16
|
}
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Валидаторы проблем
|
20
|
+
*/
|
21
|
+
export interface IDocHubValidator extends IDocHubDataSetProfile, IDocHubValidatorBase {}
|
20
22
|
/**
|
21
23
|
* Исключения для регистрации проблем
|
22
24
|
*/
|
@@ -77,8 +79,8 @@ export enum DocHubProblemsEvents {
|
|
77
79
|
* Данные передаваемые с событием DocHubProblemsEvents.validatorReviewed
|
78
80
|
*/
|
79
81
|
export interface IDocHubProblemsEventValidatorReviewed {
|
80
|
-
//
|
81
|
-
|
82
|
+
// Данные валидатора
|
83
|
+
validator: IDocHubValidatorBase;
|
82
84
|
// Количество обнаруженных проблем
|
83
85
|
problems: number;
|
84
86
|
}
|