@narrative.io/data-collaboration-sdk-ts 0.20.0 → 0.22.0

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.
@@ -126,6 +126,7 @@ export interface Not {
126
126
  as?: string;
127
127
  operand: BooleanExpression | Raw;
128
128
  }
129
+ /** Implicitly we only support asymmetric betweens. */
129
130
  export interface Between {
130
131
  type: "between";
131
132
  as?: string;
@@ -141,7 +141,7 @@ function parseBooleanExpression(n) {
141
141
  }
142
142
  case "operator": {
143
143
  switch (n.name) {
144
- case "BETWEEN":
144
+ case "BETWEEN ASYMMETRIC":
145
145
  return parseBetween(n);
146
146
  case "IS NULL":
147
147
  return parseIsNull(n, false);
@@ -295,6 +295,12 @@ function compileLit(value, valueType, as) {
295
295
  }
296
296
  break;
297
297
  }
298
+ case "long":
299
+ valueNql = `${parseInt(value)}`;
300
+ break;
301
+ case "double":
302
+ valueNql = `${parseFloat(value)}`;
303
+ break;
298
304
  default:
299
305
  // todo(mbabic) don't really know what to do here/how complicated this needs to be
300
306
  valueNql = str(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",