@burdenoff/fluidgrids-fe-sdk 2026.1112.11 → 2026.1113.2

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 (127) hide show
  1. package/dist/{AiStudioPage-Q3455WO6.js → AiStudioPage-5KYZ8r8-.js} +464 -7
  2. package/dist/{ApprovalInboxPage-Bb8H9ruw.js → ApprovalInboxPage-BsJX4osU.js} +4 -3
  3. package/dist/{ConnectionFormDialog-Bg9_OdHX.js → ConnectionFormDialog-Dr1-CTan.js} +2 -1
  4. package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
  5. package/dist/{DataSinkDashboardPage-B5bqPnUn.js → DataSinkDashboardPage-8ZDn85e2.js} +1 -1
  6. package/dist/{DataTablesPage-Zz23QZQp.js → DataTablesPage-BBvABuxE.js} +5 -4
  7. package/dist/{EntityTagPicker-CuZAMby_.js → EntityTagPicker-BppBSEJk.js} +2 -2
  8. package/dist/{ExecutionDetailPage-UyXErYuS.js → ExecutionDetailPage-BXDF2eoT.js} +1601 -31
  9. package/dist/ExecutionsListDocument-CzdLPpj5.js +1259 -0
  10. package/dist/{ExecutionsListPage-CUJQA0Vk.js → ExecutionsListPage--4BthM8L.js} +286 -12
  11. package/dist/FailureTriagePanel-B5WCSRFo.js +1252 -0
  12. package/dist/{FluidGridsProvider-CGi9a1So.js → FluidGridsProvider-Dc_Jhtch.js} +8666 -8734
  13. package/dist/{HistoryPage-DLqmeQ12.js → HistoryPage-BvFk2m1m.js} +4 -3
  14. package/dist/{InsightsPage-CqtPCpj7.js → InsightsPage-Dwmb02F6.js} +2682 -5
  15. package/dist/{MissingNodesInstallModal-Df4fEAnr.js → MissingNodesInstallModal-Cze674hp.js} +2 -2
  16. package/dist/{NodesPage-YQ-hP60x.js → NodesPage-C5Dq-ru-.js} +3 -2
  17. package/dist/{OpenTemplateAsCodeButton-BmuHhDRr.js → OpenTemplateAsCodeButton-8MZHih6I.js} +2 -2
  18. package/dist/{PaidTemplateConfirm-BTrK35af.js → PaidTemplateConfirm-0G-gv29n.js} +1 -1
  19. package/dist/{PublishCustomNodeAction-5XXnSA3H.js → PublishCustomNodeAction-OOY35dUv.js} +1 -1
  20. package/dist/QuotaExhaustedDialog-wvu_-WJ-.js +55 -0
  21. package/dist/{RunnerStatusPill-Ctg4TJcP.js → RunnerStatusPill-Bh7mEsPh.js} +2 -1
  22. package/dist/{RunnersPage-CAt4YDhB.js → RunnersPage-DHeuUDil.js} +2 -2
  23. package/dist/{SettingsPage-CVvaQ_g9.js → SettingsPage-CfjXiGpb.js} +694 -14
  24. package/dist/{TagFilterSelect-DcusTt1p.js → TagFilterSelect-CAShgvbS.js} +1 -1
  25. package/dist/{TaskQueuesPage-C2dkenVF.js → TaskQueuesPage--Mmn36b-.js} +3 -3
  26. package/dist/{TemplateCard-DFbYdC2c.js → TemplateCard-BA_9em22.js} +644 -352
  27. package/dist/{TemplateConfigurationModal-Dw2UgWYF.js → TemplateConfigurationModal-BT3PaR0O.js} +4 -3
  28. package/dist/{TemplateDetailPanel-DDySr7_1.js → TemplateDetailPanel-BxFNnlXm.js} +2 -1
  29. package/dist/{TemplatePreview-D8zWdTGv.js → TemplatePreview-Bagja6WN.js} +7 -7
  30. package/dist/{TemplatesPage-XCwxJjN6.js → TemplatesPage-CAajpJ5w.js} +711 -6
  31. package/dist/{VariablesPage-DpiLh99E.js → VariablesPage-CgUBKhAe.js} +3 -3
  32. package/dist/{VersionDiffDialog-c27yet_-.js → VersionDiffDialog-D9W5Fm56.js} +233 -129
  33. package/dist/VersionLifecycleBar-DuphLOT0.js +131 -0
  34. package/dist/{WorkflowBuilder-CXqwzR7a.js → WorkflowBuilder-DMpSPElu.js} +16 -13
  35. package/dist/{WorkflowBuilder-BaNAX7Nk.js → WorkflowBuilder-v8h8skwG.js} +5 -5
  36. package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
  37. package/dist/WorkflowEditLeaseStatusDocument-Dp62med3.js +627 -0
  38. package/dist/WorkflowProposalCard-zCdUpCk8.js +249 -0
  39. package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
  40. package/dist/{WorkflowSearchRedirect-DsQ71VcC.js → WorkflowSearchRedirect-G78lINAE.js} +1 -1
  41. package/dist/{WorkflowShareDialog-BRwTF9QB.js → WorkflowShareDialog-B7VOgr4-.js} +304 -3
  42. package/dist/WorkflowVersionsDocument-CfPMloRW.js +3195 -0
  43. package/dist/{WorkflowsList-DQW-WLl5.js → WorkflowsList-CPYzfE4K.js} +11 -9
  44. package/dist/agent-form-D0uLvzx4.js +718 -0
  45. package/dist/{agentTools-edsllozS.js → agentTools-DTXUqtfu.js} +4 -4
  46. package/dist/api-BZVyX5d2.js +2286 -0
  47. package/dist/api-BqA-f-AD.js +8064 -0
  48. package/dist/app-BJUvugPM.js +3813 -0
  49. package/dist/assert-rules-CPNrO44K.js +318 -0
  50. package/dist/attach-node-helpers-CNsYtLOR.js +32 -0
  51. package/dist/badge-CXfPhoMH.js +26 -0
  52. package/dist/{canvasNoteTools-DzNTcQGo.js → canvasNoteTools-DmfZwtnL.js} +3 -3
  53. package/dist/{channel-CZ70oI81.js → channel-DtF1n_ab.js} +1 -1
  54. package/dist/client-Ctl4jmY3.js +127 -0
  55. package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
  56. package/dist/{code-editor-field-B2l-B8in.js → code-editor-field-Cv907s3W.js} +2 -2
  57. package/dist/{codec-client-CJ95Rmqo.js → codec-client-CAYl6j46.js} +2 -1
  58. package/dist/conditionBuilder-D8aLGL1w.js +1134 -0
  59. package/dist/config-X97zrIvn.js +600 -0
  60. package/dist/{definition-canvas-Bshn_dSP.js → definition-canvas-DL25_6NH.js} +1 -1
  61. package/dist/{dialog-Cjb4lB4D.js → dialog-BVd152GS.js} +3 -14
  62. package/dist/durable-nodes-DXCCQYWD.js +81 -0
  63. package/dist/errors-xPZ-IbQd.js +142 -0
  64. package/dist/executions.js +2 -2
  65. package/dist/{flow-builder-B2JGvYeK.js → flow-builder-Dv5fWJ6F.js} +9781 -8416
  66. package/dist/{node-registry-refresh-Dy0uRg9f.js → global-client-DP_Wxe5t.js} +2 -27
  67. package/dist/global-operations-7pvXw_j9.js +145 -0
  68. package/dist/history.js +1 -1
  69. package/dist/{index-ChYBGz_a.d.ts → index-DtMUtXNq.d.ts} +306 -246
  70. package/dist/index.d.ts +2 -2
  71. package/dist/index.js +4404 -47
  72. package/dist/input-ChT6Q-Pr.js +17 -0
  73. package/dist/logs-panel-DtG93ocy.js +342 -0
  74. package/dist/mapping-colors-BIX_YeCQ.js +48 -0
  75. package/dist/{node-detail-view-BDXhEGVD.js → node-detail-view-BKI_2kM6.js} +12 -11
  76. package/dist/{node-editor-tab-body-DBnsqYUK.js → node-editor-tab-body-Cc1MWEFR.js} +3 -3
  77. package/dist/{node-operation-selection-DAbS6jSY.js → node-operation-selection-Czeeb2D4.js} +2 -139
  78. package/dist/node-registry-refresh-s3okf83X.js +27 -0
  79. package/dist/nodes.js +1 -1
  80. package/dist/notesKey-5EaREBGA.js +12 -0
  81. package/dist/observability.d.ts +1 -1
  82. package/dist/observability.js +2 -2
  83. package/dist/{popover-Cl7_tXph.js → popover-DDv7J1Kl.js} +717 -6
  84. package/dist/{quick-config-panel-C_Z0RXEG.js → quick-config-panel-BPCRfqWI.js} +4 -4
  85. package/dist/read-only-context-Dt9N9SIG.js +18 -0
  86. package/dist/{schedule-panel-CFAKmrBH.js → schedule-panel-C1KwfLCE.js} +197 -79
  87. package/dist/settings.js +1 -1
  88. package/dist/{shared-CMfn30xT.js → shared-Ctl9ZHo1.js} +2 -1
  89. package/dist/{sidebar-node-editor-DZZlDElK.js → sidebar-node-editor-d9Rlq5pU.js} +4 -4
  90. package/dist/sticky-notes-23j-wL6Q.js +96 -0
  91. package/dist/template-code-dqRunGOv.js +184 -0
  92. package/dist/template-preview-C01KV277.js +29 -0
  93. package/dist/templates.js +2 -2
  94. package/dist/token-refresh-link-BjN7H4qA.js +291 -0
  95. package/dist/useAgentDefinitions-ZKX2N9aP.js +3101 -0
  96. package/dist/useConnections-BlB0gbOB.js +931 -0
  97. package/dist/useDurableParity-BgLH_SCF.js +2088 -0
  98. package/dist/{useEntityTags-BpDeLhzV.js → useEntityTags-4iW6UTly.js} +227 -3
  99. package/dist/{useExecutions-D2iKpt1Z.js → useExecutions-Bm7q_UwN.js} +6 -3
  100. package/dist/useGlobalStoreClient-DMTrywdX.js +24 -0
  101. package/dist/{useHumanRequests-ZiR0sSzS.js → useHumanRequests-DwG2tQ3f.js} +2 -1
  102. package/dist/{useObservability-DIhzs9F-.js → useObservability-DPATdbw7.js} +4 -2
  103. package/dist/{useRunHistory-BhVY82Pg.js → useRunHistory-CGfjCsJ3.js} +1122 -4
  104. package/dist/{useVariables-2ddyJX4a.js → useVariables-DFdZofLQ.js} +2 -1
  105. package/dist/{useWorkflowCodeExport-BXy4NPsE.js → useWorkflowCodeExport-D_mCuhKP.js} +289 -4
  106. package/dist/useWorkflowOrganization-r5FWNBs6.js +1690 -0
  107. package/dist/useWorkflowProposal-Bh2_qjmM.js +7478 -0
  108. package/dist/{useWorkflows-Clsu0o8t.js → useWorkflows-aqVD7kGa.js} +694 -4
  109. package/dist/workflow-builder.js +5 -5
  110. package/dist/{workflow-code-transfer-DemcCpOv.js → workflow-code-transfer-5C0HUzae.js} +1 -53
  111. package/dist/workflow-host.js +4 -2
  112. package/dist/workflow-pages.d.ts +1 -1
  113. package/dist/workflow-pages.js +19 -19
  114. package/dist/workflow-preview.js +3 -2
  115. package/dist/workflows-list.js +1 -1
  116. package/package.json +1 -1
  117. package/dist/FailureTriagePanel-BjatYyAa.js +0 -311
  118. package/dist/WorkflowProposalCard-BvmJ5ea8.js +0 -1245
  119. package/dist/agent-form-Bfvm32j1.js +0 -83
  120. package/dist/api-Dw8nfVRD.js +0 -55
  121. package/dist/api-m8hX_l2k.js +0 -224
  122. package/dist/client-C9XSzSXr.js +0 -1147
  123. package/dist/graphql-operation-types-DZVhCBEi.js +0 -52817
  124. package/dist/useAgentDefinitions-B4sw7bLw.js +0 -550
  125. package/dist/useConnections-Cs7LCWEM.js +0 -401
  126. package/dist/useDurableParity-jtqJF547.js +0 -504
  127. package/dist/useWorkflowOrganization-C4y6BOnN.js +0 -282
