@larksuiteoapi/node-sdk 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -0
- package/README.zh.md +53 -0
- package/es/index.js +2755 -386
- package/lib/index.js +2755 -386
- package/package.json +1 -1
- package/types/index.d.ts +10977 -1731
package/lib/index.js
CHANGED
|
@@ -238,7 +238,7 @@ const formatErrors = (e) => {
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
// auto gen
|
|
241
|
-
class Client$
|
|
241
|
+
class Client$Z {
|
|
242
242
|
constructor() {
|
|
243
243
|
/**
|
|
244
244
|
* 智能门禁
|
|
@@ -394,6 +394,91 @@ class Client$X {
|
|
|
394
394
|
});
|
|
395
395
|
}),
|
|
396
396
|
},
|
|
397
|
+
/**
|
|
398
|
+
* rule_external
|
|
399
|
+
*/
|
|
400
|
+
ruleExternal: {
|
|
401
|
+
/**
|
|
402
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=create&version=v1 click to debug }
|
|
403
|
+
*
|
|
404
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=rule_external&version=v1 document }
|
|
405
|
+
*/
|
|
406
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
408
|
+
return this.httpInstance
|
|
409
|
+
.request({
|
|
410
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
411
|
+
method: "POST",
|
|
412
|
+
data,
|
|
413
|
+
params,
|
|
414
|
+
headers,
|
|
415
|
+
})
|
|
416
|
+
.catch((e) => {
|
|
417
|
+
this.logger.error(formatErrors(e));
|
|
418
|
+
throw e;
|
|
419
|
+
});
|
|
420
|
+
}),
|
|
421
|
+
/**
|
|
422
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=delete&version=v1 click to debug }
|
|
423
|
+
*
|
|
424
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=rule_external&version=v1 document }
|
|
425
|
+
*/
|
|
426
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
427
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
428
|
+
return this.httpInstance
|
|
429
|
+
.request({
|
|
430
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
431
|
+
method: "DELETE",
|
|
432
|
+
data,
|
|
433
|
+
params,
|
|
434
|
+
headers,
|
|
435
|
+
})
|
|
436
|
+
.catch((e) => {
|
|
437
|
+
this.logger.error(formatErrors(e));
|
|
438
|
+
throw e;
|
|
439
|
+
});
|
|
440
|
+
}),
|
|
441
|
+
/**
|
|
442
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=device_bind&version=v1 click to debug }
|
|
443
|
+
*
|
|
444
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=device_bind&project=acs&resource=rule_external&version=v1 document }
|
|
445
|
+
*/
|
|
446
|
+
deviceBind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
448
|
+
return this.httpInstance
|
|
449
|
+
.request({
|
|
450
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`, path),
|
|
451
|
+
method: "POST",
|
|
452
|
+
data,
|
|
453
|
+
params,
|
|
454
|
+
headers,
|
|
455
|
+
})
|
|
456
|
+
.catch((e) => {
|
|
457
|
+
this.logger.error(formatErrors(e));
|
|
458
|
+
throw e;
|
|
459
|
+
});
|
|
460
|
+
}),
|
|
461
|
+
/**
|
|
462
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=get&version=v1 click to debug }
|
|
463
|
+
*
|
|
464
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=acs&resource=rule_external&version=v1 document }
|
|
465
|
+
*/
|
|
466
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
468
|
+
return this.httpInstance
|
|
469
|
+
.request({
|
|
470
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
471
|
+
method: "GET",
|
|
472
|
+
data,
|
|
473
|
+
params,
|
|
474
|
+
headers,
|
|
475
|
+
})
|
|
476
|
+
.catch((e) => {
|
|
477
|
+
this.logger.error(formatErrors(e));
|
|
478
|
+
throw e;
|
|
479
|
+
});
|
|
480
|
+
}),
|
|
481
|
+
},
|
|
397
482
|
/**
|
|
398
483
|
* user.face
|
|
399
484
|
*/
|
|
@@ -592,6 +677,51 @@ class Client$X {
|
|
|
592
677
|
});
|
|
593
678
|
}),
|
|
594
679
|
},
|
|
680
|
+
/**
|
|
681
|
+
* visitor
|
|
682
|
+
*/
|
|
683
|
+
visitor: {
|
|
684
|
+
/**
|
|
685
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=create&version=v1 click to debug }
|
|
686
|
+
*
|
|
687
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=visitor&version=v1 document }
|
|
688
|
+
*/
|
|
689
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
690
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
691
|
+
return this.httpInstance
|
|
692
|
+
.request({
|
|
693
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors`, path),
|
|
694
|
+
method: "POST",
|
|
695
|
+
data,
|
|
696
|
+
params,
|
|
697
|
+
headers,
|
|
698
|
+
})
|
|
699
|
+
.catch((e) => {
|
|
700
|
+
this.logger.error(formatErrors(e));
|
|
701
|
+
throw e;
|
|
702
|
+
});
|
|
703
|
+
}),
|
|
704
|
+
/**
|
|
705
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=delete&version=v1 click to debug }
|
|
706
|
+
*
|
|
707
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=visitor&version=v1 document }
|
|
708
|
+
*/
|
|
709
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
710
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
711
|
+
return this.httpInstance
|
|
712
|
+
.request({
|
|
713
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`, path),
|
|
714
|
+
method: "DELETE",
|
|
715
|
+
data,
|
|
716
|
+
params,
|
|
717
|
+
headers,
|
|
718
|
+
})
|
|
719
|
+
.catch((e) => {
|
|
720
|
+
this.logger.error(formatErrors(e));
|
|
721
|
+
throw e;
|
|
722
|
+
});
|
|
723
|
+
}),
|
|
724
|
+
},
|
|
595
725
|
v1: {
|
|
596
726
|
/**
|
|
597
727
|
* access_record.access_photo
|
|
@@ -743,6 +873,91 @@ class Client$X {
|
|
|
743
873
|
});
|
|
744
874
|
}),
|
|
745
875
|
},
|
|
876
|
+
/**
|
|
877
|
+
* rule_external
|
|
878
|
+
*/
|
|
879
|
+
ruleExternal: {
|
|
880
|
+
/**
|
|
881
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=create&version=v1 click to debug }
|
|
882
|
+
*
|
|
883
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=rule_external&version=v1 document }
|
|
884
|
+
*/
|
|
885
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
886
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
887
|
+
return this.httpInstance
|
|
888
|
+
.request({
|
|
889
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
890
|
+
method: "POST",
|
|
891
|
+
data,
|
|
892
|
+
params,
|
|
893
|
+
headers,
|
|
894
|
+
})
|
|
895
|
+
.catch((e) => {
|
|
896
|
+
this.logger.error(formatErrors(e));
|
|
897
|
+
throw e;
|
|
898
|
+
});
|
|
899
|
+
}),
|
|
900
|
+
/**
|
|
901
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=delete&version=v1 click to debug }
|
|
902
|
+
*
|
|
903
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=rule_external&version=v1 document }
|
|
904
|
+
*/
|
|
905
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
906
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
907
|
+
return this.httpInstance
|
|
908
|
+
.request({
|
|
909
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
910
|
+
method: "DELETE",
|
|
911
|
+
data,
|
|
912
|
+
params,
|
|
913
|
+
headers,
|
|
914
|
+
})
|
|
915
|
+
.catch((e) => {
|
|
916
|
+
this.logger.error(formatErrors(e));
|
|
917
|
+
throw e;
|
|
918
|
+
});
|
|
919
|
+
}),
|
|
920
|
+
/**
|
|
921
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=device_bind&version=v1 click to debug }
|
|
922
|
+
*
|
|
923
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=device_bind&project=acs&resource=rule_external&version=v1 document }
|
|
924
|
+
*/
|
|
925
|
+
deviceBind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
926
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
927
|
+
return this.httpInstance
|
|
928
|
+
.request({
|
|
929
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`, path),
|
|
930
|
+
method: "POST",
|
|
931
|
+
data,
|
|
932
|
+
params,
|
|
933
|
+
headers,
|
|
934
|
+
})
|
|
935
|
+
.catch((e) => {
|
|
936
|
+
this.logger.error(formatErrors(e));
|
|
937
|
+
throw e;
|
|
938
|
+
});
|
|
939
|
+
}),
|
|
940
|
+
/**
|
|
941
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=rule_external&apiName=get&version=v1 click to debug }
|
|
942
|
+
*
|
|
943
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=acs&resource=rule_external&version=v1 document }
|
|
944
|
+
*/
|
|
945
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
946
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
947
|
+
return this.httpInstance
|
|
948
|
+
.request({
|
|
949
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/rule_external`, path),
|
|
950
|
+
method: "GET",
|
|
951
|
+
data,
|
|
952
|
+
params,
|
|
953
|
+
headers,
|
|
954
|
+
})
|
|
955
|
+
.catch((e) => {
|
|
956
|
+
this.logger.error(formatErrors(e));
|
|
957
|
+
throw e;
|
|
958
|
+
});
|
|
959
|
+
}),
|
|
960
|
+
},
|
|
746
961
|
/**
|
|
747
962
|
* user.face
|
|
748
963
|
*/
|
|
@@ -941,13 +1156,58 @@ class Client$X {
|
|
|
941
1156
|
});
|
|
942
1157
|
}),
|
|
943
1158
|
},
|
|
1159
|
+
/**
|
|
1160
|
+
* visitor
|
|
1161
|
+
*/
|
|
1162
|
+
visitor: {
|
|
1163
|
+
/**
|
|
1164
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=create&version=v1 click to debug }
|
|
1165
|
+
*
|
|
1166
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=acs&resource=visitor&version=v1 document }
|
|
1167
|
+
*/
|
|
1168
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1169
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1170
|
+
return this.httpInstance
|
|
1171
|
+
.request({
|
|
1172
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors`, path),
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
data,
|
|
1175
|
+
params,
|
|
1176
|
+
headers,
|
|
1177
|
+
})
|
|
1178
|
+
.catch((e) => {
|
|
1179
|
+
this.logger.error(formatErrors(e));
|
|
1180
|
+
throw e;
|
|
1181
|
+
});
|
|
1182
|
+
}),
|
|
1183
|
+
/**
|
|
1184
|
+
* {@link https://open.feishu.cn/api-explorer?project=acs&resource=visitor&apiName=delete&version=v1 click to debug }
|
|
1185
|
+
*
|
|
1186
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=acs&resource=visitor&version=v1 document }
|
|
1187
|
+
*/
|
|
1188
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1189
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1190
|
+
return this.httpInstance
|
|
1191
|
+
.request({
|
|
1192
|
+
url: fillApiPath(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`, path),
|
|
1193
|
+
method: "DELETE",
|
|
1194
|
+
data,
|
|
1195
|
+
params,
|
|
1196
|
+
headers,
|
|
1197
|
+
})
|
|
1198
|
+
.catch((e) => {
|
|
1199
|
+
this.logger.error(formatErrors(e));
|
|
1200
|
+
throw e;
|
|
1201
|
+
});
|
|
1202
|
+
}),
|
|
1203
|
+
},
|
|
944
1204
|
},
|
|
945
1205
|
};
|
|
946
1206
|
}
|
|
947
1207
|
}
|
|
948
1208
|
|
|
949
1209
|
// auto gen
|
|
950
|
-
class Client$
|
|
1210
|
+
class Client$Y extends Client$Z {
|
|
951
1211
|
constructor() {
|
|
952
1212
|
super(...arguments);
|
|
953
1213
|
/**
|
|
@@ -1017,63 +1277,136 @@ class Client$W extends Client$X {
|
|
|
1017
1277
|
}),
|
|
1018
1278
|
},
|
|
1019
1279
|
/**
|
|
1020
|
-
*
|
|
1280
|
+
* 行为审计日志(灰度租户可见)
|
|
1021
1281
|
*/
|
|
1022
|
-
|
|
1023
|
-
/**
|
|
1024
|
-
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
|
|
1025
|
-
*
|
|
1026
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/create document }
|
|
1027
|
-
*
|
|
1028
|
-
* 创建勋章
|
|
1029
|
-
*
|
|
1030
|
-
* 使用该接口可以创建一枚完整的勋章信息,一个租户下最多可创建1000枚勋章。
|
|
1031
|
-
*/
|
|
1032
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1033
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1034
|
-
return this.httpInstance
|
|
1035
|
-
.request({
|
|
1036
|
-
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
1037
|
-
method: "POST",
|
|
1038
|
-
data,
|
|
1039
|
-
params,
|
|
1040
|
-
headers,
|
|
1041
|
-
})
|
|
1042
|
-
.catch((e) => {
|
|
1043
|
-
this.logger.error(formatErrors(e));
|
|
1044
|
-
throw e;
|
|
1045
|
-
});
|
|
1046
|
-
}),
|
|
1047
|
-
/**
|
|
1048
|
-
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
|
|
1049
|
-
*
|
|
1050
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/get document }
|
|
1051
|
-
*
|
|
1052
|
-
* 获取勋章详情
|
|
1053
|
-
*
|
|
1054
|
-
* 可以通过该接口查询勋章的详情
|
|
1055
|
-
*/
|
|
1056
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1057
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1058
|
-
return this.httpInstance
|
|
1059
|
-
.request({
|
|
1060
|
-
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
1061
|
-
method: "GET",
|
|
1062
|
-
data,
|
|
1063
|
-
params,
|
|
1064
|
-
headers,
|
|
1065
|
-
})
|
|
1066
|
-
.catch((e) => {
|
|
1067
|
-
this.logger.error(formatErrors(e));
|
|
1068
|
-
throw e;
|
|
1069
|
-
});
|
|
1070
|
-
}),
|
|
1282
|
+
auditInfo: {
|
|
1071
1283
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1072
1284
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1073
1285
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1074
1286
|
const res = yield this.httpInstance
|
|
1075
1287
|
.request({
|
|
1076
|
-
url: fillApiPath(`${this.domain}/open-apis/admin/v1/
|
|
1288
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
|
|
1289
|
+
method: "GET",
|
|
1290
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1291
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
1292
|
+
})
|
|
1293
|
+
.catch((e) => {
|
|
1294
|
+
this.logger.error(formatErrors(e));
|
|
1295
|
+
});
|
|
1296
|
+
return res;
|
|
1297
|
+
});
|
|
1298
|
+
const Iterable = {
|
|
1299
|
+
[Symbol.asyncIterator]() {
|
|
1300
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1301
|
+
let hasMore = true;
|
|
1302
|
+
let pageToken;
|
|
1303
|
+
while (hasMore) {
|
|
1304
|
+
try {
|
|
1305
|
+
const res = yield __await(sendRequest({
|
|
1306
|
+
headers,
|
|
1307
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1308
|
+
data,
|
|
1309
|
+
}));
|
|
1310
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
1311
|
+
// @ts-ignore
|
|
1312
|
+
has_more,
|
|
1313
|
+
// @ts-ignore
|
|
1314
|
+
page_token,
|
|
1315
|
+
// @ts-ignore
|
|
1316
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1317
|
+
yield yield __await(rest);
|
|
1318
|
+
hasMore = Boolean(has_more);
|
|
1319
|
+
pageToken = page_token || next_page_token;
|
|
1320
|
+
}
|
|
1321
|
+
catch (e) {
|
|
1322
|
+
yield yield __await(null);
|
|
1323
|
+
break;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
});
|
|
1327
|
+
},
|
|
1328
|
+
};
|
|
1329
|
+
return Iterable;
|
|
1330
|
+
}),
|
|
1331
|
+
/**
|
|
1332
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
|
|
1333
|
+
*
|
|
1334
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
|
|
1335
|
+
*/
|
|
1336
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1337
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1338
|
+
return this.httpInstance
|
|
1339
|
+
.request({
|
|
1340
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
|
|
1341
|
+
method: "GET",
|
|
1342
|
+
data,
|
|
1343
|
+
params,
|
|
1344
|
+
headers,
|
|
1345
|
+
})
|
|
1346
|
+
.catch((e) => {
|
|
1347
|
+
this.logger.error(formatErrors(e));
|
|
1348
|
+
throw e;
|
|
1349
|
+
});
|
|
1350
|
+
}),
|
|
1351
|
+
},
|
|
1352
|
+
/**
|
|
1353
|
+
* 勋章
|
|
1354
|
+
*/
|
|
1355
|
+
badge: {
|
|
1356
|
+
/**
|
|
1357
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=create&version=v1 click to debug }
|
|
1358
|
+
*
|
|
1359
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/create document }
|
|
1360
|
+
*
|
|
1361
|
+
* 创建勋章
|
|
1362
|
+
*
|
|
1363
|
+
* 使用该接口可以创建一枚完整的勋章信息,一个租户下最多可创建1000枚勋章。
|
|
1364
|
+
*/
|
|
1365
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1366
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1367
|
+
return this.httpInstance
|
|
1368
|
+
.request({
|
|
1369
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
1370
|
+
method: "POST",
|
|
1371
|
+
data,
|
|
1372
|
+
params,
|
|
1373
|
+
headers,
|
|
1374
|
+
})
|
|
1375
|
+
.catch((e) => {
|
|
1376
|
+
this.logger.error(formatErrors(e));
|
|
1377
|
+
throw e;
|
|
1378
|
+
});
|
|
1379
|
+
}),
|
|
1380
|
+
/**
|
|
1381
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=badge&apiName=get&version=v1 click to debug }
|
|
1382
|
+
*
|
|
1383
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/admin-v1/badge/get document }
|
|
1384
|
+
*
|
|
1385
|
+
* 获取勋章详情
|
|
1386
|
+
*
|
|
1387
|
+
* 可以通过该接口查询勋章的详情
|
|
1388
|
+
*/
|
|
1389
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1390
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1391
|
+
return this.httpInstance
|
|
1392
|
+
.request({
|
|
1393
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges/:badge_id`, path),
|
|
1394
|
+
method: "GET",
|
|
1395
|
+
data,
|
|
1396
|
+
params,
|
|
1397
|
+
headers,
|
|
1398
|
+
})
|
|
1399
|
+
.catch((e) => {
|
|
1400
|
+
this.logger.error(formatErrors(e));
|
|
1401
|
+
throw e;
|
|
1402
|
+
});
|
|
1403
|
+
}),
|
|
1404
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1405
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1406
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1407
|
+
const res = yield this.httpInstance
|
|
1408
|
+
.request({
|
|
1409
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/badges`, path),
|
|
1077
1410
|
method: "GET",
|
|
1078
1411
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1079
1412
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -1460,6 +1793,79 @@ class Client$W extends Client$X {
|
|
|
1460
1793
|
});
|
|
1461
1794
|
}),
|
|
1462
1795
|
},
|
|
1796
|
+
/**
|
|
1797
|
+
* 行为审计日志(灰度租户可见)
|
|
1798
|
+
*/
|
|
1799
|
+
auditInfo: {
|
|
1800
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1801
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1802
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
1803
|
+
const res = yield this.httpInstance
|
|
1804
|
+
.request({
|
|
1805
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
|
|
1806
|
+
method: "GET",
|
|
1807
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
1808
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
1809
|
+
})
|
|
1810
|
+
.catch((e) => {
|
|
1811
|
+
this.logger.error(formatErrors(e));
|
|
1812
|
+
});
|
|
1813
|
+
return res;
|
|
1814
|
+
});
|
|
1815
|
+
const Iterable = {
|
|
1816
|
+
[Symbol.asyncIterator]() {
|
|
1817
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
1818
|
+
let hasMore = true;
|
|
1819
|
+
let pageToken;
|
|
1820
|
+
while (hasMore) {
|
|
1821
|
+
try {
|
|
1822
|
+
const res = yield __await(sendRequest({
|
|
1823
|
+
headers,
|
|
1824
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
1825
|
+
data,
|
|
1826
|
+
}));
|
|
1827
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
1828
|
+
// @ts-ignore
|
|
1829
|
+
has_more,
|
|
1830
|
+
// @ts-ignore
|
|
1831
|
+
page_token,
|
|
1832
|
+
// @ts-ignore
|
|
1833
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
1834
|
+
yield yield __await(rest);
|
|
1835
|
+
hasMore = Boolean(has_more);
|
|
1836
|
+
pageToken = page_token || next_page_token;
|
|
1837
|
+
}
|
|
1838
|
+
catch (e) {
|
|
1839
|
+
yield yield __await(null);
|
|
1840
|
+
break;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
});
|
|
1844
|
+
},
|
|
1845
|
+
};
|
|
1846
|
+
return Iterable;
|
|
1847
|
+
}),
|
|
1848
|
+
/**
|
|
1849
|
+
* {@link https://open.feishu.cn/api-explorer?project=admin&resource=audit_info&apiName=list&version=v1 click to debug }
|
|
1850
|
+
*
|
|
1851
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uQjM5YjL0ITO24CNykjN/audit_log/audit_data_get document }
|
|
1852
|
+
*/
|
|
1853
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1854
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1855
|
+
return this.httpInstance
|
|
1856
|
+
.request({
|
|
1857
|
+
url: fillApiPath(`${this.domain}/open-apis/admin/v1/audit_infos`, path),
|
|
1858
|
+
method: "GET",
|
|
1859
|
+
data,
|
|
1860
|
+
params,
|
|
1861
|
+
headers,
|
|
1862
|
+
})
|
|
1863
|
+
.catch((e) => {
|
|
1864
|
+
this.logger.error(formatErrors(e));
|
|
1865
|
+
throw e;
|
|
1866
|
+
});
|
|
1867
|
+
}),
|
|
1868
|
+
},
|
|
1463
1869
|
/**
|
|
1464
1870
|
* 勋章
|
|
1465
1871
|
*/
|
|
@@ -1847,7 +2253,7 @@ class Client$W extends Client$X {
|
|
|
1847
2253
|
}
|
|
1848
2254
|
|
|
1849
2255
|
// auto gen
|
|
1850
|
-
class Client$
|
|
2256
|
+
class Client$X extends Client$Y {
|
|
1851
2257
|
constructor() {
|
|
1852
2258
|
super(...arguments);
|
|
1853
2259
|
/**
|
|
@@ -2387,6 +2793,31 @@ class Client$V extends Client$W {
|
|
|
2387
2793
|
});
|
|
2388
2794
|
}),
|
|
2389
2795
|
},
|
|
2796
|
+
/**
|
|
2797
|
+
* application.management
|
|
2798
|
+
*/
|
|
2799
|
+
applicationManagement: {
|
|
2800
|
+
/**
|
|
2801
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.management&apiName=update&version=v6 click to debug }
|
|
2802
|
+
*
|
|
2803
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.management&version=v6 document }
|
|
2804
|
+
*/
|
|
2805
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2806
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2807
|
+
return this.httpInstance
|
|
2808
|
+
.request({
|
|
2809
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/management`, path),
|
|
2810
|
+
method: "PUT",
|
|
2811
|
+
data,
|
|
2812
|
+
params,
|
|
2813
|
+
headers,
|
|
2814
|
+
})
|
|
2815
|
+
.catch((e) => {
|
|
2816
|
+
this.logger.error(formatErrors(e));
|
|
2817
|
+
throw e;
|
|
2818
|
+
});
|
|
2819
|
+
}),
|
|
2820
|
+
},
|
|
2390
2821
|
/**
|
|
2391
2822
|
* 事件
|
|
2392
2823
|
*/
|
|
@@ -2966,6 +3397,31 @@ class Client$V extends Client$W {
|
|
|
2966
3397
|
});
|
|
2967
3398
|
}),
|
|
2968
3399
|
},
|
|
3400
|
+
/**
|
|
3401
|
+
* application.management
|
|
3402
|
+
*/
|
|
3403
|
+
applicationManagement: {
|
|
3404
|
+
/**
|
|
3405
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.management&apiName=update&version=v6 click to debug }
|
|
3406
|
+
*
|
|
3407
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.management&version=v6 document }
|
|
3408
|
+
*/
|
|
3409
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3410
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3411
|
+
return this.httpInstance
|
|
3412
|
+
.request({
|
|
3413
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/management`, path),
|
|
3414
|
+
method: "PUT",
|
|
3415
|
+
data,
|
|
3416
|
+
params,
|
|
3417
|
+
headers,
|
|
3418
|
+
})
|
|
3419
|
+
.catch((e) => {
|
|
3420
|
+
this.logger.error(formatErrors(e));
|
|
3421
|
+
throw e;
|
|
3422
|
+
});
|
|
3423
|
+
}),
|
|
3424
|
+
},
|
|
2969
3425
|
/**
|
|
2970
3426
|
* 事件
|
|
2971
3427
|
*/
|
|
@@ -3017,7 +3473,7 @@ class Client$V extends Client$W {
|
|
|
3017
3473
|
}
|
|
3018
3474
|
|
|
3019
3475
|
// auto gen
|
|
3020
|
-
class Client$
|
|
3476
|
+
class Client$W extends Client$X {
|
|
3021
3477
|
constructor() {
|
|
3022
3478
|
super(...arguments);
|
|
3023
3479
|
/**
|
|
@@ -3791,7 +4247,7 @@ class Client$U extends Client$V {
|
|
|
3791
4247
|
}),
|
|
3792
4248
|
},
|
|
3793
4249
|
/**
|
|
3794
|
-
*
|
|
4250
|
+
* 原生审批任务
|
|
3795
4251
|
*/
|
|
3796
4252
|
task: {
|
|
3797
4253
|
/**
|
|
@@ -4755,7 +5211,7 @@ class Client$U extends Client$V {
|
|
|
4755
5211
|
}),
|
|
4756
5212
|
},
|
|
4757
5213
|
/**
|
|
4758
|
-
*
|
|
5214
|
+
* 原生审批任务
|
|
4759
5215
|
*/
|
|
4760
5216
|
task: {
|
|
4761
5217
|
/**
|
|
@@ -4957,7 +5413,7 @@ class Client$U extends Client$V {
|
|
|
4957
5413
|
}
|
|
4958
5414
|
|
|
4959
5415
|
// auto gen
|
|
4960
|
-
class Client$
|
|
5416
|
+
class Client$V extends Client$W {
|
|
4961
5417
|
constructor() {
|
|
4962
5418
|
super(...arguments);
|
|
4963
5419
|
/**
|
|
@@ -6901,7 +7357,7 @@ class Client$T extends Client$U {
|
|
|
6901
7357
|
}
|
|
6902
7358
|
|
|
6903
7359
|
// auto gen
|
|
6904
|
-
class Client$
|
|
7360
|
+
class Client$U extends Client$V {
|
|
6905
7361
|
constructor() {
|
|
6906
7362
|
super(...arguments);
|
|
6907
7363
|
/**
|
|
@@ -7145,7 +7601,7 @@ class Client$S extends Client$T {
|
|
|
7145
7601
|
}
|
|
7146
7602
|
|
|
7147
7603
|
// auto gen
|
|
7148
|
-
class Client$
|
|
7604
|
+
class Client$T extends Client$U {
|
|
7149
7605
|
constructor() {
|
|
7150
7606
|
super(...arguments);
|
|
7151
7607
|
/**
|
|
@@ -7409,7 +7865,7 @@ class Client$R extends Client$S {
|
|
|
7409
7865
|
}
|
|
7410
7866
|
|
|
7411
7867
|
// auto gen
|
|
7412
|
-
class Client$
|
|
7868
|
+
class Client$S extends Client$T {
|
|
7413
7869
|
constructor() {
|
|
7414
7870
|
super(...arguments);
|
|
7415
7871
|
/**
|
|
@@ -7420,7 +7876,7 @@ class Client$Q extends Client$R {
|
|
|
7420
7876
|
}
|
|
7421
7877
|
|
|
7422
7878
|
// auto gen
|
|
7423
|
-
class Client$
|
|
7879
|
+
class Client$R extends Client$S {
|
|
7424
7880
|
constructor() {
|
|
7425
7881
|
super(...arguments);
|
|
7426
7882
|
/**
|
|
@@ -8430,7 +8886,7 @@ class Client$P extends Client$Q {
|
|
|
8430
8886
|
}
|
|
8431
8887
|
|
|
8432
8888
|
// auto gen
|
|
8433
|
-
class Client$
|
|
8889
|
+
class Client$Q extends Client$R {
|
|
8434
8890
|
constructor() {
|
|
8435
8891
|
super(...arguments);
|
|
8436
8892
|
/**
|
|
@@ -9719,6 +10175,76 @@ class Client$O extends Client$P {
|
|
|
9719
10175
|
throw e;
|
|
9720
10176
|
});
|
|
9721
10177
|
}),
|
|
10178
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10179
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10180
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
10181
|
+
const res = yield this.httpInstance
|
|
10182
|
+
.request({
|
|
10183
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
|
|
10184
|
+
method: "POST",
|
|
10185
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
10186
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
10187
|
+
})
|
|
10188
|
+
.catch((e) => {
|
|
10189
|
+
this.logger.error(formatErrors(e));
|
|
10190
|
+
});
|
|
10191
|
+
return res;
|
|
10192
|
+
});
|
|
10193
|
+
const Iterable = {
|
|
10194
|
+
[Symbol.asyncIterator]() {
|
|
10195
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
10196
|
+
let hasMore = true;
|
|
10197
|
+
let pageToken;
|
|
10198
|
+
while (hasMore) {
|
|
10199
|
+
try {
|
|
10200
|
+
const res = yield __await(sendRequest({
|
|
10201
|
+
headers,
|
|
10202
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
10203
|
+
data,
|
|
10204
|
+
}));
|
|
10205
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
10206
|
+
// @ts-ignore
|
|
10207
|
+
has_more,
|
|
10208
|
+
// @ts-ignore
|
|
10209
|
+
page_token,
|
|
10210
|
+
// @ts-ignore
|
|
10211
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
10212
|
+
yield yield __await(rest);
|
|
10213
|
+
hasMore = Boolean(has_more);
|
|
10214
|
+
pageToken = page_token || next_page_token;
|
|
10215
|
+
}
|
|
10216
|
+
catch (e) {
|
|
10217
|
+
yield yield __await(null);
|
|
10218
|
+
break;
|
|
10219
|
+
}
|
|
10220
|
+
}
|
|
10221
|
+
});
|
|
10222
|
+
},
|
|
10223
|
+
};
|
|
10224
|
+
return Iterable;
|
|
10225
|
+
}),
|
|
10226
|
+
/**
|
|
10227
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=search&version=v1 click to debug }
|
|
10228
|
+
*
|
|
10229
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=bitable&resource=app.table.record&version=v1 document }
|
|
10230
|
+
*
|
|
10231
|
+
* 查找多维表格记录
|
|
10232
|
+
*/
|
|
10233
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10234
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10235
|
+
return this.httpInstance
|
|
10236
|
+
.request({
|
|
10237
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
|
|
10238
|
+
method: "POST",
|
|
10239
|
+
data,
|
|
10240
|
+
params,
|
|
10241
|
+
headers,
|
|
10242
|
+
})
|
|
10243
|
+
.catch((e) => {
|
|
10244
|
+
this.logger.error(formatErrors(e));
|
|
10245
|
+
throw e;
|
|
10246
|
+
});
|
|
10247
|
+
}),
|
|
9722
10248
|
/**
|
|
9723
10249
|
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
9724
10250
|
*
|
|
@@ -11208,6 +11734,76 @@ class Client$O extends Client$P {
|
|
|
11208
11734
|
throw e;
|
|
11209
11735
|
});
|
|
11210
11736
|
}),
|
|
11737
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11738
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11739
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
11740
|
+
const res = yield this.httpInstance
|
|
11741
|
+
.request({
|
|
11742
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
|
|
11743
|
+
method: "POST",
|
|
11744
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
11745
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
11746
|
+
})
|
|
11747
|
+
.catch((e) => {
|
|
11748
|
+
this.logger.error(formatErrors(e));
|
|
11749
|
+
});
|
|
11750
|
+
return res;
|
|
11751
|
+
});
|
|
11752
|
+
const Iterable = {
|
|
11753
|
+
[Symbol.asyncIterator]() {
|
|
11754
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
11755
|
+
let hasMore = true;
|
|
11756
|
+
let pageToken;
|
|
11757
|
+
while (hasMore) {
|
|
11758
|
+
try {
|
|
11759
|
+
const res = yield __await(sendRequest({
|
|
11760
|
+
headers,
|
|
11761
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
11762
|
+
data,
|
|
11763
|
+
}));
|
|
11764
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
11765
|
+
// @ts-ignore
|
|
11766
|
+
has_more,
|
|
11767
|
+
// @ts-ignore
|
|
11768
|
+
page_token,
|
|
11769
|
+
// @ts-ignore
|
|
11770
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
11771
|
+
yield yield __await(rest);
|
|
11772
|
+
hasMore = Boolean(has_more);
|
|
11773
|
+
pageToken = page_token || next_page_token;
|
|
11774
|
+
}
|
|
11775
|
+
catch (e) {
|
|
11776
|
+
yield yield __await(null);
|
|
11777
|
+
break;
|
|
11778
|
+
}
|
|
11779
|
+
}
|
|
11780
|
+
});
|
|
11781
|
+
},
|
|
11782
|
+
};
|
|
11783
|
+
return Iterable;
|
|
11784
|
+
}),
|
|
11785
|
+
/**
|
|
11786
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=search&version=v1 click to debug }
|
|
11787
|
+
*
|
|
11788
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=bitable&resource=app.table.record&version=v1 document }
|
|
11789
|
+
*
|
|
11790
|
+
* 查找多维表格记录
|
|
11791
|
+
*/
|
|
11792
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11793
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11794
|
+
return this.httpInstance
|
|
11795
|
+
.request({
|
|
11796
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`, path),
|
|
11797
|
+
method: "POST",
|
|
11798
|
+
data,
|
|
11799
|
+
params,
|
|
11800
|
+
headers,
|
|
11801
|
+
})
|
|
11802
|
+
.catch((e) => {
|
|
11803
|
+
this.logger.error(formatErrors(e));
|
|
11804
|
+
throw e;
|
|
11805
|
+
});
|
|
11806
|
+
}),
|
|
11211
11807
|
/**
|
|
11212
11808
|
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
11213
11809
|
*
|
|
@@ -11420,7 +12016,7 @@ class Client$O extends Client$P {
|
|
|
11420
12016
|
}
|
|
11421
12017
|
|
|
11422
12018
|
// auto gen
|
|
11423
|
-
class Client$
|
|
12019
|
+
class Client$P extends Client$Q {
|
|
11424
12020
|
constructor() {
|
|
11425
12021
|
super(...arguments);
|
|
11426
12022
|
/**
|
|
@@ -11598,7 +12194,48 @@ class Client$N extends Client$O {
|
|
|
11598
12194
|
}
|
|
11599
12195
|
|
|
11600
12196
|
// auto gen
|
|
11601
|
-
class Client$
|
|
12197
|
+
class Client$O extends Client$P {
|
|
12198
|
+
constructor() {
|
|
12199
|
+
super(...arguments);
|
|
12200
|
+
/**
|
|
12201
|
+
|
|
12202
|
+
*/
|
|
12203
|
+
this.board = {
|
|
12204
|
+
v1: {
|
|
12205
|
+
/**
|
|
12206
|
+
* whiteboard.node
|
|
12207
|
+
*/
|
|
12208
|
+
whiteboardNode: {
|
|
12209
|
+
/**
|
|
12210
|
+
* {@link https://open.feishu.cn/api-explorer?project=board&resource=whiteboard.node&apiName=list&version=v1 click to debug }
|
|
12211
|
+
*
|
|
12212
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=board&resource=whiteboard.node&version=v1 document }
|
|
12213
|
+
*
|
|
12214
|
+
* 列出画板内的节点数据
|
|
12215
|
+
*/
|
|
12216
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12217
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12218
|
+
return this.httpInstance
|
|
12219
|
+
.request({
|
|
12220
|
+
url: fillApiPath(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`, path),
|
|
12221
|
+
method: "GET",
|
|
12222
|
+
data,
|
|
12223
|
+
params,
|
|
12224
|
+
headers,
|
|
12225
|
+
})
|
|
12226
|
+
.catch((e) => {
|
|
12227
|
+
this.logger.error(formatErrors(e));
|
|
12228
|
+
throw e;
|
|
12229
|
+
});
|
|
12230
|
+
}),
|
|
12231
|
+
},
|
|
12232
|
+
},
|
|
12233
|
+
};
|
|
12234
|
+
}
|
|
12235
|
+
}
|
|
12236
|
+
|
|
12237
|
+
// auto gen
|
|
12238
|
+
class Client$N extends Client$O {
|
|
11602
12239
|
constructor() {
|
|
11603
12240
|
super(...arguments);
|
|
11604
12241
|
/**
|
|
@@ -12409,6 +13046,46 @@ class Client$M extends Client$N {
|
|
|
12409
13046
|
throw e;
|
|
12410
13047
|
});
|
|
12411
13048
|
}),
|
|
13049
|
+
/**
|
|
13050
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instance_view&version=v4 click to debug }
|
|
13051
|
+
*
|
|
13052
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instance_view&project=calendar&resource=calendar.event&version=v4 document }
|
|
13053
|
+
*/
|
|
13054
|
+
instanceView: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13055
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13056
|
+
return this.httpInstance
|
|
13057
|
+
.request({
|
|
13058
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`, path),
|
|
13059
|
+
method: "GET",
|
|
13060
|
+
data,
|
|
13061
|
+
params,
|
|
13062
|
+
headers,
|
|
13063
|
+
})
|
|
13064
|
+
.catch((e) => {
|
|
13065
|
+
this.logger.error(formatErrors(e));
|
|
13066
|
+
throw e;
|
|
13067
|
+
});
|
|
13068
|
+
}),
|
|
13069
|
+
/**
|
|
13070
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instances&version=v4 click to debug }
|
|
13071
|
+
*
|
|
13072
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instances&project=calendar&resource=calendar.event&version=v4 document }
|
|
13073
|
+
*/
|
|
13074
|
+
instances: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13075
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13076
|
+
return this.httpInstance
|
|
13077
|
+
.request({
|
|
13078
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`, path),
|
|
13079
|
+
method: "GET",
|
|
13080
|
+
data,
|
|
13081
|
+
params,
|
|
13082
|
+
headers,
|
|
13083
|
+
})
|
|
13084
|
+
.catch((e) => {
|
|
13085
|
+
this.logger.error(formatErrors(e));
|
|
13086
|
+
throw e;
|
|
13087
|
+
});
|
|
13088
|
+
}),
|
|
12412
13089
|
/**
|
|
12413
13090
|
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=list&version=v4 click to debug }
|
|
12414
13091
|
*
|
|
@@ -12461,6 +13138,26 @@ class Client$M extends Client$N {
|
|
|
12461
13138
|
throw e;
|
|
12462
13139
|
});
|
|
12463
13140
|
}),
|
|
13141
|
+
/**
|
|
13142
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=reply&version=v4 click to debug }
|
|
13143
|
+
*
|
|
13144
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=reply&project=calendar&resource=calendar.event&version=v4 document }
|
|
13145
|
+
*/
|
|
13146
|
+
reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13147
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13148
|
+
return this.httpInstance
|
|
13149
|
+
.request({
|
|
13150
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`, path),
|
|
13151
|
+
method: "POST",
|
|
13152
|
+
data,
|
|
13153
|
+
params,
|
|
13154
|
+
headers,
|
|
13155
|
+
})
|
|
13156
|
+
.catch((e) => {
|
|
13157
|
+
this.logger.error(formatErrors(e));
|
|
13158
|
+
throw e;
|
|
13159
|
+
});
|
|
13160
|
+
}),
|
|
12464
13161
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12465
13162
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12466
13163
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -13632,6 +14329,46 @@ class Client$M extends Client$N {
|
|
|
13632
14329
|
throw e;
|
|
13633
14330
|
});
|
|
13634
14331
|
}),
|
|
14332
|
+
/**
|
|
14333
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instance_view&version=v4 click to debug }
|
|
14334
|
+
*
|
|
14335
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instance_view&project=calendar&resource=calendar.event&version=v4 document }
|
|
14336
|
+
*/
|
|
14337
|
+
instanceView: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14338
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14339
|
+
return this.httpInstance
|
|
14340
|
+
.request({
|
|
14341
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`, path),
|
|
14342
|
+
method: "GET",
|
|
14343
|
+
data,
|
|
14344
|
+
params,
|
|
14345
|
+
headers,
|
|
14346
|
+
})
|
|
14347
|
+
.catch((e) => {
|
|
14348
|
+
this.logger.error(formatErrors(e));
|
|
14349
|
+
throw e;
|
|
14350
|
+
});
|
|
14351
|
+
}),
|
|
14352
|
+
/**
|
|
14353
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=instances&version=v4 click to debug }
|
|
14354
|
+
*
|
|
14355
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=instances&project=calendar&resource=calendar.event&version=v4 document }
|
|
14356
|
+
*/
|
|
14357
|
+
instances: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14358
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14359
|
+
return this.httpInstance
|
|
14360
|
+
.request({
|
|
14361
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`, path),
|
|
14362
|
+
method: "GET",
|
|
14363
|
+
data,
|
|
14364
|
+
params,
|
|
14365
|
+
headers,
|
|
14366
|
+
})
|
|
14367
|
+
.catch((e) => {
|
|
14368
|
+
this.logger.error(formatErrors(e));
|
|
14369
|
+
throw e;
|
|
14370
|
+
});
|
|
14371
|
+
}),
|
|
13635
14372
|
/**
|
|
13636
14373
|
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=list&version=v4 click to debug }
|
|
13637
14374
|
*
|
|
@@ -13684,6 +14421,26 @@ class Client$M extends Client$N {
|
|
|
13684
14421
|
throw e;
|
|
13685
14422
|
});
|
|
13686
14423
|
}),
|
|
14424
|
+
/**
|
|
14425
|
+
* {@link https://open.feishu.cn/api-explorer?project=calendar&resource=calendar.event&apiName=reply&version=v4 click to debug }
|
|
14426
|
+
*
|
|
14427
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=reply&project=calendar&resource=calendar.event&version=v4 document }
|
|
14428
|
+
*/
|
|
14429
|
+
reply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14430
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14431
|
+
return this.httpInstance
|
|
14432
|
+
.request({
|
|
14433
|
+
url: fillApiPath(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`, path),
|
|
14434
|
+
method: "POST",
|
|
14435
|
+
data,
|
|
14436
|
+
params,
|
|
14437
|
+
headers,
|
|
14438
|
+
})
|
|
14439
|
+
.catch((e) => {
|
|
14440
|
+
this.logger.error(formatErrors(e));
|
|
14441
|
+
throw e;
|
|
14442
|
+
});
|
|
14443
|
+
}),
|
|
13687
14444
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13688
14445
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13689
14446
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14056,7 +14813,7 @@ class Client$M extends Client$N {
|
|
|
14056
14813
|
}
|
|
14057
14814
|
|
|
14058
14815
|
// auto gen
|
|
14059
|
-
class Client$
|
|
14816
|
+
class Client$M extends Client$N {
|
|
14060
14817
|
constructor() {
|
|
14061
14818
|
super(...arguments);
|
|
14062
14819
|
/**
|
|
@@ -14067,7 +14824,7 @@ class Client$L extends Client$M {
|
|
|
14067
14824
|
}
|
|
14068
14825
|
|
|
14069
14826
|
// auto gen
|
|
14070
|
-
class Client$
|
|
14827
|
+
class Client$L extends Client$M {
|
|
14071
14828
|
constructor() {
|
|
14072
14829
|
super(...arguments);
|
|
14073
14830
|
/**
|
|
@@ -18865,7 +19622,7 @@ class Client$K extends Client$L {
|
|
|
18865
19622
|
}
|
|
18866
19623
|
|
|
18867
19624
|
// auto gen
|
|
18868
|
-
class Client$
|
|
19625
|
+
class Client$K extends Client$L {
|
|
18869
19626
|
constructor() {
|
|
18870
19627
|
super(...arguments);
|
|
18871
19628
|
/**
|
|
@@ -18876,7 +19633,7 @@ class Client$J extends Client$K {
|
|
|
18876
19633
|
}
|
|
18877
19634
|
|
|
18878
19635
|
// auto gen
|
|
18879
|
-
class Client$
|
|
19636
|
+
class Client$J extends Client$K {
|
|
18880
19637
|
constructor() {
|
|
18881
19638
|
super(...arguments);
|
|
18882
19639
|
/**
|
|
@@ -18887,7 +19644,7 @@ class Client$I extends Client$J {
|
|
|
18887
19644
|
}
|
|
18888
19645
|
|
|
18889
19646
|
// auto gen
|
|
18890
|
-
class Client$
|
|
19647
|
+
class Client$I extends Client$J {
|
|
18891
19648
|
constructor() {
|
|
18892
19649
|
super(...arguments);
|
|
18893
19650
|
/**
|
|
@@ -19023,6 +19780,28 @@ class Client$H extends Client$I {
|
|
|
19023
19780
|
throw e;
|
|
19024
19781
|
});
|
|
19025
19782
|
}),
|
|
19783
|
+
/**
|
|
19784
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=patch&version=v1 click to debug }
|
|
19785
|
+
*
|
|
19786
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=company&version=v1 document }
|
|
19787
|
+
*
|
|
19788
|
+
* 更新公司数据
|
|
19789
|
+
*/
|
|
19790
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19791
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19792
|
+
return this.httpInstance
|
|
19793
|
+
.request({
|
|
19794
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
|
|
19795
|
+
method: "PATCH",
|
|
19796
|
+
data,
|
|
19797
|
+
params,
|
|
19798
|
+
headers,
|
|
19799
|
+
})
|
|
19800
|
+
.catch((e) => {
|
|
19801
|
+
this.logger.error(formatErrors(e));
|
|
19802
|
+
throw e;
|
|
19803
|
+
});
|
|
19804
|
+
}),
|
|
19026
19805
|
},
|
|
19027
19806
|
/**
|
|
19028
19807
|
* compensation_standard
|
|
@@ -21414,6 +22193,28 @@ class Client$H extends Client$I {
|
|
|
21414
22193
|
throw e;
|
|
21415
22194
|
});
|
|
21416
22195
|
}),
|
|
22196
|
+
/**
|
|
22197
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=patch&version=v1 click to debug }
|
|
22198
|
+
*
|
|
22199
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=company&version=v1 document }
|
|
22200
|
+
*
|
|
22201
|
+
* 更新公司数据
|
|
22202
|
+
*/
|
|
22203
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22204
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22205
|
+
return this.httpInstance
|
|
22206
|
+
.request({
|
|
22207
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
|
|
22208
|
+
method: "PATCH",
|
|
22209
|
+
data,
|
|
22210
|
+
params,
|
|
22211
|
+
headers,
|
|
22212
|
+
})
|
|
22213
|
+
.catch((e) => {
|
|
22214
|
+
this.logger.error(formatErrors(e));
|
|
22215
|
+
throw e;
|
|
22216
|
+
});
|
|
22217
|
+
}),
|
|
21417
22218
|
},
|
|
21418
22219
|
/**
|
|
21419
22220
|
* compensation_standard
|
|
@@ -23678,36 +24479,620 @@ class Client$H extends Client$I {
|
|
|
23678
24479
|
},
|
|
23679
24480
|
v2: {
|
|
23680
24481
|
/**
|
|
23681
|
-
*
|
|
24482
|
+
* basic_info.bank
|
|
23682
24483
|
*/
|
|
23683
|
-
|
|
23684
|
-
|
|
23685
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=bp&apiName=get_by_department&version=v2 click to debug }
|
|
23686
|
-
*
|
|
23687
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_department&project=corehr&resource=bp&version=v2 document }
|
|
23688
|
-
*/
|
|
23689
|
-
getByDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23690
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23691
|
-
return this.httpInstance
|
|
23692
|
-
.request({
|
|
23693
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`, path),
|
|
23694
|
-
method: "POST",
|
|
23695
|
-
data,
|
|
23696
|
-
params,
|
|
23697
|
-
headers,
|
|
23698
|
-
})
|
|
23699
|
-
.catch((e) => {
|
|
23700
|
-
this.logger.error(formatErrors(e));
|
|
23701
|
-
throw e;
|
|
23702
|
-
});
|
|
23703
|
-
}),
|
|
23704
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24484
|
+
basicInfoBank: {
|
|
24485
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23705
24486
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23706
24487
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
23707
24488
|
const res = yield this.httpInstance
|
|
23708
24489
|
.request({
|
|
23709
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
23710
|
-
method: "
|
|
24490
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
24491
|
+
method: "POST",
|
|
24492
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24493
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24494
|
+
})
|
|
24495
|
+
.catch((e) => {
|
|
24496
|
+
this.logger.error(formatErrors(e));
|
|
24497
|
+
});
|
|
24498
|
+
return res;
|
|
24499
|
+
});
|
|
24500
|
+
const Iterable = {
|
|
24501
|
+
[Symbol.asyncIterator]() {
|
|
24502
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24503
|
+
let hasMore = true;
|
|
24504
|
+
let pageToken;
|
|
24505
|
+
while (hasMore) {
|
|
24506
|
+
try {
|
|
24507
|
+
const res = yield __await(sendRequest({
|
|
24508
|
+
headers,
|
|
24509
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24510
|
+
data,
|
|
24511
|
+
}));
|
|
24512
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24513
|
+
// @ts-ignore
|
|
24514
|
+
has_more,
|
|
24515
|
+
// @ts-ignore
|
|
24516
|
+
page_token,
|
|
24517
|
+
// @ts-ignore
|
|
24518
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24519
|
+
yield yield __await(rest);
|
|
24520
|
+
hasMore = Boolean(has_more);
|
|
24521
|
+
pageToken = page_token || next_page_token;
|
|
24522
|
+
}
|
|
24523
|
+
catch (e) {
|
|
24524
|
+
yield yield __await(null);
|
|
24525
|
+
break;
|
|
24526
|
+
}
|
|
24527
|
+
}
|
|
24528
|
+
});
|
|
24529
|
+
},
|
|
24530
|
+
};
|
|
24531
|
+
return Iterable;
|
|
24532
|
+
}),
|
|
24533
|
+
/**
|
|
24534
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
|
|
24535
|
+
*
|
|
24536
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
|
|
24537
|
+
*/
|
|
24538
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24539
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24540
|
+
return this.httpInstance
|
|
24541
|
+
.request({
|
|
24542
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
24543
|
+
method: "POST",
|
|
24544
|
+
data,
|
|
24545
|
+
params,
|
|
24546
|
+
headers,
|
|
24547
|
+
})
|
|
24548
|
+
.catch((e) => {
|
|
24549
|
+
this.logger.error(formatErrors(e));
|
|
24550
|
+
throw e;
|
|
24551
|
+
});
|
|
24552
|
+
}),
|
|
24553
|
+
},
|
|
24554
|
+
/**
|
|
24555
|
+
* basic_info.bank_branch
|
|
24556
|
+
*/
|
|
24557
|
+
basicInfoBankBranch: {
|
|
24558
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24559
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24560
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24561
|
+
const res = yield this.httpInstance
|
|
24562
|
+
.request({
|
|
24563
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
24564
|
+
method: "POST",
|
|
24565
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24566
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24567
|
+
})
|
|
24568
|
+
.catch((e) => {
|
|
24569
|
+
this.logger.error(formatErrors(e));
|
|
24570
|
+
});
|
|
24571
|
+
return res;
|
|
24572
|
+
});
|
|
24573
|
+
const Iterable = {
|
|
24574
|
+
[Symbol.asyncIterator]() {
|
|
24575
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24576
|
+
let hasMore = true;
|
|
24577
|
+
let pageToken;
|
|
24578
|
+
while (hasMore) {
|
|
24579
|
+
try {
|
|
24580
|
+
const res = yield __await(sendRequest({
|
|
24581
|
+
headers,
|
|
24582
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24583
|
+
data,
|
|
24584
|
+
}));
|
|
24585
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24586
|
+
// @ts-ignore
|
|
24587
|
+
has_more,
|
|
24588
|
+
// @ts-ignore
|
|
24589
|
+
page_token,
|
|
24590
|
+
// @ts-ignore
|
|
24591
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24592
|
+
yield yield __await(rest);
|
|
24593
|
+
hasMore = Boolean(has_more);
|
|
24594
|
+
pageToken = page_token || next_page_token;
|
|
24595
|
+
}
|
|
24596
|
+
catch (e) {
|
|
24597
|
+
yield yield __await(null);
|
|
24598
|
+
break;
|
|
24599
|
+
}
|
|
24600
|
+
}
|
|
24601
|
+
});
|
|
24602
|
+
},
|
|
24603
|
+
};
|
|
24604
|
+
return Iterable;
|
|
24605
|
+
}),
|
|
24606
|
+
/**
|
|
24607
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
|
|
24608
|
+
*
|
|
24609
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
|
|
24610
|
+
*/
|
|
24611
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24612
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24613
|
+
return this.httpInstance
|
|
24614
|
+
.request({
|
|
24615
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
24616
|
+
method: "POST",
|
|
24617
|
+
data,
|
|
24618
|
+
params,
|
|
24619
|
+
headers,
|
|
24620
|
+
})
|
|
24621
|
+
.catch((e) => {
|
|
24622
|
+
this.logger.error(formatErrors(e));
|
|
24623
|
+
throw e;
|
|
24624
|
+
});
|
|
24625
|
+
}),
|
|
24626
|
+
},
|
|
24627
|
+
/**
|
|
24628
|
+
* basic_info.city
|
|
24629
|
+
*/
|
|
24630
|
+
basicInfoCity: {
|
|
24631
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24632
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24633
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24634
|
+
const res = yield this.httpInstance
|
|
24635
|
+
.request({
|
|
24636
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
24637
|
+
method: "POST",
|
|
24638
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24639
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24640
|
+
})
|
|
24641
|
+
.catch((e) => {
|
|
24642
|
+
this.logger.error(formatErrors(e));
|
|
24643
|
+
});
|
|
24644
|
+
return res;
|
|
24645
|
+
});
|
|
24646
|
+
const Iterable = {
|
|
24647
|
+
[Symbol.asyncIterator]() {
|
|
24648
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24649
|
+
let hasMore = true;
|
|
24650
|
+
let pageToken;
|
|
24651
|
+
while (hasMore) {
|
|
24652
|
+
try {
|
|
24653
|
+
const res = yield __await(sendRequest({
|
|
24654
|
+
headers,
|
|
24655
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24656
|
+
data,
|
|
24657
|
+
}));
|
|
24658
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24659
|
+
// @ts-ignore
|
|
24660
|
+
has_more,
|
|
24661
|
+
// @ts-ignore
|
|
24662
|
+
page_token,
|
|
24663
|
+
// @ts-ignore
|
|
24664
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24665
|
+
yield yield __await(rest);
|
|
24666
|
+
hasMore = Boolean(has_more);
|
|
24667
|
+
pageToken = page_token || next_page_token;
|
|
24668
|
+
}
|
|
24669
|
+
catch (e) {
|
|
24670
|
+
yield yield __await(null);
|
|
24671
|
+
break;
|
|
24672
|
+
}
|
|
24673
|
+
}
|
|
24674
|
+
});
|
|
24675
|
+
},
|
|
24676
|
+
};
|
|
24677
|
+
return Iterable;
|
|
24678
|
+
}),
|
|
24679
|
+
/**
|
|
24680
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
|
|
24681
|
+
*
|
|
24682
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
|
|
24683
|
+
*/
|
|
24684
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24685
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24686
|
+
return this.httpInstance
|
|
24687
|
+
.request({
|
|
24688
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
24689
|
+
method: "POST",
|
|
24690
|
+
data,
|
|
24691
|
+
params,
|
|
24692
|
+
headers,
|
|
24693
|
+
})
|
|
24694
|
+
.catch((e) => {
|
|
24695
|
+
this.logger.error(formatErrors(e));
|
|
24696
|
+
throw e;
|
|
24697
|
+
});
|
|
24698
|
+
}),
|
|
24699
|
+
},
|
|
24700
|
+
/**
|
|
24701
|
+
* basic_info.country_region
|
|
24702
|
+
*/
|
|
24703
|
+
basicInfoCountryRegion: {
|
|
24704
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24705
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24706
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24707
|
+
const res = yield this.httpInstance
|
|
24708
|
+
.request({
|
|
24709
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
24710
|
+
method: "POST",
|
|
24711
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24712
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24713
|
+
})
|
|
24714
|
+
.catch((e) => {
|
|
24715
|
+
this.logger.error(formatErrors(e));
|
|
24716
|
+
});
|
|
24717
|
+
return res;
|
|
24718
|
+
});
|
|
24719
|
+
const Iterable = {
|
|
24720
|
+
[Symbol.asyncIterator]() {
|
|
24721
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24722
|
+
let hasMore = true;
|
|
24723
|
+
let pageToken;
|
|
24724
|
+
while (hasMore) {
|
|
24725
|
+
try {
|
|
24726
|
+
const res = yield __await(sendRequest({
|
|
24727
|
+
headers,
|
|
24728
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24729
|
+
data,
|
|
24730
|
+
}));
|
|
24731
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24732
|
+
// @ts-ignore
|
|
24733
|
+
has_more,
|
|
24734
|
+
// @ts-ignore
|
|
24735
|
+
page_token,
|
|
24736
|
+
// @ts-ignore
|
|
24737
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24738
|
+
yield yield __await(rest);
|
|
24739
|
+
hasMore = Boolean(has_more);
|
|
24740
|
+
pageToken = page_token || next_page_token;
|
|
24741
|
+
}
|
|
24742
|
+
catch (e) {
|
|
24743
|
+
yield yield __await(null);
|
|
24744
|
+
break;
|
|
24745
|
+
}
|
|
24746
|
+
}
|
|
24747
|
+
});
|
|
24748
|
+
},
|
|
24749
|
+
};
|
|
24750
|
+
return Iterable;
|
|
24751
|
+
}),
|
|
24752
|
+
/**
|
|
24753
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
|
|
24754
|
+
*
|
|
24755
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
|
|
24756
|
+
*/
|
|
24757
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24758
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24759
|
+
return this.httpInstance
|
|
24760
|
+
.request({
|
|
24761
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
24762
|
+
method: "POST",
|
|
24763
|
+
data,
|
|
24764
|
+
params,
|
|
24765
|
+
headers,
|
|
24766
|
+
})
|
|
24767
|
+
.catch((e) => {
|
|
24768
|
+
this.logger.error(formatErrors(e));
|
|
24769
|
+
throw e;
|
|
24770
|
+
});
|
|
24771
|
+
}),
|
|
24772
|
+
},
|
|
24773
|
+
/**
|
|
24774
|
+
* basic_info.country_region_subdivision
|
|
24775
|
+
*/
|
|
24776
|
+
basicInfoCountryRegionSubdivision: {
|
|
24777
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24778
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24779
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24780
|
+
const res = yield this.httpInstance
|
|
24781
|
+
.request({
|
|
24782
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
24783
|
+
method: "POST",
|
|
24784
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24785
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24786
|
+
})
|
|
24787
|
+
.catch((e) => {
|
|
24788
|
+
this.logger.error(formatErrors(e));
|
|
24789
|
+
});
|
|
24790
|
+
return res;
|
|
24791
|
+
});
|
|
24792
|
+
const Iterable = {
|
|
24793
|
+
[Symbol.asyncIterator]() {
|
|
24794
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24795
|
+
let hasMore = true;
|
|
24796
|
+
let pageToken;
|
|
24797
|
+
while (hasMore) {
|
|
24798
|
+
try {
|
|
24799
|
+
const res = yield __await(sendRequest({
|
|
24800
|
+
headers,
|
|
24801
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24802
|
+
data,
|
|
24803
|
+
}));
|
|
24804
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24805
|
+
// @ts-ignore
|
|
24806
|
+
has_more,
|
|
24807
|
+
// @ts-ignore
|
|
24808
|
+
page_token,
|
|
24809
|
+
// @ts-ignore
|
|
24810
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24811
|
+
yield yield __await(rest);
|
|
24812
|
+
hasMore = Boolean(has_more);
|
|
24813
|
+
pageToken = page_token || next_page_token;
|
|
24814
|
+
}
|
|
24815
|
+
catch (e) {
|
|
24816
|
+
yield yield __await(null);
|
|
24817
|
+
break;
|
|
24818
|
+
}
|
|
24819
|
+
}
|
|
24820
|
+
});
|
|
24821
|
+
},
|
|
24822
|
+
};
|
|
24823
|
+
return Iterable;
|
|
24824
|
+
}),
|
|
24825
|
+
/**
|
|
24826
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
|
|
24827
|
+
*
|
|
24828
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
|
|
24829
|
+
*/
|
|
24830
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24831
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24832
|
+
return this.httpInstance
|
|
24833
|
+
.request({
|
|
24834
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
24835
|
+
method: "POST",
|
|
24836
|
+
data,
|
|
24837
|
+
params,
|
|
24838
|
+
headers,
|
|
24839
|
+
})
|
|
24840
|
+
.catch((e) => {
|
|
24841
|
+
this.logger.error(formatErrors(e));
|
|
24842
|
+
throw e;
|
|
24843
|
+
});
|
|
24844
|
+
}),
|
|
24845
|
+
},
|
|
24846
|
+
/**
|
|
24847
|
+
* basic_info.currency
|
|
24848
|
+
*/
|
|
24849
|
+
basicInfoCurrency: {
|
|
24850
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24851
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24852
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24853
|
+
const res = yield this.httpInstance
|
|
24854
|
+
.request({
|
|
24855
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
24856
|
+
method: "POST",
|
|
24857
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24858
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24859
|
+
})
|
|
24860
|
+
.catch((e) => {
|
|
24861
|
+
this.logger.error(formatErrors(e));
|
|
24862
|
+
});
|
|
24863
|
+
return res;
|
|
24864
|
+
});
|
|
24865
|
+
const Iterable = {
|
|
24866
|
+
[Symbol.asyncIterator]() {
|
|
24867
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24868
|
+
let hasMore = true;
|
|
24869
|
+
let pageToken;
|
|
24870
|
+
while (hasMore) {
|
|
24871
|
+
try {
|
|
24872
|
+
const res = yield __await(sendRequest({
|
|
24873
|
+
headers,
|
|
24874
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24875
|
+
data,
|
|
24876
|
+
}));
|
|
24877
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24878
|
+
// @ts-ignore
|
|
24879
|
+
has_more,
|
|
24880
|
+
// @ts-ignore
|
|
24881
|
+
page_token,
|
|
24882
|
+
// @ts-ignore
|
|
24883
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24884
|
+
yield yield __await(rest);
|
|
24885
|
+
hasMore = Boolean(has_more);
|
|
24886
|
+
pageToken = page_token || next_page_token;
|
|
24887
|
+
}
|
|
24888
|
+
catch (e) {
|
|
24889
|
+
yield yield __await(null);
|
|
24890
|
+
break;
|
|
24891
|
+
}
|
|
24892
|
+
}
|
|
24893
|
+
});
|
|
24894
|
+
},
|
|
24895
|
+
};
|
|
24896
|
+
return Iterable;
|
|
24897
|
+
}),
|
|
24898
|
+
/**
|
|
24899
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
|
|
24900
|
+
*
|
|
24901
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
|
|
24902
|
+
*/
|
|
24903
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24904
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24905
|
+
return this.httpInstance
|
|
24906
|
+
.request({
|
|
24907
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
24908
|
+
method: "POST",
|
|
24909
|
+
data,
|
|
24910
|
+
params,
|
|
24911
|
+
headers,
|
|
24912
|
+
})
|
|
24913
|
+
.catch((e) => {
|
|
24914
|
+
this.logger.error(formatErrors(e));
|
|
24915
|
+
throw e;
|
|
24916
|
+
});
|
|
24917
|
+
}),
|
|
24918
|
+
},
|
|
24919
|
+
/**
|
|
24920
|
+
* basic_info.district
|
|
24921
|
+
*/
|
|
24922
|
+
basicInfoDistrict: {
|
|
24923
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24924
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24925
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24926
|
+
const res = yield this.httpInstance
|
|
24927
|
+
.request({
|
|
24928
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
|
|
24929
|
+
method: "POST",
|
|
24930
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24931
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24932
|
+
})
|
|
24933
|
+
.catch((e) => {
|
|
24934
|
+
this.logger.error(formatErrors(e));
|
|
24935
|
+
});
|
|
24936
|
+
return res;
|
|
24937
|
+
});
|
|
24938
|
+
const Iterable = {
|
|
24939
|
+
[Symbol.asyncIterator]() {
|
|
24940
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
24941
|
+
let hasMore = true;
|
|
24942
|
+
let pageToken;
|
|
24943
|
+
while (hasMore) {
|
|
24944
|
+
try {
|
|
24945
|
+
const res = yield __await(sendRequest({
|
|
24946
|
+
headers,
|
|
24947
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
24948
|
+
data,
|
|
24949
|
+
}));
|
|
24950
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
24951
|
+
// @ts-ignore
|
|
24952
|
+
has_more,
|
|
24953
|
+
// @ts-ignore
|
|
24954
|
+
page_token,
|
|
24955
|
+
// @ts-ignore
|
|
24956
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
24957
|
+
yield yield __await(rest);
|
|
24958
|
+
hasMore = Boolean(has_more);
|
|
24959
|
+
pageToken = page_token || next_page_token;
|
|
24960
|
+
}
|
|
24961
|
+
catch (e) {
|
|
24962
|
+
yield yield __await(null);
|
|
24963
|
+
break;
|
|
24964
|
+
}
|
|
24965
|
+
}
|
|
24966
|
+
});
|
|
24967
|
+
},
|
|
24968
|
+
};
|
|
24969
|
+
return Iterable;
|
|
24970
|
+
}),
|
|
24971
|
+
/**
|
|
24972
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.district&apiName=search&version=v2 click to debug }
|
|
24973
|
+
*
|
|
24974
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.district&version=v2 document }
|
|
24975
|
+
*/
|
|
24976
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24978
|
+
return this.httpInstance
|
|
24979
|
+
.request({
|
|
24980
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
|
|
24981
|
+
method: "POST",
|
|
24982
|
+
data,
|
|
24983
|
+
params,
|
|
24984
|
+
headers,
|
|
24985
|
+
})
|
|
24986
|
+
.catch((e) => {
|
|
24987
|
+
this.logger.error(formatErrors(e));
|
|
24988
|
+
throw e;
|
|
24989
|
+
});
|
|
24990
|
+
}),
|
|
24991
|
+
},
|
|
24992
|
+
/**
|
|
24993
|
+
* basic_info.nationality
|
|
24994
|
+
*/
|
|
24995
|
+
basicInfoNationality: {
|
|
24996
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24997
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24998
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24999
|
+
const res = yield this.httpInstance
|
|
25000
|
+
.request({
|
|
25001
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`, path),
|
|
25002
|
+
method: "POST",
|
|
25003
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
25004
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
25005
|
+
})
|
|
25006
|
+
.catch((e) => {
|
|
25007
|
+
this.logger.error(formatErrors(e));
|
|
25008
|
+
});
|
|
25009
|
+
return res;
|
|
25010
|
+
});
|
|
25011
|
+
const Iterable = {
|
|
25012
|
+
[Symbol.asyncIterator]() {
|
|
25013
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
25014
|
+
let hasMore = true;
|
|
25015
|
+
let pageToken;
|
|
25016
|
+
while (hasMore) {
|
|
25017
|
+
try {
|
|
25018
|
+
const res = yield __await(sendRequest({
|
|
25019
|
+
headers,
|
|
25020
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
25021
|
+
data,
|
|
25022
|
+
}));
|
|
25023
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
25024
|
+
// @ts-ignore
|
|
25025
|
+
has_more,
|
|
25026
|
+
// @ts-ignore
|
|
25027
|
+
page_token,
|
|
25028
|
+
// @ts-ignore
|
|
25029
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
25030
|
+
yield yield __await(rest);
|
|
25031
|
+
hasMore = Boolean(has_more);
|
|
25032
|
+
pageToken = page_token || next_page_token;
|
|
25033
|
+
}
|
|
25034
|
+
catch (e) {
|
|
25035
|
+
yield yield __await(null);
|
|
25036
|
+
break;
|
|
25037
|
+
}
|
|
25038
|
+
}
|
|
25039
|
+
});
|
|
25040
|
+
},
|
|
25041
|
+
};
|
|
25042
|
+
return Iterable;
|
|
25043
|
+
}),
|
|
25044
|
+
/**
|
|
25045
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.nationality&apiName=search&version=v2 click to debug }
|
|
25046
|
+
*
|
|
25047
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.nationality&version=v2 document }
|
|
25048
|
+
*/
|
|
25049
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25050
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25051
|
+
return this.httpInstance
|
|
25052
|
+
.request({
|
|
25053
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`, path),
|
|
25054
|
+
method: "POST",
|
|
25055
|
+
data,
|
|
25056
|
+
params,
|
|
25057
|
+
headers,
|
|
25058
|
+
})
|
|
25059
|
+
.catch((e) => {
|
|
25060
|
+
this.logger.error(formatErrors(e));
|
|
25061
|
+
throw e;
|
|
25062
|
+
});
|
|
25063
|
+
}),
|
|
25064
|
+
},
|
|
25065
|
+
/**
|
|
25066
|
+
* bp
|
|
25067
|
+
*/
|
|
25068
|
+
bp: {
|
|
25069
|
+
/**
|
|
25070
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=bp&apiName=get_by_department&version=v2 click to debug }
|
|
25071
|
+
*
|
|
25072
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_department&project=corehr&resource=bp&version=v2 document }
|
|
25073
|
+
*/
|
|
25074
|
+
getByDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25075
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25076
|
+
return this.httpInstance
|
|
25077
|
+
.request({
|
|
25078
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`, path),
|
|
25079
|
+
method: "POST",
|
|
25080
|
+
data,
|
|
25081
|
+
params,
|
|
25082
|
+
headers,
|
|
25083
|
+
})
|
|
25084
|
+
.catch((e) => {
|
|
25085
|
+
this.logger.error(formatErrors(e));
|
|
25086
|
+
throw e;
|
|
25087
|
+
});
|
|
25088
|
+
}),
|
|
25089
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25090
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25091
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
25092
|
+
const res = yield this.httpInstance
|
|
25093
|
+
.request({
|
|
25094
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/bps`, path),
|
|
25095
|
+
method: "GET",
|
|
23711
25096
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
23712
25097
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
23713
25098
|
})
|
|
@@ -23874,10 +25259,192 @@ class Client$H extends Client$I {
|
|
|
23874
25259
|
});
|
|
23875
25260
|
}),
|
|
23876
25261
|
},
|
|
25262
|
+
/**
|
|
25263
|
+
* cost_center
|
|
25264
|
+
*/
|
|
25265
|
+
costCenter: {
|
|
25266
|
+
/**
|
|
25267
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=create&version=v2 click to debug }
|
|
25268
|
+
*
|
|
25269
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=cost_center&version=v2 document }
|
|
25270
|
+
*
|
|
25271
|
+
* 创建成本中心
|
|
25272
|
+
*/
|
|
25273
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25274
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25275
|
+
return this.httpInstance
|
|
25276
|
+
.request({
|
|
25277
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers`, path),
|
|
25278
|
+
method: "POST",
|
|
25279
|
+
data,
|
|
25280
|
+
params,
|
|
25281
|
+
headers,
|
|
25282
|
+
})
|
|
25283
|
+
.catch((e) => {
|
|
25284
|
+
this.logger.error(formatErrors(e));
|
|
25285
|
+
throw e;
|
|
25286
|
+
});
|
|
25287
|
+
}),
|
|
25288
|
+
/**
|
|
25289
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=delete&version=v2 click to debug }
|
|
25290
|
+
*
|
|
25291
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=cost_center&version=v2 document }
|
|
25292
|
+
*/
|
|
25293
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25294
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25295
|
+
return this.httpInstance
|
|
25296
|
+
.request({
|
|
25297
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`, path),
|
|
25298
|
+
method: "DELETE",
|
|
25299
|
+
data,
|
|
25300
|
+
params,
|
|
25301
|
+
headers,
|
|
25302
|
+
})
|
|
25303
|
+
.catch((e) => {
|
|
25304
|
+
this.logger.error(formatErrors(e));
|
|
25305
|
+
throw e;
|
|
25306
|
+
});
|
|
25307
|
+
}),
|
|
25308
|
+
/**
|
|
25309
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=patch&version=v2 click to debug }
|
|
25310
|
+
*
|
|
25311
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=cost_center&version=v2 document }
|
|
25312
|
+
*
|
|
25313
|
+
* 创建成本中心版本
|
|
25314
|
+
*/
|
|
25315
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25316
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25317
|
+
return this.httpInstance
|
|
25318
|
+
.request({
|
|
25319
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`, path),
|
|
25320
|
+
method: "PATCH",
|
|
25321
|
+
data,
|
|
25322
|
+
params,
|
|
25323
|
+
headers,
|
|
25324
|
+
})
|
|
25325
|
+
.catch((e) => {
|
|
25326
|
+
this.logger.error(formatErrors(e));
|
|
25327
|
+
throw e;
|
|
25328
|
+
});
|
|
25329
|
+
}),
|
|
25330
|
+
/**
|
|
25331
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
|
|
25332
|
+
*
|
|
25333
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=cost_center&version=v2 document }
|
|
25334
|
+
*
|
|
25335
|
+
* 查询成本中心信息
|
|
25336
|
+
*/
|
|
25337
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25338
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25339
|
+
return this.httpInstance
|
|
25340
|
+
.request({
|
|
25341
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/search`, path),
|
|
25342
|
+
method: "POST",
|
|
25343
|
+
data,
|
|
25344
|
+
params,
|
|
25345
|
+
headers,
|
|
25346
|
+
})
|
|
25347
|
+
.catch((e) => {
|
|
25348
|
+
this.logger.error(formatErrors(e));
|
|
25349
|
+
throw e;
|
|
25350
|
+
});
|
|
25351
|
+
}),
|
|
25352
|
+
},
|
|
25353
|
+
/**
|
|
25354
|
+
* cost_center.version
|
|
25355
|
+
*/
|
|
25356
|
+
costCenterVersion: {
|
|
25357
|
+
/**
|
|
25358
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=create&version=v2 click to debug }
|
|
25359
|
+
*
|
|
25360
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=cost_center.version&version=v2 document }
|
|
25361
|
+
*
|
|
25362
|
+
* 创建成本中心版本
|
|
25363
|
+
*/
|
|
25364
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25365
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25366
|
+
return this.httpInstance
|
|
25367
|
+
.request({
|
|
25368
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions`, path),
|
|
25369
|
+
method: "POST",
|
|
25370
|
+
data,
|
|
25371
|
+
params,
|
|
25372
|
+
headers,
|
|
25373
|
+
})
|
|
25374
|
+
.catch((e) => {
|
|
25375
|
+
this.logger.error(formatErrors(e));
|
|
25376
|
+
throw e;
|
|
25377
|
+
});
|
|
25378
|
+
}),
|
|
25379
|
+
/**
|
|
25380
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=delete&version=v2 click to debug }
|
|
25381
|
+
*
|
|
25382
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=cost_center.version&version=v2 document }
|
|
25383
|
+
*
|
|
25384
|
+
* 撤销成本中心版本
|
|
25385
|
+
*/
|
|
25386
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25387
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25388
|
+
return this.httpInstance
|
|
25389
|
+
.request({
|
|
25390
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`, path),
|
|
25391
|
+
method: "DELETE",
|
|
25392
|
+
data,
|
|
25393
|
+
params,
|
|
25394
|
+
headers,
|
|
25395
|
+
})
|
|
25396
|
+
.catch((e) => {
|
|
25397
|
+
this.logger.error(formatErrors(e));
|
|
25398
|
+
throw e;
|
|
25399
|
+
});
|
|
25400
|
+
}),
|
|
25401
|
+
/**
|
|
25402
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center.version&apiName=patch&version=v2 click to debug }
|
|
25403
|
+
*
|
|
25404
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=cost_center.version&version=v2 document }
|
|
25405
|
+
*
|
|
25406
|
+
* 创建成本中心版本
|
|
25407
|
+
*/
|
|
25408
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25409
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25410
|
+
return this.httpInstance
|
|
25411
|
+
.request({
|
|
25412
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`, path),
|
|
25413
|
+
method: "PATCH",
|
|
25414
|
+
data,
|
|
25415
|
+
params,
|
|
25416
|
+
headers,
|
|
25417
|
+
})
|
|
25418
|
+
.catch((e) => {
|
|
25419
|
+
this.logger.error(formatErrors(e));
|
|
25420
|
+
throw e;
|
|
25421
|
+
});
|
|
25422
|
+
}),
|
|
25423
|
+
},
|
|
23877
25424
|
/**
|
|
23878
25425
|
* department
|
|
23879
25426
|
*/
|
|
23880
25427
|
department: {
|
|
25428
|
+
/**
|
|
25429
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=batch_get&version=v2 click to debug }
|
|
25430
|
+
*
|
|
25431
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=department&version=v2 document }
|
|
25432
|
+
*/
|
|
25433
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25434
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25435
|
+
return this.httpInstance
|
|
25436
|
+
.request({
|
|
25437
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/batch_get`, path),
|
|
25438
|
+
method: "POST",
|
|
25439
|
+
data,
|
|
25440
|
+
params,
|
|
25441
|
+
headers,
|
|
25442
|
+
})
|
|
25443
|
+
.catch((e) => {
|
|
25444
|
+
this.logger.error(formatErrors(e));
|
|
25445
|
+
throw e;
|
|
25446
|
+
});
|
|
25447
|
+
}),
|
|
23881
25448
|
/**
|
|
23882
25449
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=parents&version=v2 click to debug }
|
|
23883
25450
|
*
|
|
@@ -24238,199 +25805,332 @@ class Client$H extends Client$I {
|
|
|
24238
25805
|
return Iterable;
|
|
24239
25806
|
}),
|
|
24240
25807
|
/**
|
|
24241
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
|
|
24242
|
-
*
|
|
24243
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
|
|
25808
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
|
|
25809
|
+
*
|
|
25810
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
|
|
25811
|
+
*
|
|
25812
|
+
* 获取员工异动列表
|
|
25813
|
+
*/
|
|
25814
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25815
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25816
|
+
return this.httpInstance
|
|
25817
|
+
.request({
|
|
25818
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/search`, path),
|
|
25819
|
+
method: "POST",
|
|
25820
|
+
data,
|
|
25821
|
+
params,
|
|
25822
|
+
headers,
|
|
25823
|
+
})
|
|
25824
|
+
.catch((e) => {
|
|
25825
|
+
this.logger.error(formatErrors(e));
|
|
25826
|
+
throw e;
|
|
25827
|
+
});
|
|
25828
|
+
}),
|
|
25829
|
+
},
|
|
25830
|
+
/**
|
|
25831
|
+
* job_family
|
|
25832
|
+
*/
|
|
25833
|
+
jobFamily: {
|
|
25834
|
+
/**
|
|
25835
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
|
|
25836
|
+
*
|
|
25837
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
|
|
25838
|
+
*
|
|
25839
|
+
* 通过序列 ID 批量获取序列信息
|
|
25840
|
+
*/
|
|
25841
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25842
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25843
|
+
return this.httpInstance
|
|
25844
|
+
.request({
|
|
25845
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
|
|
25846
|
+
method: "POST",
|
|
25847
|
+
data,
|
|
25848
|
+
params,
|
|
25849
|
+
headers,
|
|
25850
|
+
})
|
|
25851
|
+
.catch((e) => {
|
|
25852
|
+
this.logger.error(formatErrors(e));
|
|
25853
|
+
throw e;
|
|
25854
|
+
});
|
|
25855
|
+
}),
|
|
25856
|
+
},
|
|
25857
|
+
/**
|
|
25858
|
+
* job_level
|
|
25859
|
+
*/
|
|
25860
|
+
jobLevel: {
|
|
25861
|
+
/**
|
|
25862
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
|
|
25863
|
+
*
|
|
25864
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
|
|
25865
|
+
*
|
|
25866
|
+
* 通过职级 ID 批量获取职级信息
|
|
25867
|
+
*/
|
|
25868
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25869
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25870
|
+
return this.httpInstance
|
|
25871
|
+
.request({
|
|
25872
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
|
|
25873
|
+
method: "POST",
|
|
25874
|
+
data,
|
|
25875
|
+
params,
|
|
25876
|
+
headers,
|
|
25877
|
+
})
|
|
25878
|
+
.catch((e) => {
|
|
25879
|
+
this.logger.error(formatErrors(e));
|
|
25880
|
+
throw e;
|
|
25881
|
+
});
|
|
25882
|
+
}),
|
|
25883
|
+
},
|
|
25884
|
+
/**
|
|
25885
|
+
* location
|
|
25886
|
+
*/
|
|
25887
|
+
location: {
|
|
25888
|
+
/**
|
|
25889
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
|
|
25890
|
+
*
|
|
25891
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
|
|
25892
|
+
*
|
|
25893
|
+
* 通过地点 ID 批量获取地点信息
|
|
25894
|
+
*/
|
|
25895
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25896
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25897
|
+
return this.httpInstance
|
|
25898
|
+
.request({
|
|
25899
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
|
|
25900
|
+
method: "POST",
|
|
25901
|
+
data,
|
|
25902
|
+
params,
|
|
25903
|
+
headers,
|
|
25904
|
+
})
|
|
25905
|
+
.catch((e) => {
|
|
25906
|
+
this.logger.error(formatErrors(e));
|
|
25907
|
+
throw e;
|
|
25908
|
+
});
|
|
25909
|
+
}),
|
|
25910
|
+
},
|
|
25911
|
+
/**
|
|
25912
|
+
* person
|
|
25913
|
+
*/
|
|
25914
|
+
person: {
|
|
25915
|
+
/**
|
|
25916
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
|
|
25917
|
+
*
|
|
25918
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
|
|
25919
|
+
*
|
|
25920
|
+
* 创建个人信息数据
|
|
25921
|
+
*/
|
|
25922
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25923
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25924
|
+
return this.httpInstance
|
|
25925
|
+
.request({
|
|
25926
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
|
|
25927
|
+
method: "POST",
|
|
25928
|
+
data,
|
|
25929
|
+
params,
|
|
25930
|
+
headers,
|
|
25931
|
+
})
|
|
25932
|
+
.catch((e) => {
|
|
25933
|
+
this.logger.error(formatErrors(e));
|
|
25934
|
+
throw e;
|
|
25935
|
+
});
|
|
25936
|
+
}),
|
|
25937
|
+
/**
|
|
25938
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
|
|
25939
|
+
*
|
|
25940
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
|
|
25941
|
+
*/
|
|
25942
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25943
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25944
|
+
return this.httpInstance
|
|
25945
|
+
.request({
|
|
25946
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons/:person_id`, path),
|
|
25947
|
+
method: "PATCH",
|
|
25948
|
+
data,
|
|
25949
|
+
params,
|
|
25950
|
+
headers,
|
|
25951
|
+
})
|
|
25952
|
+
.catch((e) => {
|
|
25953
|
+
this.logger.error(formatErrors(e));
|
|
25954
|
+
throw e;
|
|
25955
|
+
});
|
|
25956
|
+
}),
|
|
25957
|
+
},
|
|
25958
|
+
/**
|
|
25959
|
+
* 待入职
|
|
25960
|
+
*/
|
|
25961
|
+
preHire: {
|
|
25962
|
+
/**
|
|
25963
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
|
|
25964
|
+
*
|
|
25965
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
|
|
25966
|
+
*
|
|
25967
|
+
* 创建待入职人员
|
|
25968
|
+
*
|
|
25969
|
+
* 创建待入职人员
|
|
25970
|
+
*/
|
|
25971
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25972
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25973
|
+
return this.httpInstance
|
|
25974
|
+
.request({
|
|
25975
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
|
|
25976
|
+
method: "POST",
|
|
25977
|
+
data,
|
|
25978
|
+
params,
|
|
25979
|
+
headers,
|
|
25980
|
+
})
|
|
25981
|
+
.catch((e) => {
|
|
25982
|
+
this.logger.error(formatErrors(e));
|
|
25983
|
+
throw e;
|
|
25984
|
+
});
|
|
25985
|
+
}),
|
|
25986
|
+
},
|
|
25987
|
+
/**
|
|
25988
|
+
* probation.assessment
|
|
25989
|
+
*/
|
|
25990
|
+
probationAssessment: {
|
|
25991
|
+
/**
|
|
25992
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
|
|
25993
|
+
*
|
|
25994
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
|
|
25995
|
+
*/
|
|
25996
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25997
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25998
|
+
return this.httpInstance
|
|
25999
|
+
.request({
|
|
26000
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
|
|
26001
|
+
method: "POST",
|
|
26002
|
+
data,
|
|
26003
|
+
params,
|
|
26004
|
+
headers,
|
|
26005
|
+
})
|
|
26006
|
+
.catch((e) => {
|
|
26007
|
+
this.logger.error(formatErrors(e));
|
|
26008
|
+
throw e;
|
|
26009
|
+
});
|
|
26010
|
+
}),
|
|
26011
|
+
/**
|
|
26012
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
|
|
26013
|
+
*
|
|
26014
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
|
|
26015
|
+
*/
|
|
26016
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26017
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26018
|
+
return this.httpInstance
|
|
26019
|
+
.request({
|
|
26020
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
|
|
26021
|
+
method: "DELETE",
|
|
26022
|
+
data,
|
|
26023
|
+
params,
|
|
26024
|
+
headers,
|
|
26025
|
+
})
|
|
26026
|
+
.catch((e) => {
|
|
26027
|
+
this.logger.error(formatErrors(e));
|
|
26028
|
+
throw e;
|
|
26029
|
+
});
|
|
26030
|
+
}),
|
|
26031
|
+
/**
|
|
26032
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=patch&version=v2 click to debug }
|
|
26033
|
+
*
|
|
26034
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
|
|
26035
|
+
*/
|
|
26036
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26037
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26038
|
+
return this.httpInstance
|
|
26039
|
+
.request({
|
|
26040
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
|
|
26041
|
+
method: "PATCH",
|
|
26042
|
+
data,
|
|
26043
|
+
params,
|
|
26044
|
+
headers,
|
|
26045
|
+
})
|
|
26046
|
+
.catch((e) => {
|
|
26047
|
+
this.logger.error(formatErrors(e));
|
|
26048
|
+
throw e;
|
|
26049
|
+
});
|
|
26050
|
+
}),
|
|
26051
|
+
},
|
|
26052
|
+
/**
|
|
26053
|
+
* probation
|
|
26054
|
+
*/
|
|
26055
|
+
probation: {
|
|
26056
|
+
/**
|
|
26057
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
|
|
26058
|
+
*
|
|
26059
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
|
|
26060
|
+
*/
|
|
26061
|
+
enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26062
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26063
|
+
return this.httpInstance
|
|
26064
|
+
.request({
|
|
26065
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
|
|
26066
|
+
method: "POST",
|
|
26067
|
+
data,
|
|
26068
|
+
params,
|
|
26069
|
+
headers,
|
|
26070
|
+
})
|
|
26071
|
+
.catch((e) => {
|
|
26072
|
+
this.logger.error(formatErrors(e));
|
|
26073
|
+
throw e;
|
|
26074
|
+
});
|
|
26075
|
+
}),
|
|
26076
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26077
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26078
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
26079
|
+
const res = yield this.httpInstance
|
|
26080
|
+
.request({
|
|
26081
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
|
|
26082
|
+
method: "POST",
|
|
26083
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
26084
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
26085
|
+
})
|
|
26086
|
+
.catch((e) => {
|
|
26087
|
+
this.logger.error(formatErrors(e));
|
|
26088
|
+
});
|
|
26089
|
+
return res;
|
|
26090
|
+
});
|
|
26091
|
+
const Iterable = {
|
|
26092
|
+
[Symbol.asyncIterator]() {
|
|
26093
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
26094
|
+
let hasMore = true;
|
|
26095
|
+
let pageToken;
|
|
26096
|
+
while (hasMore) {
|
|
26097
|
+
try {
|
|
26098
|
+
const res = yield __await(sendRequest({
|
|
26099
|
+
headers,
|
|
26100
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
26101
|
+
data,
|
|
26102
|
+
}));
|
|
26103
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
26104
|
+
// @ts-ignore
|
|
26105
|
+
has_more,
|
|
26106
|
+
// @ts-ignore
|
|
26107
|
+
page_token,
|
|
26108
|
+
// @ts-ignore
|
|
26109
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
26110
|
+
yield yield __await(rest);
|
|
26111
|
+
hasMore = Boolean(has_more);
|
|
26112
|
+
pageToken = page_token || next_page_token;
|
|
26113
|
+
}
|
|
26114
|
+
catch (e) {
|
|
26115
|
+
yield yield __await(null);
|
|
26116
|
+
break;
|
|
26117
|
+
}
|
|
26118
|
+
}
|
|
26119
|
+
});
|
|
26120
|
+
},
|
|
26121
|
+
};
|
|
26122
|
+
return Iterable;
|
|
26123
|
+
}),
|
|
26124
|
+
/**
|
|
26125
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
|
|
24244
26126
|
*
|
|
24245
|
-
*
|
|
26127
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
|
|
24246
26128
|
*/
|
|
24247
26129
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24248
26130
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24249
26131
|
return this.httpInstance
|
|
24250
26132
|
.request({
|
|
24251
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24252
|
-
method: "POST",
|
|
24253
|
-
data,
|
|
24254
|
-
params,
|
|
24255
|
-
headers,
|
|
24256
|
-
})
|
|
24257
|
-
.catch((e) => {
|
|
24258
|
-
this.logger.error(formatErrors(e));
|
|
24259
|
-
throw e;
|
|
24260
|
-
});
|
|
24261
|
-
}),
|
|
24262
|
-
},
|
|
24263
|
-
/**
|
|
24264
|
-
* job_family
|
|
24265
|
-
*/
|
|
24266
|
-
jobFamily: {
|
|
24267
|
-
/**
|
|
24268
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
|
|
24269
|
-
*
|
|
24270
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
|
|
24271
|
-
*
|
|
24272
|
-
* 通过序列 ID 批量获取序列信息
|
|
24273
|
-
*/
|
|
24274
|
-
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24275
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24276
|
-
return this.httpInstance
|
|
24277
|
-
.request({
|
|
24278
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
|
|
24279
|
-
method: "POST",
|
|
24280
|
-
data,
|
|
24281
|
-
params,
|
|
24282
|
-
headers,
|
|
24283
|
-
})
|
|
24284
|
-
.catch((e) => {
|
|
24285
|
-
this.logger.error(formatErrors(e));
|
|
24286
|
-
throw e;
|
|
24287
|
-
});
|
|
24288
|
-
}),
|
|
24289
|
-
},
|
|
24290
|
-
/**
|
|
24291
|
-
* job_level
|
|
24292
|
-
*/
|
|
24293
|
-
jobLevel: {
|
|
24294
|
-
/**
|
|
24295
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
|
|
24296
|
-
*
|
|
24297
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
|
|
24298
|
-
*
|
|
24299
|
-
* 通过职级 ID 批量获取职级信息
|
|
24300
|
-
*/
|
|
24301
|
-
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24302
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24303
|
-
return this.httpInstance
|
|
24304
|
-
.request({
|
|
24305
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
|
|
24306
|
-
method: "POST",
|
|
24307
|
-
data,
|
|
24308
|
-
params,
|
|
24309
|
-
headers,
|
|
24310
|
-
})
|
|
24311
|
-
.catch((e) => {
|
|
24312
|
-
this.logger.error(formatErrors(e));
|
|
24313
|
-
throw e;
|
|
24314
|
-
});
|
|
24315
|
-
}),
|
|
24316
|
-
},
|
|
24317
|
-
/**
|
|
24318
|
-
* location
|
|
24319
|
-
*/
|
|
24320
|
-
location: {
|
|
24321
|
-
/**
|
|
24322
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
|
|
24323
|
-
*
|
|
24324
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
|
|
24325
|
-
*
|
|
24326
|
-
* 通过地点 ID 批量获取地点信息
|
|
24327
|
-
*/
|
|
24328
|
-
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24329
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24330
|
-
return this.httpInstance
|
|
24331
|
-
.request({
|
|
24332
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
|
|
24333
|
-
method: "POST",
|
|
24334
|
-
data,
|
|
24335
|
-
params,
|
|
24336
|
-
headers,
|
|
24337
|
-
})
|
|
24338
|
-
.catch((e) => {
|
|
24339
|
-
this.logger.error(formatErrors(e));
|
|
24340
|
-
throw e;
|
|
24341
|
-
});
|
|
24342
|
-
}),
|
|
24343
|
-
},
|
|
24344
|
-
/**
|
|
24345
|
-
* person
|
|
24346
|
-
*/
|
|
24347
|
-
person: {
|
|
24348
|
-
/**
|
|
24349
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
|
|
24350
|
-
*
|
|
24351
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
|
|
24352
|
-
*
|
|
24353
|
-
* 创建个人信息数据
|
|
24354
|
-
*/
|
|
24355
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24356
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24357
|
-
return this.httpInstance
|
|
24358
|
-
.request({
|
|
24359
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
|
|
24360
|
-
method: "POST",
|
|
24361
|
-
data,
|
|
24362
|
-
params,
|
|
24363
|
-
headers,
|
|
24364
|
-
})
|
|
24365
|
-
.catch((e) => {
|
|
24366
|
-
this.logger.error(formatErrors(e));
|
|
24367
|
-
throw e;
|
|
24368
|
-
});
|
|
24369
|
-
}),
|
|
24370
|
-
/**
|
|
24371
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
|
|
24372
|
-
*
|
|
24373
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
|
|
24374
|
-
*/
|
|
24375
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24376
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24377
|
-
return this.httpInstance
|
|
24378
|
-
.request({
|
|
24379
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons/:person_id`, path),
|
|
24380
|
-
method: "PATCH",
|
|
24381
|
-
data,
|
|
24382
|
-
params,
|
|
24383
|
-
headers,
|
|
24384
|
-
})
|
|
24385
|
-
.catch((e) => {
|
|
24386
|
-
this.logger.error(formatErrors(e));
|
|
24387
|
-
throw e;
|
|
24388
|
-
});
|
|
24389
|
-
}),
|
|
24390
|
-
},
|
|
24391
|
-
/**
|
|
24392
|
-
* 待入职
|
|
24393
|
-
*/
|
|
24394
|
-
preHire: {
|
|
24395
|
-
/**
|
|
24396
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
|
|
24397
|
-
*
|
|
24398
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
|
|
24399
|
-
*
|
|
24400
|
-
* 创建待入职人员
|
|
24401
|
-
*
|
|
24402
|
-
* 创建待入职人员
|
|
24403
|
-
*/
|
|
24404
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24405
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24406
|
-
return this.httpInstance
|
|
24407
|
-
.request({
|
|
24408
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
|
|
24409
|
-
method: "POST",
|
|
24410
|
-
data,
|
|
24411
|
-
params,
|
|
24412
|
-
headers,
|
|
24413
|
-
})
|
|
24414
|
-
.catch((e) => {
|
|
24415
|
-
this.logger.error(formatErrors(e));
|
|
24416
|
-
throw e;
|
|
24417
|
-
});
|
|
24418
|
-
}),
|
|
24419
|
-
},
|
|
24420
|
-
/**
|
|
24421
|
-
* probation.assessment
|
|
24422
|
-
*/
|
|
24423
|
-
probationAssessment: {
|
|
24424
|
-
/**
|
|
24425
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
|
|
24426
|
-
*
|
|
24427
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
|
|
24428
|
-
*/
|
|
24429
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24430
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24431
|
-
return this.httpInstance
|
|
24432
|
-
.request({
|
|
24433
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
|
|
26133
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
|
|
24434
26134
|
method: "POST",
|
|
24435
26135
|
data,
|
|
24436
26136
|
params,
|
|
@@ -24441,62 +26141,22 @@ class Client$H extends Client$I {
|
|
|
24441
26141
|
throw e;
|
|
24442
26142
|
});
|
|
24443
26143
|
}),
|
|
24444
|
-
/**
|
|
24445
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
|
|
24446
|
-
*
|
|
24447
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
|
|
24448
|
-
*/
|
|
24449
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24450
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24451
|
-
return this.httpInstance
|
|
24452
|
-
.request({
|
|
24453
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
|
|
24454
|
-
method: "DELETE",
|
|
24455
|
-
data,
|
|
24456
|
-
params,
|
|
24457
|
-
headers,
|
|
24458
|
-
})
|
|
24459
|
-
.catch((e) => {
|
|
24460
|
-
this.logger.error(formatErrors(e));
|
|
24461
|
-
throw e;
|
|
24462
|
-
});
|
|
24463
|
-
}),
|
|
24464
|
-
/**
|
|
24465
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=patch&version=v2 click to debug }
|
|
24466
|
-
*
|
|
24467
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
|
|
24468
|
-
*/
|
|
24469
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24470
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24471
|
-
return this.httpInstance
|
|
24472
|
-
.request({
|
|
24473
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`, path),
|
|
24474
|
-
method: "PATCH",
|
|
24475
|
-
data,
|
|
24476
|
-
params,
|
|
24477
|
-
headers,
|
|
24478
|
-
})
|
|
24479
|
-
.catch((e) => {
|
|
24480
|
-
this.logger.error(formatErrors(e));
|
|
24481
|
-
throw e;
|
|
24482
|
-
});
|
|
24483
|
-
}),
|
|
24484
26144
|
},
|
|
24485
26145
|
/**
|
|
24486
|
-
*
|
|
26146
|
+
* process
|
|
24487
26147
|
*/
|
|
24488
|
-
|
|
26148
|
+
process: {
|
|
24489
26149
|
/**
|
|
24490
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
26150
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=get&version=v2 click to debug }
|
|
24491
26151
|
*
|
|
24492
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
26152
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process&version=v2 document }
|
|
24493
26153
|
*/
|
|
24494
|
-
|
|
26154
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24495
26155
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24496
26156
|
return this.httpInstance
|
|
24497
26157
|
.request({
|
|
24498
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24499
|
-
method: "
|
|
26158
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id`, path),
|
|
26159
|
+
method: "GET",
|
|
24500
26160
|
data,
|
|
24501
26161
|
params,
|
|
24502
26162
|
headers,
|
|
@@ -24506,13 +26166,13 @@ class Client$H extends Client$I {
|
|
|
24506
26166
|
throw e;
|
|
24507
26167
|
});
|
|
24508
26168
|
}),
|
|
24509
|
-
|
|
26169
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24510
26170
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24511
26171
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24512
26172
|
const res = yield this.httpInstance
|
|
24513
26173
|
.request({
|
|
24514
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24515
|
-
method: "
|
|
26174
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
|
|
26175
|
+
method: "GET",
|
|
24516
26176
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24517
26177
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24518
26178
|
})
|
|
@@ -24555,16 +26215,16 @@ class Client$H extends Client$I {
|
|
|
24555
26215
|
return Iterable;
|
|
24556
26216
|
}),
|
|
24557
26217
|
/**
|
|
24558
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
26218
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
|
|
24559
26219
|
*
|
|
24560
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
26220
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
|
|
24561
26221
|
*/
|
|
24562
|
-
|
|
26222
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24563
26223
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24564
26224
|
return this.httpInstance
|
|
24565
26225
|
.request({
|
|
24566
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24567
|
-
method: "
|
|
26226
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
|
|
26227
|
+
method: "GET",
|
|
24568
26228
|
data,
|
|
24569
26229
|
params,
|
|
24570
26230
|
headers,
|
|
@@ -24581,7 +26241,7 @@ class Client$H extends Client$I {
|
|
|
24581
26241
|
}
|
|
24582
26242
|
|
|
24583
26243
|
// auto gen
|
|
24584
|
-
class Client$
|
|
26244
|
+
class Client$H extends Client$I {
|
|
24585
26245
|
constructor() {
|
|
24586
26246
|
super(...arguments);
|
|
24587
26247
|
/**
|
|
@@ -24592,7 +26252,7 @@ class Client$G extends Client$H {
|
|
|
24592
26252
|
}
|
|
24593
26253
|
|
|
24594
26254
|
// auto gen
|
|
24595
|
-
class Client$
|
|
26255
|
+
class Client$G extends Client$H {
|
|
24596
26256
|
constructor() {
|
|
24597
26257
|
super(...arguments);
|
|
24598
26258
|
/**
|
|
@@ -24808,6 +26468,32 @@ class Client$F extends Client$G {
|
|
|
24808
26468
|
return get__default["default"](res, "data", null);
|
|
24809
26469
|
}),
|
|
24810
26470
|
},
|
|
26471
|
+
/**
|
|
26472
|
+
* health_certificate
|
|
26473
|
+
*/
|
|
26474
|
+
healthCertificate: {
|
|
26475
|
+
/**
|
|
26476
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=health_certificate&apiName=recognize&version=v1 click to debug }
|
|
26477
|
+
*
|
|
26478
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=health_certificate&version=v1 document }
|
|
26479
|
+
*/
|
|
26480
|
+
recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26481
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26482
|
+
const res = yield this.httpInstance
|
|
26483
|
+
.request({
|
|
26484
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`, path),
|
|
26485
|
+
method: "POST",
|
|
26486
|
+
data,
|
|
26487
|
+
params,
|
|
26488
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26489
|
+
})
|
|
26490
|
+
.catch((e) => {
|
|
26491
|
+
this.logger.error(formatErrors(e));
|
|
26492
|
+
throw e;
|
|
26493
|
+
});
|
|
26494
|
+
return get__default["default"](res, "data", null);
|
|
26495
|
+
}),
|
|
26496
|
+
},
|
|
24811
26497
|
/**
|
|
24812
26498
|
* hkm_mainland_travel_permit
|
|
24813
26499
|
*/
|
|
@@ -24860,6 +26546,32 @@ class Client$F extends Client$G {
|
|
|
24860
26546
|
return get__default["default"](res, "data", null);
|
|
24861
26547
|
}),
|
|
24862
26548
|
},
|
|
26549
|
+
/**
|
|
26550
|
+
* resume
|
|
26551
|
+
*/
|
|
26552
|
+
resume: {
|
|
26553
|
+
/**
|
|
26554
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=resume&apiName=parse&version=v1 click to debug }
|
|
26555
|
+
*
|
|
26556
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=parse&project=document_ai&resource=resume&version=v1 document }
|
|
26557
|
+
*/
|
|
26558
|
+
parse: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26559
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26560
|
+
const res = yield this.httpInstance
|
|
26561
|
+
.request({
|
|
26562
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/resume/parse`, path),
|
|
26563
|
+
method: "POST",
|
|
26564
|
+
data,
|
|
26565
|
+
params,
|
|
26566
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26567
|
+
})
|
|
26568
|
+
.catch((e) => {
|
|
26569
|
+
this.logger.error(formatErrors(e));
|
|
26570
|
+
throw e;
|
|
26571
|
+
});
|
|
26572
|
+
return get__default["default"](res, "data", null);
|
|
26573
|
+
}),
|
|
26574
|
+
},
|
|
24863
26575
|
/**
|
|
24864
26576
|
* taxi_invoice
|
|
24865
26577
|
*/
|
|
@@ -24964,6 +26676,32 @@ class Client$F extends Client$G {
|
|
|
24964
26676
|
return get__default["default"](res, "data", null);
|
|
24965
26677
|
}),
|
|
24966
26678
|
},
|
|
26679
|
+
/**
|
|
26680
|
+
* vehicle_invoice
|
|
26681
|
+
*/
|
|
26682
|
+
vehicleInvoice: {
|
|
26683
|
+
/**
|
|
26684
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=vehicle_invoice&apiName=recognize&version=v1 click to debug }
|
|
26685
|
+
*
|
|
26686
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=vehicle_invoice&version=v1 document }
|
|
26687
|
+
*/
|
|
26688
|
+
recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26689
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26690
|
+
const res = yield this.httpInstance
|
|
26691
|
+
.request({
|
|
26692
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`, path),
|
|
26693
|
+
method: "POST",
|
|
26694
|
+
data,
|
|
26695
|
+
params,
|
|
26696
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26697
|
+
})
|
|
26698
|
+
.catch((e) => {
|
|
26699
|
+
this.logger.error(formatErrors(e));
|
|
26700
|
+
throw e;
|
|
26701
|
+
});
|
|
26702
|
+
return get__default["default"](res, "data", null);
|
|
26703
|
+
}),
|
|
26704
|
+
},
|
|
24967
26705
|
/**
|
|
24968
26706
|
* vehicle_license
|
|
24969
26707
|
*/
|
|
@@ -24996,7 +26734,7 @@ class Client$F extends Client$G {
|
|
|
24996
26734
|
}
|
|
24997
26735
|
|
|
24998
26736
|
// auto gen
|
|
24999
|
-
class Client$
|
|
26737
|
+
class Client$F extends Client$G {
|
|
25000
26738
|
constructor() {
|
|
25001
26739
|
super(...arguments);
|
|
25002
26740
|
/**
|
|
@@ -25792,11 +27530,11 @@ class Client$E extends Client$F {
|
|
|
25792
27530
|
}
|
|
25793
27531
|
|
|
25794
27532
|
// auto gen
|
|
25795
|
-
class Client$
|
|
27533
|
+
class Client$E extends Client$F {
|
|
25796
27534
|
constructor() {
|
|
25797
27535
|
super(...arguments);
|
|
25798
27536
|
/**
|
|
25799
|
-
*
|
|
27537
|
+
* 云文档-文档
|
|
25800
27538
|
*/
|
|
25801
27539
|
this.drive = {
|
|
25802
27540
|
/**
|
|
@@ -27019,7 +28757,7 @@ class Client$D extends Client$E {
|
|
|
27019
28757
|
}),
|
|
27020
28758
|
},
|
|
27021
28759
|
/**
|
|
27022
|
-
*
|
|
28760
|
+
* 分片上传
|
|
27023
28761
|
*/
|
|
27024
28762
|
media: {
|
|
27025
28763
|
/**
|
|
@@ -28713,7 +30451,7 @@ class Client$D extends Client$E {
|
|
|
28713
30451
|
}),
|
|
28714
30452
|
},
|
|
28715
30453
|
/**
|
|
28716
|
-
*
|
|
30454
|
+
* 分片上传
|
|
28717
30455
|
*/
|
|
28718
30456
|
media: {
|
|
28719
30457
|
/**
|
|
@@ -29187,12 +30925,59 @@ class Client$D extends Client$E {
|
|
|
29187
30925
|
}),
|
|
29188
30926
|
},
|
|
29189
30927
|
},
|
|
30928
|
+
v2: {
|
|
30929
|
+
/**
|
|
30930
|
+
* permission.public
|
|
30931
|
+
*/
|
|
30932
|
+
permissionPublic: {
|
|
30933
|
+
/**
|
|
30934
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v2 click to debug }
|
|
30935
|
+
*
|
|
30936
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=drive&resource=permission.public&version=v2 document }
|
|
30937
|
+
*/
|
|
30938
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30939
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30940
|
+
return this.httpInstance
|
|
30941
|
+
.request({
|
|
30942
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
|
|
30943
|
+
method: "GET",
|
|
30944
|
+
data,
|
|
30945
|
+
params,
|
|
30946
|
+
headers,
|
|
30947
|
+
})
|
|
30948
|
+
.catch((e) => {
|
|
30949
|
+
this.logger.error(formatErrors(e));
|
|
30950
|
+
throw e;
|
|
30951
|
+
});
|
|
30952
|
+
}),
|
|
30953
|
+
/**
|
|
30954
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v2 click to debug }
|
|
30955
|
+
*
|
|
30956
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=drive&resource=permission.public&version=v2 document }
|
|
30957
|
+
*/
|
|
30958
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30959
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30960
|
+
return this.httpInstance
|
|
30961
|
+
.request({
|
|
30962
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
|
|
30963
|
+
method: "PATCH",
|
|
30964
|
+
data,
|
|
30965
|
+
params,
|
|
30966
|
+
headers,
|
|
30967
|
+
})
|
|
30968
|
+
.catch((e) => {
|
|
30969
|
+
this.logger.error(formatErrors(e));
|
|
30970
|
+
throw e;
|
|
30971
|
+
});
|
|
30972
|
+
}),
|
|
30973
|
+
},
|
|
30974
|
+
},
|
|
29190
30975
|
};
|
|
29191
30976
|
}
|
|
29192
30977
|
}
|
|
29193
30978
|
|
|
29194
30979
|
// auto gen
|
|
29195
|
-
class Client$
|
|
30980
|
+
class Client$D extends Client$E {
|
|
29196
30981
|
constructor() {
|
|
29197
30982
|
super(...arguments);
|
|
29198
30983
|
/**
|
|
@@ -29203,7 +30988,7 @@ class Client$C extends Client$D {
|
|
|
29203
30988
|
}
|
|
29204
30989
|
|
|
29205
30990
|
// auto gen
|
|
29206
|
-
class Client$
|
|
30991
|
+
class Client$C extends Client$D {
|
|
29207
30992
|
constructor() {
|
|
29208
30993
|
super(...arguments);
|
|
29209
30994
|
/**
|
|
@@ -29463,7 +31248,7 @@ class Client$B extends Client$C {
|
|
|
29463
31248
|
}
|
|
29464
31249
|
|
|
29465
31250
|
// auto gen
|
|
29466
|
-
class Client$
|
|
31251
|
+
class Client$B extends Client$C {
|
|
29467
31252
|
constructor() {
|
|
29468
31253
|
super(...arguments);
|
|
29469
31254
|
/**
|
|
@@ -29474,7 +31259,7 @@ class Client$A extends Client$B {
|
|
|
29474
31259
|
}
|
|
29475
31260
|
|
|
29476
31261
|
// auto gen
|
|
29477
|
-
class Client$
|
|
31262
|
+
class Client$A extends Client$B {
|
|
29478
31263
|
constructor() {
|
|
29479
31264
|
super(...arguments);
|
|
29480
31265
|
/**
|
|
@@ -29646,7 +31431,7 @@ class Client$z extends Client$A {
|
|
|
29646
31431
|
}
|
|
29647
31432
|
|
|
29648
31433
|
// auto gen
|
|
29649
|
-
class Client$
|
|
31434
|
+
class Client$z extends Client$A {
|
|
29650
31435
|
constructor() {
|
|
29651
31436
|
super(...arguments);
|
|
29652
31437
|
/**
|
|
@@ -29657,7 +31442,7 @@ class Client$y extends Client$z {
|
|
|
29657
31442
|
}
|
|
29658
31443
|
|
|
29659
31444
|
// auto gen
|
|
29660
|
-
class Client$
|
|
31445
|
+
class Client$y extends Client$z {
|
|
29661
31446
|
constructor() {
|
|
29662
31447
|
super(...arguments);
|
|
29663
31448
|
/**
|
|
@@ -29668,7 +31453,7 @@ class Client$x extends Client$y {
|
|
|
29668
31453
|
}
|
|
29669
31454
|
|
|
29670
31455
|
// auto gen
|
|
29671
|
-
class Client$
|
|
31456
|
+
class Client$x extends Client$y {
|
|
29672
31457
|
constructor() {
|
|
29673
31458
|
super(...arguments);
|
|
29674
31459
|
/**
|
|
@@ -29679,7 +31464,7 @@ class Client$w extends Client$x {
|
|
|
29679
31464
|
}
|
|
29680
31465
|
|
|
29681
31466
|
// auto gen
|
|
29682
|
-
class Client$
|
|
31467
|
+
class Client$w extends Client$x {
|
|
29683
31468
|
constructor() {
|
|
29684
31469
|
super(...arguments);
|
|
29685
31470
|
/**
|
|
@@ -29919,7 +31704,7 @@ class Client$v extends Client$w {
|
|
|
29919
31704
|
}
|
|
29920
31705
|
|
|
29921
31706
|
// auto gen
|
|
29922
|
-
class Client$
|
|
31707
|
+
class Client$v extends Client$w {
|
|
29923
31708
|
constructor() {
|
|
29924
31709
|
super(...arguments);
|
|
29925
31710
|
/**
|
|
@@ -32811,7 +34596,7 @@ class Client$u extends Client$v {
|
|
|
32811
34596
|
}
|
|
32812
34597
|
|
|
32813
34598
|
// auto gen
|
|
32814
|
-
class Client$
|
|
34599
|
+
class Client$u extends Client$v {
|
|
32815
34600
|
constructor() {
|
|
32816
34601
|
super(...arguments);
|
|
32817
34602
|
/**
|
|
@@ -33935,6 +35720,50 @@ class Client$t extends Client$u {
|
|
|
33935
35720
|
throw e;
|
|
33936
35721
|
});
|
|
33937
35722
|
}),
|
|
35723
|
+
/**
|
|
35724
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
35725
|
+
*
|
|
35726
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
|
|
35727
|
+
*
|
|
35728
|
+
* 获取职位列表
|
|
35729
|
+
*
|
|
35730
|
+
* 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
|
|
35731
|
+
*/
|
|
35732
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
35733
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
35734
|
+
return this.httpInstance
|
|
35735
|
+
.request({
|
|
35736
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
|
|
35737
|
+
method: "GET",
|
|
35738
|
+
data,
|
|
35739
|
+
params,
|
|
35740
|
+
headers,
|
|
35741
|
+
})
|
|
35742
|
+
.catch((e) => {
|
|
35743
|
+
this.logger.error(formatErrors(e));
|
|
35744
|
+
throw e;
|
|
35745
|
+
});
|
|
35746
|
+
}),
|
|
35747
|
+
/**
|
|
35748
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
|
|
35749
|
+
*
|
|
35750
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
|
|
35751
|
+
*/
|
|
35752
|
+
recruiter: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
35753
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
35754
|
+
return this.httpInstance
|
|
35755
|
+
.request({
|
|
35756
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`, path),
|
|
35757
|
+
method: "GET",
|
|
35758
|
+
data,
|
|
35759
|
+
params,
|
|
35760
|
+
headers,
|
|
35761
|
+
})
|
|
35762
|
+
.catch((e) => {
|
|
35763
|
+
this.logger.error(formatErrors(e));
|
|
35764
|
+
throw e;
|
|
35765
|
+
});
|
|
35766
|
+
}),
|
|
33938
35767
|
/**
|
|
33939
35768
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
|
|
33940
35769
|
*
|
|
@@ -34980,6 +36809,30 @@ class Client$t extends Client$u {
|
|
|
34980
36809
|
throw e;
|
|
34981
36810
|
});
|
|
34982
36811
|
}),
|
|
36812
|
+
/**
|
|
36813
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
|
|
36814
|
+
*
|
|
36815
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
|
|
36816
|
+
*
|
|
36817
|
+
* 获取人才列表
|
|
36818
|
+
*
|
|
36819
|
+
* 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
|
|
36820
|
+
*/
|
|
36821
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
36822
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
36823
|
+
return this.httpInstance
|
|
36824
|
+
.request({
|
|
36825
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
|
|
36826
|
+
method: "GET",
|
|
36827
|
+
data,
|
|
36828
|
+
params,
|
|
36829
|
+
headers,
|
|
36830
|
+
})
|
|
36831
|
+
.catch((e) => {
|
|
36832
|
+
this.logger.error(formatErrors(e));
|
|
36833
|
+
throw e;
|
|
36834
|
+
});
|
|
36835
|
+
}),
|
|
34983
36836
|
},
|
|
34984
36837
|
/**
|
|
34985
36838
|
* talent_folder
|
|
@@ -36205,6 +38058,50 @@ class Client$t extends Client$u {
|
|
|
36205
38058
|
throw e;
|
|
36206
38059
|
});
|
|
36207
38060
|
}),
|
|
38061
|
+
/**
|
|
38062
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
38063
|
+
*
|
|
38064
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
|
|
38065
|
+
*
|
|
38066
|
+
* 获取职位列表
|
|
38067
|
+
*
|
|
38068
|
+
* 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
|
|
38069
|
+
*/
|
|
38070
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38071
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38072
|
+
return this.httpInstance
|
|
38073
|
+
.request({
|
|
38074
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
|
|
38075
|
+
method: "GET",
|
|
38076
|
+
data,
|
|
38077
|
+
params,
|
|
38078
|
+
headers,
|
|
38079
|
+
})
|
|
38080
|
+
.catch((e) => {
|
|
38081
|
+
this.logger.error(formatErrors(e));
|
|
38082
|
+
throw e;
|
|
38083
|
+
});
|
|
38084
|
+
}),
|
|
38085
|
+
/**
|
|
38086
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
|
|
38087
|
+
*
|
|
38088
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
|
|
38089
|
+
*/
|
|
38090
|
+
recruiter: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38091
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38092
|
+
return this.httpInstance
|
|
38093
|
+
.request({
|
|
38094
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`, path),
|
|
38095
|
+
method: "GET",
|
|
38096
|
+
data,
|
|
38097
|
+
params,
|
|
38098
|
+
headers,
|
|
38099
|
+
})
|
|
38100
|
+
.catch((e) => {
|
|
38101
|
+
this.logger.error(formatErrors(e));
|
|
38102
|
+
throw e;
|
|
38103
|
+
});
|
|
38104
|
+
}),
|
|
36208
38105
|
/**
|
|
36209
38106
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
|
|
36210
38107
|
*
|
|
@@ -37250,6 +39147,30 @@ class Client$t extends Client$u {
|
|
|
37250
39147
|
throw e;
|
|
37251
39148
|
});
|
|
37252
39149
|
}),
|
|
39150
|
+
/**
|
|
39151
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
|
|
39152
|
+
*
|
|
39153
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
|
|
39154
|
+
*
|
|
39155
|
+
* 获取人才列表
|
|
39156
|
+
*
|
|
39157
|
+
* 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
|
|
39158
|
+
*/
|
|
39159
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39160
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39161
|
+
return this.httpInstance
|
|
39162
|
+
.request({
|
|
39163
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
|
|
39164
|
+
method: "GET",
|
|
39165
|
+
data,
|
|
39166
|
+
params,
|
|
39167
|
+
headers,
|
|
39168
|
+
})
|
|
39169
|
+
.catch((e) => {
|
|
39170
|
+
this.logger.error(formatErrors(e));
|
|
39171
|
+
throw e;
|
|
39172
|
+
});
|
|
39173
|
+
}),
|
|
37253
39174
|
},
|
|
37254
39175
|
/**
|
|
37255
39176
|
* talent_folder
|
|
@@ -37363,7 +39284,7 @@ class Client$t extends Client$u {
|
|
|
37363
39284
|
}
|
|
37364
39285
|
|
|
37365
39286
|
// auto gen
|
|
37366
|
-
class Client$
|
|
39287
|
+
class Client$t extends Client$u {
|
|
37367
39288
|
constructor() {
|
|
37368
39289
|
super(...arguments);
|
|
37369
39290
|
/**
|
|
@@ -37439,7 +39360,7 @@ class Client$s extends Client$t {
|
|
|
37439
39360
|
}
|
|
37440
39361
|
|
|
37441
39362
|
// auto gen
|
|
37442
|
-
class Client$
|
|
39363
|
+
class Client$s extends Client$t {
|
|
37443
39364
|
constructor() {
|
|
37444
39365
|
super(...arguments);
|
|
37445
39366
|
/**
|
|
@@ -38693,7 +40614,7 @@ class Client$r extends Client$s {
|
|
|
38693
40614
|
}),
|
|
38694
40615
|
},
|
|
38695
40616
|
/**
|
|
38696
|
-
*
|
|
40617
|
+
* 消息加急
|
|
38697
40618
|
*/
|
|
38698
40619
|
message: {
|
|
38699
40620
|
/**
|
|
@@ -39481,6 +41402,33 @@ class Client$r extends Client$s {
|
|
|
39481
41402
|
});
|
|
39482
41403
|
}),
|
|
39483
41404
|
},
|
|
41405
|
+
/**
|
|
41406
|
+
* thread
|
|
41407
|
+
*/
|
|
41408
|
+
thread: {
|
|
41409
|
+
/**
|
|
41410
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
|
|
41411
|
+
*
|
|
41412
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
|
|
41413
|
+
*
|
|
41414
|
+
* 转发
|
|
41415
|
+
*/
|
|
41416
|
+
forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41417
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41418
|
+
return this.httpInstance
|
|
41419
|
+
.request({
|
|
41420
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
|
|
41421
|
+
method: "POST",
|
|
41422
|
+
data,
|
|
41423
|
+
params,
|
|
41424
|
+
headers,
|
|
41425
|
+
})
|
|
41426
|
+
.catch((e) => {
|
|
41427
|
+
this.logger.error(formatErrors(e));
|
|
41428
|
+
throw e;
|
|
41429
|
+
});
|
|
41430
|
+
}),
|
|
41431
|
+
},
|
|
39484
41432
|
v1: {
|
|
39485
41433
|
/**
|
|
39486
41434
|
* 消息 - 批量消息
|
|
@@ -40729,7 +42677,7 @@ class Client$r extends Client$s {
|
|
|
40729
42677
|
}),
|
|
40730
42678
|
},
|
|
40731
42679
|
/**
|
|
40732
|
-
*
|
|
42680
|
+
* 消息加急
|
|
40733
42681
|
*/
|
|
40734
42682
|
message: {
|
|
40735
42683
|
/**
|
|
@@ -41517,13 +43465,40 @@ class Client$r extends Client$s {
|
|
|
41517
43465
|
});
|
|
41518
43466
|
}),
|
|
41519
43467
|
},
|
|
43468
|
+
/**
|
|
43469
|
+
* thread
|
|
43470
|
+
*/
|
|
43471
|
+
thread: {
|
|
43472
|
+
/**
|
|
43473
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
|
|
43474
|
+
*
|
|
43475
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
|
|
43476
|
+
*
|
|
43477
|
+
* 转发
|
|
43478
|
+
*/
|
|
43479
|
+
forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43480
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43481
|
+
return this.httpInstance
|
|
43482
|
+
.request({
|
|
43483
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
|
|
43484
|
+
method: "POST",
|
|
43485
|
+
data,
|
|
43486
|
+
params,
|
|
43487
|
+
headers,
|
|
43488
|
+
})
|
|
43489
|
+
.catch((e) => {
|
|
43490
|
+
this.logger.error(formatErrors(e));
|
|
43491
|
+
throw e;
|
|
43492
|
+
});
|
|
43493
|
+
}),
|
|
43494
|
+
},
|
|
41520
43495
|
},
|
|
41521
43496
|
};
|
|
41522
43497
|
}
|
|
41523
43498
|
}
|
|
41524
43499
|
|
|
41525
43500
|
// auto gen
|
|
41526
|
-
class Client$
|
|
43501
|
+
class Client$r extends Client$s {
|
|
41527
43502
|
constructor() {
|
|
41528
43503
|
super(...arguments);
|
|
41529
43504
|
/**
|
|
@@ -41673,6 +43648,26 @@ class Client$q extends Client$r {
|
|
|
41673
43648
|
throw e;
|
|
41674
43649
|
});
|
|
41675
43650
|
}),
|
|
43651
|
+
/**
|
|
43652
|
+
* {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=delete&version=v1 click to debug }
|
|
43653
|
+
*
|
|
43654
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 document }
|
|
43655
|
+
*/
|
|
43656
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43657
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43658
|
+
return this.httpInstance
|
|
43659
|
+
.request({
|
|
43660
|
+
url: fillApiPath(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`, path),
|
|
43661
|
+
method: "DELETE",
|
|
43662
|
+
data,
|
|
43663
|
+
params,
|
|
43664
|
+
headers,
|
|
43665
|
+
})
|
|
43666
|
+
.catch((e) => {
|
|
43667
|
+
this.logger.error(formatErrors(e));
|
|
43668
|
+
throw e;
|
|
43669
|
+
});
|
|
43670
|
+
}),
|
|
41676
43671
|
/**
|
|
41677
43672
|
* {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=get&version=v1 click to debug }
|
|
41678
43673
|
*
|
|
@@ -41982,7 +43977,7 @@ class Client$q extends Client$r {
|
|
|
41982
43977
|
}
|
|
41983
43978
|
|
|
41984
43979
|
// auto gen
|
|
41985
|
-
class Client$
|
|
43980
|
+
class Client$q extends Client$r {
|
|
41986
43981
|
constructor() {
|
|
41987
43982
|
super(...arguments);
|
|
41988
43983
|
/**
|
|
@@ -44890,7 +46885,7 @@ class Client$p extends Client$q {
|
|
|
44890
46885
|
}
|
|
44891
46886
|
|
|
44892
46887
|
// auto gen
|
|
44893
|
-
class Client$
|
|
46888
|
+
class Client$p extends Client$q {
|
|
44894
46889
|
constructor() {
|
|
44895
46890
|
super(...arguments);
|
|
44896
46891
|
/**
|
|
@@ -45010,7 +47005,7 @@ class Client$o extends Client$p {
|
|
|
45010
47005
|
}
|
|
45011
47006
|
|
|
45012
47007
|
// auto gen
|
|
45013
|
-
class Client$
|
|
47008
|
+
class Client$o extends Client$p {
|
|
45014
47009
|
constructor() {
|
|
45015
47010
|
super(...arguments);
|
|
45016
47011
|
/**
|
|
@@ -45021,7 +47016,7 @@ class Client$n extends Client$o {
|
|
|
45021
47016
|
}
|
|
45022
47017
|
|
|
45023
47018
|
// auto gen
|
|
45024
|
-
class Client$
|
|
47019
|
+
class Client$n extends Client$o {
|
|
45025
47020
|
constructor() {
|
|
45026
47021
|
super(...arguments);
|
|
45027
47022
|
/**
|
|
@@ -45032,7 +47027,7 @@ class Client$m extends Client$n {
|
|
|
45032
47027
|
}
|
|
45033
47028
|
|
|
45034
47029
|
// auto gen
|
|
45035
|
-
class Client$
|
|
47030
|
+
class Client$m extends Client$n {
|
|
45036
47031
|
constructor() {
|
|
45037
47032
|
super(...arguments);
|
|
45038
47033
|
/**
|
|
@@ -45104,6 +47099,30 @@ class Client$l extends Client$m {
|
|
|
45104
47099
|
* OKR周期
|
|
45105
47100
|
*/
|
|
45106
47101
|
period: {
|
|
47102
|
+
/**
|
|
47103
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
|
|
47104
|
+
*
|
|
47105
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
|
|
47106
|
+
*
|
|
47107
|
+
* 创建 OKR 周期
|
|
47108
|
+
*
|
|
47109
|
+
* 根据周期规则创建一个 OKR 周期
|
|
47110
|
+
*/
|
|
47111
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47112
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47113
|
+
return this.httpInstance
|
|
47114
|
+
.request({
|
|
47115
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
|
|
47116
|
+
method: "POST",
|
|
47117
|
+
data,
|
|
47118
|
+
params,
|
|
47119
|
+
headers,
|
|
47120
|
+
})
|
|
47121
|
+
.catch((e) => {
|
|
47122
|
+
this.logger.error(formatErrors(e));
|
|
47123
|
+
throw e;
|
|
47124
|
+
});
|
|
47125
|
+
}),
|
|
45107
47126
|
/**
|
|
45108
47127
|
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
|
|
45109
47128
|
*
|
|
@@ -45130,6 +47149,59 @@ class Client$l extends Client$m {
|
|
|
45130
47149
|
throw e;
|
|
45131
47150
|
});
|
|
45132
47151
|
}),
|
|
47152
|
+
/**
|
|
47153
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
|
|
47154
|
+
*
|
|
47155
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
|
|
47156
|
+
*
|
|
47157
|
+
* 修改 OKR 周期状态
|
|
47158
|
+
*
|
|
47159
|
+
* 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
|
|
47160
|
+
*/
|
|
47161
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47162
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47163
|
+
return this.httpInstance
|
|
47164
|
+
.request({
|
|
47165
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
|
|
47166
|
+
method: "PATCH",
|
|
47167
|
+
data,
|
|
47168
|
+
params,
|
|
47169
|
+
headers,
|
|
47170
|
+
})
|
|
47171
|
+
.catch((e) => {
|
|
47172
|
+
this.logger.error(formatErrors(e));
|
|
47173
|
+
throw e;
|
|
47174
|
+
});
|
|
47175
|
+
}),
|
|
47176
|
+
},
|
|
47177
|
+
/**
|
|
47178
|
+
* 周期规则
|
|
47179
|
+
*/
|
|
47180
|
+
periodRule: {
|
|
47181
|
+
/**
|
|
47182
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
|
|
47183
|
+
*
|
|
47184
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
|
|
47185
|
+
*
|
|
47186
|
+
* 获取 OKR 周期规则
|
|
47187
|
+
*
|
|
47188
|
+
* 获取租户的周期规则列表
|
|
47189
|
+
*/
|
|
47190
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47191
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47192
|
+
return this.httpInstance
|
|
47193
|
+
.request({
|
|
47194
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
|
|
47195
|
+
method: "GET",
|
|
47196
|
+
data,
|
|
47197
|
+
params,
|
|
47198
|
+
headers,
|
|
47199
|
+
})
|
|
47200
|
+
.catch((e) => {
|
|
47201
|
+
this.logger.error(formatErrors(e));
|
|
47202
|
+
throw e;
|
|
47203
|
+
});
|
|
47204
|
+
}),
|
|
45133
47205
|
},
|
|
45134
47206
|
/**
|
|
45135
47207
|
* OKR进展记录
|
|
@@ -45329,6 +47401,30 @@ class Client$l extends Client$m {
|
|
|
45329
47401
|
* OKR周期
|
|
45330
47402
|
*/
|
|
45331
47403
|
period: {
|
|
47404
|
+
/**
|
|
47405
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
|
|
47406
|
+
*
|
|
47407
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
|
|
47408
|
+
*
|
|
47409
|
+
* 创建 OKR 周期
|
|
47410
|
+
*
|
|
47411
|
+
* 根据周期规则创建一个 OKR 周期
|
|
47412
|
+
*/
|
|
47413
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47414
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47415
|
+
return this.httpInstance
|
|
47416
|
+
.request({
|
|
47417
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
|
|
47418
|
+
method: "POST",
|
|
47419
|
+
data,
|
|
47420
|
+
params,
|
|
47421
|
+
headers,
|
|
47422
|
+
})
|
|
47423
|
+
.catch((e) => {
|
|
47424
|
+
this.logger.error(formatErrors(e));
|
|
47425
|
+
throw e;
|
|
47426
|
+
});
|
|
47427
|
+
}),
|
|
45332
47428
|
/**
|
|
45333
47429
|
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
|
|
45334
47430
|
*
|
|
@@ -45355,6 +47451,59 @@ class Client$l extends Client$m {
|
|
|
45355
47451
|
throw e;
|
|
45356
47452
|
});
|
|
45357
47453
|
}),
|
|
47454
|
+
/**
|
|
47455
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
|
|
47456
|
+
*
|
|
47457
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
|
|
47458
|
+
*
|
|
47459
|
+
* 修改 OKR 周期状态
|
|
47460
|
+
*
|
|
47461
|
+
* 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
|
|
47462
|
+
*/
|
|
47463
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47465
|
+
return this.httpInstance
|
|
47466
|
+
.request({
|
|
47467
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
|
|
47468
|
+
method: "PATCH",
|
|
47469
|
+
data,
|
|
47470
|
+
params,
|
|
47471
|
+
headers,
|
|
47472
|
+
})
|
|
47473
|
+
.catch((e) => {
|
|
47474
|
+
this.logger.error(formatErrors(e));
|
|
47475
|
+
throw e;
|
|
47476
|
+
});
|
|
47477
|
+
}),
|
|
47478
|
+
},
|
|
47479
|
+
/**
|
|
47480
|
+
* 周期规则
|
|
47481
|
+
*/
|
|
47482
|
+
periodRule: {
|
|
47483
|
+
/**
|
|
47484
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
|
|
47485
|
+
*
|
|
47486
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
|
|
47487
|
+
*
|
|
47488
|
+
* 获取 OKR 周期规则
|
|
47489
|
+
*
|
|
47490
|
+
* 获取租户的周期规则列表
|
|
47491
|
+
*/
|
|
47492
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47493
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47494
|
+
return this.httpInstance
|
|
47495
|
+
.request({
|
|
47496
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
|
|
47497
|
+
method: "GET",
|
|
47498
|
+
data,
|
|
47499
|
+
params,
|
|
47500
|
+
headers,
|
|
47501
|
+
})
|
|
47502
|
+
.catch((e) => {
|
|
47503
|
+
this.logger.error(formatErrors(e));
|
|
47504
|
+
throw e;
|
|
47505
|
+
});
|
|
47506
|
+
}),
|
|
45358
47507
|
},
|
|
45359
47508
|
/**
|
|
45360
47509
|
* OKR进展记录
|
|
@@ -45494,7 +47643,7 @@ class Client$l extends Client$m {
|
|
|
45494
47643
|
}
|
|
45495
47644
|
|
|
45496
47645
|
// auto gen
|
|
45497
|
-
class Client$
|
|
47646
|
+
class Client$l extends Client$m {
|
|
45498
47647
|
constructor() {
|
|
45499
47648
|
super(...arguments);
|
|
45500
47649
|
/**
|
|
@@ -45570,7 +47719,7 @@ class Client$k extends Client$l {
|
|
|
45570
47719
|
}
|
|
45571
47720
|
|
|
45572
47721
|
// auto gen
|
|
45573
|
-
class Client$
|
|
47722
|
+
class Client$k extends Client$l {
|
|
45574
47723
|
constructor() {
|
|
45575
47724
|
super(...arguments);
|
|
45576
47725
|
/**
|
|
@@ -45642,7 +47791,7 @@ class Client$j extends Client$k {
|
|
|
45642
47791
|
}
|
|
45643
47792
|
|
|
45644
47793
|
// auto gen
|
|
45645
|
-
class Client$
|
|
47794
|
+
class Client$j extends Client$k {
|
|
45646
47795
|
constructor() {
|
|
45647
47796
|
super(...arguments);
|
|
45648
47797
|
/**
|
|
@@ -45653,7 +47802,7 @@ class Client$i extends Client$j {
|
|
|
45653
47802
|
}
|
|
45654
47803
|
|
|
45655
47804
|
// auto gen
|
|
45656
|
-
class Client$
|
|
47805
|
+
class Client$i extends Client$j {
|
|
45657
47806
|
constructor() {
|
|
45658
47807
|
super(...arguments);
|
|
45659
47808
|
/**
|
|
@@ -45664,7 +47813,7 @@ class Client$h extends Client$i {
|
|
|
45664
47813
|
}
|
|
45665
47814
|
|
|
45666
47815
|
// auto gen
|
|
45667
|
-
class Client$
|
|
47816
|
+
class Client$h extends Client$i {
|
|
45668
47817
|
constructor() {
|
|
45669
47818
|
super(...arguments);
|
|
45670
47819
|
/**
|
|
@@ -46084,18 +48233,195 @@ class Client$g extends Client$h {
|
|
|
46084
48233
|
}
|
|
46085
48234
|
|
|
46086
48235
|
// auto gen
|
|
46087
|
-
class Client$
|
|
48236
|
+
class Client$g extends Client$h {
|
|
46088
48237
|
constructor() {
|
|
46089
48238
|
super(...arguments);
|
|
46090
48239
|
/**
|
|
46091
|
-
|
|
48240
|
+
* 汇报
|
|
48241
|
+
*/
|
|
48242
|
+
this.report = {
|
|
48243
|
+
/**
|
|
48244
|
+
* 规则
|
|
48245
|
+
*/
|
|
48246
|
+
rule: {
|
|
48247
|
+
/**
|
|
48248
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
|
|
48249
|
+
*
|
|
48250
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
|
|
48251
|
+
*
|
|
48252
|
+
* 规则查询
|
|
48253
|
+
*
|
|
48254
|
+
* 规则查询
|
|
48255
|
+
*/
|
|
48256
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48257
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48258
|
+
return this.httpInstance
|
|
48259
|
+
.request({
|
|
48260
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
|
|
48261
|
+
method: "GET",
|
|
48262
|
+
data,
|
|
48263
|
+
params,
|
|
48264
|
+
headers,
|
|
48265
|
+
})
|
|
48266
|
+
.catch((e) => {
|
|
48267
|
+
this.logger.error(formatErrors(e));
|
|
48268
|
+
throw e;
|
|
48269
|
+
});
|
|
48270
|
+
}),
|
|
48271
|
+
},
|
|
48272
|
+
/**
|
|
48273
|
+
* 规则看板
|
|
48274
|
+
*/
|
|
48275
|
+
ruleView: {
|
|
48276
|
+
/**
|
|
48277
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
|
|
48278
|
+
*
|
|
48279
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
|
|
48280
|
+
*
|
|
48281
|
+
* 移除规则看板
|
|
48282
|
+
*
|
|
48283
|
+
* 移除规则看板
|
|
48284
|
+
*/
|
|
48285
|
+
remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48286
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48287
|
+
return this.httpInstance
|
|
48288
|
+
.request({
|
|
48289
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
|
|
48290
|
+
method: "POST",
|
|
48291
|
+
data,
|
|
48292
|
+
params,
|
|
48293
|
+
headers,
|
|
48294
|
+
})
|
|
48295
|
+
.catch((e) => {
|
|
48296
|
+
this.logger.error(formatErrors(e));
|
|
48297
|
+
throw e;
|
|
48298
|
+
});
|
|
48299
|
+
}),
|
|
48300
|
+
},
|
|
48301
|
+
/**
|
|
48302
|
+
* 任务
|
|
46092
48303
|
*/
|
|
46093
|
-
|
|
48304
|
+
task: {
|
|
48305
|
+
/**
|
|
48306
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
|
|
48307
|
+
*
|
|
48308
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
|
|
48309
|
+
*
|
|
48310
|
+
* 任务查询
|
|
48311
|
+
*
|
|
48312
|
+
* 任务查询
|
|
48313
|
+
*/
|
|
48314
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48315
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48316
|
+
return this.httpInstance
|
|
48317
|
+
.request({
|
|
48318
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
|
|
48319
|
+
method: "POST",
|
|
48320
|
+
data,
|
|
48321
|
+
params,
|
|
48322
|
+
headers,
|
|
48323
|
+
})
|
|
48324
|
+
.catch((e) => {
|
|
48325
|
+
this.logger.error(formatErrors(e));
|
|
48326
|
+
throw e;
|
|
48327
|
+
});
|
|
48328
|
+
}),
|
|
48329
|
+
},
|
|
48330
|
+
v1: {
|
|
48331
|
+
/**
|
|
48332
|
+
* 规则
|
|
48333
|
+
*/
|
|
48334
|
+
rule: {
|
|
48335
|
+
/**
|
|
48336
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
|
|
48337
|
+
*
|
|
48338
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
|
|
48339
|
+
*
|
|
48340
|
+
* 规则查询
|
|
48341
|
+
*
|
|
48342
|
+
* 规则查询
|
|
48343
|
+
*/
|
|
48344
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48345
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48346
|
+
return this.httpInstance
|
|
48347
|
+
.request({
|
|
48348
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
|
|
48349
|
+
method: "GET",
|
|
48350
|
+
data,
|
|
48351
|
+
params,
|
|
48352
|
+
headers,
|
|
48353
|
+
})
|
|
48354
|
+
.catch((e) => {
|
|
48355
|
+
this.logger.error(formatErrors(e));
|
|
48356
|
+
throw e;
|
|
48357
|
+
});
|
|
48358
|
+
}),
|
|
48359
|
+
},
|
|
48360
|
+
/**
|
|
48361
|
+
* 规则看板
|
|
48362
|
+
*/
|
|
48363
|
+
ruleView: {
|
|
48364
|
+
/**
|
|
48365
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
|
|
48366
|
+
*
|
|
48367
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
|
|
48368
|
+
*
|
|
48369
|
+
* 移除规则看板
|
|
48370
|
+
*
|
|
48371
|
+
* 移除规则看板
|
|
48372
|
+
*/
|
|
48373
|
+
remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48374
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48375
|
+
return this.httpInstance
|
|
48376
|
+
.request({
|
|
48377
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
|
|
48378
|
+
method: "POST",
|
|
48379
|
+
data,
|
|
48380
|
+
params,
|
|
48381
|
+
headers,
|
|
48382
|
+
})
|
|
48383
|
+
.catch((e) => {
|
|
48384
|
+
this.logger.error(formatErrors(e));
|
|
48385
|
+
throw e;
|
|
48386
|
+
});
|
|
48387
|
+
}),
|
|
48388
|
+
},
|
|
48389
|
+
/**
|
|
48390
|
+
* 任务
|
|
48391
|
+
*/
|
|
48392
|
+
task: {
|
|
48393
|
+
/**
|
|
48394
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
|
|
48395
|
+
*
|
|
48396
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
|
|
48397
|
+
*
|
|
48398
|
+
* 任务查询
|
|
48399
|
+
*
|
|
48400
|
+
* 任务查询
|
|
48401
|
+
*/
|
|
48402
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48403
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48404
|
+
return this.httpInstance
|
|
48405
|
+
.request({
|
|
48406
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
|
|
48407
|
+
method: "POST",
|
|
48408
|
+
data,
|
|
48409
|
+
params,
|
|
48410
|
+
headers,
|
|
48411
|
+
})
|
|
48412
|
+
.catch((e) => {
|
|
48413
|
+
this.logger.error(formatErrors(e));
|
|
48414
|
+
throw e;
|
|
48415
|
+
});
|
|
48416
|
+
}),
|
|
48417
|
+
},
|
|
48418
|
+
},
|
|
48419
|
+
};
|
|
46094
48420
|
}
|
|
46095
48421
|
}
|
|
46096
48422
|
|
|
46097
48423
|
// auto gen
|
|
46098
|
-
class Client$
|
|
48424
|
+
class Client$f extends Client$g {
|
|
46099
48425
|
constructor() {
|
|
46100
48426
|
super(...arguments);
|
|
46101
48427
|
/**
|
|
@@ -46106,7 +48432,7 @@ class Client$e extends Client$f {
|
|
|
46106
48432
|
}
|
|
46107
48433
|
|
|
46108
48434
|
// auto gen
|
|
46109
|
-
class Client$
|
|
48435
|
+
class Client$e extends Client$f {
|
|
46110
48436
|
constructor() {
|
|
46111
48437
|
super(...arguments);
|
|
46112
48438
|
/**
|
|
@@ -46922,7 +49248,7 @@ class Client$d extends Client$e {
|
|
|
46922
49248
|
}
|
|
46923
49249
|
|
|
46924
49250
|
// auto gen
|
|
46925
|
-
class Client$
|
|
49251
|
+
class Client$d extends Client$e {
|
|
46926
49252
|
constructor() {
|
|
46927
49253
|
super(...arguments);
|
|
46928
49254
|
/**
|
|
@@ -46986,7 +49312,7 @@ class Client$c extends Client$d {
|
|
|
46986
49312
|
}
|
|
46987
49313
|
|
|
46988
49314
|
// auto gen
|
|
46989
|
-
class Client$
|
|
49315
|
+
class Client$c extends Client$d {
|
|
46990
49316
|
constructor() {
|
|
46991
49317
|
super(...arguments);
|
|
46992
49318
|
/**
|
|
@@ -47438,7 +49764,7 @@ class Client$b extends Client$c {
|
|
|
47438
49764
|
}),
|
|
47439
49765
|
},
|
|
47440
49766
|
/**
|
|
47441
|
-
*
|
|
49767
|
+
* 工作表
|
|
47442
49768
|
*/
|
|
47443
49769
|
spreadsheetSheet: {
|
|
47444
49770
|
/**
|
|
@@ -48141,7 +50467,7 @@ class Client$b extends Client$c {
|
|
|
48141
50467
|
}),
|
|
48142
50468
|
},
|
|
48143
50469
|
/**
|
|
48144
|
-
*
|
|
50470
|
+
* 工作表
|
|
48145
50471
|
*/
|
|
48146
50472
|
spreadsheetSheet: {
|
|
48147
50473
|
/**
|
|
@@ -48404,7 +50730,7 @@ class Client$b extends Client$c {
|
|
|
48404
50730
|
}
|
|
48405
50731
|
|
|
48406
50732
|
// auto gen
|
|
48407
|
-
class Client$
|
|
50733
|
+
class Client$b extends Client$c {
|
|
48408
50734
|
constructor() {
|
|
48409
50735
|
super(...arguments);
|
|
48410
50736
|
/**
|
|
@@ -48532,7 +50858,7 @@ class Client$a extends Client$b {
|
|
|
48532
50858
|
}
|
|
48533
50859
|
|
|
48534
50860
|
// auto gen
|
|
48535
|
-
class Client$
|
|
50861
|
+
class Client$a extends Client$b {
|
|
48536
50862
|
constructor() {
|
|
48537
50863
|
super(...arguments);
|
|
48538
50864
|
/**
|
|
@@ -48543,7 +50869,7 @@ class Client$9 extends Client$a {
|
|
|
48543
50869
|
}
|
|
48544
50870
|
|
|
48545
50871
|
// auto gen
|
|
48546
|
-
class Client$
|
|
50872
|
+
class Client$9 extends Client$a {
|
|
48547
50873
|
constructor() {
|
|
48548
50874
|
super(...arguments);
|
|
48549
50875
|
/**
|
|
@@ -48554,7 +50880,7 @@ class Client$8 extends Client$9 {
|
|
|
48554
50880
|
}
|
|
48555
50881
|
|
|
48556
50882
|
// auto gen
|
|
48557
|
-
class Client$
|
|
50883
|
+
class Client$8 extends Client$9 {
|
|
48558
50884
|
constructor() {
|
|
48559
50885
|
super(...arguments);
|
|
48560
50886
|
/**
|
|
@@ -51674,7 +54000,7 @@ class Client$7 extends Client$8 {
|
|
|
51674
54000
|
}
|
|
51675
54001
|
|
|
51676
54002
|
// auto gen
|
|
51677
|
-
class Client$
|
|
54003
|
+
class Client$7 extends Client$8 {
|
|
51678
54004
|
constructor() {
|
|
51679
54005
|
super(...arguments);
|
|
51680
54006
|
/**
|
|
@@ -51800,7 +54126,7 @@ class Client$6 extends Client$7 {
|
|
|
51800
54126
|
}
|
|
51801
54127
|
|
|
51802
54128
|
// auto gen
|
|
51803
|
-
class Client$
|
|
54129
|
+
class Client$6 extends Client$7 {
|
|
51804
54130
|
constructor() {
|
|
51805
54131
|
super(...arguments);
|
|
51806
54132
|
/**
|
|
@@ -51928,7 +54254,7 @@ class Client$5 extends Client$6 {
|
|
|
51928
54254
|
}
|
|
51929
54255
|
|
|
51930
54256
|
// auto gen
|
|
51931
|
-
class Client$
|
|
54257
|
+
class Client$5 extends Client$6 {
|
|
51932
54258
|
constructor() {
|
|
51933
54259
|
super(...arguments);
|
|
51934
54260
|
/**
|
|
@@ -51939,7 +54265,7 @@ class Client$4 extends Client$5 {
|
|
|
51939
54265
|
}
|
|
51940
54266
|
|
|
51941
54267
|
// auto gen
|
|
51942
|
-
class Client$
|
|
54268
|
+
class Client$4 extends Client$5 {
|
|
51943
54269
|
constructor() {
|
|
51944
54270
|
super(...arguments);
|
|
51945
54271
|
/**
|
|
@@ -55566,6 +57892,49 @@ class Client$3 extends Client$4 {
|
|
|
55566
57892
|
}
|
|
55567
57893
|
}
|
|
55568
57894
|
|
|
57895
|
+
// auto gen
|
|
57896
|
+
class Client$3 extends Client$4 {
|
|
57897
|
+
constructor() {
|
|
57898
|
+
super(...arguments);
|
|
57899
|
+
/**
|
|
57900
|
+
* 认证信息
|
|
57901
|
+
*/
|
|
57902
|
+
this.verification = {
|
|
57903
|
+
v1: {
|
|
57904
|
+
/**
|
|
57905
|
+
* 认证信息
|
|
57906
|
+
*/
|
|
57907
|
+
verification: {
|
|
57908
|
+
/**
|
|
57909
|
+
* {@link https://open.feishu.cn/api-explorer?project=verification&resource=verification&apiName=get&version=v1 click to debug }
|
|
57910
|
+
*
|
|
57911
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/verification-v1/verification/get document }
|
|
57912
|
+
*
|
|
57913
|
+
* 获取认证信息
|
|
57914
|
+
*
|
|
57915
|
+
* 获取企业主体名称、是否认证等信息。
|
|
57916
|
+
*/
|
|
57917
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
57918
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
57919
|
+
return this.httpInstance
|
|
57920
|
+
.request({
|
|
57921
|
+
url: fillApiPath(`${this.domain}/open-apis/verification/v1/verification`, path),
|
|
57922
|
+
method: "GET",
|
|
57923
|
+
data,
|
|
57924
|
+
params,
|
|
57925
|
+
headers,
|
|
57926
|
+
})
|
|
57927
|
+
.catch((e) => {
|
|
57928
|
+
this.logger.error(formatErrors(e));
|
|
57929
|
+
throw e;
|
|
57930
|
+
});
|
|
57931
|
+
}),
|
|
57932
|
+
},
|
|
57933
|
+
},
|
|
57934
|
+
};
|
|
57935
|
+
}
|
|
57936
|
+
}
|
|
57937
|
+
|
|
55569
57938
|
// auto gen
|
|
55570
57939
|
class Client$2 extends Client$3 {
|
|
55571
57940
|
constructor() {
|