Body, Mind & Soul — API Reference
    Preparing search index...

    Function triggerConfigFor

    • Build trigger option choices for a consumer type. Drop-in replacement for prepareTriggerChoices(documentType) — returns the same shape.

      Parameters

      • consumerType: string

        Key in TRIGGER_CONSUMER_REGISTRY (e.g. "feature", "effect", "action")

      Returns {
          conditionChoices: { [k: string]: any };
          conditionConfigFields: {};
          conditionConfigPartials: {};
          conditionsNeedValue: {};
          conditionValueHints: {};
          hookChoices: { [k: string]: any };
          localizedConditionsByHook: {};
          localizedSubConditionsByMetaType: {};
          metaConditions: {};
          outcomeChoices: { [k: string]: any };
          outcomeConfigPartials: {};
          scopeableConditions: {};
          targetScopeChoices: {};
      }

      Same object shape as prepareTriggerChoices