feat: Add useQueryStep (#9384)

* feat: Query step replacement

* fix

* fix types
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-10-07 12:07:06 +02:00
1 parent 2d8ce6fd5b
commit ad3524ffbe
8 files changed
+38 -8

No files matched your search

@@ -6,7 +6,7 @@ import {
} from "@medusajs/orchestration"
import { isString, OrchestrationUtils } from "@medusajs/utils"
import { ulid } from "ulid"
import { StepResponse, resolveValue } from "./helpers"
import { resolveValue, StepResponse } from "./helpers"
import { createStepHandler } from "./helpers/create-step-handler"
import { proxify } from "./helpers/proxy"
import {
@@ -15,7 +15,7 @@ import { CompensateFn, InvokeFn } from "./create-step"
export type StepFunctionResult<TOutput extends unknown | unknown[] = unknown> =
(this: CreateWorkflowComposerContext) => WorkflowData<TOutput>
type StepFunctionReturnConfig<TOutput> = {
export type StepFunctionReturnConfig<TOutput> = {
config(
config: { name?: string } & Omit<
TransactionStepsDefinition,