Resolver for Component Registry operations

Environment Variables for Development:

  • REGISTRY_URI_OVERRIDE_: Override the URI for a specific registry Example: REGISTRY_URI_OVERRIDE_MJ_CENTRAL=http://localhost:8080 Registry names are converted to uppercase with non-alphanumeric chars replaced by underscores

  • REGISTRY_API_KEY_: API key for authenticating with the registry Example: REGISTRY_API_KEY_MJ_CENTRAL=your-api-key-here

Constructors

Properties

componentEngine: ComponentMetadataEngine = ComponentMetadataEngine.Instance

Methods

  • Get a component from a registry with optional hash for caching

    Parameters

    • registryName: string
    • namespace: string
    • name: string
    • __namedParameters: AppContext
    • Optional version: string
    • Optional hash: string

    Returns Promise<ComponentSpecWithHashType>

  • Send feedback for a component from any registry This is a registry-agnostic mutation that allows feedback collection for components from any source registry (Skip, MJ Central, etc.)

    Parameters

    • feedback: ComponentFeedbackInput
    • __namedParameters: AppContext

    Returns Promise<ComponentFeedbackResponse>

  • Map component type string to entity enum

    Parameters

    • type: string

    Returns "Other" | "Report" | "Chart" | "Dashboard" | "Form" | "Navigation" | "Search" | "Table" | "Utility" | "Widget"