@larksuiteoapi/node-sdk 1.24.0 → 1.26.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$X {
224
+ class Client$Z {
225
225
  constructor() {
226
226
  /**
227
227
  * 智能门禁
@@ -377,6 +377,91 @@ class Client$X {
377
377
  });
378
378
  }),
379
379
  },
380
+ /**
381
+ * rule_external
382
+ */
383
+ ruleExternal: {
384
+ /**
385
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=create&version=v1 click to debug }
386
+ *
387
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=rule_external&version=v1 document }
388
+ */
389
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
390
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
391
+ return this.httpInstance
392
+ .request({
393
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
394
+ method: "POST",
395
+ data,
396
+ params,
397
+ headers,
398
+ })
399
+ .catch((e) => {
400
+ this.logger.error(formatErrors(e));
401
+ throw e;
402
+ });
403
+ }),
404
+ /**
405
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=delete&version=v1 click to debug }
406
+ *
407
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=rule_external&version=v1 document }
408
+ */
409
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
410
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
411
+ return this.httpInstance
412
+ .request({
413
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
414
+ method: "DELETE",
415
+ data,
416
+ params,
417
+ headers,
418
+ })
419
+ .catch((e) => {
420
+ this.logger.error(formatErrors(e));
421
+ throw e;
422
+ });
423
+ }),
424
+ /**
425
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=device_bind&version=v1 click to debug }
426
+ *
427
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=device_bind&project=acs&resource=rule_external&version=v1 document }
428
+ */
429
+ deviceBind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
430
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
431
+ return this.httpInstance
432
+ .request({
433
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`, path),
434
+ method: "POST",
435
+ data,
436
+ params,
437
+ headers,
438
+ })
439
+ .catch((e) => {
440
+ this.logger.error(formatErrors(e));
441
+ throw e;
442
+ });
443
+ }),
444
+ /**
445
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=get&version=v1 click to debug }
446
+ *
447
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=acs&resource=rule_external&version=v1 document }
448
+ */
449
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
450
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
451
+ return this.httpInstance
452
+ .request({
453
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
454
+ method: "GET",
455
+ data,
456
+ params,
457
+ headers,
458
+ })
459
+ .catch((e) => {
460
+ this.logger.error(formatErrors(e));
461
+ throw e;
462
+ });
463
+ }),
464
+ },
380
465
  /**
381
466
  * user.face
382
467
  */
@@ -575,6 +660,51 @@ class Client$X {
575
660
  });
576
661
  }),
577
662
  },
663
+ /**
664
+ * visitor
665
+ */
666
+ visitor: {
667
+ /**
668
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=create&version=v1 click to debug }
669
+ *
670
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=visitor&version=v1 document }
671
+ */
672
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
673
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
674
+ return this.httpInstance
675
+ .request({
676
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors`, path),
677
+ method: "POST",
678
+ data,
679
+ params,
680
+ headers,
681
+ })
682
+ .catch((e) => {
683
+ this.logger.error(formatErrors(e));
684
+ throw e;
685
+ });
686
+ }),
687
+ /**
688
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=delete&version=v1 click to debug }
689
+ *
690
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=visitor&version=v1 document }
691
+ */
692
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
693
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
694
+ return this.httpInstance
695
+ .request({
696
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`, path),
697
+ method: "DELETE",
698
+ data,
699
+ params,
700
+ headers,
701
+ })
702
+ .catch((e) => {
703
+ this.logger.error(formatErrors(e));
704
+ throw e;
705
+ });
706
+ }),
707
+ },
578
708
  v1: {
579
709
  /**
580
710
  * access_record.access_photo
@@ -726,6 +856,91 @@ class Client$X {
726
856
  });
727
857
  }),
728
858
  },
859
+ /**
860
+ * rule_external
861
+ */
862
+ ruleExternal: {
863
+ /**
864
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=create&version=v1 click to debug }
865
+ *
866
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=rule_external&version=v1 document }
867
+ */
868
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
869
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
870
+ return this.httpInstance
871
+ .request({
872
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
873
+ method: "POST",
874
+ data,
875
+ params,
876
+ headers,
877
+ })
878
+ .catch((e) => {
879
+ this.logger.error(formatErrors(e));
880
+ throw e;
881
+ });
882
+ }),
883
+ /**
884
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=delete&version=v1 click to debug }
885
+ *
886
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=rule_external&version=v1 document }
887
+ */
888
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
889
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
890
+ return this.httpInstance
891
+ .request({
892
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
893
+ method: "DELETE",
894
+ data,
895
+ params,
896
+ headers,
897
+ })
898
+ .catch((e) => {
899
+ this.logger.error(formatErrors(e));
900
+ throw e;
901
+ });
902
+ }),
903
+ /**
904
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=device_bind&version=v1 click to debug }
905
+ *
906
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=device_bind&project=acs&resource=rule_external&version=v1 document }
907
+ */
908
+ deviceBind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
909
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
910
+ return this.httpInstance
911
+ .request({
912
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`, path),
913
+ method: "POST",
914
+ data,
915
+ params,
916
+ headers,
917
+ })
918
+ .catch((e) => {
919
+ this.logger.error(formatErrors(e));
920
+ throw e;
921
+ });
922
+ }),
923
+ /**
924
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=get&version=v1 click to debug }
925
+ *
926
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=acs&resource=rule_external&version=v1 document }
927
+ */
928
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
929
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
930
+ return this.httpInstance
931
+ .request({
932
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
933
+ method: "GET",
934
+ data,
935
+ params,
936
+ headers,
937
+ })
938
+ .catch((e) => {
939
+ this.logger.error(formatErrors(e));
940
+ throw e;
941
+ });
942
+ }),
943
+ },
729
944
  /**
730
945
  * user.face
731
946
  */
@@ -924,13 +1139,58 @@ class Client$X {
924
1139
  });
925
1140
  }),
926
1141
  },
1142
+ /**
1143
+ * visitor
1144
+ */
1145
+ visitor: {
1146
+ /**
1147
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=create&version=v1 click to debug }
1148
+ *
1149
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=visitor&version=v1 document }
1150
+ */
1151
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1152
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1153
+ return this.httpInstance
1154
+ .request({
1155
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors`, path),
1156
+ method: "POST",
1157
+ data,
1158
+ params,
1159
+ headers,
1160
+ })
1161
+ .catch((e) => {
1162
+ this.logger.error(formatErrors(e));
1163
+ throw e;
1164
+ });
1165
+ }),
1166
+ /**
1167
+ * {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=delete&version=v1 click to debug }
1168
+ *
1169
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=visitor&version=v1 document }
1170
+ */
1171
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1172
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1173
+ return this.httpInstance
1174
+ .request({
1175
+ url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`, path),
1176
+ method: "DELETE",
1177
+ data,
1178
+ params,
1179
+ headers,
1180
+ })
1181
+ .catch((e) => {
1182
+ this.logger.error(formatErrors(e));
1183
+ throw e;
1184
+ });
1185
+ }),
1186
+ },
927
1187
  },
928
1188
  };
929
1189
  }
930
1190
  }
931
1191
 
932
1192
  // auto gen
933
- class Client$W extends Client$X {
1193
+ class Client$Y extends Client$Z {
934
1194
  constructor() {
935
1195
  super(...arguments);
936
1196
  /**
@@ -1000,63 +1260,136 @@ class Client$W extends Client$X {
1000
1260
  }),
1001
1261
  },
1002
1262
  /**
1003
- * 勋章
1263
+ * 行为审计日志(灰度租户可见)
1004
1264
  */
1005
- badge: {
1006
- /**
1007
- * {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
1008
- *
1009
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/create document }
1010
- *
1011
- * 创建勋章
1012
- *
1013
- * 使用该接口可以创建一枚完整的勋章信息,一个租户下最多可创建1000枚勋章。
1014
- */
1015
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1016
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
1017
- return this.httpInstance
1018
- .request({
1019
- url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
1020
- method: "POST",
1021
- data,
1022
- params,
1023
- headers,
1024
- })
1025
- .catch((e) => {
1026
- this.logger.error(formatErrors(e));
1027
- throw e;
1028
- });
1029
- }),
1030
- /**
1031
- * {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
1032
- *
1033
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/get document }
1034
- *
1035
- * 获取勋章详情
1036
- *
1037
- * 可以通过该接口查询勋章的详情
1038
- */
1039
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1040
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
1041
- return this.httpInstance
1042
- .request({
1043
- url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
1044
- method: "GET",
1045
- data,
1046
- params,
1047
- headers,
1048
- })
1049
- .catch((e) => {
1050
- this.logger.error(formatErrors(e));
1051
- throw e;
1052
- });
1053
- }),
1265
+ auditInfo: {
1054
1266
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1055
1267
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
1056
1268
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
1057
1269
  const res = yield this.httpInstance
1058
1270
  .request({
1059
- url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
1271
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
1272
+ method: "GET",
1273
+ headers: pickBy(innerPayload.headers, identity),
1274
+ params: pickBy(innerPayload.params, identity),
1275
+ })
1276
+ .catch((e) => {
1277
+ this.logger.error(formatErrors(e));
1278
+ });
1279
+ return res;
1280
+ });
1281
+ const Iterable = {
1282
+ [Symbol.asyncIterator]() {
1283
+ return __asyncGenerator(this, arguments, function* _a() {
1284
+ let hasMore = true;
1285
+ let pageToken;
1286
+ while (hasMore) {
1287
+ try {
1288
+ const res = yield __await(sendRequest({
1289
+ headers,
1290
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
1291
+ data,
1292
+ }));
1293
+ const _b = get(res, "data") || {}, {
1294
+ // @ts-ignore
1295
+ has_more,
1296
+ // @ts-ignore
1297
+ page_token,
1298
+ // @ts-ignore
1299
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
1300
+ yield yield __await(rest);
1301
+ hasMore = Boolean(has_more);
1302
+ pageToken = page_token || next_page_token;
1303
+ }
1304
+ catch (e) {
1305
+ yield yield __await(null);
1306
+ break;
1307
+ }
1308
+ }
1309
+ });
1310
+ },
1311
+ };
1312
+ return Iterable;
1313
+ }),
1314
+ /**
1315
+ * {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
1316
+ *
1317
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
1318
+ */
1319
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1320
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1321
+ return this.httpInstance
1322
+ .request({
1323
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
1324
+ method: "GET",
1325
+ data,
1326
+ params,
1327
+ headers,
1328
+ })
1329
+ .catch((e) => {
1330
+ this.logger.error(formatErrors(e));
1331
+ throw e;
1332
+ });
1333
+ }),
1334
+ },
1335
+ /**
1336
+ * 勋章
1337
+ */
1338
+ badge: {
1339
+ /**
1340
+ * {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
1341
+ *
1342
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/create document }
1343
+ *
1344
+ * 创建勋章
1345
+ *
1346
+ * 使用该接口可以创建一枚完整的勋章信息,一个租户下最多可创建1000枚勋章。
1347
+ */
1348
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1349
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1350
+ return this.httpInstance
1351
+ .request({
1352
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
1353
+ method: "POST",
1354
+ data,
1355
+ params,
1356
+ headers,
1357
+ })
1358
+ .catch((e) => {
1359
+ this.logger.error(formatErrors(e));
1360
+ throw e;
1361
+ });
1362
+ }),
1363
+ /**
1364
+ * {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
1365
+ *
1366
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/get document }
1367
+ *
1368
+ * 获取勋章详情
1369
+ *
1370
+ * 可以通过该接口查询勋章的详情
1371
+ */
1372
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1373
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1374
+ return this.httpInstance
1375
+ .request({
1376
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
1377
+ method: "GET",
1378
+ data,
1379
+ params,
1380
+ headers,
1381
+ })
1382
+ .catch((e) => {
1383
+ this.logger.error(formatErrors(e));
1384
+ throw e;
1385
+ });
1386
+ }),
1387
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1388
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1389
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
1390
+ const res = yield this.httpInstance
1391
+ .request({
1392
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
1060
1393
  method: "GET",
1061
1394
  headers: pickBy(innerPayload.headers, identity),
1062
1395
  params: pickBy(innerPayload.params, identity),
@@ -1443,6 +1776,79 @@ class Client$W extends Client$X {
1443
1776
  });
1444
1777
  }),
1445
1778
  },
