@larksuiteoapi/node-sdk 1.24.0 → 1.25.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
  /**
@@ -3008,7 +3464,7 @@ class Client$U extends Client$V {
3008
3464
  */
3009
3465
  this.approval = {
3010
3466
  /**
3011
- * 原生审批定义
3467
+ * 事件
3012
3468
  */
3013
3469
  approval: {
3014
3470
  /**
@@ -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
  /**
@@ -3972,7 +4428,7 @@ class Client$U extends Client$V {
3972
4428
  },
3973
4429
  v4: {
3974
4430
  /**
3975
- * 原生审批定义
4431
+ * 事件
3976
4432
  */
3977
4433
  approval: {
3978
4434
  /**
@@ -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,6 +25242,168 @@ 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
  */
@@ -24221,199 +25768,332 @@ class Client$H extends Client$I {
24221
25768
  return Iterable;
24222
25769
  }),
24223
25770
  /**
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 }
25771
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
25772
+ *
25773
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
25774
+ *
25775
+ * 获取员工异动列表
25776
+ */
25777
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25778
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25779
+ return this.httpInstance
25780
+ .request({
25781
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/search`, path),
25782
+ method: "POST",
25783
+ data,
25784
+ params,
25785
+ headers,
25786
+ })
25787
+ .catch((e) => {
25788
+ this.logger.error(formatErrors(e));
25789
+ throw e;
25790
+ });
25791
+ }),
25792
+ },
25793
+ /**
25794
+ * job_family
25795
+ */
25796
+ jobFamily: {
25797
+ /**
25798
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
25799
+ *
25800
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
25801
+ *
25802
+ * 通过序列 ID 批量获取序列信息
25803
+ */
25804
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25805
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25806
+ return this.httpInstance
25807
+ .request({
25808
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
25809
+ method: "POST",
25810
+ data,
25811
+ params,
25812
+ headers,
25813
+ })
25814
+ .catch((e) => {
25815
+ this.logger.error(formatErrors(e));
25816
+ throw e;
25817
+ });
25818
+ }),
25819
+ },
25820
+ /**
25821
+ * job_level
25822
+ */
25823
+ jobLevel: {
25824
+ /**
25825
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
25826
+ *
25827
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
25828
+ *
25829
+ * 通过职级 ID 批量获取职级信息
25830
+ */
25831
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25832
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25833
+ return this.httpInstance
25834
+ .request({
25835
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
25836
+ method: "POST",
25837
+ data,
25838
+ params,
25839
+ headers,
25840
+ })
25841
+ .catch((e) => {
25842
+ this.logger.error(formatErrors(e));
25843
+ throw e;
25844
+ });
25845
+ }),
25846
+ },
25847
+ /**
25848
+ * location
25849
+ */
25850
+ location: {
25851
+ /**
25852
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
25853
+ *
25854
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
25855
+ *
25856
+ * 通过地点 ID 批量获取地点信息
25857
+ */
25858
+ batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25859
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25860
+ return this.httpInstance
25861
+ .request({
25862
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
25863
+ method: "POST",
25864
+ data,
25865
+ params,
25866
+ headers,
25867
+ })
25868
+ .catch((e) => {
25869
+ this.logger.error(formatErrors(e));
25870
+ throw e;
25871
+ });
25872
+ }),
25873
+ },
25874
+ /**
25875
+ * person
25876
+ */
25877
+ person: {
25878
+ /**
25879
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
25880
+ *
25881
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
25882
+ *
25883
+ * 创建个人信息数据
25884
+ */
25885
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25886
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25887
+ return this.httpInstance
25888
+ .request({
25889
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
25890
+ method: "POST",
25891
+ data,
25892
+ params,
25893
+ headers,
25894
+ })
25895
+ .catch((e) => {
25896
+ this.logger.error(formatErrors(e));
25897
+ throw e;
25898
+ });
25899
+ }),
25900
+ /**
25901
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
25902
+ *
25903
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
25904
+ */
25905
+ patch: (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/:person_id`, path),
25910
+ method: "PATCH",
25911
+ data,
25912
+ params,
25913
+ headers,
25914
+ })
25915
+ .catch((e) => {
25916
+ this.logger.error(formatErrors(e));
25917
+ throw e;
25918
+ });
25919
+ }),
25920
+ },
25921
+ /**
25922
+ * 待入职
25923
+ */
25924
+ preHire: {
25925
+ /**
25926
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
25927
+ *
25928
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
25929
+ *
25930
+ * 创建待入职人员
25931
+ *
25932
+ * 创建待入职人员
25933
+ */
25934
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25935
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25936
+ return this.httpInstance
25937
+ .request({
25938
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
25939
+ method: "POST",
25940
+ data,
25941
+ params,
25942
+ headers,
25943
+ })
25944
+ .catch((e) => {
25945
+ this.logger.error(formatErrors(e));
25946
+ throw e;
25947
+ });
25948
+ }),
25949
+ },
25950
+ /**
25951
+ * probation.assessment
25952
+ */
25953
+ probationAssessment: {
25954
+ /**
25955
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
25956
+ *
25957
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
25958
+ */
25959
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
25960
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
25961
+ return this.httpInstance
25962
+ .request({
25963
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
25964
+ method: "POST",
25965
+ data,
25966
+ params,
25967
+ headers,
25968
+ })
25969
+ .catch((e) => {
25970
+ this.logger.error(formatErrors(e));
25971
+ throw e;
25972
+ });
25973
+ }),
25974
+ /**
25975
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
25976
+ *
25977
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
25978
+ */
25979
+ delete: (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/:assessment_id`, path),
25984
+ method: "DELETE",
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=patch&version=v2 click to debug }
25996
+ *
25997
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
25998
+ */
25999
+ patch: (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: "PATCH",
26005
+ data,
26006
+ params,
26007
+ headers,
26008
+ })
26009
+ .catch((e) => {
26010
+ this.logger.error(formatErrors(e));
26011
+ throw e;
26012
+ });
26013
+ }),
26014
+ },
26015
+ /**
26016
+ * probation
26017
+ */
26018
+ probation: {
26019
+ /**
26020
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
26021
+ *
26022
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
26023
+ */
26024
+ enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26025
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26026
+ return this.httpInstance
26027
+ .request({
26028
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
26029
+ method: "POST",
26030
+ data,
26031
+ params,
26032
+ headers,
26033
+ })
26034
+ .catch((e) => {
26035
+ this.logger.error(formatErrors(e));
26036
+ throw e;
26037
+ });
26038
+ }),
26039
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26040
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26041
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
26042
+ const res = yield this.httpInstance
26043
+ .request({
26044
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
26045
+ method: "POST",
26046
+ headers: pickBy(innerPayload.headers, identity),
26047
+ params: pickBy(innerPayload.params, identity),
26048
+ })
26049
+ .catch((e) => {
26050
+ this.logger.error(formatErrors(e));
26051
+ });
26052
+ return res;
26053
+ });
26054
+ const Iterable = {
26055
+ [Symbol.asyncIterator]() {
26056
+ return __asyncGenerator(this, arguments, function* _a() {
26057
+ let hasMore = true;
26058
+ let pageToken;
26059
+ while (hasMore) {
26060
+ try {
26061
+ const res = yield __await(sendRequest({
26062
+ headers,
26063
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
26064
+ data,
26065
+ }));
26066
+ const _b = get(res, "data") || {}, {
26067
+ // @ts-ignore
26068
+ has_more,
26069
+ // @ts-ignore
26070
+ page_token,
26071
+ // @ts-ignore
26072
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
26073
+ yield yield __await(rest);
26074
+ hasMore = Boolean(has_more);
26075
+ pageToken = page_token || next_page_token;
26076
+ }
26077
+ catch (e) {
26078
+ yield yield __await(null);
26079
+ break;
26080
+ }
26081
+ }
26082
+ });
26083
+ },
26084
+ };
26085
+ return Iterable;
26086
+ }),
26087
+ /**
26088
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
24227
26089
  *
24228
- * 获取员工异动列表
26090
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
24229
26091
  */
24230
26092
  search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24231
26093
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24232
26094
  return this.httpInstance
24233
26095
  .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),
26096
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24417
26097
  method: "POST",
24418
26098
  data,
24419
26099
  params,
@@ -24424,62 +26104,22 @@ class Client$H extends Client$I {
24424
26104
  throw e;
24425
26105
  });
24426
26106
  }),
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
26107
  },
24468
26108
  /**
24469
- * probation
26109
+ * process
24470
26110
  */
24471
- probation: {
26111
+ process: {
24472
26112
  /**
24473
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
26113
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=get&version=v2 click to debug }
24474
26114
  *
24475
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
26115
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process&version=v2 document }
24476
26116
  */
24477
- enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26117
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24478
26118
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24479
26119
  return this.httpInstance
24480
26120
  .request({
24481
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
24482
- method: "POST",
26121
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id`, path),
26122
+ method: "GET",
24483
26123
  data,
