@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/src/types/application.ts
CHANGED
|
@@ -117,7 +117,7 @@ declare module '../internal' {
|
|
|
117
117
|
* 获取管理员推荐的应用
|
|
118
118
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v5/application/recommend
|
|
119
119
|
*/
|
|
120
|
-
recommendApplication(query?: RecommendApplicationQuery): Promise<RecommendApplicationResponse>
|
|
120
|
+
recommendApplication(query?: RecommendApplicationQuery): Promise<RecommendApplicationResponse> & AsyncIterableIterator<Application>
|
|
121
121
|
/**
|
|
122
122
|
* 获取当前设置的推荐规则列表
|
|
123
123
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/app_recommend_rule/list
|
|
@@ -133,6 +133,11 @@ export interface GetApplicationQuery {
|
|
|
133
133
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
export interface GetApplicationResponse {
|
|
137
|
+
/** 应用数据 */
|
|
138
|
+
app?: Application
|
|
139
|
+
}
|
|
140
|
+
|
|
136
141
|
export interface GetApplicationApplicationAppVersionQuery {
|
|
137
142
|
/** 应用信息的语言版本 */
|
|
138
143
|
lang: 'zh_cn' | 'en_us' | 'ja_jp'
|
|
@@ -140,6 +145,10 @@ export interface GetApplicationApplicationAppVersionQuery {
|
|
|
140
145
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
141
146
|
}
|
|
142
147
|
|
|
148
|
+
export interface GetApplicationApplicationAppVersionResponse {
|
|
149
|
+
app_version?: ApplicationAppVersion
|
|
150
|
+
}
|
|
151
|
+
|
|
143
152
|
export interface ListApplicationApplicationAppVersionQuery extends Pagination {
|
|
144
153
|
/** 应用信息的语言版本 */
|
|
145
154
|
lang: 'zh_cn' | 'en_us' | 'ja_jp'
|
|
@@ -156,17 +165,61 @@ export interface ContactsRangeSuggestApplicationApplicationAppVersionQuery {
|
|
|
156
165
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
157
166
|
}
|
|
158
167
|
|
|
168
|
+
export interface ContactsRangeSuggestApplicationApplicationAppVersionResponse {
|
|
169
|
+
contacts_range?: ApplicationAppContactsRange
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface ListApplicationScopeResponse {
|
|
173
|
+
scopes?: Scope[]
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export const enum ListApplicationQueryStatus {
|
|
177
|
+
/** 停用 */
|
|
178
|
+
AvailabilityStopped = 0,
|
|
179
|
+
/** 启用 */
|
|
180
|
+
AvailabilityActivated = 1,
|
|
181
|
+
/** 未启用 */
|
|
182
|
+
AvailabilityUnactivated = 2,
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export const enum ListApplicationQueryPaymentType {
|
|
186
|
+
/** 免费 */
|
|
187
|
+
Free = 0,
|
|
188
|
+
/** 付费 */
|
|
189
|
+
Paid = 1,
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const enum ListApplicationQueryOwnerType {
|
|
193
|
+
/** 飞书科技 */
|
|
194
|
+
FeishuTechnology = 0,
|
|
195
|
+
/** 飞书合作伙伴 */
|
|
196
|
+
FeishuThirdParty = 1,
|
|
197
|
+
/** 企业内成员 */
|
|
198
|
+
EnterpriseMember = 2,
|
|
199
|
+
}
|
|
200
|
+
|
|
159
201
|
export interface ListApplicationQuery extends Pagination {
|
|
160
202
|
/** 用户 ID 类型 */
|
|
161
203
|
user_id_type?: string
|
|
162
204
|
/** 应用的图标、描述、帮助文档链接是按照应用的主语言返回;其他内容(如应用权限、应用分类)按照该参数设定返回对应的语言。可选值有: zh_cn:中文 en_us:英文 ja_jp:日文 如不填写,则按照应用的主语言返回 */
|
|
163
205
|
lang: string
|
|
164
206
|
/** 不传入代表全部返回。传入则按照这种应用状态返回。应用状态可选值有:0:停用状态1:启用状态 2:未启用状态 */
|
|
165
|
-
status?:
|
|
207
|
+
status?: ListApplicationQueryStatus
|
|
166
208
|
/** 不传入代表全部返回。传入则按照这种应用状态返回。 付费类型 可选值: 0:免费 1:付费 */
|
|
167
|
-
payment_type?:
|
|
209
|
+
payment_type?: ListApplicationQueryPaymentType
|
|
168
210
|
/** 不传入代表全部返回。传入则按照这种应用状态返回。所有者类型,可选值: 0:飞书科技 1:飞书合作伙伴 2:企业内成员 */
|
|
169
|
-
owner_type?:
|
|
211
|
+
owner_type?: ListApplicationQueryOwnerType
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface ListApplicationResponse {
|
|
215
|
+
/** 应用列表 */
|
|
216
|
+
app_list?: Application[]
|
|
217
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
218
|
+
page_token?: string
|
|
219
|
+
/** 是否还有更多项 */
|
|
220
|
+
has_more?: boolean
|
|
221
|
+
/** 应用状态=启用的应用总数 */
|
|
222
|
+
total_count?: number
|
|
170
223
|
}
|
|
171
224
|
|
|
172
225
|
export interface UnderauditlistApplicationQuery extends Pagination {
|
|
@@ -176,9 +229,22 @@ export interface UnderauditlistApplicationQuery extends Pagination {
|
|
|
176
229
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
177
230
|
}
|
|
178
231
|
|
|
232
|
+
export const enum PatchApplicationApplicationAppVersionRequestStatus {
|
|
233
|
+
/** 未知状态 */
|
|
234
|
+
Unknown = 0,
|
|
235
|
+
/** 审核通过 */
|
|
236
|
+
Audited = 1,
|
|
237
|
+
/** 审核拒绝 */
|
|
238
|
+
Reject = 2,
|
|
239
|
+
/** 审核中 */
|
|
240
|
+
UnderAudit = 3,
|
|
241
|
+
/** 未提交审核 */
|
|
242
|
+
Unaudit = 4,
|
|
243
|
+
}
|
|
244
|
+
|
|
179
245
|
export interface PatchApplicationApplicationAppVersionRequest {
|
|
180
246
|
/** 版本状态 */
|
|
181
|
-
status?:
|
|
247
|
+
status?: PatchApplicationApplicationAppVersionRequestStatus
|
|
182
248
|
}
|
|
183
249
|
|
|
184
250
|
export interface PatchApplicationApplicationAppVersionQuery {
|
|
@@ -207,6 +273,14 @@ export interface ContactsRangeConfigurationApplicationQuery extends Pagination {
|
|
|
207
273
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
208
274
|
}
|
|
209
275
|
|
|
276
|
+
export interface ContactsRangeConfigurationApplicationResponse {
|
|
277
|
+
contacts_range?: ApplicationAppContactsRange
|
|
278
|
+
/** 是否还有更多项 */
|
|
279
|
+
has_more?: boolean
|
|
280
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
281
|
+
page_token?: string
|
|
282
|
+
}
|
|
283
|
+
|
|
210
284
|
export interface PatchApplicationApplicationContactsRangeRequest {
|
|
211
285
|
/** 更新范围方式 */
|
|
212
286
|
contacts_range_type: 'equal_to_availability' | 'some' | 'all'
|
|
@@ -239,6 +313,15 @@ export interface CheckWhiteBlackListApplicationApplicationVisibilityQuery {
|
|
|
239
313
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
240
314
|
}
|
|
241
315
|
|
|
316
|
+
export interface CheckWhiteBlackListApplicationApplicationVisibilityResponse {
|
|
317
|
+
/** 用户可见性信息列表 */
|
|
318
|
+
user_visibility_list?: ApplicationVisibilityUserWhiteBlackInfo[]
|
|
319
|
+
/** 部门可见性信息列表 */
|
|
320
|
+
department_visibility_list?: ApplicationVisibilityDepartmentWhiteBlackInfo[]
|
|
321
|
+
/** 用户组可见性信息列表 */
|
|
322
|
+
group_visibility_list?: ApplicationVisibilityGroupWhiteBlackInfo[]
|
|
323
|
+
}
|
|
324
|
+
|
|
242
325
|
export interface PatchApplicationApplicationVisibilityRequest {
|
|
243
326
|
/** 添加可用人员名单 */
|
|
244
327
|
add_visible_list?: AppVisibilityIdList
|
|
@@ -264,11 +347,20 @@ export interface UpdateApplicationApplicationManagementRequest {
|
|
|
264
347
|
enable?: boolean
|
|
265
348
|
}
|
|
266
349
|
|
|
350
|
+
export const enum DepartmentOverviewApplicationApplicationAppUsageRequestCycleType {
|
|
351
|
+
/** 日活 */
|
|
352
|
+
Day = 1,
|
|
353
|
+
/** 周活, date字段应该填自然周周一的日期 */
|
|
354
|
+
Week = 2,
|
|
355
|
+
/** 月活, date字段应该填自然月1号的日期 */
|
|
356
|
+
Month = 3,
|
|
357
|
+
}
|
|
358
|
+
|
|
267
359
|
export interface DepartmentOverviewApplicationApplicationAppUsageRequest {
|
|
268
360
|
/** 查询日期,格式为yyyy-mm-dd,若cycle_type为1,date可以为任何自然日;若cycle_type为2,则输入的date必须为周一; 若cycle_type为3,则输入的date必须为每月1号 */
|
|
269
361
|
date: string
|
|
270
362
|
/** 活跃周期的统计类型 */
|
|
271
|
-
cycle_type:
|
|
363
|
+
cycle_type: DepartmentOverviewApplicationApplicationAppUsageRequestCycleType
|
|
272
364
|
/** 查询的部门id,获取方法可参考[部门ID概述](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview)- 若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户) 以及多级子部门的使用数据。- 若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。- 若不填写则返回整个租户的数据 */
|
|
273
365
|
department_id?: string
|
|
274
366
|
/** 是否需要查询部门下多层子部门的数据。未设置或为0时,仅查询department_id对应的部门。设置为n时,查询department_id及其n级子部门的数据。仅在department_id参数传递时有效,最大值为4。 */
|
|
@@ -284,11 +376,20 @@ export interface DepartmentOverviewApplicationApplicationAppUsageQuery {
|
|
|
284
376
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
285
377
|
}
|
|
286
378
|
|
|
379
|
+
export const enum MessagePushOverviewApplicationApplicationAppUsageRequestCycleType {
|
|
380
|
+
/** 日活 */
|
|
381
|
+
Day = 1,
|
|
382
|
+
/** 周活, date字段应该填自然周周一的日期 */
|
|
383
|
+
Week = 2,
|
|
384
|
+
/** 月活, date字段应该填自然月1号的日期 */
|
|
385
|
+
Month = 3,
|
|
386
|
+
}
|
|
387
|
+
|
|
287
388
|
export interface MessagePushOverviewApplicationApplicationAppUsageRequest {
|
|
288
389
|
/** 查询日期,若cycle_type为week,则输入的date必须为周一; 若cycle_type为month,则输入的date必须为每月1号 */
|
|
289
390
|
date: string
|
|
290
391
|
/** 枚举值:day,week,month;week指自然周,返回当前日期所在周的数据;不满一周则从周一到当前日期算。month指自然月,返回当前日期所在月的数据。 */
|
|
291
|
-
cycle_type:
|
|
392
|
+
cycle_type: MessagePushOverviewApplicationApplicationAppUsageRequestCycleType
|
|
292
393
|
/** 需要查询的部门id,获取方法可参考[部门ID概述](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview)- 若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户); - 若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。返回当前部门的使用数据; 若不填写,则返回当前租户的使用数据 */
|
|
293
394
|
department_id?: string
|
|
294
395
|
}
|
|
@@ -298,11 +399,25 @@ export interface MessagePushOverviewApplicationApplicationAppUsageQuery {
|
|
|
298
399
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
299
400
|
}
|
|
300
401
|
|
|
402
|
+
export interface MessagePushOverviewApplicationApplicationAppUsageResponse {
|
|
403
|
+
/** 消息推送情况 */
|
|
404
|
+
items?: ApplicationAppUsage[]
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export const enum OverviewApplicationApplicationAppUsageRequestCycleType {
|
|
408
|
+
/** 日活 */
|
|
409
|
+
Day = 1,
|
|
410
|
+
/** 周活, date字段应该填自然周周一的日期 */
|
|
411
|
+
Week = 2,
|
|
412
|
+
/** 月活, date字段应该填自然月1号的日期 */
|
|
413
|
+
Month = 3,
|
|
414
|
+
}
|
|
415
|
+
|
|
301
416
|
export interface OverviewApplicationApplicationAppUsageRequest {
|
|
302
417
|
/** 查询日期,格式为yyyy-mm-dd,若cycle_type为1,date可以为任何自然日;若cycle_type为2,则输入的date必须为周一; 若cycle_type为3,则输入的date必须为每月1号 */
|
|
303
418
|
date: string
|
|
304
419
|
/** 活跃周期的统计类型 */
|
|
305
|
-
cycle_type:
|
|
420
|
+
cycle_type: OverviewApplicationApplicationAppUsageRequestCycleType
|
|
306
421
|
/** 查询的部门id,获取方法可参考[部门ID概述](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview)- 若部门id为空,则返回当前租户的使用数据;若填写部门id,则返回当前部门的使用数据(包含子部门的用户); - 若路径参数中department_id_type为空或者为open_department_id,则此处应该填写部门的 open_department_id;若路径参数中department_id_type为department_id,则此处应该填写部门的 department_id。 */
|
|
307
422
|
department_id?: string
|
|
308
423
|
/** 能力类型,按能力类型进行筛选,返回对应能力的活跃数据 */
|
|
@@ -314,23 +429,57 @@ export interface OverviewApplicationApplicationAppUsageQuery {
|
|
|
314
429
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
315
430
|
}
|
|
316
431
|
|
|
432
|
+
export interface OverviewApplicationApplicationAppUsageResponse {
|
|
433
|
+
/** 员工使用应用概览数据 */
|
|
434
|
+
items?: ApplicationAppUsage[]
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export const enum PatchApplicationApplicationFeedbackQueryStatus {
|
|
438
|
+
/** 反馈未处理 */
|
|
439
|
+
Unmarked = 0,
|
|
440
|
+
/** 反馈已处理 */
|
|
441
|
+
Marked = 1,
|
|
442
|
+
/** 反馈处理中 */
|
|
443
|
+
Processing = 2,
|
|
444
|
+
/** 反馈已关闭 */
|
|
445
|
+
Closed = 3,
|
|
446
|
+
}
|
|
447
|
+
|
|
317
448
|
export interface PatchApplicationApplicationFeedbackQuery {
|
|
318
449
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
319
450
|
/** 反馈处理状态 */
|
|
320
|
-
status:
|
|
451
|
+
status: PatchApplicationApplicationFeedbackQueryStatus
|
|
321
452
|
/** 反馈处理人员id,租户内用户的唯一标识, ID值与查询参数中的user_id_type 对应 */
|
|
322
453
|
operator_id: string
|
|
323
454
|
}
|
|
324
455
|
|
|
456
|
+
export const enum ListApplicationApplicationFeedbackQueryFeedbackType {
|
|
457
|
+
/** 故障反馈 */
|
|
458
|
+
Fault = 1,
|
|
459
|
+
/** 产品建议 */
|
|
460
|
+
Advice = 2,
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export const enum ListApplicationApplicationFeedbackQueryStatus {
|
|
464
|
+
/** 反馈未处理 */
|
|
465
|
+
Unmarked = 0,
|
|
466
|
+
/** 反馈已处理 */
|
|
467
|
+
Marked = 1,
|
|
468
|
+
/** 反馈处理中 */
|
|
469
|
+
Processing = 2,
|
|
470
|
+
/** 反馈已关闭 */
|
|
471
|
+
Closed = 3,
|
|
472
|
+
}
|
|
473
|
+
|
|
325
474
|
export interface ListApplicationApplicationFeedbackQuery extends Pagination {
|
|
326
475
|
/** 查询的起始日期,格式为yyyy-mm-dd。不填则默认为当前日期减去180天。 */
|
|
327
476
|
from_date?: string
|
|
328
477
|
/** 查询的结束日期,格式为yyyy-mm-dd。不填默认为当前日期。只能查询 180 天内的数据。 */
|
|
329
478
|
to_date?: string
|
|
330
479
|
/** 反馈类型,不填写则表示查询所有反馈类型。 */
|
|
331
|
-
feedback_type?:
|
|
480
|
+
feedback_type?: ListApplicationApplicationFeedbackQueryFeedbackType
|
|
332
481
|
/** 反馈处理状态,不填写则表示查询所有处理类型。 */
|
|
333
|
-
status?:
|
|
482
|
+
status?: ListApplicationApplicationFeedbackQueryStatus
|
|
334
483
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
335
484
|
}
|
|
336
485
|
|
|
@@ -357,73 +506,6 @@ export interface FavouriteApplicationQuery extends Pagination {
|
|
|
357
506
|
language?: 'zh_cn' | 'en_us' | 'ja_jp'
|
|
358
507
|
}
|
|
359
508
|
|
|
360
|
-
export interface RecommendApplicationQuery extends Pagination {
|
|
361
|
-
/** 应用信息的语言版本 */
|
|
362
|
-
language?: 'zh_cn' | 'en_us' | 'ja_jp'
|
|
363
|
-
/** 推荐应用类型,默认为用户不可移除的推荐应用列表 */
|
|
364
|
-
recommend_type?: 'user_unremovable' | 'user_removable'
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export interface ListApplicationAppRecommendRuleQuery extends Pagination {
|
|
368
|
-
/** 此次调用中使用的用户ID的类型 */
|
|
369
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export interface GetApplicationResponse {
|
|
373
|
-
/** 应用数据 */
|
|
374
|
-
app?: Application
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface GetApplicationApplicationAppVersionResponse {
|
|
378
|
-
app_version?: ApplicationAppVersion
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export interface ContactsRangeSuggestApplicationApplicationAppVersionResponse {
|
|
382
|
-
contacts_range?: ApplicationAppContactsRange
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export interface ListApplicationScopeResponse {
|
|
386
|
-
scopes?: Scope[]
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export interface ListApplicationResponse {
|
|
390
|
-
/** 应用列表 */
|
|
391
|
-
app_list?: Application[]
|
|
392
|
-
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
393
|
-
page_token?: string
|
|
394
|
-
/** 是否还有更多项 */
|
|
395
|
-
has_more?: boolean
|
|
396
|
-
/** 应用状态=启用的应用总数 */
|
|
397
|
-
total_count?: number
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export interface ContactsRangeConfigurationApplicationResponse {
|
|
401
|
-
contacts_range?: ApplicationAppContactsRange
|
|
402
|
-
/** 是否还有更多项 */
|
|
403
|
-
has_more?: boolean
|
|
404
|
-
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token */
|
|
405
|
-
page_token?: string
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export interface CheckWhiteBlackListApplicationApplicationVisibilityResponse {
|
|
409
|
-
/** 用户可见性信息列表 */
|
|
410
|
-
user_visibility_list?: ApplicationVisibilityUserWhiteBlackInfo[]
|
|
411
|
-
/** 部门可见性信息列表 */
|
|
412
|
-
department_visibility_list?: ApplicationVisibilityDepartmentWhiteBlackInfo[]
|
|
413
|
-
/** 用户组可见性信息列表 */
|
|
414
|
-
group_visibility_list?: ApplicationVisibilityGroupWhiteBlackInfo[]
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export interface MessagePushOverviewApplicationApplicationAppUsageResponse {
|
|
418
|
-
/** 消息推送情况 */
|
|
419
|
-
items?: ApplicationAppUsage[]
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export interface OverviewApplicationApplicationAppUsageResponse {
|
|
423
|
-
/** 员工使用应用概览数据 */
|
|
424
|
-
items?: ApplicationAppUsage[]
|
|
425
|
-
}
|
|
426
|
-
|
|
427
509
|
export interface FavouriteApplicationResponse {
|
|
428
510
|
/** 分页的token */
|
|
429
511
|
page_token?: string
|
|
@@ -435,6 +517,13 @@ export interface FavouriteApplicationResponse {
|
|
|
435
517
|
app_list?: Application[]
|
|
436
518
|
}
|
|
437
519
|
|
|
520
|
+
export interface RecommendApplicationQuery extends Pagination {
|
|
521
|
+
/** 应用信息的语言版本 */
|
|
522
|
+
language?: 'zh_cn' | 'en_us' | 'ja_jp'
|
|
523
|
+
/** 推荐应用类型,默认为用户不可移除的推荐应用列表 */
|
|
524
|
+
recommend_type?: 'user_unremovable' | 'user_removable'
|
|
525
|
+
}
|
|
526
|
+
|
|
438
527
|
export interface RecommendApplicationResponse {
|
|
439
528
|
/** 分页的token */
|
|
440
529
|
page_token?: string
|
|
@@ -448,6 +537,11 @@ export interface RecommendApplicationResponse {
|
|
|
448
537
|
app_list?: Application[]
|
|
449
538
|
}
|
|
450
539
|
|
|
540
|
+
export interface ListApplicationAppRecommendRuleQuery extends Pagination {
|
|
541
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
542
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
543
|
+
}
|
|
544
|
+
|
|
451
545
|
Internal.define({
|
|
452
546
|
'/application/v6/applications/{app_id}': {
|
|
453
547
|
GET: 'getApplication',
|
|
@@ -512,7 +606,7 @@ Internal.define({
|
|
|
512
606
|
GET: { name: 'favouriteApplication', pagination: { argIndex: 0, itemsKey: 'app_list' } },
|
|
513
607
|
},
|
|
514
608
|
'/application/v5/applications/recommend': {
|
|
515
|
-
GET: 'recommendApplication',
|
|
609
|
+
GET: { name: 'recommendApplication', pagination: { argIndex: 0, itemsKey: 'app_list' } },
|
|
516
610
|
},
|
|
517
611
|
'/application/v6/app_recommend_rules': {
|
|
518
612
|
GET: { name: 'listApplicationAppRecommendRule', pagination: { argIndex: 0, itemsKey: 'rules' } },
|