@@ -0,0 +1,2088 @@
1
+ "use client";
2
+ import { o as throwIfResultError, t as describeOperationError } from "./errors-xPZ-IbQd.js";
3
+ import { n as getFluidGridsClient } from "./client-Ctl4jmY3.js";
4
+ import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
5
+ import { f as STATUS_COUNT_GROUP_BY, v as statusCountFilter, y as statusCountsOf } from "./useExecutions-Bm7q_UwN.js";
6
+ import { n as useNavigationV2 } from "./useNavigationV2-C2WeqN7d.js";
7
+ import { useCallback, useEffect, useRef, useState } from "react";
8
+ import { Icon } from "@iconify/react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "@burdenoff/fe-libs/ui";
11
+
12
+ // src/generated/documents/wspace/SetWorkflowRunVersioningOverrideDocument.ts
13
+ const SetWorkflowRunVersioningOverrideDocument = {
14
+ "kind": "Document",
15
+ "definitions": [{
16
+ "kind": "OperationDefinition",
17
+ "operation": "mutation",
18
+ "name": {
19
+ "kind": "Name",
20
+ "value": "SetWorkflowRunVersioningOverride"
21
+ },
22
+ "variableDefinitions": [
23
+ {
24
+ "kind": "VariableDefinition",
25
+ "variable": {
26
+ "kind": "Variable",
27
+ "name": {
28
+ "kind": "Name",
29
+ "value": "runId"
30
+ }
31
+ },
32
+ "type": {
33
+ "kind": "NonNullType",
34
+ "type": {
35
+ "kind": "NamedType",
36
+ "name": {
37
+ "kind": "Name",
38
+ "value": "ID"
39
+ }
40
+ }
41
+ },
42
+ "directives": []
43
+ },
44
+ {
45
+ "kind": "VariableDefinition",
46
+ "variable": {
47
+ "kind": "Variable",
48
+ "name": {
49
+ "kind": "Name",
50
+ "value": "override"
51
+ }
52
+ },
53
+ "type": {
54
+ "kind": "NamedType",
55
+ "name": {
56
+ "kind": "Name",
57
+ "value": "VersioningOverrideInput"
58
+ }
59
+ },
60
+ "directives": []
61
+ },
62
+ {
63
+ "kind": "VariableDefinition",
64
+ "variable": {
65
+ "kind": "Variable",
66
+ "name": {
67
+ "kind": "Name",
68
+ "value": "reason"
69
+ }
70
+ },
71
+ "type": {
72
+ "kind": "NamedType",
73
+ "name": {
74
+ "kind": "Name",
75
+ "value": "String"
76
+ }
77
+ },
78
+ "directives": []
79
+ }
80
+ ],
81
+ "directives": [],
82
+ "selectionSet": {
83
+ "kind": "SelectionSet",
84
+ "selections": [{
85
+ "kind": "Field",
86
+ "name": {
87
+ "kind": "Name",
88
+ "value": "setWorkflowRunVersioningOverride"
89
+ },
90
+ "arguments": [
91
+ {
92
+ "kind": "Argument",
93
+ "name": {
94
+ "kind": "Name",
95
+ "value": "runId"
96
+ },
97
+ "value": {
98
+ "kind": "Variable",
99
+ "name": {
100
+ "kind": "Name",
101
+ "value": "runId"
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "kind": "Argument",
107
+ "name": {
108
+ "kind": "Name",
109
+ "value": "override"
110
+ },
111
+ "value": {
112
+ "kind": "Variable",
113
+ "name": {
114
+ "kind": "Name",
115
+ "value": "override"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "kind": "Argument",
121
+ "name": {
122
+ "kind": "Name",
123
+ "value": "reason"
124
+ },
125
+ "value": {
126
+ "kind": "Variable",
127
+ "name": {
128
+ "kind": "Name",
129
+ "value": "reason"
130
+ }
131
+ }
132
+ }
133
+ ],
134
+ "directives": [],
135
+ "selectionSet": {
136
+ "kind": "SelectionSet",
137
+ "selections": [{
138
+ "kind": "Field",
139
+ "name": {
140
+ "kind": "Name",
141
+ "value": "id"
142
+ },
143
+ "arguments": [],
144
+ "directives": []
145
+ }, {
146
+ "kind": "Field",
147
+ "name": {
148
+ "kind": "Name",
149
+ "value": "versioning"
150
+ },
151
+ "arguments": [],
152
+ "directives": [],
153
+ "selectionSet": {
154
+ "kind": "SelectionSet",
155
+ "selections": [
156
+ {
157
+ "kind": "Field",
158
+ "name": {
159
+ "kind": "Name",
160
+ "value": "behavior"
161
+ },
162
+ "arguments": [],
163
+ "directives": []
164
+ },
165
+ {
166
+ "kind": "Field",
167
+ "name": {
168
+ "kind": "Name",
169
+ "value": "startBehavior"
170
+ },
171
+ "arguments": [],
172
+ "directives": []
173
+ },
174
+ {
175
+ "kind": "Field",
176
+ "name": {
177
+ "kind": "Name",
178
+ "value": "override"
179
+ },
180
+ "arguments": [],
181
+ "directives": [],
182
+ "selectionSet": {
183
+ "kind": "SelectionSet",
184
+ "selections": [{
185
+ "kind": "Field",
186
+ "name": {
187
+ "kind": "Name",
188
+ "value": "behavior"
189
+ },
190
+ "arguments": [],
191
+ "directives": []
192
+ }, {
193
+ "kind": "Field",
194
+ "name": {
195
+ "kind": "Name",
196
+ "value": "version"
197
+ },
198
+ "arguments": [],
199
+ "directives": []
200
+ }]
201
+ }
202
+ },
203
+ {
204
+ "kind": "Field",
205
+ "name": {
206
+ "kind": "Name",
207
+ "value": "servingVersion"
208
+ },
209
+ "arguments": [],
210
+ "directives": []
211
+ },
212
+ {
213
+ "kind": "Field",
214
+ "name": {
215
+ "kind": "Name",
216
+ "value": "buildId"
217
+ },
218
+ "arguments": [],
219
+ "directives": []
220
+ },
221
+ {
222
+ "kind": "Field",
223
+ "name": {
224
+ "kind": "Name",
225
+ "value": "heldFromVersion"
226
+ },
227
+ "arguments": [],
228
+ "directives": []
229
+ },
230
+ {
231
+ "kind": "Field",
232
+ "name": {
233
+ "kind": "Name",
234
+ "value": "pendingOverride"
235
+ },
236
+ "arguments": [],
237
+ "directives": [],
238
+ "selectionSet": {
239
+ "kind": "SelectionSet",
240
+ "selections": [{
241
+ "kind": "FragmentSpread",
242
+ "name": {
243
+ "kind": "Name",
244
+ "value": "RunCodeReplaceFields"
245
+ },
246
+ "directives": []
247
+ }]
248
+ }
249
+ }
250
+ ]
251
+ }
252
+ }]
253
+ }
254
+ }]
255
+ }
256
+ }, {
257
+ "kind": "FragmentDefinition",
258
+ "name": {
259
+ "kind": "Name",
260
+ "value": "RunCodeReplaceFields"
261
+ },
262
+ "variableDefinitions": [],
263
+ "typeCondition": {
264
+ "kind": "NamedType",
265
+ "name": {
266
+ "kind": "Name",
267
+ "value": "WorkflowCodeReplaceResult"
268
+ }
269
+ },
270
+ "directives": [],
271
+ "selectionSet": {
272
+ "kind": "SelectionSet",
273
+ "selections": [
274
+ {
275
+ "kind": "Field",
276
+ "name": {
277
+ "kind": "Name",
278
+ "value": "id"
279
+ },
280
+ "arguments": [],
281
+ "directives": []
282
+ },
283
+ {
284
+ "kind": "Field",
285
+ "name": {
286
+ "kind": "Name",
287
+ "value": "kind"
288
+ },
289
+ "arguments": [],
290
+ "directives": []
291
+ },
292
+ {
293
+ "kind": "Field",
294
+ "name": {
295
+ "kind": "Name",
296
+ "value": "status"
297
+ },
298
+ "arguments": [],
299
+ "directives": []
300
+ },
301
+ {
302
+ "kind": "Field",
303
+ "name": {
304
+ "kind": "Name",
305
+ "value": "buildId"
306
+ },
307
+ "arguments": [],
308
+ "directives": []
309
+ },
310
+ {
311
+ "kind": "Field",
312
+ "name": {
313
+ "kind": "Name",
314
+ "value": "previousBuildId"
315
+ },
316
+ "arguments": [],
317
+ "directives": []
318
+ },
319
+ {
320
+ "kind": "Field",
321
+ "name": {
322
+ "kind": "Name",
323
+ "value": "targetVersion"
324
+ },
325
+ "arguments": [],
326
+ "directives": []
327
+ },
328
+ {
329
+ "kind": "Field",
330
+ "name": {
331
+ "kind": "Name",
332
+ "value": "runId"
333
+ },
334
+ "arguments": [],
335
+ "directives": []
336
+ },
337
+ {
338
+ "kind": "Field",
339
+ "name": {
340
+ "kind": "Name",
341
+ "value": "force"
342
+ },
343
+ "arguments": [],
344
+ "directives": []
345
+ },
346
+ {
347
+ "kind": "Field",
348
+ "name": {
349
+ "kind": "Name",
350
+ "value": "verifiedRuns"
351
+ },
352
+ "arguments": [],
353
+ "directives": []
354
+ },
355
+ {
356
+ "kind": "Field",
357
+ "name": {
358
+ "kind": "Name",
359
+ "value": "violations"
360
+ },
361
+ "arguments": [],
362
+ "directives": [],
363
+ "selectionSet": {
364
+ "kind": "SelectionSet",
365
+ "selections": [
366
+ {
367
+ "kind": "Field",
368
+ "name": {
369
+ "kind": "Name",
370
+ "value": "runId"
371
+ },
372
+ "arguments": [],
373
+ "directives": []
374
+ },
375
+ {
376
+ "kind": "Field",
377
+ "name": {
378
+ "kind": "Name",
379
+ "value": "seq"
380
+ },
381
+ "arguments": [],
382
+ "directives": []
383
+ },
384
+ {
385
+ "kind": "Field",
386
+ "name": {
387
+ "kind": "Name",
388
+ "value": "message"
389
+ },
390
+ "arguments": [],
391
+ "directives": []
392
+ }
393
+ ]
394
+ }
395
+ }
396
+ ]
397
+ }
398
+ }]
399
+ };
400
+
401
+ // src/generated/documents/wspace/DurableParityRunFieldsDocument.ts
402
+ const DurableParityRunFieldsDocument = {
403
+ "kind": "Document",
404
+ "definitions": [{
405
+ "kind": "OperationDefinition",
406
+ "operation": "query",
407
+ "name": {
408
+ "kind": "Name",
409
+ "value": "DurableParityRunFields"
410
+ },
411
+ "variableDefinitions": [{
412
+ "kind": "VariableDefinition",
413
+ "variable": {
414
+ "kind": "Variable",
415
+ "name": {
416
+ "kind": "Name",
417
+ "value": "id"
418
+ }
419
+ },
420
+ "type": {
421
+ "kind": "NonNullType",
422
+ "type": {
423
+ "kind": "NamedType",
424
+ "name": {
425
+ "kind": "Name",
426
+ "value": "ID"
427
+ }
428
+ }
429
+ },
430
+ "directives": []
431
+ }],
432
+ "directives": [],
433
+ "selectionSet": {
434
+ "kind": "SelectionSet",
435
+ "selections": [{
436
+ "kind": "Field",
437
+ "name": {
438
+ "kind": "Name",
439
+ "value": "workflowRun"
440
+ },
441
+ "arguments": [{
442
+ "kind": "Argument",
443
+ "name": {
444
+ "kind": "Name",
445
+ "value": "id"
446
+ },
447
+ "value": {
448
+ "kind": "Variable",
449
+ "name": {
450
+ "kind": "Name",
451
+ "value": "id"
452
+ }
453
+ }
454
+ }],
455
+ "directives": [],
456
+ "selectionSet": {
457
+ "kind": "SelectionSet",
458
+ "selections": [
459
+ {
460
+ "kind": "Field",
461
+ "name": {
462
+ "kind": "Name",
463
+ "value": "id"
464
+ },
465
+ "arguments": [],
466
+ "directives": []
467
+ },
468
+ {
469
+ "kind": "Field",
470
+ "name": {
471
+ "kind": "Name",
472
+ "value": "businessId"
473
+ },
474
+ "arguments": [],
475
+ "directives": []
476
+ },
477
+ {
478
+ "kind": "Field",
479
+ "name": {
480
+ "kind": "Name",
481
+ "value": "runAttempt"
482
+ },
483
+ "arguments": [],
484
+ "directives": []
485
+ },
486
+ {
487
+ "kind": "Field",
488
+ "name": {
489
+ "kind": "Name",
490
+ "value": "firstRunId"
491
+ },
492
+ "arguments": [],
493
+ "directives": []
494
+ },
495
+ {
496
+ "kind": "Field",
497
+ "name": {
498
+ "kind": "Name",
499
+ "value": "continuedFromRunId"
500
+ },
501
+ "arguments": [],
502
+ "directives": []
503
+ },
504
+ {
505
+ "kind": "Field",
506
+ "name": {
507
+ "kind": "Name",
508
+ "value": "continuedToRunId"
509
+ },
510
+ "arguments": [],
511
+ "directives": []
512
+ },
513
+ {
514
+ "kind": "Field",
515
+ "name": {
516
+ "kind": "Name",
517
+ "value": "rootRunId"
518
+ },
519
+ "arguments": [],
520
+ "directives": []
521
+ },
522
+ {
523
+ "kind": "Field",
524
+ "name": {
525
+ "kind": "Name",
526
+ "value": "priority"
527
+ },
528
+ "arguments": [],
529
+ "directives": []
530
+ },
531
+ {
532
+ "kind": "Field",
533
+ "name": {
534
+ "kind": "Name",
535
+ "value": "summary"
536
+ },
537
+ "arguments": [],
538
+ "directives": []
539
+ },
540
+ {
541
+ "kind": "Field",
542
+ "name": {
543
+ "kind": "Name",
544
+ "value": "details"
545
+ },
546
+ "arguments": [],
547
+ "directives": []
548
+ },
549
+ {
550
+ "kind": "Field",
551
+ "name": {
552
+ "kind": "Name",
553
+ "value": "currentDetails"
554
+ },
555
+ "arguments": [],
556
+ "directives": []
557
+ },
558
+ {
559
+ "kind": "Field",
560
+ "name": {
561
+ "kind": "Name",
562
+ "value": "memo"
563
+ },
564
+ "arguments": [],
565
+ "directives": []
566
+ },
567
+ {
568
+ "kind": "Field",
569
+ "name": {
570
+ "kind": "Name",
571
+ "value": "startDelayUntil"
572
+ },
573
+ "arguments": [],
574
+ "directives": []
575
+ },
576
+ {
577
+ "kind": "Field",
578
+ "name": {
579
+ "kind": "Name",
580
+ "value": "runTimeoutAt"
581
+ },
582
+ "arguments": [],
583
+ "directives": []
584
+ },
585
+ {
586
+ "kind": "Field",
587
+ "name": {
588
+ "kind": "Name",
589
+ "value": "executionTimeoutAt"
590
+ },
591
+ "arguments": [],
592
+ "directives": []
593
+ },
594
+ {
595
+ "kind": "Field",
596
+ "name": {
597
+ "kind": "Name",
598
+ "value": "completionCallback"
599
+ },
600
+ "arguments": [],
601
+ "directives": [],
602
+ "selectionSet": {
603
+ "kind": "SelectionSet",
604
+ "selections": [
605
+ {
606
+ "kind": "Field",
607
+ "name": {
608
+ "kind": "Name",
609
+ "value": "url"
610
+ },
611
+ "arguments": [],
612
+ "directives": []
613
+ },
614
+ {
615
+ "kind": "Field",
616
+ "name": {
617
+ "kind": "Name",
618
+ "value": "status"
619
+ },
620
+ "arguments": [],
621
+ "directives": []
622
+ },
623
+ {
624
+ "kind": "Field",
625
+ "name": {
626
+ "kind": "Name",
627
+ "value": "attempts"
628
+ },
629
+ "arguments": [],
630
+ "directives": []
631
+ },
632
+ {
633
+ "kind": "Field",
634
+ "name": {
635
+ "kind": "Name",
636
+ "value": "lastStatusCode"
637
+ },
638
+ "arguments": [],
639
+ "directives": []
640
+ },
641
+ {
642
+ "kind": "Field",
643
+ "name": {
644
+ "kind": "Name",
645
+ "value": "lastError"
646
+ },
647
+ "arguments": [],
648
+ "directives": []
649
+ },
650
+ {
651
+ "kind": "Field",
652
+ "name": {
653
+ "kind": "Name",
654
+ "value": "lastAttemptAt"
655
+ },
656
+ "arguments": [],
657
+ "directives": []
658
+ },
659
+ {
660
+ "kind": "Field",
661
+ "name": {
662
+ "kind": "Name",
663
+ "value": "deliveredAt"
664
+ },
665
+ "arguments": [],
666
+ "directives": []
667
+ },
668
+ {
669
+ "kind": "Field",
670
+ "name": {
671
+ "kind": "Name",
672
+ "value": "nextAttemptAt"
673
+ },
674
+ "arguments": [],
675
+ "directives": []
676
+ }
677
+ ]
678
+ }
679
+ },
680
+ {
681
+ "kind": "Field",
682
+ "name": {
683
+ "kind": "Name",
684
+ "value": "versioning"
685
+ },
686
+ "arguments": [],
687
+ "directives": [],
688
+ "selectionSet": {
689
+ "kind": "SelectionSet",
690
+ "selections": [
691
+ {
692
+ "kind": "Field",
693
+ "name": {
694
+ "kind": "Name",
695
+ "value": "behavior"
696
+ },
697
+ "arguments": [],
698
+ "directives": []
699
+ },
700
+ {
701
+ "kind": "Field",
702
+ "name": {
703
+ "kind": "Name",
704
+ "value": "startBehavior"
705
+ },
706
+ "arguments": [],
707
+ "directives": []
708
+ },
709
+ {
710
+ "kind": "Field",
711
+ "name": {
712
+ "kind": "Name",
713
+ "value": "override"
714
+ },
715
+ "arguments": [],
716
+ "directives": [],
717
+ "selectionSet": {
718
+ "kind": "SelectionSet",
719
+ "selections": [{
720
+ "kind": "Field",
721
+ "name": {
722
+ "kind": "Name",
723
+ "value": "behavior"
724
+ },
725
+ "arguments": [],
726
+ "directives": []
727
+ }, {
728
+ "kind": "Field",
729
+ "name": {
730
+ "kind": "Name",
731
+ "value": "version"
732
+ },
733
+ "arguments": [],
734
+ "directives": []
735
+ }]
736
+ }
737
+ },
738
+ {
739
+ "kind": "Field",
740
+ "name": {
741
+ "kind": "Name",
742
+ "value": "servingVersion"
743
+ },
744
+ "arguments": [],
745
+ "directives": []
746
+ },
747
+ {
748
+ "kind": "Field",
749
+ "name": {
750
+ "kind": "Name",
751
+ "value": "buildId"
752
+ },
753
+ "arguments": [],
754
+ "directives": []
755
+ },
756
+ {
757
+ "kind": "Field",
758
+ "name": {
759
+ "kind": "Name",
760
+ "value": "heldFromVersion"
761
+ },
762
+ "arguments": [],
763
+ "directives": []
764
+ },
765
+ {
766
+ "kind": "Field",
767
+ "name": {
768
+ "kind": "Name",
769
+ "value": "pendingOverride"
770
+ },
771
+ "arguments": [],
772
+ "directives": [],
773
+ "selectionSet": {
774
+ "kind": "SelectionSet",
775
+ "selections": [{
776
+ "kind": "FragmentSpread",
777
+ "name": {
778
+ "kind": "Name",
779
+ "value": "RunCodeReplaceFields"
780
+ },
781
+ "directives": []
782
+ }]
783
+ }
784
+ }
785
+ ]
786
+ }
787
+ }
788
+ ]
789
+ }
790
+ }]
791
+ }
792
+ }, {
793
+ "kind": "FragmentDefinition",
794
+ "name": {
795
+ "kind": "Name",
796
+ "value": "RunCodeReplaceFields"
797
+ },
798
+ "variableDefinitions": [],
799
+ "typeCondition": {
800
+ "kind": "NamedType",
801
+ "name": {
802
+ "kind": "Name",
803
+ "value": "WorkflowCodeReplaceResult"
804
+ }
805
+ },
806
+ "directives": [],
807
+ "selectionSet": {
808
+ "kind": "SelectionSet",
809
+ "selections": [
810
+ {
811
+ "kind": "Field",
812
+ "name": {
813
+ "kind": "Name",
814
+ "value": "id"
815
+ },
816
+ "arguments": [],
817
+ "directives": []
818
+ },
819
+ {
820
+ "kind": "Field",
821
+ "name": {
822
+ "kind": "Name",
823
+ "value": "kind"
824
+ },
825
+ "arguments": [],
826
+ "directives": []
827
+ },
828
+ {
829
+ "kind": "Field",
830
+ "name": {
831
+ "kind": "Name",
832
+ "value": "status"
833
+ },
834
+ "arguments": [],
835
+ "directives": []
836
+ },
837
+ {
838
+ "kind": "Field",
839
+ "name": {
840
+ "kind": "Name",
841
+ "value": "buildId"
842
+ },
843
+ "arguments": [],
844
+ "directives": []
845
+ },
846
+ {
847
+ "kind": "Field",
848
+ "name": {
849
+ "kind": "Name",
850
+ "value": "previousBuildId"
851
+ },
852
+ "arguments": [],
853
+ "directives": []
854
+ },
855
+ {
856
+ "kind": "Field",
857
+ "name": {
858
+ "kind": "Name",
859
+ "value": "targetVersion"
860
+ },
861
+ "arguments": [],
862
+ "directives": []
863
+ },
864
+ {
865
+ "kind": "Field",
866
+ "name": {
867
+ "kind": "Name",
868
+ "value": "runId"
869
+ },
870
+ "arguments": [],
871
+ "directives": []
872
+ },
873
+ {
874
+ "kind": "Field",
875
+ "name": {
876
+ "kind": "Name",
877
+ "value": "force"
878
+ },
879
+ "arguments": [],
880
+ "directives": []
881
+ },
882
+ {
883
+ "kind": "Field",
884
+ "name": {
885
+ "kind": "Name",
886
+ "value": "verifiedRuns"
887
+ },
888
+ "arguments": [],
889
+ "directives": []
890
+ },
891
+ {
892
+ "kind": "Field",
893
+ "name": {
894
+ "kind": "Name",
895
+ "value": "violations"
896
+ },
897
+ "arguments": [],
898
+ "directives": [],
899
+ "selectionSet": {
900
+ "kind": "SelectionSet",
901
+ "selections": [
902
+ {
903
+ "kind": "Field",
904
+ "name": {
905
+ "kind": "Name",
906
+ "value": "runId"
907
+ },
908
+ "arguments": [],
909
+ "directives": []
910
+ },
911
+ {
912
+ "kind": "Field",
913
+ "name": {
914
+ "kind": "Name",
915
+ "value": "seq"
916
+ },
917
+ "arguments": [],
918
+ "directives": []
919
+ },
920
+ {
921
+ "kind": "Field",
922
+ "name": {
923
+ "kind": "Name",
924
+ "value": "message"
925
+ },
926
+ "arguments": [],
927
+ "directives": []
928
+ }
929
+ ]
930
+ }
931
+ }
932
+ ]
933
+ }
934
+ }]
935
+ };
936
+
937
+ // src/generated/documents/wspace/WorkflowRunMetadataDocument.ts
938
+ const WorkflowRunMetadataDocument = {
939
+ "kind": "Document",
940
+ "definitions": [{
941
+ "kind": "OperationDefinition",
942
+ "operation": "query",
943
+ "name": {
944
+ "kind": "Name",
945
+ "value": "WorkflowRunMetadata"
946
+ },
947
+ "variableDefinitions": [{
948
+ "kind": "VariableDefinition",
949
+ "variable": {
950
+ "kind": "Variable",
951
+ "name": {
952
+ "kind": "Name",
953
+ "value": "runId"
954
+ }
955
+ },
956
+ "type": {
957
+ "kind": "NonNullType",
958
+ "type": {
959
+ "kind": "NamedType",
960
+ "name": {
961
+ "kind": "Name",
962
+ "value": "ID"
963
+ }
964
+ }
965
+ },
966
+ "directives": []
967
+ }],
968
+ "directives": [],
969
+ "selectionSet": {
970
+ "kind": "SelectionSet",
971
+ "selections": [{
972
+ "kind": "Field",
973
+ "name": {
974
+ "kind": "Name",
975
+ "value": "workflowRunStackTrace"
976
+ },
977
+ "arguments": [
978
+ {
979
+ "kind": "Argument",
980
+ "name": {
981
+ "kind": "Name",
982
+ "value": "runId"
983
+ },
984
+ "value": {
985
+ "kind": "Variable",
986
+ "name": {
987
+ "kind": "Name",
988
+ "value": "runId"
989
+ }
990
+ }
991
+ },
992
+ {
993
+ "kind": "Argument",
994
+ "name": {
995
+ "kind": "Name",
996
+ "value": "enhanced"
997
+ },
998
+ "value": {
999
+ "kind": "BooleanValue",
1000
+ "value": false
1001
+ }
1002
+ },
1003
+ {
1004
+ "kind": "Argument",
1005
+ "name": {
1006
+ "kind": "Name",
1007
+ "value": "metadata"
1008
+ },
1009
+ "value": {
1010
+ "kind": "BooleanValue",
1011
+ "value": true
1012
+ }
1013
+ }
1014
+ ],
1015
+ "directives": [],
1016
+ "selectionSet": {
1017
+ "kind": "SelectionSet",
1018
+ "selections": [
1019
+ {
1020
+ "kind": "Field",
1021
+ "name": {
1022
+ "kind": "Name",
1023
+ "value": "trace"
1024
+ },
1025
+ "arguments": [],
1026
+ "directives": []
1027
+ },
1028
+ {
1029
+ "kind": "Field",
1030
+ "name": {
1031
+ "kind": "Name",
1032
+ "value": "enhanced"
1033
+ },
1034
+ "arguments": [],
1035
+ "directives": []
1036
+ },
1037
+ {
1038
+ "kind": "Field",
1039
+ "name": {
1040
+ "kind": "Name",
1041
+ "value": "metadata"
1042
+ },
1043
+ "arguments": [],
1044
+ "directives": [],
1045
+ "selectionSet": {
1046
+ "kind": "SelectionSet",
1047
+ "selections": [{
1048
+ "kind": "Field",
1049
+ "name": {
1050
+ "kind": "Name",
1051
+ "value": "definition"
1052
+ },
1053
+ "arguments": [],
1054
+ "directives": []
1055
+ }, {
1056
+ "kind": "Field",
1057
+ "name": {
1058
+ "kind": "Name",
1059
+ "value": "currentDetails"
1060
+ },
1061
+ "arguments": [],
1062
+ "directives": []
1063
+ }]
1064
+ }
1065
+ }
1066
+ ]
1067
+ }
1068
+ }]
1069
+ }
1070
+ }]
1071
+ };
1072
+
1073
+ // src/generated/documents/wspace/WorkflowRunPendingDocument.ts
1074
+ const WorkflowRunPendingDocument = {
1075
+ "kind": "Document",
1076
+ "definitions": [{
1077
+ "kind": "OperationDefinition",
1078
+ "operation": "query",
1079
+ "name": {
1080
+ "kind": "Name",
1081
+ "value": "WorkflowRunPending"
1082
+ },
1083
+ "variableDefinitions": [{
1084
+ "kind": "VariableDefinition",
1085
+ "variable": {
1086
+ "kind": "Variable",
1087
+ "name": {
1088
+ "kind": "Name",
1089
+ "value": "id"
1090
+ }
1091
+ },
1092
+ "type": {
1093
+ "kind": "NonNullType",
1094
+ "type": {
1095
+ "kind": "NamedType",
1096
+ "name": {
1097
+ "kind": "Name",
1098
+ "value": "ID"
1099
+ }
1100
+ }
1101
+ },
1102
+ "directives": []
1103
+ }],
1104
+ "directives": [],
1105
+ "selectionSet": {
1106
+ "kind": "SelectionSet",
1107
+ "selections": [{
1108
+ "kind": "Field",
1109
+ "name": {
1110
+ "kind": "Name",
1111
+ "value": "workflowRun"
1112
+ },
1113
+ "arguments": [{
1114
+ "kind": "Argument",
1115
+ "name": {
1116
+ "kind": "Name",
1117
+ "value": "id"
1118
+ },
1119
+ "value": {
1120
+ "kind": "Variable",
1121
+ "name": {
1122
+ "kind": "Name",
1123
+ "value": "id"
1124
+ }
1125
+ }
1126
+ }],
1127
+ "directives": [],
1128
+ "selectionSet": {
1129
+ "kind": "SelectionSet",
1130
+ "selections": [{
1131
+ "kind": "Field",
1132
+ "name": {
1133
+ "kind": "Name",
1134
+ "value": "id"
1135
+ },
1136
+ "arguments": [],
1137
+ "directives": []
1138
+ }, {
1139
+ "kind": "Field",
1140
+ "name": {
1141
+ "kind": "Name",
1142
+ "value": "pending"
1143
+ },
1144
+ "arguments": [],
1145
+ "directives": [],
1146
+ "selectionSet": {
1147
+ "kind": "SelectionSet",
1148
+ "selections": [
1149
+ {
1150
+ "kind": "Field",
1151
+ "name": {
1152
+ "kind": "Name",
1153
+ "value": "activities"
1154
+ },
1155
+ "arguments": [],
1156
+ "directives": [],
1157
+ "selectionSet": {
1158
+ "kind": "SelectionSet",
1159
+ "selections": [
1160
+ {
1161
+ "kind": "Field",
1162
+ "name": {
1163
+ "kind": "Name",
1164
+ "value": "activityId"
1165
+ },
1166
+ "arguments": [],
1167
+ "directives": []
1168
+ },
1169
+ {
1170
+ "kind": "Field",
1171
+ "name": {
1172
+ "kind": "Name",
1173
+ "value": "activityType"
1174
+ },
1175
+ "arguments": [],
1176
+ "directives": []
1177
+ },
1178
+ {
1179
+ "kind": "Field",
1180
+ "name": {
1181
+ "kind": "Name",
1182
+ "value": "state"
1183
+ },
1184
+ "arguments": [],
1185
+ "directives": []
1186
+ },
1187
+ {
1188
+ "kind": "Field",
1189
+ "name": {
1190
+ "kind": "Name",
1191
+ "value": "attempt"
1192
+ },
1193
+ "arguments": [],
1194
+ "directives": []
1195
+ },
1196
+ {
1197
+ "kind": "Field",
1198
+ "name": {
1199
+ "kind": "Name",
1200
+ "value": "maxAttempts"
1201
+ },
1202
+ "arguments": [],
1203
+ "directives": []
1204
+ },
1205
+ {
1206
+ "kind": "Field",
1207
+ "name": {
1208
+ "kind": "Name",
1209
+ "value": "scheduledAt"
1210
+ },
1211
+ "arguments": [],
1212
+ "directives": []
1213
+ },
1214
+ {
1215
+ "kind": "Field",
1216
+ "name": {
1217
+ "kind": "Name",
1218
+ "value": "lastStartedAt"
1219
+ },
1220
+ "arguments": [],
1221
+ "directives": []
1222
+ },
1223
+ {
1224
+ "kind": "Field",
1225
+ "name": {
1226
+ "kind": "Name",
1227
+ "value": "lastHeartbeatAt"
1228
+ },
1229
+ "arguments": [],
1230
+ "directives": []
1231
+ },
1232
+ {
1233
+ "kind": "Field",
1234
+ "name": {
1235
+ "kind": "Name",
1236
+ "value": "heartbeatDetails"
1237
+ },
1238
+ "arguments": [],
1239
+ "directives": []
1240
+ },
1241
+ {
1242
+ "kind": "Field",
1243
+ "name": {
1244
+ "kind": "Name",
1245
+ "value": "lastFailure"
1246
+ },
1247
+ "arguments": [],
1248
+ "directives": []
1249
+ },
1250
+ {
1251
+ "kind": "Field",
1252
+ "name": {
1253
+ "kind": "Name",
1254
+ "value": "nextAttemptAt"
1255
+ },
1256
+ "arguments": [],
1257
+ "directives": []
1258
+ },
1259
+ {
1260
+ "kind": "Field",
1261
+ "name": {
1262
+ "kind": "Name",
1263
+ "value": "summary"
1264
+ },
1265
+ "arguments": [],
1266
+ "directives": []
1267
+ }
1268
+ ]
1269
+ }
1270
+ },
1271
+ {
1272
+ "kind": "Field",
1273
+ "name": {
1274
+ "kind": "Name",
1275
+ "value": "children"
1276
+ },
1277
+ "arguments": [],
1278
+ "directives": [],
1279
+ "selectionSet": {
1280
+ "kind": "SelectionSet",
1281
+ "selections": [
1282
+ {
1283
+ "kind": "Field",
1284
+ "name": {
1285
+ "kind": "Name",
1286
+ "value": "runId"
1287
+ },
1288
+ "arguments": [],
1289
+ "directives": []
1290
+ },
1291
+ {
1292
+ "kind": "Field",
1293
+ "name": {
1294
+ "kind": "Name",
1295
+ "value": "workflowKey"
1296
+ },
1297
+ "arguments": [],
1298
+ "directives": []
1299
+ },
1300
+ {
1301
+ "kind": "Field",
1302
+ "name": {
1303
+ "kind": "Name",
1304
+ "value": "version"
1305
+ },
1306
+ "arguments": [],
1307
+ "directives": []
1308
+ },
1309
+ {
1310
+ "kind": "Field",
1311
+ "name": {
1312
+ "kind": "Name",
1313
+ "value": "status"
1314
+ },
1315
+ "arguments": [],
1316
+ "directives": []
1317
+ },
1318
+ {
1319
+ "kind": "Field",
1320
+ "name": {
1321
+ "kind": "Name",
1322
+ "value": "startedAt"
1323
+ },
1324
+ "arguments": [],
1325
+ "directives": []
1326
+ }
1327
+ ]
1328
+ }
1329
+ },
1330
+ {
1331
+ "kind": "Field",
1332
+ "name": {
1333
+ "kind": "Name",
1334
+ "value": "timers"
1335
+ },
1336
+ "arguments": [],
1337
+ "directives": [],
1338
+ "selectionSet": {
1339
+ "kind": "SelectionSet",
1340
+ "selections": [
1341
+ {
1342
+ "kind": "Field",
1343
+ "name": {
1344
+ "kind": "Name",
1345
+ "value": "timerId"
1346
+ },
1347
+ "arguments": [],
1348
+ "directives": []
1349
+ },
1350
+ {
1351
+ "kind": "Field",
1352
+ "name": {
1353
+ "kind": "Name",
1354
+ "value": "fireAt"
1355
+ },
1356
+ "arguments": [],
1357
+ "directives": []
1358
+ },
1359
+ {
1360
+ "kind": "Field",
1361
+ "name": {
1362
+ "kind": "Name",
1363
+ "value": "summary"
1364
+ },
1365
+ "arguments": [],
1366
+ "directives": []
1367
+ }
1368
+ ]
1369
+ }
1370
+ },
1371
+ {
1372
+ "kind": "Field",
1373
+ "name": {
1374
+ "kind": "Name",
1375
+ "value": "bufferedSignals"
1376
+ },
1377
+ "arguments": [],
1378
+ "directives": []
1379
+ },
1380
+ {
1381
+ "kind": "Field",
1382
+ "name": {
1383
+ "kind": "Name",
1384
+ "value": "workflowTask"
1385
+ },
1386
+ "arguments": [],
1387
+ "directives": [],
1388
+ "selectionSet": {
1389
+ "kind": "SelectionSet",
1390
+ "selections": [
1391
+ {
1392
+ "kind": "Field",
1393
+ "name": {
1394
+ "kind": "Name",
1395
+ "value": "state"
1396
+ },
1397
+ "arguments": [],
1398
+ "directives": []
1399
+ },
1400
+ {
1401
+ "kind": "Field",
1402
+ "name": {
1403
+ "kind": "Name",
1404
+ "value": "attempt"
1405
+ },
1406
+ "arguments": [],
1407
+ "directives": []
1408
+ },
1409
+ {
1410
+ "kind": "Field",
1411
+ "name": {
1412
+ "kind": "Name",
1413
+ "value": "startedAt"
1414
+ },
1415
+ "arguments": [],
1416
+ "directives": []
1417
+ },
1418
+ {
1419
+ "kind": "Field",
1420
+ "name": {
1421
+ "kind": "Name",
1422
+ "value": "failureCause"
1423
+ },
1424
+ "arguments": [],
1425
+ "directives": []
1426
+ }
1427
+ ]
1428
+ }
1429
+ }
1430
+ ]
1431
+ }
1432
+ }]
1433
+ }
1434
+ }]
1435
+ }
1436
+ }]
1437
+ };
1438
+
1439
+ // src/generated/documents/wspace/WorkflowRunsCountDocument.ts
1440
+ const WorkflowRunsCountDocument = {
1441
+ "kind": "Document",
1442
+ "definitions": [{
1443
+ "kind": "OperationDefinition",
1444
+ "operation": "query",
1445
+ "name": {
1446
+ "kind": "Name",
1447
+ "value": "WorkflowRunsCount"
1448
+ },
1449
+ "variableDefinitions": [{
1450
+ "kind": "VariableDefinition",
1451
+ "variable": {
1452
+ "kind": "Variable",
1453
+ "name": {
1454
+ "kind": "Name",
1455
+ "value": "filter"
1456
+ }
1457
+ },
1458
+ "type": {
1459
+ "kind": "NamedType",
1460
+ "name": {
1461
+ "kind": "Name",
1462
+ "value": "ListWorkflowRunsInput"
1463
+ }
1464
+ },
1465
+ "directives": []
1466
+ }, {
1467
+ "kind": "VariableDefinition",
1468
+ "variable": {
1469
+ "kind": "Variable",
1470
+ "name": {
1471
+ "kind": "Name",
1472
+ "value": "groupBy"
1473
+ }
1474
+ },
1475
+ "type": {
1476
+ "kind": "ListType",
1477
+ "type": {
1478
+ "kind": "NonNullType",
1479
+ "type": {
1480
+ "kind": "NamedType",
1481
+ "name": {
1482
+ "kind": "Name",
1483
+ "value": "RunGroupBy"
1484
+ }
1485
+ }
1486
+ }
1487
+ },
1488
+ "directives": []
1489
+ }],
1490
+ "directives": [],
1491
+ "selectionSet": {
1492
+ "kind": "SelectionSet",
1493
+ "selections": [{
1494
+ "kind": "Field",
1495
+ "name": {
1496
+ "kind": "Name",
1497
+ "value": "workflowRunsCount"
1498
+ },
1499
+ "arguments": [{
1500
+ "kind": "Argument",
1501
+ "name": {
1502
+ "kind": "Name",
1503
+ "value": "filter"
1504
+ },
1505
+ "value": {
1506
+ "kind": "Variable",
1507
+ "name": {
1508
+ "kind": "Name",
1509
+ "value": "filter"
1510
+ }
1511
+ }
1512
+ }, {
1513
+ "kind": "Argument",
1514
+ "name": {
1515
+ "kind": "Name",
1516
+ "value": "groupBy"
1517
+ },
1518
+ "value": {
1519
+ "kind": "Variable",
1520
+ "name": {
1521
+ "kind": "Name",
1522
+ "value": "groupBy"
1523
+ }
1524
+ }
1525
+ }],
1526
+ "directives": [],
1527
+ "selectionSet": {
1528
+ "kind": "SelectionSet",
1529
+ "selections": [
1530
+ {
1531
+ "kind": "Field",
1532
+ "name": {
1533
+ "kind": "Name",
1534
+ "value": "total"
1535
+ },
1536
+ "arguments": [],
1537
+ "directives": []
1538
+ },
1539
+ {
1540
+ "kind": "Field",
1541
+ "name": {
1542
+ "kind": "Name",
1543
+ "value": "groups"
1544
+ },
1545
+ "arguments": [],
1546
+ "directives": [],
1547
+ "selectionSet": {
1548
+ "kind": "SelectionSet",
1549
+ "selections": [
1550
+ {
1551
+ "kind": "Field",
1552
+ "name": {
1553
+ "kind": "Name",
1554
+ "value": "key"
1555
+ },
1556
+ "arguments": [],
1557
+ "directives": []
1558
+ },
1559
+ {
1560
+ "kind": "Field",
1561
+ "name": {
1562
+ "kind": "Name",
1563
+ "value": "values"
1564
+ },
1565
+ "arguments": [],
1566
+ "directives": []
1567
+ },
1568
+ {
1569
+ "kind": "Field",
1570
+ "name": {
1571
+ "kind": "Name",
1572
+ "value": "count"
1573
+ },
1574
+ "arguments": [],
1575
+ "directives": []
1576
+ }
1577
+ ]
1578
+ }
1579
+ },
1580
+ {
1581
+ "kind": "Field",
1582
+ "name": {
1583
+ "kind": "Name",
1584
+ "value": "groupsTruncated"
1585
+ },
1586
+ "arguments": [],
1587
+ "directives": []
1588
+ }
1589
+ ]
1590
+ }
1591
+ }]
1592
+ }
1593
+ }]
1594
+ };
1595
+
1596
+ // src/modules/executions/types/index.ts
1597
+ const RUN_STATUS_CONFIG = {
1598
+ PENDING: {
1599
+ label: "Pending",
1600
+ color: "text-text-secondary",
1601
+ bgColor: "bg-bg-sunken",
1602
+ borderColor: "border-border-default",
1603
+ icon: "mdi:clock-outline"
1604
+ },
1605
+ RUNNING: {
1606
+ label: "Running",
1607
+ color: "text-status-info-text",
1608
+ bgColor: "bg-status-info-bg-subtle",
1609
+ borderColor: "border-status-info-border",
1610
+ icon: "mdi:play-circle-outline"
1611
+ },
1612
+ COMPLETED: {
1613
+ label: "Completed",
1614
+ color: "text-status-success-text",
1615
+ bgColor: "bg-status-success-bg-subtle",
1616
+ borderColor: "border-status-success-border",
1617
+ icon: "mdi:check-circle-outline"
1618
+ },
1619
+ FAILED: {
1620
+ label: "Failed",
1621
+ color: "text-status-error-text",
1622
+ bgColor: "bg-status-error-bg-subtle",
1623
+ borderColor: "border-status-error-border",
1624
+ icon: "mdi:alert-circle-outline"
1625
+ },
1626
+ CANCELLED: {
1627
+ label: "Cancelled",
1628
+ color: "text-status-warning-text",
1629
+ bgColor: "bg-status-warning-bg-subtle",
1630
+ borderColor: "border-status-warning-border",
1631
+ icon: "mdi:cancel"
1632
+ },
1633
+ WAITING: {
1634
+ label: "Waiting",
1635
+ color: "text-chart-3",
1636
+ bgColor: "bg-chart-3/10",
1637
+ borderColor: "border-chart-3/30",
1638
+ icon: "mdi:timer-sand"
1639
+ },
1640
+ TERMINATED: {
1641
+ label: "Terminated",
1642
+ color: "text-text-secondary",
1643
+ bgColor: "bg-bg-sunken",
1644
+ borderColor: "border-border-strong",
1645
+ icon: "mdi:stop-circle-outline"
1646
+ }
1647
+ };
1648
+ const NODE_STATUS_CONFIG = {
1649
+ PENDING: {
1650
+ label: "Pending",
1651
+ color: "text-text-secondary",
1652
+ bgColor: "bg-bg-sunken",
1653
+ borderColor: "border-border-default",
1654
+ icon: "mdi:clock-outline"
1655
+ },
1656
+ RUNNING: {
1657
+ label: "Running",
1658
+ color: "text-status-info-text",
1659
+ bgColor: "bg-status-info-bg-subtle",
1660
+ borderColor: "border-status-info-border",
1661
+ icon: "mdi:play-circle-outline"
1662
+ },
1663
+ COMPLETED: {
1664
+ label: "Completed",
1665
+ color: "text-status-success-text",
1666
+ bgColor: "bg-status-success-bg-subtle",
1667
+ borderColor: "border-status-success-border",
1668
+ icon: "mdi:check-circle-outline"
1669
+ },
1670
+ FAILED: {
1671
+ label: "Failed",
1672
+ color: "text-status-error-text",
1673
+ bgColor: "bg-status-error-bg-subtle",
1674
+ borderColor: "border-status-error-border",
1675
+ icon: "mdi:alert-circle-outline"
1676
+ },
1677
+ SKIPPED: {
1678
+ label: "Skipped",
1679
+ color: "text-text-muted",
1680
+ bgColor: "bg-bg-sunken",
1681
+ borderColor: "border-border-default",
1682
+ icon: "mdi:skip-next"
1683
+ },
1684
+ DELAYED: {
1685
+ label: "Delayed",
1686
+ color: "text-status-warning-text",
1687
+ bgColor: "bg-status-warning-bg-subtle",
1688
+ borderColor: "border-status-warning-border",
1689
+ icon: "mdi:clock-alert-outline"
1690
+ },
1691
+ CANCELLED: {
1692
+ label: "Cancelled",
1693
+ color: "text-status-warning-text",
1694
+ bgColor: "bg-status-warning-bg-subtle",
1695
+ borderColor: "border-status-warning-border",
1696
+ icon: "mdi:cancel"
1697
+ },
1698
+ TIMEOUT: {
1699
+ label: "Timeout",
1700
+ color: "text-status-error-text",
1701
+ bgColor: "bg-status-error-bg-subtle",
1702
+ borderColor: "border-status-error-border",
1703
+ icon: "mdi:timer-off-outline"
1704
+ },
1705
+ WAITING: {
1706
+ label: "Waiting",
1707
+ color: "text-chart-3",
1708
+ bgColor: "bg-chart-3/10",
1709
+ borderColor: "border-chart-3/30",
1710
+ icon: "mdi:timer-sand"
1711
+ },
1712
+ WAITING_SUBWORKFLOW: {
1713
+ label: "Waiting",
1714
+ color: "text-chart-3",
1715
+ bgColor: "bg-chart-3/10",
1716
+ borderColor: "border-chart-3/30",
1717
+ icon: "mdi:subdirectory-arrow-right"
1718
+ }
1719
+ };
1720
+
1721
+ // src/modules/executions/utils/run-status-labels.ts
1722
+ function runStatusLabels(tr) {
1723
+ return {
1724
+ PENDING: tr("fluidgrids.executions.executionFilters.statusPending", "Pending"),
1725
+ RUNNING: tr("fluidgrids.executions.executionFilters.statusRunning", "Running"),
1726
+ COMPLETED: tr("fluidgrids.executions.executionFilters.statusCompleted", "Completed"),
1727
+ FAILED: tr("fluidgrids.executions.executionFilters.statusFailed", "Failed"),
1728
+ CANCELLED: tr("fluidgrids.executions.executionFilters.statusCancelled", "Cancelled"),
1729
+ WAITING: tr("fluidgrids.executions.executionFilters.statusWaiting", "Waiting"),
1730
+ TERMINATED: tr("fluidgrids.executions.executionFilters.statusTerminated", "Terminated")
1731
+ };
1732
+ }
1733
+
1734
+ // src/modules/executions/components/ExecutionStatusBadge.tsx
1735
+ function ExecutionStatusBadge({ status, size = "md", showIcon = true, showLabel = true, animated = true }) {
1736
+ const tr = useTr();
1737
+ const v2 = useNavigationV2();
1738
+ const config = RUN_STATUS_CONFIG[status] ?? RUN_STATUS_CONFIG.PENDING;
1739
+ const labels = runStatusLabels(tr);
1740
+ const sizeClasses = {
1741
+ sm: "px-1.5 py-0.5 text-xs gap-1",
1742
+ md: "px-2 py-1 text-sm gap-1.5",
1743
+ lg: "px-3 py-1.5 text-base gap-2"
1744
+ };
1745
+ const iconSizes = {
1746
+ sm: 12,
1747
+ md: 14,
1748
+ lg: 16
1749
+ };
1750
+ const isRunning = status === "RUNNING";
1751
+ return /* @__PURE__ */ jsxs("span", {
1752
+ title: v2 ? status : void 0,
1753
+ className: `
1754
+ inline-flex items-center rounded-full font-medium
1755
+ ${config.bgColor} ${config.color} border ${config.borderColor}
1756
+ ${sizeClasses[size]}
1757
+ ${animated && isRunning ? "animate-pulse" : ""}
1758
+ `,
1759
+ children: [showIcon && /* @__PURE__ */ jsx(Icon, {
1760
+ icon: config.icon,
1761
+ width: iconSizes[size],
1762
+ height: iconSizes[size],
1763
+ className: animated && isRunning ? "animate-spin" : ""
1764
+ }), showLabel && /* @__PURE__ */ jsx("span", { children: labels[status] ?? config.label })]
1765
+ });
1766
+ }
1767
+ function NodeStatusBadge({ status, size = "md", showIcon = true, showLabel = true, animated = true }) {
1768
+ const config = NODE_STATUS_CONFIG[status] ?? NODE_STATUS_CONFIG.PENDING;
1769
+ const sizeClasses = {
1770
+ sm: "px-1.5 py-0.5 text-xs gap-1",
1771
+ md: "px-2 py-1 text-sm gap-1.5",
1772
+ lg: "px-3 py-1.5 text-base gap-2"
1773
+ };
1774
+ const iconSizes = {
1775
+ sm: 12,
1776
+ md: 14,
1777
+ lg: 16
1778
+ };
1779
+ const isRunning = status === "RUNNING";
1780
+ return /* @__PURE__ */ jsxs("span", {
1781
+ className: `
1782
+ inline-flex items-center rounded-full font-medium
1783
+ ${config.bgColor} ${config.color} border ${config.borderColor}
1784
+ ${sizeClasses[size]}
1785
+ ${animated && isRunning ? "animate-pulse" : ""}
1786
+ `,
1787
+ children: [showIcon && /* @__PURE__ */ jsx(Icon, {
1788
+ icon: config.icon,
1789
+ width: iconSizes[size],
1790
+ height: iconSizes[size],
1791
+ className: animated && isRunning ? "animate-spin" : ""
1792
+ }), showLabel && /* @__PURE__ */ jsx("span", { children: config.label })]
1793
+ });
1794
+ }
1795
+
1796
+ // src/modules/executions/utils/error-advice.ts
1797
+ /** The error types the filter offers, in the order it lists them. */
1798
+ const ADVICE_ERROR_TYPES = [
1799
+ "AUTHORIZATION",
1800
+ "TIMEOUT",
1801
+ "TRANSIENT",
1802
+ "DEPENDENCY",
1803
+ "VALIDATION",
1804
+ "PERMANENT",
1805
+ "UNKNOWN"
1806
+ ];
1807
+ const ADVICE_TEXT = {
1808
+ AUTHORIZATION: {
1809
+ key: "fluidgrids.executions.errorAdvice.authorization",
1810
+ fallback: "A connected account was refused. Reconnect it, then run again."
1811
+ },
1812
+ TIMEOUT: {
1813
+ key: "fluidgrids.executions.errorAdvice.timeout",
1814
+ fallback: "A step took too long."
1815
+ },
1816
+ TRANSIENT: {
1817
+ key: "fluidgrids.executions.errorAdvice.transient",
1818
+ fallback: "A temporary problem. Running again usually fixes it."
1819
+ },
1820
+ DEPENDENCY: {
1821
+ key: "fluidgrids.executions.errorAdvice.dependency",
1822
+ fallback: "A service this workflow uses was unavailable."
1823
+ },
1824
+ VALIDATION: {
1825
+ key: "fluidgrids.executions.errorAdvice.validation",
1826
+ fallback: "Some data was missing or in the wrong format."
1827
+ },
1828
+ PERMANENT: {
1829
+ key: "fluidgrids.executions.errorAdvice.permanent",
1830
+ fallback: "This will keep failing until the workflow is changed."
1831
+ },
1832
+ UNKNOWN: {
1833
+ key: "fluidgrids.executions.errorAdvice.unknown",
1834
+ fallback: "Something went wrong."
1835
+ }
1836
+ };
1837
+ function isAdviceType(value) {
1838
+ return Object.hasOwn(ADVICE_TEXT, value);
1839
+ }
1840
+ /**
1841
+ * The advice for an error type. A type this build has no advice for (the API
1842
+ * grew one, or the run carries none) gets the generic "Something went wrong."
1843
+ */
1844
+ function errorAdvice(tr, errorType) {
1845
+ const type = errorType && isAdviceType(errorType) ? errorType : "UNKNOWN";
1846
+ const { key, fallback } = ADVICE_TEXT[type];
1847
+ return tr(key, fallback);
1848
+ }
1849
+ /** True for the one error type whose fix is to reconnect an account. */
1850
+ function needsReconnect(errorType) {
1851
+ return errorType === "AUTHORIZATION";
1852
+ }
1853
+
1854
+ // src/modules/executions/components/ConfirmRunDialog.tsx
1855
+ /**
1856
+ * Confirmation for stopping runs (BOFF-11846): names the run (or how many) and
1857
+ * says what happens. Navigation v2 only; replaces nothing when the switch is
1858
+ * off, where Cancel acts at once as it always has.
1859
+ */
1860
+ function ConfirmStopRunDialog({ open, workflowName, count = 1, busy, onConfirm, onOpenChange }) {
1861
+ const tr = useTr();
1862
+ return /* @__PURE__ */ jsx(AlertDialog, {
1863
+ open,
1864
+ onOpenChange,
1865
+ children: /* @__PURE__ */ jsxs(AlertDialogContent, {
1866
+ "data-testid": "confirm-stop-run",
1867
+ children: [/* @__PURE__ */ jsxs(AlertDialogHeader, { children: [/* @__PURE__ */ jsx(AlertDialogTitle, { children: workflowName ? tr("fluidgrids.executions.stopDialog.title", "Stop this run of {{workflow}}?", { workflow: workflowName }) : tr("fluidgrids.executions.stopDialog.titleMany", "Stop {{count}} runs?", { count }) }), /* @__PURE__ */ jsx(AlertDialogDescription, { children: tr("fluidgrids.executions.stopDialog.description", "It stops right away and can't be continued. You can run it again afterwards.") })] }), /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [/* @__PURE__ */ jsx(AlertDialogCancel, {
1868
+ disabled: busy,
1869
+ children: tr("fluidgrids.executions.stopDialog.keep", "Keep running")
1870
+ }), /* @__PURE__ */ jsx(AlertDialogAction, {
1871
+ onClick: onConfirm,
1872
+ disabled: busy,
1873
+ className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
1874
+ "data-testid": "confirm-stop-run-confirm",
1875
+ children: tr("fluidgrids.executions.stopDialog.confirm", "Stop run")
1876
+ })] })]
1877
+ })
1878
+ });
1879
+ }
1880
+
1881
+ // src/modules/executions/hooks/useDurableParity.ts
1882
+ /**
1883
+ * Durable-function parity reads and writes of the run page and the Runs list
1884
+ * (BOFF-9905, spec code-first 11): the run's workflow id, chain, metadata,
1885
+ * callback and versioning; what it is waiting on; the `__metadata` answer;
1886
+ * status counts; and the per-run versioning override.
1887
+ *
1888
+ * Like useDurableRun, every read is a plain network read and nothing is sent
1889
+ * while `enabled` is false, which the pages tie to useDurableParityEnabled().
1890
+ * A failed read keeps the last good answer, or none, so a gateway or service
1891
+ * without the parity release never breaks the page: the parity views simply
1892
+ * stay empty.
1893
+ */
1894
+ /** Re-read cadence of the pending state while the run is live. */
1895
+ const RUN_PENDING_POLL_INTERVAL_MS = 5e3;
1896
+ async function fetchDurableParityRunFields(runId) {
1897
+ const result = await getFluidGridsClient().query({
1898
+ query: DurableParityRunFieldsDocument,
1899
+ variables: { id: runId },
1900
+ fetchPolicy: "network-only"
1901
+ });
1902
+ throwIfResultError(result);
1903
+ return result.data?.workflowRun ?? null;
1904
+ }
1905
+ async function fetchRunPending(runId) {
1906
+ const result = await getFluidGridsClient().query({
1907
+ query: WorkflowRunPendingDocument,
1908
+ variables: { id: runId },
1909
+ fetchPolicy: "network-only"
1910
+ });
1911
+ throwIfResultError(result);
1912
+ return result.data?.workflowRun?.pending ?? null;
1913
+ }
1914
+ async function fetchRunMetadata(runId) {
1915
+ const result = await getFluidGridsClient().query({
1916
+ query: WorkflowRunMetadataDocument,
1917
+ variables: { runId },
1918
+ fetchPolicy: "network-only"
1919
+ });
1920
+ throwIfResultError(result);
1921
+ return result.data?.workflowRunStackTrace ?? null;
1922
+ }
1923
+ async function fetchRunStatusCounts(input) {
1924
+ const filter = statusCountFilter(input);
1925
+ const result = await getFluidGridsClient().query({
1926
+ query: WorkflowRunsCountDocument,
1927
+ variables: {
1928
+ filter,
1929
+ groupBy: [...STATUS_COUNT_GROUP_BY]
1930
+ },
1931
+ fetchPolicy: "network-only"
1932
+ });
1933
+ throwIfResultError(result);
1934
+ const count = result.data?.workflowRunsCount;
1935
+ if (!count) throw new Error("The run count returned no result");
1936
+ return {
1937
+ total: count.total,
1938
+ counts: statusCountsOf(count.groups)
1939
+ };
1940
+ }
1941
+ async function setRunVersioningOverride(input) {
1942
+ const reason = input.reason?.trim();
1943
+ const result = await getFluidGridsClient().mutate({
1944
+ mutation: SetWorkflowRunVersioningOverrideDocument,
1945
+ variables: {
1946
+ runId: input.runId,
1947
+ override: input.override,
1948
+ reason: reason || null
1949
+ }
1950
+ });
1951
+ throwIfResultError(result);
1952
+ const data = result.data?.setWorkflowRunVersioningOverride;
1953
+ if (!data) throw new Error("The override returned no result");
1954
+ return data.versioning ?? null;
1955
+ }
1956
+ /**
1957
+ * A read keyed by run id that keeps the last good answer, ignores answers to
1958
+ * superseded requests, and re-reads every `intervalMs` while `live`.
1959
+ */
1960
+ function useRunRead(runId, enabled, load, { live = false, intervalMs = 0 }) {
1961
+ const [data, setData] = useState(null);
1962
+ const [loading, setLoading] = useState(false);
1963
+ const [error, setError] = useState(null);
1964
+ const request = useRef(0);
1965
+ const refetch = useCallback(async () => {
1966
+ if (!runId || !enabled) return;
1967
+ const id = ++request.current;
1968
+ setLoading(true);
1969
+ try {
1970
+ const next = await load(runId);
1971
+ if (id !== request.current) return;
1972
+ setData(next);
1973
+ setError(null);
1974
+ } catch (err) {
1975
+ if (id !== request.current) return;
1976
+ setError(describeOperationError(err));
1977
+ } finally {
1978
+ if (id === request.current) setLoading(false);
1979
+ }
1980
+ }, [
1981
+ runId,
1982
+ enabled,
1983
+ load
1984
+ ]);
1985
+ useEffect(() => {
1986
+ request.current += 1;
1987
+ setData(null);
1988
+ setError(null);
1989
+ setLoading(false);
1990
+ refetch();
1991
+ }, [refetch]);
1992
+ useEffect(() => {
1993
+ if (!live || !enabled || !runId || intervalMs <= 0) return;
1994
+ const timer = setInterval(() => {
1995
+ refetch();
1996
+ }, intervalMs);
1997
+ return () => clearInterval(timer);
1998
+ }, [
1999
+ live,
2000
+ enabled,
2001
+ runId,
2002
+ intervalMs,
2003
+ refetch
2004
+ ]);
2005
+ return {
2006
+ data: enabled ? data : null,
2007
+ loading,
2008
+ error,
2009
+ refetch
2010
+ };
2011
+ }
2012
+ /** The parity fields of a run; nothing is read while `enabled` is false. */
2013
+ function useDurableParityRunFields(runId, enabled) {
2014
+ const { data, error, refetch } = useRunRead(runId, enabled, fetchDurableParityRunFields, {});
2015
+ return {
2016
+ fields: data,
2017
+ error,
2018
+ refetch
2019
+ };
2020
+ }
2021
+ /** What an open run is waiting on, re-read every 5 s while `live`. */
2022
+ function useRunPending(runId, { enabled, live }) {
2023
+ const { data, loading, error, refetch } = useRunRead(runId, enabled, fetchRunPending, {
2024
+ live,
2025
+ intervalMs: RUN_PENDING_POLL_INTERVAL_MS
2026
+ });
2027
+ return {
2028
+ pending: data,
2029
+ loading,
2030
+ error,
2031
+ refetch
2032
+ };
2033
+ }
2034
+ /**
2035
+ * `__stack_trace` with `__metadata` of an open durable run: one replay in the
2036
+ * service, so it is read once when shown and on request, never polled.
2037
+ */
2038
+ function useRunMetadata(runId, enabled) {
2039
+ const { data, loading, error, refetch } = useRunRead(runId, enabled, fetchRunMetadata, {});
2040
+ return {
2041
+ answer: data,
2042
+ loading,
2043
+ error,
2044
+ refetch
2045
+ };
2046
+ }
2047
+ /**
2048
+ * Per-status counts of the Runs list's current filter. The filter is the
2049
+ * list's own request (so the counts match it), and nothing is sent while
2050
+ * `enabled` is false.
2051
+ */
2052
+ function useRunStatusCounts(input, enabled) {
2053
+ const [state, setState] = useState({
2054
+ total: null,
2055
+ counts: []
2056
+ });
2057
+ const [error, setError] = useState(null);
2058
+ const request = useRef(0);
2059
+ const filterKey = JSON.stringify(statusCountFilter(input));
2060
+ const refetch = useCallback(async () => {
2061
+ if (!enabled) return;
2062
+ const id = ++request.current;
2063
+ try {
2064
+ const next = await fetchRunStatusCounts(JSON.parse(filterKey));
2065
+ if (id !== request.current) return;
2066
+ setState(next);
2067
+ setError(null);
2068
+ } catch (err) {
2069
+ if (id !== request.current) return;
2070
+ setError(describeOperationError(err));
2071
+ }
2072
+ }, [enabled, filterKey]);
2073
+ useEffect(() => {
2074
+ refetch();
2075
+ }, [refetch]);
2076
+ return enabled ? {
2077
+ ...state,
2078
+ error,
2079
+ refetch
2080
+ } : {
2081
+ total: null,
2082
+ counts: [],
2083
+ error: null,
2084
+ refetch
2085
+ };
2086
+ }
2087
+
2088
+ export { DurableParityRunFieldsDocument as _, useRunStatusCounts as a, errorAdvice as c, NodeStatusBadge as d, runStatusLabels as f, WorkflowRunMetadataDocument as g, WorkflowRunPendingDocument as h, useRunPending as i, needsReconnect as l, WorkflowRunsCountDocument as m, useDurableParityRunFields as n, ConfirmStopRunDialog as o, RUN_STATUS_CONFIG as p, useRunMetadata as r, ADVICE_ERROR_TYPES as s, setRunVersioningOverride as t, ExecutionStatusBadge as u, SetWorkflowRunVersioningOverrideDocument as v };