@larksuiteoapi/node-sdk 1.28.1 → 1.30.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.
Files changed (4) hide show
  1. package/es/index.js +1237 -21
  2. package/lib/index.js +1237 -21
  3. package/package.json +1 -1
  4. package/types/index.d.ts +7804 -378
package/lib/index.js CHANGED
@@ -238,7 +238,7 @@ const formatErrors = (e) => {
238
238
  };
239
239
 
240
240
  // auto gen
241
- class Client$Z {
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$Y extends Client$Z {
1214
+ class Client$_ 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);
@@ -2263,7 +2267,376 @@ class Client$Y extends Client$Z {
2263
2267
  }
2264
2268
 
2265
2269
  // auto gen
2266
- class Client$X extends Client$Y {
2270
+ class Client$Z extends Client$_ {
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
+
2638
+ // auto gen
2639
+ class Client$Y extends Client$Z {
2267
2640
  constructor() {
2268
2641
  super(...arguments);
2269
2642
  /**
@@ -3489,7 +3862,7 @@ class Client$X extends Client$Y {
3489
3862
  }
3490
3863
 
3491
3864
  // auto gen
3492
- class Client$W extends Client$X {
3865
+ class Client$X extends Client$Y {
3493
3866
  constructor() {
3494
3867
  super(...arguments);
3495
3868
  /**
@@ -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
  /**
@@ -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
  /**
@@ -5439,7 +5812,7 @@ class Client$W extends Client$X {
5439
5812
  }
5440
5813
 
5441
5814
  // auto gen
5442
- class Client$V extends Client$W {
5815
+ class Client$W extends Client$X {
5443
5816
  constructor() {
5444
5817
  super(...arguments);
5445
5818
  /**
@@ -7387,7 +7760,7 @@ class Client$V extends Client$W {
7387
7760
  }
7388
7761
 
7389
7762
  // auto gen
7390
- class Client$U extends Client$V {
7763
+ class Client$V extends Client$W {
7391
7764
  constructor() {
7392
7765
  super(...arguments);
7393
7766
  /**
@@ -7631,7 +8004,7 @@ class Client$U extends Client$V {
7631
8004
  }
7632
8005
 
7633
8006
  // auto gen
7634
- class Client$T extends Client$U {
8007
+ class Client$U extends Client$V {
7635
8008
  constructor() {
7636
8009
  super(...arguments);
7637
8010
  /**
@@ -7895,7 +8268,7 @@ class Client$T extends Client$U {
7895
8268
  }
7896
8269
 
7897
8270
  // auto gen
7898
- class Client$S extends Client$T {
8271
+ class Client$T extends Client$U {
7899
8272
  constructor() {
7900
8273
  super(...arguments);
7901
8274
  /**
@@ -7906,7 +8279,7 @@ class Client$S extends Client$T {
7906
8279
  }
7907
8280
 
7908
8281
  // auto gen
7909
- class Client$R extends Client$S {
8282
+ class Client$S extends Client$T {
7910
8283
  constructor() {
7911
8284
  super(...arguments);
7912
8285
  /**
@@ -8922,7 +9295,7 @@ class Client$R extends Client$S {
8922
9295
  }
8923
9296
 
8924
9297
  // auto gen
8925
- class Client$Q extends Client$R {
9298
+ class Client$R extends Client$S {
8926
9299
  constructor() {
8927
9300
  super(...arguments);
8928
9301
  /**
@@ -12070,7 +12443,7 @@ class Client$Q extends Client$R {
12070
12443
  }
12071
12444
 
12072
12445
  // auto gen
12073
- class Client$P extends Client$Q {
12446
+ class Client$Q extends Client$R {
12074
12447
  constructor() {
12075
12448
  super(...arguments);
12076
12449
  /**
@@ -12248,7 +12621,7 @@ class Client$P extends Client$Q {
12248
12621
  }
12249
12622
 
12250
12623
  // auto gen
12251
- class Client$O extends Client$P {
12624
+ class Client$P extends Client$Q {
12252
12625
  constructor() {
12253
12626
  super(...arguments);
12254
12627
  /**
@@ -12289,7 +12662,7 @@ class Client$O extends Client$P {
12289
12662
  }
12290
12663
 
12291
12664
  // auto gen
12292
- class Client$N extends Client$O {
12665
+ class Client$O extends Client$P {
12293
12666
  constructor() {
12294
12667
  super(...arguments);
12295
12668
  /**
@@ -14877,7 +15250,7 @@ class Client$N extends Client$O {
14877
15250
  }
14878
15251
 
14879
15252
  // auto gen
14880
- class Client$M extends Client$N {
15253
+ class Client$N extends Client$O {
14881
15254
  constructor() {
14882
15255
  super(...arguments);
14883
15256
  /**
@@ -14887,6 +15260,415 @@ class Client$M extends Client$N {
14887
15260
  }
14888
15261
  }
14889
15262
 
15263
+ // auto gen
15264
+ class Client$M extends Client$N {
15265
+ constructor() {
15266
+ super(...arguments);
15267
+ /**
15268
+
15269
+ */
15270
+ this.compensation = {
15271
+ v1: {
15272
+ /**
15273
+ * archive
15274
+ */
15275
+ archive: {
15276
+ /**
15277
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=archive&apiName=query&version=v1 click to debug }
15278
+ *
15279
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=archive&version=v1 document }
15280
+ */
15281
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15282
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15283
+ return this.httpInstance
15284
+ .request({
15285
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/archives/query`, path),
15286
+ method: "POST",
15287
+ data,
15288
+ params,
15289
+ headers,
15290
+ })
15291
+ .catch((e) => {
15292
+ this.logger.error(formatErrors(e));
15293
+ throw e;
15294
+ });
15295
+ }),
15296
+ },
15297
+ /**
15298
+ * change_reason
15299
+ */
15300
+ changeReason: {
15301
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15302
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15303
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
15304
+ const res = yield this.httpInstance
15305
+ .request({
15306
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
15307
+ method: "GET",
15308
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
15309
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
15310
+ data,
15311
+ })
15312
+ .catch((e) => {
15313
+ this.logger.error(formatErrors(e));
15314
+ });
15315
+ return res;
15316
+ });
15317
+ const Iterable = {
15318
+ [Symbol.asyncIterator]() {
15319
+ return __asyncGenerator(this, arguments, function* _a() {
15320
+ let hasMore = true;
15321
+ let pageToken;
15322
+ while (hasMore) {
15323
+ try {
15324
+ const res = yield __await(sendRequest({
15325
+ headers,
15326
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
15327
+ data,
15328
+ }));
15329
+ const _b = get__default["default"](res, "data") || {}, {
15330
+ // @ts-ignore
15331
+ has_more,
15332
+ // @ts-ignore
15333
+ page_token,
15334
+ // @ts-ignore
15335
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
15336
+ yield yield __await(rest);
15337
+ hasMore = Boolean(has_more);
15338
+ pageToken = page_token || next_page_token;
15339
+ }
15340
+ catch (e) {
15341
+ yield yield __await(null);
15342
+ break;
15343
+ }
15344
+ }
15345
+ });
15346
+ },
15347
+ };
15348
+ return Iterable;
15349
+ }),
15350
+ /**
15351
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=change_reason&apiName=list&version=v1 click to debug }
15352
+ *
15353
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=change_reason&version=v1 document }
15354
+ */
15355
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15356
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15357
+ return this.httpInstance
15358
+ .request({
15359
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
15360
+ method: "GET",
15361
+ data,
15362
+ params,
15363
+ headers,
15364
+ })
15365
+ .catch((e) => {
15366
+ this.logger.error(formatErrors(e));
15367
+ throw e;
15368
+ });
15369
+ }),
15370
+ },
15371
+ /**
15372
+ * indicator
15373
+ */
15374
+ indicator: {
15375
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15376
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15377
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
15378
+ const res = yield this.httpInstance
15379
+ .request({
15380
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
15381
+ method: "GET",
15382
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
15383
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
15384
+ data,
15385
+ })
15386
+ .catch((e) => {
15387
+ this.logger.error(formatErrors(e));
15388
+ });
15389
+ return res;
15390
+ });
15391
+ const Iterable = {
15392
+ [Symbol.asyncIterator]() {
15393
+ return __asyncGenerator(this, arguments, function* _a() {
15394
+ let hasMore = true;
15395
+ let pageToken;
15396
+ while (hasMore) {
15397
+ try {
15398
+ const res = yield __await(sendRequest({
15399
+ headers,
15400
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
15401
+ data,
15402
+ }));
15403
+ const _b = get__default["default"](res, "data") || {}, {
15404
+ // @ts-ignore
15405
+ has_more,
15406
+ // @ts-ignore
15407
+ page_token,
15408
+ // @ts-ignore
15409
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
15410
+ yield yield __await(rest);
15411
+ hasMore = Boolean(has_more);
15412
+ pageToken = page_token || next_page_token;
15413
+ }
15414
+ catch (e) {
15415
+ yield yield __await(null);
15416
+ break;
15417
+ }
15418
+ }
15419
+ });
15420
+ },
15421
+ };
15422
+ return Iterable;
15423
+ }),
15424
+ /**
15425
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=indicator&apiName=list&version=v1 click to debug }
15426
+ *
15427
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=indicator&version=v1 document }
15428
+ */
15429
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15430
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15431
+ return this.httpInstance
15432
+ .request({
15433
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
15434
+ method: "GET",
15435
+ data,
15436
+ params,
15437
+ headers,
15438
+ })
15439
+ .catch((e) => {
15440
+ this.logger.error(formatErrors(e));
15441
+ throw e;
15442
+ });
15443
+ }),
15444
+ },
15445
+ /**
15446
+ * item
15447
+ */
15448
+ item: {
15449
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15450
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15451
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
15452
+ const res = yield this.httpInstance
15453
+ .request({
15454
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
15455
+ method: "GET",
15456
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
15457
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
15458
+ data,
15459
+ })
15460
+ .catch((e) => {
15461
+ this.logger.error(formatErrors(e));
15462
+ });
15463
+ return res;
15464
+ });
15465
+ const Iterable = {
15466
+ [Symbol.asyncIterator]() {
15467
+ return __asyncGenerator(this, arguments, function* _a() {
15468
+ let hasMore = true;
15469
+ let pageToken;
15470
+ while (hasMore) {
15471
+ try {
15472
+ const res = yield __await(sendRequest({
15473
+ headers,
15474
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
15475
+ data,
15476
+ }));
15477
+ const _b = get__default["default"](res, "data") || {}, {
15478
+ // @ts-ignore
15479
+ has_more,
15480
+ // @ts-ignore
15481
+ page_token,
15482
+ // @ts-ignore
15483
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
15484
+ yield yield __await(rest);
15485
+ hasMore = Boolean(has_more);
15486
+ pageToken = page_token || next_page_token;
15487
+ }
15488
+ catch (e) {
15489
+ yield yield __await(null);
15490
+ break;
15491
+ }
15492
+ }
15493
+ });
15494
+ },
15495
+ };
15496
+ return Iterable;
15497
+ }),
15498
+ /**
15499
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item&apiName=list&version=v1 click to debug }
15500
+ *
15501
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item&version=v1 document }
15502
+ */
15503
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15504
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15505
+ return this.httpInstance
15506
+ .request({
15507
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
15508
+ method: "GET",
15509
+ data,
15510
+ params,
15511
+ headers,
15512
+ })
15513
+ .catch((e) => {
15514
+ this.logger.error(formatErrors(e));
15515
+ throw e;
15516
+ });
15517
+ }),
15518
+ },
15519
+ /**
15520
+ * item_category
15521
+ */
15522
+ itemCategory: {
15523
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15524
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15525
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
15526
+ const res = yield this.httpInstance
15527
+ .request({
15528
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
15529
+ method: "GET",
15530
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
15531
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
15532
+ data,
15533
+ })
15534
+ .catch((e) => {
15535
+ this.logger.error(formatErrors(e));
15536
+ });
15537
+ return res;
15538
+ });
15539
+ const Iterable = {
15540
+ [Symbol.asyncIterator]() {
15541
+ return __asyncGenerator(this, arguments, function* _a() {
15542
+ let hasMore = true;
15543
+ let pageToken;
15544
+ while (hasMore) {
15545
+ try {
15546
+ const res = yield __await(sendRequest({
15547
+ headers,
15548
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
15549
+ data,
15550
+ }));
15551
+ const _b = get__default["default"](res, "data") || {}, {
15552
+ // @ts-ignore
15553
+ has_more,
15554
+ // @ts-ignore
15555
+ page_token,
15556
+ // @ts-ignore
15557
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
15558
+ yield yield __await(rest);
15559
+ hasMore = Boolean(has_more);
15560
+ pageToken = page_token || next_page_token;
15561
+ }
15562
+ catch (e) {
15563
+ yield yield __await(null);
15564
+ break;
15565
+ }
15566
+ }
15567
+ });
15568
+ },
15569
+ };
15570
+ return Iterable;
15571
+ }),
15572
+ /**
15573
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item_category&apiName=list&version=v1 click to debug }
15574
+ *
15575
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item_category&version=v1 document }
15576
+ */
15577
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15578
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15579
+ return this.httpInstance
15580
+ .request({
15581
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
15582
+ method: "GET",
15583
+ data,
15584
+ params,
15585
+ headers,
15586
+ })
15587
+ .catch((e) => {
15588
+ this.logger.error(formatErrors(e));
15589
+ throw e;
15590
+ });
15591
+ }),
15592
+ },
15593
+ /**
15594
+ * plan
15595
+ */
15596
+ plan: {
15597
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15598
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15599
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
15600
+ const res = yield this.httpInstance
15601
+ .request({
15602
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
15603
+ method: "GET",
15604
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
15605
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
15606
+ data,
15607
+ })
15608
+ .catch((e) => {
15609
+ this.logger.error(formatErrors(e));
15610
+ });
15611
+ return res;
15612
+ });
15613
+ const Iterable = {
15614
+ [Symbol.asyncIterator]() {
15615
+ return __asyncGenerator(this, arguments, function* _a() {
15616
+ let hasMore = true;
15617
+ let pageToken;
15618
+ while (hasMore) {
15619
+ try {
15620
+ const res = yield __await(sendRequest({
15621
+ headers,
15622
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
15623
+ data,
15624
+ }));
15625
+ const _b = get__default["default"](res, "data") || {}, {
15626
+ // @ts-ignore
15627
+ has_more,
15628
+ // @ts-ignore
15629
+ page_token,
15630
+ // @ts-ignore
15631
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
15632
+ yield yield __await(rest);
15633
+ hasMore = Boolean(has_more);
15634
+ pageToken = page_token || next_page_token;
15635
+ }
15636
+ catch (e) {
15637
+ yield yield __await(null);
15638
+ break;
15639
+ }
15640
+ }
15641
+ });
15642
+ },
15643
+ };
15644
+ return Iterable;
15645
+ }),
15646
+ /**
15647
+ * {@link https://open.feishu.cn/api-explorer?project=compensation&resource=plan&apiName=list&version=v1 click to debug }
15648
+ *
15649
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=plan&version=v1 document }
15650
+ */
15651
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15652
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15653
+ return this.httpInstance
15654
+ .request({
15655
+ url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
15656
+ method: "GET",
15657
+ data,
15658
+ params,
15659
+ headers,
15660
+ })
15661
+ .catch((e) => {
15662
+ this.logger.error(formatErrors(e));
15663
+ throw e;
15664
+ });
15665
+ }),
15666
+ },
15667
+ },
15668
+ };
15669
+ }
15670
+ }
15671
+
14890
15672
  // auto gen
14891
15673
  class Client$L extends Client$M {
14892
15674
  constructor() {
@@ -19774,6 +20556,80 @@ class Client$I extends Client$J {
19774
20556
  });
19775
20557
  }),
19776
20558
  },
20559
+ /**
20560
+ * authorization
20561
+ */
20562
+ authorization: {
20563
+ /**
20564
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
20565
+ *
20566
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
20567
+ *
20568
+ * 根据ID查询单个用户授权
20569
+ */
20570
+ getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20571
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20572
+ return this.httpInstance
20573
+ .request({
20574
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
20575
+ method: "GET",
20576
+ data,
20577
+ params,
20578
+ headers,
20579
+ })
20580
+ .catch((e) => {
20581
+ this.logger.error(formatErrors(e));
20582
+ throw e;
20583
+ });
20584
+ }),
20585
+ /**
20586
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
20587
+ *
20588
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
20589
+ *
20590
+ * 批量查询用户授权
20591
+ */
20592
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20593
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20594
+ return this.httpInstance
20595
+ .request({
20596
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
20597
+ method: "GET",
20598
+ data,
20599
+ params,
20600
+ headers,
20601
+ })
20602
+ .catch((e) => {
20603
+ this.logger.error(formatErrors(e));
20604
+ throw e;
20605
+ });
20606
+ }),
20607
+ },
20608
+ /**
20609
+ * common_data.id
20610
+ */
20611
+ commonDataId: {
20612
+ /**
20613
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
20614
+ *
20615
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
20616
+ */
20617
+ convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20618
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20619
+ return this.httpInstance
20620
+ .request({
20621
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
20622
+ method: "POST",
20623
+ data,
20624
+ params,
20625
+ headers,
20626
+ })
20627
+ .catch((e) => {
20628
+ this.logger.error(formatErrors(e));
20629
+ throw e;
20630
+ });
20631
+ }),
20632
+ },
19777
20633
  /**
19778
20634
  * 公司
19779
20635
  */
@@ -21612,6 +22468,30 @@ class Client$I extends Client$J {
21612
22468
  * 个人信息
21613
22469
  */
21614
22470
  person: {
22471
+ /**
22472
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
22473
+ *
22474
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
22475
+ *
22476
+ * 创建个人信息
22477
+ *
22478
+ * 创建人员的个人信息
22479
+ */
22480
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
22481
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
22482
+ return this.httpInstance
22483
+ .request({
22484
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
22485
+ method: "POST",
22486
+ data,
22487
+ params,
22488
+ headers,
22489
+ })
22490
+ .catch((e) => {
22491
+ this.logger.error(formatErrors(e));
22492
+ throw e;
22493
+ });
22494
+ }),
21615
22495
  /**
21616
22496
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
21617
22497
  *
@@ -21660,6 +22540,30 @@ class Client$I extends Client$J {
21660
22540
  throw e;
21661
22541
  });
21662
22542
  }),
22543
+ /**
22544
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
22545
+ *
22546
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
22547
+ *
22548
+ * 更新个人信息
22549
+ *
22550
+ * 更新个人信息
22551
+ */
22552
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
22553
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
22554
+ return this.httpInstance
22555
+ .request({
22556
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
22557
+ method: "PATCH",
22558
+ data,
22559
+ params,
22560
+ headers,
22561
+ })
22562
+ .catch((e) => {
22563
+ this.logger.error(formatErrors(e));
22564
+ throw e;
22565
+ });
22566
+ }),
21663
22567
  /**
21664
22568
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
21665
22569
  *
@@ -22188,6 +23092,80 @@ class Client$I extends Client$J {
22188
23092
  });
22189
23093
  }),
22190
23094
  },
23095
+ /**
23096
+ * authorization
23097
+ */
23098
+ authorization: {
23099
+ /**
23100
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
23101
+ *
23102
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
23103
+ *
23104
+ * 根据ID查询单个用户授权
23105
+ */
23106
+ getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
23107
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
23108
+ return this.httpInstance
23109
+ .request({
23110
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
23111
+ method: "GET",
23112
+ data,
23113
+ params,
23114
+ headers,
23115
+ })
23116
+ .catch((e) => {
23117
+ this.logger.error(formatErrors(e));
23118
+ throw e;
23119
+ });
23120
+ }),
23121
+ /**
23122
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
23123
+ *
23124
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
23125
+ *
23126
+ * 批量查询用户授权
23127
+ */
23128
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
23129
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
23130
+ return this.httpInstance
23131
+ .request({
23132
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
23133
+ method: "GET",
23134
+ data,
23135
+ params,
23136
+ headers,
23137
+ })
23138
+ .catch((e) => {
23139
+ this.logger.error(formatErrors(e));
23140
+ throw e;
23141
+ });
23142
+ }),
23143
+ },
23144
+ /**
23145
+ * common_data.id
23146
+ */
23147
+ commonDataId: {
23148
+ /**
23149
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
23150
+ *
23151
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
23152
+ */
23153
+ convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
23154
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
23155
+ return this.httpInstance
23156
+ .request({
23157
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
23158
+ method: "POST",
23159
+ data,
23160
+ params,
23161
+ headers,
23162
+ })
23163
+ .catch((e) => {
23164
+ this.logger.error(formatErrors(e));
23165
+ throw e;
23166
+ });
23167
+ }),
23168
+ },
22191
23169
  /**
22192
23170
  * 公司
22193
23171
  */
@@ -24026,6 +25004,30 @@ class Client$I extends Client$J {
24026
25004
  * 个人信息
24027
25005
  */
24028
25006
  person: {
25007
+ /**
25008
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
25009
+ *
25010
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
25011
+ *
25012
+ * 创建个人信息
25013
+ *
25014
+ * 创建人员的个人信息
25015
+ */
25016
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25017
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25018
+ return this.httpInstance
25019
+ .request({
25020
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
25021
+ method: "POST",
25022
+ data,
25023
+ params,
25024
+ headers,
25025
+ })
25026
+ .catch((e) => {
25027
+ this.logger.error(formatErrors(e));
25028
+ throw e;
25029
+ });
25030
+ }),
24029
25031
  /**
24030
25032
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
24031
25033
  *
@@ -24074,6 +25076,30 @@ class Client$I extends Client$J {
24074
25076
  throw e;
24075
25077
  });
24076
25078
  }),
25079
+ /**
25080
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
25081
+ *
25082
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
25083
+ *
25084
+ * 更新个人信息
25085
+ *
25086
+ * 更新个人信息
25087
+ */
25088
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25089
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25090
+ return this.httpInstance
25091
+ .request({
25092
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
25093
+ method: "PATCH",
25094
+ data,
25095
+ params,
25096
+ headers,
25097
+ })
25098
+ .catch((e) => {
25099
+ this.logger.error(formatErrors(e));
25100
+ throw e;
25101
+ });
25102
+ }),
24077
25103
  /**
24078
25104
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
24079
25105
  *
@@ -25571,6 +26597,50 @@ class Client$I extends Client$J {
25571
26597
  throw e;
25572
26598
  });
25573
26599
  }),
26600
+ /**
26601
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_multi_timeline&version=v2 click to debug }
26602
+ *
26603
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=department&version=v2 document }
26604
+ *
26605
+ * 查询任意日期部门信息
26606
+ */
26607
+ queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26608
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26609
+ return this.httpInstance
26610
+ .request({
26611
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`, path),
26612
+ method: "POST",
26613
+ data,
26614
+ params,
26615
+ headers,
26616
+ })
26617
+ .catch((e) => {
26618
+ this.logger.error(formatErrors(e));
26619
+ throw e;
26620
+ });
26621
+ }),
26622
+ /**
26623
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
26624
+ *
26625
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_timeline&project=corehr&resource=department&version=v2 document }
26626
+ *
26627
+ * 查询任意日期部门信息
26628
+ */
26629
+ queryTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26630
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26631
+ return this.httpInstance
26632
+ .request({
26633
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`, path),
26634
+ method: "POST",
26635
+ data,
26636
+ params,
26637
+ headers,
26638
+ })
26639
+ .catch((e) => {
26640
+ this.logger.error(formatErrors(e));
26641
+ throw e;
26642
+ });
26643
+ }),
25574
26644
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25575
26645
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
25576
26646
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -25963,6 +27033,33 @@ class Client$I extends Client$J {
25963
27033
  });
25964
27034
  }),
25965
27035
  },
27036
+ /**
27037
+ * job_grade
27038
+ */
27039
+ jobGrade: {
27040
+ /**
27041
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query&version=v2 click to debug }
27042
+ *
27043
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=job_grade&version=v2 document }
27044
+ *
27045
+ * 查询职等信息
27046
+ */
27047
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
27048
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
27049
+ return this.httpInstance
27050
+ .request({
27051
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query`, path),
27052
+ method: "POST",
27053
+ data,
27054
+ params,
27055
+ headers,
27056
+ })
27057
+ .catch((e) => {
27058
+ this.logger.error(formatErrors(e));
27059
+ throw e;
27060
+ });
27061
+ }),
27062
+ },
25966
27063
  /**
25967
27064
  * job_level
25968
27065
  */
@@ -26092,6 +27189,50 @@ class Client$I extends Client$J {
26092
27189
  throw e;
26093
27190
  });
