Skip to content

Commit

Permalink
feat: update api
Browse files Browse the repository at this point in the history
  • Loading branch information
maemual committed Aug 23, 2024
1 parent ca36bab commit 8e7801e
Show file tree
Hide file tree
Showing 1,153 changed files with 56,093 additions and 55,055 deletions.
72 changes: 36 additions & 36 deletions lark_oapi/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
from . import human_authentication
from . import mail
from . import corehr
from . import helpdesk
from . import okr
from . import attendance
from . import auth
from . import contact
from . import event
from . import gray_test_open_sg
from . import im
from . import personal_settings
from . import report
from . import aily
from . import drive
from . import ehr
from . import search
from . import speech_to_text
from . import sheets
from . import verification
from . import calendar
from . import compensation
from . import lingo
from . import tenant
from . import translation
from . import wiki
from . import compensation
from . import ehr
from . import task
from . import block
from . import okr
from . import report
from . import document_ai
from . import docx
from . import drive
from . import hire
from . import meeting_room
from . import mdm
from . import attendance
from . import bitable
from . import corehr
from . import personal_settings
from . import wiki
from . import vc
from . import application
from . import authen
from . import acs
from . import im
from . import lingo
from . import passport
from . import search
from . import sheets
from . import aily
from . import baike
from . import optical_char_recognition
from . import speech_to_text
from . import workplace
from . import block
from . import calendar
from . import helpdesk
from . import mail
from . import board
from . import task
from . import acs
from . import approval
from . import bitable
from . import passport
from . import security_and_compliance
from . import gray_test_open_sg
from . import human_authentication
from . import meeting_room
from . import verification
from . import admin
from . import mdm
from . import optical_char_recognition
from . import auth
from . import authen
from . import event
from . import security_and_compliance
from . import application
from . import approval
from . import contact
9 changes: 9 additions & 0 deletions lark_oapi/api/compensation/v1/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
from .plan_indicator import *
from .plan_item import *
from .plan_scope import *
from .social_archive import *
from .social_archive_adjust_record import *
from .social_archive_detail import *
from .social_archive_item import *
from .social_insurance import *
from .social_plan import *
from .social_plan_item_detail import *
from .social_plan_item_setting import *
from .social_plan_scope import *
from .query_archive_request_body import *
from .query_archive_request import *
from .list_change_reason_request import *
Expand Down
37 changes: 37 additions & 0 deletions lark_oapi/api/compensation/v1/model/social_archive.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 .social_archive_detail import SocialArchiveDetail


class SocialArchive(object):
_types = {
"user_id": str,
"details": List[SocialArchiveDetail],
}

def __init__(self, d=None):
self.user_id: Optional[str] = None
self.details: Optional[List[SocialArchiveDetail]] = None
init(self, d, self._types)

@staticmethod
def builder() -> "SocialArchiveBuilder":
return SocialArchiveBuilder()


class SocialArchiveBuilder(object):
def __init__(self) -> None:
self._social_archive = SocialArchive()

def user_id(self, user_id: str) -> "SocialArchiveBuilder":
self._social_archive.user_id = user_id
return self

def details(self, details: List[SocialArchiveDetail]) -> "SocialArchiveBuilder":
self._social_archive.details = details
return self

def build(self) -> "SocialArchive":
return self._social_archive
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 .social_archive_detail import SocialArchiveDetail


class SocialArchiveAdjustRecord(object):
_types = {
"user_id": str,
"record_type": str,
"details": SocialArchiveDetail,
}

def __init__(self, d=None):
self.user_id: Optional[str] = None
self.record_type: Optional[str] = None
self.details: Optional[SocialArchiveDetail] = None
init(self, d, self._types)

@staticmethod
def builder() -> "SocialArchiveAdjustRecordBuilder":
return SocialArchiveAdjustRecordBuilder()


class SocialArchiveAdjustRecordBuilder(object):
def __init__(self) -> None:
self._social_archive_adjust_record = SocialArchiveAdjustRecord()

def user_id(self, user_id: str) -> "SocialArchiveAdjustRecordBuilder":
self._social_archive_adjust_record.user_id = user_id
return self

def record_type(self, record_type: str) -> "SocialArchiveAdjustRecordBuilder":
self._social_archive_adjust_record.record_type = record_type
return self

def details(self, details: SocialArchiveDetail) -> "SocialArchiveAdjustRecordBuilder":
self._social_archive_adjust_record.details = details
return self

def build(self) -> "SocialArchiveAdjustRecord":
return self._social_archive_adjust_record
110 changes: 110 additions & 0 deletions lark_oapi/api/compensation/v1/model/social_archive_detail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# 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 .i18n import I18n
from .social_archive_item import SocialArchiveItem


