@burdenoff/microfe-bigconsole 2026.1119.8 → 2026.1119.9
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/bigconsole/components/dashboard/ExportDashboardDialog.js +129 -117
- package/dist/bigconsole/components/parser/ParserCard.d.ts +3 -1
- package/dist/bigconsole/components/parser/ParserCard.js +125 -120
- package/dist/bigconsole/components/parser/ParserScopeBadge.d.ts +6 -0
- package/dist/bigconsole/components/parser/ParserScopeBadge.js +23 -0
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +14 -2
- package/dist/bigconsole/hooks/useExportDashboard.js +45 -41
- package/dist/bigconsole/hooks/useParserOperations.d.ts +6 -0
- package/dist/bigconsole/hooks/useParserOperations.js +64 -65
- package/dist/bigconsole/pages/DataParsersPage.js +201 -172
- package/dist/bigconsole/store/parserScope.js +9 -6
- package/dist/bigconsole/types/index.d.ts +8 -0
- package/dist/bigconsole/utils/parserScopeFilter.d.ts +14 -0
- package/dist/bigconsole/utils/parserScopeFilter.js +25 -0
- package/dist/generated/wspace-operations.d.ts +18 -1
- package/dist/generated/wspace-operations.js +58 -7
- package/package.json +1 -1
|
@@ -1094,6 +1094,14 @@ export interface Parser {
|
|
|
1094
1094
|
workspaceId: string;
|
|
1095
1095
|
tenantId?: string;
|
|
1096
1096
|
consoleId: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* The dashboard a dashboard-scoped parser belongs to (BOFF-9770). `null` for a
|
|
1099
|
+
* global parser; absent when the query did not select it.
|
|
1100
|
+
*/
|
|
1101
|
+
console?: {
|
|
1102
|
+
id: string;
|
|
1103
|
+
name: string;
|
|
1104
|
+
} | null;
|
|
1097
1105
|
name: string;
|
|
1098
1106
|
description: string | null;
|
|
1099
1107
|
type: ParserType;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Parser } from '../types';
|
|
2
|
+
/** `all`, `global`, or `dashboard:<consoleId>`. */
|
|
3
|
+
export type ParserScopeFilter = 'all' | 'global' | `dashboard:${string}`;
|
|
4
|
+
export interface ParserScopeDashboardOption {
|
|
5
|
+
value: `dashboard:${string}`;
|
|
6
|
+
/** The dashboard's name, or its id when the name is not known. */
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
/** Parse a Select value back into a filter; unknown values mean `all`. */
|
|
10
|
+
export declare function toParserScopeFilter(value: string): ParserScopeFilter;
|
|
11
|
+
/** Whether `parser` passes the scope filter. */
|
|
12
|
+
export declare function matchesParserScopeFilter(parser: Pick<Parser, 'consoleId'>, filter: ParserScopeFilter): boolean;
|
|
13
|
+
/** One option per dashboard that has parsers, sorted by label. */
|
|
14
|
+
export declare function parserScopeDashboardOptions(parsers: readonly Pick<Parser, 'consoleId' | 'console'>[]): ParserScopeDashboardOption[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isGlobalParser as e } from "../store/parserScope.js";
|
|
2
|
+
// src/bigconsole/utils/parserScopeFilter.ts
|
|
3
|
+
var t = "dashboard:";
|
|
4
|
+
function n(e) {
|
|
5
|
+
return e.startsWith(t) && e.length > 10;
|
|
6
|
+
}
|
|
7
|
+
function r(e) {
|
|
8
|
+
return e === "global" ? "global" : n(e) ? e : "all";
|
|
9
|
+
}
|
|
10
|
+
function i(t, n) {
|
|
11
|
+
return n === "all" ? !0 : n === "global" ? e(t) : t.consoleId === n.slice(10);
|
|
12
|
+
}
|
|
13
|
+
function a(n) {
|
|
14
|
+
let r = /* @__PURE__ */ new Map();
|
|
15
|
+
for (let t of n) {
|
|
16
|
+
if (e(t)) continue;
|
|
17
|
+
let n = r.get(t.consoleId), i = t.console?.name;
|
|
18
|
+
(n === void 0 || i && n === t.consoleId) && r.set(t.consoleId, i || t.consoleId);
|
|
19
|
+
}
|
|
20
|
+
return [...r.entries()].map(([e, n]) => ({
|
|
21
|
+
value: `${t}${e}`,
|
|
22
|
+
label: n
|
|
23
|
+
})).sort((e, t) => e.label.localeCompare(t.label));
|
|
24
|
+
}
|
|
25
|
+
export { i as matchesParserScopeFilter, a as parserScopeDashboardOptions, r as toParserScopeFilter };
|
|
@@ -1581,6 +1581,14 @@ export type LinkDataSinkInput = {
|
|
|
1581
1581
|
dataSinkKey: string;
|
|
1582
1582
|
priority?: number | null | undefined;
|
|
1583
1583
|
};
|
|
1584
|
+
/** Which parsers listParsers returns (BOFF-9770). */
|
|
1585
|
+
export type ParserListScope =
|
|
1586
|
+
/** Workspace-global parsers plus the parsers of every dashboard the caller can read. */
|
|
1587
|
+
'ALL'
|
|
1588
|
+
/** The parsers of the dashboard named by filter.consoleId. */
|
|
1589
|
+
| 'CONSOLE'
|
|
1590
|
+
/** Workspace-global parsers only (consoleId "default"). */
|
|
1591
|
+
| 'GLOBAL';
|
|
1584
1592
|
export type ParserStatus = 'active' | 'inactive';
|
|
1585
1593
|
export type ParserType = 'jq' | 'jsonata' | 'spark';
|
|
1586
1594
|
export type PipelineExecutionStatus = 'completed' | 'failed' | 'pending' | 'running';
|
|
@@ -5473,6 +5481,10 @@ export type ParserListItemFragment = {
|
|
|
5473
5481
|
outputKey: string;
|
|
5474
5482
|
status: Types.ParserStatus;
|
|
5475
5483
|
updatedAt: string;
|
|
5484
|
+
console: {
|
|
5485
|
+
id: string;
|
|
5486
|
+
name: string;
|
|
5487
|
+
} | null;
|
|
5476
5488
|
};
|
|
5477
5489
|
export type CreateParserMutationVariables = Exact<{
|
|
5478
5490
|
input: Types.CreateParserInput;
|
|
@@ -5565,7 +5577,8 @@ export type GetParserQuery = {
|
|
|
5565
5577
|
} | null;
|
|
5566
5578
|
};
|
|
5567
5579
|
export type ListParsersQueryVariables = Exact<{
|
|
5568
|
-
consoleId
|
|
5580
|
+
consoleId?: string | number | null | undefined;
|
|
5581
|
+
scope?: Types.ParserListScope | null | undefined;
|
|
5569
5582
|
type?: Types.ParserType | null | undefined;
|
|
5570
5583
|
status?: Types.ParserStatus | null | undefined;
|
|
5571
5584
|
first?: number | null | undefined;
|
|
@@ -5587,6 +5600,10 @@ export type ListParsersQuery = {
|
|
|
5587
5600
|
outputKey: string;
|
|
5588
5601
|
status: Types.ParserStatus;
|
|
5589
5602
|
updatedAt: string;
|
|
5603
|
+
console: {
|
|
5604
|
+
id: string;
|
|
5605
|
+
name: string;
|
|
5606
|
+
} | null;
|
|
5590
5607
|
};
|
|
5591
5608
|
}>;
|
|
5592
5609
|
pageInfo: {
|
|
@@ -21676,13 +21676,27 @@ var e = {
|
|
|
21676
21676
|
}
|
|
21677
21677
|
},
|
|
21678
21678
|
type: {
|
|
21679
|
-
kind: "
|
|
21680
|
-
|
|
21681
|
-
kind: "
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21679
|
+
kind: "NamedType",
|
|
21680
|
+
name: {
|
|
21681
|
+
kind: "Name",
|
|
21682
|
+
value: "ID"
|
|
21683
|
+
}
|
|
21684
|
+
}
|
|
21685
|
+
},
|
|
21686
|
+
{
|
|
21687
|
+
kind: "VariableDefinition",
|
|
21688
|
+
variable: {
|
|
21689
|
+
kind: "Variable",
|
|
21690
|
+
name: {
|
|
21691
|
+
kind: "Name",
|
|
21692
|
+
value: "scope"
|
|
21693
|
+
}
|
|
21694
|
+
},
|
|
21695
|
+
type: {
|
|
21696
|
+
kind: "NamedType",
|
|
21697
|
+
name: {
|
|
21698
|
+
kind: "Name",
|
|
21699
|
+
value: "ParserListScope"
|
|
21686
21700
|
}
|
|
21687
21701
|
}
|
|
21688
21702
|
},
|
|
@@ -21787,6 +21801,20 @@ var e = {
|
|
|
21787
21801
|
}
|
|
21788
21802
|
}
|
|
21789
21803
|
},
|
|
21804
|
+
{
|
|
21805
|
+
kind: "ObjectField",
|
|
21806
|
+
name: {
|
|
21807
|
+
kind: "Name",
|
|
21808
|
+
value: "scope"
|
|
21809
|
+
},
|
|
21810
|
+
value: {
|
|
21811
|
+
kind: "Variable",
|
|
21812
|
+
name: {
|
|
21813
|
+
kind: "Name",
|
|
21814
|
+
value: "scope"
|
|
21815
|
+
}
|
|
21816
|
+
}
|
|
21817
|
+
},
|
|
21790
21818
|
{
|
|
21791
21819
|
kind: "ObjectField",
|
|
21792
21820
|
name: {
|
|
@@ -21942,6 +21970,29 @@ var e = {
|
|
|
21942
21970
|
value: "consoleId"
|
|
21943
21971
|
}
|
|
21944
21972
|
},
|
|
21973
|
+
{
|
|
21974
|
+
kind: "Field",
|
|
21975
|
+
name: {
|
|
21976
|
+
kind: "Name",
|
|
21977
|
+
value: "console"
|
|
21978
|
+
},
|
|
21979
|
+
selectionSet: {
|
|
21980
|
+
kind: "SelectionSet",
|
|
21981
|
+
selections: [{
|
|
21982
|
+
kind: "Field",
|
|
21983
|
+
name: {
|
|
21984
|
+
kind: "Name",
|
|
21985
|
+
value: "id"
|
|
21986
|
+
}
|
|
21987
|
+
}, {
|
|
21988
|
+
kind: "Field",
|
|
21989
|
+
name: {
|
|
21990
|
+
kind: "Name",
|
|
21991
|
+
value: "name"
|
|
21992
|
+
}
|
|
21993
|
+
}]
|
|
21994
|
+
}
|
|
21995
|
+
},
|
|
21945
21996
|
{
|
|
21946
21997
|
kind: "Field",
|
|
21947
21998
|
name: {
|