@satorijs/adapter-lark 3.9.0 → 3.9.2
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/index.cjs +1091 -27
- package/lib/internal.d.ts +2 -3
- package/lib/types/acs.d.ts +19 -19
- package/lib/types/admin.d.ts +58 -32
- package/lib/types/aily.d.ts +52 -52
- package/lib/types/apaas.d.ts +96 -96
- package/lib/types/api.d.ts +14 -1
- package/lib/types/application.d.ts +153 -69
- package/lib/types/approval.d.ts +186 -154
- package/lib/types/attendance.d.ts +395 -353
- package/lib/types/auth.d.ts +18 -18
- package/lib/types/authen.d.ts +24 -24
- package/lib/types/baike.d.ts +42 -42
- package/lib/types/bitable.d.ts +276 -192
- package/lib/types/calendar.d.ts +144 -144
- package/lib/types/cardkit.d.ts +8 -8
- package/lib/types/contact.d.ts +209 -137
- package/lib/types/corehr.d.ts +761 -613
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +237 -229
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +156 -148
- package/lib/types/hire.d.ts +954 -510
- package/lib/types/im.d.ts +446 -446
- package/lib/types/index.d.ts +72 -30
- package/lib/types/lingo.d.ts +28 -28
- package/lib/types/mail.d.ts +192 -192
- package/lib/types/minutes.d.ts +4 -4
- package/lib/types/okr.d.ts +86 -58
- package/lib/types/passport.d.ts +13 -5
- package/lib/types/payroll.d.ts +13 -5
- package/lib/types/performance.d.ts +85 -79
- package/lib/types/personal_settings.d.ts +12 -12
- package/lib/types/report.d.ts +11 -5
- package/lib/types/search.d.ts +48 -24
- package/lib/types/sheets.d.ts +64 -64
- package/lib/types/speech_to_text.d.ts +4 -4
- package/lib/types/task.d.ts +191 -185
- package/lib/types/translation.d.ts +4 -4
- package/lib/types/vc.d.ts +335 -155
- package/lib/types/wiki.d.ts +48 -48
- package/package.json +1 -1
- package/src/internal.ts +3 -4
- package/src/types/acs.ts +24 -24
- package/src/types/admin.ts +69 -39
- package/src/types/aily.ts +61 -61
- package/src/types/apaas.ts +113 -113
- package/src/types/application.ts +177 -83
- package/src/types/approval.ts +210 -174
- package/src/types/attendance.ts +466 -421
- package/src/types/auth.ts +20 -20
- package/src/types/authen.ts +28 -28
- package/src/types/baike.ts +55 -55
- package/src/types/bitable.ts +321 -235
- package/src/types/calendar.ts +167 -167
- package/src/types/cardkit.ts +10 -10
- package/src/types/contact.ts +251 -169
- package/src/types/corehr.ts +905 -736
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +299 -290
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +182 -173
- package/src/types/hire.ts +1081 -591
- package/src/types/im.ts +521 -521
- package/src/types/index.ts +73 -30
- package/src/types/lingo.ts +36 -36
- package/src/types/mail.ts +215 -215
- package/src/types/minutes.ts +5 -5
- package/src/types/okr.ts +98 -66
- package/src/types/passport.ts +15 -6
- package/src/types/payroll.ts +15 -6
- package/src/types/performance.ts +98 -91
- package/src/types/personal_settings.ts +15 -15
- package/src/types/report.ts +13 -6
- package/src/types/search.ts +57 -29
- package/src/types/sheets.ts +80 -80
- package/src/types/speech_to_text.ts +5 -5
- package/src/types/task.ts +238 -231
- package/src/types/translation.ts +5 -5
- package/src/types/vc.ts +386 -186
- package/src/types/wiki.ts +59 -59
- package/src/utils.ts +11 -6
- package/lib/index.cjs.map +0 -6
- package/lib/types/guild.d.ts +0 -59
- package/lib/types/message/asset.d.ts +0 -40
- package/lib/types/user.d.ts +0 -78
- package/lib/types/utils.d.ts +0 -9
package/src/types/okr.ts
CHANGED
|
@@ -73,9 +73,48 @@ export interface CreateOkrPeriodRequest {
|
|
|
73
73
|
start_month: string
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export interface CreateOkrPeriodResponse {
|
|
77
|
+
/** 周期id */
|
|
78
|
+
period_id?: string
|
|
79
|
+
/** 周期起始年月 */
|
|
80
|
+
start_month?: string
|
|
81
|
+
/** 周期结束年月 */
|
|
82
|
+
end_month?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const enum PatchOkrPeriodRequestStatus {
|
|
86
|
+
/** 正常状态 */
|
|
87
|
+
NormalStatus = 1,
|
|
88
|
+
/** 标记失效 */
|
|
89
|
+
MarkInvalid = 2,
|
|
90
|
+
/** 隐藏周期 */
|
|
91
|
+
HiddenPeriod = 3,
|
|
92
|
+
}
|
|
93
|
+
|
|
76
94
|
export interface PatchOkrPeriodRequest {
|
|
77
95
|
/** 周期显示状态 */
|
|
78
|
-
status:
|
|
96
|
+
status: PatchOkrPeriodRequestStatus
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const enum PatchOkrPeriodResponseStatus {
|
|
100
|
+
/** 正常状态 */
|
|
101
|
+
NormalStatus = 1,
|
|
102
|
+
/** 标记失效 */
|
|
103
|
+
MarkInvalid = 2,
|
|
104
|
+
/** 隐藏周期 */
|
|
105
|
+
HiddenPeriod = 3,
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface PatchOkrPeriodResponse {
|
|
109
|
+
/** 周期规则id */
|
|
110
|
+
period_id?: string
|
|
111
|
+
/** 周期显示状态 */
|
|
112
|
+
status?: PatchOkrPeriodResponseStatus
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ListOkrPeriodRuleResponse {
|
|
116
|
+
/** 指标库列表 */
|
|
117
|
+
period_rules?: PeriodRule[]
|
|
79
118
|
}
|
|
80
119
|
|
|
81
120
|
export interface ListOkrUserOkrQuery {
|
|
@@ -91,6 +130,13 @@ export interface ListOkrUserOkrQuery {
|
|
|
91
130
|
period_ids?: string[]
|
|
92
131
|
}
|
|
93
132
|
|
|
133
|
+
export interface ListOkrUserOkrResponse {
|
|
134
|
+
/** OKR周期总数 */
|
|
135
|
+
total?: number
|
|
136
|
+
/** OKR 列表 */
|
|
137
|
+
okr_list?: OkrBatch[]
|
|
138
|
+
}
|
|
139
|
+
|
|
94
140
|
export interface BatchGetOkrQuery {
|
|
95
141
|
/** 此次调用中使用的用户ID的类型 */
|
|
96
142
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
@@ -100,6 +146,18 @@ export interface BatchGetOkrQuery {
|
|
|
100
146
|
lang?: string
|
|
101
147
|
}
|
|
102
148
|
|
|
149
|
+
export interface BatchGetOkrResponse {
|
|
150
|
+
/** OKR 列表 */
|
|
151
|
+
okr_list?: OkrBatch[]
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export const enum CreateOkrProgressRecordRequestTargetType {
|
|
155
|
+
/** okr的O */
|
|
156
|
+
Objective = 2,
|
|
157
|
+
/** okr的KR */
|
|
158
|
+
KeyResult = 3,
|
|
159
|
+
}
|
|
160
|
+
|
|
103
161
|
export interface CreateOkrProgressRecordRequest {
|
|
104
162
|
/** 进展来源 */
|
|
105
163
|
source_title: string
|
|
@@ -108,7 +166,7 @@ export interface CreateOkrProgressRecordRequest {
|
|
|
108
166
|
/** 目标id,与target_type对应 */
|
|
109
167
|
target_id: string
|
|
110
168
|
/** 目标类型 */
|
|
111
|
-
target_type:
|
|
169
|
+
target_type: CreateOkrProgressRecordRequestTargetType
|
|
112
170
|
/** 进展详情 富文本格式 */
|
|
113
171
|
content: ContentBlock
|
|
114
172
|
/** pc进展来源链接 */
|
|
@@ -122,6 +180,15 @@ export interface CreateOkrProgressRecordQuery {
|
|
|
122
180
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
123
181
|
}
|
|
124
182
|
|
|
183
|
+
export interface CreateOkrProgressRecordResponse {
|
|
184
|
+
/** OKR 进展ID */
|
|
185
|
+
progress_id?: string
|
|
186
|
+
/** 进展更新时间 毫秒 */
|
|
187
|
+
modify_time?: string
|
|
188
|
+
/** 进展 对应的 Content 详细内容 */
|
|
189
|
+
content?: ContentBlock
|
|
190
|
+
}
|
|
191
|
+
|
|
125
192
|
export interface UpdateOkrProgressRecordRequest {
|
|
126
193
|
/** 进展详情 富文本格式 */
|
|
127
194
|
content: ContentBlock
|
|
@@ -132,63 +199,7 @@ export interface UpdateOkrProgressRecordQuery {
|
|
|
132
199
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
133
200
|
}
|
|
134
201
|
|
|
135
|
-
export interface
|
|
136
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
137
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface UploadOkrImageForm {
|
|
141
|
-
/** 图片 */
|
|
142
|
-
data: Blob
|
|
143
|
-
/** 图片的目标ID */
|
|
144
|
-
target_id: string
|
|
145
|
-
/** 图片使用的目标类型 */
|
|
146
|
-
target_type: 2 | 3
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface QueryOkrReviewQuery {
|
|
150
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
151
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
152
|
-
/** 目标用户id列表,最多5个 */
|
|
153
|
-
user_ids: string[]
|
|
154
|
-
/** period_id列表,最多5个 */
|
|
155
|
-
period_ids: string[]
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface CreateOkrPeriodResponse {
|
|
159
|
-
/** 周期id */
|
|
160
|
-
period_id?: string
|
|
161
|
-
/** 周期起始年月 */
|
|
162
|
-
start_month?: string
|
|
163
|
-
/** 周期结束年月 */
|
|
164
|
-
end_month?: string
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface PatchOkrPeriodResponse {
|
|
168
|
-
/** 周期规则id */
|
|
169
|
-
period_id?: string
|
|
170
|
-
/** 周期显示状态 */
|
|
171
|
-
status?: 1 | 2 | 3
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface ListOkrPeriodRuleResponse {
|
|
175
|
-
/** 指标库列表 */
|
|
176
|
-
period_rules?: PeriodRule[]
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface ListOkrUserOkrResponse {
|
|
180
|
-
/** OKR周期总数 */
|
|
181
|
-
total?: number
|
|
182
|
-
/** OKR 列表 */
|
|
183
|
-
okr_list?: OkrBatch[]
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface BatchGetOkrResponse {
|
|
187
|
-
/** OKR 列表 */
|
|
188
|
-
okr_list?: OkrBatch[]
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface CreateOkrProgressRecordResponse {
|
|
202
|
+
export interface UpdateOkrProgressRecordResponse {
|
|
192
203
|
/** OKR 进展ID */
|
|
193
204
|
progress_id?: string
|
|
194
205
|
/** 进展更新时间 毫秒 */
|
|
@@ -197,13 +208,9 @@ export interface CreateOkrProgressRecordResponse {
|
|
|
197
208
|
content?: ContentBlock
|
|
198
209
|
}
|
|
199
210
|
|
|
200
|
-
export interface
|
|
201
|
-
/**
|
|
202
|
-
|
|
203
|
-
/** 进展更新时间 毫秒 */
|
|
204
|
-
modify_time?: string
|
|
205
|
-
/** 进展 对应的 Content 详细内容 */
|
|
206
|
-
content?: ContentBlock
|
|
211
|
+
export interface GetOkrProgressRecordQuery {
|
|
212
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
213
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
207
214
|
}
|
|
208
215
|
|
|
209
216
|
export interface GetOkrProgressRecordResponse {
|
|
@@ -215,6 +222,22 @@ export interface GetOkrProgressRecordResponse {
|
|
|
215
222
|
content?: ContentBlock
|
|
216
223
|
}
|
|
217
224
|
|
|
225
|
+
export const enum UploadOkrImageFormTargetType {
|
|
226
|
+
/** okr的O */
|
|
227
|
+
Objective = 2,
|
|
228
|
+
/** okr的KR */
|
|
229
|
+
KeyResult = 3,
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface UploadOkrImageForm {
|
|
233
|
+
/** 图片 */
|
|
234
|
+
data: Blob
|
|
235
|
+
/** 图片的目标ID */
|
|
236
|
+
target_id: string
|
|
237
|
+
/** 图片使用的目标类型 */
|
|
238
|
+
target_type: UploadOkrImageFormTargetType
|
|
239
|
+
}
|
|
240
|
+
|
|
218
241
|
export interface UploadOkrImageResponse {
|
|
219
242
|
/** 图片token */
|
|
220
243
|
file_token?: string
|
|
@@ -222,6 +245,15 @@ export interface UploadOkrImageResponse {
|
|
|
222
245
|
url?: string
|
|
223
246
|
}
|
|
224
247
|
|
|
248
|
+
export interface QueryOkrReviewQuery {
|
|
249
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
250
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
251
|
+
/** 目标用户id列表,最多5个 */
|
|
252
|
+
user_ids: string[]
|
|
253
|
+
/** period_id列表,最多5个 */
|
|
254
|
+
period_ids: string[]
|
|
255
|
+
}
|
|
256
|
+
|
|
225
257
|
export interface QueryOkrReviewResponse {
|
|
226
258
|
/** OKR复盘 列表 */
|
|
227
259
|
review_list?: OkrReview[]
|
package/src/types/passport.ts
CHANGED
|
@@ -26,11 +26,25 @@ export interface QueryPassportSessionQuery {
|
|
|
26
26
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export interface QueryPassportSessionResponse {
|
|
30
|
+
/** session信息 */
|
|
31
|
+
mask_sessions?: MaskSession[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const enum LogoutPassportSessionRequestLogoutType {
|
|
35
|
+
/** UserID */
|
|
36
|
+
UserID = 1,
|
|
37
|
+
/** IdpCredentialID */
|
|
38
|
+
IdpCredentialID = 2,
|
|
39
|
+
/** Session 标识符 */
|
|
40
|
+
SessionUUID = 3,
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
export interface LogoutPassportSessionRequest {
|
|
30
44
|
/** idp 侧的唯一标识 */
|
|
31
45
|
idp_credential_id?: string
|
|
32
46
|
/** 登出的方式 */
|
|
33
|
-
logout_type:
|
|
47
|
+
logout_type: LogoutPassportSessionRequestLogoutType
|
|
34
48
|
/** 登出的客户端类型,默认全部登出,1-桌面端,2-网页端,3-安卓移动端,4-Apple移动端 5-服务端 6-旧版小程序端 8-其他移动端 */
|
|
35
49
|
terminal_type?: number[]
|
|
36
50
|
/** user_id */
|
|
@@ -46,11 +60,6 @@ export interface LogoutPassportSessionQuery {
|
|
|
46
60
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
47
61
|
}
|
|
48
62
|
|
|
49
|
-
export interface QueryPassportSessionResponse {
|
|
50
|
-
/** session信息 */
|
|
51
|
-
mask_sessions?: MaskSession[]
|
|
52
|
-
}
|
|
53
|
-
|
|
54
63
|
Internal.define({
|
|
55
64
|
'/passport/v1/sessions/query': {
|
|
56
65
|
POST: 'queryPassportSession',
|
package/src/types/payroll.ts
CHANGED
|
@@ -26,18 +26,22 @@ declare module '../internal' {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export const enum ListPayrollCostAllocationReportQueryReportType {
|
|
30
|
+
/** 默认 */
|
|
31
|
+
Default = 0,
|
|
32
|
+
/** 计提 */
|
|
33
|
+
Accrued = 1,
|
|
34
|
+
/** 实发 */
|
|
35
|
+
Paid = 2,
|
|
36
|
+
}
|
|
37
|
+
|
|
29
38
|
export interface ListPayrollCostAllocationReportQuery extends Pagination {
|
|
30
39
|
/** 成本分摊方案ID */
|
|
31
40
|
cost_allocation_plan_id: string
|
|
32
41
|
/** 期间 */
|
|
33
42
|
pay_period: string
|
|
34
43
|
/** 报表类型 */
|
|
35
|
-
report_type:
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ListPayrollCostAllocationPlanQuery extends Pagination {
|
|
39
|
-
/** 期间 */
|
|
40
|
-
pay_period: string
|
|
44
|
+
report_type: ListPayrollCostAllocationReportQueryReportType
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
export interface ListPayrollCostAllocationReportResponse {
|
|
@@ -53,6 +57,11 @@ export interface ListPayrollCostAllocationReportResponse {
|
|
|
53
57
|
cost_allocation_report_datas?: CostAllocationReportData[]
|
|
54
58
|
}
|
|
55
59
|
|
|
60
|
+
export interface ListPayrollCostAllocationPlanQuery extends Pagination {
|
|
61
|
+
/** 期间 */
|
|
62
|
+
pay_period: string
|
|
63
|
+
}
|
|
64
|
+
|
|
56
65
|
Internal.define({
|
|
57
66
|
'/payroll/v1/acct_items': {
|
|
58
67
|
GET: { name: 'listPayrollAcctItem', pagination: { argIndex: 0 } },
|
package/src/types/performance.ts
CHANGED
|
@@ -121,6 +121,11 @@ export interface ListPerformanceV1SemesterQuery {
|
|
|
121
121
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
export interface ListPerformanceV1SemesterResponse {
|
|
125
|
+
/** 周期meta信息列表 */
|
|
126
|
+
items?: Semester[]
|
|
127
|
+
}
|
|
128
|
+
|
|
124
129
|
export interface QueryPerformanceV2ActivityRequest {
|
|
125
130
|
/** 评估周期 ID 列表,获取指定评估周期的项目 ID,semester_id 可通过【获取周期】接口获得 */
|
|
126
131
|
semester_ids?: string[]
|
|
@@ -132,6 +137,11 @@ export interface QueryPerformanceV2ActivityQuery {
|
|
|
132
137
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
133
138
|
}
|
|
134
139
|
|
|
140
|
+
export interface QueryPerformanceV2ActivityResponse {
|
|
141
|
+
/** 绩效评估项目列表。 */
|
|
142
|
+
activities?: Activity[]
|
|
143
|
+
}
|
|
144
|
+
|
|
135
145
|
export interface QueryPerformanceV2AdditionalInformationRequest {
|
|
136
146
|
/** 评估周期 ID 列表,semester_id 可通过【获取周期】接口获得 */
|
|
137
147
|
semester_id: string
|
|
@@ -162,6 +172,13 @@ export interface ImportPerformanceV2AdditionalInformationQuery {
|
|
|
162
172
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
163
173
|
}
|
|
164
174
|
|
|
175
|
+
export interface ImportPerformanceV2AdditionalInformationResponse {
|
|
176
|
+
/** 导入记录 ID */
|
|
177
|
+
import_record_id?: string
|
|
178
|
+
/** 成功导入后的补充信息列表 */
|
|
179
|
+
additional_informations?: AdditionalInformation[]
|
|
180
|
+
}
|
|
181
|
+
|
|
165
182
|
export interface DeletePerformanceV2AdditionalInformationsBatchRequest {
|
|
166
183
|
/** 评估周期 ID 列表,semester_id 可通过【获取周期】接口获得 */
|
|
167
184
|
semester_id: string
|
|
@@ -173,11 +190,23 @@ export interface DeletePerformanceV2AdditionalInformationsBatchQuery {
|
|
|
173
190
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
174
191
|
}
|
|
175
192
|
|
|
193
|
+
export interface DeletePerformanceV2AdditionalInformationsBatchResponse {
|
|
194
|
+
/** 被删除的补充信息列表 */
|
|
195
|
+
additional_informations?: string[]
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export const enum WritePerformanceV2UserGroupUserRelRequestScopeVisibleSetting {
|
|
199
|
+
/** 无限制 */
|
|
200
|
+
NotLimit = 0,
|
|
201
|
+
/** 后台管理员不可见 */
|
|
202
|
+
BackendAdminNotVisible = 1,
|
|
203
|
+
}
|
|
204
|
+
|
|
176
205
|
export interface WritePerformanceV2UserGroupUserRelRequest {
|
|
177
206
|
/** 分组id key */
|
|
178
207
|
group_id?: string
|
|
179
208
|
/** 人员组查看人员名单可见性配置 */
|
|
180
|
-
scope_visible_setting?:
|
|
209
|
+
scope_visible_setting?: WritePerformanceV2UserGroupUserRelRequestScopeVisibleSetting
|
|
181
210
|
/** 人员列表 */
|
|
182
211
|
user_ids?: string[]
|
|
183
212
|
}
|
|
@@ -189,6 +218,11 @@ export interface WritePerformanceV2UserGroupUserRelQuery {
|
|
|
189
218
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
190
219
|
}
|
|
191
220
|
|
|
221
|
+
export interface WritePerformanceV2UserGroupUserRelResponse {
|
|
222
|
+
/** 写入员工范围响应 */
|
|
223
|
+
data?: WriteUserGroupScopeData
|
|
224
|
+
}
|
|
225
|
+
|
|
192
226
|
export interface QueryPerformanceV2RevieweeRequest {
|
|
193
227
|
/** 周期 ID,1 次只允许查询 1 个周期,semester_id 可通过【获取周期】接口获得 */
|
|
194
228
|
semester_id: string
|
|
@@ -202,6 +236,17 @@ export interface QueryPerformanceV2RevieweeQuery extends Pagination {
|
|
|
202
236
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
203
237
|
}
|
|
204
238
|
|
|
239
|
+
export interface QueryPerformanceV2RevieweeResponse {
|
|
240
|
+
/** 周期ID */
|
|
241
|
+
semester_id?: string
|
|
242
|
+
/** 被评估人列表 */
|
|
243
|
+
reviewees?: Reviewee[]
|
|
244
|
+
/** 是否还有更多项 */
|
|
245
|
+
has_more?: boolean
|
|
246
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
247
|
+
page_token?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
205
250
|
export interface QueryPerformanceV2ReviewTemplateRequest {
|
|
206
251
|
/** 评估模板 ID 列表,获取指定评估模板的配置数据。如果不传则返回所有 */
|
|
207
252
|
review_template_ids?: string[]
|
|
@@ -250,6 +295,11 @@ export interface QueryPerformanceV2MetricFieldRequest {
|
|
|
250
295
|
field_ids?: string[]
|
|
251
296
|
}
|
|
252
297
|
|
|
298
|
+
export interface QueryPerformanceV2MetricFieldResponse {
|
|
299
|
+
/** 指标字段信息 */
|
|
300
|
+
items?: MetricField[]
|
|
301
|
+
}
|
|
302
|
+
|
|
253
303
|
export interface ListPerformanceV2MetricTagQuery extends Pagination {
|
|
254
304
|
/** 指标标签 ID 列表 */
|
|
255
305
|
tag_ids?: string[]
|
|
@@ -273,6 +323,13 @@ export interface FindByUserListPerformanceV1StageTaskQuery {
|
|
|
273
323
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
274
324
|
}
|
|
275
325
|
|
|
326
|
+
export interface FindByUserListPerformanceV1StageTaskResponse {
|
|
327
|
+
/** 周期基础信息 */
|
|
328
|
+
base?: SemesterBaseInfo
|
|
329
|
+
/** 周期环节信息列表 */
|
|
330
|
+
items?: StageTask[]
|
|
331
|
+
}
|
|
332
|
+
|
|
276
333
|
export interface FindByPagePerformanceV1StageTaskRequest {
|
|
277
334
|
/** 周期ID,可以通过「查询周期」接口获得 */
|
|
278
335
|
semester_id: string
|
|
@@ -293,6 +350,17 @@ export interface FindByPagePerformanceV1StageTaskQuery {
|
|
|
293
350
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
294
351
|
}
|
|
295
352
|
|
|
353
|
+
export interface FindByPagePerformanceV1StageTaskResponse {
|
|
354
|
+
/** 周期基础信息 */
|
|
355
|
+
base?: SemesterBaseInfo
|
|
356
|
+
/** 周期环节信息列表 */
|
|
357
|
+
items?: StageTask[]
|
|
358
|
+
/** 是否有下一页数据 */
|
|
359
|
+
has_more?: boolean
|
|
360
|
+
/** 下一页分页的token */
|
|
361
|
+
page_token?: string
|
|
362
|
+
}
|
|
363
|
+
|
|
296
364
|
export interface QueryPerformanceV2MetricDetailRequest {
|
|
297
365
|
/** 周期 ID,1 次只允许查询 1 个周期,semester_id 可通过【获取周期】接口获得 */
|
|
298
366
|
semester_id: string
|
|
@@ -304,6 +372,13 @@ export interface QueryPerformanceV2MetricDetailQuery {
|
|
|
304
372
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
305
373
|
}
|
|
306
374
|
|
|
375
|
+
export interface QueryPerformanceV2MetricDetailResponse {
|
|
376
|
+
/** 周期ID */
|
|
377
|
+
semester_id?: string
|
|
378
|
+
/** 指标明细列表 */
|
|
379
|
+
reviewee_metrics?: RevieweeMetric[]
|
|
380
|
+
}
|
|
381
|
+
|
|
307
382
|
export interface ImportPerformanceV2MetricDetailRequest {
|
|
308
383
|
/** 周期 ID,semester_id 可通过【获取周期】接口获得 */
|
|
309
384
|
semester_id: string
|
|
@@ -320,6 +395,11 @@ export interface ImportPerformanceV2MetricDetailQuery {
|
|
|
320
395
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
321
396
|
}
|
|
322
397
|
|
|
398
|
+
export interface ImportPerformanceV2MetricDetailResponse {
|
|
399
|
+
/** 成功时返回导入记录 ID,失败时则为 null */
|
|
400
|
+
import_record_id?: string
|
|
401
|
+
}
|
|
402
|
+
|
|
323
403
|
export interface QueryPerformanceV1ReviewDataRequest {
|
|
324
404
|
/** 查询范围的开始日期,毫秒级时间戳,开始日期不能晚于截止日期 */
|
|
325
405
|
start_time: string
|
|
@@ -342,6 +422,23 @@ export interface QueryPerformanceV1ReviewDataQuery {
|
|
|
342
422
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
343
423
|
}
|
|
344
424
|
|
|
425
|
+
export interface QueryPerformanceV1ReviewDataResponse {
|
|
426
|
+
/** 绩效评估周期列表 */
|
|
427
|
+
semesters?: Semester[]
|
|
428
|
+
/** 绩效评估项目列表 */
|
|
429
|
+
activities?: Activity[]
|
|
430
|
+
/** 评估项列表 */
|
|
431
|
+
indicators?: Indicator[]
|
|
432
|
+
/** 评估模板列表 */
|
|
433
|
+
templates?: Template[]
|
|
434
|
+
/** 评估内容列表 */
|
|
435
|
+
units?: Unit[]
|
|
436
|
+
/** 填写项列表 */
|
|
437
|
+
fields?: Field[]
|
|
438
|
+
/** 评估数据列表 */
|
|
439
|
+
datas?: ReviewProfile[]
|
|
440
|
+
}
|
|
441
|
+
|
|
345
442
|
export interface QueryPerformanceV2ReviewDataRequest {
|
|
346
443
|
/** 评估周期 ID 列表,semester_id 可通过【获取周期】 */
|
|
347
444
|
semester_ids: string[]
|
|
@@ -365,96 +462,6 @@ export interface QueryPerformanceV2ReviewDataQuery {
|
|
|
365
462
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id'
|
|
366
463
|
}
|
|
367
464
|
|
|
368
|
-
export interface ListPerformanceV1SemesterResponse {
|
|
369
|
-
/** 周期meta信息列表 */
|
|
370
|
-
items?: Semester[]
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export interface QueryPerformanceV2ActivityResponse {
|
|
374
|
-
/** 绩效评估项目列表。 */
|
|
375
|
-
activities?: Activity[]
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export interface ImportPerformanceV2AdditionalInformationResponse {
|
|
379
|
-
/** 导入记录 ID */
|
|
380
|
-
import_record_id?: string
|
|
381
|
-
/** 成功导入后的补充信息列表 */
|
|
382
|
-
additional_informations?: AdditionalInformation[]
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export interface DeletePerformanceV2AdditionalInformationsBatchResponse {
|
|
386
|
-
/** 被删除的补充信息列表 */
|
|
387
|
-
additional_informations?: string[]
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export interface WritePerformanceV2UserGroupUserRelResponse {
|
|
391
|
-
/** 写入员工范围响应 */
|
|
392
|
-
data?: WriteUserGroupScopeData
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export interface QueryPerformanceV2RevieweeResponse {
|
|
396
|
-
/** 周期ID */
|
|
397
|
-
semester_id?: string
|
|
398
|
-
/** 被评估人列表 */
|
|
399
|
-
reviewees?: Reviewee[]
|
|
400
|
-
/** 是否还有更多项 */
|
|
401
|
-
has_more?: boolean
|
|
402
|
-
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
403
|
-
page_token?: string
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export interface QueryPerformanceV2MetricFieldResponse {
|
|
407
|
-
/** 指标字段信息 */
|
|
408
|
-
items?: MetricField[]
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export interface FindByUserListPerformanceV1StageTaskResponse {
|
|
412
|
-
/** 周期基础信息 */
|
|
413
|
-
base?: SemesterBaseInfo
|
|
414
|
-
/** 周期环节信息列表 */
|
|
415
|
-
items?: StageTask[]
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export interface FindByPagePerformanceV1StageTaskResponse {
|
|
419
|
-
/** 周期基础信息 */
|
|
420
|
-
base?: SemesterBaseInfo
|
|
421
|
-
/** 周期环节信息列表 */
|
|
422
|
-
items?: StageTask[]
|
|
423
|
-
/** 是否有下一页数据 */
|
|
424
|
-
has_more?: boolean
|
|
425
|
-
/** 下一页分页的token */
|
|
426
|
-
page_token?: string
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export interface QueryPerformanceV2MetricDetailResponse {
|
|
430
|
-
/** 周期ID */
|
|
431
|
-
semester_id?: string
|
|
432
|
-
/** 指标明细列表 */
|
|
433
|
-
reviewee_metrics?: RevieweeMetric[]
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export interface ImportPerformanceV2MetricDetailResponse {
|
|
437
|
-
/** 成功时返回导入记录 ID,失败时则为 null */
|
|
438
|
-
import_record_id?: string
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export interface QueryPerformanceV1ReviewDataResponse {
|
|
442
|
-
/** 绩效评估周期列表 */
|
|
443
|
-
semesters?: Semester[]
|
|
444
|
-
/** 绩效评估项目列表 */
|
|
445
|
-
activities?: Activity[]
|
|
446
|
-
/** 评估项列表 */
|
|
447
|
-
indicators?: Indicator[]
|
|
448
|
-
/** 评估模板列表 */
|
|
449
|
-
templates?: Template[]
|
|
450
|
-
/** 评估内容列表 */
|
|
451
|
-
units?: Unit[]
|
|
452
|
-
/** 填写项列表 */
|
|
453
|
-
fields?: Field[]
|
|
454
|
-
/** 评估数据列表 */
|
|
455
|
-
datas?: ReviewProfile[]
|
|
456
|
-
}
|
|
457
|
-
|
|
458
465
|
export interface QueryPerformanceV2ReviewDataResponse {
|
|
459
466
|
/** 评估数据列表 */
|
|
460
467
|
datas?: ReviewProfile[]
|
|
@@ -51,6 +51,11 @@ export interface CreatePersonalSettingsSystemStatusRequest {
|
|
|
51
51
|
sync_setting?: SystemStatusSyncSetting
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface CreatePersonalSettingsSystemStatusResponse {
|
|
55
|
+
/** 系统状态 */
|
|
56
|
+
system_status?: SystemStatus
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
export interface PatchPersonalSettingsSystemStatusRequest {
|
|
55
60
|
/** 系统状态 */
|
|
56
61
|
system_status: SystemStatus
|
|
@@ -58,6 +63,11 @@ export interface PatchPersonalSettingsSystemStatusRequest {
|
|
|
58
63
|
update_fields: ('TITLE' | 'I18N_TITLE' | 'ICON' | 'COLOR' | 'PRIORITY' | 'SYNC_SETTING')[]
|
|
59
64
|
}
|
|
60
65
|
|
|
66
|
+
export interface PatchPersonalSettingsSystemStatusResponse {
|
|
67
|
+
/** 系统状态 */
|
|
68
|
+
system_status?: SystemStatus
|
|
69
|
+
}
|
|
70
|
+
|
|
61
71
|
export interface BatchOpenPersonalSettingsSystemStatusRequest {
|
|
62
72
|
/** 开启列表 */
|
|
63
73
|
user_list: SystemStatusUserOpenParam[]
|
|
@@ -68,6 +78,11 @@ export interface BatchOpenPersonalSettingsSystemStatusQuery {
|
|
|
68
78
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
69
79
|
}
|
|
70
80
|
|
|
81
|
+
export interface BatchOpenPersonalSettingsSystemStatusResponse {
|
|
82
|
+
/** 开启结果 */
|
|
83
|
+
result_list: SystemStatusUserOpenResultEntity[]
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
export interface BatchClosePersonalSettingsSystemStatusRequest {
|
|
72
87
|
/** 成员列表 */
|
|
73
88
|
user_list: string[]
|
|
@@ -78,21 +93,6 @@ export interface BatchClosePersonalSettingsSystemStatusQuery {
|
|
|
78
93
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
79
94
|
}
|
|
80
95
|
|
|
81
|
-
export interface CreatePersonalSettingsSystemStatusResponse {
|
|
82
|
-
/** 系统状态 */
|
|
83
|
-
system_status?: SystemStatus
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface PatchPersonalSettingsSystemStatusResponse {
|
|
87
|
-
/** 系统状态 */
|
|
88
|
-
system_status?: SystemStatus
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface BatchOpenPersonalSettingsSystemStatusResponse {
|
|
92
|
-
/** 开启结果 */
|
|
93
|
-
result_list: SystemStatusUserOpenResultEntity[]
|
|
94
|
-
}
|
|
95
|
-
|
|
96
96
|
export interface BatchClosePersonalSettingsSystemStatusResponse {
|
|
97
97
|
/** 关闭结果 */
|
|
98
98
|
result_list: SystemStatusUserCloseResultEntity[]
|
package/src/types/report.ts
CHANGED
|
@@ -21,15 +21,27 @@ declare module '../internal' {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export const enum QueryReportRuleQueryIncludeDeleted {
|
|
25
|
+
/** 不包括已删除 */
|
|
26
|
+
Exclude = 0,
|
|
27
|
+
/** 包括已删除 */
|
|
28
|
+
Include = 1,
|
|
29
|
+
}
|
|
30
|
+
|
|
24
31
|
export interface QueryReportRuleQuery {
|
|
25
32
|
/** 规则名称 */
|
|
26
33
|
rule_name: string
|
|
27
34
|
/** 是否包括已删除,默认未删除 */
|
|
28
|
-
include_deleted?:
|
|
35
|
+
include_deleted?: QueryReportRuleQueryIncludeDeleted
|
|
29
36
|
/** 此次调用中使用的用户ID的类型 */
|
|
30
37
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
31
38
|
}
|
|
32
39
|
|
|
40
|
+
export interface QueryReportRuleResponse {
|
|
41
|
+
/** 规则列表 */
|
|
42
|
+
rules?: Rule[]
|
|
43
|
+
}
|
|
44
|
+
|
|
33
45
|
export interface RemoveReportRuleViewRequest {
|
|
34
46
|
/** 列表为空删除规则下全用户视图,列表不为空删除指定用户视图,大小限制200。 */
|
|
35
47
|
user_ids?: string[]
|
|
@@ -59,11 +71,6 @@ export interface QueryReportTaskQuery {
|
|
|
59
71
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
60
72
|
}
|
|
61
73
|
|
|
62
|
-
export interface QueryReportRuleResponse {
|
|
63
|
-
/** 规则列表 */
|
|
64
|
-
rules?: Rule[]
|
|
65
|
-
}
|
|
66
|
-
|
|
67
74
|
Internal.define({
|
|
68
75
|
'/report/v1/rules/query': {
|
|
69
76
|
GET: 'queryReportRule',
|