@kepler.gl/types 3.1.0-alpha.7 → 3.1.1

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/actions.d.ts CHANGED
@@ -11,6 +11,7 @@ export type MapData = {
11
11
  export type ExportFileOptions = {
12
12
  isPublic?: boolean;
13
13
  overwrite?: boolean;
14
+ mapIdToOverwrite?: string | null;
14
15
  };
15
16
  export type OnErrorCallBack = (error: Error) => any;
16
17
  export type OnSuccessCallBack = (p: {
package/layers.d.ts CHANGED
@@ -68,6 +68,7 @@ export type SupportedColumnMode = {
68
68
  requiredColumns: string[];
69
69
  optionalColumns?: string[];
70
70
  hasHelp?: boolean;
71
+ verifyField?: (field: Field) => boolean;
71
72
  };
72
73
 
73
74
  export type VisualChannelField = Field | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/types",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.1.0-alpha.7",
4
+ "version": "3.1.1",
5
5
  "description": "kepler.gl types used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "types": "index.d.ts",
package/types.d.ts CHANGED
@@ -32,6 +32,9 @@ export type ProcessorResult = {
32
32
  rows: any[][];
33
33
  cols?: any[];
34
34
  metadata?: any;
35
+ /** Optional schema for arrow tables with metadata preserved. */
36
+ // TODO: Should we use a loaded arrow.Table in cols instead of an array of arrow.Vectors? Why was an array of arrow.Vectors chosen?
37
+ arrowSchema?: any;
35
38
  } | null;
36
39
 
37
40
  export type Json = JsonScalar | JsonArray | JsonObject;
@@ -41,3 +44,17 @@ export type JsonArray = Json[];
41
44
  export type JsonObject = {
42
45
  [key: string]: Json | undefined;
43
46
  };
47
+
48
+ /**
49
+ * Types to mock apache-arrow types
50
+ */
51
+
52
+ export interface ApacheVectorInterface {
53
+ length: number;
54
+ }
55
+
56
+ export interface ArrowTableInterface {
57
+ get numRows(): number;
58
+
59
+ getChildAt: (index: number) => Vector;
60
+ }