react-semaphor 0.0.422 → 0.0.423
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/chunks/{index-B83SwU1c.js → index-BVBbWA3V.js} +78 -78
- package/dist/chunks/{index-CLv0skGQ.js → index-DLAi6G9R.js} +65 -33
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +80 -70
- package/dist/index.js +2513 -2354
- package/dist/style.css +1 -1
- package/dist/types/dashboard.d.ts +15 -11
- package/dist/types/main.d.ts +22 -11
- package/dist/types/surfboard.d.ts +15 -11
- package/dist/types/types.d.ts +15 -11
- package/package.json +1 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -139,6 +139,11 @@ export declare type ErrorProps = {
|
|
|
139
139
|
declare interface FilterByColumn extends BaseColumn {
|
|
140
140
|
role: 'filter';
|
|
141
141
|
operators?: string[];
|
|
142
|
+
sql?: string;
|
|
143
|
+
fetchValues?: boolean;
|
|
144
|
+
fetchLimit?: number;
|
|
145
|
+
valueSource?: 'distinct' | 'static' | 'range';
|
|
146
|
+
staticValues?: string[];
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
declare type FilterForBetween = BaseFilter & {
|
|
@@ -178,9 +183,11 @@ declare type FilterOnClick = {
|
|
|
178
183
|
columnIndex: number;
|
|
179
184
|
};
|
|
180
185
|
|
|
181
|
-
declare type FilterValue =
|
|
182
|
-
|
|
183
|
-
|
|
186
|
+
declare type FilterValue = string | number | null | (string | number)[] | {
|
|
187
|
+
gte?: string | number;
|
|
188
|
+
lte?: string | number;
|
|
189
|
+
lt?: string | number;
|
|
190
|
+
gt?: string | number;
|
|
184
191
|
};
|
|
185
192
|
|
|
186
193
|
export declare type GetDashboardResponse = {
|
|
@@ -266,18 +273,15 @@ declare interface QueryConfig {
|
|
|
266
273
|
trendByColumns?: TrendByColumn[];
|
|
267
274
|
metricColumns?: MetricColumn[];
|
|
268
275
|
filterColumns?: FilterByColumn[];
|
|
269
|
-
filters?:
|
|
276
|
+
filters?: {
|
|
277
|
+
filterColumnName: string;
|
|
278
|
+
filterValue: FilterValue;
|
|
279
|
+
exclude?: boolean;
|
|
280
|
+
}[];
|
|
270
281
|
limit?: number;
|
|
271
282
|
orderBy?: string[];
|
|
272
283
|
}
|
|
273
284
|
|
|
274
|
-
declare type SimpleFilterValue = string | number | null | (string | number)[] | {
|
|
275
|
-
gte?: string | number;
|
|
276
|
-
lte?: string | number;
|
|
277
|
-
lt?: string | number;
|
|
278
|
-
gt?: string | number;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
285
|
export declare type SqlGen = {
|
|
282
286
|
measures?: {
|
|
283
287
|
name: string;
|