@upstash/workflow 0.1.1 → 0.1.2-omit-errors

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 CHANGED
@@ -9,13 +9,13 @@
9
9
 
10
10
  **Upstash Workflow** lets you write durable, reliable and performant serverless functions. Get delivery guarantees, automatic retries on failure, scheduling and more without managing any infrastructure.
11
11
 
12
- See [the documentation](https://upstash.com/docs/qstash/workflow/getstarted) for more details
12
+ See [the documentation](https://upstash.com/docs/workflow/getstarted) for more details
13
13
 
14
14
  ## Quick Start
15
15
 
16
16
  Here, we will briefly showcase how you can get started with Upstash Workflow.
17
17
 
18
- Alternatively, you can check [our quickstarts for different frameworks](https://upstash.com/docs/qstash/workflow/quickstarts/platforms), including [Next.js](https://upstash.com/docs/qstash/workflow/quickstarts/vercel-nextjs) and [Cloudflare](https://upstash.com/docs/qstash/workflow/quickstarts/cloudflare-workers).
18
+ Alternatively, you can check [our quickstarts for different frameworks](https://upstash.com/docs/workflow/quickstarts/platforms), including [Next.js](https://upstash.com/docs/qstash/workflow/quickstarts/vercel-nextjs) and [Cloudflare](https://upstash.com/docs/workflow/quickstarts/cloudflare-workers).
19
19
 
20
20
  ### Install
21
21
 
@@ -72,11 +72,11 @@ The kinds of steps which are available are:
72
72
  - `context.waitForEvent`: wait for an event
73
73
  - `context.notify`: notify an event to make workflows waiting for the event continue
74
74
 
75
- You can [learn more about these methods from our documentation](https://upstash.com/docs/qstash/workflow/basics/context).
75
+ You can [learn more about these methods from our documentation](https://upstash.com/docs/workflow/basics/context).
76
76
 
77
77
  ### Workflow Client
78
78
 
79
- You can use [the Upstash Workflow client](https://upstash.com/docs/qstash/workflow/basics/client) to cancel workflows, notify workflows
79
+ You can use [the Upstash Workflow client](https://upstash.com/docs/workflow/basics/client) to cancel workflows, notify workflows
80
80
  waiting for an event or get the workflows waiting for an event:
81
81
 
82
82
  ```ts
package/astro.d.mts ADDED
@@ -0,0 +1,9 @@
1
+ import { APIContext, APIRoute } from 'astro';
2
+ import { b as WorkflowContext, W as WorkflowServeOptions } from './types-CI-2skYU.mjs';
3
+ import '@upstash/qstash';
4
+
5
+ declare function serve<TInitialPayload = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<void>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">): {
6
+ POST: APIRoute;
7
+ };
8
+
9
+ export { serve };
package/astro.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { APIContext, APIRoute } from 'astro';
2
+ import { b as WorkflowContext, W as WorkflowServeOptions } from './types-CI-2skYU.js';
3
+ import '@upstash/qstash';
4
+
5
+ declare function serve<TInitialPayload = unknown>(routeFunction: (workflowContext: WorkflowContext<TInitialPayload>, apiContext: APIContext) => Promise<void>, options?: Omit<WorkflowServeOptions<Response, TInitialPayload>, "onStepFinish">): {
6
+ POST: APIRoute;
7
+ };
8
+
9
+ export { serve };