Member Junction
    Preparing search index...

    Class BaseActionAbstract

    Base class for all actions. All actions will derive from this class and be instantiated by the ClassFactory within the @memberjunctin/global package.

    // Define a typed context
    interface MyActionContext {
    apiEndpoint: string;
    authToken: string;
    }

    // Create an action with typed params
    export class MyAction extends BaseAction {
    protected async InternalRunAction(params: RunActionParams<MyActionContext>): Promise<ActionResultSimple> {
    // Access typed context
    const endpoint = params.Context?.apiEndpoint;
    const token = params.Context?.authToken;

    // Implement action logic
    return {
    Success: true,
    ResultCode: 'SUCCESS',
    Message: 'Action completed'
    };
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods