@satorijs/adapter-lark 3.9.1 → 3.9.3
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 +1078 -14
- 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 +12 -7
package/src/types/auth.ts
CHANGED
|
@@ -37,6 +37,13 @@ export interface TenantAccessTokenInternalAuthRequest {
|
|
|
37
37
|
app_secret: string
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export interface TenantAccessTokenInternalAuthResponse extends BaseResponse {
|
|
41
|
+
/** 访问 token */
|
|
42
|
+
tenant_access_token?: string
|
|
43
|
+
/** app_access_token 过期时间 */
|
|
44
|
+
expire?: number
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
export interface AppAccessTokenInternalAuthRequest {
|
|
41
48
|
/** 应用唯一标识,创建应用后获得 */
|
|
42
49
|
app_id: string
|
|
@@ -44,6 +51,13 @@ export interface AppAccessTokenInternalAuthRequest {
|
|
|
44
51
|
app_secret: string
|
|
45
52
|
}
|
|
46
53
|
|
|
54
|
+
export interface AppAccessTokenInternalAuthResponse extends BaseResponse {
|
|
55
|
+
/** 访问 token */
|
|
56
|
+
app_access_token?: string
|
|
57
|
+
/** app_access_token 过期时间 */
|
|
58
|
+
expire?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
47
61
|
export interface AppTicketResendAuthRequest {
|
|
48
62
|
/** 应用唯一标识,创建应用后获得 */
|
|
49
63
|
app_id: string
|
|
@@ -60,32 +74,18 @@ export interface AppAccessTokenAuthRequest {
|
|
|
60
74
|
app_ticket: string
|
|
61
75
|
}
|
|
62
76
|
|
|
63
|
-
export interface
|
|
64
|
-
/** 应用唯一标识,创建应用 */
|
|
65
|
-
app_access_token: string
|
|
66
|
-
/** 应用秘钥,创建应用后获得 */
|
|
67
|
-
tenant_key: string
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface TenantAccessTokenInternalAuthResponse extends BaseResponse {
|
|
71
|
-
/** 访问 token */
|
|
72
|
-
tenant_access_token?: string
|
|
73
|
-
/** app_access_token 过期时间 */
|
|
74
|
-
expire?: number
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface AppAccessTokenInternalAuthResponse extends BaseResponse {
|
|
77
|
+
export interface AppAccessTokenAuthResponse extends BaseResponse {
|
|
78
78
|
/** 访问 token */
|
|
79
79
|
app_access_token?: string
|
|
80
80
|
/** app_access_token 过期时间 */
|
|
81
81
|
expire?: number
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export interface
|
|
85
|
-
/**
|
|
86
|
-
app_access_token
|
|
87
|
-
/**
|
|
88
|
-
|
|
84
|
+
export interface TenantAccessTokenAuthRequest {
|
|
85
|
+
/** 应用唯一标识,创建应用 */
|
|
86
|
+
app_access_token: string
|
|
87
|
+
/** 应用秘钥,创建应用后获得 */
|
|
88
|
+
tenant_key: string
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export interface TenantAccessTokenAuthResponse extends BaseResponse {
|
package/src/types/authen.ts
CHANGED
|
@@ -30,34 +30,6 @@ declare module '../internal' {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export interface CreateAuthenOidcAccessTokenRequest {
|
|
34
|
-
/** 授权类型,**固定值** */
|
|
35
|
-
grant_type: string
|
|
36
|
-
/** 登录预授权码 */
|
|
37
|
-
code: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface CreateAuthenOidcRefreshAccessTokenRequest {
|
|
41
|
-
/** 授权类型,**固定值**: */
|
|
42
|
-
grant_type: string
|
|
43
|
-
/** 刷新 `user_access_token` 需要的凭证<br>获取user_access_token`接口和本接口均返回 `refresh_token`,**每次请求,请注意使用最新获取到的`refresh_token`** */
|
|
44
|
-
refresh_token: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface CreateAuthenAccessTokenRequest {
|
|
48
|
-
/** 授权类型,**固定值** */
|
|
49
|
-
grant_type: string
|
|
50
|
-
/** 登录预授权码,调用[获取登录预授权码](https://open.feishu.cn/document/ukTMukTMukTM/ukzN4UjL5cDO14SO3gTN)接口获取 */
|
|
51
|
-
code: string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface CreateAuthenRefreshAccessTokenRequest {
|
|
55
|
-
/** 授权类型,**固定值**: */
|
|
56
|
-
grant_type: string
|
|
57
|
-
/** 刷新 `user_access_token` 需要的凭证<br>获取user_access_token`接口和本接口均返回 `refresh_token`,**每次请求,请注意使用最新获取到的`refresh_token`** */
|
|
58
|
-
refresh_token: string
|
|
59
|
-
}
|
|
60
|
-
|
|
61
33
|
export interface GetAuthenUserInfoResponse {
|
|
62
34
|
/** 用户姓名 */
|
|
63
35
|
name?: string
|
|
@@ -89,6 +61,13 @@ export interface GetAuthenUserInfoResponse {
|
|
|
89
61
|
employee_no?: string
|
|
90
62
|
}
|
|
91
63
|
|
|
64
|
+
export interface CreateAuthenOidcAccessTokenRequest {
|
|
65
|
+
/** 授权类型,**固定值** */
|
|
66
|
+
grant_type: string
|
|
67
|
+
/** 登录预授权码 */
|
|
68
|
+
code: string
|
|
69
|
+
}
|
|
70
|
+
|
|
92
71
|
export interface CreateAuthenOidcAccessTokenResponse {
|
|
93
72
|
/** user_access_token,用于获取用户资源和访问某些open api */
|
|
94
73
|
access_token: string
|
|
@@ -104,6 +83,13 @@ export interface CreateAuthenOidcAccessTokenResponse {
|
|
|
104
83
|
scope?: string
|
|
105
84
|
}
|
|
106
85
|
|
|
86
|
+
export interface CreateAuthenOidcRefreshAccessTokenRequest {
|
|
87
|
+
/** 授权类型,**固定值**: */
|
|
88
|
+
grant_type: string
|
|
89
|
+
/** 刷新 `user_access_token` 需要的凭证<br>获取user_access_token`接口和本接口均返回 `refresh_token`,**每次请求,请注意使用最新获取到的`refresh_token`** */
|
|
90
|
+
refresh_token: string
|
|
91
|
+
}
|
|
92
|
+
|
|
107
93
|
export interface CreateAuthenOidcRefreshAccessTokenResponse {
|
|
108
94
|
/** user_access_token,用于获取用户资源和访问某些open api */
|
|
109
95
|
access_token: string
|
|
@@ -119,6 +105,13 @@ export interface CreateAuthenOidcRefreshAccessTokenResponse {
|
|
|
119
105
|
scope?: string
|
|
120
106
|
}
|
|
121
107
|
|
|
108
|
+
export interface CreateAuthenAccessTokenRequest {
|
|
109
|
+
/** 授权类型,**固定值** */
|
|
110
|
+
grant_type: string
|
|
111
|
+
/** 登录预授权码,调用[获取登录预授权码](https://open.feishu.cn/document/ukTMukTMukTM/ukzN4UjL5cDO14SO3gTN)接口获取 */
|
|
112
|
+
code: string
|
|
113
|
+
}
|
|
114
|
+
|
|
122
115
|
export interface CreateAuthenAccessTokenResponse {
|
|
123
116
|
/** user_access_token,用于获取用户资源 */
|
|
124
117
|
access_token?: string
|
|
@@ -160,6 +153,13 @@ export interface CreateAuthenAccessTokenResponse {
|
|
|
160
153
|
sid?: string
|
|
161
154
|
}
|
|
162
155
|
|
|
156
|
+
export interface CreateAuthenRefreshAccessTokenRequest {
|
|
157
|
+
/** 授权类型,**固定值**: */
|
|
158
|
+
grant_type: string
|
|
159
|
+
/** 刷新 `user_access_token` 需要的凭证<br>获取user_access_token`接口和本接口均返回 `refresh_token`,**每次请求,请注意使用最新获取到的`refresh_token`** */
|
|
160
|
+
refresh_token: string
|
|
161
|
+
}
|
|
162
|
+
|
|
163
163
|
export interface CreateAuthenRefreshAccessTokenResponse {
|
|
164
164
|
/** user_access_token,用于获取用户资源 */
|
|
165
165
|
access_token?: string
|
package/src/types/baike.ts
CHANGED
|
@@ -32,7 +32,7 @@ declare module '../internal' {
|
|
|
32
32
|
* 获取词条列表
|
|
33
33
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/list
|
|
34
34
|
*/
|
|
35
|
-
listBaikeEntity(query?: ListBaikeEntityQuery): Promise<ListBaikeEntityResponse>
|
|
35
|
+
listBaikeEntity(query?: ListBaikeEntityQuery): Promise<ListBaikeEntityResponse> & AsyncIterableIterator<Entity>
|
|
36
36
|
/**
|
|
37
37
|
* 精准搜索词条
|
|
38
38
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/match
|
|
@@ -42,7 +42,7 @@ declare module '../internal' {
|
|
|
42
42
|
* 模糊搜索词条
|
|
43
43
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/search
|
|
44
44
|
*/
|
|
45
|
-
searchBaikeEntity(body: SearchBaikeEntityRequest, query?: SearchBaikeEntityQuery): Promise<SearchBaikeEntityResponse>
|
|
45
|
+
searchBaikeEntity(body: SearchBaikeEntityRequest, query?: SearchBaikeEntityQuery): Promise<SearchBaikeEntityResponse> & AsyncIterableIterator<Entity>
|
|
46
46
|
/**
|
|
47
47
|
* 词条高亮
|
|
48
48
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/entity/highlight
|
|
@@ -57,7 +57,7 @@ declare module '../internal' {
|
|
|
57
57
|
* 获取词典分类
|
|
58
58
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/classification/list
|
|
59
59
|
*/
|
|
60
|
-
listBaikeClassification(query?: Pagination): Promise<ListBaikeClassificationResponse>
|
|
60
|
+
listBaikeClassification(query?: Pagination): Promise<ListBaikeClassificationResponse> & AsyncIterableIterator<Classification>
|
|
61
61
|
/**
|
|
62
62
|
* 上传图片
|
|
63
63
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/baike-v1/file/upload
|
|
@@ -93,6 +93,10 @@ export interface CreateBaikeDraftQuery {
|
|
|
93
93
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
export interface CreateBaikeDraftResponse {
|
|
97
|
+
draft?: Draft
|
|
98
|
+
}
|
|
99
|
+
|
|
96
100
|
export interface UpdateBaikeDraftRequest {
|
|
97
101
|
/** 实体词 Id */
|
|
98
102
|
id?: string
|
|
@@ -113,6 +117,10 @@ export interface UpdateBaikeDraftQuery {
|
|
|
113
117
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
114
118
|
}
|
|
115
119
|
|
|
120
|
+
export interface UpdateBaikeDraftResponse {
|
|
121
|
+
draft?: Draft
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
export interface CreateBaikeEntityRequest {
|
|
117
125
|
/** 词条名 */
|
|
118
126
|
main_keys: Term[]
|
|
@@ -133,6 +141,10 @@ export interface CreateBaikeEntityQuery {
|
|
|
133
141
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
134
142
|
}
|
|
135
143
|
|
|
144
|
+
export interface CreateBaikeEntityResponse {
|
|
145
|
+
entity?: Entity
|
|
146
|
+
}
|
|
147
|
+
|
|
136
148
|
export interface UpdateBaikeEntityRequest {
|
|
137
149
|
/** 词条名 */
|
|
138
150
|
main_keys: Term[]
|
|
@@ -153,6 +165,10 @@ export interface UpdateBaikeEntityQuery {
|
|
|
153
165
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
154
166
|
}
|
|
155
167
|
|
|
168
|
+
export interface UpdateBaikeEntityResponse {
|
|
169
|
+
entity?: Entity
|
|
170
|
+
}
|
|
171
|
+
|
|
156
172
|
export interface GetBaikeEntityQuery {
|
|
157
173
|
/** 外部系统 */
|
|
158
174
|
provider?: string
|
|
@@ -162,6 +178,11 @@ export interface GetBaikeEntityQuery {
|
|
|
162
178
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
163
179
|
}
|
|
164
180
|
|
|
181
|
+
export interface GetBaikeEntityResponse {
|
|
182
|
+
/** 实体词 */
|
|
183
|
+
entity?: Entity
|
|
184
|
+
}
|
|
185
|
+
|
|
165
186
|
export interface ListBaikeEntityQuery extends Pagination {
|
|
166
187
|
/** 相关外部系统【可用来过滤词条数据】 */
|
|
167
188
|
provider?: string
|
|
@@ -169,11 +190,22 @@ export interface ListBaikeEntityQuery extends Pagination {
|
|
|
169
190
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
170
191
|
}
|
|
171
192
|
|
|
193
|
+
export interface ListBaikeEntityResponse {
|
|
194
|
+
entities?: Entity[]
|
|
195
|
+
/** 分页标记,当还有下一页时会返回新的 page_token,否则 page_token 为空 */
|
|
196
|
+
page_token?: string
|
|
197
|
+
}
|
|
198
|
+
|
|
172
199
|
export interface MatchBaikeEntityRequest {
|
|
173
200
|
/** 搜索关键词,将与词条名、别名进行精准匹配 */
|
|
174
201
|
word: string
|
|
175
202
|
}
|
|
176
203
|
|
|
204
|
+
export interface MatchBaikeEntityResponse {
|
|
205
|
+
/** 匹配结果 */
|
|
206
|
+
results?: MatchInfo[]
|
|
207
|
+
}
|
|
208
|
+
|
|
177
209
|
export interface SearchBaikeEntityRequest {
|
|
178
210
|
/** 搜索关键词 */
|
|
179
211
|
query?: string
|
|
@@ -190,55 +222,6 @@ export interface SearchBaikeEntityQuery extends Pagination {
|
|
|
190
222
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
191
223
|
}
|
|
192
224
|
|
|
193
|
-
export interface HighlightBaikeEntityRequest {
|
|
194
|
-
/** 需要识别百科词条的内容(不超过1000字) */
|
|
195
|
-
text: string
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface ExtractBaikeEntityRequest {
|
|
199
|
-
/** 需要被提取百科实体词的文本(不会过滤租户已成为百科词条的内容) */
|
|
200
|
-
text?: string
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface UploadBaikeFileForm {
|
|
204
|
-
/** 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp */
|
|
205
|
-
name: string
|
|
206
|
-
/** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
|
|
207
|
-
file: Blob
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface CreateBaikeDraftResponse {
|
|
211
|
-
draft?: Draft
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export interface UpdateBaikeDraftResponse {
|
|
215
|
-
draft?: Draft
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface CreateBaikeEntityResponse {
|
|
219
|
-
entity?: Entity
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export interface UpdateBaikeEntityResponse {
|
|
223
|
-
entity?: Entity
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface GetBaikeEntityResponse {
|
|
227
|
-
/** 实体词 */
|
|
228
|
-
entity?: Entity
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export interface ListBaikeEntityResponse {
|
|
232
|
-
entities?: Entity[]
|
|
233
|
-
/** 分页标记,当还有下一页时会返回新的 page_token,否则 page_token 为空 */
|
|
234
|
-
page_token?: string
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface MatchBaikeEntityResponse {
|
|
238
|
-
/** 匹配结果 */
|
|
239
|
-
results?: MatchInfo[]
|
|
240
|
-
}
|
|
241
|
-
|
|
242
225
|
export interface SearchBaikeEntityResponse {
|
|
243
226
|
/** 数据数组 */
|
|
244
227
|
entities?: Entity[]
|
|
@@ -246,11 +229,21 @@ export interface SearchBaikeEntityResponse {
|
|
|
246
229
|
page_token?: string
|
|
247
230
|
}
|
|
248
231
|
|
|
232
|
+
export interface HighlightBaikeEntityRequest {
|
|
233
|
+
/** 需要识别百科词条的内容(不超过1000字) */
|
|
234
|
+
text: string
|
|
235
|
+
}
|
|
236
|
+
|
|
249
237
|
export interface HighlightBaikeEntityResponse {
|
|
250
238
|
/** 返回识别到的实体词信息 */
|
|
251
239
|
phrases?: Phrase[]
|
|
252
240
|
}
|
|
253
241
|
|
|
242
|
+
export interface ExtractBaikeEntityRequest {
|
|
243
|
+
/** 需要被提取百科实体词的文本(不会过滤租户已成为百科词条的内容) */
|
|
244
|
+
text?: string
|
|
245
|
+
}
|
|
246
|
+
|
|
254
247
|
export interface ExtractBaikeEntityResponse {
|
|
255
248
|
/** 文本中可能的成为百科词条的实体词 */
|
|
256
249
|
entity_word: EntityWord[]
|
|
@@ -262,6 +255,13 @@ export interface ListBaikeClassificationResponse {
|
|
|
262
255
|
page_token?: string
|
|
263
256
|
}
|
|
264
257
|
|
|
258
|
+
export interface UploadBaikeFileForm {
|
|
259
|
+
/** 文件名称,当前仅支持上传图片且图片格式为以下六种:icon、bmp、gif、png、jpeg、webp */
|
|
260
|
+
name: string
|
|
261
|
+
/** 二进制文件内容,高宽像素在 320-4096 像素之间,大小在 3KB-10MB 的图片 */
|
|
262
|
+
file: Blob
|
|
263
|
+
}
|
|
264
|
+
|
|
265
265
|
export interface UploadBaikeFileResponse {
|
|
266
266
|
/** 文件 token */
|
|
267
267
|
file_token?: string
|
|
@@ -276,7 +276,7 @@ Internal.define({
|
|
|
276
276
|
},
|
|
277
277
|
'/baike/v1/entities': {
|
|
278
278
|
POST: 'createBaikeEntity',
|
|
279
|
-
GET: 'listBaikeEntity',
|
|
279
|
+
GET: { name: 'listBaikeEntity', pagination: { argIndex: 0, itemsKey: 'entities' } },
|
|
280
280
|
},
|
|
281
281
|
'/baike/v1/entities/{entity_id}': {
|
|
282
282
|
PUT: 'updateBaikeEntity',
|
|
@@ -286,7 +286,7 @@ Internal.define({
|
|
|
286
286
|
POST: 'matchBaikeEntity',
|
|
287
287
|
},
|
|
288
288
|
'/baike/v1/entities/search': {
|
|
289
|
-
POST: 'searchBaikeEntity',
|
|
289
|
+
POST: { name: 'searchBaikeEntity', pagination: { argIndex: 1, itemsKey: 'entities' } },
|
|
290
290
|
},
|
|
291
291
|
'/baike/v1/entities/highlight': {
|
|
292
292
|
POST: 'highlightBaikeEntity',
|
|
@@ -295,7 +295,7 @@ Internal.define({
|
|
|
295
295
|
POST: 'extractBaikeEntity',
|
|
296
296
|
},
|
|
297
297
|
'/baike/v1/classifications': {
|
|
298
|
-
GET: 'listBaikeClassification',
|
|
298
|
+
GET: { name: 'listBaikeClassification', pagination: { argIndex: 0 } },
|
|
299
299
|
},
|
|
300
300
|
'/baike/v1/files/upload': {
|
|
301
301
|
POST: { name: 'uploadBaikeFile', multipart: true },
|