Member Junction
    Preparing search index...

    Generates the strongly-typed base class for each MJ: Remote Operations row — the CodeGen half of the Remote Operations primitive (the typed peer of generated entity subclasses). Each row becomes a subclass of BaseRemotableOperation<TInput, TOutput> whose OperationKey, ExecutionMode, RequiredScope, RequiresSystemUser, and TInput/TOutput interfaces are derived entirely from the metadata.

    Output shape depends on the operation's GenerationType:

    • Manual → a typed SHELL (no body, no @RegisterClass). A hand-authored server subclass extends this base, supplies InternalExecute, and registers under the key. The base provides the typed contract the browser imports (so it never pulls the server engine).
    • AI / Default (with CodeApprovalStatus = 'Approved' and non-empty Code) → a COMPLETE class: @RegisterClass(BaseRemotableOperation, key) plus an InternalExecute body emitted from Code. No hand-authored subclass is needed.

    Mirrors ActionSubClassGeneratorBase (the other "read a custom entity's rows → emit TypeScript" generator).

    Index

    Constructors

    Methods

    • Emits remote_operations.ts into directory, one typed base per Active operation.

      Parameters

      • remoteOps: MJRemoteOperationEntity[]

        All MJ: Remote Operations rows (any status; non-Active rows are skipped).

      • directory: string

        The target output directory (resolved from the RemoteOperations output config).

      Returns Promise<boolean>

    • Derives the TypeScript class name from the dotted key: RecordProcess.RunNowRecordProcessRunNowOperation.

      Parameters

      • operationKey: string

      Returns string