# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from lark_oapi.event.context import EventContext


class P2CorehrProcessNodeUpdatedV2Data(object):
    _types = {
        "flow_definition_id": str,
        "node_definition_id": str,
        "process_id": str,
        "process_node_id": str,
        "node_type": int,
        "node_status": int,
        "biz_type": str,
    }

    def __init__(self, d=None):
        self.flow_definition_id: Optional[str] = None
        self.node_definition_id: Optional[str] = None
        self.process_id: Optional[str] = None
        self.process_node_id: Optional[str] = None
        self.node_type: Optional[int] = None
        self.node_status: Optional[int] = None
        self.biz_type: Optional[str] = None
        init(self, d, self._types)


class P2CorehrProcessNodeUpdatedV2(EventContext):
    _types = {
        "event": P2CorehrProcessNodeUpdatedV2Data
    }

    def __init__(self, d=None):
        super().__init__(d)
        self._types.update(super()._types)
        self.event: Optional[P2CorehrProcessNodeUpdatedV2Data] = None
        init(self, d, self._types)
