@narrative.io/data-collaboration-sdk-ts 0.0.130 → 0.0.132
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/build/datasets/types.d.ts +12 -4
- package/package.json +1 -1
|
@@ -101,7 +101,13 @@ export interface SchemaFileConfig {
|
|
|
101
101
|
quote?: string;
|
|
102
102
|
}
|
|
103
103
|
export type SchemaProperties = Record<string, SchemaProperty>;
|
|
104
|
-
export type SchemaProperty = SchemaPrimitiveProperty
|
|
104
|
+
export type SchemaProperty = (SchemaPrimitiveProperty & {
|
|
105
|
+
kind: "primitive";
|
|
106
|
+
}) | (SchemaObjectProperty & {
|
|
107
|
+
kind: "object";
|
|
108
|
+
}) | (SchemaArrayProperty & {
|
|
109
|
+
kind: "array";
|
|
110
|
+
});
|
|
105
111
|
export interface SchemaPrimitiveProperty {
|
|
106
112
|
type: SchemaPropertiesType;
|
|
107
113
|
order?: number;
|
|
@@ -122,13 +128,15 @@ export interface SchemaArrayProperty {
|
|
|
122
128
|
description?: string;
|
|
123
129
|
items: SchemaArrayItems;
|
|
124
130
|
}
|
|
125
|
-
export type SchemaArrayItems = Omit<SchemaProperty, "description" | "order" | "approximate_cardinality">;
|
|
131
|
+
export type SchemaArrayItems = SchemaProperty & Omit<SchemaProperty, "description" | "order" | "approximate_cardinality">;
|
|
126
132
|
export interface Schema {
|
|
127
133
|
file_config: SchemaFileConfig;
|
|
128
134
|
type: SchemaType;
|
|
129
135
|
properties: SchemaProperties;
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
primary?: string;
|
|
137
|
+
required?: string[];
|
|
138
|
+
unsellable?: string[];
|
|
139
|
+
sensitive?: string[];
|
|
132
140
|
}
|
|
133
141
|
interface File {
|
|
134
142
|
path: string;
|