Takaro - v0.4.9
    Preparing search index...

    Class TakaroEventModuleUpdated

    Generic Data Transfer Object, used widely in Takaro to pass data back and forth between components Allows validation of properties when instantiated and JSON (de)serialization

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    changeType?: "created" | "updated" | "deleted"
    componentId?: string
    componentName?: string
    componentType?:
        | "function"
        | "command"
        | "hook"
        | "cronjob"
        | "permission"
        | "module"
    newValue?: Record<string, unknown>
    previousValue?: Record<string, unknown>
    timestamp: string = ...
    type: "module-updated" = TakaroEvents.MODULE_UPDATED

    Methods

    • Parameters

      • OptionaloptionOverrides: ClassTransformOptions

      Returns Record<string, any>

    • Validates the DTO instance

      Parameters

      • OptionalextraOpts: ValidatorOptions

      Returns Promise<void>

      if validation fails