@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 CHANGED
@@ -221,7 +221,7 @@ const formatErrors = (e) => {
221
221
  };
222
222
 
223
223
  // auto gen
224
- class Client$Z {
224
+ class Client$_ {
225
225
  constructor() {
226
226
  /**
227
227
  * 智能门禁
@@ -1194,11 +1194,11 @@ class Client$Z {
1194
1194
  }
1195
1195
 
1196
1196
  // auto gen
1197
- class Client$Y extends Client$Z {
1197
+ class Client$Z extends Client$_ {
1198
1198
  constructor() {
1199
1199
  super(...arguments);
1200
1200
  /**
1201
- * 管理后台-行为审计
1201
+ * 管理后台-企业勋章
1202
1202
  */
1203
1203
  this.admin = {
1204
1204
  /**
@@ -1320,6 +1320,8 @@ class Client$Y extends Client$Z {
1320
1320
  * {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
1321
1321
  *
1322
1322
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
1323
+ *
1324
+ * 用户行为日志搜索
1323
1325
  */
1324
1326
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1325
1327
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -1840,6 +1842,8 @@ class Client$Y extends Client$Z {
1840
1842
  * {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
1841
1843
  *
1842
1844
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
1845
+ *
1846
+ * 用户行为日志搜索
1843
1847
  */
1844
1848
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1845
1849
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -2245,6 +2249,375 @@ class Client$Y extends Client$Z {
2245
2249
  }
2246
2250
  }
2247
2251
 
2252
+ // auto gen
2253
+ class Client$Y extends Client$Z {
2254
+ constructor() {
2255
+ super(...arguments);
2256
+ /**
2257
+
2258
+ */
2259
+ this.aily = {
2260
+ v1: {
2261
+ /**
2262
+ * aily_session.aily_message
2263
+ */
2264
+ ailySessionAilyMessage: {
2265
+ /**
2266
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=create&version=v1 click to debug }
2267
+ *
2268
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session.aily_message&version=v1 document }
2269
+ *
2270
+ * 该 API 用于向某个飞书智能伙伴应用发送一条消息(Message)。
2271
+ */
2272
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2273
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2274
+ return this.httpInstance
2275
+ .request({
2276
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
2277
+ method: "POST",
2278
+ data,
2279
+ params,
2280
+ headers,
2281
+ })
2282
+ .catch((e) => {
2283
+ this.logger.error(formatErrors(e));
2284
+ throw e;
2285
+ });
2286
+ }),
2287
+ /**
2288
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=get&version=v1 click to debug }
2289
+ *
2290
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session.aily_message&version=v1 document }
2291
+ *
2292
+ * 该 API 用于获取某个飞书智能伙伴应用的消息(Message)的详细信息;包括消息的内容、发送人等。
2293
+ */
2294
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2295
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2296
+ return this.httpInstance
2297
+ .request({
2298
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages/:aily_message_id`, path),
2299
+ method: "GET",
2300
+ data,
2301
+ params,
2302
+ headers,
2303
+ })
2304
+ .catch((e) => {
2305
+ this.logger.error(formatErrors(e));
2306
+ throw e;
2307
+ });
2308
+ }),
2309
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2310
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2311
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
2312
+ const res = yield this.httpInstance
2313
+ .request({
2314
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
2315
+ method: "GET",
2316
+ headers: pickBy(innerPayload.headers, identity),
2317
+ params: pickBy(innerPayload.params, identity),
2318
+ data,
2319
+ })
2320
+ .catch((e) => {
2321
+ this.logger.error(formatErrors(e));
2322
+ });
2323
+ return res;
2324
+ });
2325
+ const Iterable = {
2326
+ [Symbol.asyncIterator]() {
2327
+ return __asyncGenerator(this, arguments, function* _a() {
2328
+ let hasMore = true;
2329
+ let pageToken;
2330
+ while (hasMore) {
2331
+ try {
2332
+ const res = yield __await(sendRequest({
2333
+ headers,
2334
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
2335
+ data,
2336
+ }));
2337
+ const _b = get(res, "data") || {}, {
2338
+ // @ts-ignore
2339
+ has_more,
2340
+ // @ts-ignore
2341
+ page_token,
2342
+ // @ts-ignore
2343
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
2344
+ yield yield __await(rest);
2345
+ hasMore = Boolean(has_more);
2346
+ pageToken = page_token || next_page_token;
2347
+ }
2348
+ catch (e) {
2349
+ yield yield __await(null);
2350
+ break;
2351
+ }
2352
+ }
2353
+ });
2354
+ },
2355
+ };
2356
+ return Iterable;
2357
+ }),
2358
+ /**
2359
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.aily_message&apiName=list&version=v1 click to debug }
2360
+ *
2361
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=aily_session.aily_message&version=v1 document }
2362
+ *
2363
+ * 该 API 用于批量获取飞书智能伙伴应用的消息(Message)的详细信息
2364
+ */
2365
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2366
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2367
+ return this.httpInstance
2368
+ .request({
2369
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`, path),
2370
+ method: "GET",
2371
+ data,
2372
+ params,
2373
+ headers,
2374
+ })
2375
+ .catch((e) => {
2376
+ this.logger.error(formatErrors(e));
2377
+ throw e;
2378
+ });
2379
+ }),
2380
+ },
2381
+ /**
2382
+ * aily_session
2383
+ */
2384
+ ailySession: {
2385
+ /**
2386
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=create&version=v1 click to debug }
2387
+ *
2388
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session&version=v1 document }
2389
+ *
2390
+ * 该 API 用于创建与某个飞书智能伙伴应用的一次会话(Session)。
2391
+ */
2392
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2393
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2394
+ return this.httpInstance
2395
+ .request({
2396
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions`, path),
2397
+ method: "POST",
2398
+ data,
2399
+ params,
2400
+ headers,
2401
+ })
2402
+ .catch((e) => {
2403
+ this.logger.error(formatErrors(e));
2404
+ throw e;
2405
+ });
2406
+ }),
2407
+ /**
2408
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=delete&version=v1 click to debug }
2409
+ *
2410
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=aily&resource=aily_session&version=v1 document }
2411
+ *
2412
+ * 该 API 用于销毁与某个飞书智能伙伴应用的一次会话(Session),当会话销毁后、无法继续在会话中创建 / 拉取消息。
2413
+ */
2414
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2415
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2416
+ return this.httpInstance
2417
+ .request({
2418
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
2419
+ method: "DELETE",
2420
+ data,
2421
+ params,
2422
+ headers,
2423
+ })
2424
+ .catch((e) => {
2425
+ this.logger.error(formatErrors(e));
2426
+ throw e;
2427
+ });
2428
+ }),
2429
+ /**
2430
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=get&version=v1 click to debug }
2431
+ *
2432
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session&version=v1 document }
2433
+ *
2434
+ * 该 API 用于获取与某个飞书智能伙伴应用的一次会话(Session)的详细信息,包括会话的状态、渠道信息、创建时间等。
2435
+ */
2436
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2437
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2438
+ return this.httpInstance
2439
+ .request({
2440
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
2441
+ method: "GET",
2442
+ data,
2443
+ params,
2444
+ headers,
2445
+ })
2446
+ .catch((e) => {
2447
+ this.logger.error(formatErrors(e));
2448
+ throw e;
2449
+ });
2450
+ }),
2451
+ /**
2452
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session&apiName=update&version=v1 click to debug }
2453
+ *
2454
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=aily&resource=aily_session&version=v1 document }
2455
+ *
2456
+ * 该 API 用于更新与某个飞书智能伙伴应用的一次会话(Session)。
2457
+ */
2458
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2459
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2460
+ return this.httpInstance
2461
+ .request({
2462
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`, path),
2463
+ method: "PUT",
2464
+ data,
2465
+ params,
2466
+ headers,
2467
+ })
2468
+ .catch((e) => {
2469
+ this.logger.error(formatErrors(e));
2470
+ throw e;
2471
+ });
2472
+ }),
2473
+ },
2474
+ /**
2475
+ * aily_session.run
2476
+ */
2477
+ ailySessionRun: {
2478
+ /**
2479
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=cancel&version=v1 click to debug }
2480
+ *
2481
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=cancel&project=aily&resource=aily_session.run&version=v1 document }
2482
+ *
2483
+ * 该 API 用于取消指定的运行(Run)。
2484
+ */
2485
+ cancel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2486
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2487
+ return this.httpInstance
2488
+ .request({
2489
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id/cancel`, path),
2490
+ method: "POST",
2491
+ data,
2492
+ params,
2493
+ headers,
2494
+ })
2495
+ .catch((e) => {
2496
+ this.logger.error(formatErrors(e));
2497
+ throw e;
2498
+ });
2499
+ }),
2500
+ /**
2501
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=create&version=v1 click to debug }
2502
+ *
2503
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=aily&resource=aily_session.run&version=v1 document }
2504
+ *
2505
+ * 该 API 用于启动一次运行(Run)。
2506
+ */
2507
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2508
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2509
+ return this.httpInstance
2510
+ .request({
2511
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
2512
+ method: "POST",
2513
+ data,
2514
+ params,
2515
+ headers,
2516
+ })
2517
+ .catch((e) => {
2518
+ this.logger.error(formatErrors(e));
2519
+ throw e;
2520
+ });
2521
+ }),
2522
+ /**
2523
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=get&version=v1 click to debug }
2524
+ *
2525
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=aily_session.run&version=v1 document }
2526
+ *
2527
+ * 该 API 用于获取运行(Run)的详细信息。
2528
+ */
2529
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2530
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2531
+ return this.httpInstance
2532
+ .request({
2533
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id`, path),
2534
+ method: "GET",
2535
+ data,
2536
+ params,
2537
+ headers,
2538
+ })
2539
+ .catch((e) => {
2540
+ this.logger.error(formatErrors(e));
2541
+ throw e;
2542
+ });
2543
+ }),
2544
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2545
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2546
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
2547
+ const res = yield this.httpInstance
2548
+ .request({
2549
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
2550
+ method: "GET",
2551
+ headers: pickBy(innerPayload.headers, identity),
2552
+ params: pickBy(innerPayload.params, identity),
2553
+ data,
2554
+ })
2555
+ .catch((e) => {
2556
+ this.logger.error(formatErrors(e));
2557
+ });
2558
+ return res;
2559
+ });
2560
+ const Iterable = {
2561
+ [Symbol.asyncIterator]() {
2562
+ return __asyncGenerator(this, arguments, function* _a() {
2563
+ let hasMore = true;
2564
+ let pageToken;
2565
+ while (hasMore) {
2566
+ try {
2567
+ const res = yield __await(sendRequest({
2568
+ headers,
2569
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
2570
+ data,
2571
+ }));
2572
+ const _b = get(res, "data") || {}, {
2573
+ // @ts-ignore
2574
+ has_more,
2575
+ // @ts-ignore
2576
+ page_token,
2577
+ // @ts-ignore
2578
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
2579
+ yield yield __await(rest);
2580
+ hasMore = Boolean(has_more);
2581
+ pageToken = page_token || next_page_token;
2582
+ }
2583
+ catch (e) {
2584
+ yield yield __await(null);
2585
+ break;
2586
+ }
2587
+ }
2588
+ });
2589
+ },
2590
+ };
2591
+ return Iterable;
2592
+ }),
2593
+ /**
2594
+ * {@link https://open.feishu.cn/api-explorer?project=aily&resource=aily_session.run&apiName=list&version=v1 click to debug }
2595
+ *
2596
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=aily_session.run&version=v1 document }
2597
+ *
2598
+ * 该 API 用于批量获取运行(Run)的详细信息。
2599
+ */
2600
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2601
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2602
+ return this.httpInstance
2603
+ .request({
2604
+ url: fillApiPath(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`, path),
2605
+ method: "GET",
2606
+ data,
2607
+ params,
2608
+ headers,
2609
+ })
2610
+ .catch((e) => {
2611
+ this.logger.error(formatErrors(e));
2612
+ throw e;
2613
+ });
2614
+ }),
2615
+ },
2616
+ },
2617
+ };
2618
+ }
2619
+ }
2620
+
2248
2621
  // auto gen
2249
2622
  class Client$X extends Client$Y {
2250
2623
  constructor() {
@@ -3480,7 +3853,7 @@ class Client$W extends Client$X {
3480
3853
  */
3481
3854
  this.approval = {
3482
3855
  /**
3483
- * 原生审批定义
3856
+ * 事件
3484
3857
  */
3485
3858
  approval: {
3486
3859
  /**
@@ -3765,7 +4138,7 @@ class Client$W extends Client$X {
3765
4138
  }),
3766
4139
  },
3767
4140
  /**
3768
- * 审批查询
4141
+ * 原生审批实例
3769
4142
  */
3770
4143
  instance: {
3771
4144
  /**
@@ -4449,7 +4822,7 @@ class Client$W extends Client$X {
4449
4822
  },
4450
4823
  v4: {
4451
4824
  /**
4452
- * 原生审批定义
4825
+ * 事件
4453
4826
  */
4454
4827
  approval: {
4455
4828
  /**
@@ -4734,7 +5107,7 @@ class Client$W extends Client$X {
4734
5107
  }),
4735
5108
  },
4736
5109
  /**
4737
- * 审批查询
5110
+ * 原生审批实例
4738
5111
  */
4739
5112
  instance: {
4740
5113
  /**
@@ -19757,6 +20130,31 @@ class Client$I extends Client$J {
19757
20130
  });
19758
20131
  }),
19759
20132
  },
20133
+ /**
20134
+ * common_data.id
20135
+ */
20136
+ commonDataId: {
20137
+ /**
20138
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
20139
+ *
20140
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
20141
+ */
20142
+ convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20143
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20144
+ return this.httpInstance
20145
+ .request({
20146
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
20147
+ method: "POST",
20148
+ data,
20149
+ params,
20150
+ headers,
20151
+ })
20152
+ .catch((e) => {
20153
+ this.logger.error(formatErrors(e));
20154
+ throw e;
20155
+ });
20156
+ }),
20157
+ },
19760
20158
  /**
19761
20159
  * 公司
19762
20160
  */
@@ -22171,6 +22569,31 @@ class Client$I extends Client$J {
22171
22569
  });
22172
22570
  }),
22173
22571
  },
22572
+ /**
22573
+ * common_data.id
22574
+ */
22575
+ commonDataId: {
22576
+ /**
22577
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=common_data.id&apiName=convert&version=v1 click to debug }
22578
+ *
22579
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=convert&project=corehr&resource=common_data.id&version=v1 document }
22580
+ */
22581
+ convert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
22582
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
22583
+ return this.httpInstance
22584
+ .request({
22585
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`, path),
22586
+ method: "POST",
22587
+ data,
22588
+ params,
22589
+ headers,
22590
+ })
22591
+ .catch((e) => {
22592
+ this.logger.error(formatErrors(e));
22593
+ throw e;
22594
+ });
22595
+ }),
22596
+ },
22174
22597
  /**
22175
22598
  * 公司
22176
22599
  */
