@narrative.io/data-collaboration-sdk-ts 2.43.0 → 2.45.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.
@@ -34,6 +34,8 @@ export declare const resources: {
34
34
  readonly subscriptions: "Subscriptions";
35
35
  readonly uploads: "Uploads";
36
36
  readonly usage: "Usage";
37
+ readonly webhooks: "Webhooks";
38
+ readonly encryption_materials: "Encryption Materials";
37
39
  };
38
40
  export type Resource = keyof typeof resources;
39
41
  export interface Permission {
@@ -33,4 +33,6 @@ export const resources = {
33
33
  subscriptions: "Subscriptions",
34
34
  uploads: "Uploads",
35
35
  usage: "Usage",
36
+ webhooks: "Webhooks",
37
+ encryption_materials: "Encryption Materials",
36
38
  };
@@ -122,6 +122,8 @@ function compileTableRefs(tables) {
122
122
  return aliased("narrative.rosetta_stone", table.as, false);
123
123
  case "raw_table":
124
124
  return aliased(table.nql, table.as, false);
125
+ case "placeholder":
126
+ return compilePlaceholder(table);
125
127
  default:
126
128
  throw new Error("unreachable");
127
129
  }
@@ -358,6 +360,7 @@ export function compilePlaceholder(n) {
358
360
  case "boolean_literal":
359
361
  case "timestamp_literal":
360
362
  case "column":
363
+ case "table":
361
364
  return `{{${n.identifier}}}`;
362
365
  default:
363
366
  throw new Error("unsupported placeholder");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.43.0",
3
+ "version": "2.45.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",