1779
+ /**
1780
+ * 行为审计日志(灰度租户可见)
1781
+ */
1782
+ auditInfo: {
1783
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1784
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1785
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
1786
+ const res = yield this.httpInstance
1787
+ .request({
1788
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
1789
+ method: "GET",
1790
+ headers: pickBy(innerPayload.headers, identity),
1791
+ params: pickBy(innerPayload.params, identity),
1792
+ })
1793
+ .catch((e) => {
1794
+ this.logger.error(formatErrors(e));
1795
+ });
1796
+ return res;
1797
+ });
1798
+ const Iterable = {
1799
+ [Symbol.asyncIterator]() {
1800
+ return __asyncGenerator(this, arguments, function* _a() {
1801
+ let hasMore = true;
1802
+ let pageToken;
1803
+ while (hasMore) {
1804
+ try {
1805
+ const res = yield __await(sendRequest({
1806
+ headers,
1807
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
1808
+ data,
1809
+ }));
1810
+ const _b = get(res, "data") || {}, {
1811
+ // @ts-ignore
1812
+ has_more,
1813
+ // @ts-ignore
1814
+ page_token,
1815
+ // @ts-ignore
1816
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
1817
+ yield yield __await(rest);
1818
+ hasMore = Boolean(has_more);
1819
+ pageToken = page_token || next_page_token;
1820
+ }
1821
+ catch (e) {
1822
+ yield yield __await(null);
1823
+ break;
1824
+ }
1825
+ }
1826
+ });
1827
+ },
1828
+ };
1829
+ return Iterable;
1830
+ }),
1831
+ /**
1832
+ * {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
1833
+ *
1834
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
1835
+ */
1836
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1837
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
1838
+ return this.httpInstance
1839
+ .request({
1840
+ url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
1841
+ method: "GET",
1842
+ data,
1843
+ params,
1844
+ headers,
1845
+ })
1846
+ .catch((e) => {
1847
+ this.logger.error(formatErrors(e));
1848
+ throw e;
1849
+ });
1850
+ }),
1851
+ },
1446
1852
  /**
1447
1853
  * 勋章
1448
1854
  */
@@ -1830,7 +2236,7 @@ class Client$W extends Client$X {
1830
2236
  }
1831
2237
 
1832
2238
  // auto gen
1833
- class Client$V extends Client$W {
2239
+ class Client$X extends Client$Y {
1834
2240
  constructor() {
1835
2241
  super(...arguments);
1836
2242
  /**
@@ -2370,6 +2776,31 @@ class Client$V extends Client$W {
2370
2776
  });
2371
2777
  }),
2372
2778
  },
2779
+ /**
2780
+ * application.management
2781
+ */
2782
+ applicationManagement: {
2783
+ /**
2784
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.management&apiName=update&version=v6 click to debug }
2785
+ *
2786
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.management&version=v6 document }
2787
+ */
2788
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2789
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2790
+ return this.httpInstance
2791
+ .request({
2792
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/management`, path),
2793
+ method: "PUT",
2794
+ data,
2795
+ params,
2796
+ headers,
2797
+ })
2798
+ .catch((e) => {
2799
+ this.logger.error(formatErrors(e));
2800
+ throw e;
2801
+ });
2802
+ }),
2803
+ },
2373
2804
  /**
2374
2805
  * 事件
2375
2806
  */
@@ -2949,6 +3380,31 @@ class Client$V extends Client$W {
2949
3380
  });
2950
3381
  }),
2951
3382
  },
3383
+ /**
3384
+ * application.management
3385
+ */
3386
+ applicationManagement: {
3387
+ /**
3388
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.management&apiName=update&version=v6 click to debug }
3389
+ *
3390
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.management&version=v6 document }
3391
+ */
3392
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3393
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3394
+ return this.httpInstance
3395
+ .request({
3396
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/management`, path),
3397
+ method: "PUT",
3398
+ data,
3399
+ params,
3400
+ headers,
3401
+ })
3402
+ .catch((e) => {
3403
+ this.logger.error(formatErrors(e));
3404
+ throw e;
3405
+ });
3406
+ }),
3407
+ },
2952
3408
  /**
2953
3409
  * 事件
2954
3410
  */
@@ -3000,7 +3456,7 @@ class Client$V extends Client$W {
3000
3456
  }
3001
3457
 
3002
3458
  // auto gen
3003
- class Client$U extends Client$V {
3459
+ class Client$W extends Client$X {
3004
3460
  constructor() {
3005
3461
  super(...arguments);
3006
3462
  /**
@@ -3774,7 +4230,7 @@ class Client$U extends Client$V {
3774
4230
  }),
3775
4231
  },
3776
4232
  /**
3777
- * 审批查询
4233
+ * 原生审批任务
3778
4234
  */
3779
4235
  task: {
3780
4236
  /**
@@ -4738,7 +5194,7 @@ class Client$U extends Client$V {
4738
5194
  }),
4739
5195
  },
4740
5196
  /**
4741
- * 审批查询
5197
+ * 原生审批任务
4742
5198
  */
4743
5199
  task: {
4744
5200
  /**
@@ -4940,7 +5396,7 @@ class Client$U extends Client$V {
4940
5396
  }
4941
5397
 
4942
5398
  // auto gen
4943
- class Client$T extends Client$U {
5399
+ class Client$V extends Client$W {
4944
5400
  constructor() {
4945
5401
  super(...arguments);
4946
5402
  /**
@@ -6884,7 +7340,7 @@ class Client$T extends Client$U {
6884
7340
  }
6885
7341
 
6886
7342
  // auto gen
6887
- class Client$S extends Client$T {
7343
+ class Client$U extends Client$V {
6888
7344
  constructor() {
6889
7345
  super(...arguments);
6890
7346
  /**
@@ -7128,7 +7584,7 @@ class Client$S extends Client$T {
7128
7584
  }
7129
7585
 
7130
7586
  // auto gen
7131
- class Client$R extends Client$S {
7587
+ class Client$T extends Client$U {
7132
7588
  constructor() {
7133
7589
  super(...arguments);
7134
7590
  /**
@@ -7392,7 +7848,7 @@ class Client$R extends Client$S {
7392
7848
  }
7393
7849
 
7394
7850
  // auto gen
7395
- class Client$Q extends Client$R {
7851
+ class Client$S extends Client$T {
7396
7852
  constructor() {
7397
7853
  super(...arguments);
7398
7854
  /**
@@ -7403,7 +7859,7 @@ class Client$Q extends Client$R {
7403
7859
  }
7404
7860
 
7405
7861
  // auto gen
7406
- class Client$P extends Client$Q {
7862
+ class Client$R extends Client$S {
7407
7863
  constructor() {
7408
7864
  super(...arguments);
7409
7865
  /**
@@ -8413,7 +8869,7 @@ class Client$P extends Client$Q {
8413
8869
  }
8414
8870
 
8415
8871
  // auto gen
8416
- class Client$O extends Client$P {
8872
+ class Client$Q extends Client$R {
8417
8873
  constructor() {
8418
8874
  super(...arguments);
8419
8875
  /**
@@ -9702,6 +10158,76 @@ class Client$O extends Client$P {
9702
10158
  throw e;
9703
10159
  });
9704
10160
  }),
10161
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10162
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10163
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
10164
+ const res = yield this.httpInstance
10165
+ .request({
10166
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
10167
+ method: "POST",
10168
+ headers: pickBy(innerPayload.headers, identity),
10169
+ params: pickBy(innerPayload.params, identity),
10170
+ })
10171
+ .catch((e) => {
10172
+ this.logger.error(formatErrors(e));
10173
+ });
10174
+ return res;
10175
+ });
10176
+ const Iterable = {
10177
+ [Symbol.asyncIterator]() {
10178
+ return __asyncGenerator(this, arguments, function* _a() {
10179
+ let hasMore = true;
10180
+ let pageToken;
10181
+ while (hasMore) {
10182
+ try {
10183
+ const res = yield __await(sendRequest({
10184
+ headers,
10185
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
10186
+ data,
10187
+ }));
10188
+ const _b = get(res, "data") || {}, {
10189
+ // @ts-ignore
10190
+ has_more,
10191
+ // @ts-ignore
10192
+ page_token,
10193
+ // @ts-ignore
10194
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
10195
+ yield yield __await(rest);
10196
+ hasMore = Boolean(has_more);
10197
+ pageToken = page_token || next_page_token;
10198
+ }
10199
+ catch (e) {
10200
+ yield yield __await(null);
10201
+ break;
10202
+ }
10203
+ }
10204
+ });
10205
+ },
10206
+ };
10207
+ return Iterable;
10208
+ }),
10209
+ /**
10210
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=search&version=v1 click to debug }
10211
+ *
10212
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=bitable&resource=app.table.record&version=v1 document }
10213
+ *
10214
+ * 查找多维表格记录
10215
+ */
10216
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10217
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10218
+ return this.httpInstance
10219
+ .request({
10220
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
10221
+ method: "POST",
10222
+ data,
10223
+ params,
10224
+ headers,
10225
+ })
10226
+ .catch((e) => {
10227
+ this.logger.error(formatErrors(e));
10228
+ throw e;
10229
+ });
10230
+ }),
9705
10231
  /**
9706
10232
  * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
9707
10233
  *
@@ -11191,6 +11717,76 @@ class Client$O extends Client$P {
11191
11717
  throw e;
11192
11718
  });
11193
11719
  }),
11720
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11721
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11722
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
11723
+ const res = yield this.httpInstance
11724
+ .request({
11725
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
11726
+ method: "POST",
11727
+ headers: pickBy(innerPayload.headers, identity),
11728
+ params: pickBy(innerPayload.params, identity),
11729
+ })
11730
+ .catch((e) => {
11731
+ this.logger.error(formatErrors(e));
11732
+ });
11733
+ return res;
11734
+ });
11735
+ const Iterable = {
11736
+ [Symbol.asyncIterator]() {
11737
+ return __asyncGenerator(this, arguments, function* _a() {
11738
+ let hasMore = true;
11739
+ let pageToken;
11740
+ while (hasMore) {
11741
+ try {
11742
+ const res = yield __await(sendRequest({
11743
+ headers,
11744
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
11745
+ data,
11746
+ }));
11747
+ const _b = get(res, "data") || {}, {
11748
+ // @ts-ignore
11749
+ has_more,
11750
+ // @ts-ignore
11751
+ page_token,
11752
+ // @ts-ignore
11753
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
11754
+ yield yield __await(rest);
11755
+ hasMore = Boolean(has_more);
11756
+ pageToken = page_token || next_page_token;
11757
+ }
11758
+ catch (e) {
11759
+ yield yield __await(null);
11760
+ break;
11761
+ }
11762
+ }
11763
+ });
11764
+ },
11765
+ };
11766
+ return Iterable;
11767
+ }),
11768
+ /**
11769
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=search&version=v1 click to debug }
11770
+ *
11771
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=bitable&resource=app.table.record&version=v1 document }
11772
+ *
11773
+ * 查找多维表格记录
11774
+ */
11775
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11776
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11777
+ return this.httpInstance
11778
+ .request({
11779
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
11780
+ method: "POST",
11781
+ data,
11782
+ params,
11783
+ headers,
11784
+ })
11785
+ .catch((e) => {
11786
+ this.logger.error(formatErrors(e));
11787
+ throw e;
11788
+ });
11789
+ }),
11194
11790
  /**
11195
11791
  * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
11196
11792
  *
@@ -11403,7 +11999,7 @@ class Client$O extends Client$P {
11403
11999
  }
11404
12000
 
11405
12001
  // auto gen
11406
- class Client$N extends Client$O {
12002
+ class Client$P extends Client$Q {
11407
12003
  constructor() {
11408
12004
  super(...arguments);
11409
12005
  /**
@@ -11581,7 +12177,48 @@ class Client$N extends Client$O {
11581
12177
  }
11582
12178
 
11583
12179
  // auto gen
11584
- class Client$M extends Client$N {
12180
+ class Client$O extends Client$P {
12181
+ constructor() {
12182
+ super(...arguments);
12183
+ /**
12184
+
12185
+ */
12186
+ this.board = {
12187
+ v1: {
12188
+ /**
12189
+ * whiteboard.node
12190
+ */
12191
+ whiteboardNode: {
12192
+ /**
12193
+ * {@link https://open.feishu.cn/api-explorer?project=board&resource=whiteboard.node&apiName=list&version=v1 click to debug }
12194
+ *
12195
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=board&resource=whiteboard.node&version=v1 document }
12196
+ *
12197
+ * 列出画板内的节点数据
12198
+ */
12199
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12200
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12201
+ return this.httpInstance
12202
+ .request({
12203
+ url: fillApiPath(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`, path),
12204
+ method: "GET",
12205
+ data,
12206
+ params,
12207
+ headers,
12208
+ })
12209
+ .catch((e) => {
12210
+ this.logger.error(formatErrors(e));
12211
+ throw e;
12212
+ });
12213
+ }),
12214
+ },
12215
+ },
12216
+ };
12217
+ }
12218
+ }
12219
+
12220
+ // auto gen
12221
+ class Client$N extends Client$O {
11585
12222
  constructor() {
11586
12223
  super(...arguments);
11587
12224
  /**
@@ -12392,6 +13029,46 @@ class Client$M extends Client$N {
12392
13029
  throw e;
12393
13030
  });
12394
13031
  }),
13032
+ /**
13033
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instance_view&version=v4 click to debug }
13034
+ *
13035
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instance_view&project=calendar&resource=calendar.event&version=v4 document }
13036
+ */
13037
+ instanceView: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13038
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
13039
+ return this.httpInstance
13040
+ .request({
13041
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`, path),
13042
+ method: "GET",
13043
+ data,
13044
+ params,
13045
+ headers,
13046
+ })
13047
+ .catch((e) => {
13048
+ this.logger.error(formatErrors(e));
13049
+ throw e;
13050
+ });
13051
+ }),
13052
+ /**
13053
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instances&version=v4 click to debug }
13054
+ *
13055
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instances&project=calendar&resource=calendar.event&version=v4 document }
13056
+ */
13057
+ instances: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13058
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
13059
+ return this.httpInstance
13060
+ .request({
13061
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`, path),
13062
+ method: "GET",
13063
+ data,
13064
+ params,
13065
+ headers,
13066
+ })
13067
+ .catch((e) => {
13068
+ this.logger.error(formatErrors(e));
13069
+ throw e;
13070
+ });
13071
+ }),
12395
13072
  /**
12396
13073
  * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=list&version=v4 click to debug }
12397
13074
  *
@@ -12444,6 +13121,26 @@ class Client$M extends Client$N {
12444
13121
  throw e;
12445
13122
  });
12446
13123
  }),
13124
+ /**
13125
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=reply&version=v4 click to debug }
13126
+ *
13127
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=reply&project=calendar&resource=calendar.event&version=v4 document }
13128
+ */
13129
+ reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13130
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
13131
+ return this.httpInstance
13132
+ .request({
13133
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`, path),
13134
+ method: "POST",
13135
+ data,
13136
+ params,
13137
+ headers,
13138
+ })
13139
+ .catch((e) => {
13140
+ this.logger.error(formatErrors(e));
13141
+ throw e;
13142
+ });
13143
+ }),
12447
13144
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12448
13145
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
12449
13146
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -13615,6 +14312,46 @@ class Client$M extends Client$N {
13615
14312
  throw e;
13616
14313
  });
