# 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
from .employee_domain_event_data import EmployeeDomainEventData


class P2CorehrEmployeeDomainEventV2Data(object):
    _types = {
        "event_type": int,
        "sub_event_type": int,
        "operator_user_id": str,
        "opt_scene": str,
        "opt_desc": str,
        "opt_time": str,
        "opt_id": str,
        "employment_id": str,
        "data": List[EmployeeDomainEventData],
    }

    def __init__(self, d=None):
        self.event_type: Optional[int] = None
        self.sub_event_type: Optional[int] = None
        self.operator_user_id: Optional[str] = None
        self.opt_scene: Optional[str] = None
        self.opt_desc: Optional[str] = None
        self.opt_time: Optional[str] = None
        self.opt_id: Optional[str] = None
        self.employment_id: Optional[str] = None
        self.data: Optional[List[EmployeeDomainEventData]] = None
        init(self, d, self._types)


class P2CorehrEmployeeDomainEventV2(EventContext):
    _types = {
        "event": P2CorehrEmployeeDomainEventV2Data
    }

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