24484
26124
  params,
24485
26125
  headers,
@@ -24489,13 +26129,13 @@ class Client$H extends Client$I {
24489
26129
  throw e;
24490
26130
  });
24491
26131
  }),
24492
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26132
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24493
26133
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24494
26134
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
24495
26135
  const res = yield this.httpInstance
24496
26136
  .request({
24497
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24498
- method: "POST",
26137
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
26138
+ method: "GET",
24499
26139
  headers: pickBy(innerPayload.headers, identity),
24500
26140
  params: pickBy(innerPayload.params, identity),
24501
26141
  })
@@ -24538,16 +26178,16 @@ class Client$H extends Client$I {
24538
26178
  return Iterable;
24539
26179
  }),
24540
26180
  /**
24541
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
26181
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
24542
26182
  *
24543
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
26183
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
24544
26184
  */
24545
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26185
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24546
26186
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
24547
26187
  return this.httpInstance
24548
26188
  .request({
24549
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
24550
- method: "POST",
26189
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
26190
+ method: "GET",
24551
26191
  data,
24552
26192
  params,
24553
26193
  headers,
@@ -24564,7 +26204,7 @@ class Client$H extends Client$I {
24564
26204
  }
24565
26205
 
24566
26206
  // auto gen
24567
- class Client$G extends Client$H {
26207
+ class Client$H extends Client$I {
24568
26208
  constructor() {
24569
26209
  super(...arguments);
24570
26210
  /**
@@ -24575,7 +26215,7 @@ class Client$G extends Client$H {
24575
26215
  }
24576
26216
 
24577
26217
  // auto gen
24578
- class Client$F extends Client$G {
26218
+ class Client$G extends Client$H {
24579
26219
  constructor() {
24580
26220
  super(...arguments);
24581
26221
  /**
@@ -24791,6 +26431,32 @@ class Client$F extends Client$G {
24791
26431
  return get(res, "data", null);
24792
26432
  }),
24793
26433
  },
26434
+ /**
26435
+ * health_certificate
26436
+ */
26437
+ healthCertificate: {
26438
+ /**
26439
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=health_certificate&apiName=recognize&version=v1 click to debug }
26440
+ *
26441
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=health_certificate&version=v1 document }
26442
+ */
26443
+ recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26444
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26445
+ const res = yield this.httpInstance
26446
+ .request({
26447
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`, path),
26448
+ method: "POST",
26449
+ data,
26450
+ params,
26451
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26452
+ })
26453
+ .catch((e) => {
26454
+ this.logger.error(formatErrors(e));
26455
+ throw e;
26456
+ });
26457
+ return get(res, "data", null);
26458
+ }),
26459
+ },
24794
26460
  /**
24795
26461
  * hkm_mainland_travel_permit
24796
26462
  */
@@ -24843,6 +26509,32 @@ class Client$F extends Client$G {
24843
26509
  return get(res, "data", null);
24844
26510
  }),
24845
26511
  },
26512
+ /**
26513
+ * resume
26514
+ */
26515
+ resume: {
26516
+ /**
26517
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=resume&apiName=parse&version=v1 click to debug }
26518
+ *
26519
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=parse&project=document_ai&resource=resume&version=v1 document }
26520
+ */
26521
+ parse: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26522
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26523
+ const res = yield this.httpInstance
26524
+ .request({
26525
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/resume/parse`, path),
26526
+ method: "POST",
26527
+ data,
26528
+ params,
26529
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26530
+ })
26531
+ .catch((e) => {
26532
+ this.logger.error(formatErrors(e));
26533
+ throw e;
26534
+ });
26535
+ return get(res, "data", null);
26536
+ }),
26537
+ },
24846
26538
  /**
24847
26539
  * taxi_invoice
24848
26540
  */
@@ -24947,6 +26639,32 @@ class Client$F extends Client$G {
24947
26639
  return get(res, "data", null);
24948
26640
  }),
24949
26641
  },