13617
14314
  }),
14315
+ /**
14316
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instance_view&version=v4 click to debug }
14317
+ *
14318
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instance_view&project=calendar&resource=calendar.event&version=v4 document }
14319
+ */
14320
+ instanceView: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14321
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14322
+ return this.httpInstance
14323
+ .request({
14324
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`, path),
14325
+ method: "GET",
14326
+ data,
14327
+ params,
14328
+ headers,
14329
+ })
14330
+ .catch((e) => {
14331
+ this.logger.error(formatErrors(e));
14332
+ throw e;
14333
+ });
14334
+ }),
14335
+ /**
14336
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instances&version=v4 click to debug }
14337
+ *
14338
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instances&project=calendar&resource=calendar.event&version=v4 document }
14339
+ */
14340
+ instances: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14341
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14342
+ return this.httpInstance
14343
+ .request({
14344
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`, path),
14345
+ method: "GET",
14346
+ data,
14347
+ params,
14348
+ headers,
14349
+ })
14350
+ .catch((e) => {
14351
+ this.logger.error(formatErrors(e));
14352
+ throw e;
14353
+ });
14354
+ }),
13618
14355
  /**
13619
14356
  * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=list&version=v4 click to debug }
13620
14357
  *
@@ -13667,6 +14404,26 @@ class Client$M extends Client$N {
13667
14404
  throw e;
13668
14405
  });
13669
14406
  }),
14407
+ /**
14408
+ * {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=reply&version=v4 click to debug }
14409
+ *
14410
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=reply&project=calendar&resource=calendar.event&version=v4 document }
14411
+ */
14412
+ reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
14413
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
14414
+ return this.httpInstance
14415
+ .request({
14416
+ url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`, path),
14417
+ method: "POST",
14418
+ data,
14419
+ params,
14420
+ headers,
14421
+ })
14422
+ .catch((e) => {
14423
+ this.logger.error(formatErrors(e));
14424
+ throw e;
14425
+ });
14426
+ }),
13670
14427
  searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13671
14428
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13672
14429
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -14039,7 +14796,7 @@ class Client$M extends Client$N {
14039
14796
  }
14040
14797
 
14041
14798
  // auto gen
14042
- class Client$L extends Client$M {
14799
+ class Client$M extends Client$N {
14043
14800
  constructor() {
14044
14801
  super(...arguments);
14045
14802
  /**
@@ -14050,7 +14807,7 @@ class Client$L extends Client$M {
14050
14807
  }
14051
14808
 
14052
14809
  // auto gen
14053
- class Client$K extends Client$L {
14810
+ class Client$L extends Client$M {
14054
14811
  constructor() {
14055
14812
  super(...arguments);
14056
14813
  /**
@@ -18848,7 +19605,7 @@ class Client$K extends Client$L {
18848
19605
  }
18849
19606
 
18850
19607
  // auto gen
18851
- class Client$J extends Client$K {
19608
+ class Client$K extends Client$L {
18852
19609
  constructor() {
18853
19610
  super(...arguments);
18854
19611
  /**
@@ -18859,7 +19616,7 @@ class Client$J extends Client$K {
18859
19616
  }
18860
19617
 
18861
19618
  // auto gen
18862
- class Client$I extends Client$J {
19619
+ class Client$J extends Client$K {
18863
19620
  constructor() {
18864
19621
  super(...arguments);
18865
19622
  /**
@@ -18870,7 +19627,7 @@ class Client$I extends Client$J {
18870
19627
  }
18871
19628
 
18872
19629
  // auto gen
18873
- class Client$H extends Client$I {
19630
+ class Client$I extends Client$J {
18874
19631
  constructor() {
18875
19632
  super(...arguments);
18876
19633
  /**
@@ -19006,6 +19763,28 @@ class Client$H extends Client$I {
19006
19763
  throw e;
19007
19764
  });
19008
19765
  }),
19766
+ /**
19767
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=patch&version=v1 click to debug }
19768
+ *
19769
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=company&version=v1 document }
19770
+ *
19771
+ * 更新公司数据
19772
+ */
19773
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
19774
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
19775
+ return this.httpInstance
19776
+ .request({
19777
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
19778
+ method: "PATCH",
19779
+ data,
19780
+ params,
19781
+ headers,
19782
+ })
19783
+ .catch((e) => {
19784
+ this.logger.error(formatErrors(e));
19785
+ throw e;
19786
+ });
19787
+ }),
19009
19788
  },
19010
19789
  /**
19011
19790
  * compensation_standard
@@ -21397,6 +22176,28 @@ class Client$H extends Client$I {
21397
22176
  throw e;
21398
22177
  });
21399
22178
  }),
22179
+ /**
22180
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=patch&version=v1 click to debug }
22181
+ *
22182
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=company&version=v1 document }
22183
+ *
22184
+ * 更新公司数据
22185
+ */
22186
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
22187
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
22188
+ return this.httpInstance
22189
+ .request({
22190
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
22191
+ method: "PATCH",
22192
+ data,
22193
+ params,
22194
+ headers,
22195
+ })
22196
+ .catch((e) => {
22197
+ this.logger.error(formatErrors(e));
22198
+ throw e;
22199
+ });
22200
+ }),
21400
22201
  },
21401
22202
  /**
21402
22203
  * compensation_standard
@@ -23661,36 +24462,620 @@ class Client$H extends Client$I {
23661
24462
  },
23662
24463
  v2: {
23663
24464
  /**
23664
- * bp
24465
+ * basic_info.bank
23665
24466
  */
23666
- bp: {
23667
- /**
23668
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=bp&apiName=get_by_department&version=v2 click to debug }
23669
- *
23670
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_department&project=corehr&resource=bp&version=v2 document }
23671
- */
23672
- getByDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
23673
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
23674
- return this.httpInstance
23675
- .request({
23676
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`, path),
23677
- method: "POST",
23678
- data,
23679
- params,
23680
- headers,
23681
- })
23682
- .catch((e) => {
23683
- this.logger.error(formatErrors(e));
23684
- throw e;
23685
- });
23686
- }),
23687
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24467
+ basicInfoBank: {
24468
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
23688
24469
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
23689
24470
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
23690
24471
  const res = yield this.httpInstance
23691
24472
  .request({
23692
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps`, path),
23693
- method: "GET",
24473
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
24474
+ method: "POST",
24475
+ headers: pickBy(innerPayload.headers, identity),
24476
+ params: pickBy(innerPayload.params, identity),
24477
+ })
24478
+ .catch((e) => {
24479
+ this.logger.error(formatErrors(e));
24480
+ });
24481
+ return res;
24482
+ });
24483
+ const Iterable = {
24484
+ [Symbol.asyncIterator]() {
24485
+ return __asyncGenerator(this, arguments, function* _a() {
24486
+ let hasMore = true;
24487
+ let pageToken;
24488
+ while (hasMore) {
24489
+ try {
24490
+ const res = yield __await(sendRequest({
24491
+ headers,
24492
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24493
+ data,
24494
+ }));
24495
+ const _b = get(res, "data") || {}, {
24496
+ // @ts-ignore
24497
+ has_more,
24498
+ // @ts-ignore
24499
+ page_token,
24500
+ // @ts-ignore
24501
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24502
+ yield yield __await(rest);
24503
+ hasMore = Boolean(has_more);
24504
+ pageToken = page_token || next_page_token;
24505
+ }
24506
+ catch (e) {
24507
+ yield yield __await(null);
24508
+ break;
24509
+ }
24510
+ }
24511
+ });
24512
+ },
24513
+ };
24514
+ return Iterable;
24515
+ }),
24516
+ /**
24517
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
24518
+ *
24519
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
24520
+ */
24521
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24522
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24523
+ return this.httpInstance
24524
+ .request({
24525
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
24526
+ method: "POST",
24527
+ data,
24528
+ params,
24529
+ headers,
24530
+ })
24531
+ .catch((e) => {
24532
+ this.logger.error(formatErrors(e));
24533
+ throw e;
24534
+ });
24535
+ }),
24536
+ },
24537
+ /**
24538
+ * basic_info.bank_branch
24539
+ */
24540
+ basicInfoBankBranch: {
24541
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24542
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24543
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24544
+ const res = yield this.httpInstance
24545
+ .request({
24546
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
24547
+ method: "POST",
24548
+ headers: pickBy(innerPayload.headers, identity),
24549
+ params: pickBy(innerPayload.params, identity),
24550
+ })
24551
+ .catch((e) => {
24552
+ this.logger.error(formatErrors(e));
24553
+ });
24554
+ return res;
24555
+ });
24556
+ const Iterable = {
24557
+ [Symbol.asyncIterator]() {
24558
+ return __asyncGenerator(this, arguments, function* _a() {
24559
+ let hasMore = true;
24560
+ let pageToken;
24561
+ while (hasMore) {
24562
+ try {
24563
+ const res = yield __await(sendRequest({
24564
+ headers,
24565
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24566
+ data,
24567
+ }));
24568
+ const _b = get(res, "data") || {}, {
24569
+ // @ts-ignore
24570
+ has_more,
24571
+ // @ts-ignore
24572
+ page_token,
24573
+ // @ts-ignore
24574
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24575
+ yield yield __await(rest);
24576
+ hasMore = Boolean(has_more);
24577
+ pageToken = page_token || next_page_token;
24578
+ }
24579
+ catch (e) {
24580
+ yield yield __await(null);
24581
+ break;
24582
+ }
24583
+ }
24584
+ });
24585
+ },
24586
+ };
24587
+ return Iterable;
24588
+ }),
24589
+ /**
24590
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
24591
+ *
24592
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
24593
+ */
24594
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24595
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24596
+ return this.httpInstance
24597
+ .request({
24598
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
24599
+ method: "POST",
24600
+ data,
24601
+ params,
24602
+ headers,
24603
+ })
24604
+ .catch((e) => {
24605
+ this.logger.error(formatErrors(e));
24606
+ throw e;
24607
+ });
24608
+ }),
24609
+ },
24610
+ /**
24611
+ * basic_info.city
24612
+ */
24613
+ basicInfoCity: {
24614
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24615
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24616
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24617
+ const res = yield this.httpInstance
24618
+ .request({
24619
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
24620
+ method: "POST",
24621
+ headers: pickBy(innerPayload.headers, identity),
24622
+ params: pickBy(innerPayload.params, identity),
24623
+ })
24624
+ .catch((e) => {
24625
+ this.logger.error(formatErrors(e));
24626
+ });
24627
+ return res;
24628
+ });
24629
+ const Iterable = {
24630
+ [Symbol.asyncIterator]() {
24631
+ return __asyncGenerator(this, arguments, function* _a() {
24632
+ let hasMore = true;
24633
+ let pageToken;
24634
+ while (hasMore) {
24635
+ try {
24636
+ const res = yield __await(sendRequest({
24637
+ headers,
24638
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24639
+ data,
24640
+ }));
24641
+ const _b = get(res, "data") || {}, {
24642
+ // @ts-ignore
24643
+ has_more,
24644
+ // @ts-ignore
24645
+ page_token,
24646
+ // @ts-ignore
24647
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24648
+ yield yield __await(rest);
24649
+ hasMore = Boolean(has_more);
24650
+ pageToken = page_token || next_page_token;
24651
+ }
24652
+ catch (e) {
24653
+ yield yield __await(null);
24654
+ break;
24655
+ }
24656
+ }
24657
+ });
24658
+ },
24659
+ };
24660
+ return Iterable;
24661
+ }),
24662
+ /**
24663
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
24664
+ *
24665
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
24666
+ */
24667
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24668
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24669
+ return this.httpInstance
24670
+ .request({
24671
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
24672
+ method: "POST",
24673
+ data,
24674
+ params,
24675
+ headers,
24676
+ })
24677
+ .catch((e) => {
24678
+ this.logger.error(formatErrors(e));
24679
+ throw e;
24680
+ });
24681
+ }),
24682
+ },
24683
+ /**
24684
+ * basic_info.country_region
24685
+ */
24686
+ basicInfoCountryRegion: {
24687
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24688
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24689
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24690
+ const res = yield this.httpInstance
24691
+ .request({
24692
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
24693
+ method: "POST",
24694
+ headers: pickBy(innerPayload.headers, identity),
24695
+ params: pickBy(innerPayload.params, identity),
24696
+ })
24697
+ .catch((e) => {
24698
+ this.logger.error(formatErrors(e));
24699
+ });
24700
+ return res;
24701
+ });
24702
+ const Iterable = {
24703
+ [Symbol.asyncIterator]() {
24704
+ return __asyncGenerator(this, arguments, function* _a() {
24705
+ let hasMore = true;
24706
+ let pageToken;
24707
+ while (hasMore) {
24708
+ try {
24709
+ const res = yield __await(sendRequest({
24710
+ headers,
24711
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24712
+ data,
24713
+ }));
24714
+ const _b = get(res, "data") || {}, {
24715
+ // @ts-ignore
24716
+ has_more,
24717
+ // @ts-ignore
24718
+ page_token,
24719
+ // @ts-ignore
24720
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24721
+ yield yield __await(rest);
24722
+ hasMore = Boolean(has_more);
24723
+ pageToken = page_token || next_page_token;
24724
+ }
24725
+ catch (e) {
24726
+ yield yield __await(null);
24727
+ break;
24728
+ }
24729
+ }
24730
+ });
24731
+ },
24732
+ };
24733
+ return Iterable;
24734
+ }),
24735
+ /**
24736
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
24737
+ *
24738
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
24739
+ */
24740
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24741
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24742
+ return this.httpInstance
24743
+ .request({
24744
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
24745
+ method: "POST",
24746
+ data,
24747
+ params,
24748
+ headers,
24749
+ })
24750
+ .catch((e) => {
24751
+ this.logger.error(formatErrors(e));
24752
+ throw e;
24753
+ });
24754
+ }),
24755
+ },
24756
+ /**
24757
+ * basic_info.country_region_subdivision
24758
+ */
24759
+ basicInfoCountryRegionSubdivision: {
24760
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24761
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24762
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24763
+ const res = yield this.httpInstance
24764
+ .request({
24765
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
24766
+ method: "POST",
24767
+ headers: pickBy(innerPayload.headers, identity),
24768
+ params: pickBy(innerPayload.params, identity),
24769
+ })
24770
+ .catch((e) => {
24771
+ this.logger.error(formatErrors(e));
24772
+ });
24773
+ return res;
24774
+ });
24775
+ const Iterable = {
24776
+ [Symbol.asyncIterator]() {
24777
+ return __asyncGenerator(this, arguments, function* _a() {
24778
+ let hasMore = true;
24779
+ let pageToken;
24780
+ while (hasMore) {
24781
+ try {
24782
+ const res = yield __await(sendRequest({
24783
+ headers,
24784
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24785
+ data,
24786
+ }));
24787
+ const _b = get(res, "data") || {}, {
24788
+ // @ts-ignore
24789
+ has_more,
24790
+ // @ts-ignore
24791
+ page_token,
24792
+ // @ts-ignore
24793
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24794
+ yield yield __await(rest);
24795
+ hasMore = Boolean(has_more);
24796
+ pageToken = page_token || next_page_token;
24797
+ }
24798
+ catch (e) {
24799
+ yield yield __await(null);
24800
+ break;
24801
+ }
24802
+ }
24803
+ });
24804
+ },
24805
+ };
24806
+ return Iterable;
24807
+ }),
24808
+ /**
24809
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
24810
+ *
24811
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
24812
+ */
24813
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24814
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24815
+ return this.httpInstance
24816
+ .request({
24817
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
24818
+ method: "POST",
24819
+ data,
24820
+ params,
24821
+ headers,
24822
+ })
24823
+ .catch((e) => {
24824
+ this.logger.error(formatErrors(e));
24825
+ throw e;
24826
+ });
24827
+ }),
24828
+ },
24829
+ /**
24830
+ * basic_info.currency
24831
+ */
24832
+ basicInfoCurrency: {
24833
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24834
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24835
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24836
+ const res = yield this.httpInstance
24837
+ .request({
24838
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
24839
+ method: "POST",
24840
+ headers: pickBy(innerPayload.headers, identity),
24841
+ params: pickBy(innerPayload.params, identity),
24842
+ })
24843
+ .catch((e) => {
24844
+ this.logger.error(formatErrors(e));
24845
+ });
24846
+ return res;
24847
+ });
24848
+ const Iterable = {
24849
+ [Symbol.asyncIterator]() {
24850
+ return __asyncGenerator(this, arguments, function* _a() {
24851
+ let hasMore = true;
24852
+ let pageToken;
24853
+ while (hasMore) {
24854
+ try {
24855
+ const res = yield __await(sendRequest({
24856
+ headers,
24857
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24858
+ data,
24859
+ }));
24860
+ const _b = get(res, "data") || {}, {
24861
+ // @ts-ignore
24862
+ has_more,
24863
+ // @ts-ignore
24864
+ page_token,
24865
+ // @ts-ignore
24866
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24867
+ yield yield __await(rest);
24868
+ hasMore = Boolean(has_more);
24869
+ pageToken = page_token || next_page_token;
24870
+ }
24871
+ catch (e) {
24872
+ yield yield __await(null);
24873
+ break;
24874
+ }
24875
+ }
24876
+ });
24877
+ },
24878
+ };
24879
+ return Iterable;
24880
+ }),
24881
+ /**
24882
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
24883
+ *
24884
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
24885
+ */
24886
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24887
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24888
+ return this.httpInstance
24889
+ .request({
24890
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
24891
+ method: "POST",
24892
+ data,
24893
+ params,
24894
+ headers,
24895
+ })
24896
+ .catch((e) => {
24897
+ this.logger.error(formatErrors(e));
24898
+ throw e;
24899
+ });
24900
+ }),
24901
+ },
24902
+ /**
24903
+ * basic_info.district
24904
+ */
24905
+ basicInfoDistrict: {
24906
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24907
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24908
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24909
+ const res = yield this.httpInstance
24910
+ .request({
24911
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
24912
+ method: "POST",
24913
+ headers: pickBy(innerPayload.headers, identity),
24914
+ params: pickBy(innerPayload.params, identity),
24915
+ })
24916
+ .catch((e) => {
24917
+ this.logger.error(formatErrors(e));
24918
+ });
24919
+ return res;
24920
+ });
24921
+ const Iterable = {
24922
+ [Symbol.asyncIterator]() {
24923
+ return __asyncGenerator(this, arguments, function* _a() {
24924
+ let hasMore = true;
24925
+ let pageToken;
24926
+ while (hasMore) {
24927
+ try {
24928
+ const res = yield __await(sendRequest({
24929
+ headers,
24930
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
24931
+ data,
24932
+ }));
24933
+ const _b = get(res, "data") || {}, {
24934
+ // @ts-ignore
24935
+ has_more,
24936
+ // @ts-ignore
24937
+ page_token,
24938
+ // @ts-ignore
24939
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
24940
+ yield yield __await(rest);
24941
+ hasMore = Boolean(has_more);
24942
+ pageToken = page_token || next_page_token;
24943
+ }
24944
+ catch (e) {
24945
+ yield yield __await(null);
24946
+ break;
24947
+ }
24948
+ }
24949
+ });
24950
+ },
24951
+ };
24952
+ return Iterable;
24953
+ }),
24954
+ /**
24955
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.district&apiName=search&version=v2 click to debug }
24956
+ *
24957
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.district&version=v2 document }
24958
+ */
24959
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24960
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24961
+ return this.httpInstance
24962
+ .request({
24963
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
24964
+ method: "POST",
24965
+ data,
24966
+ params,
24967
+ headers,
24968
+ })
24969
+ .catch((e) => {
24970
+ this.logger.error(formatErrors(e));
24971
+ throw e;
24972
+ });
24973
+ }),
24974
+ },
24975
+ /**
24976
+ * basic_info.nationality
24977
+ */
24978
+ basicInfoNationality: {
24979
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24980
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24981
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24982
+ const res = yield this.httpInstance
24983
+ .request({
24984
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`, path),
24985
+ method: "POST",
24986
+ headers: pickBy(innerPayload.headers, identity),
24987
+ params: pickBy(innerPayload.params, identity),
24988
+ })
24989
+ .catch((e) => {
24990
+ this.logger.error(formatErrors(e));
24991
+ });
24992
+ return res;
24993
+ });
24994
+ const Iterable = {
24995
+ [Symbol.asyncIterator]() {
24996
+ return __asyncGenerator(this, arguments, function* _a() {
24997
+ let hasMore = true;
24998
+ let pageToken;
24999
+ while (hasMore) {
25000
+ try {
25001
+ const res = yield __await(sendRequest({
25002
+ headers,
25003
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
25004
+ data,
25005
+ }));
25006
+ const _b = get(res, "data") || {}, {
25007
+ // @ts-ignore
25008
+ has_more,
25009
+ // @ts-ignore
25010
+ page_token,
25011
+ // @ts-ignore
25012
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
25013
+ yield yield __await(rest);
25014
+ hasMore = Boolean(has_more);
25015
+ pageToken = page_token || next_page_token;
25016
+ }
25017
+ catch (e) {
25018
+ yield yield __await(null);
25019
+ break;
25020
+ }
25021
+ }
25022
+ });
25023
+ },
25024
+ };
25025
+ return Iterable;
25026
+ }),
25027
+ /**
25028
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.nationality&apiName=search&version=v2 click to debug }
25029
+ *
25030
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.nationality&version=v2 document }
25031
+ */
25032
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25033
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25034
+ return this.httpInstance
25035
+ .request({
25036
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`, path),
25037
+ method: "POST",
25038
+ data,
25039
+ params,
25040
+ headers,
25041
+ })
25042
+ .catch((e) => {
25043
+ this.logger.error(formatErrors(e));
25044
+ throw e;
25045
+ });
25046
+ }),
25047
+ },
25048
+ /**
25049
+ * bp
25050
+ */
25051
+ bp: {
25052
+ /**
25053
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=bp&apiName=get_by_department&version=v2 click to debug }
25054
+ *
25055
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_department&project=corehr&resource=bp&version=v2 document }
25056
+ */
25057
+ getByDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25058
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25059
+ return this.httpInstance
25060
+ .request({
25061
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`, path),
25062
+ method: "POST",
25063
+ data,
25064
+ params,
25065
+ headers,
25066
+ })
25067
+ .catch((e) => {
25068
+ this.logger.error(formatErrors(e));
25069
+ throw e;
25070
+ });
25071
+ }),
25072
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25073
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25074
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
25075
+ const res = yield this.httpInstance
25076
+ .request({
25077
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps`, path),
25078
+ method: "GET",
23694
25079
  headers: pickBy(innerPayload.headers, identity),
23695
25080
  params: pickBy(innerPayload.params, identity),
23696
25081
  })
@@ -23857,10 +25242,192 @@ class Client$H extends Client$I {
23857
25242
  });
23858
25243
  }),
23859
25244
  },
25245
+ /**
25246
+ * cost_center
25247
+ */
25248
+ costCenter: {
25249
+ /**
25250
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=create&version=v2 click to debug }
25251
+ *
25252
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=cost_center&version=v2 document }
25253
+ *
25254
+ * 创建成本中心
25255
+ */
25256
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25257
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25258
+ return this.httpInstance
25259
+ .request({
25260
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers`, path),
25261
+ method: "POST",
25262
+ data,
25263
+ params,
25264
+ headers,
25265
+ })
25266
+ .catch((e) => {
25267
+ this.logger.error(formatErrors(e));
25268
+ throw e;
25269
+ });
25270
+ }),
25271
+ /**
25272
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=delete&version=v2 click to debug }
25273
+ *
25274
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=cost_center&version=v2 document }
25275
+ */
25276
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25277
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25278
+ return this.httpInstance
25279
+ .request({
25280
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`, path),
25281
+ method: "DELETE",
25282
+ data,
25283
+ params,
25284
+ headers,
25285
+ })
25286
+ .catch((e) => {
25287
+ this.logger.error(formatErrors(e));
25288
+ throw e;
25289
+ });
25290
+ }),
25291
+ /**
25292
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=patch&version=v2 click to debug }
25293
+ *
25294
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=cost_center&version=v2 document }
25295
+ *
25296
+ * 创建成本中心版本
25297
+ */
25298
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25299
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25300
+ return this.httpInstance
25301
+ .request({
25302
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`, path),
25303
+ method: "PATCH",
25304
+ data,
25305
+ params,
25306
+ headers,
25307
+ })
25308
+ .catch((e) => {
25309
+ this.logger.error(formatErrors(e));
25310
+ throw e;
25311
+ });
25312
+ }),
25313
+ /**
25314
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
25315
+ *
25316
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=cost_center&version=v2 document }
25317
+ *
25318
+ * 查询成本中心信息
25319
+ */
25320
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25321
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25322
+ return this.httpInstance
25323
+ .request({
25324
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/search`, path),
25325
+ method: "POST",
25326
+ data,
25327
+ params,
25328
+ headers,
25329
+ })
25330
+ .catch((e) => {
25331
+ this.logger.error(formatErrors(e));
25332
+ throw e;
25333
+ });
25334
+ }),
25335
+ },
25336
+ /**
25337
+ * cost_center.version
25338
+ */
25339
+ costCenterVersion: {
25340
+ /**
25341
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=create&version=v2 click to debug }
25342
+ *
25343
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=cost_center.version&version=v2 document }
25344
+ *
25345
+ * 创建成本中心版本
25346
+ */
25347
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25348
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25349
+ return this.httpInstance
25350
+ .request({
25351
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions`, path),
25352
+ method: "POST",
25353
+ data,
25354
+ params,
25355
+ headers,
25356
+ })
25357
+ .catch((e) => {
25358
+ this.logger.error(formatErrors(e));
25359
+ throw e;
25360
+ });
25361
+ }),
25362
+ /**
25363
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=delete&version=v2 click to debug }
25364
+ *
25365
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=cost_center.version&version=v2 document }
25366
+ *
25367
+ * 撤销成本中心版本
25368
+ */
25369
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25370
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25371
+ return this.httpInstance
25372
+ .request({
25373
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`, path),
25374
+ method: "DELETE",
25375
+ data,
25376
+ params,
25377
+ headers,
25378
+ })
25379
+ .catch((e) => {
25380
+ this.logger.error(formatErrors(e));
25381
+ throw e;
25382
+ });
25383
+ }),
25384
+ /**
25385
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=patch&version=v2 click to debug }
25386
+ *
25387
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=cost_center.version&version=v2 document }
25388
+ *
25389
+ * 创建成本中心版本
25390
+ */
25391
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25392
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25393
+ return this.httpInstance
25394
+ .request({
25395
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`, path),
25396
+ method: "PATCH",
25397
+ data,
25398
+ params,
25399
+ headers,
25400
+ })
25401
+ .catch((e) => {
25402
+ this.logger.error(formatErrors(e));
25403
+ throw e;
25404
+ });
25405
+ }),
25406
+ },
23860
25407
  /**
23861
25408
  * department
23862
25409
  */
