@narrative.io/data-collaboration-sdk-ts 0.0.126 → 0.0.127

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.
@@ -93,7 +93,7 @@ function parseFieldFromString(fieldStr) {
93
93
  },
94
94
  field: f
95
95
  .map((field) => {
96
- return field.replace("`value`", "value").replace("`type`", "type");
96
+ return field.replace('"value"', "value").replace('"type"', "type");
97
97
  })
98
98
  .join("."),
99
99
  };
@@ -50,10 +50,12 @@ export const NqlPreSelectExpressionObj = z
50
50
  .optional();
51
51
  export const NqlDatabaseObject = z
52
52
  .string()
53
- .refine((x) => x.toLowerCase() === "narrative");
53
+ .refine((x) => x.replaceAll('"', "").toLowerCase() === "narrative", "Database must be `narrative`.");
54
54
  export const NqlTableObject = z.object({
55
55
  database: NqlDatabaseObject,
56
- table: z.string().refine((x) => x.toLowerCase() === "rosetta_stone"),
56
+ table: z
57
+ .string()
58
+ .refine((x) => x.replaceAll('"', "").toLowerCase() === "rosetta_stone", "Table must be `rosetta_stone`."),
57
59
  });
58
60
  export const NqlFieldObj = z.object({
59
61
  field: z.string().trim(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",