26642
+ /**
26643
+ * vehicle_invoice
26644
+ */
26645
+ vehicleInvoice: {
26646
+ /**
26647
+ * {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=vehicle_invoice&apiName=recognize&version=v1 click to debug }
26648
+ *
26649
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=vehicle_invoice&version=v1 document }
26650
+ */
26651
+ recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26652
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26653
+ const res = yield this.httpInstance
26654
+ .request({
26655
+ url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`, path),
26656
+ method: "POST",
26657
+ data,
26658
+ params,
26659
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
26660
+ })
26661
+ .catch((e) => {
26662
+ this.logger.error(formatErrors(e));
26663
+ throw e;
26664
+ });
26665
+ return get(res, "data", null);
26666
+ }),
26667
+ },
24950
26668
  /**
24951
26669
  * vehicle_license
24952
26670
  */
@@ -24979,7 +26697,7 @@ class Client$F extends Client$G {
24979
26697
  }
24980
26698
 
24981
26699
  // auto gen
24982
- class Client$E extends Client$F {
26700
+ class Client$F extends Client$G {
24983
26701
  constructor() {
24984
26702
  super(...arguments);
24985
26703
  /**
@@ -25775,7 +27493,7 @@ class Client$E extends Client$F {
25775
27493
  }
25776
27494
 
25777
27495
  // auto gen
25778
- class Client$D extends Client$E {
27496
+ class Client$E extends Client$F {
25779
27497
  constructor() {
25780
27498
  super(...arguments);
25781
27499
  /**
@@ -26173,7 +27891,7 @@ class Client$D extends Client$E {
26173
27891
  }),
26174
27892
  },
26175
27893
  /**
26176
- * 分片上传
27894
+ * 事件
26177
27895
  */
26178
27896
  file: {
26179
27897
  /**
@@ -27867,7 +29585,7 @@ class Client$D extends Client$E {
27867
29585
  }),
27868
29586
  },
27869
29587
  /**
27870
- * 分片上传
29588
+ * 事件
27871
29589
  */
27872
29590
  file: {
27873
29591
  /**
@@ -29170,12 +30888,59 @@ class Client$D extends Client$E {
29170
30888
  }),
29171
30889
  },
29172
30890
  },
30891
+ v2: {
30892
+ /**
30893
+ * permission.public
30894
+ */
30895
+ permissionPublic: {
30896
+ /**
30897
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v2 click to debug }
30898
+ *
30899
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=drive&resource=permission.public&version=v2 document }
30900
+ */
30901
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30902
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30903
+ return this.httpInstance
30904
+ .request({
30905
+ url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
30906
+ method: "GET",
30907
+ data,
30908
+ params,
30909
+ headers,
30910
+ })
30911
+ .catch((e) => {
30912
+ this.logger.error(formatErrors(e));
30913
+ throw e;
30914
+ });
30915
+ }),
30916
+ /**
30917
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v2 click to debug }
30918
+ *
30919
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=drive&resource=permission.public&version=v2 document }
30920
+ */
30921
+ patch: (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: "PATCH",
30927
+ data,
30928
+ params,
30929
+ headers,
30930
+ })
30931
+ .catch((e) => {
30932
+ this.logger.error(formatErrors(e));
30933
+ throw e;
30934
+ });
30935
+ }),
30936
+ },
30937
+ },
29173
30938
  };
29174
30939
  }
29175
30940
  }
29176
30941
 
29177
30942
  // auto gen
29178
- class Client$C extends Client$D {
30943
+ class Client$D extends Client$E {
29179
30944
  constructor() {
29180
30945
  super(...arguments);
29181
30946
  /**
@@ -29186,7 +30951,7 @@ class Client$C extends Client$D {
29186
30951
  }
29187
30952
 
29188
30953
  // auto gen
29189
- class Client$B extends Client$C {
30954
+ class Client$C extends Client$D {
29190
30955
  constructor() {
29191
30956
  super(...arguments);
29192
30957
  /**
@@ -29446,7 +31211,7 @@ class Client$B extends Client$C {
29446
31211
  }
29447
31212
 
29448
31213
  // auto gen
29449
- class Client$A extends Client$B {
31214
+ class Client$B extends Client$C {
29450
31215
  constructor() {
29451
31216
  super(...arguments);
29452
31217
  /**
@@ -29457,7 +31222,7 @@ class Client$A extends Client$B {
29457
31222
  }
29458
31223
 
29459
31224
  // auto gen
29460
- class Client$z extends Client$A {
31225
+ class Client$A extends Client$B {
29461
31226
  constructor() {
29462
31227
  super(...arguments);
29463
31228
  /**
@@ -29629,7 +31394,7 @@ class Client$z extends Client$A {
29629
31394
  }
29630
31395
 
29631
31396
  // auto gen
29632
- class Client$y extends Client$z {
31397
+ class Client$z extends Client$A {
29633
31398
  constructor() {
29634
31399
  super(...arguments);
29635
31400
  /**
@@ -29640,7 +31405,7 @@ class Client$y extends Client$z {
29640
31405
  }
29641
31406
 
29642
31407
  // auto gen
29643
- class Client$x extends Client$y {
31408
+ class Client$y extends Client$z {
29644
31409
  constructor() {
29645
31410
  super(...arguments);
29646
31411
  /**
@@ -29651,7 +31416,7 @@ class Client$x extends Client$y {
29651
31416
  }
29652
31417
 
29653
31418
  // auto gen
29654
- class Client$w extends Client$x {
31419
+ class Client$x extends Client$y {
29655
31420
  constructor() {
29656
31421
  super(...arguments);
29657
31422
  /**
@@ -29662,7 +31427,7 @@ class Client$w extends Client$x {
29662
31427
  }
29663
31428
 
29664
31429
  // auto gen
29665
- class Client$v extends Client$w {
31430
+ class Client$w extends Client$x {
29666
31431
  constructor() {
29667
31432
  super(...arguments);
29668
31433
  /**
@@ -29902,7 +31667,7 @@ class Client$v extends Client$w {
29902
31667
  }
29903
31668
 
29904
31669
  // auto gen
29905
- class Client$u extends Client$v {
31670
+ class Client$v extends Client$w {
29906
31671
  constructor() {
29907
31672
  super(...arguments);
29908
31673
  /**
@@ -32794,7 +34559,7 @@ class Client$u extends Client$v {
32794
34559
  }
32795
34560
 
32796
34561
  // auto gen
32797
- class Client$t extends Client$u {
34562
+ class Client$u extends Client$v {
32798
34563
  constructor() {
32799
34564
  super(...arguments);
32800
34565
  /**
@@ -33918,6 +35683,50 @@ class Client$t extends Client$u {
33918
35683
  throw e;
33919
35684
  });
33920
35685
  }),
35686
+ /**
35687
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
35688
+ *
35689
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
35690
+ *
35691
+ * 获取职位列表
35692
+ *
35693
+ * 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
35694
+ */
35695
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
35696
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
35697
+ return this.httpInstance
35698
+ .request({
35699
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
35700
+ method: "GET",
35701
+ data,
35702
+ params,
35703
+ headers,
35704
+ })
35705
+ .catch((e) => {
35706
+ this.logger.error(formatErrors(e));
35707
+ throw e;
35708
+ });
35709
+ }),
35710
+ /**
35711
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
35712
+ *
35713
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
35714
+ */
35715
+ recruiter: (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/:job_id/recruiter`, 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
+ }),
33921
35730
  /**
33922
35731
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
33923
35732
  *
@@ -34963,6 +36772,30 @@ class Client$t extends Client$u {
34963
36772
  throw e;
34964
36773
  });
34965
36774
  }),
36775
+ /**
36776
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
36777
+ *
36778
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
36779
+ *
36780
+ * 获取人才列表
36781
+ *
36782
+ * 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
36783
+ */
36784
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
36785
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
36786
+ return this.httpInstance
36787
+ .request({
36788
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
36789
+ method: "GET",
36790
+ data,
36791
+ params,
36792
+ headers,
36793
+ })
36794
+ .catch((e) => {
36795
+ this.logger.error(formatErrors(e));
36796
+ throw e;
36797
+ });
36798
+ }),
34966
36799
  },