23863
25410
  department: {
25411
+ /**
25412
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=batch_get&version=v2 click to debug }
25413
+ *
25414
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=department&version=v2 document }
25415
+ */
25416
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25417
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25418
+ return this.httpInstance
25419
+ .request({
25420
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/batch_get`, path),
25421
+ method: "POST",
25422
+ data,
25423
+ params,
25424
+ headers,
25425
+ })
25426
+ .catch((e) => {
25427
+ this.logger.error(formatErrors(e));
25428
+ throw e;
25429
+ });
25430
+ }),
23864
25431
  /**
23865
25432
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=parents&version=v2 click to debug }
23866
25433
  *
@@ -24221,199 +25788,332 @@ class Client$H extends Client$I {
24221
25788
  return Iterable;
24222
25789
  }),
24223
25790
  /**
24224
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
24225
- *
24226
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
25791
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
25792
+ *
25793
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
25794
+ *
25795
+ * 获取员工异动列表
25796
+ */
25797
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25798
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25799
+ return this.httpInstance
25800
+ .request({
25801
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/search`, path),
25802
+ method: "POST",
25803
+ data,
25804
+ params,
25805
+ headers,
25806
+ })
25807
+ .catch((e) => {
25808
+ this.logger.error(formatErrors(e));
25809
+ throw e;
25810
+ });
25811
+ }),
25812
+ },
25813
+ /**
25814
+ * job_family
25815
+ */
25816
+ jobFamily: {
25817
+ /**
25818
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
25819
+ *
25820
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
25821
+ *
25822
+ * 通过序列 ID 批量获取序列信息
25823
+ */
25824
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25825
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25826
+ return this.httpInstance
25827
+ .request({
25828
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
25829
+ method: "POST",
25830
+ data,
25831
+ params,
25832
+ headers,
25833
+ })
25834
+ .catch((e) => {
25835
+ this.logger.error(formatErrors(e));
25836
+ throw e;
25837
+ });
25838
+ }),
25839
+ },
25840
+ /**
25841
+ * job_level
25842
+ */
25843
+ jobLevel: {
25844
+ /**
25845
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
25846
+ *
25847
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
25848
+ *
25849
+ * 通过职级 ID 批量获取职级信息
25850
+ */
25851
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25852
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25853
+ return this.httpInstance
25854
+ .request({
25855
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
25856
+ method: "POST",
25857
+ data,
25858
+ params,
25859
+ headers,
25860
+ })
25861
+ .catch((e) => {
25862
+ this.logger.error(formatErrors(e));
25863
+ throw e;
25864
+ });
25865
+ }),
25866
+ },
25867
+ /**
25868
+ * location
25869
+ */
25870
+ location: {
25871
+ /**
25872
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
25873
+ *
25874
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
25875
+ *
25876
+ * 通过地点 ID 批量获取地点信息
25877
+ */
25878
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25879
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25880
+ return this.httpInstance
25881
+ .request({
25882
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
25883
+ method: "POST",
25884
+ data,
25885
+ params,
25886
+ headers,
25887
+ })
25888
+ .catch((e) => {
25889
+ this.logger.error(formatErrors(e));
25890
+ throw e;
25891
+ });
25892
+ }),
25893
+ },
25894
+ /**
25895
+ * person
25896
+ */
25897
+ person: {
25898
+ /**
25899
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
25900
+ *
25901
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
25902
+ *
25903
+ * 创建个人信息数据
25904
+ */
25905
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25906
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25907
+ return this.httpInstance
25908
+ .request({
25909
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
25910
+ method: "POST",
25911
+ data,
25912
+ params,
25913
+ headers,
25914
+ })
25915
+ .catch((e) => {
25916
+ this.logger.error(formatErrors(e));
25917
+ throw e;
25918
+ });
25919
+ }),
25920
+ /**
25921
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
25922
+ *
25923
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
25924
+ */
25925
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25926
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25927
+ return this.httpInstance
25928
+ .request({
25929
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons/:person_id`, path),
25930
+ method: "PATCH",
25931
+ data,
25932
+ params,
25933
+ headers,
25934
+ })
25935
+ .catch((e) => {
25936
+ this.logger.error(formatErrors(e));
25937
+ throw e;
25938
+ });
25939
+ }),
25940
+ },
25941
+ /**
25942
+ * 待入职
25943
+ */
25944
+ preHire: {
25945
+ /**
25946
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
25947
+ *
25948
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
25949
+ *
25950
+ * 创建待入职人员
25951
+ *
25952
+ * 创建待入职人员
25953
+ */
25954
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25955
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25956
+ return this.httpInstance
25957
+ .request({
25958
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
25959
+ method: "POST",
25960
+ data,
25961
+ params,
25962
+ headers,
25963
+ })
25964
+ .catch((e) => {
25965
+ this.logger.error(formatErrors(e));
25966
+ throw e;
25967
+ });
25968
+ }),
25969
+ },
25970
+ /**
25971
+ * probation.assessment
25972
+ */
25973
+ probationAssessment: {
25974
+ /**
25975
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
25976
+ *
25977
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
25978
+ */
25979
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25980
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25981
+ return this.httpInstance
25982
+ .request({
25983
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
25984
+ method: "POST",
25985
+ data,
25986
+ params,
25987
+ headers,
25988
+ })
25989
+ .catch((e) => {
25990
+ this.logger.error(formatErrors(e));
25991
+ throw e;
25992
+ });
25993
+ }),
25994
+ /**
25995
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
25996
+ *
25997
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
25998
+ */
25999
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26000
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26001
+ return this.httpInstance
26002
+ .request({
26003
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
26004
+ method: "DELETE",
26005
+ data,
26006
+ params,
26007
+ headers,
26008
+ })
26009
+ .catch((e) => {
26010
+ this.logger.error(formatErrors(e));
26011
+ throw e;
26012
+ });
26013
+ }),
26014
+ /**
26015
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=patch&version=v2 click to debug }
26016
+ *
26017
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
26018
+ */
26019
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26020
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26021
+ return this.httpInstance
26022
+ .request({
26023
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
26024
+ method: "PATCH",
26025
+ data,
26026
+ params,
26027
+ headers,
26028
+ })
26029
+ .catch((e) => {
26030
+ this.logger.error(formatErrors(e));
26031
+ throw e;
26032
+ });
26033
+ }),
26034
+ },
26035
+ /**
26036
+ * probation
26037
+ */
26038
+ probation: {
26039
+ /**
26040
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
26041
+ *
26042
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
26043
+ */
26044
+ enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26045
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26046
+ return this.httpInstance
26047
+ .request({
26048
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
26049
+ method: "POST",
26050
+ data,
26051
+ params,
26052
+ headers,
26053
+ })
26054
+ .catch((e) => {
26055
+ this.logger.error(formatErrors(e));
26056
+ throw e;
26057
+ });
26058
+ }),
26059
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26060
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26061
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
26062
+ const res = yield this.httpInstance
26063
+ .request({
26064
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
26065
+ method: "POST",
26066
+ headers: pickBy(innerPayload.headers, identity),
26067
+ params: pickBy(innerPayload.params, identity),
26068
+ })
26069
+ .catch((e) => {
26070
+ this.logger.error(formatErrors(e));
26071
+ });
26072
+ return res;
26073
+ });
26074
+ const Iterable = {
26075
+ [Symbol.asyncIterator]() {
26076
+ return __asyncGenerator(this, arguments, function* _a() {
26077
+ let hasMore = true;
26078
+ let pageToken;
26079
+ while (hasMore) {
26080
+ try {
26081
+ const res = yield __await(sendRequest({
26082
+ headers,
26083
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
26084
+ data,
26085
+ }));
26086
+ const _b = get(res, "data") || {}, {
26087
+ // @ts-ignore
26088
+ has_more,
26089
+ // @ts-ignore
26090
+ page_token,
26091
+ // @ts-ignore
26092
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
26093
+ yield yield __await(rest);
26094
+ hasMore = Boolean(has_more);
26095
+ pageToken = page_token || next_page_token;
26096
+ }
26097
+ catch (e) {
26098
+ yield yield __await(null);
26099
+ break;
26100
+ }
26101
+ }
26102
+ });
26103
+ },
26104
+ };
26105
+ return Iterable;
26106
+ }),
26107
+ /**
26108
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
24227
26109
  *
24228
- * 获取员工异动列表
26110
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
24229
26111
  */
24230
26112
  search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24231
26113
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24232
26114
  return this.httpInstance
24233
26115
  .request({
24234
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/search`, path),
24235
- method: "POST",
24236
- data,
24237
- params,
24238
- headers,
24239
- })
24240
- .catch((e) => {
24241
- this.logger.error(formatErrors(e));
24242
- throw e;
24243
- });
24244
- }),
24245
- },
24246
- /**
24247
- * job_family
24248
- */
24249
- jobFamily: {
24250
- /**
24251
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
24252
- *
24253
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
24254
- *
24255
- * 通过序列 ID 批量获取序列信息
24256
- */
24257
- batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24258
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24259
- return this.httpInstance
24260
- .request({
24261
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
24262
- method: "POST",
24263
- data,
24264
- params,
24265
- headers,
24266
- })
24267
- .catch((e) => {
24268
- this.logger.error(formatErrors(e));
24269
- throw e;
24270
- });
24271
- }),
24272
- },
24273
- /**
24274
- * job_level
24275
- */
24276
- jobLevel: {
24277
- /**
24278
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
24279
- *
24280
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
24281
- *
24282
- * 通过职级 ID 批量获取职级信息
24283
- */
24284
- batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24285
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24286
- return this.httpInstance
24287
- .request({
24288
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
24289
- method: "POST",
24290
- data,
24291
- params,
24292
- headers,
24293
- })
24294
- .catch((e) => {
24295
- this.logger.error(formatErrors(e));
24296
- throw e;
24297
- });
24298
- }),
24299
- },
24300
- /**
24301
- * location
24302
- */
24303
- location: {
24304
- /**
24305
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
24306
- *
24307
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
24308
- *
24309
- * 通过地点 ID 批量获取地点信息
24310
- */
24311
- batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24312
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24313
- return this.httpInstance
24314
- .request({
24315
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
24316
- method: "POST",
24317
- data,
24318
- params,
24319
- headers,
24320
- })
24321
- .catch((e) => {
24322
- this.logger.error(formatErrors(e));
24323
- throw e;
24324
- });
24325
- }),
24326
- },
24327
- /**
24328
- * person
24329
- */
24330
- person: {
24331
- /**
24332
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
24333
- *
24334
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
24335
- *
24336
- * 创建个人信息数据
24337
- */
24338
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24339
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24340
- return this.httpInstance
24341
- .request({
24342
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
24343
- method: "POST",
24344
- data,
24345
- params,
24346
- headers,
24347
- })
24348
- .catch((e) => {
24349
- this.logger.error(formatErrors(e));
24350
- throw e;
24351
- });
24352
- }),
24353
- /**
24354
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
24355
- *
24356
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
24357
- */
24358
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24359
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24360
- return this.httpInstance
24361
- .request({
24362
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons/:person_id`, path),
24363
- method: "PATCH",
24364
- data,
24365
- params,
24366
- headers,
24367
- })
24368
- .catch((e) => {
24369
- this.logger.error(formatErrors(e));
24370
- throw e;
24371
- });
24372
- }),
24373
- },
24374
- /**
24375
- * 待入职
24376
- */
24377
- preHire: {
24378
- /**
24379
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
24380
- *
24381
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
24382
- *
24383
- * 创建待入职人员
24384
- *
24385
- * 创建待入职人员
24386
- */
24387
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24388
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24389
- return this.httpInstance
24390
- .request({
24391
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
24392
- method: "POST",
24393
- data,
24394
- params,
24395
- headers,
24396
- })
24397
- .catch((e) => {
24398
- this.logger.error(formatErrors(e));
24399
- throw e;
24400
- });
24401
- }),
24402
- },
24403
- /**
24404
- * probation.assessment
24405
- */
24406
- probationAssessment: {
24407
- /**
24408
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
24409
- *
24410
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
24411
- */
24412
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24413
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24414
- return this.httpInstance
24415
- .request({
24416
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
26116
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24417
26117
  method: "POST",
24418
26118
  data,
24419
26119
  params,
@@ -24424,62 +26124,22 @@ class Client$H extends Client$I {
24424
26124
  throw e;
24425
26125
  });
24426
26126
  }),
24427
- /**
24428
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
24429
- *
24430
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
24431
- */
24432
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24433
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24434
- return this.httpInstance
24435
- .request({
24436
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
24437
- method: "DELETE",
24438
- data,
24439
- params,
24440
- headers,
24441
- })
24442
- .catch((e) => {
24443
- this.logger.error(formatErrors(e));
24444
- throw e;
24445
- });
24446
- }),
24447
- /**
24448
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=patch&version=v2 click to debug }
24449
- *
24450
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
24451
- */
24452
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24453
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
24454
- return this.httpInstance
24455
- .request({
24456
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
24457
- method: "PATCH",
24458
- data,
24459
- params,
24460
- headers,
24461
- })
24462
- .catch((e) => {
24463
- this.logger.error(formatErrors(e));
24464
- throw e;
24465
- });
24466
- }),
24467
26127
  },
24468
26128
  /**
24469
- * probation
26129
+ * process
24470
26130
  */
24471
- probation: {
26131
+ process: {
24472
26132
  /**
24473
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
26133
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=get&version=v2 click to debug }
24474
26134
  *
24475
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
26135
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process&version=v2 document }
24476
26136
  */
24477
- enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26137
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24478
26138
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24479
26139
  return this.httpInstance
24480
26140
  .request({
24481
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
24482
- method: "POST",
26141
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id`, path),
26142
+ method: "GET",
24483
26143
  data,
24484
26144
  params,
24485
26145
  headers,
@@ -24489,13 +26149,13 @@ class Client$H extends Client$I {
24489
26149
  throw e;
24490
26150
  });
