@larksuiteoapi/node-sdk 1.40.0 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +2399 -533
- package/lib/index.js +2403 -538
- package/package.json +1 -2
- package/types/index.d.ts +5222 -97
package/lib/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
17
17
|
var get = require('lodash.get');
|
|
18
18
|
var axios = require('axios');
|
|
19
19
|
var crypto = require('crypto');
|
|
20
|
-
var pick = require('lodash.pick');
|
|
21
20
|
var qs = require('qs');
|
|
22
21
|
var identity = require('lodash.identity');
|
|
23
22
|
var pickBy = require('lodash.pickby');
|
|
@@ -31,7 +30,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
31
30
|
var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
|
|
32
31
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
33
32
|
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
34
|
-
var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
|
|
35
33
|
var identity__default = /*#__PURE__*/_interopDefaultLegacy(identity);
|
|
36
34
|
var pickBy__default = /*#__PURE__*/_interopDefaultLegacy(pickBy);
|
|
37
35
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
@@ -236,9 +234,22 @@ const assert = (predication, callback) => __awaiter(void 0, void 0, void 0, func
|
|
|
236
234
|
|
|
237
235
|
const formatUrl = (url) => (url ? url.replace(/^\//, '') : '');
|
|
238
236
|
|
|
237
|
+
const pick = (obj, keys = []) => {
|
|
238
|
+
const result = {};
|
|
239
|
+
if (!obj) {
|
|
240
|
+
return result;
|
|
241
|
+
}
|
|
242
|
+
keys.forEach(key => {
|
|
243
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
244
|
+
result[key] = obj[key];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
return result;
|
|
248
|
+
};
|
|
249
|
+
|
|
239
250
|
const formatErrors = (e) => {
|
|
240
251
|
if (e instanceof axios.AxiosError) {
|
|
241
|
-
const { message, response, request, config } =
|
|
252
|
+
const { message, response, request, config } = pick(e, [
|
|
242
253
|
'message',
|
|
243
254
|
'response',
|
|
244
255
|
'request',
|
|
@@ -246,9 +257,9 @@ const formatErrors = (e) => {
|
|
|
246
257
|
]);
|
|
247
258
|
const filteredErrorInfo = {
|
|
248
259
|
message,
|
|
249
|
-
config:
|
|
250
|
-
request:
|
|
251
|
-
response:
|
|
260
|
+
config: pick(config, ['data', 'url', 'params', 'method']),
|
|
261
|
+
request: pick(request, ['protocol', 'host', 'path', 'method']),
|
|
262
|
+
response: pick(response, ['data', 'status', 'statusText']),
|
|
252
263
|
};
|
|
253
264
|
const errors = [filteredErrorInfo];
|
|
254
265
|
const specificError = get__default["default"](e, 'response.data');
|
|
@@ -261,7 +272,7 @@ const formatErrors = (e) => {
|
|
|
261
272
|
};
|
|
262
273
|
|
|
263
274
|
// auto gen
|
|
264
|
-
class Client
|
|
275
|
+
class Client$10 {
|
|
265
276
|
constructor() {
|
|
266
277
|
/**
|
|
267
278
|
* 智能门禁
|
|
@@ -1318,11 +1329,11 @@ class Client$$ {
|
|
|
1318
1329
|
}
|
|
1319
1330
|
|
|
1320
1331
|
// auto gen
|
|
1321
|
-
class Client
|
|
1332
|
+
class Client$$ extends Client$10 {
|
|
1322
1333
|
constructor() {
|
|
1323
1334
|
super(...arguments);
|
|
1324
1335
|
/**
|
|
1325
|
-
*
|
|
1336
|
+
* 管理后台-企业勋章
|
|
1326
1337
|
*/
|
|
1327
1338
|
this.admin = {
|
|
1328
1339
|
/**
|
|
@@ -2414,7 +2425,7 @@ class Client$_ extends Client$$ {
|
|
|
2414
2425
|
}
|
|
2415
2426
|
|
|
2416
2427
|
// auto gen
|
|
2417
|
-
class Client$
|
|
2428
|
+
class Client$_ extends Client$$ {
|
|
2418
2429
|
constructor() {
|
|
2419
2430
|
super(...arguments);
|
|
2420
2431
|
/**
|
|
@@ -3114,7 +3125,7 @@ class Client$Z extends Client$_ {
|
|
|
3114
3125
|
}
|
|
3115
3126
|
|
|
3116
3127
|
// auto gen
|
|
3117
|
-
class Client$
|
|
3128
|
+
class Client$Z extends Client$_ {
|
|
3118
3129
|
constructor() {
|
|
3119
3130
|
super(...arguments);
|
|
3120
3131
|
/**
|
|
@@ -4688,7 +4699,7 @@ class Client$Y extends Client$Z {
|
|
|
4688
4699
|
}
|
|
4689
4700
|
|
|
4690
4701
|
// auto gen
|
|
4691
|
-
class Client$
|
|
4702
|
+
class Client$Y extends Client$Z {
|
|
4692
4703
|
constructor() {
|
|
4693
4704
|
super(...arguments);
|
|
4694
4705
|
/**
|
|
@@ -5493,7 +5504,7 @@ class Client$X extends Client$Y {
|
|
|
5493
5504
|
}),
|
|
5494
5505
|
},
|
|
5495
5506
|
/**
|
|
5496
|
-
*
|
|
5507
|
+
* 审批查询
|
|
5497
5508
|
*/
|
|
5498
5509
|
task: {
|
|
5499
5510
|
/**
|
|
@@ -6504,7 +6515,7 @@ class Client$X extends Client$Y {
|
|
|
6504
6515
|
}),
|
|
6505
6516
|
},
|
|
6506
6517
|
/**
|
|
6507
|
-
*
|
|
6518
|
+
* 审批查询
|
|
6508
6519
|
*/
|
|
6509
6520
|
task: {
|
|
6510
6521
|
/**
|
|
@@ -6716,7 +6727,7 @@ class Client$X extends Client$Y {
|
|
|
6716
6727
|
}
|
|
6717
6728
|
|
|
6718
6729
|
// auto gen
|
|
6719
|
-
class Client$
|
|
6730
|
+
class Client$X extends Client$Y {
|
|
6720
6731
|
constructor() {
|
|
6721
6732
|
super(...arguments);
|
|
6722
6733
|
/**
|
|
@@ -7133,6 +7144,27 @@ class Client$W extends Client$X {
|
|
|
7133
7144
|
throw e;
|
|
7134
7145
|
});
|
|
7135
7146
|
}),
|
|
7147
|
+
/**
|
|
7148
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
7149
|
+
*
|
|
7150
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
7151
|
+
*/
|
|
7152
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7153
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7154
|
+
return this.httpInstance
|
|
7155
|
+
.request({
|
|
7156
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
7157
|
+
method: "GET",
|
|
7158
|
+
data,
|
|
7159
|
+
params,
|
|
7160
|
+
headers,
|
|
7161
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
7162
|
+
})
|
|
7163
|
+
.catch((e) => {
|
|
7164
|
+
this.logger.error(formatErrors(e));
|
|
7165
|
+
throw e;
|
|
7166
|
+
});
|
|
7167
|
+
}),
|
|
7136
7168
|
/**
|
|
7137
7169
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
7138
7170
|
*
|
|
@@ -7483,6 +7515,27 @@ class Client$W extends Client$X {
|
|
|
7483
7515
|
throw e;
|
|
7484
7516
|
});
|
|
7485
7517
|
}),
|
|
7518
|
+
/**
|
|
7519
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
7520
|
+
*
|
|
7521
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
7522
|
+
*/
|
|
7523
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7524
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7525
|
+
return this.httpInstance
|
|
7526
|
+
.request({
|
|
7527
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
7528
|
+
method: "POST",
|
|
7529
|
+
data,
|
|
7530
|
+
params,
|
|
7531
|
+
headers,
|
|
7532
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
7533
|
+
})
|
|
7534
|
+
.catch((e) => {
|
|
7535
|
+
this.logger.error(formatErrors(e));
|
|
7536
|
+
throw e;
|
|
7537
|
+
});
|
|
7538
|
+
}),
|
|
7486
7539
|
/**
|
|
7487
7540
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
7488
7541
|
*
|
|
@@ -8290,6 +8343,27 @@ class Client$W extends Client$X {
|
|
|
8290
8343
|
throw e;
|
|
8291
8344
|
});
|
|
8292
8345
|
}),
|
|
8346
|
+
/**
|
|
8347
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
8348
|
+
*
|
|
8349
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
8350
|
+
*/
|
|
8351
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8352
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8353
|
+
return this.httpInstance
|
|
8354
|
+
.request({
|
|
8355
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
8356
|
+
method: "GET",
|
|
8357
|
+
data,
|
|
8358
|
+
params,
|
|
8359
|
+
headers,
|
|
8360
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
8361
|
+
})
|
|
8362
|
+
.catch((e) => {
|
|
8363
|
+
this.logger.error(formatErrors(e));
|
|
8364
|
+
throw e;
|
|
8365
|
+
});
|
|
8366
|
+
}),
|
|
8293
8367
|
/**
|
|
8294
8368
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
8295
8369
|
*
|
|
@@ -8642,6 +8716,27 @@ class Client$W extends Client$X {
|
|
|
8642
8716
|
throw e;
|
|
8643
8717
|
});
|
|
8644
8718
|
}),
|
|
8719
|
+
/**
|
|
8720
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
8721
|
+
*
|
|
8722
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
8723
|
+
*/
|
|
8724
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8725
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8726
|
+
return this.httpInstance
|
|
8727
|
+
.request({
|
|
8728
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
8729
|
+
method: "POST",
|
|
8730
|
+
data,
|
|
8731
|
+
params,
|
|
8732
|
+
headers,
|
|
8733
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
8734
|
+
})
|
|
8735
|
+
.catch((e) => {
|
|
8736
|
+
this.logger.error(formatErrors(e));
|
|
8737
|
+
throw e;
|
|
8738
|
+
});
|
|
8739
|
+
}),
|
|
8645
8740
|
/**
|
|
8646
8741
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
8647
8742
|
*
|
|
@@ -9040,7 +9135,7 @@ class Client$W extends Client$X {
|
|
|
9040
9135
|
}
|
|
9041
9136
|
|
|
9042
9137
|
// auto gen
|
|
9043
|
-
class Client$
|
|
9138
|
+
class Client$W extends Client$X {
|
|
9044
9139
|
constructor() {
|
|
9045
9140
|
super(...arguments);
|
|
9046
9141
|
/**
|
|
@@ -9294,7 +9389,7 @@ class Client$V extends Client$W {
|
|
|
9294
9389
|
}
|
|
9295
9390
|
|
|
9296
9391
|
// auto gen
|
|
9297
|
-
class Client$
|
|
9392
|
+
class Client$V extends Client$W {
|
|
9298
9393
|
constructor() {
|
|
9299
9394
|
super(...arguments);
|
|
9300
9395
|
/**
|
|
@@ -9568,7 +9663,7 @@ class Client$U extends Client$V {
|
|
|
9568
9663
|
}
|
|
9569
9664
|
|
|
9570
9665
|
// auto gen
|
|
9571
|
-
class Client$
|
|
9666
|
+
class Client$U extends Client$V {
|
|
9572
9667
|
constructor() {
|
|
9573
9668
|
super(...arguments);
|
|
9574
9669
|
/**
|
|
@@ -9579,7 +9674,7 @@ class Client$T extends Client$U {
|
|
|
9579
9674
|
}
|
|
9580
9675
|
|
|
9581
9676
|
// auto gen
|
|
9582
|
-
class Client$
|
|
9677
|
+
class Client$T extends Client$U {
|
|
9583
9678
|
constructor() {
|
|
9584
9679
|
super(...arguments);
|
|
9585
9680
|
/**
|
|
@@ -10657,7 +10752,7 @@ class Client$S extends Client$T {
|
|
|
10657
10752
|
}
|
|
10658
10753
|
|
|
10659
10754
|
// auto gen
|
|
10660
|
-
class Client$
|
|
10755
|
+
class Client$S extends Client$T {
|
|
10661
10756
|
constructor() {
|
|
10662
10757
|
super(...arguments);
|
|
10663
10758
|
/**
|
|
@@ -12306,6 +12401,103 @@ class Client$R extends Client$S {
|
|
|
12306
12401
|
});
|
|
12307
12402
|
}),
|
|
12308
12403
|
},
|
|
12404
|
+
/**
|
|
12405
|
+
* app.workflow
|
|
12406
|
+
*/
|
|
12407
|
+
appWorkflow: {
|
|
12408
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12409
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12410
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12411
|
+
const res = yield this.httpInstance
|
|
12412
|
+
.request({
|
|
12413
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12414
|
+
method: "GET",
|
|
12415
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12416
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
12417
|
+
data,
|
|
12418
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12419
|
+
})
|
|
12420
|
+
.catch((e) => {
|
|
12421
|
+
this.logger.error(formatErrors(e));
|
|
12422
|
+
});
|
|
12423
|
+
return res;
|
|
12424
|
+
});
|
|
12425
|
+
const Iterable = {
|
|
12426
|
+
[Symbol.asyncIterator]() {
|
|
12427
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12428
|
+
let hasMore = true;
|
|
12429
|
+
let pageToken;
|
|
12430
|
+
while (hasMore) {
|
|
12431
|
+
try {
|
|
12432
|
+
const res = yield __await(sendRequest({
|
|
12433
|
+
headers,
|
|
12434
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12435
|
+
data,
|
|
12436
|
+
}));
|
|
12437
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
12438
|
+
// @ts-ignore
|
|
12439
|
+
has_more,
|
|
12440
|
+
// @ts-ignore
|
|
12441
|
+
page_token,
|
|
12442
|
+
// @ts-ignore
|
|
12443
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12444
|
+
yield yield __await(rest);
|
|
12445
|
+
hasMore = Boolean(has_more);
|
|
12446
|
+
pageToken = page_token || next_page_token;
|
|
12447
|
+
}
|
|
12448
|
+
catch (e) {
|
|
12449
|
+
yield yield __await(null);
|
|
12450
|
+
break;
|
|
12451
|
+
}
|
|
12452
|
+
}
|
|
12453
|
+
});
|
|
12454
|
+
},
|
|
12455
|
+
};
|
|
12456
|
+
return Iterable;
|
|
12457
|
+
}),
|
|
12458
|
+
/**
|
|
12459
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
12460
|
+
*
|
|
12461
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
12462
|
+
*/
|
|
12463
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12465
|
+
return this.httpInstance
|
|
12466
|
+
.request({
|
|
12467
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12468
|
+
method: "GET",
|
|
12469
|
+
data,
|
|
12470
|
+
params,
|
|
12471
|
+
headers,
|
|
12472
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12473
|
+
})
|
|
12474
|
+
.catch((e) => {
|
|
12475
|
+
this.logger.error(formatErrors(e));
|
|
12476
|
+
throw e;
|
|
12477
|
+
});
|
|
12478
|
+
}),
|
|
12479
|
+
/**
|
|
12480
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
12481
|
+
*
|
|
12482
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
12483
|
+
*/
|
|
12484
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12485
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12486
|
+
return this.httpInstance
|
|
12487
|
+
.request({
|
|
12488
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
12489
|
+
method: "PUT",
|
|
12490
|
+
data,
|
|
12491
|
+
params,
|
|
12492
|
+
headers,
|
|
12493
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12494
|
+
})
|
|
12495
|
+
.catch((e) => {
|
|
12496
|
+
this.logger.error(formatErrors(e));
|
|
12497
|
+
throw e;
|
|
12498
|
+
});
|
|
12499
|
+
}),
|
|
12500
|
+
},
|
|
12309
12501
|
v1: {
|
|
12310
12502
|
/**
|
|
12311
12503
|
* 多维表格
|
|
@@ -13967,13 +14159,112 @@ class Client$R extends Client$S {
|
|
|
13967
14159
|
});
|
|
13968
14160
|
}),
|
|
13969
14161
|
},
|
|
14162
|
+
/**
|
|
14163
|
+
* app.workflow
|
|
14164
|
+
*/
|
|
14165
|
+
appWorkflow: {
|
|
14166
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14167
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14168
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
14169
|
+
const res = yield this.httpInstance
|
|
14170
|
+
.request({
|
|
14171
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14172
|
+
method: "GET",
|
|
14173
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
14174
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
14175
|
+
data,
|
|
14176
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
14177
|
+
arrayFormat: "repeat",
|
|
14178
|
+
}),
|
|
14179
|
+
})
|
|
14180
|
+
.catch((e) => {
|
|
14181
|
+
this.logger.error(formatErrors(e));
|
|
14182
|
+
});
|
|
14183
|
+
return res;
|
|
14184
|
+
});
|
|
14185
|
+
const Iterable = {
|
|
14186
|
+
[Symbol.asyncIterator]() {
|
|
14187
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
14188
|
+
let hasMore = true;
|
|
14189
|
+
let pageToken;
|
|
14190
|
+
while (hasMore) {
|
|
14191
|
+
try {
|
|
14192
|
+
const res = yield __await(sendRequest({
|
|
14193
|
+
headers,
|
|
14194
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
14195
|
+
data,
|
|
14196
|
+
}));
|
|
14197
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
14198
|
+
// @ts-ignore
|
|
14199
|
+
has_more,
|
|
14200
|
+
// @ts-ignore
|
|
14201
|
+
page_token,
|
|
14202
|
+
// @ts-ignore
|
|
14203
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
14204
|
+
yield yield __await(rest);
|
|
14205
|
+
hasMore = Boolean(has_more);
|
|
14206
|
+
pageToken = page_token || next_page_token;
|
|
14207
|
+
}
|
|
14208
|
+
catch (e) {
|
|
14209
|
+
yield yield __await(null);
|
|
14210
|
+
break;
|
|
14211
|
+
}
|
|
14212
|
+
}
|
|
14213
|
+
});
|
|
14214
|
+
},
|
|
14215
|
+
};
|
|
14216
|
+
return Iterable;
|
|
14217
|
+
}),
|
|
14218
|
+
/**
|
|
14219
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
14220
|
+
*
|
|
14221
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
14222
|
+
*/
|
|
14223
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14224
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14225
|
+
return this.httpInstance
|
|
14226
|
+
.request({
|
|
14227
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14228
|
+
method: "GET",
|
|
14229
|
+
data,
|
|
14230
|
+
params,
|
|
14231
|
+
headers,
|
|
14232
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
14233
|
+
})
|
|
14234
|
+
.catch((e) => {
|
|
14235
|
+
this.logger.error(formatErrors(e));
|
|
14236
|
+
throw e;
|
|
14237
|
+
});
|
|
14238
|
+
}),
|
|
14239
|
+
/**
|
|
14240
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
14241
|
+
*
|
|
14242
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
14243
|
+
*/
|
|
14244
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14245
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14246
|
+
return this.httpInstance
|
|
14247
|
+
.request({
|
|
14248
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
14249
|
+
method: "PUT",
|
|
14250
|
+
data,
|
|
14251
|
+
params,
|
|
14252
|
+
headers,
|
|
14253
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
14254
|
+
})
|
|
14255
|
+
.catch((e) => {
|
|
14256
|
+
this.logger.error(formatErrors(e));
|
|
14257
|
+
throw e;
|
|
14258
|
+
});
|
|
14259
|
+
}),
|
|
14260
|
+
},
|
|
13970
14261
|
},
|
|
13971
14262
|
};
|
|
13972
14263
|
}
|
|
13973
14264
|
}
|
|
13974
14265
|
|
|
13975
14266
|
// auto gen
|
|
13976
|
-
class Client$
|
|
14267
|
+
class Client$R extends Client$S {
|
|
13977
14268
|
constructor() {
|
|
13978
14269
|
super(...arguments);
|
|
13979
14270
|
/**
|
|
@@ -14157,7 +14448,7 @@ class Client$Q extends Client$R {
|
|
|
14157
14448
|
}
|
|
14158
14449
|
|
|
14159
14450
|
// auto gen
|
|
14160
|
-
class Client$
|
|
14451
|
+
class Client$Q extends Client$R {
|
|
14161
14452
|
constructor() {
|
|
14162
14453
|
super(...arguments);
|
|
14163
14454
|
/**
|
|
@@ -14254,7 +14545,7 @@ class Client$P extends Client$Q {
|
|
|
14254
14545
|
}
|
|
14255
14546
|
|
|
14256
14547
|
// auto gen
|
|
14257
|
-
class Client$
|
|
14548
|
+
class Client$P extends Client$Q {
|
|
14258
14549
|
constructor() {
|
|
14259
14550
|
super(...arguments);
|
|
14260
14551
|
/**
|
|
@@ -16994,7 +17285,7 @@ class Client$O extends Client$P {
|
|
|
16994
17285
|
}
|
|
16995
17286
|
|
|
16996
17287
|
// auto gen
|
|
16997
|
-
class Client$
|
|
17288
|
+
class Client$O extends Client$P {
|
|
16998
17289
|
constructor() {
|
|
16999
17290
|
super(...arguments);
|
|
17000
17291
|
/**
|
|
@@ -17005,7 +17296,7 @@ class Client$N extends Client$O {
|
|
|
17005
17296
|
}
|
|
17006
17297
|
|
|
17007
17298
|
// auto gen
|
|
17008
|
-
class Client$
|
|
17299
|
+
class Client$N extends Client$O {
|
|
17009
17300
|
constructor() {
|
|
17010
17301
|
super(...arguments);
|
|
17011
17302
|
/**
|
|
@@ -17435,7 +17726,7 @@ class Client$M extends Client$N {
|
|
|
17435
17726
|
}
|
|
17436
17727
|
|
|
17437
17728
|
// auto gen
|
|
17438
|
-
class Client$
|
|
17729
|
+
class Client$M extends Client$N {
|
|
17439
17730
|
constructor() {
|
|
17440
17731
|
super(...arguments);
|
|
17441
17732
|
/**
|
|
@@ -22463,7 +22754,7 @@ class Client$L extends Client$M {
|
|
|
22463
22754
|
}
|
|
22464
22755
|
|
|
22465
22756
|
// auto gen
|
|
22466
|
-
class Client$
|
|
22757
|
+
class Client$L extends Client$M {
|
|
22467
22758
|
constructor() {
|
|
22468
22759
|
super(...arguments);
|
|
22469
22760
|
/**
|
|
@@ -22474,7 +22765,7 @@ class Client$K extends Client$L {
|
|
|
22474
22765
|
}
|
|
22475
22766
|
|
|
22476
22767
|
// auto gen
|
|
22477
|
-
class Client$
|
|
22768
|
+
class Client$K extends Client$L {
|
|
22478
22769
|
constructor() {
|
|
22479
22770
|
super(...arguments);
|
|
22480
22771
|
/**
|
|
@@ -22485,7 +22776,7 @@ class Client$J extends Client$K {
|
|
|
22485
22776
|
}
|
|
22486
22777
|
|
|
22487
22778
|
// auto gen
|
|
22488
|
-
class Client$
|
|
22779
|
+
class Client$J extends Client$K {
|
|
22489
22780
|
constructor() {
|
|
22490
22781
|
super(...arguments);
|
|
22491
22782
|
/**
|
|
@@ -28146,71 +28437,21 @@ class Client$I extends Client$J {
|
|
|
28146
28437
|
},
|
|
28147
28438
|
v2: {
|
|
28148
28439
|
/**
|
|
28149
|
-
*
|
|
28440
|
+
* approval_groups
|
|
28150
28441
|
*/
|
|
28151
|
-
|
|
28152
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28153
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28154
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28155
|
-
const res = yield this.httpInstance
|
|
28156
|
-
.request({
|
|
28157
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28158
|
-
method: "GET",
|
|
28159
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28160
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28161
|
-
data,
|
|
28162
|
-
paramsSerializer: (params) => qs.stringify(params, {
|
|
28163
|
-
arrayFormat: "repeat",
|
|
28164
|
-
}),
|
|
28165
|
-
})
|
|
28166
|
-
.catch((e) => {
|
|
28167
|
-
this.logger.error(formatErrors(e));
|
|
28168
|
-
});
|
|
28169
|
-
return res;
|
|
28170
|
-
});
|
|
28171
|
-
const Iterable = {
|
|
28172
|
-
[Symbol.asyncIterator]() {
|
|
28173
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28174
|
-
let hasMore = true;
|
|
28175
|
-
let pageToken;
|
|
28176
|
-
while (hasMore) {
|
|
28177
|
-
try {
|
|
28178
|
-
const res = yield __await(sendRequest({
|
|
28179
|
-
headers,
|
|
28180
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28181
|
-
data,
|
|
28182
|
-
}));
|
|
28183
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
28184
|
-
// @ts-ignore
|
|
28185
|
-
has_more,
|
|
28186
|
-
// @ts-ignore
|
|
28187
|
-
page_token,
|
|
28188
|
-
// @ts-ignore
|
|
28189
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28190
|
-
yield yield __await(rest);
|
|
28191
|
-
hasMore = Boolean(has_more);
|
|
28192
|
-
pageToken = page_token || next_page_token;
|
|
28193
|
-
}
|
|
28194
|
-
catch (e) {
|
|
28195
|
-
yield yield __await(null);
|
|
28196
|
-
break;
|
|
28197
|
-
}
|
|
28198
|
-
}
|
|
28199
|
-
});
|
|
28200
|
-
},
|
|
28201
|
-
};
|
|
28202
|
-
return Iterable;
|
|
28203
|
-
}),
|
|
28442
|
+
approvalGroups: {
|
|
28204
28443
|
/**
|
|
28205
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28444
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=get&version=v2 click to debug }
|
|
28206
28445
|
*
|
|
28207
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28446
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=approval_groups&version=v2 document }
|
|
28447
|
+
*
|
|
28448
|
+
* 获取审批组信息
|
|
28208
28449
|
*/
|
|
28209
|
-
|
|
28450
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28210
28451
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28211
28452
|
return this.httpInstance
|
|
28212
28453
|
.request({
|
|
28213
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28454
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
|
|
28214
28455
|
method: "GET",
|
|
28215
28456
|
data,
|
|
28216
28457
|
params,
|
|
@@ -28222,73 +28463,18 @@ class Client$I extends Client$J {
|
|
|
28222
28463
|
throw e;
|
|
28223
28464
|
});
|
|
28224
28465
|
}),
|
|
28225
|
-
},
|
|
28226
|
-
/**
|
|
28227
|
-
* basic_info.bank
|
|
28228
|
-
*/
|
|
28229
|
-
basicInfoBank: {
|
|
28230
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28231
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28232
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28233
|
-
const res = yield this.httpInstance
|
|
28234
|
-
.request({
|
|
28235
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28236
|
-
method: "POST",
|
|
28237
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28238
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28239
|
-
data,
|
|
28240
|
-
paramsSerializer: (params) => qs.stringify(params, {
|
|
28241
|
-
arrayFormat: "repeat",
|
|
28242
|
-
}),
|
|
28243
|
-
})
|
|
28244
|
-
.catch((e) => {
|
|
28245
|
-
this.logger.error(formatErrors(e));
|
|
28246
|
-
});
|
|
28247
|
-
return res;
|
|
28248
|
-
});
|
|
28249
|
-
const Iterable = {
|
|
28250
|
-
[Symbol.asyncIterator]() {
|
|
28251
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28252
|
-
let hasMore = true;
|
|
28253
|
-
let pageToken;
|
|
28254
|
-
while (hasMore) {
|
|
28255
|
-
try {
|
|
28256
|
-
const res = yield __await(sendRequest({
|
|
28257
|
-
headers,
|
|
28258
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28259
|
-
data,
|
|
28260
|
-
}));
|
|
28261
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
28262
|
-
// @ts-ignore
|
|
28263
|
-
has_more,
|
|
28264
|
-
// @ts-ignore
|
|
28265
|
-
page_token,
|
|
28266
|
-
// @ts-ignore
|
|
28267
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28268
|
-
yield yield __await(rest);
|
|
28269
|
-
hasMore = Boolean(has_more);
|
|
28270
|
-
pageToken = page_token || next_page_token;
|
|
28271
|
-
}
|
|
28272
|
-
catch (e) {
|
|
28273
|
-
yield yield __await(null);
|
|
28274
|
-
break;
|
|
28275
|
-
}
|
|
28276
|
-
}
|
|
28277
|
-
});
|
|
28278
|
-
},
|
|
28279
|
-
};
|
|
28280
|
-
return Iterable;
|
|
28281
|
-
}),
|
|
28282
28466
|
/**
|
|
28283
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28467
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=open_query_department_change_list_by_ids&version=v2 click to debug }
|
|
28284
28468
|
*
|
|
28285
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28469
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=open_query_department_change_list_by_ids&project=corehr&resource=approval_groups&version=v2 document }
|
|
28470
|
+
*
|
|
28471
|
+
* 获取部门调整信息详情
|
|
28286
28472
|
*/
|
|
28287
|
-
|
|
28473
|
+
openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28288
28474
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28289
28475
|
return this.httpInstance
|
|
28290
28476
|
.request({
|
|
28291
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28477
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`, path),
|
|
28292
28478
|
method: "POST",
|
|
28293
28479
|
data,
|
|
28294
28480
|
params,
|
|
@@ -28300,73 +28486,16 @@ class Client$I extends Client$J {
|
|
|
28300
28486
|
throw e;
|
|
28301
28487
|
});
|
|
28302
28488
|
}),
|
|
28303
|
-
},
|
|
28304
|
-
/**
|
|
28305
|
-
* basic_info.bank_branch
|
|
28306
|
-
*/
|
|
28307
|
-
basicInfoBankBranch: {
|
|
28308
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28309
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28310
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28311
|
-
const res = yield this.httpInstance
|
|
28312
|
-
.request({
|
|
28313
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28314
|
-
method: "POST",
|
|
28315
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28316
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28317
|
-
data,
|
|
28318
|
-
paramsSerializer: (params) => qs.stringify(params, {
|
|
28319
|
-
arrayFormat: "repeat",
|
|
28320
|
-
}),
|
|
28321
|
-
})
|
|
28322
|
-
.catch((e) => {
|
|
28323
|
-
this.logger.error(formatErrors(e));
|
|
28324
|
-
});
|
|
28325
|
-
return res;
|
|
28326
|
-
});
|
|
28327
|
-
const Iterable = {
|
|
28328
|
-
[Symbol.asyncIterator]() {
|
|
28329
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28330
|
-
let hasMore = true;
|
|
28331
|
-
let pageToken;
|
|
28332
|
-
while (hasMore) {
|
|
28333
|
-
try {
|
|
28334
|
-
const res = yield __await(sendRequest({
|
|
28335
|
-
headers,
|
|
28336
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28337
|
-
data,
|
|
28338
|
-
}));
|
|
28339
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
28340
|
-
// @ts-ignore
|
|
28341
|
-
has_more,
|
|
28342
|
-
// @ts-ignore
|
|
28343
|
-
page_token,
|
|
28344
|
-
// @ts-ignore
|
|
28345
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28346
|
-
yield yield __await(rest);
|
|
28347
|
-
hasMore = Boolean(has_more);
|
|
28348
|
-
pageToken = page_token || next_page_token;
|
|
28349
|
-
}
|
|
28350
|
-
catch (e) {
|
|
28351
|
-
yield yield __await(null);
|
|
28352
|
-
break;
|
|
28353
|
-
}
|
|
28354
|
-
}
|
|
28355
|
-
});
|
|
28356
|
-
},
|
|
28357
|
-
};
|
|
28358
|
-
return Iterable;
|
|
28359
|
-
}),
|
|
28360
28489
|
/**
|
|
28361
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28490
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=open_query_job_change_list_by_ids&version=v2 click to debug }
|
|
28362
28491
|
*
|
|
28363
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28492
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=open_query_job_change_list_by_ids&project=corehr&resource=approval_groups&version=v2 document }
|
|
28364
28493
|
*/
|
|
28365
|
-
|
|
28494
|
+
openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28366
28495
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28367
28496
|
return this.httpInstance
|
|
28368
28497
|
.request({
|
|
28369
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28498
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`, path),
|
|
28370
28499
|
method: "POST",
|
|
28371
28500
|
data,
|
|
28372
28501
|
params,
|
|
@@ -28380,16 +28509,16 @@ class Client$I extends Client$J {
|
|
|
28380
28509
|
}),
|
|
28381
28510
|
},
|
|
28382
28511
|
/**
|
|
28383
|
-
*
|
|
28512
|
+
* approver
|
|
28384
28513
|
*/
|
|
28385
|
-
|
|
28386
|
-
|
|
28514
|
+
approver: {
|
|
28515
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28387
28516
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28388
28517
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28389
28518
|
const res = yield this.httpInstance
|
|
28390
28519
|
.request({
|
|
28391
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28392
|
-
method: "
|
|
28520
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28521
|
+
method: "GET",
|
|
28393
28522
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28394
28523
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28395
28524
|
data,
|
|
@@ -28436,16 +28565,16 @@ class Client$I extends Client$J {
|
|
|
28436
28565
|
return Iterable;
|
|
28437
28566
|
}),
|
|
28438
28567
|
/**
|
|
28439
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28568
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approver&apiName=list&version=v2 click to debug }
|
|
28440
28569
|
*
|
|
28441
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28570
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=approver&version=v2 document }
|
|
28442
28571
|
*/
|
|
28443
|
-
|
|
28572
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28444
28573
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28445
28574
|
return this.httpInstance
|
|
28446
28575
|
.request({
|
|
28447
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28448
|
-
method: "
|
|
28576
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28577
|
+
method: "GET",
|
|
28449
28578
|
data,
|
|
28450
28579
|
params,
|
|
28451
28580
|
headers,
|
|
@@ -28458,15 +28587,15 @@ class Client$I extends Client$J {
|
|
|
28458
28587
|
}),
|
|
28459
28588
|
},
|
|
28460
28589
|
/**
|
|
28461
|
-
* basic_info.
|
|
28590
|
+
* basic_info.bank
|
|
28462
28591
|
*/
|
|
28463
|
-
|
|
28592
|
+
basicInfoBank: {
|
|
28464
28593
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28465
28594
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28466
28595
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28467
28596
|
const res = yield this.httpInstance
|
|
28468
28597
|
.request({
|
|
28469
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28598
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28470
28599
|
method: "POST",
|
|
28471
28600
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28472
28601
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -28514,15 +28643,15 @@ class Client$I extends Client$J {
|
|
|
28514
28643
|
return Iterable;
|
|
28515
28644
|
}),
|
|
28516
28645
|
/**
|
|
28517
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28646
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
|
|
28518
28647
|
*
|
|
28519
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28648
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
|
|
28520
28649
|
*/
|
|
28521
28650
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28522
28651
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28523
28652
|
return this.httpInstance
|
|
28524
28653
|
.request({
|
|
28525
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28654
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28526
28655
|
method: "POST",
|
|
28527
28656
|
data,
|
|
28528
28657
|
params,
|
|
@@ -28536,15 +28665,15 @@ class Client$I extends Client$J {
|
|
|
28536
28665
|
}),
|
|
28537
28666
|
},
|
|
28538
28667
|
/**
|
|
28539
|
-
* basic_info.
|
|
28668
|
+
* basic_info.bank_branch
|
|
28540
28669
|
*/
|
|
28541
|
-
|
|
28670
|
+
basicInfoBankBranch: {
|
|
28542
28671
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28543
28672
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28544
28673
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28545
28674
|
const res = yield this.httpInstance
|
|
28546
28675
|
.request({
|
|
28547
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28676
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28548
28677
|
method: "POST",
|
|
28549
28678
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28550
28679
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -28592,15 +28721,15 @@ class Client$I extends Client$J {
|
|
|
28592
28721
|
return Iterable;
|
|
28593
28722
|
}),
|
|
28594
28723
|
/**
|
|
28595
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28724
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
|
|
28596
28725
|
*
|
|
28597
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28726
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
|
|
28598
28727
|
*/
|
|
28599
28728
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28600
28729
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28601
28730
|
return this.httpInstance
|
|
28602
28731
|
.request({
|
|
28603
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28732
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28604
28733
|
method: "POST",
|
|
28605
28734
|
data,
|
|
28606
28735
|
params,
|
|
@@ -28614,15 +28743,15 @@ class Client$I extends Client$J {
|
|
|
28614
28743
|
}),
|
|
28615
28744
|
},
|
|
28616
28745
|
/**
|
|
28617
|
-
* basic_info.
|
|
28746
|
+
* basic_info.city
|
|
28618
28747
|
*/
|
|
28619
|
-
|
|
28748
|
+
basicInfoCity: {
|
|
28620
28749
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28621
28750
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28622
28751
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28623
28752
|
const res = yield this.httpInstance
|
|
28624
28753
|
.request({
|
|
28625
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28754
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28626
28755
|
method: "POST",
|
|
28627
28756
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28628
28757
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -28670,15 +28799,15 @@ class Client$I extends Client$J {
|
|
|
28670
28799
|
return Iterable;
|
|
28671
28800
|
}),
|
|
28672
28801
|
/**
|
|
28673
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28802
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
|
|
28674
28803
|
*
|
|
28675
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28804
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
|
|
28676
28805
|
*/
|
|
28677
28806
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28678
28807
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28679
28808
|
return this.httpInstance
|
|
28680
28809
|
.request({
|
|
28681
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28810
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28682
28811
|
method: "POST",
|
|
28683
28812
|
data,
|
|
28684
28813
|
params,
|
|
@@ -28692,15 +28821,249 @@ class Client$I extends Client$J {
|
|
|
28692
28821
|
}),
|
|
28693
28822
|
},
|
|
28694
28823
|
/**
|
|
28695
|
-
* basic_info.
|
|
28824
|
+
* basic_info.country_region
|
|
28696
28825
|
*/
|
|
28697
|
-
|
|
28826
|
+
basicInfoCountryRegion: {
|
|
28698
28827
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28699
28828
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28700
28829
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28701
28830
|
const res = yield this.httpInstance
|
|
28702
28831
|
.request({
|
|
28703
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28832
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
28833
|
+
method: "POST",
|
|
28834
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28835
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28836
|
+
data,
|
|
28837
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
28838
|
+
arrayFormat: "repeat",
|
|
28839
|
+
}),
|
|
28840
|
+
})
|
|
28841
|
+
.catch((e) => {
|
|
28842
|
+
this.logger.error(formatErrors(e));
|
|
28843
|
+
});
|
|
28844
|
+
return res;
|
|
28845
|
+
});
|
|
28846
|
+
const Iterable = {
|
|
28847
|
+
[Symbol.asyncIterator]() {
|
|
28848
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28849
|
+
let hasMore = true;
|
|
28850
|
+
let pageToken;
|
|
28851
|
+
while (hasMore) {
|
|
28852
|
+
try {
|
|
28853
|
+
const res = yield __await(sendRequest({
|
|
28854
|
+
headers,
|
|
28855
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28856
|
+
data,
|
|
28857
|
+
}));
|
|
28858
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
28859
|
+
// @ts-ignore
|
|
28860
|
+
has_more,
|
|
28861
|
+
// @ts-ignore
|
|
28862
|
+
page_token,
|
|
28863
|
+
// @ts-ignore
|
|
28864
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28865
|
+
yield yield __await(rest);
|
|
28866
|
+
hasMore = Boolean(has_more);
|
|
28867
|
+
pageToken = page_token || next_page_token;
|
|
28868
|
+
}
|
|
28869
|
+
catch (e) {
|
|
28870
|
+
yield yield __await(null);
|
|
28871
|
+
break;
|
|
28872
|
+
}
|
|
28873
|
+
}
|
|
28874
|
+
});
|
|
28875
|
+
},
|
|
28876
|
+
};
|
|
28877
|
+
return Iterable;
|
|
28878
|
+
}),
|
|
28879
|
+
/**
|
|
28880
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
|
|
28881
|
+
*
|
|
28882
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
|
|
28883
|
+
*/
|
|
28884
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28885
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28886
|
+
return this.httpInstance
|
|
28887
|
+
.request({
|
|
28888
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
28889
|
+
method: "POST",
|
|
28890
|
+
data,
|
|
28891
|
+
params,
|
|
28892
|
+
headers,
|
|
28893
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
28894
|
+
})
|
|
28895
|
+
.catch((e) => {
|
|
28896
|
+
this.logger.error(formatErrors(e));
|
|
28897
|
+
throw e;
|
|
28898
|
+
});
|
|
28899
|
+
}),
|
|
28900
|
+
},
|
|
28901
|
+
/**
|
|
28902
|
+
* basic_info.country_region_subdivision
|
|
28903
|
+
*/
|
|
28904
|
+
basicInfoCountryRegionSubdivision: {
|
|
28905
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28906
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28907
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28908
|
+
const res = yield this.httpInstance
|
|
28909
|
+
.request({
|
|
28910
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
28911
|
+
method: "POST",
|
|
28912
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28913
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28914
|
+
data,
|
|
28915
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
28916
|
+
arrayFormat: "repeat",
|
|
28917
|
+
}),
|
|
28918
|
+
})
|
|
28919
|
+
.catch((e) => {
|
|
28920
|
+
this.logger.error(formatErrors(e));
|
|
28921
|
+
});
|
|
28922
|
+
return res;
|
|
28923
|
+
});
|
|
28924
|
+
const Iterable = {
|
|
28925
|
+
[Symbol.asyncIterator]() {
|
|
28926
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28927
|
+
let hasMore = true;
|
|
28928
|
+
let pageToken;
|
|
28929
|
+
while (hasMore) {
|
|
28930
|
+
try {
|
|
28931
|
+
const res = yield __await(sendRequest({
|
|
28932
|
+
headers,
|
|
28933
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28934
|
+
data,
|
|
28935
|
+
}));
|
|
28936
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
28937
|
+
// @ts-ignore
|
|
28938
|
+
has_more,
|
|
28939
|
+
// @ts-ignore
|
|
28940
|
+
page_token,
|
|
28941
|
+
// @ts-ignore
|
|
28942
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28943
|
+
yield yield __await(rest);
|
|
28944
|
+
hasMore = Boolean(has_more);
|
|
28945
|
+
pageToken = page_token || next_page_token;
|
|
28946
|
+
}
|
|
28947
|
+
catch (e) {
|
|
28948
|
+
yield yield __await(null);
|
|
28949
|
+
break;
|
|
28950
|
+
}
|
|
28951
|
+
}
|
|
28952
|
+
});
|
|
28953
|
+
},
|
|
28954
|
+
};
|
|
28955
|
+
return Iterable;
|
|
28956
|
+
}),
|
|
28957
|
+
/**
|
|
28958
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
|
|
28959
|
+
*
|
|
28960
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
|
|
28961
|
+
*/
|
|
28962
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28963
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28964
|
+
return this.httpInstance
|
|
28965
|
+
.request({
|
|
28966
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
28967
|
+
method: "POST",
|
|
28968
|
+
data,
|
|
28969
|
+
params,
|
|
28970
|
+
headers,
|
|
28971
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
28972
|
+
})
|
|
28973
|
+
.catch((e) => {
|
|
28974
|
+
this.logger.error(formatErrors(e));
|
|
28975
|
+
throw e;
|
|
28976
|
+
});
|
|
28977
|
+
}),
|
|
28978
|
+
},
|
|
28979
|
+
/**
|
|
28980
|
+
* basic_info.currency
|
|
28981
|
+
*/
|
|
28982
|
+
basicInfoCurrency: {
|
|
28983
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28984
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28985
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28986
|
+
const res = yield this.httpInstance
|
|
28987
|
+
.request({
|
|
28988
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
28989
|
+
method: "POST",
|
|
28990
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28991
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
28992
|
+
data,
|
|
28993
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
28994
|
+
arrayFormat: "repeat",
|
|
28995
|
+
}),
|
|
28996
|
+
})
|
|
28997
|
+
.catch((e) => {
|
|
28998
|
+
this.logger.error(formatErrors(e));
|
|
28999
|
+
});
|
|
29000
|
+
return res;
|
|
29001
|
+
});
|
|
29002
|
+
const Iterable = {
|
|
29003
|
+
[Symbol.asyncIterator]() {
|
|
29004
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
29005
|
+
let hasMore = true;
|
|
29006
|
+
let pageToken;
|
|
29007
|
+
while (hasMore) {
|
|
29008
|
+
try {
|
|
29009
|
+
const res = yield __await(sendRequest({
|
|
29010
|
+
headers,
|
|
29011
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
29012
|
+
data,
|
|
29013
|
+
}));
|
|
29014
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
29015
|
+
// @ts-ignore
|
|
29016
|
+
has_more,
|
|
29017
|
+
// @ts-ignore
|
|
29018
|
+
page_token,
|
|
29019
|
+
// @ts-ignore
|
|
29020
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
29021
|
+
yield yield __await(rest);
|
|
29022
|
+
hasMore = Boolean(has_more);
|
|
29023
|
+
pageToken = page_token || next_page_token;
|
|
29024
|
+
}
|
|
29025
|
+
catch (e) {
|
|
29026
|
+
yield yield __await(null);
|
|
29027
|
+
break;
|
|
29028
|
+
}
|
|
29029
|
+
}
|
|
29030
|
+
});
|
|
29031
|
+
},
|
|
29032
|
+
};
|
|
29033
|
+
return Iterable;
|
|
29034
|
+
}),
|
|
29035
|
+
/**
|
|
29036
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
|
|
29037
|
+
*
|
|
29038
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
|
|
29039
|
+
*/
|
|
29040
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29041
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29042
|
+
return this.httpInstance
|
|
29043
|
+
.request({
|
|
29044
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
29045
|
+
method: "POST",
|
|
29046
|
+
data,
|
|
29047
|
+
params,
|
|
29048
|
+
headers,
|
|
29049
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
29050
|
+
})
|
|
29051
|
+
.catch((e) => {
|
|
29052
|
+
this.logger.error(formatErrors(e));
|
|
29053
|
+
throw e;
|
|
29054
|
+
});
|
|
29055
|
+
}),
|
|
29056
|
+
},
|
|
29057
|
+
/**
|
|
29058
|
+
* basic_info.district
|
|
29059
|
+
*/
|
|
29060
|
+
basicInfoDistrict: {
|
|
29061
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29062
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29063
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
29064
|
+
const res = yield this.httpInstance
|
|
29065
|
+
.request({
|
|
29066
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
|
|
28704
29067
|
method: "POST",
|
|
28705
29068
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
28706
29069
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -30184,6 +30547,48 @@ class Client$I extends Client$J {
|
|
|
30184
30547
|
* job_change
|
|
30185
30548
|
*/
|
|
30186
30549
|
jobChange: {
|
|
30550
|
+
/**
|
|
30551
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v2 click to debug }
|
|
30552
|
+
*
|
|
30553
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_change&version=v2 document }
|
|
30554
|
+
*/
|
|
30555
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30556
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30557
|
+
return this.httpInstance
|
|
30558
|
+
.request({
|
|
30559
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes`, path),
|
|
30560
|
+
method: "POST",
|
|
30561
|
+
data,
|
|
30562
|
+
params,
|
|
30563
|
+
headers,
|
|
30564
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30565
|
+
})
|
|
30566
|
+
.catch((e) => {
|
|
30567
|
+
this.logger.error(formatErrors(e));
|
|
30568
|
+
throw e;
|
|
30569
|
+
});
|
|
30570
|
+
}),
|
|
30571
|
+
/**
|
|
30572
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=revoke&version=v2 click to debug }
|
|
30573
|
+
*
|
|
30574
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=job_change&version=v2 document }
|
|
30575
|
+
*/
|
|
30576
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30577
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30578
|
+
return this.httpInstance
|
|
30579
|
+
.request({
|
|
30580
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`, path),
|
|
30581
|
+
method: "POST",
|
|
30582
|
+
data,
|
|
30583
|
+
params,
|
|
30584
|
+
headers,
|
|
30585
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30586
|
+
})
|
|
30587
|
+
.catch((e) => {
|
|
30588
|
+
this.logger.error(formatErrors(e));
|
|
30589
|
+
throw e;
|
|
30590
|
+
});
|
|
30591
|
+
}),
|
|
30187
30592
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30188
30593
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30189
30594
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30565,6 +30970,52 @@ class Client$I extends Client$J {
|
|
|
30565
30970
|
* offboarding
|
|
30566
30971
|
*/
|
|
30567
30972
|
offboarding: {
|
|
30973
|
+
/**
|
|
30974
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=edit&version=v2 click to debug }
|
|
30975
|
+
*
|
|
30976
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=edit&project=corehr&resource=offboarding&version=v2 document }
|
|
30977
|
+
*
|
|
30978
|
+
* 编辑离职信息
|
|
30979
|
+
*/
|
|
30980
|
+
edit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30981
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30982
|
+
return this.httpInstance
|
|
30983
|
+
.request({
|
|
30984
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/edit`, path),
|
|
30985
|
+
method: "POST",
|
|
30986
|
+
data,
|
|
30987
|
+
params,
|
|
30988
|
+
headers,
|
|
30989
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30990
|
+
})
|
|
30991
|
+
.catch((e) => {
|
|
30992
|
+
this.logger.error(formatErrors(e));
|
|
30993
|
+
throw e;
|
|
30994
|
+
});
|
|
30995
|
+
}),
|
|
30996
|
+
/**
|
|
30997
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=revoke&version=v2 click to debug }
|
|
30998
|
+
*
|
|
30999
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=offboarding&version=v2 document }
|
|
31000
|
+
*
|
|
31001
|
+
* 撤销离职信息
|
|
31002
|
+
*/
|
|
31003
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31004
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31005
|
+
return this.httpInstance
|
|
31006
|
+
.request({
|
|
31007
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`, path),
|
|
31008
|
+
method: "POST",
|
|
31009
|
+
data,
|
|
31010
|
+
params,
|
|
31011
|
+
headers,
|
|
31012
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31013
|
+
})
|
|
31014
|
+
.catch((e) => {
|
|
31015
|
+
this.logger.error(formatErrors(e));
|
|
31016
|
+
throw e;
|
|
31017
|
+
});
|
|
31018
|
+
}),
|
|
30568
31019
|
/**
|
|
30569
31020
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
|
|
30570
31021
|
*
|
|
@@ -31143,6 +31594,32 @@ class Client$I extends Client$J {
|
|
|
31143
31594
|
});
|
|
31144
31595
|
}),
|
|
31145
31596
|
},
|
|
31597
|
+
/**
|
|
31598
|
+
* process.extra
|
|
31599
|
+
*/
|
|
31600
|
+
processExtra: {
|
|
31601
|
+
/**
|
|
31602
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.extra&apiName=update&version=v2 click to debug }
|
|
31603
|
+
*
|
|
31604
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.extra&version=v2 document }
|
|
31605
|
+
*/
|
|
31606
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31607
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31608
|
+
return this.httpInstance
|
|
31609
|
+
.request({
|
|
31610
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`, path),
|
|
31611
|
+
method: "PUT",
|
|
31612
|
+
data,
|
|
31613
|
+
params,
|
|
31614
|
+
headers,
|
|
31615
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31616
|
+
})
|
|
31617
|
+
.catch((e) => {
|
|
31618
|
+
this.logger.error(formatErrors(e));
|
|
31619
|
+
throw e;
|
|
31620
|
+
});
|
|
31621
|
+
}),
|
|
31622
|
+
},
|
|
31146
31623
|
/**
|
|
31147
31624
|
* process.form_variable_data
|
|
31148
31625
|
*/
|
|
@@ -31268,6 +31745,135 @@ class Client$I extends Client$J {
|
|
|
31268
31745
|
});
|
|
31269
31746
|
}),
|
|
31270
31747
|
},
|
|
31748
|
+
/**
|
|
31749
|
+
* process.transfer
|
|
31750
|
+
*/
|
|
31751
|
+
processTransfer: {
|
|
31752
|
+
/**
|
|
31753
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.transfer&apiName=update&version=v2 click to debug }
|
|
31754
|
+
*
|
|
31755
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.transfer&version=v2 document }
|
|
31756
|
+
*/
|
|
31757
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31758
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31759
|
+
return this.httpInstance
|
|
31760
|
+
.request({
|
|
31761
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`, path),
|
|
31762
|
+
method: "PUT",
|
|
31763
|
+
data,
|
|
31764
|
+
params,
|
|
31765
|
+
headers,
|
|
31766
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31767
|
+
})
|
|
31768
|
+
.catch((e) => {
|
|
31769
|
+
this.logger.error(formatErrors(e));
|
|
31770
|
+
throw e;
|
|
31771
|
+
});
|
|
31772
|
+
}),
|
|
31773
|
+
},
|
|
31774
|
+
/**
|
|
31775
|
+
* process_revoke
|
|
31776
|
+
*/
|
|
31777
|
+
processRevoke: {
|
|
31778
|
+
/**
|
|
31779
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_revoke&apiName=update&version=v2 click to debug }
|
|
31780
|
+
*
|
|
31781
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_revoke&version=v2 document }
|
|
31782
|
+
*/
|
|
31783
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31784
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31785
|
+
return this.httpInstance
|
|
31786
|
+
.request({
|
|
31787
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`, path),
|
|
31788
|
+
method: "PUT",
|
|
31789
|
+
data,
|
|
31790
|
+
params,
|
|
31791
|
+
headers,
|
|
31792
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31793
|
+
})
|
|
31794
|
+
.catch((e) => {
|
|
31795
|
+
this.logger.error(formatErrors(e));
|
|
31796
|
+
throw e;
|
|
31797
|
+
});
|
|
31798
|
+
}),
|
|
31799
|
+
},
|
|
31800
|
+
/**
|
|
31801
|
+
* process_withdraw
|
|
31802
|
+
*/
|
|
31803
|
+
processWithdraw: {
|
|
31804
|
+
/**
|
|
31805
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_withdraw&apiName=update&version=v2 click to debug }
|
|
31806
|
+
*
|
|
31807
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_withdraw&version=v2 document }
|
|
31808
|
+
*/
|
|
31809
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31810
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31811
|
+
return this.httpInstance
|
|
31812
|
+
.request({
|
|
31813
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`, path),
|
|
31814
|
+
method: "PUT",
|
|
31815
|
+
data,
|
|
31816
|
+
params,
|
|
31817
|
+
headers,
|
|
31818
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31819
|
+
})
|
|
31820
|
+
.catch((e) => {
|
|
31821
|
+
this.logger.error(formatErrors(e));
|
|
31822
|
+
throw e;
|
|
31823
|
+
});
|
|
31824
|
+
}),
|
|
31825
|
+
},
|
|
31826
|
+
/**
|
|
31827
|
+
* report_detail_row
|
|
31828
|
+
*/
|
|
31829
|
+
reportDetailRow: {
|
|
31830
|
+
/**
|
|
31831
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
31832
|
+
*
|
|
31833
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=report_detail_row&version=v2 document }
|
|
31834
|
+
*
|
|
31835
|
+
* 批量删除填报行
|
|
31836
|
+
*/
|
|
31837
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31838
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31839
|
+
return this.httpInstance
|
|
31840
|
+
.request({
|
|
31841
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`, path),
|
|
31842
|
+
method: "POST",
|
|
31843
|
+
data,
|
|
31844
|
+
params,
|
|
31845
|
+
headers,
|
|
31846
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31847
|
+
})
|
|
31848
|
+
.catch((e) => {
|
|
31849
|
+
this.logger.error(formatErrors(e));
|
|
31850
|
+
throw e;
|
|
31851
|
+
});
|
|
31852
|
+
}),
|
|
31853
|
+
/**
|
|
31854
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
31855
|
+
*
|
|
31856
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=report_detail_row&version=v2 document }
|
|
31857
|
+
*
|
|
31858
|
+
* 批量创建/更新填报行
|
|
31859
|
+
*/
|
|
31860
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31861
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31862
|
+
return this.httpInstance
|
|
31863
|
+
.request({
|
|
31864
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`, path),
|
|
31865
|
+
method: "POST",
|
|
31866
|
+
data,
|
|
31867
|
+
params,
|
|
31868
|
+
headers,
|
|
31869
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31870
|
+
})
|
|
31871
|
+
.catch((e) => {
|
|
31872
|
+
this.logger.error(formatErrors(e));
|
|
31873
|
+
throw e;
|
|
31874
|
+
});
|
|
31875
|
+
}),
|
|
31876
|
+
},
|
|
31271
31877
|
/**
|
|
31272
31878
|
* workforce_plan
|
|
31273
31879
|
*/
|
|
@@ -31372,13 +31978,64 @@ class Client$I extends Client$J {
|
|
|
31372
31978
|
});
|
|
31373
31979
|
}),
|
|
31374
31980
|
},
|
|
31981
|
+
/**
|
|
31982
|
+
* workforce_plan_detail_row
|
|
31983
|
+
*/
|
|
31984
|
+
workforcePlanDetailRow: {
|
|
31985
|
+
/**
|
|
31986
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
31987
|
+
*
|
|
31988
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
31989
|
+
*
|
|
31990
|
+
* 批量删除明细行
|
|
31991
|
+
*/
|
|
31992
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31993
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31994
|
+
return this.httpInstance
|
|
31995
|
+
.request({
|
|
31996
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`, path),
|
|
31997
|
+
method: "POST",
|
|
31998
|
+
data,
|
|
31999
|
+
params,
|
|
32000
|
+
headers,
|
|
32001
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32002
|
+
})
|
|
32003
|
+
.catch((e) => {
|
|
32004
|
+
this.logger.error(formatErrors(e));
|
|
32005
|
+
throw e;
|
|
32006
|
+
});
|
|
32007
|
+
}),
|
|
32008
|
+
/**
|
|
32009
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
32010
|
+
*
|
|
32011
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
32012
|
+
*
|
|
32013
|
+
* 批量创建/更新明细行
|
|
32014
|
+
*/
|
|
32015
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32016
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32017
|
+
return this.httpInstance
|
|
32018
|
+
.request({
|
|
32019
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`, path),
|
|
32020
|
+
method: "POST",
|
|
32021
|
+
data,
|
|
32022
|
+
params,
|
|
32023
|
+
headers,
|
|
32024
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32025
|
+
})
|
|
32026
|
+
.catch((e) => {
|
|
32027
|
+
this.logger.error(formatErrors(e));
|
|
32028
|
+
throw e;
|
|
32029
|
+
});
|
|
32030
|
+
}),
|
|
32031
|
+
},
|
|
31375
32032
|
},
|
|
31376
32033
|
};
|
|
31377
32034
|
}
|
|
31378
32035
|
}
|
|
31379
32036
|
|
|
31380
32037
|
// auto gen
|
|
31381
|
-
class Client$
|
|
32038
|
+
class Client$I extends Client$J {
|
|
31382
32039
|
constructor() {
|
|
31383
32040
|
super(...arguments);
|
|
31384
32041
|
/**
|
|
@@ -31388,6 +32045,48 @@ class Client$H extends Client$I {
|
|
|
31388
32045
|
}
|
|
31389
32046
|
}
|
|
31390
32047
|
|
|
32048
|
+
// auto gen
|
|
32049
|
+
class Client$H extends Client$I {
|
|
32050
|
+
constructor() {
|
|
32051
|
+
super(...arguments);
|
|
32052
|
+
/**
|
|
32053
|
+
|
|
32054
|
+
*/
|
|
32055
|
+
this.docs = {
|
|
32056
|
+
v1: {
|
|
32057
|
+
/**
|
|
32058
|
+
* content
|
|
32059
|
+
*/
|
|
32060
|
+
content: {
|
|
32061
|
+
/**
|
|
32062
|
+
* {@link https://open.feishu.cn/api-explorer?project=docs&resource=content&apiName=get&version=v1 click to debug }
|
|
32063
|
+
*
|
|
32064
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docs&resource=content&version=v1 document }
|
|
32065
|
+
*
|
|
32066
|
+
* 获取云文档正文内容
|
|
32067
|
+
*/
|
|
32068
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32069
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32070
|
+
return this.httpInstance
|
|
32071
|
+
.request({
|
|
32072
|
+
url: fillApiPath(`${this.domain}/open-apis/docs/v1/content`, path),
|
|
32073
|
+
method: "GET",
|
|
32074
|
+
data,
|
|
32075
|
+
params,
|
|
32076
|
+
headers,
|
|
32077
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32078
|
+
})
|
|
32079
|
+
.catch((e) => {
|
|
32080
|
+
this.logger.error(formatErrors(e));
|
|
32081
|
+
throw e;
|
|
32082
|
+
});
|
|
32083
|
+
}),
|
|
32084
|
+
},
|
|
32085
|
+
},
|
|
32086
|
+
};
|
|
32087
|
+
}
|
|
32088
|
+
}
|
|
32089
|
+
|
|
31391
32090
|
// auto gen
|
|
31392
32091
|
class Client$G extends Client$H {
|
|
31393
32092
|
constructor() {
|
|
@@ -32773,7 +33472,7 @@ class Client$E extends Client$F {
|
|
|
32773
33472
|
constructor() {
|
|
32774
33473
|
super(...arguments);
|
|
32775
33474
|
/**
|
|
32776
|
-
*
|
|
33475
|
+
* 云文档-文档
|
|
32777
33476
|
*/
|
|
32778
33477
|
this.drive = {
|
|
32779
33478
|
/**
|
|
@@ -34067,7 +34766,7 @@ class Client$E extends Client$F {
|
|
|
34067
34766
|
}),
|
|
34068
34767
|
},
|
|
34069
34768
|
/**
|
|
34070
|
-
*
|
|
34769
|
+
* 分片上传
|
|
34071
34770
|
*/
|
|
34072
34771
|
media: {
|
|
34073
34772
|
/**
|
|
@@ -35893,7 +36592,7 @@ class Client$E extends Client$F {
|
|
|
35893
36592
|
}),
|
|
35894
36593
|
},
|
|
35895
36594
|
/**
|
|
35896
|
-
*
|
|
36595
|
+
* 分片上传
|
|
35897
36596
|
*/
|
|
35898
36597
|
media: {
|
|
35899
36598
|
/**
|
|
@@ -40352,6 +41051,27 @@ class Client$u extends Client$v {
|
|
|
40352
41051
|
* 猎头(灰度租户可见)
|
|
40353
41052
|
*/
|
|
40354
41053
|
agency: {
|
|
41054
|
+
/**
|
|
41055
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
41056
|
+
*
|
|
41057
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
41058
|
+
*/
|
|
41059
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41060
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41061
|
+
return this.httpInstance
|
|
41062
|
+
.request({
|
|
41063
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
41064
|
+
method: "POST",
|
|
41065
|
+
data,
|
|
41066
|
+
params,
|
|
41067
|
+
headers,
|
|
41068
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41069
|
+
})
|
|
41070
|
+
.catch((e) => {
|
|
41071
|
+
this.logger.error(formatErrors(e));
|
|
41072
|
+
throw e;
|
|
41073
|
+
});
|
|
41074
|
+
}),
|
|
40355
41075
|
/**
|
|
40356
41076
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
40357
41077
|
*
|
|
@@ -40377,6 +41097,48 @@ class Client$u extends Client$v {
|
|
|
40377
41097
|
throw e;
|
|
40378
41098
|
});
|
|
40379
41099
|
}),
|
|
41100
|
+
/**
|
|
41101
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
41102
|
+
*
|
|
41103
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
41104
|
+
*/
|
|
41105
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41106
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41107
|
+
return this.httpInstance
|
|
41108
|
+
.request({
|
|
41109
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
41110
|
+
method: "POST",
|
|
41111
|
+
data,
|
|
41112
|
+
params,
|
|
41113
|
+
headers,
|
|
41114
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41115
|
+
})
|
|
41116
|
+
.catch((e) => {
|
|
41117
|
+
this.logger.error(formatErrors(e));
|
|
41118
|
+
throw e;
|
|
41119
|
+
});
|
|
41120
|
+
}),
|
|
41121
|
+
/**
|
|
41122
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
41123
|
+
*
|
|
41124
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
41125
|
+
*/
|
|
41126
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41127
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41128
|
+
return this.httpInstance
|
|
41129
|
+
.request({
|
|
41130
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
41131
|
+
method: "POST",
|
|
41132
|
+
data,
|
|
41133
|
+
params,
|
|
41134
|
+
headers,
|
|
41135
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41136
|
+
})
|
|
41137
|
+
.catch((e) => {
|
|
41138
|
+
this.logger.error(formatErrors(e));
|
|
41139
|
+
throw e;
|
|
41140
|
+
});
|
|
41141
|
+
}),
|
|
40380
41142
|
/**
|
|
40381
41143
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
40382
41144
|
*
|
|
@@ -40450,7 +41212,7 @@ class Client$u extends Client$v {
|
|
|
40450
41212
|
}),
|
|
40451
41213
|
},
|
|
40452
41214
|
/**
|
|
40453
|
-
*
|
|
41215
|
+
* 投递
|
|
40454
41216
|
*/
|
|
40455
41217
|
application: {
|
|
40456
41218
|
/**
|
|
@@ -40503,6 +41265,27 @@ class Client$u extends Client$v {
|
|
|
40503
41265
|
throw e;
|
|
40504
41266
|
});
|
|
40505
41267
|
}),
|
|
41268
|
+
/**
|
|
41269
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
41270
|
+
*
|
|
41271
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
41272
|
+
*/
|
|
41273
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41274
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41275
|
+
return this.httpInstance
|
|
41276
|
+
.request({
|
|
41277
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
41278
|
+
method: "GET",
|
|
41279
|
+
data,
|
|
41280
|
+
params,
|
|
41281
|
+
headers,
|
|
41282
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41283
|
+
})
|
|
41284
|
+
.catch((e) => {
|
|
41285
|
+
this.logger.error(formatErrors(e));
|
|
41286
|
+
throw e;
|
|
41287
|
+
});
|
|
41288
|
+
}),
|
|
40506
41289
|
/**
|
|
40507
41290
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
40508
41291
|
*
|
|
@@ -41777,226 +42560,13 @@ class Client$u extends Client$v {
|
|
|
41777
42560
|
* 导入外部系统信息(灰度租户可见)
|
|
41778
42561
|
*/
|
|
41779
42562
|
externalBackgroundCheck: {
|
|
41780
|
-
|
|
41781
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
41782
|
-
*
|
|
41783
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
41784
|
-
*
|
|
41785
|
-
* 创建外部背调
|
|
41786
|
-
*
|
|
41787
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
41788
|
-
*/
|
|
41789
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41790
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41791
|
-
return this.httpInstance
|
|
41792
|
-
.request({
|
|
41793
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
41794
|
-
method: "POST",
|
|
41795
|
-
data,
|
|
41796
|
-
params,
|
|
41797
|
-
headers,
|
|
41798
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41799
|
-
})
|
|
41800
|
-
.catch((e) => {
|
|
41801
|
-
this.logger.error(formatErrors(e));
|
|
41802
|
-
throw e;
|
|
41803
|
-
});
|
|
41804
|
-
}),
|
|
41805
|
-
},
|
|
41806
|
-
/**
|
|
41807
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41808
|
-
*/
|
|
41809
|
-
externalInterview: {
|
|
41810
|
-
/**
|
|
41811
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
41812
|
-
*
|
|
41813
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
41814
|
-
*
|
|
41815
|
-
* 创建外部面试
|
|
41816
|
-
*
|
|
41817
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
41818
|
-
*/
|
|
41819
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41820
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41821
|
-
return this.httpInstance
|
|
41822
|
-
.request({
|
|
41823
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
41824
|
-
method: "POST",
|
|
41825
|
-
data,
|
|
41826
|
-
params,
|
|
41827
|
-
headers,
|
|
41828
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41829
|
-
})
|
|
41830
|
-
.catch((e) => {
|
|
41831
|
-
this.logger.error(formatErrors(e));
|
|
41832
|
-
throw e;
|
|
41833
|
-
});
|
|
41834
|
-
}),
|
|
41835
|
-
},
|
|
41836
|
-
/**
|
|
41837
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41838
|
-
*/
|
|
41839
|
-
externalInterviewAssessment: {
|
|
41840
|
-
/**
|
|
41841
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
|
|
41842
|
-
*
|
|
41843
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
|
|
41844
|
-
*
|
|
41845
|
-
* 创建外部面评
|
|
41846
|
-
*
|
|
41847
|
-
* 导入来自其他系统的面评信息,创建为外部面评
|
|
41848
|
-
*/
|
|
41849
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41850
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41851
|
-
return this.httpInstance
|
|
41852
|
-
.request({
|
|
41853
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
|
|
41854
|
-
method: "POST",
|
|
41855
|
-
data,
|
|
41856
|
-
params,
|
|
41857
|
-
headers,
|
|
41858
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41859
|
-
})
|
|
41860
|
-
.catch((e) => {
|
|
41861
|
-
this.logger.error(formatErrors(e));
|
|
41862
|
-
throw e;
|
|
41863
|
-
});
|
|
41864
|
-
}),
|
|
41865
|
-
/**
|
|
41866
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
|
|
41867
|
-
*
|
|
41868
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
|
|
41869
|
-
*/
|
|
41870
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41871
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41872
|
-
return this.httpInstance
|
|
41873
|
-
.request({
|
|
41874
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
|
|
41875
|
-
method: "PATCH",
|
|
41876
|
-
data,
|
|
41877
|
-
params,
|
|
41878
|
-
headers,
|
|
41879
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41880
|
-
})
|
|
41881
|
-
.catch((e) => {
|
|
41882
|
-
this.logger.error(formatErrors(e));
|
|
41883
|
-
throw e;
|
|
41884
|
-
});
|
|
41885
|
-
}),
|
|
41886
|
-
},
|
|
41887
|
-
/**
|
|
41888
|
-
* external_referral_reward
|
|
41889
|
-
*/
|
|
41890
|
-
externalReferralReward: {
|
|
41891
|
-
/**
|
|
41892
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
|
|
41893
|
-
*
|
|
41894
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41895
|
-
*/
|
|
41896
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41897
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41898
|
-
return this.httpInstance
|
|
41899
|
-
.request({
|
|
41900
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
|
|
41901
|
-
method: "POST",
|
|
41902
|
-
data,
|
|
41903
|
-
params,
|
|
41904
|
-
headers,
|
|
41905
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41906
|
-
})
|
|
41907
|
-
.catch((e) => {
|
|
41908
|
-
this.logger.error(formatErrors(e));
|
|
41909
|
-
throw e;
|
|
41910
|
-
});
|
|
41911
|
-
}),
|
|
41912
|
-
/**
|
|
41913
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
|
|
41914
|
-
*
|
|
41915
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41916
|
-
*/
|
|
41917
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41918
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41919
|
-
return this.httpInstance
|
|
41920
|
-
.request({
|
|
41921
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
|
|
41922
|
-
method: "DELETE",
|
|
41923
|
-
data,
|
|
41924
|
-
params,
|
|
41925
|
-
headers,
|
|
41926
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41927
|
-
})
|
|
41928
|
-
.catch((e) => {
|
|
41929
|
-
this.logger.error(formatErrors(e));
|
|
41930
|
-
throw e;
|
|
41931
|
-
});
|
|
41932
|
-
}),
|
|
41933
|
-
},
|
|
41934
|
-
/**
|
|
41935
|
-
* 面试
|
|
41936
|
-
*/
|
|
41937
|
-
interview: {
|
|
41938
|
-
/**
|
|
41939
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
|
|
41940
|
-
*
|
|
41941
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
|
|
41942
|
-
*
|
|
41943
|
-
* 获取人才面试信息
|
|
41944
|
-
*
|
|
41945
|
-
* 获取人才面试信息
|
|
41946
|
-
*/
|
|
41947
|
-
getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41948
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41949
|
-
return this.httpInstance
|
|
41950
|
-
.request({
|
|
41951
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
|
|
41952
|
-
method: "GET",
|
|
41953
|
-
data,
|
|
41954
|
-
params,
|
|
41955
|
-
headers,
|
|
41956
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41957
|
-
})
|
|
41958
|
-
.catch((e) => {
|
|
41959
|
-
this.logger.error(formatErrors(e));
|
|
41960
|
-
throw e;
|
|
41961
|
-
});
|
|
41962
|
-
}),
|
|
41963
|
-
/**
|
|
41964
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
|
|
41965
|
-
*
|
|
41966
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
|
|
41967
|
-
*
|
|
41968
|
-
* 获取面试信息
|
|
41969
|
-
*
|
|
41970
|
-
* 根据投递 ID 或面试时间获取面试信息
|
|
41971
|
-
*/
|
|
41972
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41973
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41974
|
-
return this.httpInstance
|
|
41975
|
-
.request({
|
|
41976
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
|
|
41977
|
-
method: "GET",
|
|
41978
|
-
data,
|
|
41979
|
-
params,
|
|
41980
|
-
headers,
|
|
41981
|
-
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
41982
|
-
})
|
|
41983
|
-
.catch((e) => {
|
|
41984
|
-
this.logger.error(formatErrors(e));
|
|
41985
|
-
throw e;
|
|
41986
|
-
});
|
|
41987
|
-
}),
|
|
41988
|
-
},
|
|
41989
|
-
/**
|
|
41990
|
-
* interview_feedback_form
|
|
41991
|
-
*/
|
|
41992
|
-
interviewFeedbackForm: {
|
|
41993
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42563
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41994
42564
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41995
42565
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
41996
42566
|
const res = yield this.httpInstance
|
|
41997
42567
|
.request({
|
|
41998
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41999
|
-
method: "
|
|
42568
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42569
|
+
method: "POST",
|
|
42000
42570
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
42001
42571
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
42002
42572
|
data,
|
|
@@ -42041,16 +42611,16 @@ class Client$u extends Client$v {
|
|
|
42041
42611
|
return Iterable;
|
|
42042
42612
|
}),
|
|
42043
42613
|
/**
|
|
42044
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42614
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
42045
42615
|
*
|
|
42046
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
42616
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
42047
42617
|
*/
|
|
42048
|
-
|
|
42618
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42049
42619
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42050
42620
|
return this.httpInstance
|
|
42051
42621
|
.request({
|
|
42052
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42053
|
-
method: "
|
|
42622
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42623
|
+
method: "POST",
|
|
42054
42624
|
data,
|
|
42055
42625
|
params,
|
|
42056
42626
|
headers,
|
|
@@ -42061,22 +42631,21 @@ class Client$u extends Client$v {
|
|
|
42061
42631
|
throw e;
|
|
42062
42632
|
});
|
|
42063
42633
|
}),
|
|
42064
|
-
},
|
|
42065
|
-
/**
|
|
42066
|
-
* interview_record.attachment
|
|
42067
|
-
*/
|
|
42068
|
-
interviewRecordAttachment: {
|
|
42069
42634
|
/**
|
|
42070
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42635
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
42071
42636
|
*
|
|
42072
|
-
* {@link https://open.feishu.cn/
|
|
42637
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
42638
|
+
*
|
|
42639
|
+
* 创建外部背调
|
|
42640
|
+
*
|
|
42641
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
42073
42642
|
*/
|
|
42074
|
-
|
|
42643
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42075
42644
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42076
42645
|
return this.httpInstance
|
|
42077
42646
|
.request({
|
|
42078
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42079
|
-
method: "
|
|
42647
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
42648
|
+
method: "POST",
|
|
42080
42649
|
data,
|
|
42081
42650
|
params,
|
|
42082
42651
|
headers,
|
|
@@ -42087,26 +42656,38 @@ class Client$u extends Client$v {
|
|
|
42087
42656
|
throw e;
|
|
42088
42657
|
});
|
|
42089
42658
|
}),
|
|
42090
|
-
},
|
|
42091
|
-
/**
|
|
42092
|
-
* interview_record
|
|
42093
|
-
*/
|
|
42094
|
-
interviewRecord: {
|
|
42095
42659
|
/**
|
|
42096
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42660
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
42097
42661
|
*
|
|
42098
|
-
* {@link https://open.feishu.cn/
|
|
42099
|
-
|
|
42100
|
-
|
|
42662
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
42663
|
+
*/
|
|
42664
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42665
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42666
|
+
return this.httpInstance
|
|
42667
|
+
.request({
|
|
42668
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
42669
|
+
method: "DELETE",
|
|
42670
|
+
data,
|
|
42671
|
+
params,
|
|
42672
|
+
headers,
|
|
42673
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42674
|
+
})
|
|
42675
|
+
.catch((e) => {
|
|
42676
|
+
this.logger.error(formatErrors(e));
|
|
42677
|
+
throw e;
|
|
42678
|
+
});
|
|
42679
|
+
}),
|
|
42680
|
+
/**
|
|
42681
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
42101
42682
|
*
|
|
42102
|
-
*
|
|
42683
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
42103
42684
|
*/
|
|
42104
|
-
|
|
42685
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42105
42686
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42106
42687
|
return this.httpInstance
|
|
42107
42688
|
.request({
|
|
42108
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42109
|
-
method: "
|
|
42689
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
42690
|
+
method: "PUT",
|
|
42110
42691
|
data,
|
|
42111
42692
|
params,
|
|
42112
42693
|
headers,
|
|
@@ -42117,13 +42698,580 @@ class Client$u extends Client$v {
|
|
|
42117
42698
|
throw e;
|
|
42118
42699
|
});
|
|
42119
42700
|
}),
|
|
42120
|
-
|
|
42701
|
+
},
|
|
42702
|
+
/**
|
|
42703
|
+
* 导入外部系统信息(灰度租户可见)
|
|
42704
|
+
*/
|
|
42705
|
+
externalInterview: {
|
|
42706
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42121
42707
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42122
42708
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
42123
42709
|
const res = yield this.httpInstance
|
|
42124
42710
|
.request({
|
|
42125
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42126
|
-
method: "
|
|
42711
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
42712
|
+
method: "POST",
|
|
42713
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
42714
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
42715
|
+
data,
|
|
42716
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42717
|
+
})
|
|
42718
|
+
.catch((e) => {
|
|
42719
|
+
this.logger.error(formatErrors(e));
|
|
42720
|
+
});
|
|
42721
|
+
return res;
|
|
42722
|
+
});
|
|
42723
|
+
const Iterable = {
|
|
42724
|
+
[Symbol.asyncIterator]() {
|
|
42725
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
42726
|
+
let hasMore = true;
|
|
42727
|
+
let pageToken;
|
|
42728
|
+
while (hasMore) {
|
|
42729
|
+
try {
|
|
42730
|
+
const res = yield __await(sendRequest({
|
|
42731
|
+
headers,
|
|
42732
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
42733
|
+
data,
|
|
42734
|
+
}));
|
|
42735
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
42736
|
+
// @ts-ignore
|
|
42737
|
+
has_more,
|
|
42738
|
+
// @ts-ignore
|
|
42739
|
+
page_token,
|
|
42740
|
+
// @ts-ignore
|
|
42741
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
42742
|
+
yield yield __await(rest);
|
|
42743
|
+
hasMore = Boolean(has_more);
|
|
42744
|
+
pageToken = page_token || next_page_token;
|
|
42745
|
+
}
|
|
42746
|
+
catch (e) {
|
|
42747
|
+
yield yield __await(null);
|
|
42748
|
+
break;
|
|
42749
|
+
}
|
|
42750
|
+
}
|
|
42751
|
+
});
|
|
42752
|
+
},
|
|
42753
|
+
};
|
|
42754
|
+
return Iterable;
|
|
42755
|
+
}),
|
|
42756
|
+
/**
|
|
42757
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
42758
|
+
*
|
|
42759
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
42760
|
+
*/
|
|
42761
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42762
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42763
|
+
return this.httpInstance
|
|
42764
|
+
.request({
|
|
42765
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
42766
|
+
method: "POST",
|
|
42767
|
+
data,
|
|
42768
|
+
params,
|
|
42769
|
+
headers,
|
|
42770
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42771
|
+
})
|
|
42772
|
+
.catch((e) => {
|
|
42773
|
+
this.logger.error(formatErrors(e));
|
|
42774
|
+
throw e;
|
|
42775
|
+
});
|
|
42776
|
+
}),
|
|
42777
|
+
/**
|
|
42778
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
42779
|
+
*
|
|
42780
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
42781
|
+
*
|
|
42782
|
+
* 创建外部面试
|
|
42783
|
+
*
|
|
42784
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
42785
|
+
*/
|
|
42786
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42787
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42788
|
+
return this.httpInstance
|
|
42789
|
+
.request({
|
|
42790
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
42791
|
+
method: "POST",
|
|
42792
|
+
data,
|
|
42793
|
+
params,
|
|
42794
|
+
headers,
|
|
42795
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42796
|
+
})
|
|
42797
|
+
.catch((e) => {
|
|
42798
|
+
this.logger.error(formatErrors(e));
|
|
42799
|
+
throw e;
|
|
42800
|
+
});
|
|
42801
|
+
}),
|
|
42802
|
+
/**
|
|
42803
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
42804
|
+
*
|
|
42805
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
42806
|
+
*/
|
|
42807
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42808
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42809
|
+
return this.httpInstance
|
|
42810
|
+
.request({
|
|
42811
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
42812
|
+
method: "DELETE",
|
|
42813
|
+
data,
|
|
42814
|
+
params,
|
|
42815
|
+
headers,
|
|
42816
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42817
|
+
})
|
|
42818
|
+
.catch((e) => {
|
|
42819
|
+
this.logger.error(formatErrors(e));
|
|
42820
|
+
throw e;
|
|
42821
|
+
});
|
|
42822
|
+
}),
|
|
42823
|
+
/**
|
|
42824
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
42825
|
+
*
|
|
42826
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
42827
|
+
*/
|
|
42828
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42829
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42830
|
+
return this.httpInstance
|
|
42831
|
+
.request({
|
|
42832
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
42833
|
+
method: "PUT",
|
|
42834
|
+
data,
|
|
42835
|
+
params,
|
|
42836
|
+
headers,
|
|
42837
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42838
|
+
})
|
|
42839
|
+
.catch((e) => {
|
|
42840
|
+
this.logger.error(formatErrors(e));
|
|
42841
|
+
throw e;
|
|
42842
|
+
});
|
|
42843
|
+
}),
|
|
42844
|
+
},
|
|
42845
|
+
/**
|
|
42846
|
+
* 导入外部系统信息(灰度租户可见)
|
|
42847
|
+
*/
|
|
42848
|
+
externalInterviewAssessment: {
|
|
42849
|
+
/**
|
|
42850
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
|
|
42851
|
+
*
|
|
42852
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
|
|
42853
|
+
*
|
|
42854
|
+
* 创建外部面评
|
|
42855
|
+
*
|
|
42856
|
+
* 导入来自其他系统的面评信息,创建为外部面评
|
|
42857
|
+
*/
|
|
42858
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42859
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42860
|
+
return this.httpInstance
|
|
42861
|
+
.request({
|
|
42862
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
|
|
42863
|
+
method: "POST",
|
|
42864
|
+
data,
|
|
42865
|
+
params,
|
|
42866
|
+
headers,
|
|
42867
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42868
|
+
})
|
|
42869
|
+
.catch((e) => {
|
|
42870
|
+
this.logger.error(formatErrors(e));
|
|
42871
|
+
throw e;
|
|
42872
|
+
});
|
|
42873
|
+
}),
|
|
42874
|
+
/**
|
|
42875
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
|
|
42876
|
+
*
|
|
42877
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
|
|
42878
|
+
*/
|
|
42879
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42880
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42881
|
+
return this.httpInstance
|
|
42882
|
+
.request({
|
|
42883
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
|
|
42884
|
+
method: "PATCH",
|
|
42885
|
+
data,
|
|
42886
|
+
params,
|
|
42887
|
+
headers,
|
|
42888
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42889
|
+
})
|
|
42890
|
+
.catch((e) => {
|
|
42891
|
+
this.logger.error(formatErrors(e));
|
|
42892
|
+
throw e;
|
|
42893
|
+
});
|
|
42894
|
+
}),
|
|
42895
|
+
},
|
|
42896
|
+
/**
|
|
42897
|
+
* external_offer
|
|
42898
|
+
*/
|
|
42899
|
+
externalOffer: {
|
|
42900
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42901
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42902
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
42903
|
+
const res = yield this.httpInstance
|
|
42904
|
+
.request({
|
|
42905
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
42906
|
+
method: "POST",
|
|
42907
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
42908
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
42909
|
+
data,
|
|
42910
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42911
|
+
})
|
|
42912
|
+
.catch((e) => {
|
|
42913
|
+
this.logger.error(formatErrors(e));
|
|
42914
|
+
});
|
|
42915
|
+
return res;
|
|
42916
|
+
});
|
|
42917
|
+
const Iterable = {
|
|
42918
|
+
[Symbol.asyncIterator]() {
|
|
42919
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
42920
|
+
let hasMore = true;
|
|
42921
|
+
let pageToken;
|
|
42922
|
+
while (hasMore) {
|
|
42923
|
+
try {
|
|
42924
|
+
const res = yield __await(sendRequest({
|
|
42925
|
+
headers,
|
|
42926
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
42927
|
+
data,
|
|
42928
|
+
}));
|
|
42929
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
42930
|
+
// @ts-ignore
|
|
42931
|
+
has_more,
|
|
42932
|
+
// @ts-ignore
|
|
42933
|
+
page_token,
|
|
42934
|
+
// @ts-ignore
|
|
42935
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
42936
|
+
yield yield __await(rest);
|
|
42937
|
+
hasMore = Boolean(has_more);
|
|
42938
|
+
pageToken = page_token || next_page_token;
|
|
42939
|
+
}
|
|
42940
|
+
catch (e) {
|
|
42941
|
+
yield yield __await(null);
|
|
42942
|
+
break;
|
|
42943
|
+
}
|
|
42944
|
+
}
|
|
42945
|
+
});
|
|
42946
|
+
},
|
|
42947
|
+
};
|
|
42948
|
+
return Iterable;
|
|
42949
|
+
}),
|
|
42950
|
+
/**
|
|
42951
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
42952
|
+
*
|
|
42953
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
42954
|
+
*/
|
|
42955
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42956
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42957
|
+
return this.httpInstance
|
|
42958
|
+
.request({
|
|
42959
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
42960
|
+
method: "POST",
|
|
42961
|
+
data,
|
|
42962
|
+
params,
|
|
42963
|
+
headers,
|
|
42964
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42965
|
+
})
|
|
42966
|
+
.catch((e) => {
|
|
42967
|
+
this.logger.error(formatErrors(e));
|
|
42968
|
+
throw e;
|
|
42969
|
+
});
|
|
42970
|
+
}),
|
|
42971
|
+
/**
|
|
42972
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
42973
|
+
*
|
|
42974
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
42975
|
+
*/
|
|
42976
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42978
|
+
return this.httpInstance
|
|
42979
|
+
.request({
|
|
42980
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
42981
|
+
method: "POST",
|
|
42982
|
+
data,
|
|
42983
|
+
params,
|
|
42984
|
+
headers,
|
|
42985
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42986
|
+
})
|
|
42987
|
+
.catch((e) => {
|
|
42988
|
+
this.logger.error(formatErrors(e));
|
|
42989
|
+
throw e;
|
|
42990
|
+
});
|
|
42991
|
+
}),
|
|
42992
|
+
/**
|
|
42993
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
42994
|
+
*
|
|
42995
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
42996
|
+
*/
|
|
42997
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42998
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42999
|
+
return this.httpInstance
|
|
43000
|
+
.request({
|
|
43001
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
43002
|
+
method: "DELETE",
|
|
43003
|
+
data,
|
|
43004
|
+
params,
|
|
43005
|
+
headers,
|
|
43006
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43007
|
+
})
|
|
43008
|
+
.catch((e) => {
|
|
43009
|
+
this.logger.error(formatErrors(e));
|
|
43010
|
+
throw e;
|
|
43011
|
+
});
|
|
43012
|
+
}),
|
|
43013
|
+
/**
|
|
43014
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
43015
|
+
*
|
|
43016
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
43017
|
+
*/
|
|
43018
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43019
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43020
|
+
return this.httpInstance
|
|
43021
|
+
.request({
|
|
43022
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
43023
|
+
method: "PUT",
|
|
43024
|
+
data,
|
|
43025
|
+
params,
|
|
43026
|
+
headers,
|
|
43027
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43028
|
+
})
|
|
43029
|
+
.catch((e) => {
|
|
43030
|
+
this.logger.error(formatErrors(e));
|
|
43031
|
+
throw e;
|
|
43032
|
+
});
|
|
43033
|
+
}),
|
|
43034
|
+
},
|
|
43035
|
+
/**
|
|
43036
|
+
* external_referral_reward
|
|
43037
|
+
*/
|
|
43038
|
+
externalReferralReward: {
|
|
43039
|
+
/**
|
|
43040
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
|
|
43041
|
+
*
|
|
43042
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
|
|
43043
|
+
*/
|
|
43044
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43045
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43046
|
+
return this.httpInstance
|
|
43047
|
+
.request({
|
|
43048
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
|
|
43049
|
+
method: "POST",
|
|
43050
|
+
data,
|
|
43051
|
+
params,
|
|
43052
|
+
headers,
|
|
43053
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43054
|
+
})
|
|
43055
|
+
.catch((e) => {
|
|
43056
|
+
this.logger.error(formatErrors(e));
|
|
43057
|
+
throw e;
|
|
43058
|
+
});
|
|
43059
|
+
}),
|
|
43060
|
+
/**
|
|
43061
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
|
|
43062
|
+
*
|
|
43063
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
|
|
43064
|
+
*/
|
|
43065
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43066
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43067
|
+
return this.httpInstance
|
|
43068
|
+
.request({
|
|
43069
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
|
|
43070
|
+
method: "DELETE",
|
|
43071
|
+
data,
|
|
43072
|
+
params,
|
|
43073
|
+
headers,
|
|
43074
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43075
|
+
})
|
|
43076
|
+
.catch((e) => {
|
|
43077
|
+
this.logger.error(formatErrors(e));
|
|
43078
|
+
throw e;
|
|
43079
|
+
});
|
|
43080
|
+
}),
|
|
43081
|
+
},
|
|
43082
|
+
/**
|
|
43083
|
+
* 面试
|
|
43084
|
+
*/
|
|
43085
|
+
interview: {
|
|
43086
|
+
/**
|
|
43087
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
|
|
43088
|
+
*
|
|
43089
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
|
|
43090
|
+
*
|
|
43091
|
+
* 获取人才面试信息
|
|
43092
|
+
*
|
|
43093
|
+
* 获取人才面试信息
|
|
43094
|
+
*/
|
|
43095
|
+
getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43096
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43097
|
+
return this.httpInstance
|
|
43098
|
+
.request({
|
|
43099
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
|
|
43100
|
+
method: "GET",
|
|
43101
|
+
data,
|
|
43102
|
+
params,
|
|
43103
|
+
headers,
|
|
43104
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43105
|
+
})
|
|
43106
|
+
.catch((e) => {
|
|
43107
|
+
this.logger.error(formatErrors(e));
|
|
43108
|
+
throw e;
|
|
43109
|
+
});
|
|
43110
|
+
}),
|
|
43111
|
+
/**
|
|
43112
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
|
|
43113
|
+
*
|
|
43114
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
|
|
43115
|
+
*
|
|
43116
|
+
* 获取面试信息
|
|
43117
|
+
*
|
|
43118
|
+
* 根据投递 ID 或面试时间获取面试信息
|
|
43119
|
+
*/
|
|
43120
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43121
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43122
|
+
return this.httpInstance
|
|
43123
|
+
.request({
|
|
43124
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
|
|
43125
|
+
method: "GET",
|
|
43126
|
+
data,
|
|
43127
|
+
params,
|
|
43128
|
+
headers,
|
|
43129
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43130
|
+
})
|
|
43131
|
+
.catch((e) => {
|
|
43132
|
+
this.logger.error(formatErrors(e));
|
|
43133
|
+
throw e;
|
|
43134
|
+
});
|
|
43135
|
+
}),
|
|
43136
|
+
},
|
|
43137
|
+
/**
|
|
43138
|
+
* interview_feedback_form
|
|
43139
|
+
*/
|
|
43140
|
+
interviewFeedbackForm: {
|
|
43141
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43142
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43143
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43144
|
+
const res = yield this.httpInstance
|
|
43145
|
+
.request({
|
|
43146
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
|
|
43147
|
+
method: "GET",
|
|
43148
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
43149
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
43150
|
+
data,
|
|
43151
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43152
|
+
})
|
|
43153
|
+
.catch((e) => {
|
|
43154
|
+
this.logger.error(formatErrors(e));
|
|
43155
|
+
});
|
|
43156
|
+
return res;
|
|
43157
|
+
});
|
|
43158
|
+
const Iterable = {
|
|
43159
|
+
[Symbol.asyncIterator]() {
|
|
43160
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43161
|
+
let hasMore = true;
|
|
43162
|
+
let pageToken;
|
|
43163
|
+
while (hasMore) {
|
|
43164
|
+
try {
|
|
43165
|
+
const res = yield __await(sendRequest({
|
|
43166
|
+
headers,
|
|
43167
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
43168
|
+
data,
|
|
43169
|
+
}));
|
|
43170
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
43171
|
+
// @ts-ignore
|
|
43172
|
+
has_more,
|
|
43173
|
+
// @ts-ignore
|
|
43174
|
+
page_token,
|
|
43175
|
+
// @ts-ignore
|
|
43176
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
43177
|
+
yield yield __await(rest);
|
|
43178
|
+
hasMore = Boolean(has_more);
|
|
43179
|
+
pageToken = page_token || next_page_token;
|
|
43180
|
+
}
|
|
43181
|
+
catch (e) {
|
|
43182
|
+
yield yield __await(null);
|
|
43183
|
+
break;
|
|
43184
|
+
}
|
|
43185
|
+
}
|
|
43186
|
+
});
|
|
43187
|
+
},
|
|
43188
|
+
};
|
|
43189
|
+
return Iterable;
|
|
43190
|
+
}),
|
|
43191
|
+
/**
|
|
43192
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_feedback_form&apiName=list&version=v1 click to debug }
|
|
43193
|
+
*
|
|
43194
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interview_feedback_form&version=v1 document }
|
|
43195
|
+
*/
|
|
43196
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43197
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43198
|
+
return this.httpInstance
|
|
43199
|
+
.request({
|
|
43200
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
|
|
43201
|
+
method: "GET",
|
|
43202
|
+
data,
|
|
43203
|
+
params,
|
|
43204
|
+
headers,
|
|
43205
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43206
|
+
})
|
|
43207
|
+
.catch((e) => {
|
|
43208
|
+
this.logger.error(formatErrors(e));
|
|
43209
|
+
throw e;
|
|
43210
|
+
});
|
|
43211
|
+
}),
|
|
43212
|
+
},
|
|
43213
|
+
/**
|
|
43214
|
+
* interview_record.attachment
|
|
43215
|
+
*/
|
|
43216
|
+
interviewRecordAttachment: {
|
|
43217
|
+
/**
|
|
43218
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record.attachment&apiName=get&version=v1 click to debug }
|
|
43219
|
+
*
|
|
43220
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=interview_record.attachment&version=v1 document }
|
|
43221
|
+
*/
|
|
43222
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43223
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43224
|
+
return this.httpInstance
|
|
43225
|
+
.request({
|
|
43226
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/attachments`, path),
|
|
43227
|
+
method: "GET",
|
|
43228
|
+
data,
|
|
43229
|
+
params,
|
|
43230
|
+
headers,
|
|
43231
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43232
|
+
})
|
|
43233
|
+
.catch((e) => {
|
|
43234
|
+
this.logger.error(formatErrors(e));
|
|
43235
|
+
throw e;
|
|
43236
|
+
});
|
|
43237
|
+
}),
|
|
43238
|
+
},
|
|
43239
|
+
/**
|
|
43240
|
+
* interview_record
|
|
43241
|
+
*/
|
|
43242
|
+
interviewRecord: {
|
|
43243
|
+
/**
|
|
43244
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record&apiName=get&version=v1 click to debug }
|
|
43245
|
+
*
|
|
43246
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview_record/get document }
|
|
43247
|
+
*
|
|
43248
|
+
* 获取面试评价详细信息
|
|
43249
|
+
*
|
|
43250
|
+
* 获取面试评价详细信息
|
|
43251
|
+
*/
|
|
43252
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43253
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43254
|
+
return this.httpInstance
|
|
43255
|
+
.request({
|
|
43256
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`, path),
|
|
43257
|
+
method: "GET",
|
|
43258
|
+
data,
|
|
43259
|
+
params,
|
|
43260
|
+
headers,
|
|
43261
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43262
|
+
})
|
|
43263
|
+
.catch((e) => {
|
|
43264
|
+
this.logger.error(formatErrors(e));
|
|
43265
|
+
throw e;
|
|
43266
|
+
});
|
|
43267
|
+
}),
|
|
43268
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43269
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43270
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43271
|
+
const res = yield this.httpInstance
|
|
43272
|
+
.request({
|
|
43273
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records`, path),
|
|
43274
|
+
method: "GET",
|
|
42127
43275
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
42128
43276
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
42129
43277
|
data,
|
|
@@ -42605,6 +43753,27 @@ class Client$u extends Client$v {
|
|
|
42605
43753
|
throw e;
|
|
42606
43754
|
});
|
|
42607
43755
|
}),
|
|
43756
|
+
/**
|
|
43757
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
43758
|
+
*
|
|
43759
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
43760
|
+
*/
|
|
43761
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43762
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43763
|
+
return this.httpInstance
|
|
43764
|
+
.request({
|
|
43765
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
43766
|
+
method: "GET",
|
|
43767
|
+
data,
|
|
43768
|
+
params,
|
|
43769
|
+
headers,
|
|
43770
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43771
|
+
})
|
|
43772
|
+
.catch((e) => {
|
|
43773
|
+
this.logger.error(formatErrors(e));
|
|
43774
|
+
throw e;
|
|
43775
|
+
});
|
|
43776
|
+
}),
|
|
42608
43777
|
/**
|
|
42609
43778
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
42610
43779
|
*
|
|
@@ -43803,6 +44972,48 @@ class Client$u extends Client$v {
|
|
|
43803
44972
|
throw e;
|
|
43804
44973
|
});
|
|
43805
44974
|
}),
|
|
44975
|
+
/**
|
|
44976
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
44977
|
+
*
|
|
44978
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
44979
|
+
*/
|
|
44980
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44981
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44982
|
+
return this.httpInstance
|
|
44983
|
+
.request({
|
|
44984
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
44985
|
+
method: "POST",
|
|
44986
|
+
data,
|
|
44987
|
+
params,
|
|
44988
|
+
headers,
|
|
44989
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44990
|
+
})
|
|
44991
|
+
.catch((e) => {
|
|
44992
|
+
this.logger.error(formatErrors(e));
|
|
44993
|
+
throw e;
|
|
44994
|
+
});
|
|
44995
|
+
}),
|
|
44996
|
+
/**
|
|
44997
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
44998
|
+
*
|
|
44999
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
45000
|
+
*/
|
|
45001
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45002
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45003
|
+
return this.httpInstance
|
|
45004
|
+
.request({
|
|
45005
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
45006
|
+
method: "GET",
|
|
45007
|
+
data,
|
|
45008
|
+
params,
|
|
45009
|
+
headers,
|
|
45010
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
45011
|
+
})
|
|
45012
|
+
.catch((e) => {
|
|
45013
|
+
this.logger.error(formatErrors(e));
|
|
45014
|
+
throw e;
|
|
45015
|
+
});
|
|
45016
|
+
}),
|
|
43806
45017
|
/**
|
|
43807
45018
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
43808
45019
|
*
|
|
@@ -44409,6 +45620,27 @@ class Client$u extends Client$v {
|
|
|
44409
45620
|
throw e;
|
|
44410
45621
|
});
|
|
44411
45622
|
}),
|
|
45623
|
+
/**
|
|
45624
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
45625
|
+
*
|
|
45626
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
45627
|
+
*/
|
|
45628
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45629
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45630
|
+
return this.httpInstance
|
|
45631
|
+
.request({
|
|
45632
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
45633
|
+
method: "POST",
|
|
45634
|
+
data,
|
|
45635
|
+
params,
|
|
45636
|
+
headers,
|
|
45637
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
45638
|
+
})
|
|
45639
|
+
.catch((e) => {
|
|
45640
|
+
this.logger.error(formatErrors(e));
|
|
45641
|
+
throw e;
|
|
45642
|
+
});
|
|
45643
|
+
}),
|
|
44412
45644
|
/**
|
|
44413
45645
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44414
45646
|
*
|
|
@@ -44486,6 +45718,32 @@ class Client$u extends Client$v {
|
|
|
44486
45718
|
});
|
|
44487
45719
|
}),
|
|
44488
45720
|
},
|
|
45721
|
+
/**
|
|
45722
|
+
* talent_blocklist
|
|
45723
|
+
*/
|
|
45724
|
+
talentBlocklist: {
|
|
45725
|
+
/**
|
|
45726
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
45727
|
+
*
|
|
45728
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
45729
|
+
*/
|
|
45730
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45731
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45732
|
+
return this.httpInstance
|
|
45733
|
+
.request({
|
|
45734
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
45735
|
+
method: "POST",
|
|
45736
|
+
data,
|
|
45737
|
+
params,
|
|
45738
|
+
headers,
|
|
45739
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
45740
|
+
})
|
|
45741
|
+
.catch((e) => {
|
|
45742
|
+
this.logger.error(formatErrors(e));
|
|
45743
|
+
throw e;
|
|
45744
|
+
});
|
|
45745
|
+
}),
|
|
45746
|
+
},
|
|
44489
45747
|
/**
|
|
44490
45748
|
* talent_folder
|
|
44491
45749
|
*/
|
|
@@ -44630,6 +45888,27 @@ class Client$u extends Client$v {
|
|
|
44630
45888
|
* talent_pool
|
|
44631
45889
|
*/
|
|
44632
45890
|
talentPool: {
|
|
45891
|
+
/**
|
|
45892
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
45893
|
+
*
|
|
45894
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
45895
|
+
*/
|
|
45896
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45897
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45898
|
+
return this.httpInstance
|
|
45899
|
+
.request({
|
|
45900
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
45901
|
+
method: "POST",
|
|
45902
|
+
data,
|
|
45903
|
+
params,
|
|
45904
|
+
headers,
|
|
45905
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
45906
|
+
})
|
|
45907
|
+
.catch((e) => {
|
|
45908
|
+
this.logger.error(formatErrors(e));
|
|
45909
|
+
throw e;
|
|
45910
|
+
});
|
|
45911
|
+
}),
|
|
44633
45912
|
/**
|
|
44634
45913
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
44635
45914
|
*
|
|
@@ -45775,6 +47054,27 @@ class Client$u extends Client$v {
|
|
|
45775
47054
|
* 猎头(灰度租户可见)
|
|
45776
47055
|
*/
|
|
45777
47056
|
agency: {
|
|
47057
|
+
/**
|
|
47058
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
47059
|
+
*
|
|
47060
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
47061
|
+
*/
|
|
47062
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47063
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47064
|
+
return this.httpInstance
|
|
47065
|
+
.request({
|
|
47066
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
47067
|
+
method: "POST",
|
|
47068
|
+
data,
|
|
47069
|
+
params,
|
|
47070
|
+
headers,
|
|
47071
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47072
|
+
})
|
|
47073
|
+
.catch((e) => {
|
|
47074
|
+
this.logger.error(formatErrors(e));
|
|
47075
|
+
throw e;
|
|
47076
|
+
});
|
|
47077
|
+
}),
|
|
45778
47078
|
/**
|
|
45779
47079
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
45780
47080
|
*
|
|
@@ -45800,6 +47100,48 @@ class Client$u extends Client$v {
|
|
|
45800
47100
|
throw e;
|
|
45801
47101
|
});
|
|
45802
47102
|
}),
|
|
47103
|
+
/**
|
|
47104
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
47105
|
+
*
|
|
47106
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
47107
|
+
*/
|
|
47108
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47109
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47110
|
+
return this.httpInstance
|
|
47111
|
+
.request({
|
|
47112
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
47113
|
+
method: "POST",
|
|
47114
|
+
data,
|
|
47115
|
+
params,
|
|
47116
|
+
headers,
|
|
47117
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47118
|
+
})
|
|
47119
|
+
.catch((e) => {
|
|
47120
|
+
this.logger.error(formatErrors(e));
|
|
47121
|
+
throw e;
|
|
47122
|
+
});
|
|
47123
|
+
}),
|
|
47124
|
+
/**
|
|
47125
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
47126
|
+
*
|
|
47127
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
47128
|
+
*/
|
|
47129
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47130
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47131
|
+
return this.httpInstance
|
|
47132
|
+
.request({
|
|
47133
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
47134
|
+
method: "POST",
|
|
47135
|
+
data,
|
|
47136
|
+
params,
|
|
47137
|
+
headers,
|
|
47138
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47139
|
+
})
|
|
47140
|
+
.catch((e) => {
|
|
47141
|
+
this.logger.error(formatErrors(e));
|
|
47142
|
+
throw e;
|
|
47143
|
+
});
|
|
47144
|
+
}),
|
|
45803
47145
|
/**
|
|
45804
47146
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
45805
47147
|
*
|
|
@@ -45873,7 +47215,7 @@ class Client$u extends Client$v {
|
|
|
45873
47215
|
}),
|
|
45874
47216
|
},
|
|
45875
47217
|
/**
|
|
45876
|
-
*
|
|
47218
|
+
* 投递
|
|
45877
47219
|
*/
|
|
45878
47220
|
application: {
|
|
45879
47221
|
/**
|
|
@@ -45926,6 +47268,27 @@ class Client$u extends Client$v {
|
|
|
45926
47268
|
throw e;
|
|
45927
47269
|
});
|
|
45928
47270
|
}),
|
|
47271
|
+
/**
|
|
47272
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
47273
|
+
*
|
|
47274
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
47275
|
+
*/
|
|
47276
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47277
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47278
|
+
return this.httpInstance
|
|
47279
|
+
.request({
|
|
47280
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
47281
|
+
method: "GET",
|
|
47282
|
+
data,
|
|
47283
|
+
params,
|
|
47284
|
+
headers,
|
|
47285
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47286
|
+
})
|
|
47287
|
+
.catch((e) => {
|
|
47288
|
+
this.logger.error(formatErrors(e));
|
|
47289
|
+
throw e;
|
|
47290
|
+
});
|
|
47291
|
+
}),
|
|
45929
47292
|
/**
|
|
45930
47293
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
45931
47294
|
*
|
|
@@ -47158,18 +48521,264 @@ class Client$u extends Client$v {
|
|
|
47158
48521
|
return Iterable;
|
|
47159
48522
|
}),
|
|
47160
48523
|
/**
|
|
47161
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
47162
|
-
*
|
|
47163
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
48524
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
48525
|
+
*
|
|
48526
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
48527
|
+
*
|
|
48528
|
+
* 根据人才 id 获取外部投递列表
|
|
48529
|
+
*/
|
|
48530
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48531
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48532
|
+
return this.httpInstance
|
|
48533
|
+
.request({
|
|
48534
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
48535
|
+
method: "GET",
|
|
48536
|
+
data,
|
|
48537
|
+
params,
|
|
48538
|
+
headers,
|
|
48539
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48540
|
+
})
|
|
48541
|
+
.catch((e) => {
|
|
48542
|
+
this.logger.error(formatErrors(e));
|
|
48543
|
+
throw e;
|
|
48544
|
+
});
|
|
48545
|
+
}),
|
|
48546
|
+
/**
|
|
48547
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
48548
|
+
*
|
|
48549
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
48550
|
+
*
|
|
48551
|
+
* 更新外部投递
|
|
48552
|
+
*/
|
|
48553
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48554
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48555
|
+
return this.httpInstance
|
|
48556
|
+
.request({
|
|
48557
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
48558
|
+
method: "PUT",
|
|
48559
|
+
data,
|
|
48560
|
+
params,
|
|
48561
|
+
headers,
|
|
48562
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48563
|
+
})
|
|
48564
|
+
.catch((e) => {
|
|
48565
|
+
this.logger.error(formatErrors(e));
|
|
48566
|
+
throw e;
|
|
48567
|
+
});
|
|
48568
|
+
}),
|
|
48569
|
+
},
|
|
48570
|
+
/**
|
|
48571
|
+
* 导入外部系统信息(灰度租户可见)
|
|
48572
|
+
*/
|
|
48573
|
+
externalBackgroundCheck: {
|
|
48574
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48575
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48576
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48577
|
+
const res = yield this.httpInstance
|
|
48578
|
+
.request({
|
|
48579
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
48580
|
+
method: "POST",
|
|
48581
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
48582
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
48583
|
+
data,
|
|
48584
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
48585
|
+
arrayFormat: "repeat",
|
|
48586
|
+
}),
|
|
48587
|
+
})
|
|
48588
|
+
.catch((e) => {
|
|
48589
|
+
this.logger.error(formatErrors(e));
|
|
48590
|
+
});
|
|
48591
|
+
return res;
|
|
48592
|
+
});
|
|
48593
|
+
const Iterable = {
|
|
48594
|
+
[Symbol.asyncIterator]() {
|
|
48595
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48596
|
+
let hasMore = true;
|
|
48597
|
+
let pageToken;
|
|
48598
|
+
while (hasMore) {
|
|
48599
|
+
try {
|
|
48600
|
+
const res = yield __await(sendRequest({
|
|
48601
|
+
headers,
|
|
48602
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48603
|
+
data,
|
|
48604
|
+
}));
|
|
48605
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
48606
|
+
// @ts-ignore
|
|
48607
|
+
has_more,
|
|
48608
|
+
// @ts-ignore
|
|
48609
|
+
page_token,
|
|
48610
|
+
// @ts-ignore
|
|
48611
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48612
|
+
yield yield __await(rest);
|
|
48613
|
+
hasMore = Boolean(has_more);
|
|
48614
|
+
pageToken = page_token || next_page_token;
|
|
48615
|
+
}
|
|
48616
|
+
catch (e) {
|
|
48617
|
+
yield yield __await(null);
|
|
48618
|
+
break;
|
|
48619
|
+
}
|
|
48620
|
+
}
|
|
48621
|
+
});
|
|
48622
|
+
},
|
|
48623
|
+
};
|
|
48624
|
+
return Iterable;
|
|
48625
|
+
}),
|
|
48626
|
+
/**
|
|
48627
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
48628
|
+
*
|
|
48629
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
48630
|
+
*/
|
|
48631
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48632
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48633
|
+
return this.httpInstance
|
|
48634
|
+
.request({
|
|
48635
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
48636
|
+
method: "POST",
|
|
48637
|
+
data,
|
|
48638
|
+
params,
|
|
48639
|
+
headers,
|
|
48640
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48641
|
+
})
|
|
48642
|
+
.catch((e) => {
|
|
48643
|
+
this.logger.error(formatErrors(e));
|
|
48644
|
+
throw e;
|
|
48645
|
+
});
|
|
48646
|
+
}),
|
|
48647
|
+
/**
|
|
48648
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
48649
|
+
*
|
|
48650
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
48651
|
+
*
|
|
48652
|
+
* 创建外部背调
|
|
48653
|
+
*
|
|
48654
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
48655
|
+
*/
|
|
48656
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48657
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48658
|
+
return this.httpInstance
|
|
48659
|
+
.request({
|
|
48660
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
48661
|
+
method: "POST",
|
|
48662
|
+
data,
|
|
48663
|
+
params,
|
|
48664
|
+
headers,
|
|
48665
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48666
|
+
})
|
|
48667
|
+
.catch((e) => {
|
|
48668
|
+
this.logger.error(formatErrors(e));
|
|
48669
|
+
throw e;
|
|
48670
|
+
});
|
|
48671
|
+
}),
|
|
48672
|
+
/**
|
|
48673
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
48674
|
+
*
|
|
48675
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
48676
|
+
*/
|
|
48677
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48678
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48679
|
+
return this.httpInstance
|
|
48680
|
+
.request({
|
|
48681
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
48682
|
+
method: "DELETE",
|
|
48683
|
+
data,
|
|
48684
|
+
params,
|
|
48685
|
+
headers,
|
|
48686
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48687
|
+
})
|
|
48688
|
+
.catch((e) => {
|
|
48689
|
+
this.logger.error(formatErrors(e));
|
|
48690
|
+
throw e;
|
|
48691
|
+
});
|
|
48692
|
+
}),
|
|
48693
|
+
/**
|
|
48694
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
48695
|
+
*
|
|
48696
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
48697
|
+
*/
|
|
48698
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48699
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48700
|
+
return this.httpInstance
|
|
48701
|
+
.request({
|
|
48702
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
48703
|
+
method: "PUT",
|
|
48704
|
+
data,
|
|
48705
|
+
params,
|
|
48706
|
+
headers,
|
|
48707
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48708
|
+
})
|
|
48709
|
+
.catch((e) => {
|
|
48710
|
+
this.logger.error(formatErrors(e));
|
|
48711
|
+
throw e;
|
|
48712
|
+
});
|
|
48713
|
+
}),
|
|
48714
|
+
},
|
|
48715
|
+
/**
|
|
48716
|
+
* 导入外部系统信息(灰度租户可见)
|
|
48717
|
+
*/
|
|
48718
|
+
externalInterview: {
|
|
48719
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48720
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48721
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48722
|
+
const res = yield this.httpInstance
|
|
48723
|
+
.request({
|
|
48724
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
48725
|
+
method: "POST",
|
|
48726
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
48727
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
48728
|
+
data,
|
|
48729
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
48730
|
+
arrayFormat: "repeat",
|
|
48731
|
+
}),
|
|
48732
|
+
})
|
|
48733
|
+
.catch((e) => {
|
|
48734
|
+
this.logger.error(formatErrors(e));
|
|
48735
|
+
});
|
|
48736
|
+
return res;
|
|
48737
|
+
});
|
|
48738
|
+
const Iterable = {
|
|
48739
|
+
[Symbol.asyncIterator]() {
|
|
48740
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48741
|
+
let hasMore = true;
|
|
48742
|
+
let pageToken;
|
|
48743
|
+
while (hasMore) {
|
|
48744
|
+
try {
|
|
48745
|
+
const res = yield __await(sendRequest({
|
|
48746
|
+
headers,
|
|
48747
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48748
|
+
data,
|
|
48749
|
+
}));
|
|
48750
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
48751
|
+
// @ts-ignore
|
|
48752
|
+
has_more,
|
|
48753
|
+
// @ts-ignore
|
|
48754
|
+
page_token,
|
|
48755
|
+
// @ts-ignore
|
|
48756
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48757
|
+
yield yield __await(rest);
|
|
48758
|
+
hasMore = Boolean(has_more);
|
|
48759
|
+
pageToken = page_token || next_page_token;
|
|
48760
|
+
}
|
|
48761
|
+
catch (e) {
|
|
48762
|
+
yield yield __await(null);
|
|
48763
|
+
break;
|
|
48764
|
+
}
|
|
48765
|
+
}
|
|
48766
|
+
});
|
|
48767
|
+
},
|
|
48768
|
+
};
|
|
48769
|
+
return Iterable;
|
|
48770
|
+
}),
|
|
48771
|
+
/**
|
|
48772
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
47164
48773
|
*
|
|
47165
|
-
*
|
|
48774
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
47166
48775
|
*/
|
|
47167
|
-
|
|
48776
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47168
48777
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47169
48778
|
return this.httpInstance
|
|
47170
48779
|
.request({
|
|
47171
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47172
|
-
method: "
|
|
48780
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
48781
|
+
method: "POST",
|
|
47173
48782
|
data,
|
|
47174
48783
|
params,
|
|
47175
48784
|
headers,
|
|
@@ -47181,18 +48790,20 @@ class Client$u extends Client$v {
|
|
|
47181
48790
|
});
|
|
47182
48791
|
}),
|
|
47183
48792
|
/**
|
|
47184
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
48793
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
47185
48794
|
*
|
|
47186
|
-
* {@link https://open.feishu.cn/
|
|
48795
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
47187
48796
|
*
|
|
47188
|
-
*
|
|
48797
|
+
* 创建外部面试
|
|
48798
|
+
*
|
|
48799
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
47189
48800
|
*/
|
|
47190
|
-
|
|
48801
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47191
48802
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47192
48803
|
return this.httpInstance
|
|
47193
48804
|
.request({
|
|
47194
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47195
|
-
method: "
|
|
48805
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
48806
|
+
method: "POST",
|
|
47196
48807
|
data,
|
|
47197
48808
|
params,
|
|
47198
48809
|
headers,
|
|
@@ -47203,26 +48814,17 @@ class Client$u extends Client$v {
|
|
|
47203
48814
|
throw e;
|
|
47204
48815
|
});
|
|
47205
48816
|
}),
|
|
47206
|
-
},
|
|
47207
|
-
/**
|
|
47208
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47209
|
-
*/
|
|
47210
|
-
externalBackgroundCheck: {
|
|
47211
48817
|
/**
|
|
47212
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
48818
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
47213
48819
|
*
|
|
47214
|
-
* {@link https://open.feishu.cn/
|
|
47215
|
-
*
|
|
47216
|
-
* 创建外部背调
|
|
47217
|
-
*
|
|
47218
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
48820
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
47219
48821
|
*/
|
|
47220
|
-
|
|
48822
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47221
48823
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47222
48824
|
return this.httpInstance
|
|
47223
48825
|
.request({
|
|
47224
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47225
|
-
method: "
|
|
48826
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48827
|
+
method: "DELETE",
|
|
47226
48828
|
data,
|
|
47227
48829
|
params,
|
|
47228
48830
|
headers,
|
|
@@ -47233,26 +48835,17 @@ class Client$u extends Client$v {
|
|
|
47233
48835
|
throw e;
|
|
47234
48836
|
});
|
|
47235
48837
|
}),
|
|
47236
|
-
},
|
|
47237
|
-
/**
|
|
47238
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47239
|
-
*/
|
|
47240
|
-
externalInterview: {
|
|
47241
48838
|
/**
|
|
47242
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
48839
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
47243
48840
|
*
|
|
47244
|
-
* {@link https://open.feishu.cn/
|
|
47245
|
-
*
|
|
47246
|
-
* 创建外部面试
|
|
47247
|
-
*
|
|
47248
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
48841
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
47249
48842
|
*/
|
|
47250
|
-
|
|
48843
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47251
48844
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47252
48845
|
return this.httpInstance
|
|
47253
48846
|
.request({
|
|
47254
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
47255
|
-
method: "
|
|
48847
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48848
|
+
method: "PUT",
|
|
47256
48849
|
data,
|
|
47257
48850
|
params,
|
|
47258
48851
|
headers,
|
|
@@ -47315,6 +48908,147 @@ class Client$u extends Client$v {
|
|
|
47315
48908
|
});
|
|
47316
48909
|
}),
|
|
47317
48910
|
},
|
|
48911
|
+
/**
|
|
48912
|
+
* external_offer
|
|
48913
|
+
*/
|
|
48914
|
+
externalOffer: {
|
|
48915
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48916
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48917
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48918
|
+
const res = yield this.httpInstance
|
|
48919
|
+
.request({
|
|
48920
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
48921
|
+
method: "POST",
|
|
48922
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
48923
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
48924
|
+
data,
|
|
48925
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
48926
|
+
arrayFormat: "repeat",
|
|
48927
|
+
}),
|
|
48928
|
+
})
|
|
48929
|
+
.catch((e) => {
|
|
48930
|
+
this.logger.error(formatErrors(e));
|
|
48931
|
+
});
|
|
48932
|
+
return res;
|
|
48933
|
+
});
|
|
48934
|
+
const Iterable = {
|
|
48935
|
+
[Symbol.asyncIterator]() {
|
|
48936
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48937
|
+
let hasMore = true;
|
|
48938
|
+
let pageToken;
|
|
48939
|
+
while (hasMore) {
|
|
48940
|
+
try {
|
|
48941
|
+
const res = yield __await(sendRequest({
|
|
48942
|
+
headers,
|
|
48943
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48944
|
+
data,
|
|
48945
|
+
}));
|
|
48946
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
48947
|
+
// @ts-ignore
|
|
48948
|
+
has_more,
|
|
48949
|
+
// @ts-ignore
|
|
48950
|
+
page_token,
|
|
48951
|
+
// @ts-ignore
|
|
48952
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48953
|
+
yield yield __await(rest);
|
|
48954
|
+
hasMore = Boolean(has_more);
|
|
48955
|
+
pageToken = page_token || next_page_token;
|
|
48956
|
+
}
|
|
48957
|
+
catch (e) {
|
|
48958
|
+
yield yield __await(null);
|
|
48959
|
+
break;
|
|
48960
|
+
}
|
|
48961
|
+
}
|
|
48962
|
+
});
|
|
48963
|
+
},
|
|
48964
|
+
};
|
|
48965
|
+
return Iterable;
|
|
48966
|
+
}),
|
|
48967
|
+
/**
|
|
48968
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
48969
|
+
*
|
|
48970
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
48971
|
+
*/
|
|
48972
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48973
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48974
|
+
return this.httpInstance
|
|
48975
|
+
.request({
|
|
48976
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
48977
|
+
method: "POST",
|
|
48978
|
+
data,
|
|
48979
|
+
params,
|
|
48980
|
+
headers,
|
|
48981
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48982
|
+
})
|
|
48983
|
+
.catch((e) => {
|
|
48984
|
+
this.logger.error(formatErrors(e));
|
|
48985
|
+
throw e;
|
|
48986
|
+
});
|
|
48987
|
+
}),
|
|
48988
|
+
/**
|
|
48989
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
48990
|
+
*
|
|
48991
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
48992
|
+
*/
|
|
48993
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48994
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48995
|
+
return this.httpInstance
|
|
48996
|
+
.request({
|
|
48997
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
48998
|
+
method: "POST",
|
|
48999
|
+
data,
|
|
49000
|
+
params,
|
|
49001
|
+
headers,
|
|
49002
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49003
|
+
})
|
|
49004
|
+
.catch((e) => {
|
|
49005
|
+
this.logger.error(formatErrors(e));
|
|
49006
|
+
throw e;
|
|
49007
|
+
});
|
|
49008
|
+
}),
|
|
49009
|
+
/**
|
|
49010
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
49011
|
+
*
|
|
49012
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
49013
|
+
*/
|
|
49014
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49015
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49016
|
+
return this.httpInstance
|
|
49017
|
+
.request({
|
|
49018
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
49019
|
+
method: "DELETE",
|
|
49020
|
+
data,
|
|
49021
|
+
params,
|
|
49022
|
+
headers,
|
|
49023
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49024
|
+
})
|
|
49025
|
+
.catch((e) => {
|
|
49026
|
+
this.logger.error(formatErrors(e));
|
|
49027
|
+
throw e;
|
|
49028
|
+
});
|
|
49029
|
+
}),
|
|
49030
|
+
/**
|
|
49031
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
49032
|
+
*
|
|
49033
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
49034
|
+
*/
|
|
49035
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49036
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49037
|
+
return this.httpInstance
|
|
49038
|
+
.request({
|
|
49039
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
49040
|
+
method: "PUT",
|
|
49041
|
+
data,
|
|
49042
|
+
params,
|
|
49043
|
+
headers,
|
|
49044
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49045
|
+
})
|
|
49046
|
+
.catch((e) => {
|
|
49047
|
+
this.logger.error(formatErrors(e));
|
|
49048
|
+
throw e;
|
|
49049
|
+
});
|
|
49050
|
+
}),
|
|
49051
|
+
},
|
|
47318
49052
|
/**
|
|
47319
49053
|
* external_referral_reward
|
|
47320
49054
|
*/
|
|
@@ -48046,6 +49780,27 @@ class Client$u extends Client$v {
|
|
|
48046
49780
|
throw e;
|
|
48047
49781
|
});
|
|
48048
49782
|
}),
|
|
49783
|
+
/**
|
|
49784
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
49785
|
+
*
|
|
49786
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
49787
|
+
*/
|
|
49788
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49789
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49790
|
+
return this.httpInstance
|
|
49791
|
+
.request({
|
|
49792
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
49793
|
+
method: "GET",
|
|
49794
|
+
data,
|
|
49795
|
+
params,
|
|
49796
|
+
headers,
|
|
49797
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49798
|
+
})
|
|
49799
|
+
.catch((e) => {
|
|
49800
|
+
this.logger.error(formatErrors(e));
|
|
49801
|
+
throw e;
|
|
49802
|
+
});
|
|
49803
|
+
}),
|
|
48049
49804
|
/**
|
|
48050
49805
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
48051
49806
|
*
|
|
@@ -49250,6 +51005,48 @@ class Client$u extends Client$v {
|
|
|
49250
51005
|
throw e;
|
|
49251
51006
|
});
|
|
49252
51007
|
}),
|
|
51008
|
+
/**
|
|
51009
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
51010
|
+
*
|
|
51011
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
51012
|
+
*/
|
|
51013
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51014
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51015
|
+
return this.httpInstance
|
|
51016
|
+
.request({
|
|
51017
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
51018
|
+
method: "POST",
|
|
51019
|
+
data,
|
|
51020
|
+
params,
|
|
51021
|
+
headers,
|
|
51022
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51023
|
+
})
|
|
51024
|
+
.catch((e) => {
|
|
51025
|
+
this.logger.error(formatErrors(e));
|
|
51026
|
+
throw e;
|
|
51027
|
+
});
|
|
51028
|
+
}),
|
|
51029
|
+
/**
|
|
51030
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
51031
|
+
*
|
|
51032
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
51033
|
+
*/
|
|
51034
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51035
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51036
|
+
return this.httpInstance
|
|
51037
|
+
.request({
|
|
51038
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
51039
|
+
method: "GET",
|
|
51040
|
+
data,
|
|
51041
|
+
params,
|
|
51042
|
+
headers,
|
|
51043
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51044
|
+
})
|
|
51045
|
+
.catch((e) => {
|
|
51046
|
+
this.logger.error(formatErrors(e));
|
|
51047
|
+
throw e;
|
|
51048
|
+
});
|
|
51049
|
+
}),
|
|
49253
51050
|
/**
|
|
49254
51051
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
49255
51052
|
*
|
|
@@ -49864,6 +51661,27 @@ class Client$u extends Client$v {
|
|
|
49864
51661
|
throw e;
|
|
49865
51662
|
});
|
|
49866
51663
|
}),
|
|
51664
|
+
/**
|
|
51665
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
51666
|
+
*
|
|
51667
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
51668
|
+
*/
|
|
51669
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51670
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51671
|
+
return this.httpInstance
|
|
51672
|
+
.request({
|
|
51673
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
51674
|
+
method: "POST",
|
|
51675
|
+
data,
|
|
51676
|
+
params,
|
|
51677
|
+
headers,
|
|
51678
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51679
|
+
})
|
|
51680
|
+
.catch((e) => {
|
|
51681
|
+
this.logger.error(formatErrors(e));
|
|
51682
|
+
throw e;
|
|
51683
|
+
});
|
|
51684
|
+
}),
|
|
49867
51685
|
/**
|
|
49868
51686
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49869
51687
|
*
|
|
@@ -49941,6 +51759,32 @@ class Client$u extends Client$v {
|
|
|
49941
51759
|
});
|
|
49942
51760
|
}),
|
|
49943
51761
|
},
|
|
51762
|
+
/**
|
|
51763
|
+
* talent_blocklist
|
|
51764
|
+
*/
|
|
51765
|
+
talentBlocklist: {
|
|
51766
|
+
/**
|
|
51767
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
51768
|
+
*
|
|
51769
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
51770
|
+
*/
|
|
51771
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51772
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51773
|
+
return this.httpInstance
|
|
51774
|
+
.request({
|
|
51775
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
51776
|
+
method: "POST",
|
|
51777
|
+
data,
|
|
51778
|
+
params,
|
|
51779
|
+
headers,
|
|
51780
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51781
|
+
})
|
|
51782
|
+
.catch((e) => {
|
|
51783
|
+
this.logger.error(formatErrors(e));
|
|
51784
|
+
throw e;
|
|
51785
|
+
});
|
|
51786
|
+
}),
|
|
51787
|
+
},
|
|
49944
51788
|
/**
|
|
49945
51789
|
* talent_folder
|
|
49946
51790
|
*/
|
|
@@ -50087,6 +51931,27 @@ class Client$u extends Client$v {
|
|
|
50087
51931
|
* talent_pool
|
|
50088
51932
|
*/
|
|
50089
51933
|
talentPool: {
|
|
51934
|
+
/**
|
|
51935
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
51936
|
+
*
|
|
51937
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
51938
|
+
*/
|
|
51939
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51940
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51941
|
+
return this.httpInstance
|
|
51942
|
+
.request({
|
|
51943
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
51944
|
+
method: "POST",
|
|
51945
|
+
data,
|
|
51946
|
+
params,
|
|
51947
|
+
headers,
|
|
51948
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51949
|
+
})
|
|
51950
|
+
.catch((e) => {
|
|
51951
|
+
this.logger.error(formatErrors(e));
|
|
51952
|
+
throw e;
|
|
51953
|
+
});
|
|
51954
|
+
}),
|
|
50090
51955
|
/**
|
|
50091
51956
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
50092
51957
|
*
|
|
@@ -52624,7 +54489,7 @@ class Client$s extends Client$t {
|
|
|
52624
54489
|
}),
|
|
52625
54490
|
},
|
|
52626
54491
|
/**
|
|
52627
|
-
*
|
|
54492
|
+
* 消息 - 消息卡片
|
|
52628
54493
|
*/
|
|
52629
54494
|
message: {
|
|
52630
54495
|
/**
|
|
@@ -54827,7 +56692,7 @@ class Client$s extends Client$t {
|
|
|
54827
56692
|
}),
|
|
54828
56693
|
},
|
|
54829
56694
|
/**
|
|
54830
|
-
*
|
|
56695
|
+
* 消息 - 消息卡片
|
|
54831
56696
|
*/
|
|
54832
56697
|
message: {
|
|
54833
56698
|
/**
|
|
@@ -62758,7 +64623,7 @@ class Client$c extends Client$d {
|
|
|
62758
64623
|
}),
|
|
62759
64624
|
},
|
|
62760
64625
|
/**
|
|
62761
|
-
*
|
|
64626
|
+
* 行列
|
|
62762
64627
|
*/
|
|
62763
64628
|
spreadsheetSheet: {
|
|
62764
64629
|
/**
|
|
@@ -63488,7 +65353,7 @@ class Client$c extends Client$d {
|
|
|
63488
65353
|
}),
|
|
63489
65354
|
},
|
|
63490
65355
|
/**
|
|
63491
|
-
*
|
|
65356
|
+
* 行列
|
|
63492
65357
|
*/
|
|
63493
65358
|
spreadsheetSheet: {
|
|
63494
65359
|
/**
|