@upstash/workflow 0.2.21 → 0.2.22
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 +39 -0
- package/astro.d.mts +2 -2
- package/astro.d.ts +2 -2
- package/astro.js +124 -71
- package/astro.mjs +1 -1
- package/{chunk-NQDNC5P4.mjs → chunk-BON2RKOR.mjs} +93 -76
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +124 -71
- package/cloudflare.mjs +1 -1
- package/express.d.mts +2 -2
- package/express.d.ts +2 -2
- package/express.js +139 -23895
- package/express.mjs +8 -23805
- package/h3.d.mts +2 -2
- package/h3.d.ts +2 -2
- package/h3.js +124 -71
- package/h3.mjs +1 -1
- package/hono.d.mts +2 -2
- package/hono.d.ts +2 -2
- package/hono.js +124 -71
- package/hono.mjs +1 -1
- package/index.d.mts +10 -2
- package/index.d.ts +10 -2
- package/index.js +128 -73
- package/index.mjs +5 -3
- package/nextjs.d.mts +2 -2
- package/nextjs.d.ts +2 -2
- package/nextjs.js +126 -72
- package/nextjs.mjs +3 -2
- package/package.json +1 -1
- package/{serve-many-CXqQP3RI.d.ts → serve-many-BXDr30rl.d.ts} +1 -1
- package/{serve-many-BNusWYgt.d.mts → serve-many-CctdYIfB.d.mts} +1 -1
- package/solidjs.d.mts +1 -1
- package/solidjs.d.ts +1 -1
- package/solidjs.js +124 -71
- package/solidjs.mjs +1 -1
- package/svelte.d.mts +2 -2
- package/svelte.d.ts +2 -2
- package/svelte.js +124 -71
- package/svelte.mjs +1 -1
- package/tanstack.d.mts +2 -2
- package/tanstack.d.ts +2 -2
- package/tanstack.js +124 -71
- package/tanstack.mjs +1 -1
- package/{types-Q3dM0UlR.d.ts → types-9nCq6bRP.d.mts} +12 -1
- package/{types-Q3dM0UlR.d.mts → types-9nCq6bRP.d.ts} +12 -1
|
@@ -38,6 +38,14 @@ declare class WorkflowNonRetryableError extends WorkflowAbort {
|
|
|
38
38
|
*/
|
|
39
39
|
constructor(message?: string);
|
|
40
40
|
}
|
|
41
|
+
declare class WorkflowRetryAfterError extends WorkflowAbort {
|
|
42
|
+
retryAfter: number | Duration;
|
|
43
|
+
/**
|
|
44
|
+
* @param retryAfter time in seconds after which the workflow should be retried
|
|
45
|
+
* @param message error message to be displayed
|
|
46
|
+
*/
|
|
47
|
+
constructor(message: string, retryAfter: number | Duration);
|
|
48
|
+
}
|
|
41
49
|
|
|
42
50
|
declare const LOG_LEVELS: readonly ["DEBUG", "INFO", "SUBMIT", "WARN", "ERROR"];
|
|
43
51
|
type LogLevel = (typeof LOG_LEVELS)[number];
|
|
@@ -1223,6 +1231,9 @@ type DetailedFinishCondition = {
|
|
|
1223
1231
|
} | {
|
|
1224
1232
|
condition: "non-retryable-error";
|
|
1225
1233
|
result: WorkflowNonRetryableError;
|
|
1234
|
+
} | {
|
|
1235
|
+
condition: "retry-after-error";
|
|
1236
|
+
result: WorkflowRetryAfterError;
|
|
1226
1237
|
} | {
|
|
1227
1238
|
condition: "failure-callback";
|
|
1228
1239
|
result: string | void;
|
|
@@ -1628,4 +1639,4 @@ type InvokableWorkflow<TInitialPayload, TResult> = {
|
|
|
1628
1639
|
workflowId?: string;
|
|
1629
1640
|
};
|
|
1630
1641
|
|
|
1631
|
-
export { type AsyncStepFunction as A, type
|
|
1642
|
+
export { type AsyncStepFunction as A, type LogLevel as B, type CallResponse as C, type DetailedFinishCondition as D, type ExclusiveValidationOptions as E, type FinishCondition as F, type WorkflowLoggerOptions as G, type HeaderParams as H, type InvokeWorkflowRequest as I, WorkflowLogger as J, type LazyInvokeStepParams as L, type NotifyResponse as N, type ParallelCallState as P, type RouteFunction as R, type StepType as S, type Telemetry as T, type WorkflowServeOptions as W, type RawStep as a, type Waiter as b, WorkflowError as c, WorkflowAbort as d, WorkflowNonRetryableError as e, WorkflowRetryAfterError as f, WorkflowTool as g, WorkflowContext as h, type WorkflowClient as i, type WorkflowReceiver as j, StepTypes as k, type Step as l, type SyncStepFunction as m, type StepFunction as n, type PublicServeOptions as o, type FailureFunctionPayload as p, type RequiredExceptFields as q, type WaitRequest as r, type WaitStepResponse as s, type NotifyStepResponse as t, type Duration as u, type WaitEventOptions as v, type StringifyBody as w, type CallSettings as x, type InvokeStepResponse as y, type InvokableWorkflow as z };
|
|
@@ -38,6 +38,14 @@ declare class WorkflowNonRetryableError extends WorkflowAbort {
|
|
|
38
38
|
*/
|
|
39
39
|
constructor(message?: string);
|
|
40
40
|
}
|
|
41
|
+
declare class WorkflowRetryAfterError extends WorkflowAbort {
|
|
42
|
+
retryAfter: number | Duration;
|
|
43
|
+
/**
|
|
44
|
+
* @param retryAfter time in seconds after which the workflow should be retried
|
|
45
|
+
* @param message error message to be displayed
|
|
46
|
+
*/
|
|
47
|
+
constructor(message: string, retryAfter: number | Duration);
|
|
48
|
+
}
|
|
41
49
|
|
|
42
50
|
declare const LOG_LEVELS: readonly ["DEBUG", "INFO", "SUBMIT", "WARN", "ERROR"];
|
|
43
51
|
type LogLevel = (typeof LOG_LEVELS)[number];
|
|
@@ -1223,6 +1231,9 @@ type DetailedFinishCondition = {
|
|
|
1223
1231
|
} | {
|
|
1224
1232
|
condition: "non-retryable-error";
|
|
1225
1233
|
result: WorkflowNonRetryableError;
|
|
1234
|
+
} | {
|
|
1235
|
+
condition: "retry-after-error";
|
|
1236
|
+
result: WorkflowRetryAfterError;
|
|
1226
1237
|
} | {
|
|
1227
1238
|
condition: "failure-callback";
|
|
1228
1239
|
result: string | void;
|
|
@@ -1628,4 +1639,4 @@ type InvokableWorkflow<TInitialPayload, TResult> = {
|
|
|
1628
1639
|
workflowId?: string;
|
|
1629
1640
|
};
|
|
1630
1641
|
|
|
1631
|
-
export { type AsyncStepFunction as A, type
|
|
1642
|
+
export { type AsyncStepFunction as A, type LogLevel as B, type CallResponse as C, type DetailedFinishCondition as D, type ExclusiveValidationOptions as E, type FinishCondition as F, type WorkflowLoggerOptions as G, type HeaderParams as H, type InvokeWorkflowRequest as I, WorkflowLogger as J, type LazyInvokeStepParams as L, type NotifyResponse as N, type ParallelCallState as P, type RouteFunction as R, type StepType as S, type Telemetry as T, type WorkflowServeOptions as W, type RawStep as a, type Waiter as b, WorkflowError as c, WorkflowAbort as d, WorkflowNonRetryableError as e, WorkflowRetryAfterError as f, WorkflowTool as g, WorkflowContext as h, type WorkflowClient as i, type WorkflowReceiver as j, StepTypes as k, type Step as l, type SyncStepFunction as m, type StepFunction as n, type PublicServeOptions as o, type FailureFunctionPayload as p, type RequiredExceptFields as q, type WaitRequest as r, type WaitStepResponse as s, type NotifyStepResponse as t, type Duration as u, type WaitEventOptions as v, type StringifyBody as w, type CallSettings as x, type InvokeStepResponse as y, type InvokableWorkflow as z };
|