@burdenoff/microfe-bigconsole 2026.1010.12 → 2026.1012.1

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.
Files changed (161) hide show
  1. package/README.md +19 -0
  2. package/dist/bigconsole/BigConsoleRoot.js +88 -82
  3. package/dist/bigconsole/BigConsoleRoutes.js +163 -136
  4. package/dist/bigconsole/assistant/assistantProduct.js +1 -4
  5. package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
  6. package/dist/bigconsole/assistant/pageContext.js +1 -6
  7. package/dist/bigconsole/assistant/recordAdapters.js +26 -27
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  9. package/dist/bigconsole/components/common/index.d.ts +0 -1
  10. package/dist/bigconsole/components/common/index.js +0 -1
  11. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
  20. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  21. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  22. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
  23. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  24. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  25. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  26. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  27. package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
  28. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  29. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  31. package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  33. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  34. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  38. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  39. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  40. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  41. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
  42. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
  43. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  44. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  45. package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
  46. package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
  47. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  48. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  49. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  50. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
  51. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  52. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  53. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  54. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  55. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
  56. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
  57. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
  58. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
  59. package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
  60. package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
  61. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  62. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  63. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  64. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  65. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  66. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  67. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  68. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  69. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
  70. package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
  71. package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
  72. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  73. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  74. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  75. package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
  76. package/dist/bigconsole/context/BigConsoleContext.js +47 -30
  77. package/dist/bigconsole/context/index.d.ts +1 -1
  78. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
  79. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
  80. package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
  81. package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
  83. package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
  84. package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
  85. package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
  86. package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
  87. package/dist/bigconsole/hooks/useDrilldown.js +68 -67
  88. package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
  89. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  90. package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
  91. package/dist/bigconsole/pages/AdminPage.js +130 -130
  92. package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
  93. package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
  94. package/dist/bigconsole/pages/DashboardsPage.js +221 -269
  95. package/dist/bigconsole/pages/DataParsersPage.js +157 -180
  96. package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
  97. package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
  98. package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
  99. package/dist/bigconsole/pages/DataSinksPage.js +216 -251
  100. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  101. package/dist/bigconsole/pages/InsightsPage.js +265 -279
  102. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  103. package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
  104. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  105. package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
  106. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  107. package/dist/bigconsole/pages/PipelinesPage.js +88 -107
  108. package/dist/bigconsole/pages/SettingsPage.js +173 -179
  109. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  110. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  111. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  112. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  113. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
  114. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
  115. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
  116. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  117. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
  118. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
  119. package/dist/bigconsole/store/widgetStore.d.ts +0 -12
  120. package/dist/bigconsole/store/widgetStore.js +1 -3
  121. package/dist/bigconsole/types/index.d.ts +17 -2
  122. package/dist/bigconsole/utils/backendError.d.ts +0 -18
  123. package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
  124. package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
  125. package/dist/bigconsole/utils/index.d.ts +2 -0
  126. package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
  127. package/dist/bigconsole/utils/safeUrl.js +93 -0
  128. package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
  129. package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
  130. package/dist/bigconsole/workflowOpen.js +14 -15
  131. package/dist/generated/wspace-operations.d.ts +138 -8
  132. package/dist/generated/wspace-operations.js +281 -240
  133. package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
  134. package/package.json +9 -5
  135. package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
  136. package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
  137. package/dist/bigconsole/assistant/pageControls.js +0 -169
  138. package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
  139. package/dist/bigconsole/assistant/previewControl.js +0 -10
  140. package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
  141. package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
  142. package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
  143. package/dist/bigconsole/components/common/SortBySelect.js +0 -29
  144. package/dist/bigconsole/constants/backendErrors.js +0 -94
  145. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
  146. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
  147. package/dist/bigconsole/utils/backendError.js +0 -42
  148. package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
  149. package/dist/bigconsole/utils/dashboardList.js +0 -15
  150. package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
  151. package/dist/bigconsole/utils/dataSinkList.js +0 -15
  152. package/dist/bigconsole/utils/formDirty.d.ts +0 -82
  153. package/dist/bigconsole/utils/formDirty.js +0 -21
  154. package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
  155. package/dist/bigconsole/utils/insightsDraft.js +0 -8
  156. package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
  157. package/dist/bigconsole/utils/layoutBaseline.js +0 -96
  158. package/dist/bigconsole/utils/listSort.d.ts +0 -80
  159. package/dist/bigconsole/utils/listSort.js +0 -85
  160. package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
  161. package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