24491
26151
  }),
24492
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26152
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24493
26153
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24494
26154
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24495
26155
  const res = yield this.httpInstance
24496
26156
  .request({
24497
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24498
- method: "POST",
26157
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
26158
+ method: "GET",
24499
26159
  headers: pickBy(innerPayload.headers, identity),
24500
26160
  params: pickBy(innerPayload.params, identity),
24501
26161
  })
@@ -24538,16 +26198,16 @@ class Client$H extends Client$I {
24538
26198
  return Iterable;
24539
26199
  }),
24540
26200
  /**
24541
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
26201
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
24542
26202
  *
24543
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
26203
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
24544
26204
  */
24545
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26205
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24546
26206
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24547
26207
  return this.httpInstance
24548
26208
  .request({
24549
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24550
- method: "POST",
26209
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
26210
+ method: "GET",
24551
26211
  data,
24552
26212
  params,
24553
26213
  headers,
@@ -24564,7 +26224,7 @@ class Client$H extends Client$I {
24564
26224
  }
24565
26225
 
24566
26226
  // auto gen
24567
- class Client$G extends Client$H {
26227
+ class Client$H extends Client$I {
24568
26228
  constructor() {
24569
26229
  super(...arguments);
24570
26230
  /**
@@ -24575,7 +26235,7 @@ class Client$G extends Client$H {
24575
26235
  }
24576
26236
 
24577
26237
  // auto gen
24578
- class Client$F extends Client$G {
26238
+ class Client$G extends Client$H {
24579
26239
  constructor() {
24580
26240
  super(...arguments);
24581
26241
  /**
@@ -24791,6 +26451,32 @@ class Client$F extends Client$G {
24791
26451
  return get(res, "data", null);
24792
26452
  }),
24793
26453
  },
26454
+ /**
26455
+ * health_certificate
26456
+ */
26457
+ healthCertificate: {
26458
+ /**
26459
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=health_certificate&apiName=recognize&version=v1 click to debug }
26460
+ *
26461
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=health_certificate&version=v1 document }
26462
+ */
26463
+ recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26464
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26465
+ const res = yield this.httpInstance
26466
+ .request({
26467
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`, path),
26468
+ method: "POST",
26469
+ data,
26470
+ params,
26471
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26472
+ })
26473
+ .catch((e) => {
26474
+ this.logger.error(formatErrors(e));
26475
+ throw e;
26476
+ });
26477
+ return get(res, "data", null);
26478
+ }),
26479
+ },
24794
26480
  /**
24795
26481
  * hkm_mainland_travel_permit
24796
26482
  */
@@ -24843,6 +26529,32 @@ class Client$F extends Client$G {
24843
26529
  return get(res, "data", null);
24844
26530
  }),
24845
26531
  },
26532
+ /**
26533
+ * resume
26534
+ */
26535
+ resume: {
26536
+ /**
26537
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=resume&apiName=parse&version=v1 click to debug }
26538
+ *
26539
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=parse&project=document_ai&resource=resume&version=v1 document }
26540
+ */
26541
+ parse: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26542
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26543
+ const res = yield this.httpInstance
26544
+ .request({
26545
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/resume/parse`, path),
26546
+ method: "POST",
26547
+ data,
26548
+ params,
26549
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26550
+ })
26551
+ .catch((e) => {
26552
+ this.logger.error(formatErrors(e));
26553
+ throw e;
26554
+ });
26555
+ return get(res, "data", null);
26556
+ }),
26557
+ },
24846
26558
  /**
24847
26559
  * taxi_invoice
24848
26560
  */
@@ -24947,6 +26659,32 @@ class Client$F extends Client$G {
24947
26659
  return get(res, "data", null);
24948
26660
  }),
24949
26661
  },
