@cellaware/utils 8.13.1 → 8.14.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.
@@ -49,6 +49,8 @@ export interface AlertContentInfo extends DatagridStateBase {
49
49
  contextName: DataContext;
50
50
  specification: string;
51
51
  query: string;
52
+ /** ChatWMS -> Database optimized query via client table extensions. */
53
+ jitQuery?: string;
52
54
  summary: string;
53
55
  reviewOk?: boolean;
54
56
  reviewConfidence?: string;
@@ -313,6 +313,7 @@ export function loadCosmosDeveloperCache(userId) {
313
313
  contextName: COSMOS_CONTEXT_NAME,
314
314
  variables: createCosmosVariables(userId),
315
315
  tables: COSMOS_TABLES,
316
+ views: [],
316
317
  columns: [],
317
318
  functions: COSMOS_FUNCTIONS,
318
319
  tableMappings: [],
@@ -44,6 +44,8 @@ export interface DashboardWidgetContentInfo extends DatagridStateBase {
44
44
  contextName: DataContext;
45
45
  specification: string;
46
46
  query: string;
47
+ /** ChatWMS -> Database optimized query via client table extensions. */
48
+ jitQuery?: string;
47
49
  summary: string;
48
50
  reviewOk?: boolean;
49
51
  reviewConfidence?: string;
@@ -7,6 +7,10 @@ export interface SqlCacheContext {
7
7
  table_name: string;
8
8
  table_description: string;
9
9
  }[];
10
+ views: {
11
+ table_name: string;
12
+ table_description: string;
13
+ }[];
10
14
  columns: {
11
15
  table_name: string;
12
16
  column_id: number;
@@ -4,6 +4,7 @@ export function initSqlCacheContext() {
4
4
  contextName: CHATWMS_CONTEXT_NAME,
5
5
  variables: [],
6
6
  tables: [],
7
+ views: [],
7
8
  columns: [],
8
9
  functions: [],
9
10
  tableMappings: [],
@@ -54,6 +54,8 @@ export interface ReportLineContentInfo extends DatagridStateBase {
54
54
  contextName: DataContext;
55
55
  specification: string;
56
56
  query: string;
57
+ /** ChatWMS -> Database optimized query via client table extensions. */
58
+ jitQuery?: string;
57
59
  summary: string;
58
60
  reviewOk?: boolean;
59
61
  reviewConfidence?: string;
package/dist/util.d.ts CHANGED
@@ -43,3 +43,4 @@ export declare function removeQueryMatches(query: string, matches: QueryRegexMat
43
43
  export declare function replaceQueryMatches(query: string, matches: QueryRegexMatch[], replacement: string, useMatchAsSuffix?: boolean): string;
44
44
  export declare function removeMarkdownIndicators(input: string): string;
45
45
  export declare function removePrefixIndicators(input: string, prefixes: string[]): string;
46
+ export declare function escapeCurlyBraces(str: string): string;
package/dist/util.js CHANGED
@@ -286,3 +286,6 @@ export function removePrefixIndicators(input, prefixes) {
286
286
  }
287
287
  return output;
288
288
  }
289
+ export function escapeCurlyBraces(str) {
290
+ return str.replace(/}/gm, '}}').replace(/{/gm, '{{');
291
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.13.1",
3
+ "version": "8.14.0",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",