@larksuiteoapi/node-sdk 1.28.1 → 1.29.0
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/es/index.js +525 -11
- package/lib/index.js +525 -11
- package/package.json +1 -1
- package/types/index.d.ts +1962 -23
package/lib/index.js
CHANGED
|
@@ -238,7 +238,7 @@ const formatErrors = (e) => {
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
// auto gen
|
|
241
|
-
class Client$
|
|
241
|
+
class Client$_ {
|
|
242
242
|
constructor() {
|
|
243
243
|
/**
|
|
244
244
|
* 智能门禁
|
|
@@ -1211,11 +1211,11 @@ class Client$Z {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
1213
|
// auto gen
|
|
1214
|
-
class Client$
|
|
1214
|
+
class Client$Z extends Client$_ {
|
|
1215
1215
|
constructor() {
|
|
1216
1216
|
super(...arguments);
|
|
1217
1217
|
/**
|
|
1218
|
-
*
|
|
1218
|
+
* 管理后台-企业勋章
|
|
1219
1219
|
*/
|
|
1220
1220
|
this.admin = {
|
|
1221
1221
|
/**
|
|
@@ -1337,6 +1337,8 @@ class Client$Y extends Client$Z {
|
|
|
1337
1337
|
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
|
|
1338
1338
|
*
|
|
1339
1339
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
|
|
1340
|
+
*
|
|
1341
|
+
* 用户行为日志搜索
|
|
1340
1342
|
*/
|
|
1341
1343
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1342
1344
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -1857,6 +1859,8 @@ class Client$Y extends Client$Z {
|
|
|
1857
1859
|
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
|
|
1858
1860
|
*
|
|
1859
1861
|
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
|
|
1862
|
+
*
|
|
1863
|
+
* 用户行为日志搜索
|
|
1860
1864
|
*/
|
|
1861
1865
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1862
1866
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
@@ -2262,6 +2266,375 @@ class Client$Y extends Client$Z {
|
|
|
2262
2266
|
}
|
|
2263
2267
|
}
|
|
2264
2268
|
|
|
2269
|
+
// auto gen
|
|
2270
|
+
class Client$Y extends Client$Z {
|
|
2271
|
+
constructor() {
|
|
2272
|
+
super(...arguments);
|
|
2273
|
+
/**
|
|
2274
|
+
|
|
2275
|
+
*/
|
|
2276
|
+
this.aily = {
|
|
2277
|
+
v1: {
|
|
2278
|
+
/**
|
|
2279
|
+
* aily_session.aily_message
|
|
2280
|
+
*/
|
|
2281
|
+
ailySessionAilyMessage: {
|
|
2282
|
+
/**
|
|
2283
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=create&version=v1 click to debug }
|
|
2284
|
+
*
|
|
2285
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session.aily_message&version=v1 document }
|
|
2286
|
+
*
|
|
2287
|
+
* 该 API 用于向某个飞书智能伙伴应用发送一条消息(Message)。
|
|
2288
|
+
*/
|
|
2289
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2290
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2291
|
+
return this.httpInstance
|
|
2292
|
+
.request({
|
|
2293
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
|
|
2294
|
+
method: "POST",
|
|
2295
|
+
data,
|
|
2296
|
+
params,
|
|
2297
|
+
headers,
|
|
2298
|
+
})
|
|
2299
|
+
.catch((e) => {
|
|
2300
|
+
this.logger.error(formatErrors(e));
|
|
2301
|
+
throw e;
|
|
2302
|
+
});
|
|
2303
|
+
}),
|
|
2304
|
+
/**
|
|
2305
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=get&version=v1 click to debug }
|
|
2306
|
+
*
|
|
2307
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session.aily_message&version=v1 document }
|
|
2308
|
+
*
|
|
2309
|
+
* 该 API 用于获取某个飞书智能伙伴应用的消息(Message)的详细信息;包括消息的内容、发送人等。
|
|
2310
|
+
*/
|
|
2311
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2312
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2313
|
+
return this.httpInstance
|
|
2314
|
+
.request({
|
|
2315
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages/:aily_message_id`, path),
|
|
2316
|
+
method: "GET",
|
|
2317
|
+
data,
|
|
2318
|
+
params,
|
|
2319
|
+
headers,
|
|
2320
|
+
})
|
|
2321
|
+
.catch((e) => {
|
|
2322
|
+
this.logger.error(formatErrors(e));
|
|
2323
|
+
throw e;
|
|
2324
|
+
});
|
|
2325
|
+
}),
|
|
2326
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2327
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2328
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
2329
|
+
const res = yield this.httpInstance
|
|
2330
|
+
.request({
|
|
2331
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
|
|
2332
|
+
method: "GET",
|
|
2333
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
2334
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
2335
|
+
data,
|
|
2336
|
+
})
|
|
2337
|
+
.catch((e) => {
|
|
2338
|
+
this.logger.error(formatErrors(e));
|
|
2339
|
+
});
|
|
2340
|
+
return res;
|
|
2341
|
+
});
|
|
2342
|
+
const Iterable = {
|
|
2343
|
+
[Symbol.asyncIterator]() {
|
|
2344
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
2345
|
+
let hasMore = true;
|
|
2346
|
+
let pageToken;
|
|
2347
|
+
while (hasMore) {
|
|
2348
|
+
try {
|
|
2349
|
+
const res = yield __await(sendRequest({
|
|
2350
|
+
headers,
|
|
2351
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
2352
|
+
data,
|
|
2353
|
+
}));
|
|
2354
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
2355
|
+
// @ts-ignore
|
|
2356
|
+
has_more,
|
|
2357
|
+
// @ts-ignore
|
|
2358
|
+
page_token,
|
|
2359
|
+
// @ts-ignore
|
|
2360
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
2361
|
+
yield yield __await(rest);
|
|
2362
|
+
hasMore = Boolean(has_more);
|
|
2363
|
+
pageToken = page_token || next_page_token;
|
|
2364
|
+
}
|
|
2365
|
+
catch (e) {
|
|
2366
|
+
yield yield __await(null);
|
|
2367
|
+
break;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
});
|
|
2371
|
+
},
|
|
2372
|
+
};
|
|
2373
|
+
return Iterable;
|
|
2374
|
+
}),
|
|
2375
|
+
/**
|
|
2376
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=list&version=v1 click to debug }
|
|
2377
|
+
*
|
|
2378
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=aily_session.aily_message&version=v1 document }
|
|
2379
|
+
*
|
|
2380
|
+
* 该 API 用于批量获取飞书智能伙伴应用的消息(Message)的详细信息
|
|
2381
|
+
*/
|
|
2382
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2383
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2384
|
+
return this.httpInstance
|
|
2385
|
+
.request({
|
|
2386
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
|
|
2387
|
+
method: "GET",
|
|
2388
|
+
data,
|
|
2389
|
+
params,
|
|
2390
|
+
headers,
|
|
2391
|
+
})
|
|
2392
|
+
.catch((e) => {
|
|
2393
|
+
this.logger.error(formatErrors(e));
|
|
2394
|
+
throw e;
|
|
2395
|
+
});
|
|
2396
|
+
}),
|
|
2397
|
+
},
|
|
2398
|
+
/**
|
|
2399
|
+
* aily_session
|
|
2400
|
+
*/
|
|
2401
|
+
ailySession: {
|
|
2402
|
+
/**
|
|
2403
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=create&version=v1 click to debug }
|
|
2404
|
+
*
|
|
2405
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session&version=v1 document }
|
|
2406
|
+
*
|
|
2407
|
+
* 该 API 用于创建与某个飞书智能伙伴应用的一次会话(Session)。
|
|
2408
|
+
*/
|
|
2409
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2410
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2411
|
+
return this.httpInstance
|
|
2412
|
+
.request({
|
|
2413
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions`, path),
|
|
2414
|
+
method: "POST",
|
|
2415
|
+
data,
|
|
2416
|
+
params,
|
|
2417
|
+
headers,
|
|
2418
|
+
})
|
|
2419
|
+
.catch((e) => {
|
|
2420
|
+
this.logger.error(formatErrors(e));
|
|
2421
|
+
throw e;
|
|
2422
|
+
});
|
|
2423
|
+
}),
|
|
2424
|
+
/**
|
|
2425
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=delete&version=v1 click to debug }
|
|
2426
|
+
*
|
|
2427
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=aily&resource=aily_session&version=v1 document }
|
|
2428
|
+
*
|
|
2429
|
+
* 该 API 用于销毁与某个飞书智能伙伴应用的一次会话(Session),当会话销毁后、无法继续在会话中创建 / 拉取消息。
|
|
2430
|
+
*/
|
|
2431
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2432
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2433
|
+
return this.httpInstance
|
|
2434
|
+
.request({
|
|
2435
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
|
|
2436
|
+
method: "DELETE",
|
|
2437
|
+
data,
|
|
2438
|
+
params,
|
|
2439
|
+
headers,
|
|
2440
|
+
})
|
|
2441
|
+
.catch((e) => {
|
|
2442
|
+
this.logger.error(formatErrors(e));
|
|
2443
|
+
throw e;
|
|
2444
|
+
});
|
|
2445
|
+
}),
|
|
2446
|
+
/**
|
|
2447
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=get&version=v1 click to debug }
|
|
2448
|
+
*
|
|
2449
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session&version=v1 document }
|
|
2450
|
+
*
|
|
2451
|
+
* 该 API 用于获取与某个飞书智能伙伴应用的一次会话(Session)的详细信息,包括会话的状态、渠道信息、创建时间等。
|
|
2452
|
+
*/
|
|
2453
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2454
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2455
|
+
return this.httpInstance
|
|
2456
|
+
.request({
|
|
2457
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
|
|
2458
|
+
method: "GET",
|
|
2459
|
+
data,
|
|
2460
|
+
params,
|
|
2461
|
+
headers,
|
|
2462
|
+
})
|
|
2463
|
+
.catch((e) => {
|
|
2464
|
+
this.logger.error(formatErrors(e));
|
|
2465
|
+
throw e;
|
|
2466
|
+
});
|
|
2467
|
+
}),
|
|
2468
|
+
/**
|
|
2469
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=update&version=v1 click to debug }
|
|
2470
|
+
*
|
|
2471
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=aily&resource=aily_session&version=v1 document }
|
|
2472
|
+
*
|
|
2473
|
+
* 该 API 用于更新与某个飞书智能伙伴应用的一次会话(Session)。
|
|
2474
|
+
*/
|
|
2475
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2476
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2477
|
+
return this.httpInstance
|
|
2478
|
+
.request({
|
|
2479
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
|
|
2480
|
+
method: "PUT",
|
|
2481
|
+
data,
|
|
2482
|
+
params,
|
|
2483
|
+
headers,
|
|
2484
|
+
})
|
|
2485
|
+
.catch((e) => {
|
|
2486
|
+
this.logger.error(formatErrors(e));
|
|
2487
|
+
throw e;
|
|
2488
|
+
});
|
|
2489
|
+
}),
|
|
2490
|
+
},
|
|
2491
|
+
/**
|
|
2492
|
+
* aily_session.run
|
|
2493
|
+
*/
|
|
2494
|
+
ailySessionRun: {
|
|
2495
|
+
/**
|
|
2496
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=cancel&version=v1 click to debug }
|
|
2497
|
+
*
|
|
2498
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=cancel&project=aily&resource=aily_session.run&version=v1 document }
|
|
2499
|
+
*
|
|
2500
|
+
* 该 API 用于取消指定的运行(Run)。
|
|
2501
|
+
*/
|
|
2502
|
+
cancel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2503
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2504
|
+
return this.httpInstance
|
|
2505
|
+
.request({
|
|
2506
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id/cancel`, path),
|
|
2507
|
+
method: "POST",
|
|
2508
|
+
data,
|
|
2509
|
+
params,
|
|
2510
|
+
headers,
|
|
2511
|
+
})
|
|
2512
|
+
.catch((e) => {
|
|
2513
|
+
this.logger.error(formatErrors(e));
|
|
2514
|
+
throw e;
|
|
2515
|
+
});
|
|
2516
|
+
}),
|
|
2517
|
+
/**
|
|
2518
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=create&version=v1 click to debug }
|
|
2519
|
+
*
|
|
2520
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session.run&version=v1 document }
|
|
2521
|
+
*
|
|
2522
|
+
* 该 API 用于启动一次运行(Run)。
|
|
2523
|
+
*/
|
|
2524
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2525
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2526
|
+
return this.httpInstance
|
|
2527
|
+
.request({
|
|
2528
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
|
|
2529
|
+
method: "POST",
|
|
2530
|
+
data,
|
|
2531
|
+
params,
|
|
2532
|
+
headers,
|
|
2533
|
+
})
|
|
2534
|
+
.catch((e) => {
|
|
2535
|
+
this.logger.error(formatErrors(e));
|
|
2536
|
+
throw e;
|
|
2537
|
+
});
|
|
2538
|
+
}),
|
|
2539
|
+
/**
|
|
2540
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=get&version=v1 click to debug }
|
|
2541
|
+
*
|
|
2542
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session.run&version=v1 document }
|
|
2543
|
+
*
|
|
2544
|
+
* 该 API 用于获取运行(Run)的详细信息。
|
|
2545
|
+
*/
|
|
2546
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2547
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2548
|
+
return this.httpInstance
|
|
2549
|
+
.request({
|
|
2550
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id`, path),
|
|
2551
|
+
method: "GET",
|
|
2552
|
+
data,
|
|
2553
|
+
params,
|
|
2554
|
+
headers,
|
|
2555
|
+
})
|
|
2556
|
+
.catch((e) => {
|
|
2557
|
+
this.logger.error(formatErrors(e));
|
|
2558
|
+
throw e;
|
|
2559
|
+
});
|
|
2560
|
+
}),
|
|
2561
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2562
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2563
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
2564
|
+
const res = yield this.httpInstance
|
|
2565
|
+
.request({
|
|
2566
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
|
|
2567
|
+
method: "GET",
|
|
2568
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
2569
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
2570
|
+
data,
|
|
2571
|
+
})
|
|
2572
|
+
.catch((e) => {
|
|
2573
|
+
this.logger.error(formatErrors(e));
|
|
2574
|
+
});
|
|
2575
|
+
return res;
|
|
2576
|
+
});
|
|
2577
|
+
const Iterable = {
|
|
2578
|
+
[Symbol.asyncIterator]() {
|
|
2579
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
2580
|
+
let hasMore = true;
|
|
2581
|
+
let pageToken;
|
|
2582
|
+
while (hasMore) {
|
|
2583
|
+
try {
|
|
2584
|
+
const res = yield __await(sendRequest({
|
|
2585
|
+
headers,
|
|
2586
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
2587
|
+
data,
|
|
2588
|
+
}));
|
|
2589
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
2590
|
+
// @ts-ignore
|
|
2591
|
+
has_more,
|
|
2592
|
+
// @ts-ignore
|
|
2593
|
+
page_token,
|
|
2594
|
+
// @ts-ignore
|
|
2595
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
2596
|
+
yield yield __await(rest);
|
|
2597
|
+
hasMore = Boolean(has_more);
|
|
2598
|
+
pageToken = page_token || next_page_token;
|
|
2599
|
+
}
|
|
2600
|
+
catch (e) {
|
|
2601
|
+
yield yield __await(null);
|
|
2602
|
+
break;
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
},
|
|
2607
|
+
};
|
|
2608
|
+
return Iterable;
|
|
2609
|
+
}),
|
|
2610
|
+
/**
|
|
2611
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=list&version=v1 click to debug }
|
|
2612
|
+
*
|
|
2613
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=aily_session.run&version=v1 document }
|
|
2614
|
+
*
|
|
2615
|
+
* 该 API 用于批量获取运行(Run)的详细信息。
|
|
2616
|
+
*/
|
|
2617
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2618
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2619
|
+
return this.httpInstance
|
|
2620
|
+
.request({
|
|
2621
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
|
|
2622
|
+
method: "GET",
|
|
2623
|
+
data,
|
|
2624
|
+
params,
|
|
2625
|
+
headers,
|
|
2626
|
+
})
|
|
2627
|
+
.catch((e) => {
|
|
2628
|
+
this.logger.error(formatErrors(e));
|
|
2629
|
+
throw e;
|
|
2630
|
+
});
|
|
2631
|
+
}),
|
|
2632
|
+
},
|
|
2633
|
+
},
|
|
2634
|
+
};
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2265
2638
|
// auto gen
|
|
2266
2639
|
class Client$X extends Client$Y {
|
|
2267
2640
|
constructor() {
|
|
@@ -3497,7 +3870,7 @@ class Client$W extends Client$X {
|
|
|
3497
3870
|
*/
|
|
3498
3871
|
this.approval = {
|
|
3499
3872
|
/**
|
|
3500
|
-
*
|
|
3873
|
+
* 事件
|
|
3501
3874
|
*/
|
|
3502
3875
|
approval: {
|
|
3503
3876
|
/**
|
|
@@ -3782,7 +4155,7 @@ class Client$W extends Client$X {
|
|
|
3782
4155
|
}),
|
|
3783
4156
|
},
|
|
3784
4157
|
/**
|
|
3785
|
-
*
|
|
4158
|
+
* 原生审批实例
|
|
3786
4159
|
*/
|
|
3787
4160
|
instance: {
|
|
3788
4161
|
/**
|
|
@@ -4466,7 +4839,7 @@ class Client$W extends Client$X {
|
|
|
4466
4839
|
},
|
|
4467
4840
|
v4: {
|
|
4468
4841
|
/**
|
|
4469
|
-
*
|
|
4842
|
+
* 事件
|
|
4470
4843
|
*/
|
|
4471
4844
|
approval: {
|
|
4472
4845
|
/**
|
|
@@ -4751,7 +5124,7 @@ class Client$W extends Client$X {
|
|
|
4751
5124
|
}),
|
|
4752
5125
|
},
|
|
4753
5126
|
/**
|
|
4754
|
-
*
|
|
5127
|
+
* 原生审批实例
|
|
4755
5128
|
*/
|
|
4756
5129
|
instance: {
|
|
4757
5130
|
/**
|
|
@@ -19774,6 +20147,31 @@ class Client$I extends Client$J {
|
|
|
19774
20147
|
});
|
|
19775
20148
|
}),
|
|
19776
20149
|
},
|
|
20150
|
+
/**
|
|
20151
|
+
* common_data.id
|
|
20152
|
+
*/
|
|
20153
|
+
commonDataId: {
|
|
20154
|
+
/**
|
|
20155
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
|
|
20156
|
+
*
|
|
20157
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
|
|
20158
|
+
*/
|
|
20159
|
+
convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20160
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20161
|
+
return this.httpInstance
|
|
20162
|
+
.request({
|
|
20163
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
|
|
20164
|
+
method: "POST",
|
|
20165
|
+
data,
|
|
20166
|
+
params,
|
|
20167
|
+
headers,
|
|
20168
|
+
})
|
|
20169
|
+
.catch((e) => {
|
|
20170
|
+
this.logger.error(formatErrors(e));
|
|
20171
|
+
throw e;
|
|
20172
|
+
});
|
|
20173
|
+
}),
|
|
20174
|
+
},
|
|
19777
20175
|
/**
|
|
19778
20176
|
* 公司
|
|
19779
20177
|
*/
|
|
@@ -22188,6 +22586,31 @@ class Client$I extends Client$J {
|
|
|
22188
22586
|
});
|
|
22189
22587
|
}),
|
|
22190
22588
|
},
|
|
22589
|
+
/**
|
|
22590
|
+
* common_data.id
|
|
22591
|
+
*/
|
|
22592
|
+
commonDataId: {
|
|
22593
|
+
/**
|
|
22594
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
|
|
22595
|
+
*
|
|
22596
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
|
|
22597
|
+
*/
|
|
22598
|
+
convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22599
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22600
|
+
return this.httpInstance
|
|
22601
|
+
.request({
|
|
22602
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
|
|
22603
|
+
method: "POST",
|
|
22604
|
+
data,
|
|
22605
|
+
params,
|
|
22606
|
+
headers,
|
|
22607
|
+
})
|
|
22608
|
+
.catch((e) => {
|
|
22609
|
+
this.logger.error(formatErrors(e));
|
|
22610
|
+
throw e;
|
|
22611
|
+
});
|
|
22612
|
+
}),
|
|
22613
|
+
},
|
|
22191
22614
|
/**
|
|
22192
22615
|
* 公司
|
|
22193
22616
|
*/
|
|
@@ -25571,6 +25994,28 @@ class Client$I extends Client$J {
|
|
|
25571
25994
|
throw e;
|
|
25572
25995
|
});
|
|
25573
25996
|
}),
|
|
25997
|
+
/**
|
|
25998
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
|
|
25999
|
+
*
|
|
26000
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_timeline&project=corehr&resource=department&version=v2 document }
|
|
26001
|
+
*
|
|
26002
|
+
* 查询任意日期部门信息
|
|
26003
|
+
*/
|
|
26004
|
+
queryTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26005
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26006
|
+
return this.httpInstance
|
|
26007
|
+
.request({
|
|
26008
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`, path),
|
|
26009
|
+
method: "POST",
|
|
26010
|
+
data,
|
|
26011
|
+
params,
|
|
26012
|
+
headers,
|
|
26013
|
+
})
|
|
26014
|
+
.catch((e) => {
|
|
26015
|
+
this.logger.error(formatErrors(e));
|
|
26016
|
+
throw e;
|
|
26017
|
+
});
|
|
26018
|
+
}),
|
|
25574
26019
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25575
26020
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25576
26021
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -26092,6 +26537,50 @@ class Client$I extends Client$J {
|
|
|
26092
26537
|
throw e;
|
|
26093
26538
|
});
|
|
26094
26539
|
}),
|
|
26540
|
+
/**
|
|
26541
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=delete&version=v2 click to debug }
|
|
26542
|
+
*
|
|
26543
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pre_hire&version=v2 document }
|
|
26544
|
+
*
|
|
26545
|
+
* 删除待入职
|
|
26546
|
+
*/
|
|
26547
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26548
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26549
|
+
return this.httpInstance
|
|
26550
|
+
.request({
|
|
26551
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
|
|
26552
|
+
method: "DELETE",
|
|
26553
|
+
data,
|
|
26554
|
+
params,
|
|
26555
|
+
headers,
|
|
26556
|
+
})
|
|
26557
|
+
.catch((e) => {
|
|
26558
|
+
this.logger.error(formatErrors(e));
|
|
26559
|
+
throw e;
|
|
26560
|
+
});
|
|
26561
|
+
}),
|
|
26562
|
+
/**
|
|
26563
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=patch&version=v2 click to debug }
|
|
26564
|
+
*
|
|
26565
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pre_hire&version=v2 document }
|
|
26566
|
+
*
|
|
26567
|
+
* 更新待入职
|
|
26568
|
+
*/
|
|
26569
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26570
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26571
|
+
return this.httpInstance
|
|
26572
|
+
.request({
|
|
26573
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
|
|
26574
|
+
method: "PATCH",
|
|
26575
|
+
data,
|
|
26576
|
+
params,
|
|
26577
|
+
headers,
|
|
26578
|
+
})
|
|
26579
|
+
.catch((e) => {
|
|
26580
|
+
this.logger.error(formatErrors(e));
|
|
26581
|
+
throw e;
|
|
26582
|
+
});
|
|
26583
|
+
}),
|
|
26095
26584
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26096
26585
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26097
26586
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -26323,6 +26812,31 @@ class Client$I extends Client$J {
|
|
|
26323
26812
|
});
|
|
26324
26813
|
}),
|
|
26325
26814
|
},
|
|
26815
|
+
/**
|
|
26816
|
+
* process.form_variable_data
|
|
26817
|
+
*/
|
|
26818
|
+
processFormVariableData: {
|
|
26819
|
+
/**
|
|
26820
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.form_variable_data&apiName=get&version=v2 click to debug }
|
|
26821
|
+
*
|
|
26822
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process.form_variable_data&version=v2 document }
|
|
26823
|
+
*/
|
|
26824
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26825
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26826
|
+
return this.httpInstance
|
|
26827
|
+
.request({
|
|
26828
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`, path),
|
|
26829
|
+
method: "GET",
|
|
26830
|
+
data,
|
|
26831
|
+
params,
|
|
26832
|
+
headers,
|
|
26833
|
+
})
|
|
26834
|
+
.catch((e) => {
|
|
26835
|
+
this.logger.error(formatErrors(e));
|
|
26836
|
+
throw e;
|
|
26837
|
+
});
|
|
26838
|
+
}),
|
|
26839
|
+
},
|
|
26326
26840
|
/**
|
|
26327
26841
|
* process
|
|
26328
26842
|
*/
|
|
@@ -28116,7 +28630,7 @@ class Client$E extends Client$F {
|
|
|
28116
28630
|
}),
|
|
28117
28631
|
},
|
|
28118
28632
|
/**
|
|
28119
|
-
*
|
|
28633
|
+
* 上传
|
|
28120
28634
|
*/
|
|
28121
28635
|
file: {
|
|
28122
28636
|
/**
|
|
@@ -29815,7 +30329,7 @@ class Client$E extends Client$F {
|
|
|
29815
30329
|
}),
|
|
29816
30330
|
},
|
|
29817
30331
|
/**
|
|
29818
|
-
*
|
|
30332
|
+
* 上传
|
|
29819
30333
|
*/
|
|
29820
30334
|
file: {
|
|
29821
30335
|
/**
|
|
@@ -40838,7 +41352,7 @@ class Client$s extends Client$t {
|
|
|
40838
41352
|
}),
|
|
40839
41353
|
},
|
|
40840
41354
|
/**
|
|
40841
|
-
*
|
|
41355
|
+
* 消息加急
|
|
40842
41356
|
*/
|
|
40843
41357
|
message: {
|
|
40844
41358
|
/**
|
|
@@ -42908,7 +43422,7 @@ class Client$s extends Client$t {
|
|
|
42908
43422
|
}),
|
|
42909
43423
|
},
|
|
42910
43424
|
/**
|
|
42911
|
-
*
|
|
43425
|
+
* 消息加急
|
|
42912
43426
|
*/
|
|
42913
43427
|
message: {
|
|
42914
43428
|
/**
|