Skip to content

Commit 0c74867

Browse files
committed
feat: update api
1 parent d3c461e commit 0c74867

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1021
-169
lines changed

lark_oapi/api/__init__.py

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
from . import sheets
2-
from . import admin
1+
from . import acs
2+
from . import aily
33
from . import approval
4-
from . import authen
5-
from . import block
6-
from . import document_ai
7-
from . import helpdesk
8-
from . import search
9-
from . import security_and_compliance
10-
from . import baike
11-
from . import docx
12-
from . import im
13-
from . import moments
14-
from . import okr
15-
from . import translation
16-
from . import wiki
17-
from . import hire
18-
from . import tenant
19-
from . import auth
204
from . import calendar
21-
from . import human_authentication
22-
from . import mdm
23-
from . import ehr
24-
from . import mail
25-
from . import passport
26-
from . import personal_settings
27-
from . import report
5+
from . import event
286
from . import speech_to_text
29-
from . import task
30-
from . import application
31-
from . import board
32-
from . import cardkit
7+
from . import tenant
338
from . import compensation
34-
from . import corehr
35-
from . import gray_test_open_sg
36-
from . import vc
9+
from . import human_authentication
10+
from . import report
11+
from . import verification
3712
from . import workplace
38-
from . import acs
13+
from . import admin
14+
from . import mail
15+
from . import personal_settings
16+
from . import baike
17+
from . import ehr
18+
from . import translation
19+
from . import wiki
20+
from . import attendance
21+
from . import authen
3922
from . import bitable
23+
from . import block
24+
from . import gray_test_open_sg
25+
from . import lingo
26+
from . import meeting_room
4027
from . import contact
4128
from . import docs
4229
from . import drive
43-
from . import lingo
44-
from . import meeting_room
45-
from . import verification
46-
from . import aily
47-
from . import attendance
48-
from . import event
30+
from . import im
31+
from . import okr
4932
from . import optical_char_recognition
33+
from . import search
34+
from . import sheets
35+
from . import board
36+
from . import corehr
37+
from . import document_ai
38+
from . import docx
39+
from . import helpdesk
40+
from . import mdm
41+
from . import moments
42+
from . import security_and_compliance
43+
from . import application
44+
from . import auth
45+
from . import cardkit
46+
from . import hire
47+
from . import passport
48+
from . import task
49+
from . import vc

lark_oapi/api/approval/v4/model/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
from .node_auto_approval import *
8080
from .node_cc import *
8181
from .object_context import *
82+
from .open_widget_instance import *
8283
from .preview_node import *
8384
from .reason import *
8485
from .remedy_group import *
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Code generated by Lark OpenAPI.
2+
3+
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
4+
from lark_oapi.core.construct import init
5+
6+
7+
class OpenWidgetInstance(object):
8+
_types = {
9+
"instance_code": str,
10+
"status": str,
11+
"create_time": int,
12+
"update_time": int,
13+
"form_content": str,
14+
}
15+
16+
def __init__(self, d=None):
17+
self.instance_code: Optional[str] = None
18+
self.status: Optional[str] = None
19+
self.create_time: Optional[int] = None
20+
self.update_time: Optional[int] = None
21+
self.form_content: Optional[str] = None
22+
init(self, d, self._types)
23+
24+
@staticmethod
25+
def builder() -> "OpenWidgetInstanceBuilder":
26+
return OpenWidgetInstanceBuilder()
27+
28+
29+
class OpenWidgetInstanceBuilder(object):
30+
def __init__(self) -> None:
31+
self._open_widget_instance = OpenWidgetInstance()
32+
33+
def instance_code(self, instance_code: str) -> "OpenWidgetInstanceBuilder":
34+
self._open_widget_instance.instance_code = instance_code
35+
return self
36+
37+
def status(self, status: str) -> "OpenWidgetInstanceBuilder":
38+
self._open_widget_instance.status = status
39+
return self
40+
41+
def create_time(self, create_time: int) -> "OpenWidgetInstanceBuilder":
42+
self._open_widget_instance.create_time = create_time
43+
return self
44+
45+
def update_time(self, update_time: int) -> "OpenWidgetInstanceBuilder":
46+
self._open_widget_instance.update_time = update_time
47+
return self
48+
49+
def form_content(self, form_content: str) -> "OpenWidgetInstanceBuilder":
50+
self._open_widget_instance.form_content = form_content
51+
return self
52+
53+
def build(self) -> "OpenWidgetInstance":
54+
return self._open_widget_instance