34967
36800
  /**
34968
36801
  * talent_folder
@@ -36188,6 +38021,50 @@ class Client$t extends Client$u {
36188
38021
  throw e;
36189
38022
  });
36190
38023
  }),
38024
+ /**
38025
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
38026
+ *
38027
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
38028
+ *
38029
+ * 获取职位列表
38030
+ *
38031
+ * 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
38032
+ */
38033
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38034
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38035
+ return this.httpInstance
38036
+ .request({
38037
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
38038
+ method: "GET",
38039
+ data,
38040
+ params,
38041
+ headers,
38042
+ })
38043
+ .catch((e) => {
38044
+ this.logger.error(formatErrors(e));
38045
+ throw e;
38046
+ });
38047
+ }),
38048
+ /**
38049
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
38050
+ *
38051
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
38052
+ */
38053
+ recruiter: (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/:job_id/recruiter`, 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
+ }),
36191
38068
  /**
36192
38069
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
36193
38070
  *
@@ -37233,6 +39110,30 @@ class Client$t extends Client$u {
37233
39110
  throw e;
37234
39111
  });
37235
39112
  }),
39113
+ /**
39114
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
39115
+ *
39116
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
39117
+ *
39118
+ * 获取人才列表
39119
+ *
39120
+ * 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
39121
+ */
39122
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
39123
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
39124
+ return this.httpInstance
39125
+ .request({
39126
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
39127
+ method: "GET",
39128
+ data,
39129
+ params,
39130
+ headers,
39131
+ })
39132
+ .catch((e) => {
39133
+ this.logger.error(formatErrors(e));
39134
+ throw e;
39135
+ });
39136
+ }),
37236
39137
  },
37237
39138
  /**
37238
39139
  * talent_folder
@@ -37346,7 +39247,7 @@ class Client$t extends Client$u {
37346
39247
  }
37347
39248
 
37348
39249
  // auto gen
37349
- class Client$s extends Client$t {
39250
+ class Client$t extends Client$u {
37350
39251
  constructor() {
37351
39252
  super(...arguments);
37352
39253
  /**
@@ -37422,7 +39323,7 @@ class Client$s extends Client$t {
37422
39323
  }
37423
39324
 
37424
39325
  // auto gen
37425
- class Client$r extends Client$s {
39326
+ class Client$s extends Client$t {
37426
39327
  constructor() {
37427
39328
  super(...arguments);
37428
39329
  /**
@@ -38676,7 +40577,7 @@ class Client$r extends Client$s {
38676
40577
  }),
38677
40578
  },
38678
40579
  /**
38679
- * 消息
40580
+ * 消息 - 消息卡片
38680
40581
  */
38681
40582
  message: {
38682
40583
  /**
@@ -39464,6 +41365,33 @@ class Client$r extends Client$s {
39464
41365
  });
39465
41366
  }),
39466
41367
  },
41368
+ /**
41369
+ * thread
41370
+ */
41371
+ thread: {
41372
+ /**
41373
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
41374
+ *
41375
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
41376
+ *
41377
+ * 转发
41378
+ */
41379
+ forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
41380
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
41381
+ return this.httpInstance
41382
+ .request({
41383
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
41384
+ method: "POST",
41385
+ data,
41386
+ params,
41387
+ headers,
41388
+ })
41389
+ .catch((e) => {
41390
+ this.logger.error(formatErrors(e));
41391
+ throw e;
41392
+ });
41393
+ }),
41394
+ },
39467
41395
  v1: {
39468
41396
  /**
39469
41397
  * 消息 - 批量消息
@@ -40712,7 +42640,7 @@ class Client$r extends Client$s {
40712
42640
  }),
40713
42641
  },
40714
42642
  /**
40715
- * 消息
42643
+ * 消息 - 消息卡片
40716
42644
  */
40717
42645
  message: {
40718
42646
  /**
@@ -41500,13 +43428,40 @@ class Client$r extends Client$s {
41500
43428
  });
41501
43429
  }),
41502
43430
  },
43431
+ /**
43432
+ * thread
43433
+ */
43434
+ thread: {
43435
+ /**
43436
+ * {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
43437
+ *
43438
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
43439
+ *
43440
+ * 转发
43441
+ */
43442
+ forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43443
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43444
+ return this.httpInstance
43445
+ .request({
43446
+ url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
43447
+ method: "POST",
43448
+ data,
43449
+ params,
43450
+ headers,
43451
+ })
43452
+ .catch((e) => {
43453
+ this.logger.error(formatErrors(e));
43454
+ throw e;
43455
+ });
43456
+ }),
43457
+ },
41503
43458
  },
41504
43459
  };
41505
43460
  }
41506
43461
  }
41507
43462
 
41508
43463
  // auto gen
41509
- class Client$q extends Client$r {
43464
+ class Client$r extends Client$s {
41510
43465
  constructor() {
41511
43466
  super(...arguments);
41512
43467
  /**
@@ -41656,6 +43611,26 @@ class Client$q extends Client$r {
41656
43611
  throw e;
41657
43612
  });
41658
43613
  }),
43614
+ /**
43615
+ * {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=delete&version=v1 click to debug }
43616
+ *
43617
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 document }
43618
+ */
43619
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
43620
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
43621
+ return this.httpInstance
43622
+ .request({
43623
+ url: fillApiPath(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`, path),
43624
+ method: "DELETE",
43625
+ data,
43626
+ params,
43627
+ headers,
43628
+ })
43629
+ .catch((e) => {
43630
+ this.logger.error(formatErrors(e));
43631
+ throw e;
43632
+ });
43633
+ }),
41659
43634
  /**
41660
43635
  * {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=get&version=v1 click to debug }
41661
43636
  *
@@ -41965,7 +43940,7 @@ class Client$q extends Client$r {
41965
43940
  }
41966
43941
 
41967
43942
  // auto gen
41968
- class Client$p extends Client$q {
43943
+ class Client$q extends Client$r {
41969
43944
  constructor() {
41970
43945
  super(...arguments);
41971
43946
  /**
@@ -44873,7 +46848,7 @@ class Client$p extends Client$q {
44873
46848
  }
44874
46849
 
44875
46850
  // auto gen
44876
- class Client$o extends Client$p {
46851
+ class Client$p extends Client$q {
44877
46852
  constructor() {
44878
46853
  super(...arguments);
44879
46854
  /**
@@ -44993,7 +46968,7 @@ class Client$o extends Client$p {
44993
46968
  }
44994
46969
 
44995
46970
  // auto gen
44996
- class Client$n extends Client$o {
46971
+ class Client$o extends Client$p {
44997
46972
  constructor() {
44998
46973
  super(...arguments);
44999
46974
  /**
@@ -45004,7 +46979,7 @@ class Client$n extends Client$o {
45004
46979
  }
45005
46980
 
45006
46981
  // auto gen
45007
- class Client$m extends Client$n {
46982
+ class Client$n extends Client$o {
45008
46983
  constructor() {
45009
46984
  super(...arguments);
45010
46985
  /**
@@ -45015,7 +46990,7 @@ class Client$m extends Client$n {
45015
46990
  }
45016
46991
 
45017
46992
  // auto gen
45018
- class Client$l extends Client$m {
46993
+ class Client$m extends Client$n {
45019
46994
  constructor() {
45020
46995
  super(...arguments);
45021
46996
  /**
@@ -45087,6 +47062,30 @@ class Client$l extends Client$m {
45087
47062
  * OKR周期
45088
47063
  */
