@satorijs/adapter-lark 3.10.6 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/content.d.ts +211 -93
- package/lib/index.cjs +2954 -2474
- package/lib/internal.d.ts +4 -4
- package/lib/message.d.ts +2 -3
- package/lib/types/acs.d.ts +212 -172
- package/lib/types/admin.d.ts +331 -291
- package/lib/types/aily.d.ts +331 -216
- package/lib/types/apaas.d.ts +646 -494
- package/lib/types/application.d.ts +559 -458
- package/lib/types/approval.d.ts +826 -791
- package/lib/types/attendance.d.ts +1094 -994
- package/lib/types/auth.d.ts +66 -61
- package/lib/types/authen.d.ts +221 -186
- package/lib/types/baike.d.ts +258 -233
- package/lib/types/base.d.ts +74 -0
- package/lib/types/bitable.d.ts +830 -770
- package/lib/types/board.d.ts +29 -14
- package/lib/types/calendar.d.ts +660 -605
- package/lib/types/cardkit.d.ts +149 -134
- package/lib/types/compensation.d.ts +84 -49
- package/lib/types/contact.d.ts +1279 -1204
- package/lib/types/corehr.d.ts +4982 -4526
- package/lib/types/directory.d.ts +447 -0
- package/lib/types/docs.d.ts +28 -18
- package/lib/types/document_ai.d.ts +347 -252
- package/lib/types/docx.d.ts +428 -383
- package/lib/types/drive.d.ts +1093 -1048
- package/lib/types/ehr.d.ts +66 -51
- package/lib/types/event.d.ts +16 -6
- package/lib/types/helpdesk.d.ts +816 -741
- package/lib/types/hire.d.ts +3955 -3589
- package/lib/types/human_authentication.d.ts +32 -22
- package/lib/types/im.d.ts +1420 -1295
- package/lib/types/index.d.ts +1422 -330
- package/lib/types/lingo.d.ts +279 -249
- package/lib/types/mail.d.ts +1032 -675
- package/lib/types/mdm.d.ts +105 -37
- package/lib/types/minutes.d.ts +73 -26
- package/lib/types/moments.d.ts +23 -13
- package/lib/types/okr.d.ts +266 -225
- package/lib/types/optical_char_recognition.d.ts +22 -12
- package/lib/types/passport.d.ts +58 -48
- package/lib/types/payroll.d.ts +210 -53
- package/lib/types/performance.d.ts +463 -414
- package/lib/types/personal_settings.d.ts +93 -82
- package/lib/types/report.d.ts +79 -58
- package/lib/types/search.d.ts +265 -235
- package/lib/types/security_and_compliance.d.ts +30 -19
- package/lib/types/sheets.d.ts +356 -321
- package/lib/types/speech_to_text.d.ts +44 -34
- package/lib/types/task.d.ts +998 -1087
- package/lib/types/tenant.d.ts +25 -15
- package/lib/types/translation.d.ts +42 -32
- package/lib/types/trust_party.d.ts +81 -0
- package/lib/types/vc.d.ts +1218 -1123
- package/lib/types/verification.d.ts +11 -6
- package/lib/types/wiki.d.ts +270 -235
- package/lib/types/workplace.d.ts +58 -38
- package/lib/utils.d.ts +2 -2
- package/package.json +4 -4
- package/src/bot.ts +15 -15
- package/src/content.ts +230 -107
- package/src/internal.ts +29 -12
- package/src/message.ts +82 -111
- package/src/types/acs.ts +234 -186
- package/src/types/admin.ts +353 -305
- package/src/types/aily.ts +375 -233
- package/src/types/apaas.ts +754 -568
- package/src/types/application.ts +633 -507
- package/src/types/approval.ts +914 -872
- package/src/types/attendance.ts +1226 -1104
- package/src/types/auth.ts +72 -66
- package/src/types/authen.ts +233 -191
- package/src/types/baike.ts +276 -246
- package/src/types/base.ts +93 -0
- package/src/types/bitable.ts +966 -894
- package/src/types/board.ts +34 -16
- package/src/types/calendar.ts +751 -685
- package/src/types/cardkit.ts +164 -146
- package/src/types/compensation.ts +97 -55
- package/src/types/contact.ts +1465 -1375
- package/src/types/corehr.ts +5664 -5077
- package/src/types/directory.ts +569 -0
- package/src/types/docs.ts +31 -19
- package/src/types/document_ai.ts +401 -287
- package/src/types/docx.ts +492 -438
- package/src/types/drive.ts +1266 -1213
- package/src/types/ehr.ts +71 -53
- package/src/types/event.ts +19 -7
- package/src/types/helpdesk.ts +930 -840
- package/src/types/hire.ts +4453 -4019
- package/src/types/human_authentication.ts +35 -23
- package/src/types/im.ts +1626 -1476
- package/src/types/index.ts +1532 -346
- package/src/types/lingo.ts +299 -263
- package/src/types/mail.ts +1231 -779
- package/src/types/mdm.ts +122 -39
- package/src/types/minutes.ts +88 -28
- package/src/types/moments.ts +26 -14
- package/src/types/okr.ts +286 -238
- package/src/types/optical_char_recognition.ts +25 -13
- package/src/types/passport.ts +62 -50
- package/src/types/payroll.ts +254 -57
- package/src/types/performance.ts +528 -467
- package/src/types/personal_settings.ts +101 -89
- package/src/types/report.ts +86 -62
- package/src/types/search.ts +285 -249
- package/src/types/security_and_compliance.ts +33 -21
- package/src/types/sheets.ts +421 -379
- package/src/types/speech_to_text.ts +48 -36
- package/src/types/task.ts +1152 -1260
- package/src/types/tenant.ts +29 -17
- package/src/types/translation.ts +46 -34
- package/src/types/trust_party.ts +110 -0
- package/src/types/vc.ts +1397 -1283
- package/src/types/verification.ts +13 -7
- package/src/types/wiki.ts +293 -251
- package/src/types/workplace.ts +65 -41
- package/src/utils.ts +3 -3
package/src/types/passport.ts
CHANGED
|
@@ -1,70 +1,82 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Lark from '.'
|
|
2
2
|
import { Internal } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 批量获取脱敏的用户登录信息
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/passport-v1/session/query
|
|
9
|
-
*/
|
|
10
|
-
queryPassportSession(body: QueryPassportSessionRequest, query?: QueryPassportSessionQuery): Promise<QueryPassportSessionResponse>
|
|
11
|
-
/**
|
|
12
|
-
* 退出登录
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/passport-v1/session/logout
|
|
14
|
-
*/
|
|
15
|
-
logoutPassportSession(body: LogoutPassportSessionRequest, query?: LogoutPassportSessionQuery): Promise<void>
|
|
6
|
+
passport: Passport.Methods
|
|
16
7
|
}
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
10
|
+
export namespace Passport {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
session: Session.Methods
|
|
13
|
+
}
|
|
23
14
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
export namespace Session {
|
|
16
|
+
export interface Methods {
|
|
17
|
+
/**
|
|
18
|
+
* 批量获取脱敏的用户登录信息
|
|
19
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/passport-v1/session/query
|
|
20
|
+
*/
|
|
21
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>
|
|
22
|
+
/**
|
|
23
|
+
* 退出登录
|
|
24
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/passport-v1/session/logout
|
|
25
|
+
*/
|
|
26
|
+
logout(body: LogoutRequest, query?: LogoutQuery): Promise<void>
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
export interface
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
export interface QueryRequest {
|
|
30
|
+
/** 用户 ID */
|
|
31
|
+
user_ids?: string[]
|
|
32
|
+
}
|
|
33
33
|
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
IdpCredentialID = 2,
|
|
39
|
-
/** Session 标识符 */
|
|
40
|
-
SessionUUID = 3,
|
|
41
|
-
}
|
|
34
|
+
export interface QueryQuery {
|
|
35
|
+
/** 用户id类型 */
|
|
36
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
37
|
+
}
|
|
42
38
|
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
39
|
+
export interface QueryResponse {
|
|
40
|
+
/** session信息 */
|
|
41
|
+
mask_sessions?: Lark.MaskSession[]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const enum LogoutRequestLogoutType {
|
|
45
|
+
/** UserID */
|
|
46
|
+
UserID = 1,
|
|
47
|
+
/** IdpCredentialID */
|
|
48
|
+
IdpCredentialID = 2,
|
|
49
|
+
/** Session 标识符 */
|
|
50
|
+
SessionUUID = 3,
|
|
51
|
+
}
|
|
57
52
|
|
|
58
|
-
export interface
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
export interface LogoutRequest {
|
|
54
|
+
/** idp 侧的唯一标识 */
|
|
55
|
+
idp_credential_id?: string
|
|
56
|
+
/** 登出的方式 */
|
|
57
|
+
logout_type: LogoutRequestLogoutType
|
|
58
|
+
/** 登出的客户端类型,默认全部登出,1-桌面端,2-网页端,3-安卓移动端,4-Apple移动端 5-服务端 6-旧版小程序端 8-其他移动端 */
|
|
59
|
+
terminal_type?: number[]
|
|
60
|
+
/** user_id */
|
|
61
|
+
user_id?: string
|
|
62
|
+
/** 登出原因 */
|
|
63
|
+
logout_reason?: number
|
|
64
|
+
/** 需要精确登出的 session 标识符 */
|
|
65
|
+
sid?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface LogoutQuery {
|
|
69
|
+
/** user_id_type */
|
|
70
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
61
73
|
}
|
|
62
74
|
|
|
63
75
|
Internal.define({
|
|
64
76
|
'/passport/v1/sessions/query': {
|
|
65
|
-
POST: '
|
|
77
|
+
POST: 'passport.session.query',
|
|
66
78
|
},
|
|
67
79
|
'/passport/v1/sessions/logout': {
|
|
68
|
-
POST: '
|
|
80
|
+
POST: 'passport.session.logout',
|
|
69
81
|
},
|
|
70
82
|
})
|
package/src/types/payroll.ts
CHANGED
|
@@ -1,78 +1,275 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Internal, Pagination } from '../internal'
|
|
1
|
+
import * as Lark from '.'
|
|
2
|
+
import { Internal, Paginated, Pagination } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 批量查询算薪项
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/acct_item/list
|
|
9
|
-
*/
|
|
10
|
-
listPayrollAcctItem(query?: Pagination): Paginated<AcctItem>
|
|
11
|
-
/**
|
|
12
|
-
* 查询成本分摊报表汇总数据
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/cost_allocation_report/list
|
|
14
|
-
*/
|
|
15
|
-
listPayrollCostAllocationReport(query?: ListPayrollCostAllocationReportQuery): Promise<ListPayrollCostAllocationReportResponse>
|
|
16
|
-
/**
|
|
17
|
-
* 批量查询成本分摊方案
|
|
18
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/cost_allocation_plan/list
|
|
19
|
-
*/
|
|
20
|
-
listPayrollCostAllocationPlan(query?: ListPayrollCostAllocationPlanQuery): Paginated<CostAllocationPlan>
|
|
21
|
-
/**
|
|
22
|
-
* 获取薪资组基本信息
|
|
23
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list
|
|
24
|
-
*/
|
|
25
|
-
listPayrollPaygroup(query?: Pagination): Paginated<Paygroup>
|
|
6
|
+
payroll: Payroll.Methods
|
|
26
7
|
}
|
|
27
8
|
}
|
|
28
9
|
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export namespace Payroll {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
paymentActivityDetail: PaymentActivityDetail.Methods
|
|
13
|
+
paymentDetail: PaymentDetail.Methods
|
|
14
|
+
paymentActivity: PaymentActivity.Methods
|
|
15
|
+
datasourceRecord: DatasourceRecord.Methods
|
|
16
|
+
datasource: Datasource.Methods
|
|
17
|
+
acctItem: AcctItem.Methods
|
|
18
|
+
costAllocationReport: CostAllocationReport.Methods
|
|
19
|
+
costAllocationPlan: CostAllocationPlan.Methods
|
|
20
|
+
paygroup: Paygroup.Methods
|
|
21
|
+
}
|
|
37
22
|
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
23
|
+
export namespace PaymentActivityDetail {
|
|
24
|
+
export interface Methods {
|
|
25
|
+
/**
|
|
26
|
+
* 查询发薪活动明细列表
|
|
27
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/payment_activity_detail/list
|
|
28
|
+
*/
|
|
29
|
+
list(query?: ListQuery): Promise<ListResponse>
|
|
30
|
+
}
|
|
46
31
|
|
|
47
|
-
export interface
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
32
|
+
export interface ListQuery {
|
|
33
|
+
/** 页码,第一页从 1 开始 */
|
|
34
|
+
page_index: number
|
|
35
|
+
/** 每页大小,范围为:[1, 100] */
|
|
36
|
+
page_size: number
|
|
37
|
+
/** 发薪活动唯一标识 */
|
|
38
|
+
activity_id: string
|
|
39
|
+
/** 是否需要查询算薪明细的分段信息,如果不传该参数或传 false ,那么只返回发薪活动明细数据;如果该参数传了 true,那么同时返回发薪明细对应的算薪明细分段数据。 */
|
|
40
|
+
include_segment_data?: boolean
|
|
41
|
+
/** 算薪项 ID 列表。当前参数传空时,接口会返回发薪明细中所有的算薪项;当前参数不为空时,接口只返回发薪明细中与 acct_item_ids 存在交集的算薪项。 */
|
|
42
|
+
acct_item_ids?: string[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ListResponse {
|
|
46
|
+
/** 发薪明细列表 */
|
|
47
|
+
payment_activity_details?: Lark.PaymentActivityDetail[]
|
|
48
|
+
/** 发薪明细总数 */
|
|
49
|
+
total?: number
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace PaymentDetail {
|
|
54
|
+
export interface Methods {
|
|
55
|
+
/**
|
|
56
|
+
* 批量查询发薪明细
|
|
57
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/payment_detail/query
|
|
58
|
+
*/
|
|
59
|
+
query(body: QueryRequest): Promise<QueryResponse>
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface QueryRequest {
|
|
63
|
+
/** 页码,第一页从 1 开始 */
|
|
64
|
+
page_index: number
|
|
65
|
+
/** 每页大小,范围为:[1, 100] */
|
|
66
|
+
page_size: number
|
|
67
|
+
/** 算薪项 ID 列表。当前参数传空时,接口会返回发薪明细中所有的算薪项;当前参数不为空时,接口只返回发薪明细中与 acct_item_ids 存在交集的算薪项。 */
|
|
68
|
+
acct_item_ids?: string[]
|
|
69
|
+
/** 员工的飞书人事雇佣 ID 列表。 */
|
|
70
|
+
employee_ids: string[]
|
|
71
|
+
/** 发薪日开始时间,格式:YYYY-MM-dd,[pay_period_start_date, pay_period_end_date] 是一个左闭右闭区间。 */
|
|
72
|
+
pay_period_start_date?: string
|
|
73
|
+
/** 发薪日结束时间,格式:YYYY-MM-dd,[pay_period_start_date, pay_period_end_date] 是一个左闭右闭区间,pay_period_start_date 不得晚于 pay_period_end_date ,且 [pay_period_start_date, pay_period_end_date] 最大间隔为 12 个月。 */
|
|
74
|
+
pay_period_end_date?: string
|
|
75
|
+
/** 发薪活动 ID 列表 */
|
|
76
|
+
activity_ids?: string[]
|
|
77
|
+
/** 是否需要查询算薪明细的分段信息,如果不传该参数或传 false ,那么只返回发薪活动明细数据;如果该参数传了 true,那么同时返回发薪明细对应的算薪明细分段数据。 */
|
|
78
|
+
include_segment_data?: boolean
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface QueryResponse {
|
|
82
|
+
/** 发薪明细列表 */
|
|
83
|
+
payment_details?: Lark.PaymentDetail[]
|
|
84
|
+
/** 发薪明细总数 */
|
|
85
|
+
total?: number
|
|
86
|
+
}
|
|
87
|
+
}
|
|
59
88
|
|
|
60
|
-
export
|
|
61
|
-
|
|
62
|
-
|
|
89
|
+
export namespace PaymentActivity {
|
|
90
|
+
export interface Methods {
|
|
91
|
+
/**
|
|
92
|
+
* 封存发薪活动
|
|
93
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/payment_activity/archive
|
|
94
|
+
*/
|
|
95
|
+
archive(body: ArchiveRequest): Promise<void>
|
|
96
|
+
/**
|
|
97
|
+
* 查询发薪活动列表
|
|
98
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/payment_activity/list
|
|
99
|
+
*/
|
|
100
|
+
list(query?: ListQuery): Paginated<Lark.PaymentActivity, 'payment_activitys'>
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface ArchiveRequest {
|
|
104
|
+
/** 发薪活动ID */
|
|
105
|
+
activity_id: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ListQuery extends Pagination {
|
|
109
|
+
/** 发薪日开始时间,格式:YYYY-MM-dd,[pay_period_start_date, pay_period_end_date] 是一个左闭右闭区间。 */
|
|
110
|
+
pay_period_start_date: string
|
|
111
|
+
/** 发薪日结束时间,格式:YYYY-MM-dd,[pay_period_start_date, pay_period_end_date] 是一个左闭右闭区间。 */
|
|
112
|
+
pay_period_end_date: string
|
|
113
|
+
/** 发薪活动审批状态列表,其中:100-待确认发薪名单;150-待提交审批;200-审批中;300-审批被拒绝;350-审批被撤回;360-审批被撤销;375-审批通过;400-已封存。 */
|
|
114
|
+
statuses?: number[]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export namespace DatasourceRecord {
|
|
119
|
+
export interface Methods {
|
|
120
|
+
/**
|
|
121
|
+
* 创建 / 更新外部算薪数据
|
|
122
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/datasource_record/save
|
|
123
|
+
*/
|
|
124
|
+
save(body: SaveRequest): Promise<SaveResponse>
|
|
125
|
+
/**
|
|
126
|
+
* 批量查询外部算薪数据记录
|
|
127
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/datasource_record/query
|
|
128
|
+
*/
|
|
129
|
+
query(body: QueryRequest, query?: Pagination): Paginated<Lark.DatasourceRecord, 'records'>
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface SaveRequest {
|
|
133
|
+
/** 数据源code */
|
|
134
|
+
source_code: string
|
|
135
|
+
/** 需保存的记录列表 */
|
|
136
|
+
records: Lark.DatasourceRecord[]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface SaveResponse {
|
|
140
|
+
/** 更新的记录条数 */
|
|
141
|
+
affect_counts: string
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface QueryRequest {
|
|
145
|
+
/** 数据源编码 */
|
|
146
|
+
source_code: string
|
|
147
|
+
/** 指定查询的数据源字段。如不传,默认返回所有数据源字段 */
|
|
148
|
+
selected_fields?: string[]
|
|
149
|
+
/** 查询过滤器列表,多个过滤器之间为And关系。本期员工月维度汇总类型数据源,只支持employment_id、payroll_period fieldKey的查询,其中payroll_period必传 */
|
|
150
|
+
field_filters?: Lark.DatasourceRecordFieldFilter[]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace Datasource {
|
|
155
|
+
export interface Methods {
|
|
156
|
+
/**
|
|
157
|
+
* 获取外部数据源配置信息
|
|
158
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/datasource/list
|
|
159
|
+
*/
|
|
160
|
+
list(query?: Pagination): Paginated<Lark.Datasource, 'datasources'>
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export namespace AcctItem {
|
|
165
|
+
export interface Methods {
|
|
166
|
+
/**
|
|
167
|
+
* 批量查询算薪项
|
|
168
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/acct_item/list
|
|
169
|
+
*/
|
|
170
|
+
list(query?: Pagination): Paginated<Lark.AcctItem>
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export namespace CostAllocationReport {
|
|
175
|
+
export interface Methods {
|
|
176
|
+
/**
|
|
177
|
+
* 查询成本分摊报表汇总数据
|
|
178
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/cost_allocation_report/list
|
|
179
|
+
*/
|
|
180
|
+
list(query?: ListQuery): Promise<ListResponse>
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export const enum ListQueryReportType {
|
|
184
|
+
/** 默认 */
|
|
185
|
+
Default = 0,
|
|
186
|
+
/** 计提 */
|
|
187
|
+
Accrued = 1,
|
|
188
|
+
/** 实发 */
|
|
189
|
+
Paid = 2,
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface ListQuery extends Pagination {
|
|
193
|
+
/** 成本分摊方案ID */
|
|
194
|
+
cost_allocation_plan_id: string
|
|
195
|
+
/** 期间 */
|
|
196
|
+
pay_period: string
|
|
197
|
+
/** 报表类型 */
|
|
198
|
+
report_type: ListQueryReportType
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface ListResponse {
|
|
202
|
+
/** 期间 */
|
|
203
|
+
pay_period?: string
|
|
204
|
+
/** 下一页开始 */
|
|
205
|
+
page_token?: string
|
|
206
|
+
/** 是否还有更多数据 */
|
|
207
|
+
has_more?: boolean
|
|
208
|
+
/** 报表名称 */
|
|
209
|
+
cost_allocation_report_names?: Lark.I18nContent[]
|
|
210
|
+
/** 汇总数据 */
|
|
211
|
+
cost_allocation_report_datas?: Lark.CostAllocationReportData[]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export namespace CostAllocationPlan {
|
|
216
|
+
export interface Methods {
|
|
217
|
+
/**
|
|
218
|
+
* 批量查询成本分摊方案
|
|
219
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/cost_allocation_plan/list
|
|
220
|
+
*/
|
|
221
|
+
list(query?: ListQuery): Paginated<Lark.CostAllocationPlan>
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface ListQuery extends Pagination {
|
|
225
|
+
/** 期间 */
|
|
226
|
+
pay_period: string
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export namespace Paygroup {
|
|
231
|
+
export interface Methods {
|
|
232
|
+
/**
|
|
233
|
+
* 获取薪资组基本信息
|
|
234
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list
|
|
235
|
+
*/
|
|
236
|
+
list(query?: Pagination): Paginated<Lark.Paygroup>
|
|
237
|
+
}
|
|
238
|
+
}
|
|
63
239
|
}
|
|
64
240
|
|
|
65
241
|
Internal.define({
|
|
242
|
+
'/payroll/v1/payment_activity_details': {
|
|
243
|
+
GET: 'payroll.paymentActivityDetail.list',
|
|
244
|
+
},
|
|
245
|
+
'/payroll/v1/payment_detail/query': {
|
|
246
|
+
POST: 'payroll.paymentDetail.query',
|
|
247
|
+
},
|
|
248
|
+
'/payroll/v1/payment_activitys/archive': {
|
|
249
|
+
POST: 'payroll.paymentActivity.archive',
|
|
250
|
+
},
|
|
251
|
+
'/payroll/v1/payment_activitys': {
|
|
252
|
+
GET: { name: 'payroll.paymentActivity.list', pagination: { argIndex: 0, itemsKey: 'payment_activitys' } },
|
|
253
|
+
},
|
|
254
|
+
'/payroll/v1/datasource_records/save': {
|
|
255
|
+
POST: 'payroll.datasourceRecord.save',
|
|
256
|
+
},
|
|
257
|
+
'/payroll/v1/datasource_records/query': {
|
|
258
|
+
POST: { name: 'payroll.datasourceRecord.query', pagination: { argIndex: 1, itemsKey: 'records' } },
|
|
259
|
+
},
|
|
260
|
+
'/payroll/v1/datasources': {
|
|
261
|
+
GET: { name: 'payroll.datasource.list', pagination: { argIndex: 0, itemsKey: 'datasources' } },
|
|
262
|
+
},
|
|
66
263
|
'/payroll/v1/acct_items': {
|
|
67
|
-
GET: { name: '
|
|
264
|
+
GET: { name: 'payroll.acctItem.list', pagination: { argIndex: 0 } },
|
|
68
265
|
},
|
|
69
266
|
'/payroll/v1/cost_allocation_reports': {
|
|
70
|
-
GET: '
|
|
267
|
+
GET: 'payroll.costAllocationReport.list',
|
|
71
268
|
},
|
|
72
269
|
'/payroll/v1/cost_allocation_plans': {
|
|
73
|
-
GET: { name: '
|
|
270
|
+
GET: { name: 'payroll.costAllocationPlan.list', pagination: { argIndex: 0 } },
|
|
74
271
|
},
|
|
75
272
|
'/payroll/v1/paygroups': {
|
|
76
|
-
GET: { name: '
|
|
273
|
+
GET: { name: 'payroll.paygroup.list', pagination: { argIndex: 0 } },
|
|
77
274
|
},
|
|
78
275
|
})
|