@narrative.io/data-collaboration-sdk-ts 0.0.131 → 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.
@@ -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 | SchemaArrayProperty | SchemaObjectProperty;
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,7 +128,7 @@ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",