feat: Add useQueryStep (#9384)

* feat: Query step replacement

* fix

* fix types
This commit is contained in:
Adrien de Peretti
2024-10-07 12:07:06 +02:00
committed by GitHub
parent 2d8ce6fd5b
commit ad3524ffbe
8 changed files with 38 additions and 8 deletions
@@ -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,