26662
+ /**
26663
+ * vehicle_invoice
26664
+ */
26665
+ vehicleInvoice: {
26666
+ /**
26667
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=vehicle_invoice&apiName=recognize&version=v1 click to debug }
26668
+ *
26669
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=vehicle_invoice&version=v1 document }
26670
+ */
26671
+ recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26672
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26673
+ const res = yield this.httpInstance
26674
+ .request({
26675
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`, path),
26676
+ method: "POST",
26677
+ data,
26678
+ params,
26679
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26680
+ })
26681
+ .catch((e) => {
26682
+ this.logger.error(formatErrors(e));
26683
+ throw e;
26684
+ });
26685
+ return get(res, "data", null);
26686
+ }),
26687
+ },
24950
26688
  /**
24951
26689
  * vehicle_license
24952
26690
  */
@@ -24979,7 +26717,7 @@ class Client$F extends Client$G {
24979
26717
  }
24980
26718
 
24981
26719
  // auto gen
24982
- class Client$E extends Client$F {
26720
+ class Client$F extends Client$G {
24983
26721
  constructor() {
24984
26722
  super(...arguments);
24985
26723
  /**
@@ -25775,11 +27513,11 @@ class Client$E extends Client$F {
25775
27513
  }
25776
27514
 
25777
27515
  // auto gen
25778
- class Client$D extends Client$E {
27516
+ class Client$E extends Client$F {
25779
27517
  constructor() {
25780
27518
  super(...arguments);
25781
27519
  /**
25782
- * 云文档-文件管理
27520
+ * 云文档-文档
25783
27521
  */
25784
27522
  this.drive = {
25785
27523
  /**
@@ -27002,7 +28740,7 @@ class Client$D extends Client$E {
27002
28740
  }),
27003
28741
  },
27004
28742
  /**
27005
- * 素材
28743
+ * 分片上传
27006
28744
  */
27007
28745
  media: {
27008
28746
  /**
@@ -28696,7 +30434,7 @@ class Client$D extends Client$E {
28696
30434
  }),
28697
30435
  },
28698
30436
  /**
28699
- * 素材
30437
+ * 分片上传
28700
30438
  */
28701
30439
  media: {
28702
30440
  /**
@@ -29170,12 +30908,59 @@ class Client$D extends Client$E {
29170
30908
  }),
29171
30909
  },
29172
30910
  },
30911
+ v2: {
30912
+ /**
30913
+ * permission.public
30914
+ */
30915
+ permissionPublic: {
30916
+ /**
30917
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v2 click to debug }
30918
+ *
30919
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=drive&resource=permission.public&version=v2 document }
30920
+ */
30921
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30922
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30923
+ return this.httpInstance
30924
+ .request({
30925
+ url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
30926
+ method: "GET",
30927
+ data,
30928
+ params,
30929
+ headers,
30930
+ })
30931
+ .catch((e) => {
30932
+ this.logger.error(formatErrors(e));
30933
+ throw e;
30934
+ });
30935
+ }),
30936
+ /**
30937
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v2 click to debug }
30938
+ *
30939
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=drive&resource=permission.public&version=v2 document }
30940
+ */
30941
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30942
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30943
+ return this.httpInstance
30944
+ .request({
30945
+ url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
30946
+ method: "PATCH",
30947
+ data,
30948
+ params,
30949
+ headers,
30950
+ })
30951
+ .catch((e) => {
30952
+ this.logger.error(formatErrors(e));
30953
+ throw e;
30954
+ });
30955
+ }),
30956
+ },
30957
+ },
29173
30958
  };
29174
30959
  }
29175
30960
  }
29176
30961
 
29177
30962
  // auto gen
29178
- class Client$C extends Client$D {
30963
+ class Client$D extends Client$E {
29179
30964
  constructor() {
29180
30965
  super(...arguments);
29181
30966
  /**
@@ -29186,7 +30971,7 @@ class Client$C extends Client$D {
29186
30971
  }
29187
30972
 
29188
30973
  // auto gen
29189
- class Client$B extends Client$C {
30974
+ class Client$C extends Client$D {
29190
30975
  constructor() {
29191
30976
  super(...arguments);
29192
30977
  /**
@@ -29446,7 +31231,7 @@ class Client$B extends Client$C {
29446
31231
  }
29447
31232
 
29448
31233
  // auto gen
29449
- class Client$A extends Client$B {
31234
+ class Client$B extends Client$C {
29450
31235
  constructor() {
29451
31236
  super(...arguments);
29452
31237
  /**
@@ -29457,7 +31242,7 @@ class Client$A extends Client$B {
29457
31242
  }
29458
31243
 
29459
31244
  // auto gen
29460
- class Client$z extends Client$A {
31245
+ class Client$A extends Client$B {
29461
31246
  constructor() {
29462
31247
  super(...arguments);
29463
31248
  /**
@@ -29629,7 +31414,7 @@ class Client$z extends Client$A {
29629
31414
  }
29630
31415
 
29631
31416
  // auto gen
29632
- class Client$y extends Client$z {
31417
+ class Client$z extends Client$A {
29633
31418
  constructor() {
29634
31419
  super(...arguments);
29635
31420
  /**
@@ -29640,7 +31425,7 @@ class Client$y extends Client$z {
29640
31425
  }
29641
31426
 
29642
31427
  // auto gen
29643
- class Client$x extends Client$y {
31428
+ class Client$y extends Client$z {
29644
31429
  constructor() {
29645
31430
  super(...arguments);
29646
31431
  /**
@@ -29651,7 +31436,7 @@ class Client$x extends Client$y {
29651
31436
  }
29652
31437
 
29653
31438
  // auto gen
29654
- class Client$w extends Client$x {
31439
+ class Client$x extends Client$y {
29655
31440
  constructor() {
29656
31441
  super(...arguments);
29657
31442
  /**
@@ -29662,7 +31447,7 @@ class Client$w extends Client$x {
29662
31447
  }
29663
31448
 
29664
31449
  // auto gen
29665
- class Client$v extends Client$w {
31450
+ class Client$w extends Client$x {
29666
31451
  constructor() {
29667
31452
  super(...arguments);
29668
31453
  /**
@@ -29902,7 +31687,7 @@ class Client$v extends Client$w {
29902
31687
  }
29903
31688
 
29904
31689
  // auto gen
29905
- class Client$u extends Client$v {
31690
+ class Client$v extends Client$w {
29906
31691
  constructor() {
29907
31692
  super(...arguments);
29908
31693
  /**
@@ -32794,7 +34579,7 @@ class Client$u extends Client$v {
32794
34579
  }
32795
34580
 
32796
34581
  // auto gen
32797
- class Client$t extends Client$u {
34582
+ class Client$u extends Client$v {
32798
34583
  constructor() {
32799
34584
  super(...arguments);
32800
34585
  /**
@@ -33918,6 +35703,50 @@ class Client$t extends Client$u {
33918
35703
  throw e;
33919
35704
  });
33920
35705
  }),
35706
+ /**
35707
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
35708
+ *
35709
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
35710
+ *
35711
+ * 获取职位列表
35712
+ *
35713
+ * 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
35714
+ */
35715
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
35716
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
35717
+ return this.httpInstance
35718
+ .request({
35719
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
35720
+ method: "GET",
35721
+ data,
35722
+ params,
35723
+ headers,
35724
+ })
35725
+ .catch((e) => {
35726
+ this.logger.error(formatErrors(e));
35727
+ throw e;
35728
+ });
35729
+ }),
35730
+ /**
35731
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
35732
+ *
35733
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
35734
+ */
35735
+ recruiter: (payload, options) => __awaiter(this, void 0, void 0, function* () {
35736
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
35737
+ return this.httpInstance
35738
+ .request({
35739
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`, path),
35740
+ method: "GET",
35741
+ data,
35742
+ params,
35743
+ headers,
35744
+ })
35745
+ .catch((e) => {
35746
+ this.logger.error(formatErrors(e));
35747
+ throw e;
35748
+ });
35749
+ }),
33921
35750
  /**
33922
35751
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
33923
35752
  *
@@ -34963,6 +36792,30 @@ class Client$t extends Client$u {
34963
36792
  throw e;
34964
36793
  });
34965
36794
  }),
36795
+ /**
36796
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
36797
+ *
36798
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
36799
+ *
36800
+ * 获取人才列表
36801
+ *
36802
+ * 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
36803
+ */
36804
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
36805
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
36806
+ return this.httpInstance
36807
+ .request({
36808
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
36809
+ method: "GET",
36810
+ data,
36811
+ params,
36812
+ headers,
36813
+ })
36814
+ .catch((e) => {
36815
+ this.logger.error(formatErrors(e));
36816
+ throw e;
36817
+ });
36818
+ }),
34966
36819
  },