45089
47064
  period: {
47065
+ /**
47066
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
47067
+ *
47068
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
47069
+ *
47070
+ * 创建 OKR 周期
47071
+ *
47072
+ * 根据周期规则创建一个 OKR 周期
47073
+ */
47074
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47075
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47076
+ return this.httpInstance
47077
+ .request({
47078
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
47079
+ method: "POST",
47080
+ data,
47081
+ params,
47082
+ headers,
47083
+ })
47084
+ .catch((e) => {
47085
+ this.logger.error(formatErrors(e));
47086
+ throw e;
47087
+ });
47088
+ }),
45090
47089
  /**
45091
47090
  * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
45092
47091
  *
@@ -45113,6 +47112,59 @@ class Client$l extends Client$m {
45113
47112
  throw e;
45114
47113
  });
45115
47114
  }),
47115
+ /**
47116
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
47117
+ *
47118
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
47119
+ *
47120
+ * 修改 OKR 周期状态
47121
+ *
47122
+ * 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
47123
+ */
47124
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47125
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47126
+ return this.httpInstance
47127
+ .request({
47128
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
47129
+ method: "PATCH",
47130
+ data,
47131
+ params,
47132
+ headers,
47133
+ })
47134
+ .catch((e) => {
47135
+ this.logger.error(formatErrors(e));
47136
+ throw e;
47137
+ });
47138
+ }),
47139
+ },
47140
+ /**
47141
+ * 周期规则
47142
+ */
47143
+ periodRule: {
47144
+ /**
47145
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
47146
+ *
47147
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
47148
+ *
47149
+ * 获取 OKR 周期规则
47150
+ *
47151
+ * 获取租户的周期规则列表
47152
+ */
47153
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47154
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47155
+ return this.httpInstance
47156
+ .request({
47157
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
47158
+ method: "GET",
47159
+ data,
47160
+ params,
47161
+ headers,
47162
+ })
47163
+ .catch((e) => {
47164
+ this.logger.error(formatErrors(e));
47165
+ throw e;
47166
+ });
47167
+ }),
45116
47168
  },
