@narrative.io/data-collaboration-sdk-ts 0.0.132 → 0.0.134

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,18 +101,13 @@ export interface SchemaFileConfig {
101
101
  quote?: string;
102
102
  }
103
103
  export type SchemaProperties = Record<string, SchemaProperty>;
104
- export type SchemaProperty = (SchemaPrimitiveProperty & {
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;
114
108
  approximate_cardinality?: number;
115
109
  description?: string;
110
+ enum?: any[];
116
111
  }
117
112
  export interface SchemaObjectProperty {
118
113
  type: SchemaPropertiesType;
@@ -128,7 +123,7 @@ export interface SchemaArrayProperty {
128
123
  description?: string;
129
124
  items: SchemaArrayItems;
130
125
  }
131
- export type SchemaArrayItems = SchemaProperty & Omit<SchemaProperty, "description" | "order" | "approximate_cardinality">;
126
+ export type SchemaArrayItems = Omit<SchemaProperty, "description" | "order" | "approximate_cardinality">;
132
127
  export interface Schema {
133
128
  file_config: SchemaFileConfig;
134
129
  type: SchemaType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.132",
3
+ "version": "0.0.134",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",