@cellaware/utils 8.5.5 → 8.5.7
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.
package/dist/chatwms/cosmos.js
CHANGED
|
@@ -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|notifications|report_lines|report_schedules|report_usage|reports|user_roles)\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|notifications|notifications_poll|report_lines|report_schedules|report_usage|reports|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__';
|
|
@@ -120,6 +120,10 @@ const COSMOS_TABLES = [
|
|
|
120
120
|
table_name: 'notifications',
|
|
121
121
|
table_description: 'Notifications'
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
table_name: 'notifications_poll',
|
|
125
|
+
table_description: 'Notifications Poll'
|
|
126
|
+
},
|
|
123
127
|
{
|
|
124
128
|
table_name: 'report_lines',
|
|
125
129
|
table_description: 'Report Lines'
|
|
@@ -127,7 +127,7 @@ export declare function codifyCondition(condition: DatagridCondition): string;
|
|
|
127
127
|
*/
|
|
128
128
|
export declare function stripNumericValueFormat(value: string | number | undefined): any;
|
|
129
129
|
/**
|
|
130
|
-
* **Important:** `html` output will be limited to **
|
|
130
|
+
* **Important:** `html` output will be limited to **1,000 rows** and **8 columns**.
|
|
131
131
|
*/
|
|
132
132
|
export declare function transformDatagrid(rows: any[], datagridState: DatagridStateBase, locale: string, condition?: DatagridCondition): DatagridState;
|
|
133
133
|
export {};
|
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -819,10 +819,10 @@ function buildHtmlRow(rowValues, rowStyles, columnStyles, columnCount) {
|
|
|
819
819
|
return buf;
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
|
-
* **Important:** `html` output will be limited to **
|
|
822
|
+
* **Important:** `html` output will be limited to **1,000 rows** and **8 columns**.
|
|
823
823
|
*/
|
|
824
824
|
export function transformDatagrid(rows, datagridState, locale, condition) {
|
|
825
|
-
const HTML_ROWS =
|
|
825
|
+
const HTML_ROWS = 1000;
|
|
826
826
|
const HTML_COLS = 8;
|
|
827
827
|
const columnState = datagridState.columnState ?? [];
|
|
828
828
|
const filterModel = datagridState.filterModel ?? {};
|