26094
27191
  }),
27192
+ /**
27193
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=delete&version=v2 click to debug }
27194
+ *
27195
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pre_hire&version=v2 document }
27196
+ *
27197
+ * 删除待入职
27198
+ */
27199
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
27200
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
27201
+ return this.httpInstance
27202
+ .request({
27203
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
27204
+ method: "DELETE",
27205
+ data,
27206
+ params,
27207
+ headers,
27208
+ })
27209
+ .catch((e) => {
27210
+ this.logger.error(formatErrors(e));
27211
+ throw e;
27212
+ });
27213
+ }),
27214
+ /**
27215
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=patch&version=v2 click to debug }
27216
+ *
27217
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pre_hire&version=v2 document }
27218
+ *
27219
+ * 更新待入职
27220
+ */
27221
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
27222
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
27223
+ return this.httpInstance
27224
+ .request({
27225
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
27226
+ method: "PATCH",
27227
+ data,
27228
+ params,
27229
+ headers,
27230
+ })
27231
+ .catch((e) => {
27232
+ this.logger.error(formatErrors(e));
27233
+ throw e;
27234
+ });
27235
+ }),
26095
27236
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26096
27237
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
26097
27238
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -26323,6 +27464,31 @@ class Client$I extends Client$J {
26323
27464
  });
