@formant/data-sdk 0.0.119 → 0.0.121
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StreamType } from "./StreamType";
|
|
2
2
|
export type FieldType = "string" | "integer" | "number" | "array" | "object" | "bool" | "boolean" | "$formant.stream";
|
|
3
3
|
export interface IJsonBaseSchema<T extends FieldType> {
|
|
4
|
-
title
|
|
5
|
-
description
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
type: T;
|
|
7
7
|
default?: string;
|
|
8
8
|
required?: string[];
|
|
@@ -13,8 +13,7 @@ export interface IPropertyObject {
|
|
|
13
13
|
[key: string]: JsonSchema;
|
|
14
14
|
}
|
|
15
15
|
export interface IJsonObjectSchema extends IJsonBaseSchema<"object"> {
|
|
16
|
-
|
|
17
|
-
properties: IPropertyObject;
|
|
16
|
+
properties?: IPropertyObject;
|
|
18
17
|
"$formant.documentationUrl"?: string;
|
|
19
18
|
}
|
|
20
19
|
export interface IJsonArraySchema extends IJsonBaseSchema<"array"> {
|
|
@@ -29,8 +28,8 @@ export interface IJsonStringSchema extends IJsonBaseSchema<"string"> {
|
|
|
29
28
|
enum?: string[];
|
|
30
29
|
"$formant.streams.byType"?: StreamType;
|
|
31
30
|
"$formant.placeholder"?: string;
|
|
32
|
-
"$formant.groups"
|
|
33
|
-
"$formant.date"
|
|
31
|
+
"$formant.groups"?: boolean;
|
|
32
|
+
"$formant.date"?: boolean;
|
|
34
33
|
}
|
|
35
34
|
export type IJsonBooleanSchema = IJsonBaseSchema<"boolean">;
|
|
36
35
|
export type IJsonIntegerSchema = IJsonBaseSchema<"integer">;
|