lark_oapi/api/attendance/v1/model/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from .clock_in_abnormal_settings import *
2+
from .anti_cheat_config import *
13
from .anti_cheat_punch import *
24
from .approval_daily_detail import *
35
from .approval_info import *
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Code generated by Lark OpenAPI.
2+
3+
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
4+
from lark_oapi.core.construct import init
5+
6+
7+
class AntiCheatConfig(object):
8+
_types = {
9+
"intercept_suspected_cheat_punch": bool,
10+
"check_cheat_software_punch": bool,
11+
"check_buddy_punch": bool,
12+
"check_simulate_wifi_punch": bool,
13+
"check_change_device_punch": bool,
14+
"allow_change_device_num": int,
15+
"suspected_cheat_handle_method": int,
16+
}
17+
18+
def __init__(self, d=None):
19+
self.intercept_suspected_cheat_punch: Optional[bool] = None
20+
self.check_cheat_software_punch: Optional[bool] = None
21+
self.check_buddy_punch: Optional[bool] = None
22+
self.check_simulate_wifi_punch: Optional[bool] = None
23+
self.check_change_device_punch: Optional[bool] = None
24+
self.allow_change_device_num: Optional[int] = None
25+
self.suspected_cheat_handle_method: Optional[int] = None
26+
init(self, d, self._types)
27+
28+
@staticmethod
29+
def builder() -> "AntiCheatConfigBuilder":
30+
return AntiCheatConfigBuilder()
31+
32+
33+
class AntiCheatConfigBuilder(object):
34+
def __init__(self) -> None:
35+
self._anti_cheat_config = AntiCheatConfig()
36+
37+
def intercept_suspected_cheat_punch(self, intercept_suspected_cheat_punch: bool) -> "AntiCheatConfigBuilder":
38+
self._anti_cheat_config.intercept_suspected_cheat_punch = intercept_suspected_cheat_punch
39+
return self
40+
41+
def check_cheat_software_punch(self, check_cheat_software_punch: bool) -> "AntiCheatConfigBuilder":
42+
self._anti_cheat_config.check_cheat_software_punch = check_cheat_software_punch
43+
return self
44+
45+
def check_buddy_punch(self, check_buddy_punch: bool) -> "AntiCheatConfigBuilder":
46+
self._anti_cheat_config.check_buddy_punch = check_buddy_punch
47+
return self
48+
49+
def check_simulate_wifi_punch(self, check_simulate_wifi_punch: bool) -> "AntiCheatConfigBuilder":
50+
self._anti_cheat_config.check_simulate_wifi_punch = check_simulate_wifi_punch
51+
return self
52+
53+
def check_change_device_punch(self, check_change_device_punch: bool) -> "AntiCheatConfigBuilder":
54+
self._anti_cheat_config.check_change_device_punch = check_change_device_punch
55+
return self
56+
57+
def allow_change_device_num(self, allow_change_device_num: int) -> "AntiCheatConfigBuilder":
58+
self._anti_cheat_config.allow_change_device_num = allow_change_device_num
59+
return self
60+
61+
def suspected_cheat_handle_method(self, suspected_cheat_handle_method: int) -> "AntiCheatConfigBuilder":
62+
self._anti_cheat_config.suspected_cheat_handle_method = suspected_cheat_handle_method
63+
return self
64+
65+
def build(self) -> "AntiCheatConfig":
66+
return self._anti_cheat_config
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Code generated by Lark OpenAPI.
2+
3+
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
4+
from lark_oapi.core.construct import init
5+
6+
7+
class ClockInAbnormalSettings(object):
8+
_types = {
9+
"ignore_until_latest_clockout": bool,
10+
}
11+
12+
def __init__(self, d=None):
13+
self.ignore_until_latest_clockout: Optional[bool] = None
14+
init(self, d, self._types)
15+
16+
@staticmethod
17+
def builder() -> "ClockInAbnormalSettingsBuilder":
18+
return ClockInAbnormalSettingsBuilder()
19+
20+
21+
class ClockInAbnormalSettingsBuilder(object):
22+
def __init__(self) -> None:
23+
self._clock_in_abnormal_settings = ClockInAbnormalSettings()
24+
25+
def ignore_until_latest_clockout(self, ignore_until_latest_clockout: bool) -> "ClockInAbnormalSettingsBuilder":
26+
self._clock_in_abnormal_settings.ignore_until_latest_clockout = ignore_until_latest_clockout
27+
return self
28+
29+
def build(self) -> "ClockInAbnormalSettings":
30+
return self._clock_in_abnormal_settings