45117
47169
  /**
45118
47170
  * OKR进展记录
@@ -45312,6 +47364,30 @@ class Client$l extends Client$m {
45312
47364
  * OKR周期
45313
47365
  */
45314
47366
  period: {
47367
+ /**
47368
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
47369
+ *
47370
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
47371
+ *
47372
+ * 创建 OKR 周期
47373
+ *
47374
+ * 根据周期规则创建一个 OKR 周期
47375
+ */
47376
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47377
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47378
+ return this.httpInstance
47379
+ .request({
47380
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
47381
+ method: "POST",
47382
+ data,
47383
+ params,
47384
+ headers,
47385
+ })
47386
+ .catch((e) => {
47387
+ this.logger.error(formatErrors(e));
47388
+ throw e;
47389
+ });
47390
+ }),
45315
47391
  /**
45316
47392
  * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
45317
47393
  *
@@ -45338,6 +47414,59 @@ class Client$l extends Client$m {
45338
47414
  throw e;
45339
47415
  });
45340
47416
  }),
47417
+ /**
47418
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
47419
+ *
47420
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
47421
+ *
47422
+ * 修改 OKR 周期状态
47423
+ *
47424
+ * 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
47425
+ */
47426
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47427
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47428
+ return this.httpInstance
47429
+ .request({
47430
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
47431
+ method: "PATCH",
47432
+ data,
47433
+ params,
47434
+ headers,
47435
+ })
47436
+ .catch((e) => {
47437
+ this.logger.error(formatErrors(e));
47438
+ throw e;
47439
+ });
47440
+ }),
47441
+ },
47442
+ /**
47443
+ * 周期规则
47444
+ */
47445
+ periodRule: {
47446
+ /**
47447
+ * {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
47448
+ *
47449
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
47450
+ *
47451
+ * 获取 OKR 周期规则
47452
+ *
47453
+ * 获取租户的周期规则列表
47454
+ */
47455
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
47456
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
47457
+ return this.httpInstance
47458
+ .request({
47459
+ url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
47460
+ method: "GET",
47461
+ data,
47462
+ params,
47463
+ headers,
47464
+ })
47465
+ .catch((e) => {
47466
+ this.logger.error(formatErrors(e));
47467
+ throw e;
47468
+ });
47469
+ }),
45341
47470
  },