34967
36820
  /**
34968
36821
  * talent_folder
@@ -36188,6 +38041,50 @@ class Client$t extends Client$u {
36188
38041
  throw e;
36189
38042
  });
36190
38043
  }),
38044
+ /**
38045
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
38046
+ *
38047
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
38048
+ *
38049
+ * 获取职位列表
38050
+ *
38051
+ * 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
38052
+ */
38053
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38054
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38055
+ return this.httpInstance
38056
+ .request({
38057
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
38058
+ method: "GET",
38059
+ data,
38060
+ params,
38061
+ headers,
38062
+ })
38063
+ .catch((e) => {
38064
+ this.logger.error(formatErrors(e));
38065
+ throw e;
38066
+ });
38067
+ }),
38068
+ /**
38069
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
38070
+ *
38071
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
38072
+ */
38073
+ recruiter: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38074
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38075
+ return this.httpInstance
38076
+ .request({
38077
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`, path),
38078
+ method: "GET",
38079
+ data,
38080
+ params,
38081
+ headers,
38082
+ })
38083
+ .catch((e) => {
38084
+ this.logger.error(formatErrors(e));
38085
+ throw e;
38086
+ });
38087
+ }),
36191
38088
  /**
36192
38089
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
36193
38090
  *
@@ -37233,6 +39130,30 @@ class Client$t extends Client$u {
37233
39130
  throw e;
37234
39131
  });
37235
39132
  }),
39133
+ /**
39134
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
39135
+ *
39136
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
39137
+ *
39138
+ * 获取人才列表
39139
+ *
39140
+ * 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
39141
+ */
39142
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
39143
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
39144
+ return this.httpInstance
39145
+ .request({
39146
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
39147
+ method: "GET",
39148
+ data,
39149
+ params,
39150
+ headers,
39151
+ })
39152
+ .catch((e) => {
39153
+ this.logger.error(formatErrors(e));
39154
+ throw e;
39155
+ });
39156
+ }),
37236
39157
  },
37237
39158
  /**
37238
39159
  * talent_folder
@@ -37346,7 +39267,7 @@ class Client$t extends Client$u {
37346
39267
  }
37347
39268
 
37348
39269
  // auto gen
37349
- class Client$s extends Client$t {
39270
+ class Client$t extends Client$u {
37350
39271
  constructor() {
37351
39272
  super(...arguments);
37352
39273
  /**
@@ -37422,7 +39343,7 @@ class Client$s extends Client$t {
37422
39343
  }
37423
39344
 
37424
39345
  // auto gen
37425
- class Client$r extends Client$s {
39346
+ class Client$s extends Client$t {
37426
39347
  constructor() {
37427
39348
  super(...arguments);
37428
39349
  /**
@@ -38676,7 +40597,7 @@ class Client$r extends Client$s {
38676
40597
  }),
38677
40598
  },
38678
40599
  /**
38679
- * 消息
40600
+ * 消息加急
38680
40601
  */
38681
40602
  message: {
38682
40603
  /**
@@ -39464,6 +41385,33 @@ class Client$r extends Client$s {
39464
41385
  });
39465
41386
  }),
39466
41387
  },
41388
+ /**
41389
+ * thread
41390
+ */
41391
+ thread: {
41392
+ /**
41393
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
41394
+ *
41395
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
41396
+ *
41397
+ * 转发
41398
+ */
41399
+ forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41400
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41401
+ return this.httpInstance
41402
+ .request({
41403
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
41404
+ method: "POST",
41405
+ data,
41406
+ params,
41407
+ headers,
41408
+ })
41409
+ .catch((e) => {
41410
+ this.logger.error(formatErrors(e));
41411
+ throw e;
41412
+ });
41413
+ }),
41414
+ },
39467
41415
  v1: {
39468
41416
  /**
39469
41417
  * 消息 - 批量消息
@@ -40712,7 +42660,7 @@ class Client$r extends Client$s {
40712
42660
  }),
40713
42661
  },
40714
42662
  /**
40715
- * 消息
42663
+ * 消息加急
40716
42664
  */
40717
42665
  message: {
40718
42666
  /**
@@ -41500,13 +43448,40 @@ class Client$r extends Client$s {
41500
43448
  });
41501
43449
  }),
41502
43450
  },
43451
+ /**
43452
+ * thread
43453
+ */
43454
+ thread: {
43455
+ /**
43456
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
43457
+ *
43458
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
43459
+ *
43460
+ * 转发
43461
+ */
43462
+ forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43463
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43464
+ return this.httpInstance
43465
+ .request({
43466
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
43467
+ method: "POST",
43468
+ data,
43469
+ params,
43470
+ headers,
43471
+ })
43472
+ .catch((e) => {
43473
+ this.logger.error(formatErrors(e));
43474
+ throw e;
43475
+ });
43476
+ }),
43477
+ },
41503
43478
  },
41504
43479
  };
41505
43480
  }
41506
43481
  }
41507
43482
 
41508
43483
  // auto gen
41509
- class Client$q extends Client$r {
43484
+ class Client$r extends Client$s {
41510
43485
  constructor() {
41511
43486
  super(...arguments);
41512
43487
  /**
@@ -41656,6 +43631,26 @@ class Client$q extends Client$r {
41656
43631
  throw e;
41657
43632
  });
41658
43633
  }),
43634
+ /**
43635
+ * {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=delete&version=v1 click to debug }
43636
+ *
43637
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 document }
43638
+ */
43639
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43640
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43641
+ return this.httpInstance
43642
+ .request({
43643
+ url: fillApiPath(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`, path),
43644
+ method: "DELETE",
43645
+ data,
43646
+ params,
43647
+ headers,
43648
+ })
43649
+ .catch((e) => {
43650
+ this.logger.error(formatErrors(e));
43651
+ throw e;
43652
+ });
43653
+ }),
41659
43654
  /**
41660
43655
  * {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=get&version=v1 click to debug }
41661
43656
  *
@@ -41965,7 +43960,7 @@ class Client$q extends Client$r {
41965
43960
  }
41966
43961
 
41967
43962
  // auto gen
41968
- class Client$p extends Client$q {
43963
+ class Client$q extends Client$r {
41969
43964
  constructor() {
41970
43965
  super(...arguments);
41971
43966
  /**
@@ -44873,7 +46868,7 @@ class Client$p extends Client$q {
44873
46868
  }
44874
46869
 
44875
46870
  // auto gen
44876
- class Client$o extends Client$p {
46871
+ class Client$p extends Client$q {
44877
46872
  constructor() {
44878
46873
  super(...arguments);
44879
46874
  /**
@@ -44993,7 +46988,7 @@ class Client$o extends Client$p {
44993
46988
  }
44994
46989
 
44995
46990
  // auto gen
44996
- class Client$n extends Client$o {
46991
+ class Client$o extends Client$p {
44997
46992
  constructor() {
44998
46993
  super(...arguments);
44999
46994
  /**
@@ -45004,7 +46999,7 @@ class Client$n extends Client$o {
45004
46999
  }
45005
47000
 
45006
47001
  // auto gen
45007
- class Client$m extends Client$n {
47002
+ class Client$n extends Client$o {
45008
47003
  constructor() {
45009
47004
  super(...arguments);
45010
47005
  /**
@@ -45015,7 +47010,7 @@ class Client$m extends Client$n {
45015
47010
  }
45016
47011
 
45017
47012
  // auto gen
45018
- class Client$l extends Client$m {
47013
+ class Client$m extends Client$n {
45019
47014
  constructor() {
45020
47015
  super(...arguments);
45021
47016
  /**
@@ -45087,6 +47082,30 @@ class Client$l extends Client$m {
45087
47082
  * OKR周期
45088
47083
  */
45089
47084
  period: {
47085
+ /**
47086
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
47087
+ *
47088
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
47089
+ *
47090
+ * 创建 OKR 周期
47091
+ *
47092
+ * 根据周期规则创建一个 OKR 周期
47093
+ */
47094
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47095
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47096
+ return this.httpInstance
47097
+ .request({
47098
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
47099
+ method: "POST",
47100
+ data,
47101
+ params,
47102
+ headers,
47103
+ })
47104
+ .catch((e) => {
47105
+ this.logger.error(formatErrors(e));
47106
+ throw e;
47107
+ });
47108
+ }),
45090
47109
  /**
45091
47110
  * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
45092
47111
  *
@@ -45113,6 +47132,59 @@ class Client$l extends Client$m {
45113
47132
  throw e;
45114
47133
  });
45115
47134
  }),
47135
+ /**
47136
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
47137
+ *
47138
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
47139
+ *
47140
+ * 修改 OKR 周期状态
47141
+ *
47142
+ * 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
47143
+ */
47144
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47145
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47146
+ return this.httpInstance
47147
+ .request({
47148
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
47149
+ method: "PATCH",
47150
+ data,
47151
+ params,
47152
+ headers,
47153
+ })
47154
+ .catch((e) => {
47155
+ this.logger.error(formatErrors(e));
47156
+ throw e;
47157
+ });
47158
+ }),
47159
+ },
47160
+ /**
47161
+ * 周期规则
47162
+ */
47163
+ periodRule: {
47164
+ /**
47165
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
47166
+ *
47167
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
47168
+ *
47169
+ * 获取 OKR 周期规则
47170
+ *
47171
+ * 获取租户的周期规则列表
47172
+ */
47173
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47174
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47175
+ return this.httpInstance
47176
+ .request({
47177
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
47178
+ method: "GET",
47179
+ data,
47180
+ params,
47181
+ headers,
47182
+ })
47183
+ .catch((e) => {
47184
+ this.logger.error(formatErrors(e));
47185
+ throw e;
47186
+ });
47187
+ }),
45116
47188
  },
45117
47189
  /**
45118
47190
  * OKR进展记录
@@ -45312,6 +47384,30 @@ class Client$l extends Client$m {
45312
47384
  * OKR周期
45313
47385
  */
