@processfocus/runtime-local 0.1.0-next.0 → 0.1.0-next.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.
- package/README.md +3 -3
- package/dist/authentication-server.mjs +2 -2
- package/dist/{chunk-vpsm84e8.js → chunk-6b6t8tyq.js} +1 -1
- package/dist/{chunk-mvkr77wp.js → chunk-cq9xscgb.js} +69 -36
- package/dist/{chunk-9weqs8n8.js → chunk-fn7b5pxw.js} +1110 -1067
- package/dist/dashboard-source/apps/frontend/app/(protected)/act-on-behalf/delegations-client.tsx +5 -1
- package/dist/dashboard-source/apps/frontend/app/(protected)/executions/page.tsx +52 -10
- package/dist/dashboard-source/apps/frontend/app/api/auth/callback/route.ts +16 -0
- package/dist/dashboard-source/apps/frontend/app/api/auth/delegation/route.ts +9 -0
- package/dist/dashboard-source/apps/frontend/app/login/login-form-content.tsx +5 -0
- package/dist/dashboard-source/apps/frontend/app/login/secret-login-form.tsx +20 -5
- package/dist/dashboard-source/apps/frontend/lib/auth/session-admission-message.ts +2 -0
- package/dist/dashboard-source/apps/frontend/lib/auth/session-admission.ts +29 -0
- package/dist/dashboard-source/apps/frontend/lib/auth/verify-passkey.ts +8 -0
- package/dist/dashboard-source/apps/frontend/lib/collections/execution.ts +7 -1
- package/dist/dashboard-source/apps/frontend/lib/generated/gql/gql.ts +6 -6
- package/dist/dashboard-source/apps/frontend/lib/generated/gql/graphql.ts +4 -4
- package/dist/dashboard-source/apps/frontend/package.json +2 -2
- package/dist/dashboard-source/modules/aws-common/src/index.ts +1 -0
- package/dist/dashboard-source/modules/aws-common/src/lib/project-balance-admission.ts +68 -0
- package/dist/dashboard-source/modules/form/src/lib/walker.tsx +2 -7
- package/dist/dashboard-source/modules/frontend-plugin-host/src/lib/frontend-plugin-host.ts +6 -0
- package/dist/dashboard-source/modules/rxdb-collections/generated/execution-schema.json +16 -2
- package/dist/dashboard-source/modules/rxdb-collections/src/lib/rxdb-collections.ts +10 -1
- package/dist/dashboard-source.json +2 -2
- package/dist/graphql-server.mjs +3 -3
- package/dist/job-worker.mjs +2 -2
- package/dist/prepare-dashboard.mjs +2 -2
- package/dist/resources/graphql-schema/rxdb.graphql +5 -0
- package/package.json +3 -3
package/dist/dashboard-source/apps/frontend/app/(protected)/act-on-behalf/delegations-client.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState, useTransition } from "react"
|
|
|
4
4
|
import { Button } from "../../../../../modules/shadcn-components/src/index.ts"
|
|
5
5
|
import { createDelegation, listDelegations, updateDelegation } from "./actions.ts"
|
|
6
6
|
import type { DelegationList, DelegationMetadata } from "@/lib/auth/delegations"
|
|
7
|
+
import { environmentUnavailableMessage } from "@/lib/auth/session-admission-message"
|
|
7
8
|
import { authenticateWithPasskey } from "@/lib/auth/verify-passkey"
|
|
8
9
|
|
|
9
10
|
function TokenTime({ value }: { value: string }) {
|
|
@@ -160,7 +161,10 @@ export function DelegationsClient({
|
|
|
160
161
|
controller.signal.aborted ||
|
|
161
162
|
(error instanceof Error && error.name === "NotAllowedError")
|
|
162
163
|
? "Verification was cancelled. Your input is saved here; no token was changed."
|
|
163
|
-
:
|
|
164
|
+
: error instanceof Error &&
|
|
165
|
+
error.message === environmentUnavailableMessage
|
|
166
|
+
? environmentUnavailableMessage
|
|
167
|
+
: "Verification failed. Use the same account's passkey and try again. Your input is saved here; no token was changed.",
|
|
164
168
|
}
|
|
165
169
|
} finally {
|
|
166
170
|
verification.current = null
|
|
@@ -20,12 +20,24 @@ import {
|
|
|
20
20
|
import { type Execution, executions as mockExecutions } from "@/lib/mock-data"
|
|
21
21
|
import { cn } from "@/lib/utils"
|
|
22
22
|
|
|
23
|
-
type ExecutionStatus =
|
|
24
|
-
|
|
23
|
+
type ExecutionStatus =
|
|
24
|
+
| "Running"
|
|
25
|
+
| "Completed"
|
|
26
|
+
| "Failed"
|
|
27
|
+
| "Abandoned"
|
|
28
|
+
| "Not started"
|
|
29
|
+
type ExecutionTabKey =
|
|
30
|
+
| "in-progress"
|
|
31
|
+
| "completed"
|
|
32
|
+
| "failed"
|
|
33
|
+
| "not-started"
|
|
34
|
+
| "all"
|
|
25
35
|
type MockExecutionView = "timeline" | "kanban"
|
|
26
36
|
type MockExecutionTabKey = "in-progress" | "completed" | "failed" | "all"
|
|
27
37
|
|
|
28
38
|
const executionStatusTheme: Record<ExecutionStatus, string> = {
|
|
39
|
+
"Not started":
|
|
40
|
+
"bg-amber-100 text-amber-800 border border-amber-200 dark:bg-amber-500/10 dark:text-amber-300 dark:border-amber-500/30",
|
|
29
41
|
Running:
|
|
30
42
|
"bg-sky-100 text-sky-700 border border-sky-200 dark:bg-sky-500/10 dark:text-sky-300 dark:border-sky-500/30",
|
|
31
43
|
Completed:
|
|
@@ -58,6 +70,7 @@ const mockExecutionTabFilters: Record<
|
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
const executionTabKeys = [
|
|
73
|
+
"not-started",
|
|
61
74
|
"in-progress",
|
|
62
75
|
"completed",
|
|
63
76
|
"failed",
|
|
@@ -162,6 +175,7 @@ function ExecutionsPageInner({
|
|
|
162
175
|
canRestartExecution: execution.canRestartExecution ?? false,
|
|
163
176
|
status: execution.status,
|
|
164
177
|
failureReason: execution.failureReason,
|
|
178
|
+
notStartedReason: execution.notStartedReason,
|
|
165
179
|
abandonedReason: execution.abandonedReason,
|
|
166
180
|
startedAt: execution.startedAt,
|
|
167
181
|
finishedAt: execution.finishedAt,
|
|
@@ -195,6 +209,8 @@ function ExecutionsPageInner({
|
|
|
195
209
|
// Filter based on tab
|
|
196
210
|
const filtered = (() => {
|
|
197
211
|
switch (tab) {
|
|
212
|
+
case "not-started":
|
|
213
|
+
return executions.filter((e) => e.status === "Not started")
|
|
198
214
|
case "in-progress":
|
|
199
215
|
return executions.filter((e) => e.status === "Running")
|
|
200
216
|
case "completed":
|
|
@@ -306,6 +322,14 @@ function ExecutionsPageInner({
|
|
|
306
322
|
active={tab === "all"}
|
|
307
323
|
onClick={() => handleSelectTab("all")}
|
|
308
324
|
/>
|
|
325
|
+
<TabPill
|
|
326
|
+
label="Not started"
|
|
327
|
+
count={
|
|
328
|
+
executions.filter((e) => e.status === "Not started").length
|
|
329
|
+
}
|
|
330
|
+
active={tab === "not-started"}
|
|
331
|
+
onClick={() => handleSelectTab("not-started")}
|
|
332
|
+
/>
|
|
309
333
|
</div>
|
|
310
334
|
</div>
|
|
311
335
|
)}
|
|
@@ -467,7 +491,9 @@ interface ExecutionStep {
|
|
|
467
491
|
| "Potential"
|
|
468
492
|
| "Failed"
|
|
469
493
|
| "Correction Required"
|
|
494
|
+
| "Not started"
|
|
470
495
|
readonly failureReason?: string | undefined
|
|
496
|
+
readonly notStartedReason?: string | undefined
|
|
471
497
|
readonly role?:
|
|
472
498
|
| {
|
|
473
499
|
readonly id: string
|
|
@@ -499,8 +525,9 @@ interface ExecutionData {
|
|
|
499
525
|
processPath: string
|
|
500
526
|
canAbandonExecution: boolean
|
|
501
527
|
canRestartExecution: boolean
|
|
502
|
-
status:
|
|
528
|
+
status: ExecutionStatus
|
|
503
529
|
failureReason?: string | undefined
|
|
530
|
+
notStartedReason?: string | undefined
|
|
504
531
|
abandonedReason?: string | undefined
|
|
505
532
|
startedAt: string // ISO date string
|
|
506
533
|
finishedAt: string | undefined // ISO date string
|
|
@@ -603,6 +630,12 @@ function LiveExecutionDetail({ execution }: { execution: ExecutionData }) {
|
|
|
603
630
|
</div>
|
|
604
631
|
|
|
605
632
|
{/* Progress */}
|
|
633
|
+
{execution.status === "Not started" && (
|
|
634
|
+
<div className="rounded-2xl border border-amber-200 bg-amber-50 p-4 text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/20 dark:text-amber-200">
|
|
635
|
+
<h4 className="text-sm font-semibold">Not started</h4>
|
|
636
|
+
<p className="mt-2 text-sm">{execution.notStartedReason}</p>
|
|
637
|
+
</div>
|
|
638
|
+
)}
|
|
606
639
|
{execution.status === "Failed" &&
|
|
607
640
|
(execution.failureReason || failedStep) && (
|
|
608
641
|
<div className="rounded-2xl border border-rose-200 bg-rose-50 p-4 text-rose-800 dark:border-rose-900/40 dark:bg-rose-950/20 dark:text-rose-200">
|
|
@@ -750,6 +783,11 @@ function LiveExecutionDetail({ execution }: { execution: ExecutionData }) {
|
|
|
750
783
|
{step.failureReason}
|
|
751
784
|
</p>
|
|
752
785
|
)}
|
|
786
|
+
{step.status === "Not started" && (
|
|
787
|
+
<p className="mt-1 text-xs text-amber-700 dark:text-amber-300">
|
|
788
|
+
Not started: {step.notStartedReason}
|
|
789
|
+
</p>
|
|
790
|
+
)}
|
|
753
791
|
{step.status === "Correction Required" &&
|
|
754
792
|
step.failureReason && (
|
|
755
793
|
<p className="mt-1 text-xs text-amber-700 dark:text-amber-300">
|
|
@@ -757,14 +795,16 @@ function LiveExecutionDetail({ execution }: { execution: ExecutionData }) {
|
|
|
757
795
|
</p>
|
|
758
796
|
)}
|
|
759
797
|
<div className="mt-1 flex flex-wrap items-center gap-3 text-xs text-slate-500 dark:text-slate-400">
|
|
760
|
-
{step.startedAt && (
|
|
798
|
+
{step.startedAt && step.status !== "Not started" && (
|
|
761
799
|
<span>Started {formatRelativeTime(step.startedAt)}</span>
|
|
762
800
|
)}
|
|
763
801
|
{step.completedAt && (
|
|
764
802
|
<span>
|
|
765
|
-
{step.status === "
|
|
766
|
-
? `
|
|
767
|
-
:
|
|
803
|
+
{step.status === "Not started"
|
|
804
|
+
? `Not started ${formatRelativeTime(step.completedAt)}`
|
|
805
|
+
: step.status === "Failed"
|
|
806
|
+
? `Failed ${formatRelativeTime(step.completedAt)}`
|
|
807
|
+
: `Completed ${formatRelativeTime(step.completedAt)}`}
|
|
768
808
|
</span>
|
|
769
809
|
)}
|
|
770
810
|
</div>
|
|
@@ -827,9 +867,11 @@ function LiveExecutionDetail({ execution }: { execution: ExecutionData }) {
|
|
|
827
867
|
<dt className="text-xs tracking-wide text-slate-400 uppercase dark:text-slate-500">
|
|
828
868
|
{execution.status === "Abandoned"
|
|
829
869
|
? "Abandoned"
|
|
830
|
-
: execution.
|
|
831
|
-
? "
|
|
832
|
-
:
|
|
870
|
+
: execution.status === "Not started"
|
|
871
|
+
? "Not started"
|
|
872
|
+
: execution.finishedAt
|
|
873
|
+
? "Completed"
|
|
874
|
+
: "Estimated completion"}
|
|
833
875
|
</dt>
|
|
834
876
|
<dd>
|
|
835
877
|
{execution.finishedAt
|
|
@@ -16,6 +16,8 @@ import { getAuthClient } from "@/lib/auth/client"
|
|
|
16
16
|
import { readReauthenticationState } from "@/lib/auth/reauthentication-state"
|
|
17
17
|
import { validateRedirect } from "@/lib/auth/redirect"
|
|
18
18
|
import { getCookieNamesFromHost, setSessionCookies } from "@/lib/auth/session"
|
|
19
|
+
import { admitsNewSession } from "@/lib/auth/session-admission"
|
|
20
|
+
import { environmentUnavailableMessage } from "@/lib/auth/session-admission-message"
|
|
19
21
|
import { runEffect } from "@/lib/effect/run-effect"
|
|
20
22
|
import { CedarAuthorizationLayer } from "@/lib/effect/services"
|
|
21
23
|
|
|
@@ -215,6 +217,20 @@ export const GET = async (request: NextRequest) => {
|
|
|
215
217
|
)
|
|
216
218
|
}
|
|
217
219
|
|
|
220
|
+
if (!(await admitsNewSession())) {
|
|
221
|
+
if (request.headers.get("accept") === "application/json")
|
|
222
|
+
return NextResponse.json(
|
|
223
|
+
{
|
|
224
|
+
error: "environment_unavailable",
|
|
225
|
+
message: environmentUnavailableMessage,
|
|
226
|
+
},
|
|
227
|
+
{ status: 503, headers: { "cache-control": "no-store" } },
|
|
228
|
+
)
|
|
229
|
+
return NextResponse.redirect(
|
|
230
|
+
new URL("/login?error=environment_unavailable", request.url),
|
|
231
|
+
)
|
|
232
|
+
}
|
|
233
|
+
|
|
218
234
|
await setSessionCookies(exchanged.tokens)
|
|
219
235
|
|
|
220
236
|
// Get redirect URL from query params (passed through OAuth flow)
|
|
@@ -4,6 +4,7 @@ import { getAuthClient } from "@/lib/auth/client"
|
|
|
4
4
|
import { getFrontendAuthClientConfig } from "@/lib/auth/issuer"
|
|
5
5
|
import { decodeJwtPayload } from "@/lib/auth/jwt"
|
|
6
6
|
import { setSessionCookies } from "@/lib/auth/session"
|
|
7
|
+
import { admitsNewSession } from "@/lib/auth/session-admission"
|
|
7
8
|
|
|
8
9
|
const Tokens = Schema.Struct({
|
|
9
10
|
access_token: Schema.NonEmptyString,
|
|
@@ -113,6 +114,14 @@ export async function POST(request: Request): Promise<Response> {
|
|
|
113
114
|
(session.delegation.expiresAt - Date.now()) / 1000,
|
|
114
115
|
)
|
|
115
116
|
if (remaining <= 0) return respond(false, 401)
|
|
117
|
+
if (!(await admitsNewSession()))
|
|
118
|
+
return Response.json(
|
|
119
|
+
{ success: false, error: "environment_unavailable" },
|
|
120
|
+
{
|
|
121
|
+
status: 503,
|
|
122
|
+
headers: { "Cache-Control": "no-store", Pragma: "no-cache" },
|
|
123
|
+
},
|
|
124
|
+
)
|
|
116
125
|
await setSessionCookies({
|
|
117
126
|
access: tokens.access_token,
|
|
118
127
|
refresh: tokens.refresh_token,
|
|
@@ -2,8 +2,13 @@ import { LoginButton } from "./login-button.tsx"
|
|
|
2
2
|
import { PasskeyButton } from "./passkey-button.tsx"
|
|
3
3
|
import { SecretLoginForm } from "./secret-login-form.tsx"
|
|
4
4
|
import { getDummyBypassUserMissingMessage } from "@/lib/auth/callback-error"
|
|
5
|
+
import { environmentUnavailableMessage } from "@/lib/auth/session-admission-message"
|
|
5
6
|
|
|
6
7
|
const errorMessages: Record<string, { title: string; message: string }> = {
|
|
8
|
+
environment_unavailable: {
|
|
9
|
+
title: "Environment unavailable",
|
|
10
|
+
message: environmentUnavailableMessage,
|
|
11
|
+
},
|
|
7
12
|
not_authorized: {
|
|
8
13
|
title: "Access Denied",
|
|
9
14
|
message:
|
|
@@ -4,6 +4,7 @@ import { useState } from "react"
|
|
|
4
4
|
import { Button } from "../../../../modules/shadcn-components/src/index.ts"
|
|
5
5
|
import { Input } from "@/components/ui/input"
|
|
6
6
|
import { getValidRedirect } from "@/lib/auth/redirect"
|
|
7
|
+
import { environmentUnavailableMessage } from "@/lib/auth/session-admission-message"
|
|
7
8
|
|
|
8
9
|
export function SecretLoginForm({
|
|
9
10
|
enabled = false,
|
|
@@ -13,7 +14,7 @@ export function SecretLoginForm({
|
|
|
13
14
|
redirect?: string | undefined
|
|
14
15
|
}) {
|
|
15
16
|
const [pending, setPending] = useState(false)
|
|
16
|
-
const [failed, setFailed] = useState(
|
|
17
|
+
const [failed, setFailed] = useState<string | null>(null)
|
|
17
18
|
if (!enabled) return null
|
|
18
19
|
return (
|
|
19
20
|
<details className="rounded-lg border p-4">
|
|
@@ -32,7 +33,7 @@ export function SecretLoginForm({
|
|
|
32
33
|
const secret = new FormData(form).get("secret")
|
|
33
34
|
form.reset()
|
|
34
35
|
setPending(true)
|
|
35
|
-
setFailed(
|
|
36
|
+
setFailed(null)
|
|
36
37
|
try {
|
|
37
38
|
const response = await fetch("/api/auth/delegation", {
|
|
38
39
|
method: "POST",
|
|
@@ -41,6 +42,19 @@ export function SecretLoginForm({
|
|
|
41
42
|
credentials: "same-origin",
|
|
42
43
|
cache: "no-store",
|
|
43
44
|
})
|
|
45
|
+
if (response.status === 503) {
|
|
46
|
+
const result: unknown = await response.json()
|
|
47
|
+
if (
|
|
48
|
+
typeof result === "object" &&
|
|
49
|
+
result !== null &&
|
|
50
|
+
"error" in result &&
|
|
51
|
+
result.error === "environment_unavailable"
|
|
52
|
+
) {
|
|
53
|
+
setFailed(environmentUnavailableMessage)
|
|
54
|
+
setPending(false)
|
|
55
|
+
return
|
|
56
|
+
}
|
|
57
|
+
}
|
|
44
58
|
if (response.ok) {
|
|
45
59
|
const destination = new URL(
|
|
46
60
|
getValidRedirect(redirect),
|
|
@@ -56,7 +70,9 @@ export function SecretLoginForm({
|
|
|
56
70
|
} catch {
|
|
57
71
|
// Errors may contain request details. Show only fixed safe copy.
|
|
58
72
|
}
|
|
59
|
-
setFailed(
|
|
73
|
+
setFailed(
|
|
74
|
+
"Unable to log in with this secret. It may be invalid or delegated access may be unavailable.",
|
|
75
|
+
)
|
|
60
76
|
setPending(false)
|
|
61
77
|
}}
|
|
62
78
|
>
|
|
@@ -78,8 +94,7 @@ export function SecretLoginForm({
|
|
|
78
94
|
/>
|
|
79
95
|
{failed && (
|
|
80
96
|
<p role="alert" className="text-sm text-destructive">
|
|
81
|
-
|
|
82
|
-
access may be unavailable.
|
|
97
|
+
{failed}
|
|
83
98
|
</p>
|
|
84
99
|
)}
|
|
85
100
|
<Button type="submit" disabled={pending}>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FetchHttpClient } from "@effect/platform"
|
|
2
|
+
import { Config, Effect, Option } from "effect"
|
|
3
|
+
import { makeProjectBalanceAdmission } from "../../../../modules/aws-common/src/index.ts"
|
|
4
|
+
|
|
5
|
+
/** Only hosted customer deployments supply this configuration. Never cache admission. */
|
|
6
|
+
export const admitsNewSession = (): Promise<boolean> =>
|
|
7
|
+
Effect.runPromise(
|
|
8
|
+
Effect.gen(function* () {
|
|
9
|
+
const origin = yield* Config.option(
|
|
10
|
+
Config.string("PF_PROJECT_BALANCE_BACKEND_ORIGIN"),
|
|
11
|
+
)
|
|
12
|
+
if (Option.isNone(origin)) return true
|
|
13
|
+
const projectId = yield* Config.string("PF_PROJECT_BALANCE_PROJECT_ID")
|
|
14
|
+
const credential = yield* Config.redacted("PF_PROJECT_BALANCE_CREDENTIAL")
|
|
15
|
+
const admission = yield* makeProjectBalanceAdmission({
|
|
16
|
+
backendOrigin: origin.value,
|
|
17
|
+
projectId,
|
|
18
|
+
credential,
|
|
19
|
+
})
|
|
20
|
+
return yield* admission.admits
|
|
21
|
+
}).pipe(
|
|
22
|
+
Effect.catchAll(() =>
|
|
23
|
+
Effect.logWarning(
|
|
24
|
+
"Project Balance could not be read; admitting login",
|
|
25
|
+
).pipe(Effect.as(true)),
|
|
26
|
+
),
|
|
27
|
+
Effect.provide(FetchHttpClient.layer),
|
|
28
|
+
),
|
|
29
|
+
)
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
WebAuthnAbortService,
|
|
3
3
|
startAuthentication,
|
|
4
4
|
} from "@simplewebauthn/browser"
|
|
5
|
+
import { environmentUnavailableMessage } from "./session-admission-message.ts"
|
|
5
6
|
|
|
6
7
|
/** Run the existing OAuth/WebAuthn ceremony. Only the callback sets session cookies. */
|
|
7
8
|
export async function authenticateWithPasskey({
|
|
@@ -82,6 +83,13 @@ export async function authenticateWithPasskey({
|
|
|
82
83
|
cache: "no-store",
|
|
83
84
|
})
|
|
84
85
|
const result: unknown = await completed.json()
|
|
86
|
+
if (
|
|
87
|
+
typeof result === "object" &&
|
|
88
|
+
result !== null &&
|
|
89
|
+
"error" in result &&
|
|
90
|
+
result.error === "environment_unavailable"
|
|
91
|
+
)
|
|
92
|
+
throw new Error(environmentUnavailableMessage)
|
|
85
93
|
if (
|
|
86
94
|
!completed.ok ||
|
|
87
95
|
typeof result !== "object" ||
|
|
@@ -25,7 +25,7 @@ export type ExecutionDocType = ES.Schema.Encoded<typeof ExecutionSchema>
|
|
|
25
25
|
// Use pre-generated RxDB-compatible JSON Schema (generated by cli/generate-rxdb)
|
|
26
26
|
export const executionSchema: RxJsonSchema<ExecutionDocType> = {
|
|
27
27
|
title: "Executions",
|
|
28
|
-
version:
|
|
28
|
+
version: 14,
|
|
29
29
|
primaryKey: "id",
|
|
30
30
|
type: "object",
|
|
31
31
|
additionalProperties: false,
|
|
@@ -36,6 +36,8 @@ export const executionSchema: RxJsonSchema<ExecutionDocType> = {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export const migrationStrategies = {
|
|
39
|
+
// New terminal outcome and server-owned refusal reasons.
|
|
40
|
+
14: () => null,
|
|
39
41
|
// Repull server-owned execution scheduling metadata and capabilities.
|
|
40
42
|
13: () => null,
|
|
41
43
|
// v0 -> v1: Made providerUser field nullable in steps array
|
|
@@ -97,6 +99,7 @@ export const pullQueryBuilder = (
|
|
|
97
99
|
status
|
|
98
100
|
failureReason
|
|
99
101
|
abandonedReason
|
|
102
|
+
notStartedReason
|
|
100
103
|
startedAt
|
|
101
104
|
finishedAt
|
|
102
105
|
completedSteps
|
|
@@ -112,6 +115,7 @@ export const pullQueryBuilder = (
|
|
|
112
115
|
path
|
|
113
116
|
status
|
|
114
117
|
failureReason
|
|
118
|
+
notStartedReason
|
|
115
119
|
role {
|
|
116
120
|
id
|
|
117
121
|
name
|
|
@@ -165,6 +169,7 @@ export const pullStreamQueryBuilder = () => {
|
|
|
165
169
|
status
|
|
166
170
|
failureReason
|
|
167
171
|
abandonedReason
|
|
172
|
+
notStartedReason
|
|
168
173
|
startedAt
|
|
169
174
|
finishedAt
|
|
170
175
|
completedSteps
|
|
@@ -180,6 +185,7 @@ export const pullStreamQueryBuilder = () => {
|
|
|
180
185
|
path
|
|
181
186
|
status
|
|
182
187
|
failureReason
|
|
188
|
+
notStartedReason
|
|
183
189
|
role {
|
|
184
190
|
id
|
|
185
191
|
name
|
|
@@ -16,8 +16,8 @@ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-
|
|
|
16
16
|
type Documents = {
|
|
17
17
|
"\n query PullDraftProcessExecution($checkpoint: PullCheckpoint, $limit: Int!) {\n pullDraftProcessExecution(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n processId\n name\n startStepPath\n state\n fieldsCompleted\n totalFields\n updatedAt\n deleted\n lastSaved\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.PullDraftProcessExecutionDocument,
|
|
18
18
|
"\n subscription StreamDraftProcessExecution {\n streamDraftProcessExecution {\n documents {\n id\n processId\n name\n startStepPath\n state\n fieldsCompleted\n totalFields\n updatedAt\n deleted\n lastSaved\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.StreamDraftProcessExecutionDocument,
|
|
19
|
-
"\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.PullExecutionDocument,
|
|
20
|
-
"\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.StreamExecutionDocument,
|
|
19
|
+
"\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.PullExecutionDocument,
|
|
20
|
+
"\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.StreamExecutionDocument,
|
|
21
21
|
"\n query PullProcess($checkpoint: PullCheckpoint, $limit: Int!) {\n pullProcess(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n updatedAt\n name\n path\n activeInstances\n category\n duration\n formFieldCount\n purpose\n isFavorite\n orgUnit {\n id\n name\n level\n }\n canSkipScheduleWaits\n startStepPath\n deleted\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.PullProcessDocument,
|
|
22
22
|
"\n subscription StreamProcess {\n streamProcess {\n documents {\n id\n updatedAt\n name\n path\n activeInstances\n category\n duration\n formFieldCount\n purpose\n isFavorite\n orgUnit {\n id\n name\n level\n }\n canSkipScheduleWaits\n startStepPath\n deleted\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": typeof types.StreamProcessDocument,
|
|
23
23
|
"\n query PullTodo($checkpoint: PullCheckpoint, $limit: Int!) {\n pullTodo(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n updatedAt\n processExecutionId\n flowId\n processName\n stepName\n stepPath\n role\n description\n status\n priority\n assignedAt\n dueAt\n formComplexity\n deleted\n summary {\n label\n value\n }\n }\n checkpoint {\n id\n updatedAt\n mode\n backfillHead {\n id\n updatedAt\n }\n }\n }\n }\n ": typeof types.PullTodoDocument,
|
|
@@ -60,8 +60,8 @@ type Documents = {
|
|
|
60
60
|
const documents: Documents = {
|
|
61
61
|
"\n query PullDraftProcessExecution($checkpoint: PullCheckpoint, $limit: Int!) {\n pullDraftProcessExecution(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n processId\n name\n startStepPath\n state\n fieldsCompleted\n totalFields\n updatedAt\n deleted\n lastSaved\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.PullDraftProcessExecutionDocument,
|
|
62
62
|
"\n subscription StreamDraftProcessExecution {\n streamDraftProcessExecution {\n documents {\n id\n processId\n name\n startStepPath\n state\n fieldsCompleted\n totalFields\n updatedAt\n deleted\n lastSaved\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.StreamDraftProcessExecutionDocument,
|
|
63
|
-
"\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.PullExecutionDocument,
|
|
64
|
-
"\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.StreamExecutionDocument,
|
|
63
|
+
"\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.PullExecutionDocument,
|
|
64
|
+
"\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.StreamExecutionDocument,
|
|
65
65
|
"\n query PullProcess($checkpoint: PullCheckpoint, $limit: Int!) {\n pullProcess(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n updatedAt\n name\n path\n activeInstances\n category\n duration\n formFieldCount\n purpose\n isFavorite\n orgUnit {\n id\n name\n level\n }\n canSkipScheduleWaits\n startStepPath\n deleted\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.PullProcessDocument,
|
|
66
66
|
"\n subscription StreamProcess {\n streamProcess {\n documents {\n id\n updatedAt\n name\n path\n activeInstances\n category\n duration\n formFieldCount\n purpose\n isFavorite\n orgUnit {\n id\n name\n level\n }\n canSkipScheduleWaits\n startStepPath\n deleted\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n ": types.StreamProcessDocument,
|
|
67
67
|
"\n query PullTodo($checkpoint: PullCheckpoint, $limit: Int!) {\n pullTodo(checkpoint: $checkpoint, limit: $limit) {\n documents {\n id\n updatedAt\n processExecutionId\n flowId\n processName\n stepName\n stepPath\n role\n description\n status\n priority\n assignedAt\n dueAt\n formComplexity\n deleted\n summary {\n label\n value\n }\n }\n checkpoint {\n id\n updatedAt\n mode\n backfillHead {\n id\n updatedAt\n }\n }\n }\n }\n ": types.PullTodoDocument,
|
|
@@ -127,11 +127,11 @@ export function graphql(source: "\n subscription StreamDraftProcessExecution
|
|
|
127
127
|
/**
|
|
128
128
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
129
129
|
*/
|
|
130
|
-
export function graphql(source: "\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "): (typeof documents)["\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "];
|
|
130
|
+
export function graphql(source: "\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "): (typeof documents)["\n query PullExecution($checkpoint: PullCheckpoint, $limit: Int!, $includeRunning: Boolean, $historySince: Float) {\n pullExecution(checkpoint: $checkpoint, limit: $limit, includeRunning: $includeRunning, historySince: $historySince) {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "];
|
|
131
131
|
/**
|
|
132
132
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
133
133
|
*/
|
|
134
|
-
export function graphql(source: "\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "): (typeof documents)["\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "];
|
|
134
|
+
export function graphql(source: "\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "): (typeof documents)["\n subscription StreamExecution {\n streamExecution {\n documents {\n id\n updatedAt\n processStateId\n withoutWaiting\n processName\n processPath\n canAbandonExecution\n canRestartExecution\n status\n failureReason\n abandonedReason\n notStartedReason\n startedAt\n finishedAt\n completedSteps\n totalSteps\n durationMs\n estimatedCompletionAt\n slaWarningAt\n slaTargetAt\n deleted\n steps {\n id\n name\n path\n status\n failureReason\n notStartedReason\n role {\n id\n name\n }\n submittedViaEmbeddedForm\n externalSubmitterEmail\n assignedProviderUserEmail\n providerUser {\n id\n firstName\n lastName\n picture\n orgUnit\n }\n startedAt\n completedAt\n }\n }\n checkpoint {\n id\n updatedAt\n }\n }\n }\n "];
|
|
135
135
|
/**
|
|
136
136
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
137
137
|
*/
|