@larksuiteoapi/node-sdk 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -0
- package/README.zh.md +53 -0
- package/es/index.js +2734 -385
- package/lib/index.js +2734 -385
- package/package.json +1 -1
- package/types/index.d.ts +10361 -1225
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
|
/**
|
|
@@ -3025,7 +3481,7 @@ class Client$U extends Client$V {
|
|
|
3025
3481
|
*/
|
|
3026
3482
|
this.approval = {
|
|
3027
3483
|
/**
|
|
3028
|
-
*
|
|
3484
|
+
* 事件
|
|
3029
3485
|
*/
|
|
3030
3486
|
approval: {
|
|
3031
3487
|
/**
|
|
@@ -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
|
/**
|
|
@@ -3989,7 +4445,7 @@ class Client$U extends Client$V {
|
|
|
3989
4445
|
},
|
|
3990
4446
|
v4: {
|
|
3991
4447
|
/**
|
|
3992
|
-
*
|
|
4448
|
+
* 事件
|
|
3993
4449
|
*/
|
|
3994
4450
|
approval: {
|
|
3995
4451
|
/**
|
|
@@ -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,6 +25259,168 @@ 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
|
*/
|
|
@@ -24238,199 +25785,332 @@ class Client$H extends Client$I {
|
|
|
24238
25785
|
return Iterable;
|
|
24239
25786
|
}),
|
|
24240
25787
|
/**
|
|
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 }
|
|
25788
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=search&version=v2 click to debug }
|
|
25789
|
+
*
|
|
25790
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=job_change&version=v2 document }
|
|
25791
|
+
*
|
|
25792
|
+
* 获取员工异动列表
|
|
25793
|
+
*/
|
|
25794
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25795
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25796
|
+
return this.httpInstance
|
|
25797
|
+
.request({
|
|
25798
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/search`, path),
|
|
25799
|
+
method: "POST",
|
|
25800
|
+
data,
|
|
25801
|
+
params,
|
|
25802
|
+
headers,
|
|
25803
|
+
})
|
|
25804
|
+
.catch((e) => {
|
|
25805
|
+
this.logger.error(formatErrors(e));
|
|
25806
|
+
throw e;
|
|
25807
|
+
});
|
|
25808
|
+
}),
|
|
25809
|
+
},
|
|
25810
|
+
/**
|
|
25811
|
+
* job_family
|
|
25812
|
+
*/
|
|
25813
|
+
jobFamily: {
|
|
25814
|
+
/**
|
|
25815
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=batch_get&version=v2 click to debug }
|
|
25816
|
+
*
|
|
25817
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_family&version=v2 document }
|
|
25818
|
+
*
|
|
25819
|
+
* 通过序列 ID 批量获取序列信息
|
|
25820
|
+
*/
|
|
25821
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25822
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25823
|
+
return this.httpInstance
|
|
25824
|
+
.request({
|
|
25825
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`, path),
|
|
25826
|
+
method: "POST",
|
|
25827
|
+
data,
|
|
25828
|
+
params,
|
|
25829
|
+
headers,
|
|
25830
|
+
})
|
|
25831
|
+
.catch((e) => {
|
|
25832
|
+
this.logger.error(formatErrors(e));
|
|
25833
|
+
throw e;
|
|
25834
|
+
});
|
|
25835
|
+
}),
|
|
25836
|
+
},
|
|
25837
|
+
/**
|
|
25838
|
+
* job_level
|
|
25839
|
+
*/
|
|
25840
|
+
jobLevel: {
|
|
25841
|
+
/**
|
|
25842
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=batch_get&version=v2 click to debug }
|
|
25843
|
+
*
|
|
25844
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job_level&version=v2 document }
|
|
25845
|
+
*
|
|
25846
|
+
* 通过职级 ID 批量获取职级信息
|
|
25847
|
+
*/
|
|
25848
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25849
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25850
|
+
return this.httpInstance
|
|
25851
|
+
.request({
|
|
25852
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`, path),
|
|
25853
|
+
method: "POST",
|
|
25854
|
+
data,
|
|
25855
|
+
params,
|
|
25856
|
+
headers,
|
|
25857
|
+
})
|
|
25858
|
+
.catch((e) => {
|
|
25859
|
+
this.logger.error(formatErrors(e));
|
|
25860
|
+
throw e;
|
|
25861
|
+
});
|
|
25862
|
+
}),
|
|
25863
|
+
},
|
|
25864
|
+
/**
|
|
25865
|
+
* location
|
|
25866
|
+
*/
|
|
25867
|
+
location: {
|
|
25868
|
+
/**
|
|
25869
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
|
|
25870
|
+
*
|
|
25871
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=location&version=v2 document }
|
|
25872
|
+
*
|
|
25873
|
+
* 通过地点 ID 批量获取地点信息
|
|
25874
|
+
*/
|
|
25875
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25876
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25877
|
+
return this.httpInstance
|
|
25878
|
+
.request({
|
|
25879
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/batch_get`, path),
|
|
25880
|
+
method: "POST",
|
|
25881
|
+
data,
|
|
25882
|
+
params,
|
|
25883
|
+
headers,
|
|
25884
|
+
})
|
|
25885
|
+
.catch((e) => {
|
|
25886
|
+
this.logger.error(formatErrors(e));
|
|
25887
|
+
throw e;
|
|
25888
|
+
});
|
|
25889
|
+
}),
|
|
25890
|
+
},
|
|
25891
|
+
/**
|
|
25892
|
+
* person
|
|
25893
|
+
*/
|
|
25894
|
+
person: {
|
|
25895
|
+
/**
|
|
25896
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v2 click to debug }
|
|
25897
|
+
*
|
|
25898
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=person&version=v2 document }
|
|
25899
|
+
*
|
|
25900
|
+
* 创建个人信息数据
|
|
25901
|
+
*/
|
|
25902
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25903
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25904
|
+
return this.httpInstance
|
|
25905
|
+
.request({
|
|
25906
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/persons`, path),
|
|
25907
|
+
method: "POST",
|
|
25908
|
+
data,
|
|
25909
|
+
params,
|
|
25910
|
+
headers,
|
|
25911
|
+
})
|
|
25912
|
+
.catch((e) => {
|
|
25913
|
+
this.logger.error(formatErrors(e));
|
|
25914
|
+
throw e;
|
|
25915
|
+
});
|
|
25916
|
+
}),
|
|
25917
|
+
/**
|
|
25918
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v2 click to debug }
|
|
25919
|
+
*
|
|
25920
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=person&version=v2 document }
|
|
25921
|
+
*/
|
|
25922
|
+
patch: (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/:person_id`, path),
|
|
25927
|
+
method: "PATCH",
|
|
25928
|
+
data,
|
|
25929
|
+
params,
|
|
25930
|
+
headers,
|
|
25931
|
+
})
|
|
25932
|
+
.catch((e) => {
|
|
25933
|
+
this.logger.error(formatErrors(e));
|
|
25934
|
+
throw e;
|
|
25935
|
+
});
|
|
25936
|
+
}),
|
|
25937
|
+
},
|
|
25938
|
+
/**
|
|
25939
|
+
* 待入职
|
|
25940
|
+
*/
|
|
25941
|
+
preHire: {
|
|
25942
|
+
/**
|
|
25943
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=create&version=v2 click to debug }
|
|
25944
|
+
*
|
|
25945
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create document }
|
|
25946
|
+
*
|
|
25947
|
+
* 创建待入职人员
|
|
25948
|
+
*
|
|
25949
|
+
* 创建待入职人员
|
|
25950
|
+
*/
|
|
25951
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25952
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25953
|
+
return this.httpInstance
|
|
25954
|
+
.request({
|
|
25955
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires`, path),
|
|
25956
|
+
method: "POST",
|
|
25957
|
+
data,
|
|
25958
|
+
params,
|
|
25959
|
+
headers,
|
|
25960
|
+
})
|
|
25961
|
+
.catch((e) => {
|
|
25962
|
+
this.logger.error(formatErrors(e));
|
|
25963
|
+
throw e;
|
|
25964
|
+
});
|
|
25965
|
+
}),
|
|
25966
|
+
},
|
|
25967
|
+
/**
|
|
25968
|
+
* probation.assessment
|
|
25969
|
+
*/
|
|
25970
|
+
probationAssessment: {
|
|
25971
|
+
/**
|
|
25972
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=create&version=v2 click to debug }
|
|
25973
|
+
*
|
|
25974
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=probation.assessment&version=v2 document }
|
|
25975
|
+
*/
|
|
25976
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25978
|
+
return this.httpInstance
|
|
25979
|
+
.request({
|
|
25980
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/assessments`, path),
|
|
25981
|
+
method: "POST",
|
|
25982
|
+
data,
|
|
25983
|
+
params,
|
|
25984
|
+
headers,
|
|
25985
|
+
})
|
|
25986
|
+
.catch((e) => {
|
|
25987
|
+
this.logger.error(formatErrors(e));
|
|
25988
|
+
throw e;
|
|
25989
|
+
});
|
|
25990
|
+
}),
|
|
25991
|
+
/**
|
|
25992
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation.assessment&apiName=delete&version=v2 click to debug }
|
|
25993
|
+
*
|
|
25994
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=probation.assessment&version=v2 document }
|
|
25995
|
+
*/
|
|
25996
|
+
delete: (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/:assessment_id`, path),
|
|
26001
|
+
method: "DELETE",
|
|
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=patch&version=v2 click to debug }
|
|
26013
|
+
*
|
|
26014
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=probation.assessment&version=v2 document }
|
|
26015
|
+
*/
|
|
26016
|
+
patch: (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: "PATCH",
|
|
26022
|
+
data,
|
|
26023
|
+
params,
|
|
26024
|
+
headers,
|
|
26025
|
+
})
|
|
26026
|
+
.catch((e) => {
|
|
26027
|
+
this.logger.error(formatErrors(e));
|
|
26028
|
+
throw e;
|
|
26029
|
+
});
|
|
26030
|
+
}),
|
|
26031
|
+
},
|
|
26032
|
+
/**
|
|
26033
|
+
* probation
|
|
26034
|
+
*/
|
|
26035
|
+
probation: {
|
|
26036
|
+
/**
|
|
26037
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=enable_disable_assessment&version=v2 click to debug }
|
|
26038
|
+
*
|
|
26039
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable_disable_assessment&project=corehr&resource=probation&version=v2 document }
|
|
26040
|
+
*/
|
|
26041
|
+
enableDisableAssessment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26042
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26043
|
+
return this.httpInstance
|
|
26044
|
+
.request({
|
|
26045
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`, path),
|
|
26046
|
+
method: "POST",
|
|
26047
|
+
data,
|
|
26048
|
+
params,
|
|
26049
|
+
headers,
|
|
26050
|
+
})
|
|
26051
|
+
.catch((e) => {
|
|
26052
|
+
this.logger.error(formatErrors(e));
|
|
26053
|
+
throw e;
|
|
26054
|
+
});
|
|
26055
|
+
}),
|
|
26056
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26057
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26058
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
26059
|
+
const res = yield this.httpInstance
|
|
26060
|
+
.request({
|
|
26061
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
|
|
26062
|
+
method: "POST",
|
|
26063
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
26064
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
26065
|
+
})
|
|
26066
|
+
.catch((e) => {
|
|
26067
|
+
this.logger.error(formatErrors(e));
|
|
26068
|
+
});
|
|
26069
|
+
return res;
|
|
26070
|
+
});
|
|
26071
|
+
const Iterable = {
|
|
26072
|
+
[Symbol.asyncIterator]() {
|
|
26073
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
26074
|
+
let hasMore = true;
|
|
26075
|
+
let pageToken;
|
|
26076
|
+
while (hasMore) {
|
|
26077
|
+
try {
|
|
26078
|
+
const res = yield __await(sendRequest({
|
|
26079
|
+
headers,
|
|
26080
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
26081
|
+
data,
|
|
26082
|
+
}));
|
|
26083
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
26084
|
+
// @ts-ignore
|
|
26085
|
+
has_more,
|
|
26086
|
+
// @ts-ignore
|
|
26087
|
+
page_token,
|
|
26088
|
+
// @ts-ignore
|
|
26089
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
26090
|
+
yield yield __await(rest);
|
|
26091
|
+
hasMore = Boolean(has_more);
|
|
26092
|
+
pageToken = page_token || next_page_token;
|
|
26093
|
+
}
|
|
26094
|
+
catch (e) {
|
|
26095
|
+
yield yield __await(null);
|
|
26096
|
+
break;
|
|
26097
|
+
}
|
|
26098
|
+
}
|
|
26099
|
+
});
|
|
26100
|
+
},
|
|
26101
|
+
};
|
|
26102
|
+
return Iterable;
|
|
26103
|
+
}),
|
|
26104
|
+
/**
|
|
26105
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=probation&apiName=search&version=v2 click to debug }
|
|
24244
26106
|
*
|
|
24245
|
-
*
|
|
26107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=probation&version=v2 document }
|
|
24246
26108
|
*/
|
|
24247
26109
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24248
26110
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24249
26111
|
return this.httpInstance
|
|
24250
26112
|
.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),
|
|
26113
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/probation/search`, path),
|
|
24434
26114
|
method: "POST",
|
|
24435
26115
|
data,
|
|
24436
26116
|
params,
|
|
@@ -24441,62 +26121,22 @@ class Client$H extends Client$I {
|
|
|
24441
26121
|
throw e;
|
|
24442
26122
|
});
|
|
24443
26123
|
}),
|
|
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
26124
|
},
|
|
24485
26125
|
/**
|
|
24486
|
-
*
|
|
26126
|
+
* process
|
|
24487
26127
|
*/
|
|
24488
|
-
|
|
26128
|
+
process: {
|
|
24489
26129
|
/**
|
|
24490
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
26130
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=get&version=v2 click to debug }
|
|
24491
26131
|
*
|
|
24492
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
26132
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=process&version=v2 document }
|
|
24493
26133
|
*/
|
|
24494
|
-
|
|
26134
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24495
26135
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24496
26136
|
return this.httpInstance
|
|
24497
26137
|
.request({
|
|
24498
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24499
|
-
method: "
|
|
26138
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id`, path),
|
|
26139
|
+
method: "GET",
|
|
24500
26140
|
data,
|
|
24501
26141
|
params,
|
|
24502
26142
|
headers,
|
|
@@ -24506,13 +26146,13 @@ class Client$H extends Client$I {
|
|
|
24506
26146
|
throw e;
|
|
24507
26147
|
});
|
|
24508
26148
|
}),
|
|
24509
|
-
|
|
26149
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24510
26150
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24511
26151
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
24512
26152
|
const res = yield this.httpInstance
|
|
24513
26153
|
.request({
|
|
24514
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24515
|
-
method: "
|
|
26154
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
|
|
26155
|
+
method: "GET",
|
|
24516
26156
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
24517
26157
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
24518
26158
|
})
|
|
@@ -24555,16 +26195,16 @@ class Client$H extends Client$I {
|
|
|
24555
26195
|
return Iterable;
|
|
24556
26196
|
}),
|
|
24557
26197
|
/**
|
|
24558
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
26198
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
|
|
24559
26199
|
*
|
|
24560
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
26200
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
|
|
24561
26201
|
*/
|
|
24562
|
-
|
|
26202
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24563
26203
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24564
26204
|
return this.httpInstance
|
|
24565
26205
|
.request({
|
|
24566
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
24567
|
-
method: "
|
|
26206
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
|
|
26207
|
+
method: "GET",
|
|
24568
26208
|
data,
|
|
24569
26209
|
params,
|
|
24570
26210
|
headers,
|
|
@@ -24581,7 +26221,7 @@ class Client$H extends Client$I {
|
|
|
24581
26221
|
}
|
|
24582
26222
|
|
|
24583
26223
|
// auto gen
|
|
24584
|
-
class Client$
|
|
26224
|
+
class Client$H extends Client$I {
|
|
24585
26225
|
constructor() {
|
|
24586
26226
|
super(...arguments);
|
|
24587
26227
|
/**
|
|
@@ -24592,7 +26232,7 @@ class Client$G extends Client$H {
|
|
|
24592
26232
|
}
|
|
24593
26233
|
|
|
24594
26234
|
// auto gen
|
|
24595
|
-
class Client$
|
|
26235
|
+
class Client$G extends Client$H {
|
|
24596
26236
|
constructor() {
|
|
24597
26237
|
super(...arguments);
|
|
24598
26238
|
/**
|
|
@@ -24808,6 +26448,32 @@ class Client$F extends Client$G {
|
|
|
24808
26448
|
return get__default["default"](res, "data", null);
|
|
24809
26449
|
}),
|
|
24810
26450
|
},
|
|
26451
|
+
/**
|
|
26452
|
+
* health_certificate
|
|
26453
|
+
*/
|
|
26454
|
+
healthCertificate: {
|
|
26455
|
+
/**
|
|
26456
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=health_certificate&apiName=recognize&version=v1 click to debug }
|
|
26457
|
+
*
|
|
26458
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=health_certificate&version=v1 document }
|
|
26459
|
+
*/
|
|
26460
|
+
recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26461
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26462
|
+
const res = yield this.httpInstance
|
|
26463
|
+
.request({
|
|
26464
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`, path),
|
|
26465
|
+
method: "POST",
|
|
26466
|
+
data,
|
|
26467
|
+
params,
|
|
26468
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26469
|
+
})
|
|
26470
|
+
.catch((e) => {
|
|
26471
|
+
this.logger.error(formatErrors(e));
|
|
26472
|
+
throw e;
|
|
26473
|
+
});
|
|
26474
|
+
return get__default["default"](res, "data", null);
|
|
26475
|
+
}),
|
|
26476
|
+
},
|
|
24811
26477
|
/**
|
|
24812
26478
|
* hkm_mainland_travel_permit
|
|
24813
26479
|
*/
|
|
@@ -24860,6 +26526,32 @@ class Client$F extends Client$G {
|
|
|
24860
26526
|
return get__default["default"](res, "data", null);
|
|
24861
26527
|
}),
|
|
24862
26528
|
},
|
|
26529
|
+
/**
|
|
26530
|
+
* resume
|
|
26531
|
+
*/
|
|
26532
|
+
resume: {
|
|
26533
|
+
/**
|
|
26534
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=resume&apiName=parse&version=v1 click to debug }
|
|
26535
|
+
*
|
|
26536
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=parse&project=document_ai&resource=resume&version=v1 document }
|
|
26537
|
+
*/
|
|
26538
|
+
parse: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26539
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26540
|
+
const res = yield this.httpInstance
|
|
26541
|
+
.request({
|
|
26542
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/resume/parse`, path),
|
|
26543
|
+
method: "POST",
|
|
26544
|
+
data,
|
|
26545
|
+
params,
|
|
26546
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26547
|
+
})
|
|
26548
|
+
.catch((e) => {
|
|
26549
|
+
this.logger.error(formatErrors(e));
|
|
26550
|
+
throw e;
|
|
26551
|
+
});
|
|
26552
|
+
return get__default["default"](res, "data", null);
|
|
26553
|
+
}),
|
|
26554
|
+
},
|
|
24863
26555
|
/**
|
|
24864
26556
|
* taxi_invoice
|
|
24865
26557
|
*/
|
|
@@ -24964,6 +26656,32 @@ class Client$F extends Client$G {
|
|
|
24964
26656
|
return get__default["default"](res, "data", null);
|
|
24965
26657
|
}),
|
|
24966
26658
|
},
|
|
26659
|
+
/**
|
|
26660
|
+
* vehicle_invoice
|
|
26661
|
+
*/
|
|
26662
|
+
vehicleInvoice: {
|
|
26663
|
+
/**
|
|
26664
|
+
* {@link https://open.feishu.cn/api-explorer?project=document_ai&resource=vehicle_invoice&apiName=recognize&version=v1 click to debug }
|
|
26665
|
+
*
|
|
26666
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recognize&project=document_ai&resource=vehicle_invoice&version=v1 document }
|
|
26667
|
+
*/
|
|
26668
|
+
recognize: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26669
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26670
|
+
const res = yield this.httpInstance
|
|
26671
|
+
.request({
|
|
26672
|
+
url: fillApiPath(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`, path),
|
|
26673
|
+
method: "POST",
|
|
26674
|
+
data,
|
|
26675
|
+
params,
|
|
26676
|
+
headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
|
|
26677
|
+
})
|
|
26678
|
+
.catch((e) => {
|
|
26679
|
+
this.logger.error(formatErrors(e));
|
|
26680
|
+
throw e;
|
|
26681
|
+
});
|
|
26682
|
+
return get__default["default"](res, "data", null);
|
|
26683
|
+
}),
|
|
26684
|
+
},
|
|
24967
26685
|
/**
|
|
24968
26686
|
* vehicle_license
|
|
24969
26687
|
*/
|
|
@@ -24996,7 +26714,7 @@ class Client$F extends Client$G {
|
|
|
24996
26714
|
}
|
|
24997
26715
|
|
|
24998
26716
|
// auto gen
|
|
24999
|
-
class Client$
|
|
26717
|
+
class Client$F extends Client$G {
|
|
25000
26718
|
constructor() {
|
|
25001
26719
|
super(...arguments);
|
|
25002
26720
|
/**
|
|
@@ -25792,7 +27510,7 @@ class Client$E extends Client$F {
|
|
|
25792
27510
|
}
|
|
25793
27511
|
|
|
25794
27512
|
// auto gen
|
|
25795
|
-
class Client$
|
|
27513
|
+
class Client$E extends Client$F {
|
|
25796
27514
|
constructor() {
|
|
25797
27515
|
super(...arguments);
|
|
25798
27516
|
/**
|
|
@@ -26190,7 +27908,7 @@ class Client$D extends Client$E {
|
|
|
26190
27908
|
}),
|
|
26191
27909
|
},
|
|
26192
27910
|
/**
|
|
26193
|
-
*
|
|
27911
|
+
* 事件
|
|
26194
27912
|
*/
|
|
26195
27913
|
file: {
|
|
26196
27914
|
/**
|
|
@@ -27884,7 +29602,7 @@ class Client$D extends Client$E {
|
|
|
27884
29602
|
}),
|
|
27885
29603
|
},
|
|
27886
29604
|
/**
|
|
27887
|
-
*
|
|
29605
|
+
* 事件
|
|
27888
29606
|
*/
|
|
27889
29607
|
file: {
|
|
27890
29608
|
/**
|
|
@@ -29187,12 +30905,59 @@ class Client$D extends Client$E {
|
|
|
29187
30905
|
}),
|
|
29188
30906
|
},
|
|
29189
30907
|
},
|
|
30908
|
+
v2: {
|
|
30909
|
+
/**
|
|
30910
|
+
* permission.public
|
|
30911
|
+
*/
|
|
30912
|
+
permissionPublic: {
|
|
30913
|
+
/**
|
|
30914
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v2 click to debug }
|
|
30915
|
+
*
|
|
30916
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=drive&resource=permission.public&version=v2 document }
|
|
30917
|
+
*/
|
|
30918
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30919
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30920
|
+
return this.httpInstance
|
|
30921
|
+
.request({
|
|
30922
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/permissions/:token/public`, path),
|
|
30923
|
+
method: "GET",
|
|
30924
|
+
data,
|
|
30925
|
+
params,
|
|
30926
|
+
headers,
|
|
30927
|
+
})
|
|
30928
|
+
.catch((e) => {
|
|
30929
|
+
this.logger.error(formatErrors(e));
|
|
30930
|
+
throw e;
|
|
30931
|
+
});
|
|
30932
|
+
}),
|
|
30933
|
+
/**
|
|
30934
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v2 click to debug }
|
|
30935
|
+
*
|
|
30936
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=drive&resource=permission.public&version=v2 document }
|
|
30937
|
+
*/
|
|
30938
|
+
patch: (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: "PATCH",
|
|
30944
|
+
data,
|
|
30945
|
+
params,
|
|
30946
|
+
headers,
|
|
30947
|
+
})
|
|
30948
|
+
.catch((e) => {
|
|
30949
|
+
this.logger.error(formatErrors(e));
|
|
30950
|
+
throw e;
|
|
30951
|
+
});
|
|
30952
|
+
}),
|
|
30953
|
+
},
|
|
30954
|
+
},
|
|
29190
30955
|
};
|
|
29191
30956
|
}
|
|
29192
30957
|
}
|
|
29193
30958
|
|
|
29194
30959
|
// auto gen
|
|
29195
|
-
class Client$
|
|
30960
|
+
class Client$D extends Client$E {
|
|
29196
30961
|
constructor() {
|
|
29197
30962
|
super(...arguments);
|
|
29198
30963
|
/**
|
|
@@ -29203,7 +30968,7 @@ class Client$C extends Client$D {
|
|
|
29203
30968
|
}
|
|
29204
30969
|
|
|
29205
30970
|
// auto gen
|
|
29206
|
-
class Client$
|
|
30971
|
+
class Client$C extends Client$D {
|
|
29207
30972
|
constructor() {
|
|
29208
30973
|
super(...arguments);
|
|
29209
30974
|
/**
|
|
@@ -29463,7 +31228,7 @@ class Client$B extends Client$C {
|
|
|
29463
31228
|
}
|
|
29464
31229
|
|
|
29465
31230
|
// auto gen
|
|
29466
|
-
class Client$
|
|
31231
|
+
class Client$B extends Client$C {
|
|
29467
31232
|
constructor() {
|
|
29468
31233
|
super(...arguments);
|
|
29469
31234
|
/**
|
|
@@ -29474,7 +31239,7 @@ class Client$A extends Client$B {
|
|
|
29474
31239
|
}
|
|
29475
31240
|
|
|
29476
31241
|
// auto gen
|
|
29477
|
-
class Client$
|
|
31242
|
+
class Client$A extends Client$B {
|
|
29478
31243
|
constructor() {
|
|
29479
31244
|
super(...arguments);
|
|
29480
31245
|
/**
|
|
@@ -29646,7 +31411,7 @@ class Client$z extends Client$A {
|
|
|
29646
31411
|
}
|
|
29647
31412
|
|
|
29648
31413
|
// auto gen
|
|
29649
|
-
class Client$
|
|
31414
|
+
class Client$z extends Client$A {
|
|
29650
31415
|
constructor() {
|
|
29651
31416
|
super(...arguments);
|
|
29652
31417
|
/**
|
|
@@ -29657,7 +31422,7 @@ class Client$y extends Client$z {
|
|
|
29657
31422
|
}
|
|
29658
31423
|
|
|
29659
31424
|
// auto gen
|
|
29660
|
-
class Client$
|
|
31425
|
+
class Client$y extends Client$z {
|
|
29661
31426
|
constructor() {
|
|
29662
31427
|
super(...arguments);
|
|
29663
31428
|
/**
|
|
@@ -29668,7 +31433,7 @@ class Client$x extends Client$y {
|
|
|
29668
31433
|
}
|
|
29669
31434
|
|
|
29670
31435
|
// auto gen
|
|
29671
|
-
class Client$
|
|
31436
|
+
class Client$x extends Client$y {
|
|
29672
31437
|
constructor() {
|
|
29673
31438
|
super(...arguments);
|
|
29674
31439
|
/**
|
|
@@ -29679,7 +31444,7 @@ class Client$w extends Client$x {
|
|
|
29679
31444
|
}
|
|
29680
31445
|
|
|
29681
31446
|
// auto gen
|
|
29682
|
-
class Client$
|
|
31447
|
+
class Client$w extends Client$x {
|
|
29683
31448
|
constructor() {
|
|
29684
31449
|
super(...arguments);
|
|
29685
31450
|
/**
|
|
@@ -29919,7 +31684,7 @@ class Client$v extends Client$w {
|
|
|
29919
31684
|
}
|
|
29920
31685
|
|
|
29921
31686
|
// auto gen
|
|
29922
|
-
class Client$
|
|
31687
|
+
class Client$v extends Client$w {
|
|
29923
31688
|
constructor() {
|
|
29924
31689
|
super(...arguments);
|
|
29925
31690
|
/**
|
|
@@ -32811,7 +34576,7 @@ class Client$u extends Client$v {
|
|
|
32811
34576
|
}
|
|
32812
34577
|
|
|
32813
34578
|
// auto gen
|
|
32814
|
-
class Client$
|
|
34579
|
+
class Client$u extends Client$v {
|
|
32815
34580
|
constructor() {
|
|
32816
34581
|
super(...arguments);
|
|
32817
34582
|
/**
|
|
@@ -33935,6 +35700,50 @@ class Client$t extends Client$u {
|
|
|
33935
35700
|
throw e;
|
|
33936
35701
|
});
|
|
33937
35702
|
}),
|
|
35703
|
+
/**
|
|
35704
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
35705
|
+
*
|
|
35706
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
|
|
35707
|
+
*
|
|
35708
|
+
* 获取职位列表
|
|
35709
|
+
*
|
|
35710
|
+
* 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
|
|
35711
|
+
*/
|
|
35712
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
35713
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
35714
|
+
return this.httpInstance
|
|
35715
|
+
.request({
|
|
35716
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
|
|
35717
|
+
method: "GET",
|
|
35718
|
+
data,
|
|
35719
|
+
params,
|
|
35720
|
+
headers,
|
|
35721
|
+
})
|
|
35722
|
+
.catch((e) => {
|
|
35723
|
+
this.logger.error(formatErrors(e));
|
|
35724
|
+
throw e;
|
|
35725
|
+
});
|
|
35726
|
+
}),
|
|
35727
|
+
/**
|
|
35728
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
|
|
35729
|
+
*
|
|
35730
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
|
|
35731
|
+
*/
|
|
35732
|
+
recruiter: (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/:job_id/recruiter`, 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
|
+
}),
|
|
33938
35747
|
/**
|
|
33939
35748
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
|
|
33940
35749
|
*
|
|
@@ -34980,6 +36789,30 @@ class Client$t extends Client$u {
|
|
|
34980
36789
|
throw e;
|
|
34981
36790
|
});
|
|
34982
36791
|
}),
|
|
36792
|
+
/**
|
|
36793
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
|
|
36794
|
+
*
|
|
36795
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
|
|
36796
|
+
*
|
|
36797
|
+
* 获取人才列表
|
|
36798
|
+
*
|
|
36799
|
+
* 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
|
|
36800
|
+
*/
|
|
36801
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
36802
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
36803
|
+
return this.httpInstance
|
|
36804
|
+
.request({
|
|
36805
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
|
|
36806
|
+
method: "GET",
|
|
36807
|
+
data,
|
|
36808
|
+
params,
|
|
36809
|
+
headers,
|
|
36810
|
+
})
|
|
36811
|
+
.catch((e) => {
|
|
36812
|
+
this.logger.error(formatErrors(e));
|
|
36813
|
+
throw e;
|
|
36814
|
+
});
|
|
36815
|
+
}),
|
|
34983
36816
|
},
|
|
34984
36817
|
/**
|
|
34985
36818
|
* talent_folder
|
|
@@ -36205,6 +38038,50 @@ class Client$t extends Client$u {
|
|
|
36205
38038
|
throw e;
|
|
36206
38039
|
});
|
|
36207
38040
|
}),
|
|
38041
|
+
/**
|
|
38042
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
38043
|
+
*
|
|
38044
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/list document }
|
|
38045
|
+
*
|
|
38046
|
+
* 获取职位列表
|
|
38047
|
+
*
|
|
38048
|
+
* 根据更新时间获取职位列表,仅支持获取默认字段信息,获取详细信息可调用[获取职位详细](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get)接口
|
|
38049
|
+
*/
|
|
38050
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38051
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38052
|
+
return this.httpInstance
|
|
38053
|
+
.request({
|
|
38054
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs`, path),
|
|
38055
|
+
method: "GET",
|
|
38056
|
+
data,
|
|
38057
|
+
params,
|
|
38058
|
+
headers,
|
|
38059
|
+
})
|
|
38060
|
+
.catch((e) => {
|
|
38061
|
+
this.logger.error(formatErrors(e));
|
|
38062
|
+
throw e;
|
|
38063
|
+
});
|
|
38064
|
+
}),
|
|
38065
|
+
/**
|
|
38066
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=recruiter&version=v1 click to debug }
|
|
38067
|
+
*
|
|
38068
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=recruiter&project=hire&resource=job&version=v1 document }
|
|
38069
|
+
*/
|
|
38070
|
+
recruiter: (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/:job_id/recruiter`, 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
|
+
}),
|
|
36208
38085
|
/**
|
|
36209
38086
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
|
|
36210
38087
|
*
|
|
@@ -37250,6 +39127,30 @@ class Client$t extends Client$u {
|
|
|
37250
39127
|
throw e;
|
|
37251
39128
|
});
|
|
37252
39129
|
}),
|
|
39130
|
+
/**
|
|
39131
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=list&version=v1 click to debug }
|
|
39132
|
+
*
|
|
39133
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/list document }
|
|
39134
|
+
*
|
|
39135
|
+
* 获取人才列表
|
|
39136
|
+
*
|
|
39137
|
+
* 根据更新时间获取人才列表,仅支持获取默认字段信息,获取详细信息可调用「获取人才详细」接口
|
|
39138
|
+
*/
|
|
39139
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39140
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39141
|
+
return this.httpInstance
|
|
39142
|
+
.request({
|
|
39143
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents`, path),
|
|
39144
|
+
method: "GET",
|
|
39145
|
+
data,
|
|
39146
|
+
params,
|
|
39147
|
+
headers,
|
|
39148
|
+
})
|
|
39149
|
+
.catch((e) => {
|
|
39150
|
+
this.logger.error(formatErrors(e));
|
|
39151
|
+
throw e;
|
|
39152
|
+
});
|
|
39153
|
+
}),
|
|
37253
39154
|
},
|
|
37254
39155
|
/**
|
|
37255
39156
|
* talent_folder
|
|
@@ -37363,7 +39264,7 @@ class Client$t extends Client$u {
|
|
|
37363
39264
|
}
|
|
37364
39265
|
|
|
37365
39266
|
// auto gen
|
|
37366
|
-
class Client$
|
|
39267
|
+
class Client$t extends Client$u {
|
|
37367
39268
|
constructor() {
|
|
37368
39269
|
super(...arguments);
|
|
37369
39270
|
/**
|
|
@@ -37439,7 +39340,7 @@ class Client$s extends Client$t {
|
|
|
37439
39340
|
}
|
|
37440
39341
|
|
|
37441
39342
|
// auto gen
|
|
37442
|
-
class Client$
|
|
39343
|
+
class Client$s extends Client$t {
|
|
37443
39344
|
constructor() {
|
|
37444
39345
|
super(...arguments);
|
|
37445
39346
|
/**
|
|
@@ -38693,7 +40594,7 @@ class Client$r extends Client$s {
|
|
|
38693
40594
|
}),
|
|
38694
40595
|
},
|
|
38695
40596
|
/**
|
|
38696
|
-
* 消息
|
|
40597
|
+
* 消息 - 消息卡片
|
|
38697
40598
|
*/
|
|
38698
40599
|
message: {
|
|
38699
40600
|
/**
|
|
@@ -39481,6 +41382,33 @@ class Client$r extends Client$s {
|
|
|
39481
41382
|
});
|
|
39482
41383
|
}),
|
|
39483
41384
|
},
|
|
41385
|
+
/**
|
|
41386
|
+
* thread
|
|
41387
|
+
*/
|
|
41388
|
+
thread: {
|
|
41389
|
+
/**
|
|
41390
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
|
|
41391
|
+
*
|
|
41392
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
|
|
41393
|
+
*
|
|
41394
|
+
* 转发
|
|
41395
|
+
*/
|
|
41396
|
+
forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41397
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41398
|
+
return this.httpInstance
|
|
41399
|
+
.request({
|
|
41400
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
|
|
41401
|
+
method: "POST",
|
|
41402
|
+
data,
|
|
41403
|
+
params,
|
|
41404
|
+
headers,
|
|
41405
|
+
})
|
|
41406
|
+
.catch((e) => {
|
|
41407
|
+
this.logger.error(formatErrors(e));
|
|
41408
|
+
throw e;
|
|
41409
|
+
});
|
|
41410
|
+
}),
|
|
41411
|
+
},
|
|
39484
41412
|
v1: {
|
|
39485
41413
|
/**
|
|
39486
41414
|
* 消息 - 批量消息
|
|
@@ -40729,7 +42657,7 @@ class Client$r extends Client$s {
|
|
|
40729
42657
|
}),
|
|
40730
42658
|
},
|
|
40731
42659
|
/**
|
|
40732
|
-
* 消息
|
|
42660
|
+
* 消息 - 消息卡片
|
|
40733
42661
|
*/
|
|
40734
42662
|
message: {
|
|
40735
42663
|
/**
|
|
@@ -41517,13 +43445,40 @@ class Client$r extends Client$s {
|
|
|
41517
43445
|
});
|
|
41518
43446
|
}),
|
|
41519
43447
|
},
|
|
43448
|
+
/**
|
|
43449
|
+
* thread
|
|
43450
|
+
*/
|
|
43451
|
+
thread: {
|
|
43452
|
+
/**
|
|
43453
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=thread&apiName=forward&version=v1 click to debug }
|
|
43454
|
+
*
|
|
43455
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=thread&version=v1 document }
|
|
43456
|
+
*
|
|
43457
|
+
* 转发
|
|
43458
|
+
*/
|
|
43459
|
+
forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43460
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43461
|
+
return this.httpInstance
|
|
43462
|
+
.request({
|
|
43463
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`, path),
|
|
43464
|
+
method: "POST",
|
|
43465
|
+
data,
|
|
43466
|
+
params,
|
|
43467
|
+
headers,
|
|
43468
|
+
})
|
|
43469
|
+
.catch((e) => {
|
|
43470
|
+
this.logger.error(formatErrors(e));
|
|
43471
|
+
throw e;
|
|
43472
|
+
});
|
|
43473
|
+
}),
|
|
43474
|
+
},
|
|
41520
43475
|
},
|
|
41521
43476
|
};
|
|
41522
43477
|
}
|
|
41523
43478
|
}
|
|
41524
43479
|
|
|
41525
43480
|
// auto gen
|
|
41526
|
-
class Client$
|
|
43481
|
+
class Client$r extends Client$s {
|
|
41527
43482
|
constructor() {
|
|
41528
43483
|
super(...arguments);
|
|
41529
43484
|
/**
|
|
@@ -41673,6 +43628,26 @@ class Client$q extends Client$r {
|
|
|
41673
43628
|
throw e;
|
|
41674
43629
|
});
|
|
41675
43630
|
}),
|
|
43631
|
+
/**
|
|
43632
|
+
* {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=delete&version=v1 click to debug }
|
|
43633
|
+
*
|
|
43634
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=lingo&resource=entity&version=v1 document }
|
|
43635
|
+
*/
|
|
43636
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43637
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43638
|
+
return this.httpInstance
|
|
43639
|
+
.request({
|
|
43640
|
+
url: fillApiPath(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`, path),
|
|
43641
|
+
method: "DELETE",
|
|
43642
|
+
data,
|
|
43643
|
+
params,
|
|
43644
|
+
headers,
|
|
43645
|
+
})
|
|
43646
|
+
.catch((e) => {
|
|
43647
|
+
this.logger.error(formatErrors(e));
|
|
43648
|
+
throw e;
|
|
43649
|
+
});
|
|
43650
|
+
}),
|
|
41676
43651
|
/**
|
|
41677
43652
|
* {@link https://open.feishu.cn/api-explorer?project=lingo&resource=entity&apiName=get&version=v1 click to debug }
|
|
41678
43653
|
*
|
|
@@ -41982,7 +43957,7 @@ class Client$q extends Client$r {
|
|
|
41982
43957
|
}
|
|
41983
43958
|
|
|
41984
43959
|
// auto gen
|
|
41985
|
-
class Client$
|
|
43960
|
+
class Client$q extends Client$r {
|
|
41986
43961
|
constructor() {
|
|
41987
43962
|
super(...arguments);
|
|
41988
43963
|
/**
|
|
@@ -44890,7 +46865,7 @@ class Client$p extends Client$q {
|
|
|
44890
46865
|
}
|
|
44891
46866
|
|
|
44892
46867
|
// auto gen
|
|
44893
|
-
class Client$
|
|
46868
|
+
class Client$p extends Client$q {
|
|
44894
46869
|
constructor() {
|
|
44895
46870
|
super(...arguments);
|
|
44896
46871
|
/**
|
|
@@ -45010,7 +46985,7 @@ class Client$o extends Client$p {
|
|
|
45010
46985
|
}
|
|
45011
46986
|
|
|
45012
46987
|
// auto gen
|
|
45013
|
-
class Client$
|
|
46988
|
+
class Client$o extends Client$p {
|
|
45014
46989
|
constructor() {
|
|
45015
46990
|
super(...arguments);
|
|
45016
46991
|
/**
|
|
@@ -45021,7 +46996,7 @@ class Client$n extends Client$o {
|
|
|
45021
46996
|
}
|
|
45022
46997
|
|
|
45023
46998
|
// auto gen
|
|
45024
|
-
class Client$
|
|
46999
|
+
class Client$n extends Client$o {
|
|
45025
47000
|
constructor() {
|
|
45026
47001
|
super(...arguments);
|
|
45027
47002
|
/**
|
|
@@ -45032,7 +47007,7 @@ class Client$m extends Client$n {
|
|
|
45032
47007
|
}
|
|
45033
47008
|
|
|
45034
47009
|
// auto gen
|
|
45035
|
-
class Client$
|
|
47010
|
+
class Client$m extends Client$n {
|
|
45036
47011
|
constructor() {
|
|
45037
47012
|
super(...arguments);
|
|
45038
47013
|
/**
|
|
@@ -45104,6 +47079,30 @@ class Client$l extends Client$m {
|
|
|
45104
47079
|
* OKR周期
|
|
45105
47080
|
*/
|
|
45106
47081
|
period: {
|
|
47082
|
+
/**
|
|
47083
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
|
|
47084
|
+
*
|
|
47085
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
|
|
47086
|
+
*
|
|
47087
|
+
* 创建 OKR 周期
|
|
47088
|
+
*
|
|
47089
|
+
* 根据周期规则创建一个 OKR 周期
|
|
47090
|
+
*/
|
|
47091
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47092
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47093
|
+
return this.httpInstance
|
|
47094
|
+
.request({
|
|
47095
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
|
|
47096
|
+
method: "POST",
|
|
47097
|
+
data,
|
|
47098
|
+
params,
|
|
47099
|
+
headers,
|
|
47100
|
+
})
|
|
47101
|
+
.catch((e) => {
|
|
47102
|
+
this.logger.error(formatErrors(e));
|
|
47103
|
+
throw e;
|
|
47104
|
+
});
|
|
47105
|
+
}),
|
|
45107
47106
|
/**
|
|
45108
47107
|
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
|
|
45109
47108
|
*
|
|
@@ -45130,6 +47129,59 @@ class Client$l extends Client$m {
|
|
|
45130
47129
|
throw e;
|
|
45131
47130
|
});
|
|
45132
47131
|
}),
|
|
47132
|
+
/**
|
|
47133
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
|
|
47134
|
+
*
|
|
47135
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
|
|
47136
|
+
*
|
|
47137
|
+
* 修改 OKR 周期状态
|
|
47138
|
+
*
|
|
47139
|
+
* 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
|
|
47140
|
+
*/
|
|
47141
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47142
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47143
|
+
return this.httpInstance
|
|
47144
|
+
.request({
|
|
47145
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
|
|
47146
|
+
method: "PATCH",
|
|
47147
|
+
data,
|
|
47148
|
+
params,
|
|
47149
|
+
headers,
|
|
47150
|
+
})
|
|
47151
|
+
.catch((e) => {
|
|
47152
|
+
this.logger.error(formatErrors(e));
|
|
47153
|
+
throw e;
|
|
47154
|
+
});
|
|
47155
|
+
}),
|
|
47156
|
+
},
|
|
47157
|
+
/**
|
|
47158
|
+
* 周期规则
|
|
47159
|
+
*/
|
|
47160
|
+
periodRule: {
|
|
47161
|
+
/**
|
|
47162
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
|
|
47163
|
+
*
|
|
47164
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
|
|
47165
|
+
*
|
|
47166
|
+
* 获取 OKR 周期规则
|
|
47167
|
+
*
|
|
47168
|
+
* 获取租户的周期规则列表
|
|
47169
|
+
*/
|
|
47170
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47171
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47172
|
+
return this.httpInstance
|
|
47173
|
+
.request({
|
|
47174
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
|
|
47175
|
+
method: "GET",
|
|
47176
|
+
data,
|
|
47177
|
+
params,
|
|
47178
|
+
headers,
|
|
47179
|
+
})
|
|
47180
|
+
.catch((e) => {
|
|
47181
|
+
this.logger.error(formatErrors(e));
|
|
47182
|
+
throw e;
|
|
47183
|
+
});
|
|
47184
|
+
}),
|
|
45133
47185
|
},
|
|
45134
47186
|
/**
|
|
45135
47187
|
* OKR进展记录
|
|
@@ -45329,6 +47381,30 @@ class Client$l extends Client$m {
|
|
|
45329
47381
|
* OKR周期
|
|
45330
47382
|
*/
|
|
45331
47383
|
period: {
|
|
47384
|
+
/**
|
|
47385
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=create&version=v1 click to debug }
|
|
47386
|
+
*
|
|
47387
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/create document }
|
|
47388
|
+
*
|
|
47389
|
+
* 创建 OKR 周期
|
|
47390
|
+
*
|
|
47391
|
+
* 根据周期规则创建一个 OKR 周期
|
|
47392
|
+
*/
|
|
47393
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47394
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47395
|
+
return this.httpInstance
|
|
47396
|
+
.request({
|
|
47397
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods`, path),
|
|
47398
|
+
method: "POST",
|
|
47399
|
+
data,
|
|
47400
|
+
params,
|
|
47401
|
+
headers,
|
|
47402
|
+
})
|
|
47403
|
+
.catch((e) => {
|
|
47404
|
+
this.logger.error(formatErrors(e));
|
|
47405
|
+
throw e;
|
|
47406
|
+
});
|
|
47407
|
+
}),
|
|
45332
47408
|
/**
|
|
45333
47409
|
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=list&version=v1 click to debug }
|
|
45334
47410
|
*
|
|
@@ -45355,6 +47431,59 @@ class Client$l extends Client$m {
|
|
|
45355
47431
|
throw e;
|
|
45356
47432
|
});
|
|
45357
47433
|
}),
|
|
47434
|
+
/**
|
|
47435
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period&apiName=patch&version=v1 click to debug }
|
|
47436
|
+
*
|
|
47437
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period/patch document }
|
|
47438
|
+
*
|
|
47439
|
+
* 修改 OKR 周期状态
|
|
47440
|
+
*
|
|
47441
|
+
* 修改某个 OKR 周期的状态为「正常」、「失效」或「隐藏」,对租户所有人生效,请谨慎操作
|
|
47442
|
+
*/
|
|
47443
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47444
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47445
|
+
return this.httpInstance
|
|
47446
|
+
.request({
|
|
47447
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/periods/:period_id`, path),
|
|
47448
|
+
method: "PATCH",
|
|
47449
|
+
data,
|
|
47450
|
+
params,
|
|
47451
|
+
headers,
|
|
47452
|
+
})
|
|
47453
|
+
.catch((e) => {
|
|
47454
|
+
this.logger.error(formatErrors(e));
|
|
47455
|
+
throw e;
|
|
47456
|
+
});
|
|
47457
|
+
}),
|
|
47458
|
+
},
|
|
47459
|
+
/**
|
|
47460
|
+
* 周期规则
|
|
47461
|
+
*/
|
|
47462
|
+
periodRule: {
|
|
47463
|
+
/**
|
|
47464
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=period_rule&apiName=list&version=v1 click to debug }
|
|
47465
|
+
*
|
|
47466
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/period_rule/list document }
|
|
47467
|
+
*
|
|
47468
|
+
* 获取 OKR 周期规则
|
|
47469
|
+
*
|
|
47470
|
+
* 获取租户的周期规则列表
|
|
47471
|
+
*/
|
|
47472
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47473
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47474
|
+
return this.httpInstance
|
|
47475
|
+
.request({
|
|
47476
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/period_rules`, path),
|
|
47477
|
+
method: "GET",
|
|
47478
|
+
data,
|
|
47479
|
+
params,
|
|
47480
|
+
headers,
|
|
47481
|
+
})
|
|
47482
|
+
.catch((e) => {
|
|
47483
|
+
this.logger.error(formatErrors(e));
|
|
47484
|
+
throw e;
|
|
47485
|
+
});
|
|
47486
|
+
}),
|
|
45358
47487
|
},
|
|
45359
47488
|
/**
|
|
45360
47489
|
* OKR进展记录
|
|
@@ -45494,7 +47623,7 @@ class Client$l extends Client$m {
|
|
|
45494
47623
|
}
|
|
45495
47624
|
|
|
45496
47625
|
// auto gen
|
|
45497
|
-
class Client$
|
|
47626
|
+
class Client$l extends Client$m {
|
|
45498
47627
|
constructor() {
|
|
45499
47628
|
super(...arguments);
|
|
45500
47629
|
/**
|
|
@@ -45570,7 +47699,7 @@ class Client$k extends Client$l {
|
|
|
45570
47699
|
}
|
|
45571
47700
|
|
|
45572
47701
|
// auto gen
|
|
45573
|
-
class Client$
|
|
47702
|
+
class Client$k extends Client$l {
|
|
45574
47703
|
constructor() {
|
|
45575
47704
|
super(...arguments);
|
|
45576
47705
|
/**
|
|
@@ -45642,7 +47771,7 @@ class Client$j extends Client$k {
|
|
|
45642
47771
|
}
|
|
45643
47772
|
|
|
45644
47773
|
// auto gen
|
|
45645
|
-
class Client$
|
|
47774
|
+
class Client$j extends Client$k {
|
|
45646
47775
|
constructor() {
|
|
45647
47776
|
super(...arguments);
|
|
45648
47777
|
/**
|
|
@@ -45653,7 +47782,7 @@ class Client$i extends Client$j {
|
|
|
45653
47782
|
}
|
|
45654
47783
|
|
|
45655
47784
|
// auto gen
|
|
45656
|
-
class Client$
|
|
47785
|
+
class Client$i extends Client$j {
|
|
45657
47786
|
constructor() {
|
|
45658
47787
|
super(...arguments);
|
|
45659
47788
|
/**
|
|
@@ -45664,7 +47793,7 @@ class Client$h extends Client$i {
|
|
|
45664
47793
|
}
|
|
45665
47794
|
|
|
45666
47795
|
// auto gen
|
|
45667
|
-
class Client$
|
|
47796
|
+
class Client$h extends Client$i {
|
|
45668
47797
|
constructor() {
|
|
45669
47798
|
super(...arguments);
|
|
45670
47799
|
/**
|
|
@@ -46084,18 +48213,195 @@ class Client$g extends Client$h {
|
|
|
46084
48213
|
}
|
|
46085
48214
|
|
|
46086
48215
|
// auto gen
|
|
46087
|
-
class Client$
|
|
48216
|
+
class Client$g extends Client$h {
|
|
46088
48217
|
constructor() {
|
|
46089
48218
|
super(...arguments);
|
|
46090
48219
|
/**
|
|
46091
|
-
|
|
48220
|
+
* 汇报
|
|
48221
|
+
*/
|
|
48222
|
+
this.report = {
|
|
48223
|
+
/**
|
|
48224
|
+
* 规则
|
|
48225
|
+
*/
|
|
48226
|
+
rule: {
|
|
48227
|
+
/**
|
|
48228
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
|
|
48229
|
+
*
|
|
48230
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
|
|
48231
|
+
*
|
|
48232
|
+
* 规则查询
|
|
48233
|
+
*
|
|
48234
|
+
* 规则查询
|
|
48235
|
+
*/
|
|
48236
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48237
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48238
|
+
return this.httpInstance
|
|
48239
|
+
.request({
|
|
48240
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
|
|
48241
|
+
method: "GET",
|
|
48242
|
+
data,
|
|
48243
|
+
params,
|
|
48244
|
+
headers,
|
|
48245
|
+
})
|
|
48246
|
+
.catch((e) => {
|
|
48247
|
+
this.logger.error(formatErrors(e));
|
|
48248
|
+
throw e;
|
|
48249
|
+
});
|
|
48250
|
+
}),
|
|
48251
|
+
},
|
|
48252
|
+
/**
|
|
48253
|
+
* 规则看板
|
|
48254
|
+
*/
|
|
48255
|
+
ruleView: {
|
|
48256
|
+
/**
|
|
48257
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
|
|
48258
|
+
*
|
|
48259
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
|
|
48260
|
+
*
|
|
48261
|
+
* 移除规则看板
|
|
48262
|
+
*
|
|
48263
|
+
* 移除规则看板
|
|
48264
|
+
*/
|
|
48265
|
+
remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48266
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48267
|
+
return this.httpInstance
|
|
48268
|
+
.request({
|
|
48269
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
|
|
48270
|
+
method: "POST",
|
|
48271
|
+
data,
|
|
48272
|
+
params,
|
|
48273
|
+
headers,
|
|
48274
|
+
})
|
|
48275
|
+
.catch((e) => {
|
|
48276
|
+
this.logger.error(formatErrors(e));
|
|
48277
|
+
throw e;
|
|
48278
|
+
});
|
|
48279
|
+
}),
|
|
48280
|
+
},
|
|
48281
|
+
/**
|
|
48282
|
+
* 任务
|
|
46092
48283
|
*/
|
|
46093
|
-
|
|
48284
|
+
task: {
|
|
48285
|
+
/**
|
|
48286
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
|
|
48287
|
+
*
|
|
48288
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
|
|
48289
|
+
*
|
|
48290
|
+
* 任务查询
|
|
48291
|
+
*
|
|
48292
|
+
* 任务查询
|
|
48293
|
+
*/
|
|
48294
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48295
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48296
|
+
return this.httpInstance
|
|
48297
|
+
.request({
|
|
48298
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
|
|
48299
|
+
method: "POST",
|
|
48300
|
+
data,
|
|
48301
|
+
params,
|
|
48302
|
+
headers,
|
|
48303
|
+
})
|
|
48304
|
+
.catch((e) => {
|
|
48305
|
+
this.logger.error(formatErrors(e));
|
|
48306
|
+
throw e;
|
|
48307
|
+
});
|
|
48308
|
+
}),
|
|
48309
|
+
},
|
|
48310
|
+
v1: {
|
|
48311
|
+
/**
|
|
48312
|
+
* 规则
|
|
48313
|
+
*/
|
|
48314
|
+
rule: {
|
|
48315
|
+
/**
|
|
48316
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule&apiName=query&version=v1 click to debug }
|
|
48317
|
+
*
|
|
48318
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query document }
|
|
48319
|
+
*
|
|
48320
|
+
* 规则查询
|
|
48321
|
+
*
|
|
48322
|
+
* 规则查询
|
|
48323
|
+
*/
|
|
48324
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48325
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48326
|
+
return this.httpInstance
|
|
48327
|
+
.request({
|
|
48328
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/query`, path),
|
|
48329
|
+
method: "GET",
|
|
48330
|
+
data,
|
|
48331
|
+
params,
|
|
48332
|
+
headers,
|
|
48333
|
+
})
|
|
48334
|
+
.catch((e) => {
|
|
48335
|
+
this.logger.error(formatErrors(e));
|
|
48336
|
+
throw e;
|
|
48337
|
+
});
|
|
48338
|
+
}),
|
|
48339
|
+
},
|
|
48340
|
+
/**
|
|
48341
|
+
* 规则看板
|
|
48342
|
+
*/
|
|
48343
|
+
ruleView: {
|
|
48344
|
+
/**
|
|
48345
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=rule.view&apiName=remove&version=v1 click to debug }
|
|
48346
|
+
*
|
|
48347
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove document }
|
|
48348
|
+
*
|
|
48349
|
+
* 移除规则看板
|
|
48350
|
+
*
|
|
48351
|
+
* 移除规则看板
|
|
48352
|
+
*/
|
|
48353
|
+
remove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48354
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48355
|
+
return this.httpInstance
|
|
48356
|
+
.request({
|
|
48357
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`, path),
|
|
48358
|
+
method: "POST",
|
|
48359
|
+
data,
|
|
48360
|
+
params,
|
|
48361
|
+
headers,
|
|
48362
|
+
})
|
|
48363
|
+
.catch((e) => {
|
|
48364
|
+
this.logger.error(formatErrors(e));
|
|
48365
|
+
throw e;
|
|
48366
|
+
});
|
|
48367
|
+
}),
|
|
48368
|
+
},
|
|
48369
|
+
/**
|
|
48370
|
+
* 任务
|
|
48371
|
+
*/
|
|
48372
|
+
task: {
|
|
48373
|
+
/**
|
|
48374
|
+
* {@link https://open.feishu.cn/api-explorer?project=report&resource=task&apiName=query&version=v1 click to debug }
|
|
48375
|
+
*
|
|
48376
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query document }
|
|
48377
|
+
*
|
|
48378
|
+
* 任务查询
|
|
48379
|
+
*
|
|
48380
|
+
* 任务查询
|
|
48381
|
+
*/
|
|
48382
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48383
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48384
|
+
return this.httpInstance
|
|
48385
|
+
.request({
|
|
48386
|
+
url: fillApiPath(`${this.domain}/open-apis/report/v1/tasks/query`, path),
|
|
48387
|
+
method: "POST",
|
|
48388
|
+
data,
|
|
48389
|
+
params,
|
|
48390
|
+
headers,
|
|
48391
|
+
})
|
|
48392
|
+
.catch((e) => {
|
|
48393
|
+
this.logger.error(formatErrors(e));
|
|
48394
|
+
throw e;
|
|
48395
|
+
});
|
|
48396
|
+
}),
|
|
48397
|
+
},
|
|
48398
|
+
},
|
|
48399
|
+
};
|
|
46094
48400
|
}
|
|
46095
48401
|
}
|
|
46096
48402
|
|
|
46097
48403
|
// auto gen
|
|
46098
|
-
class Client$
|
|
48404
|
+
class Client$f extends Client$g {
|
|
46099
48405
|
constructor() {
|
|
46100
48406
|
super(...arguments);
|
|
46101
48407
|
/**
|
|
@@ -46106,7 +48412,7 @@ class Client$e extends Client$f {
|
|
|
46106
48412
|
}
|
|
46107
48413
|
|
|
46108
48414
|
// auto gen
|
|
46109
|
-
class Client$
|
|
48415
|
+
class Client$e extends Client$f {
|
|
46110
48416
|
constructor() {
|
|
46111
48417
|
super(...arguments);
|
|
46112
48418
|
/**
|
|
@@ -46922,7 +49228,7 @@ class Client$d extends Client$e {
|
|
|
46922
49228
|
}
|
|
46923
49229
|
|
|
46924
49230
|
// auto gen
|
|
46925
|
-
class Client$
|
|
49231
|
+
class Client$d extends Client$e {
|
|
46926
49232
|
constructor() {
|
|
46927
49233
|
super(...arguments);
|
|
46928
49234
|
/**
|
|
@@ -46986,7 +49292,7 @@ class Client$c extends Client$d {
|
|
|
46986
49292
|
}
|
|
46987
49293
|
|
|
46988
49294
|
// auto gen
|
|
46989
|
-
class Client$
|
|
49295
|
+
class Client$c extends Client$d {
|
|
46990
49296
|
constructor() {
|
|
46991
49297
|
super(...arguments);
|
|
46992
49298
|
/**
|
|
@@ -48404,7 +50710,7 @@ class Client$b extends Client$c {
|
|
|
48404
50710
|
}
|
|
48405
50711
|
|
|
48406
50712
|
// auto gen
|
|
48407
|
-
class Client$
|
|
50713
|
+
class Client$b extends Client$c {
|
|
48408
50714
|
constructor() {
|
|
48409
50715
|
super(...arguments);
|
|
48410
50716
|
/**
|
|
@@ -48532,7 +50838,7 @@ class Client$a extends Client$b {
|
|
|
48532
50838
|
}
|
|
48533
50839
|
|
|
48534
50840
|
// auto gen
|
|
48535
|
-
class Client$
|
|
50841
|
+
class Client$a extends Client$b {
|
|
48536
50842
|
constructor() {
|
|
48537
50843
|
super(...arguments);
|
|
48538
50844
|
/**
|
|
@@ -48543,7 +50849,7 @@ class Client$9 extends Client$a {
|
|
|
48543
50849
|
}
|
|
48544
50850
|
|
|
48545
50851
|
// auto gen
|
|
48546
|
-
class Client$
|
|
50852
|
+
class Client$9 extends Client$a {
|
|
48547
50853
|
constructor() {
|
|
48548
50854
|
super(...arguments);
|
|
48549
50855
|
/**
|
|
@@ -48554,7 +50860,7 @@ class Client$8 extends Client$9 {
|
|
|
48554
50860
|
}
|
|
48555
50861
|
|
|
48556
50862
|
// auto gen
|
|
48557
|
-
class Client$
|
|
50863
|
+
class Client$8 extends Client$9 {
|
|
48558
50864
|
constructor() {
|
|
48559
50865
|
super(...arguments);
|
|
48560
50866
|
/**
|
|
@@ -51674,7 +53980,7 @@ class Client$7 extends Client$8 {
|
|
|
51674
53980
|
}
|
|
51675
53981
|
|
|
51676
53982
|
// auto gen
|
|
51677
|
-
class Client$
|
|
53983
|
+
class Client$7 extends Client$8 {
|
|
51678
53984
|
constructor() {
|
|
51679
53985
|
super(...arguments);
|
|
51680
53986
|
/**
|
|
@@ -51800,7 +54106,7 @@ class Client$6 extends Client$7 {
|
|
|
51800
54106
|
}
|
|
51801
54107
|
|
|
51802
54108
|
// auto gen
|
|
51803
|
-
class Client$
|
|
54109
|
+
class Client$6 extends Client$7 {
|
|
51804
54110
|
constructor() {
|
|
51805
54111
|
super(...arguments);
|
|
51806
54112
|
/**
|
|
@@ -51928,7 +54234,7 @@ class Client$5 extends Client$6 {
|
|
|
51928
54234
|
}
|
|
51929
54235
|
|
|
51930
54236
|
// auto gen
|
|
51931
|
-
class Client$
|
|
54237
|
+
class Client$5 extends Client$6 {
|
|
51932
54238
|
constructor() {
|
|
51933
54239
|
super(...arguments);
|
|
51934
54240
|
/**
|
|
@@ -51939,7 +54245,7 @@ class Client$4 extends Client$5 {
|
|
|
51939
54245
|
}
|
|
51940
54246
|
|
|
51941
54247
|
// auto gen
|
|
51942
|
-
class Client$
|
|
54248
|
+
class Client$4 extends Client$5 {
|
|
51943
54249
|
constructor() {
|
|
51944
54250
|
super(...arguments);
|
|
51945
54251
|
/**
|
|
@@ -55566,6 +57872,49 @@ class Client$3 extends Client$4 {
|
|
|
55566
57872
|
}
|
|
55567
57873
|
}
|
|
55568
57874
|
|
|
57875
|
+
// auto gen
|
|
57876
|
+
class Client$3 extends Client$4 {
|
|
57877
|
+
constructor() {
|
|
57878
|
+
super(...arguments);
|
|
57879
|
+
/**
|
|
57880
|
+
* 认证信息
|
|
57881
|
+
*/
|
|
57882
|
+
this.verification = {
|
|
57883
|
+
v1: {
|
|
57884
|
+
/**
|
|
57885
|
+
* 认证信息
|
|
57886
|
+
*/
|
|
57887
|
+
verification: {
|
|
57888
|
+
/**
|
|
57889
|
+
* {@link https://open.feishu.cn/api-explorer?project=verification&resource=verification&apiName=get&version=v1 click to debug }
|
|
57890
|
+
*
|
|
57891
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/verification-v1/verification/get document }
|
|
57892
|
+
*
|
|
57893
|
+
* 获取认证信息
|
|
57894
|
+
*
|
|
57895
|
+
* 获取企业主体名称、是否认证等信息。
|
|
57896
|
+
*/
|
|
57897
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
57898
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
57899
|
+
return this.httpInstance
|
|
57900
|
+
.request({
|
|
57901
|
+
url: fillApiPath(`${this.domain}/open-apis/verification/v1/verification`, path),
|
|
57902
|
+
method: "GET",
|
|
57903
|
+
data,
|
|
57904
|
+
params,
|
|
57905
|
+
headers,
|
|
57906
|
+
})
|
|
57907
|
+
.catch((e) => {
|
|
57908
|
+
this.logger.error(formatErrors(e));
|
|
57909
|
+
throw e;
|
|
57910
|
+
});
|
|
57911
|
+
}),
|
|
57912
|
+
},
|
|
57913
|
+
},
|
|
57914
|
+
};
|
|
57915
|
+
}
|
|
57916
|
+
}
|
|
57917
|
+
|
|
55569
57918
|
// auto gen
|
|
55570
57919
|
class Client$2 extends Client$3 {
|
|
55571
57920
|
constructor() {
|