45314
47386
  period: {
47387
+ /**
47388
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
47389
+ *
47390
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
47391
+ *
47392
+ * 创建 OKR 周期
47393
+ *
47394
+ * 根据周期规则创建一个 OKR 周期
47395
+ */
47396
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47397
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47398
+ return this.httpInstance
47399
+ .request({
47400
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
47401
+ method: "POST",
47402
+ data,
47403
+ params,
47404
+ headers,
47405
+ })
47406
+ .catch((e) => {
47407
+ this.logger.error(formatErrors(e));
47408
+ throw e;
47409
+ });
47410
+ }),
45315
47411
  /**
45316
47412
  * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
45317
47413
  *
@@ -45338,6 +47434,59 @@ class Client$l extends Client$m {
45338
47434
  throw e;
45339
47435
  });
45340
47436
  }),
47437
+ /**
47438
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
47439
+ *
47440
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
47441
+ *
47442
+ * 修改 OKR 周期状态
47443
+ *
47444
+ * 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
47445
+ */
47446
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47447
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47448
+ return this.httpInstance
47449
+ .request({
47450
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
47451
+ method: "PATCH",
47452
+ data,
47453
+ params,
47454
+ headers,
47455
+ })
47456
+ .catch((e) => {
47457
+ this.logger.error(formatErrors(e));
47458
+ throw e;
47459
+ });
47460
+ }),
47461
+ },
47462
+ /**
47463
+ * 周期规则
47464
+ */
47465
+ periodRule: {
47466
+ /**
47467
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
47468
+ *
47469
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
47470
+ *
47471
+ * 获取 OKR 周期规则
47472
+ *
47473
+ * 获取租户的周期规则列表
47474
+ */
47475
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47476
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47477
+ return this.httpInstance
47478
+ .request({
47479
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
47480
+ method: "GET",
47481
+ data,
47482
+ params,
47483
+ headers,
47484
+ })
47485
+ .catch((e) => {
47486
+ this.logger.error(formatErrors(e));
47487
+ throw e;
47488
+ });
47489
+ }),
45341
47490
  },
45342
47491
  /**
45343
47492
  * OKR进展记录
@@ -45477,7 +47626,7 @@ class Client$l extends Client$m {
45477
47626
  }
45478
47627
 
45479
47628
  // auto gen
45480
- class Client$k extends Client$l {
47629
+ class Client$l extends Client$m {
45481
47630
  constructor() {
45482
47631
  super(...arguments);
45483
47632
  /**
@@ -45553,7 +47702,7 @@ class Client$k extends Client$l {
45553
47702
  }
45554
47703
 
45555
47704
  // auto gen
45556
- class Client$j extends Client$k {
47705
+ class Client$k extends Client$l {
45557
47706
  constructor() {
45558
47707
  super(...arguments);
45559
47708
  /**
@@ -45625,7 +47774,7 @@ class Client$j extends Client$k {
45625
47774
  }
45626
47775
 
45627
47776
  // auto gen
45628
- class Client$i extends Client$j {
47777
+ class Client$j extends Client$k {
45629
47778
  constructor() {
45630
47779
  super(...arguments);
45631
47780
  /**
@@ -45636,7 +47785,7 @@ class Client$i extends Client$j {
45636
47785
  }
45637
47786
 
45638
47787
  // auto gen
45639
- class Client$h extends Client$i {
47788
+ class Client$i extends Client$j {
45640
47789
  constructor() {
45641
47790
  super(...arguments);
45642
47791
  /**
@@ -45647,7 +47796,7 @@ class Client$h extends Client$i {
45647
47796
  }
45648
47797
 
45649
47798
  // auto gen
45650
- class Client$g extends Client$h {
47799
+ class Client$h extends Client$i {
45651
47800
  constructor() {
45652
47801
  super(...arguments);
45653
47802
  /**
@@ -46067,18 +48216,195 @@ class Client$g extends Client$h {
46067
48216
  }
46068
48217
 
46069
48218
  // auto gen
46070
- class Client$f extends Client$g {
48219
+ class Client$g extends Client$h {
46071
48220
  constructor() {
46072
48221
  super(...arguments);
46073
48222
  /**
46074
-
48223
+ * 汇报
48224
+ */
48225
+ this.report = {
48226
+ /**
48227
+ * 规则
48228
+ */
48229
+ rule: {
48230
+ /**
48231
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
48232
+ *
48233
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
48234
+ *
48235
+ * 规则查询
48236
+ *
48237
+ * 规则查询
48238
+ */
48239
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48240
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48241
+ return this.httpInstance
48242
+ .request({
48243
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
48244
+ method: "GET",
48245
+ data,
48246
+ params,
48247
+ headers,
48248
+ })
48249
+ .catch((e) => {
48250
+ this.logger.error(formatErrors(e));
48251
+ throw e;
48252
+ });
48253
+ }),
48254
+ },
48255
+ /**
48256
+ * 规则看板
48257
+ */
48258
+ ruleView: {
48259
+ /**
48260
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
48261
+ *
48262
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
48263
+ *
48264
+ * 移除规则看板
48265
+ *
48266
+ * 移除规则看板
48267
+ */
48268
+ remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48269
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48270
+ return this.httpInstance
48271
+ .request({
48272
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
48273
+ method: "POST",
48274
+ data,
48275
+ params,
48276
+ headers,
48277
+ })
48278
+ .catch((e) => {
48279
+ this.logger.error(formatErrors(e));
48280
+ throw e;
48281
+ });
48282
+ }),
48283
+ },
48284
+ /**
48285
+ * 任务
46075
48286
  */
46076
- this.report = {};
48287
+ task: {
48288
+ /**
48289
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
48290
+ *
48291
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
48292
+ *
48293
+ * 任务查询
48294
+ *
48295
+ * 任务查询
48296
+ */
48297
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48298
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48299
+ return this.httpInstance
48300
+ .request({
48301
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
48302
+ method: "POST",
48303
+ data,
48304
+ params,
48305
+ headers,
48306
+ })
48307
+ .catch((e) => {
48308
+ this.logger.error(formatErrors(e));
48309
+ throw e;
48310
+ });
48311
+ }),
48312
+ },
48313
+ v1: {
48314
+ /**
48315
+ * 规则
48316
+ */
48317
+ rule: {
48318
+ /**
48319
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
48320
+ *
48321
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
48322
+ *
48323
+ * 规则查询
48324
+ *
48325
+ * 规则查询
48326
+ */
48327
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48328
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48329
+ return this.httpInstance
48330
+ .request({
48331
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
48332
+ method: "GET",
48333
+ data,
48334
+ params,
48335
+ headers,
48336
+ })
48337
+ .catch((e) => {
48338
+ this.logger.error(formatErrors(e));
48339
+ throw e;
48340
+ });
48341
+ }),
48342
+ },
48343
+ /**
48344
+ * 规则看板
48345
+ */
48346
+ ruleView: {
48347
+ /**
48348
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
48349
+ *
48350
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
48351
+ *
48352
+ * 移除规则看板
48353
+ *
48354
+ * 移除规则看板
48355
+ */
48356
+ remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48357
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48358
+ return this.httpInstance
48359
+ .request({
48360
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
48361
+ method: "POST",
48362
+ data,
48363
+ params,
48364
+ headers,
48365
+ })
48366
+ .catch((e) => {
48367
+ this.logger.error(formatErrors(e));
48368
+ throw e;
48369
+ });
48370
+ }),
48371
+ },
48372
+ /**
48373
+ * 任务
48374
+ */
48375
+ task: {
48376
+ /**
48377
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
48378
+ *
48379
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
48380
+ *
48381
+ * 任务查询
48382
+ *
48383
+ * 任务查询
48384
+ */
48385
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48386
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48387
+ return this.httpInstance
48388
+ .request({
48389
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
48390
+ method: "POST",
48391
+ data,
48392
+ params,
48393
+ headers,
48394
+ })
48395
+ .catch((e) => {
48396
+ this.logger.error(formatErrors(e));
48397
+ throw e;
48398
+ });
48399
+ }),
48400
+ },
48401
+ },
48402
+ };
46077
48403
  }
46078
48404
  }
46079
48405
 
46080
48406
  // auto gen
46081
- class Client$e extends Client$f {
48407
+ class Client$f extends Client$g {
46082
48408
  constructor() {
46083
48409
  super(...arguments);
46084
48410
  /**
@@ -46089,7 +48415,7 @@ class Client$e extends Client$f {
46089
48415
  }
46090
48416
 
46091
48417
  // auto gen
46092
- class Client$d extends Client$e {
48418
+ class Client$e extends Client$f {
46093
48419
  constructor() {
46094
48420
  super(...arguments);
46095
48421
  /**
@@ -46905,7 +49231,7 @@ class Client$d extends Client$e {
46905
49231
  }
46906
49232
 
46907
49233
  // auto gen
46908
- class Client$c extends Client$d {
49234
+ class Client$d extends Client$e {
46909
49235
  constructor() {
46910
49236
  super(...arguments);
46911
49237
  /**
@@ -46969,7 +49295,7 @@ class Client$c extends Client$d {
46969
49295
  }
46970
49296
 
46971
49297
  // auto gen
46972
- class Client$b extends Client$c {
49298
+ class Client$c extends Client$d {
46973
49299
  constructor() {
46974
49300
  super(...arguments);
46975
49301
  /**
@@ -47421,7 +49747,7 @@ class Client$b extends Client$c {
47421
49747
  }),
47422
49748
  },
47423
49749
  /**
47424
- * 单元格
49750
+ * 工作表
47425
49751
  */
47426
49752
  spreadsheetSheet: {
47427
49753
  /**
@@ -48124,7 +50450,7 @@ class Client$b extends Client$c {
48124
50450
  }),
48125
50451
  },
48126
50452
  /**
48127
- * 单元格
50453
+ * 工作表
48128
50454
  */
48129
50455
  spreadsheetSheet: {
48130
50456
  /**
@@ -48387,7 +50713,7 @@ class Client$b extends Client$c {
48387
50713
  }
48388
50714
 
48389
50715
  // auto gen
48390
- class Client$a extends Client$b {
50716
+ class Client$b extends Client$c {
48391
50717
  constructor() {
48392
50718
  super(...arguments);
48393
50719
  /**
@@ -48515,7 +50841,7 @@ class Client$a extends Client$b {
48515
50841
  }
48516
50842
 
48517
50843
  // auto gen
48518
- class Client$9 extends Client$a {
50844
+ class Client$a extends Client$b {
48519
50845
  constructor() {
48520
50846
  super(...arguments);
48521
50847
  /**
@@ -48526,7 +50852,7 @@ class Client$9 extends Client$a {
48526
50852
  }
48527
50853
 
48528
50854
  // auto gen
48529
- class Client$8 extends Client$9 {
50855
+ class Client$9 extends Client$a {
48530
50856
  constructor() {
48531
50857
  super(...arguments);
48532
50858
  /**
@@ -48537,7 +50863,7 @@ class Client$8 extends Client$9 {
48537
50863
  }
48538
50864
 
48539
50865
  // auto gen
48540
- class Client$7 extends Client$8 {
50866
+ class Client$8 extends Client$9 {
48541
50867
  constructor() {
48542
50868
  super(...arguments);
48543
50869
  /**
@@ -51657,7 +53983,7 @@ class Client$7 extends Client$8 {
51657
53983
  }
51658
53984
 
51659
53985
  // auto gen
51660
- class Client$6 extends Client$7 {
53986
+ class Client$7 extends Client$8 {
51661
53987
  constructor() {
51662
53988
  super(...arguments);
51663
53989
  /**
@@ -51783,7 +54109,7 @@ class Client$6 extends Client$7 {
51783
54109
  }
51784
54110
 
51785
54111
  // auto gen
51786
- class Client$5 extends Client$6 {
54112
+ class Client$6 extends Client$7 {
51787
54113
  constructor() {
51788
54114
  super(...arguments);
51789
54115
  /**
@@ -51911,7 +54237,7 @@ class Client$5 extends Client$6 {
51911
54237
  }
51912
54238
 
51913
54239
  // auto gen
51914
- class Client$4 extends Client$5 {
54240
+ class Client$5 extends Client$6 {
51915
54241
  constructor() {
51916
54242
  super(...arguments);
51917
54243
  /**
@@ -51922,7 +54248,7 @@ class Client$4 extends Client$5 {
51922
54248
  }
51923
54249
 
51924
54250
  // auto gen
51925
- class Client$3 extends Client$4 {
54251
+ class Client$4 extends Client$5 {
51926
54252
  constructor() {
51927
54253
  super(...arguments);
51928
54254
  /**
@@ -55549,6 +57875,49 @@ class Client$3 extends Client$4 {
55549
57875
  }
55550
57876
  }
55551
57877
 
57878
+ // auto gen
57879
+ class Client$3 extends Client$4 {
57880
+ constructor() {
57881
+ super(...arguments);
57882
+ /**
57883
+ * 认证信息
57884
+ */
57885
+ this.verification = {
57886
+ v1: {
57887
+ /**
57888
+ * 认证信息
57889
+ */
57890
+ verification: {
57891
+ /**
57892
+ * {@link https://open.feishu.cn/api-explorer?project=verification&resource=verification&apiName=get&version=v1 click to debug }
57893
+ *
57894
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/verification-v1/verification/get document }
57895
+ *
57896
+ * 获取认证信息
57897
+ *
57898
+ * 获取企业主体名称、是否认证等信息。
57899
+ */
57900
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
57901
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
57902
+ return this.httpInstance
57903
+ .request({
57904
+ url: fillApiPath(`${this.domain}/open-apis/verification/v1/verification`, path),
57905
+ method: "GET",
57906
+ data,
57907
+ params,
57908
+ headers,
57909
+ })
57910
+ .catch((e) => {
57911
+ this.logger.error(formatErrors(e));
57912
+ throw e;
57913
+ });
57914
+ }),
57915
+ },
57916
+ },
57917
+ };
57918
+ }
57919
+ }
57920
+
55552
57921
  // auto gen
55553
57922
  class Client$2 extends Client$3 {
55554
57923
  constructor() {