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