45342
47471
  /**
45343
47472
  * OKR进展记录
@@ -45477,7 +47606,7 @@ class Client$l extends Client$m {
45477
47606
  }
45478
47607
 
45479
47608
  // auto gen
45480
- class Client$k extends Client$l {
47609
+ class Client$l extends Client$m {
45481
47610
  constructor() {
45482
47611
  super(...arguments);
45483
47612
  /**
@@ -45553,7 +47682,7 @@ class Client$k extends Client$l {
45553
47682
  }
45554
47683
 
45555
47684
  // auto gen
45556
- class Client$j extends Client$k {
47685
+ class Client$k extends Client$l {
45557
47686
  constructor() {
45558
47687
  super(...arguments);
45559
47688
  /**
@@ -45625,7 +47754,7 @@ class Client$j extends Client$k {
45625
47754
  }
45626
47755
 
45627
47756
  // auto gen
45628
- class Client$i extends Client$j {
47757
+ class Client$j extends Client$k {
45629
47758
  constructor() {
45630
47759
  super(...arguments);
45631
47760
  /**
@@ -45636,7 +47765,7 @@ class Client$i extends Client$j {
45636
47765
  }
45637
47766
 
45638
47767
  // auto gen
45639
- class Client$h extends Client$i {
47768
+ class Client$i extends Client$j {
45640
47769
  constructor() {
45641
47770
  super(...arguments);
45642
47771
  /**
@@ -45647,7 +47776,7 @@ class Client$h extends Client$i {
45647
47776
  }
45648
47777
 
45649
47778
  // auto gen
45650
- class Client$g extends Client$h {
47779
+ class Client$h extends Client$i {
45651
47780
  constructor() {
45652
47781
  super(...arguments);
45653
47782
  /**
@@ -46067,18 +48196,195 @@ class Client$g extends Client$h {
46067
48196
  }
46068
48197
 
46069
48198
  // auto gen
46070
- class Client$f extends Client$g {
48199
+ class Client$g extends Client$h {
46071
48200
  constructor() {
46072
48201
  super(...arguments);
46073
48202
  /**
46074
-
48203
+ * 汇报
48204
+ */
48205
+ this.report = {
48206
+ /**
48207
+ * 规则
48208
+ */
48209
+ rule: {
48210
+ /**
48211
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
48212
+ *
48213
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
48214
+ *
48215
+ * 规则查询
48216
+ *
48217
+ * 规则查询
48218
+ */
48219
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48220
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48221
+ return this.httpInstance
48222
+ .request({
48223
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
48224
+ method: "GET",
48225
+ data,
48226
+ params,
48227
+ headers,
48228
+ })
48229
+ .catch((e) => {
48230
+ this.logger.error(formatErrors(e));
48231
+ throw e;
48232
+ });
48233
+ }),
48234
+ },
48235
+ /**
48236
+ * 规则看板
48237
+ */
48238
+ ruleView: {
48239
+ /**
48240
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
48241
+ *
48242
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
48243
+ *
48244
+ * 移除规则看板
48245
+ *
48246
+ * 移除规则看板
48247
+ */
48248
+ remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48249
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48250
+ return this.httpInstance
48251
+ .request({
48252
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
48253
+ method: "POST",
48254
+ data,
48255
+ params,
48256
+ headers,
48257
+ })
48258
+ .catch((e) => {
48259
+ this.logger.error(formatErrors(e));
48260
+ throw e;
48261
+ });
48262
+ }),
48263
+ },
48264
+ /**
48265
+ * 任务
46075
48266
  */
46076
- this.report = {};
48267
+ task: {
48268
+ /**
48269
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
48270
+ *
48271
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
48272
+ *
48273
+ * 任务查询
48274
+ *
48275
+ * 任务查询
48276
+ */
48277
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48278
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48279
+ return this.httpInstance
48280
+ .request({
48281
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
48282
+ method: "POST",
48283
+ data,
48284
+ params,
48285
+ headers,
48286
+ })
48287
+ .catch((e) => {
48288
+ this.logger.error(formatErrors(e));
48289
+ throw e;
48290
+ });
48291
+ }),
48292
+ },
48293
+ v1: {
48294
+ /**
48295
+ * 规则
48296
+ */
48297
+ rule: {
48298
+ /**
48299
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
48300
+ *
48301
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
48302
+ *
48303
+ * 规则查询
48304
+ *
48305
+ * 规则查询
48306
+ */
48307
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48308
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48309
+ return this.httpInstance
48310
+ .request({
48311
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
48312
+ method: "GET",
48313
+ data,
48314
+ params,
48315
+ headers,
48316
+ })
48317
+ .catch((e) => {
48318
+ this.logger.error(formatErrors(e));
48319
+ throw e;
48320
+ });
48321
+ }),
48322
+ },
48323
+ /**
48324
+ * 规则看板
48325
+ */
48326
+ ruleView: {
48327
+ /**
48328
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
48329
+ *
48330
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
48331
+ *
48332
+ * 移除规则看板
48333
+ *
48334
+ * 移除规则看板
48335
+ */
48336
+ remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48337
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48338
+ return this.httpInstance
48339
+ .request({
48340
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
48341
+ method: "POST",
48342
+ data,
48343
+ params,
48344
+ headers,
48345
+ })
48346
+ .catch((e) => {
48347
+ this.logger.error(formatErrors(e));
48348
+ throw e;
48349
+ });
48350
+ }),
48351
+ },
48352
+ /**
48353
+ * 任务
48354
+ */
48355
+ task: {
48356
+ /**
48357
+ * {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
48358
+ *
48359
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
48360
+ *
48361
+ * 任务查询
48362
+ *
48363
+ * 任务查询
48364
+ */
48365
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48366
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48367
+ return this.httpInstance
48368
+ .request({
48369
+ url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
48370
+ method: "POST",
48371
+ data,
48372
+ params,
48373
+ headers,
48374
+ })
48375
+ .catch((e) => {
48376
+ this.logger.error(formatErrors(e));
48377
+ throw e;
48378
+ });
48379
+ }),
48380
+ },
48381
+ },
48382
+ };
46077
48383
  }