lark_oapi/api/attendance/v1/model/get_group_response_body.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
44
from lark_oapi.core.construct import init
5-
from .anti_cheat_punch import AntiCheatPunch
5+
from .anti_cheat_config import AntiCheatConfig
66
from .machine import Machine
77
from .location import Location
88
from .free_punch_cfg import FreePunchCfg
@@ -15,6 +15,7 @@
1515
from .punch_member import PunchMember
1616
from .punch_member import PunchMember
1717
from .overtime_clock_cfg import OvertimeClockCfg
18+
from .clock_in_abnormal_settings import ClockInAbnormalSettings
1819

1920

2021
class GetGroupResponseBody(object):
@@ -54,7 +55,7 @@ class GetGroupResponseBody(object):
5455
"face_live_need_action": bool,
5556
"face_downgrade": bool,
5657
"replace_basic_pic": bool,
57-
"anti_cheat_punch_cfg": AntiCheatPunch,
58+
"anti_cheat_punch_config": AntiCheatConfig,
5859
"machines": List[Machine],
5960
"gps_range": int,
6061
"locations": List[Location],
@@ -89,6 +90,7 @@ class GetGroupResponseBody(object):
8990
"overtime_clock_cfg": OvertimeClockCfg,
9091
"new_calendar_id": str,
9192
"allow_apply_punch": bool,
93+
"clock_in_abnormal_settings": ClockInAbnormalSettings,
9294
}
9395

9496
def __init__(self, d=None):
@@ -127,7 +129,7 @@ def __init__(self, d=None):
127129
self.face_live_need_action: Optional[bool] = None
128130
self.face_downgrade: Optional[bool] = None
129131
self.replace_basic_pic: Optional[bool] = None
130-
self.anti_cheat_punch_cfg: Optional[AntiCheatPunch] = None
132+
self.anti_cheat_punch_config: Optional[AntiCheatConfig] = None
131133
self.machines: Optional[List[Machine]] = None
132134
self.gps_range: Optional[int] = None
133135
self.locations: Optional[List[Location]] = None
@@ -162,6 +164,7 @@ def __init__(self, d=None):
162164
self.overtime_clock_cfg: Optional[OvertimeClockCfg] = None
163165
self.new_calendar_id: Optional[str] = None
164166
self.allow_apply_punch: Optional[bool] = None
167+
self.clock_in_abnormal_settings: Optional[ClockInAbnormalSettings] = None
165168
init(self, d, self._types)
166169

167170
@staticmethod
@@ -313,8 +316,8 @@ def replace_basic_pic(self, replace_basic_pic: bool) -> "GetGroupResponseBodyBui
313316
self._get_group_response_body.replace_basic_pic = replace_basic_pic
314317
return self
315318

316-
def anti_cheat_punch_cfg(self, anti_cheat_punch_cfg: AntiCheatPunch) -> "GetGroupResponseBodyBuilder":
317-
self._get_group_response_body.anti_cheat_punch_cfg = anti_cheat_punch_cfg
319+
def anti_cheat_punch_config(self, anti_cheat_punch_config: AntiCheatConfig) -> "GetGroupResponseBodyBuilder":
320+
self._get_group_response_body.anti_cheat_punch_config = anti_cheat_punch_config
318321
return self
319322

320323
def machines(self, machines: List[Machine]) -> "GetGroupResponseBodyBuilder":
@@ -455,5 +458,10 @@ def allow_apply_punch(self, allow_apply_punch: bool) -> "GetGroupResponseBodyBui
455458
self._get_group_response_body.allow_apply_punch = allow_apply_punch
456459
return self
457460

461+
def clock_in_abnormal_settings(self,
462+
clock_in_abnormal_settings: ClockInAbnormalSettings) -> "GetGroupResponseBodyBuilder":
463+
self._get_group_response_body.clock_in_abnormal_settings = clock_in_abnormal_settings
464+
return self
465+
458466
def build(self) -> "GetGroupResponseBody":
459467
return self._get_group_response_body

0 commit comments

Comments
 (0)