@cellaware/utils 8.7.8 → 8.7.10

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.
@@ -6,7 +6,7 @@ const COSMOS_SQL_ACTION_WORDS_REGEX = /\b(insert|update|delete|create|alter|drop
6
6
  const COSMOS_SQL_SELECT_REGEX = /\b(select)\b/gmi;
7
7
  const COSMOS_SQL_FROM_REGEX = /\b(from)\b/gmi;
8
8
  const COSMOS_SQL_WHERE_REGEX = /\b(where)\b/gmi;
9
- const COSMOS_SQL_APPROVED_TABLES_REGEX = /\b(alert_executions|alert_subscriptions|alerts|client_configs|conversation_details|conversation_feedback|conversation_headers|conversation_metadata|conversation_removed_details|conversation_sampled_details|conversation_sampled_metadata|dashboard_usage|dashboard_widgets|dashboards|errors_temp|notifications|notifications_poll|report_lines|report_schedules|report_usage|reports|subscription_integrations|user_roles)\b/gmi;
9
+ const COSMOS_SQL_APPROVED_TABLES_REGEX = /\b(active_users|alert_executions|alert_subscriptions|alerts|client_configs|conversation_details|conversation_feedback|conversation_headers|conversation_metadata|conversation_removed_details|conversation_sampled_details|conversation_sampled_metadata|dashboard_usage|dashboard_widgets|dashboards|errors_temp|notifications|notifications_poll|report_lines|report_schedules|report_usage|reports|subscription_integrations|user_roles)\b/gmi;
10
10
  const _SUBQUERY_QUERY_PLACEHOLDER_UNWRAPPED = '{{query}}';
11
11
  const SUBQUERY_QUERY_PLACEHOLDER = `(${_SUBQUERY_QUERY_PLACEHOLDER_UNWRAPPED})`;
12
12
  const VARIABLE_COSMOS_USER_ID = '__USER_ID__';
@@ -60,6 +60,10 @@ const COSMOS_DATE_VARIABLES = [
60
60
  { key: VARIABLE_COSMOS_CURRENT_YEAR_CLAUSE, value: 'DateTimePart("year", TimestampToDateTime(c._ts * 1000)) = DateTimePart("year", GetCurrentDateTime())' }
61
61
  ];
62
62
  const COSMOS_TABLES = [
63
+ {
64
+ table_name: 'active_users',
65
+ table_description: 'Active Users'
66
+ },
63
67
  {
64
68
  table_name: 'alert_executions',
65
69
  table_description: 'Alert Executions'
@@ -0,0 +1,3 @@
1
+ export declare const WAREHOUSE_STATUS_HEALTHY = "healthy";
2
+ export declare const WAREHOUSE_STATUS_INTERRUPTION = "interruption";
3
+ export declare const WAREHOUSE_STATUS_OUTAGE = "outage";
@@ -0,0 +1,3 @@
1
+ export const WAREHOUSE_STATUS_HEALTHY = 'healthy';
2
+ export const WAREHOUSE_STATUS_INTERRUPTION = 'interruption';
3
+ export const WAREHOUSE_STATUS_OUTAGE = 'outage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.7.8",
3
+ "version": "8.7.10",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",