@zapier/zapier-sdk 0.118.0 → 0.119.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.119.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 253d3e5: The Next Gen Zaps methods (workflows, drafts, versions and runs, such as `listWorkflows`, `createWorkflowDraft`, `runWorkflowDraft` and `getWorkflowRun`) are now beta. Import them from `@zapier/zapier-sdk/beta`. They are still available from `@zapier/zapier-sdk/experimental`, which includes every beta method, so existing imports keep working. Beta changes ship in minor releases with a migration note.
8
+ - 253d3e5: Added `runWorkflow` (beta) to run a published workflow and wait for its result. It fires the workflow's trigger, then returns the run as soon as it is finished, failed or cancelled, with `output` set when it finished. A failed run is returned with its `error` rather than thrown. A run still going after `waitSeconds` (default 60) is returned with its current status. If no run has been created by then, it throws `ZapierTimeoutError`; check it later with `getTriggerRun`.
9
+
10
+ Added `waitSeconds` to `runWorkflowDraft`, `getTriggerRun` and `getWorkflowRun`. With it, the method returns the run once it ends, or as it stands when the wait runs out, instead of returning at once.
11
+
3
12
  ## 0.118.0
4
13
 
5
14
  ### Minor Changes