dochub-sdk 0.1.330 → 0.1.332
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/package.json +1 -1
- package/schemas/basetypes.ts +17 -15
package/package.json
CHANGED
package/schemas/basetypes.ts
CHANGED
@@ -21,7 +21,7 @@ export enum DocHubJSONSchemaBasicTypes {
|
|
21
21
|
object = 'object'
|
22
22
|
}
|
23
23
|
|
24
|
-
export interface
|
24
|
+
export interface IDocHubJSONSchemaArray extends IDocHubJSONSchemaBase {
|
25
25
|
type: DocHubJSONSchemaBasicTypes.array;
|
26
26
|
items: DocHubJSONSchema;
|
27
27
|
minItems?: number;
|
@@ -29,15 +29,15 @@ export interface ISchemaArray extends IDocHubJSONSchemaBase {
|
|
29
29
|
uniqueItems?: boolean;
|
30
30
|
}
|
31
31
|
|
32
|
-
export interface
|
32
|
+
export interface IDocHubJSONSchemaBoolean extends IDocHubJSONSchemaBase {
|
33
33
|
type: DocHubJSONSchemaBasicTypes.boolean;
|
34
34
|
}
|
35
35
|
|
36
|
-
export interface
|
36
|
+
export interface IDocHubJSONSchemaNull extends IDocHubJSONSchemaBase {
|
37
37
|
type: DocHubJSONSchemaBasicTypes.null;
|
38
38
|
}
|
39
39
|
|
40
|
-
export enum
|
40
|
+
export enum DocHubJSONSchemaStringFormat {
|
41
41
|
date = 'date',
|
42
42
|
datetime = 'date-time',
|
43
43
|
enum = 'enum',
|
@@ -47,15 +47,15 @@ export enum SchemaStringFormat {
|
|
47
47
|
alert = 'alert'
|
48
48
|
}
|
49
49
|
|
50
|
-
export interface
|
50
|
+
export interface IDocHubJSONSchemaString extends IDocHubJSONSchemaBase {
|
51
51
|
type: DocHubJSONSchemaBasicTypes.string;
|
52
52
|
minLength?: number;
|
53
53
|
maxLength?: number;
|
54
54
|
enum?: string[];
|
55
|
-
format?:
|
55
|
+
format?: DocHubJSONSchemaStringFormat;
|
56
56
|
}
|
57
57
|
|
58
|
-
export interface
|
58
|
+
export interface IDocHubJSONSchemaNumber extends IDocHubJSONSchemaBase {
|
59
59
|
type: DocHubJSONSchemaBasicTypes.number;
|
60
60
|
minimum?: number;
|
61
61
|
maximum?: number;
|
@@ -64,7 +64,7 @@ export interface ISchemaNumber extends IDocHubJSONSchemaBase {
|
|
64
64
|
multipleOf?: any;
|
65
65
|
}
|
66
66
|
|
67
|
-
export interface
|
67
|
+
export interface IDocHubJSONSchemaInteger extends IDocHubJSONSchemaBase {
|
68
68
|
type: DocHubJSONSchemaBasicTypes.integer;
|
69
69
|
minimum?: number;
|
70
70
|
maximum?: number;
|
@@ -73,23 +73,25 @@ export interface ISchemaInteger extends IDocHubJSONSchemaBase {
|
|
73
73
|
multipleOf?: any;
|
74
74
|
}
|
75
75
|
|
76
|
-
export interface
|
76
|
+
export interface IDocHubJSONSchemaObjectProperties {
|
77
77
|
[key: string]: DocHubJSONSchema;
|
78
78
|
}
|
79
79
|
|
80
|
-
export interface
|
80
|
+
export interface IDocHubJSONSchemaPatternProperties {
|
81
|
+
[key: string]: DocHubJSONSchema
|
82
|
+
}
|
83
|
+
|
84
|
+
export interface IDocHubJSONSchemaObject extends IDocHubJSONSchemaBase {
|
81
85
|
type: DocHubJSONSchemaBasicTypes.object;
|
82
|
-
properties
|
86
|
+
properties?: IDocHubJSONSchemaObjectProperties;
|
83
87
|
additionalProperties?: boolean;
|
84
88
|
required?: string[];
|
85
89
|
minProperties?: number;
|
86
90
|
maxProperties?: number;
|
87
|
-
patternProperties?:
|
91
|
+
patternProperties?: IDocHubJSONSchemaPatternProperties;
|
88
92
|
regexp?: RegExp;
|
89
93
|
dependencies?: any;
|
90
|
-
// Порядок вывода полей сверху вниз и слева направо
|
91
|
-
order?: string[];
|
92
94
|
}
|
93
95
|
|
94
|
-
export type DocHubJSONSchema =
|
96
|
+
export type DocHubJSONSchema = IDocHubJSONSchemaArray | IDocHubJSONSchemaString | IDocHubJSONSchemaNumber | IDocHubJSONSchemaInteger | IDocHubJSONSchemaObject | IDocHubJSONSchemaBoolean;
|
95
97
|
|