@@ -1,244 +1,219 @@
1
1
  import { BigConsoleDataSinkAlertChannelsDocument as e, BigConsoleDataSinkAlertExecutionsDocument as t, BigConsoleDataSinkAlertsDocument as n, BigConsoleDeleteDataSinkAlertDocument as r, BigConsolePreviewDataSinkAlertDocument as i, BigConsoleUpsertDataSinkAlertDocument as a } from "../../generated/wspace-operations.js";
2
- import { BACKEND_ERROR_MESSAGES as o } from "../constants/backendErrors.js";
3
- import { graphQLErrorCodes as s } from "../utils/backendError.js";
4
- import { useBigConsole as c } from "../context/BigConsoleContext.js";
2
+ import { useBigConsole as o } from "../context/BigConsoleContext.js";
5
3
  import "../context/index.js";
6
- import { useCallback as l, useEffect as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
7
- import { useApolloClient as m } from "@apollo/client/react";
4
+ import { useCallback as s, useEffect as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
5
+ import { useApolloClient as f } from "@apollo/client/react";
8
6
  //#region src/bigconsole/hooks/useDataSinkAlerts.ts
9
- var h = {
7
+ var p = {
10
8
  owner: "",
11
9
  sink: null,
12
10
  channels: [],
13
11
  loading: !1,
14
12
  error: null,
15
- errorCode: null,
16
13
  channelError: null
17
- }, g = (e) => e instanceof Error ? e.message : "The alert operation failed. Please try again.", _ = "DATASINK_NOT_FOUND", v = new Set([
18
- _,
19
- "E_DATASINK_NOT_FOUND",
20
- "NOT_FOUND"
21
- ]), y = class extends Error {
22
- code = _;
23
- constructor() {
24
- super("Data sink not found in this workspace."), this.name = "AlertSinkNotFoundError";
25
- }
26
- };
27
- function b(e) {
28
- return e instanceof y ? e.code : s(e)[0] ?? null;
29
- }
30
- function x(e, t) {
31
- let { error: n, errorCode: r } = t;
32
- return n === null || r !== null && v.has(r) ? e("bigconsole.alerts.notFound", "Data sink not found.") : r === null ? n : e(`bigconsole.errors.${r}`, o[r] ?? n);
33
- }
34
- function S(o, s) {
35
- let _ = m(), { currentUser: v, workspaceId: x } = c(), S = `${v?.id ?? ""}|${x ?? ""}|${o}`, C = f(null);
36
- d(() => (C.current = s ? S : null, () => {
37
- C.current = null;
38
- }), [S, s]);
39
- let [w, T] = p(h), [E, D] = p(!1), O = l(() => ({
14
+ }, m = (e) => e instanceof Error ? e.message : "The alert operation failed. Please try again.";
15
+ function h(h, g) {
16
+ let _ = f(), { currentUser: v, workspaceId: y } = o(), b = `${v?.id ?? ""}|${y ?? ""}|${h}`, x = u(null);
17
+ l(() => (x.current = g ? b : null, () => {
18
+ x.current = null;
19
+ }), [b, g]);
20
+ let [S, C] = d(p), [w, T] = d(!1), E = s(() => ({
40
21
  requiredWorkspaceAuth: !0,
41
- requiredWorkspaceId: x,
22
+ requiredWorkspaceId: y,
42
23
  queryDeduplication: !1
43
- }), [x]), k = l(() => s && !!x && !!v?.id && C.current === S, [
44
- s,
45
- x,
24
+ }), [y]), D = s(() => g && !!y && !!v?.id && x.current === b, [
25
+ g,
26
+ y,
46
27
  v?.id,
47
- S
48
- ]), A = l((e) => {
49
- if (!k()) return null;
50
- if (!e || e.id !== o || e.workspaceId !== x) throw new y();
51
- return T((t) => ({
52
- ...t.owner === S ? t : h,
53
- owner: S,
54
- sink: t.owner === S && t.sink && t.sink.version > e.version ? t.sink : e,
28
+ b
29
+ ]), O = s((e) => {
30
+ if (!D()) return null;
31
+ if (!e || e.id !== h || e.workspaceId !== y) throw Error("Data sink not found in this workspace.");
32
+ return C((t) => ({
33
+ ...t.owner === b ? t : p,
34
+ owner: b,
35
+ sink: t.owner === b && t.sink && t.sink.version > e.version ? t.sink : e,
55
36
  loading: !1,
56
- error: null,
57
- errorCode: null
37
+ error: null
58
38
  })), e;
59
39
  }, [
60
- k,
61
- o,
62
- x,
63
- S
64
- ]), j = l(async () => {
65
- if (k()) {
66
- D(!0), T((e) => ({
67
- ...e.owner === S ? e : h,
68
- owner: S,
40
+ D,
41
+ h,
42
+ y,
43
+ b
44
+ ]), k = s(async () => {
45
+ if (D()) {
46
+ T(!0), C((e) => ({
47
+ ...e.owner === b ? e : p,
48
+ owner: b,
69
49
  loading: !e.sink,
70
- error: null,
71
- errorCode: null
50
+ error: null
72
51
  }));
73
52
  try {
74
- return A((await _.query({
53
+ return O((await _.query({
75
54
  query: n,
76
- variables: { dataSinkId: o },
55
+ variables: { dataSinkId: h },
77
56
  fetchPolicy: "no-cache",
78
57
  errorPolicy: "none",
79
- context: O()
58
+ context: E()
80
59
  })).data?.getDataSink);
81
60
  } catch (e) {
82
- k() && T((t) => ({
61
+ D() && C((t) => ({
83
62
  ...t,
84
- owner: S,
63
+ owner: b,
85
64
  loading: !1,
86
- error: g(e),
87
- errorCode: b(e)
65
+ error: m(e)
88
66
  }));
89
67
  } finally {
90
- k() && D(!1);
68
+ D() && T(!1);
91
69
  }
92
70
  }
93
71
  }, [
94
72
  _,
95
- o,
96
- S,
97
- k,
98
- A,
99
- O
100
- ]), M = l(async () => {
101
- if (k()) try {
73
+ h,
74
+ b,
75
+ D,
76
+ O,
77
+ E
78
+ ]), A = s(async () => {
79
+ if (D()) try {
102
80
  let t = await _.query({
103
81
  query: e,
104
- variables: { dataSinkId: o },
82
+ variables: { dataSinkId: h },
105
83
  fetchPolicy: "no-cache",
106
84
  errorPolicy: "none",
107
- context: O()
85
+ context: E()
108
86
  });
109
87
  if (!t.data) throw Error("Delivery channels did not load.");
110
88
  let n = t.data.dataSinkAlertChannels;
111
- k() && T((e) => ({
112
- ...e.owner === S ? e : h,
113
- owner: S,
89
+ D() && C((e) => ({
90
+ ...e.owner === b ? e : p,
91
+ owner: b,
114
92
  channels: n,
115
93
  channelError: null
116
94
  }));
117
95
  } catch (e) {
118
- k() && T((t) => ({
96
+ D() && C((t) => ({
119
97
  ...t,
120
- owner: S,
98
+ owner: b,
121
99
  channels: [],
122
- channelError: g(e)
100
+ channelError: m(e)
123
101
  }));
124
102
  }
125
103
  }, [
126
104
  _,
127
- o,
128
- S,
129
- k,
130
- O
131
- ]), N = l(async () => {
132
- await j() && await M();
133
- }, [j, M]);
134
- u(() => {
105
+ h,
106
+ b,
107
+ D,
108
+ E
109
+ ]);
110
+ c(() => {
135
111
  Promise.resolve().then(() => {
136
- k() && N();
112
+ D() && (k(), A());
137
113
  });
138
114
  let e = window.setInterval(() => {
139
- document.visibilityState === "visible" && j();
115
+ document.visibilityState === "visible" && k();
140
116
  }, 1e4);
141
117
  return () => window.clearInterval(e);
142
118
  }, [
119
+ D,
143
120
  k,
144
- j,
145
- N
121
+ A
146
122
  ]);
147
- let P = l(async (e, t) => {
148
- if (!k()) throw Error("Workspace context changed. Reopen the alert.");
149
- return A((await _.mutate({
123
+ let j = s(async (e, t) => {
124
+ if (!D()) throw Error("Workspace context changed. Reopen the alert.");
125
+ return O((await _.mutate({
150
126
  mutation: a,
151
127
  variables: {
152
- dataSinkId: o,
128
+ dataSinkId: h,
153
129
  alert: e,
154
130
  expectedVersion: t
155
131
  },
156
132
  errorPolicy: "none",
157
- context: O()
133
+ context: E()
158
134
  })).data?.upsertDataSinkAlert);
159
135
  }, [
160
136
  _,
161
- o,
162
- k,
163
- A,
164
- O
165
- ]), F = l(async (e, t) => {
166
- if (!k()) throw Error("Workspace context changed. Reopen the alert.");
167
- return A((await _.mutate({
137
+ h,
138
+ D,
139
+ O,
140
+ E
141
+ ]), M = s(async (e, t) => {
142
+ if (!D()) throw Error("Workspace context changed. Reopen the alert.");
143
+ return O((await _.mutate({
168
144
  mutation: r,
169
145
  variables: {
170
- dataSinkId: o,
146
+ dataSinkId: h,
171
147
  alertId: e,
172
148
  expectedVersion: t
173
149
  },
174
150
  errorPolicy: "none",
175
- context: O()
151
+ context: E()
176
152
  })).data?.deleteDataSinkAlert);
177
153
  }, [
178
154
  _,
179
- o,
180
- k,
181
- A,
182
- O
183
- ]), I = l(async (e, t) => {
184
- if (!k()) throw Error("Workspace context changed. Reopen the alert.");
155
+ h,
156
+ D,
157
+ O,
158
+ E
159
+ ]), N = s(async (e, t) => {
160
+ if (!D()) throw Error("Workspace context changed. Reopen the alert.");
185
161
  let n = await _.query({
186
162
  query: i,
187
163
  variables: {
188
- dataSinkId: o,
164
+ dataSinkId: h,
189
165
  condition: e,
190
166
  conditionType: t
191
167
  },
192
168
  fetchPolicy: "no-cache",
193
169
  errorPolicy: "none",
194
- context: O()
170
+ context: E()
195
171
  });
196
- if (!k()) return null;
172
+ if (!D()) return null;
197
173
  if (!n.data) throw Error("Condition preview returned no result.");
198
174
  return n.data.previewDataSinkAlert;
199
175
  }, [
200
176
  _,
201
- o,
202
- k,
203
- O
204
- ]), L = l(async (e, n) => {
205
- if (!k()) return null;
177
+ h,
178
+ D,
179
+ E
180
+ ]), P = s(async (e, n) => {
181
+ if (!D()) return null;
206
182
  let r = await _.query({
207
183
  query: t,
208
184
  variables: {
209
- dataSinkId: o,
185
+ dataSinkId: h,
210
186
  alertId: e,
211
187
  after: n,
212
188
  first: 21
213
189
  },
214
190
  fetchPolicy: "no-cache",
215
191
  errorPolicy: "none",
216
- context: O()
192
+ context: E()
217
193
  });
218
- if (!k()) return null;
194
+ if (!D()) return null;
219
195
  if (!r.data) throw Error("Execution history returned no result.");
220
- return r.data.dataSinkAlertExecutions.filter((e) => e.dataSinkId === o);
196
+ return r.data.dataSinkAlertExecutions.filter((e) => e.dataSinkId === h);
221
197
  }, [
222
198
  _,
223
- o,
224
- k,
225
- O
199
+ h,
200
+ D,
201
+ E
226
202
  ]);
227
203
  return {
228
- ...w.owner === S ? w : {
229
- ...h,
230
- loading: s
204
+ ...S.owner === b ? S : {
205
+ ...p,
206
+ loading: g
231
207
  },
232
- owner: S,
233
- refreshing: E,
234
- reload: j,
235
- reloadChannels: M,
236
- reloadSinkThenChannels: N,
237
- save: P,
238
- remove: F,
239
- preview: I,
240
- history: L
208
+ owner: b,
209
+ refreshing: w,
210
+ reload: k,
211
+ reloadChannels: A,
212
+ save: j,
213
+ remove: M,
214
+ preview: N,
215
+ history: P
241
216
  };
242
217
  }
243
218
  //#endregion
244
- export { g as alertErrorMessage, x as describeAlertLoadFailure, S as useDataSinkAlerts };
219
+ export { m as alertErrorMessage, h as useDataSinkAlerts };
@@ -19,6 +19,12 @@ interface InvalidateCacheResult {
19
19
  success: boolean;
20
20
  message?: string;
21
21
  }
22
+ /** A sink's stored payload, as loaded for editing. */
23
+ export interface DataSinkPayload {
24
+ id: string;
25
+ version: number;
26
+ data: unknown;
27
+ }
22
28
  interface DataSinkDataResult {
23
29
  raw: unknown;
24
30
  extracted: unknown;
@@ -36,6 +42,7 @@ export declare function useDataSinkOperations(options?: UseDataSinkOperationsOpt
36
42
  dataSinks: DataSink[];
37
43
  fetchDataSinks: (filters?: DataSinkFilters) => Promise<DataSink[]>;
38
44
  fetchDataSink: (id: string) => Promise<DataSink | null>;
45
+ fetchDataSinkPayload: (id: string) => Promise<DataSinkPayload | null>;
39
46
  getDataSinkData: (idOrKey: {
40
47
  id?: string;
41
48
  key?: string;