46078
48384
  }
46079
48385
 
46080
48386
  // auto gen
46081
- class Client$e extends Client$f {
48387
+ class Client$f extends Client$g {
46082
48388
  constructor() {
46083
48389
  super(...arguments);
46084
48390
  /**
@@ -46089,7 +48395,7 @@ class Client$e extends Client$f {
46089
48395
  }
46090
48396
 
46091
48397
  // auto gen
46092
- class Client$d extends Client$e {
48398
+ class Client$e extends Client$f {
46093
48399
  constructor() {
46094
48400
  super(...arguments);
46095
48401
  /**
@@ -46905,7 +49211,7 @@ class Client$d extends Client$e {
46905
49211
  }
46906
49212
 
46907
49213
  // auto gen
46908
- class Client$c extends Client$d {
49214
+ class Client$d extends Client$e {
46909
49215
  constructor() {
46910
49216
  super(...arguments);
46911
49217
  /**
@@ -46969,7 +49275,7 @@ class Client$c extends Client$d {
46969
49275
  }
46970
49276
 
46971
49277
  // auto gen
46972
- class Client$b extends Client$c {
49278
+ class Client$c extends Client$d {
46973
49279
  constructor() {
46974
49280
  super(...arguments);
46975
49281
  /**
@@ -48387,7 +50693,7 @@ class Client$b extends Client$c {
48387
50693
  }
48388
50694
 
48389
50695
  // auto gen
48390
- class Client$a extends Client$b {
50696
+ class Client$b extends Client$c {
48391
50697
  constructor() {
48392
50698
  super(...arguments);
48393
50699
  /**
@@ -48515,7 +50821,7 @@ class Client$a extends Client$b {
48515
50821
  }
48516
50822
 
48517
50823
  // auto gen
48518
- class Client$9 extends Client$a {
50824
+ class Client$a extends Client$b {
48519
50825
  constructor() {
48520
50826
  super(...arguments);
48521
50827
  /**
@@ -48526,7 +50832,7 @@ class Client$9 extends Client$a {
48526
50832
  }
48527
50833
 
48528
50834
  // auto gen
48529
- class Client$8 extends Client$9 {
50835
+ class Client$9 extends Client$a {
48530
50836
  constructor() {
48531
50837
  super(...arguments);
48532
50838
  /**
@@ -48537,7 +50843,7 @@ class Client$8 extends Client$9 {
48537
50843
  }
48538
50844
 
48539
50845
  // auto gen
48540
- class Client$7 extends Client$8 {
50846
+ class Client$8 extends Client$9 {
48541
50847
  constructor() {
48542
50848
  super(...arguments);
48543
50849
  /**
@@ -51657,7 +53963,7 @@ class Client$7 extends Client$8 {
51657
53963
  }
51658
53964
 
51659
53965
  // auto gen
51660
- class Client$6 extends Client$7 {
53966
+ class Client$7 extends Client$8 {
51661
53967
  constructor() {
51662
53968
  super(...arguments);
51663
53969
  /**
@@ -51783,7 +54089,7 @@ class Client$6 extends Client$7 {
51783
54089
  }
51784
54090
 
51785
54091
  // auto gen
51786
- class Client$5 extends Client$6 {
54092
+ class Client$6 extends Client$7 {
51787
54093
  constructor() {
51788
54094
  super(...arguments);
51789
54095
  /**
@@ -51911,7 +54217,7 @@ class Client$5 extends Client$6 {
51911
54217
  }
51912
54218
 
51913
54219
  // auto gen
51914
- class Client$4 extends Client$5 {
54220
+ class Client$5 extends Client$6 {
51915
54221
  constructor() {
51916
54222
  super(...arguments);
51917
54223
  /**
@@ -51922,7 +54228,7 @@ class Client$4 extends Client$5 {
51922
54228
  }
51923
54229
 
51924
54230
  // auto gen
51925
- class Client$3 extends Client$4 {
54231
+ class Client$4 extends Client$5 {
51926
54232
  constructor() {
51927
54233
  super(...arguments);
51928
54234
  /**
@@ -55549,6 +57855,49 @@ class Client$3 extends Client$4 {
55549
57855
  }
55550
57856
  }
55551
57857
 
57858
+ // auto gen
57859
+ class Client$3 extends Client$4 {
57860
+ constructor() {
57861
+ super(...arguments);
57862
+ /**
57863
+ * 认证信息
57864
+ */
57865
+ this.verification = {
57866
+ v1: {
57867
+ /**
57868
+ * 认证信息
57869
+ */
57870
+ verification: {
57871
+ /**
57872
+ * {@link https://open.feishu.cn/api-explorer?project=verification&resource=verification&apiName=get&version=v1 click to debug }
57873
+ *
57874
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/verification-v1/verification/get document }
57875
+ *
57876
+ * 获取认证信息
57877
+ *
57878
+ * 获取企业主体名称、是否认证等信息。
57879
+ */
57880
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
57881
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
57882
+ return this.httpInstance
57883
+ .request({
57884
+ url: fillApiPath(`${this.domain}/open-apis/verification/v1/verification`, path),
57885
+ method: "GET",
57886
+ data,
57887
+ params,
57888
+ headers,
57889
+ })
57890
+ .catch((e) => {
57891
+ this.logger.error(formatErrors(e));
57892
+ throw e;
57893
+ });
57894
+ }),
57895
+ },
57896
+ },
57897
+ };
57898
+ }
57899
+ }
57900
+
55552
57901
  // auto gen
55553
57902
  class Client$2 extends Client$3 {
55554
57903
  constructor() {