26324
27465
  }),
26325
27466
  },
27467
+ /**
27468
+ * process.form_variable_data
27469
+ */
27470
+ processFormVariableData: {
27471
+ /**
27472
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.form_variable_data&apiName=get&version=v2 click to debug }
27473
+ *
27474
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process.form_variable_data&version=v2 document }
27475
+ */
27476
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
27477
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
27478
+ return this.httpInstance
27479
+ .request({
27480
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`, path),
27481
+ method: "GET",
27482
+ data,
27483
+ params,
27484
+ headers,
27485
+ })
27486
+ .catch((e) => {
27487
+ this.logger.error(formatErrors(e));
27488
+ throw e;
27489
+ });
27490
+ }),
27491
+ },
26326
27492
  /**
26327
27493
  * process
26328
27494
  */
@@ -28116,7 +29282,7 @@ class Client$E extends Client$F {
28116
29282
  }),
28117
29283
  },
28118
29284
  /**
28119
- * 文件
29285
+ * 异步任务状态
28120
29286
  */
28121
29287
  file: {
28122
29288
  /**
@@ -29815,7 +30981,7 @@ class Client$E extends Client$F {
29815
30981
  }),
29816
30982
  },
29817
30983
  /**
29818
- * 文件
30984
+ * 异步任务状态
29819
30985
  */
29820
30986
  file: {
29821
30987
  /**
@@ -36946,6 +38112,31 @@ class Client$u extends Client$v {
36946
38112
  });
36947
38113
  }),
36948
38114
  },
38115
+ /**
38116
+ * role
38117
+ */
38118
+ role: {
38119
+ /**
38120
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
38121
+ *
38122
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
38123
+ */
38124
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38125
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38126
+ return this.httpInstance
38127
+ .request({
38128
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
38129
+ method: "GET",
38130
+ data,
38131
+ params,
38132
+ headers,
38133
+ })
38134
+ .catch((e) => {
38135
+ this.logger.error(formatErrors(e));
38136
+ throw e;
38137
+ });
38138
+ }),
38139
+ },
36949
38140
  /**
36950
38141
  * 人才
36951
38142
  */
@@ -39290,6 +40481,31 @@ class Client$u extends Client$v {
39290
40481
  });
39291
40482
  }),
39292
40483
  },
40484
+ /**
40485
+ * role
40486
+ */
40487
+ role: {
40488
+ /**
40489
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
40490
+ *
40491
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
40492
+ */
40493
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
40494
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
40495
+ return this.httpInstance
40496
+ .request({
40497
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
40498
+ method: "GET",
40499
+ data,
40500
+ params,
40501
+ headers,
40502
+ })
40503
+ .catch((e) => {
40504
+ this.logger.error(formatErrors(e));
40505
+ throw e;
40506
+ });
40507
+ }),
40508
+ },
39293
40509
  /**
39294
40510
  * 人才
39295
40511
  */
@@ -40838,7 +42054,7 @@ class Client$s extends Client$t {
40838
42054
  }),
40839
42055
  },
40840
42056
  /**
40841
- * 消息 - 消息卡片
42057
+ * 消息
40842
42058
  */
40843
42059
  message: {
40844
42060
  /**
@@ -42908,7 +44124,7 @@ class Client$s extends Client$t {
42908
44124
  }),
42909
44125
  },
42910
44126
  /**
42911
- * 消息 - 消息卡片
44127
+ * 消息
42912
44128
  */
42913
44129
  message: {
42914
44130
  /**