"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .basesdk import BaseSDK
from .sdkconfiguration import SDKConfiguration
from apideck_unify.applicants import Applicants
from apideck_unify.applications import Applications
from apideck_unify.jobs import Jobs
from typing import Optional


class Ats(BaseSDK):
    jobs: Jobs
    applicants: Applicants
    applications: Applications

    def __init__(
        self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
    ) -> None:
        BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
        self.sdk_configuration = sdk_config
        self._init_sdks()

    def _init_sdks(self):
        self.jobs = Jobs(self.sdk_configuration, parent_ref=self.parent_ref)
        self.applicants = Applicants(self.sdk_configuration, parent_ref=self.parent_ref)
        self.applications = Applications(
            self.sdk_configuration, parent_ref=self.parent_ref
        )