@@ -25554,6 +25977,28 @@ class Client$I extends Client$J {
25554
25977
  throw e;
25555
25978
  });
25556
25979
  }),
25980
+ /**
25981
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
25982
+ *
25983
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_timeline&project=corehr&resource=department&version=v2 document }
25984
+ *
25985
+ * 查询任意日期部门信息
25986
+ */
25987
+ queryTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25988
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25989
+ return this.httpInstance
25990
+ .request({
25991
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`, path),
25992
+ method: "POST",
25993
+ data,
25994
+ params,
25995
+ headers,
25996
+ })
25997
+ .catch((e) => {
25998
+ this.logger.error(formatErrors(e));
25999
+ throw e;
26000
+ });
26001
+ }),
25557
26002
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25558
26003
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
25559
26004
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -26075,6 +26520,50 @@ class Client$I extends Client$J {
26075
26520
  throw e;
26076
26521
  });
26077
26522
  }),
26523
+ /**
26524
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=delete&version=v2 click to debug }
26525
+ *
26526
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pre_hire&version=v2 document }
26527
+ *
26528
+ * 删除待入职
26529
+ */
26530
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26531
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26532
+ return this.httpInstance
26533
+ .request({
26534
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
26535
+ method: "DELETE",
26536
+ data,
26537
+ params,
26538
+ headers,
26539
+ })
26540
+ .catch((e) => {
26541
+ this.logger.error(formatErrors(e));
26542
+ throw e;
26543
+ });
26544
+ }),
26545
+ /**
26546
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=patch&version=v2 click to debug }
26547
+ *
26548
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pre_hire&version=v2 document }
26549
+ *
26550
+ * 更新待入职
26551
+ */
26552
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26553
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26554
+ return this.httpInstance
26555
+ .request({
26556
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`, path),
26557
+ method: "PATCH",
26558
+ data,
26559
+ params,
26560
+ headers,
26561
+ })
26562
+ .catch((e) => {
26563
+ this.logger.error(formatErrors(e));
26564
+ throw e;
26565
+ });
26566
+ }),
26078
26567
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26079
26568
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
26080
26569
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -26306,6 +26795,31 @@ class Client$I extends Client$J {
26306
26795
  });
