@narrative.io/data-collaboration-sdk-ts 0.0.132 → 0.0.133
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.
|
@@ -101,13 +101,7 @@ export interface SchemaFileConfig {
|
|
|
101
101
|
quote?: string;
|
|
102
102
|
}
|
|
103
103
|
export type SchemaProperties = Record<string, SchemaProperty>;
|
|
104
|
-
export type SchemaProperty =
|
|
105
|
-
kind: "primitive";
|
|
106
|
-
}) | (SchemaObjectProperty & {
|
|
107
|
-
kind: "object";
|
|
108
|
-
}) | (SchemaArrayProperty & {
|
|
109
|
-
kind: "array";
|
|
110
|
-
});
|
|
104
|
+
export type SchemaProperty = SchemaPrimitiveProperty | SchemaArrayProperty | SchemaObjectProperty;
|
|
111
105
|
export interface SchemaPrimitiveProperty {
|
|
112
106
|
type: SchemaPropertiesType;
|
|
113
107
|
order?: number;
|
|
@@ -128,7 +122,7 @@ export interface SchemaArrayProperty {
|
|
|
128
122
|
description?: string;
|
|
129
123
|
items: SchemaArrayItems;
|
|
130
124
|
}
|
|
131
|
-
export type SchemaArrayItems =
|
|
125
|
+
export type SchemaArrayItems = Omit<SchemaProperty, "description" | "order" | "approximate_cardinality">;
|
|
132
126
|
export interface Schema {
|
|
133
127
|
file_config: SchemaFileConfig;
|
|
134
128
|
type: SchemaType;
|