class SocialArchiveDetail(object):
_types = {
"description": I18n,
"insurance_type": str,
"insurance_status": str,
"id": str,
"tid": str,
"plan_id": str,
"plan_tid": str,
"location_id": str,
"company_id": str,
"account_type": str,
"insurance_account": str,
"base_salary": str,
"insurance_details": List[SocialArchiveItem],
"effective_date": str,
}

def __init__(self, d=None):
self.description: Optional[I18n] = None
self.insurance_type: Optional[str] = None
self.insurance_status: Optional[str] = None
self.id: Optional[str] = None
self.tid: Optional[str] = None
self.plan_id: Optional[str] = None
self.plan_tid: Optional[str] = None
self.location_id: Optional[str] = None
self.company_id: Optional[str] = None
self.account_type: Optional[str] = None
self.insurance_account: Optional[str] = None
self.base_salary: Optional[str] = None
self.insurance_details: Optional[List[SocialArchiveItem]] = None
self.effective_date: Optional[str] = None
init(self, d, self._types)

@staticmethod
def builder() -> "SocialArchiveDetailBuilder":
return SocialArchiveDetailBuilder()


class SocialArchiveDetailBuilder(object):
def __init__(self) -> None:
self._social_archive_detail = SocialArchiveDetail()

def description(self, description: I18n) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.description = description
return self

def insurance_type(self, insurance_type: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.insurance_type = insurance_type
return self

def insurance_status(self, insurance_status: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.insurance_status = insurance_status
return self

def id(self, id: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.id = id
return self

def tid(self, tid: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.tid = tid
return self

def plan_id(self, plan_id: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.plan_id = plan_id
return self

def plan_tid(self, plan_tid: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.plan_tid = plan_tid
return self

def location_id(self, location_id: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.location_id = location_id
return self

def company_id(self, company_id: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.company_id = company_id
return self

def account_type(self, account_type: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.account_type = account_type
return self

def insurance_account(self, insurance_account: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.insurance_account = insurance_account
return self

def base_salary(self, base_salary: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.base_salary = base_salary
return self

def insurance_details(self, insurance_details: List[SocialArchiveItem]) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.insurance_details = insurance_details
return self

def effective_date(self, effective_date: str) -> "SocialArchiveDetailBuilder":
self._social_archive_detail.effective_date = effective_date
return self

def build(self) -> "SocialArchiveDetail":
return self._social_archive_detail
75 changes: 75 additions & 0 deletions lark_oapi/api/compensation/v1/model/social_archive_item.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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 .i18n import I18n
from .social_plan_item_setting import SocialPlanItemSetting
from .social_plan_item_setting import SocialPlanItemSetting


class SocialArchiveItem(object):
_types = {
"insurance_id": str,
"insurance_name": I18n,
"company_deduction": str,
"company_setting": SocialPlanItemSetting,
"personal_deduction": str,
"personal_setting": SocialPlanItemSetting,
"payment_frequency": str,
"payment_months": List[int],
}

def __init__(self, d=None):
self.insurance_id: Optional[str] = None
self.insurance_name: Optional[I18n] = None
self.company_deduction: Optional[str] = None
self.company_setting: Optional[SocialPlanItemSetting] = None
self.personal_deduction: Optional[str] = None
self.personal_setting: Optional[SocialPlanItemSetting] = None
self.payment_frequency: Optional[str] = None
self.payment_months: Optional[List[int]] = None
init(self, d, self._types)

@staticmethod
def builder() -> "SocialArchiveItemBuilder":
return SocialArchiveItemBuilder()


class SocialArchiveItemBuilder(object):
def __init__(self) -> None:
self._social_archive_item = SocialArchiveItem()

def insurance_id(self, insurance_id: str) -> "SocialArchiveItemBuilder":
self._social_archive_item.insurance_id = insurance_id
return self

def insurance_name(self, insurance_name: I18n) -> "SocialArchiveItemBuilder":
self._social_archive_item.insurance_name = insurance_name
return self

def company_deduction(self, company_deduction: str) -> "SocialArchiveItemBuilder":
self._social_archive_item.company_deduction = company_deduction
return self

def company_setting(self, company_setting: SocialPlanItemSetting) -> "SocialArchiveItemBuilder":
self._social_archive_item.company_setting = company_setting
return self

def personal_deduction(self, personal_deduction: str) -> "SocialArchiveItemBuilder":
self._social_archive_item.personal_deduction = personal_deduction
return self

def personal_setting(self, personal_setting: SocialPlanItemSetting) -> "SocialArchiveItemBuilder":
self._social_archive_item.personal_setting = personal_setting
return self

def payment_frequency(self, payment_frequency: str) -> "SocialArchiveItemBuilder":
self._social_archive_item.payment_frequency = payment_frequency
return self

def payment_months(self, payment_months: List[int]) -> "SocialArchiveItemBuilder":
self._social_archive_item.payment_months = payment_months
return self

def build(self) -> "SocialArchiveItem":
return self._social_archive_item
Loading

0 comments on commit 8e7801e

Please sign in to comment.