26307
26796
  }),
26308
26797
  },
26798
+ /**
26799
+ * process.form_variable_data
26800
+ */
26801
+ processFormVariableData: {
26802
+ /**
26803
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.form_variable_data&apiName=get&version=v2 click to debug }
26804
+ *
26805
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process.form_variable_data&version=v2 document }
26806
+ */
26807
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26808
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26809
+ return this.httpInstance
26810
+ .request({
26811
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`, path),
26812
+ method: "GET",
26813
+ data,
26814
+ params,
26815
+ headers,
26816
+ })
26817
+ .catch((e) => {
26818
+ this.logger.error(formatErrors(e));
26819
+ throw e;
26820
+ });
26821
+ }),
26822
+ },
26309
26823
  /**
26310
26824
  * process
26311
26825
  */
@@ -28099,7 +28613,7 @@ class Client$E extends Client$F {
28099
28613
  }),
28100
28614
  },
28101
28615
  /**
28102
- * 文件
28616
+ * 上传
28103
28617
  */
28104
28618
  file: {
28105
28619
  /**
@@ -29798,7 +30312,7 @@ class Client$E extends Client$F {
29798
30312
  }),
29799
30313
  },
29800
30314
  /**
29801
- * 文件
30315
+ * 上传
29802
30316
  */
29803
30317
  file: {
29804
30318
  /**
@@ -40821,7 +41335,7 @@ class Client$s extends Client$t {
40821
41335
  }),
40822
41336
  },
40823
41337
  /**
40824
- * 消息 - 消息卡片
41338
+ * 消息加急
40825
41339
  */
40826
41340
  message: {
40827
41341
  /**
@@ -42891,7 +43405,7 @@ class Client$s extends Client$t {
42891
43405
  }),
42892
43406
  },
42893
43407
  /**
42894
- * 消息 - 消息卡片
43408
+ * 消息加急
42895
43409
  */
42896
43410
  message: {
42897
43411
  /**