@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/es/index.js
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
import get from 'lodash.get';
|
|
14
14
|
import axios, { AxiosError } from 'axios';
|
|
15
15
|
import crypto from 'crypto';
|
|
16
|
-
import pick from 'lodash.pick';
|
|
17
16
|
import { stringify } from 'qs';
|
|
18
17
|
import identity from 'lodash.identity';
|
|
19
18
|
import pickBy from 'lodash.pickby';
|
|
@@ -219,6 +218,19 @@ const assert = (predication, callback) => __awaiter(void 0, void 0, void 0, func
|
|
|
219
218
|
|
|
220
219
|
const formatUrl = (url) => (url ? url.replace(/^\//, '') : '');
|
|
221
220
|
|
|
221
|
+
const pick = (obj, keys = []) => {
|
|
222
|
+
const result = {};
|
|
223
|
+
if (!obj) {
|
|
224
|
+
return result;
|
|
225
|
+
}
|
|
226
|
+
keys.forEach(key => {
|
|
227
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
228
|
+
result[key] = obj[key];
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
return result;
|
|
232
|
+
};
|
|
233
|
+
|
|
222
234
|
const formatErrors = (e) => {
|
|
223
235
|
if (e instanceof AxiosError) {
|
|
224
236
|
const { message, response, request, config } = pick(e, [
|
|
@@ -244,7 +256,7 @@ const formatErrors = (e) => {
|
|
|
244
256
|
};
|
|
245
257
|
|
|
246
258
|
// auto gen
|
|
247
|
-
class Client
|
|
259
|
+
class Client$10 {
|
|
248
260
|
constructor() {
|
|
249
261
|
/**
|
|
250
262
|
* 智能门禁
|
|
@@ -1301,11 +1313,11 @@ class Client$$ {
|
|
|
1301
1313
|
}
|
|
1302
1314
|
|
|
1303
1315
|
// auto gen
|
|
1304
|
-
class Client
|
|
1316
|
+
class Client$$ extends Client$10 {
|
|
1305
1317
|
constructor() {
|
|
1306
1318
|
super(...arguments);
|
|
1307
1319
|
/**
|
|
1308
|
-
*
|
|
1320
|
+
* 管理后台-企业勋章
|
|
1309
1321
|
*/
|
|
1310
1322
|
this.admin = {
|
|
1311
1323
|
/**
|
|
@@ -2397,7 +2409,7 @@ class Client$_ extends Client$$ {
|
|
|
2397
2409
|
}
|
|
2398
2410
|
|
|
2399
2411
|
// auto gen
|
|
2400
|
-
class Client$
|
|
2412
|
+
class Client$_ extends Client$$ {
|
|
2401
2413
|
constructor() {
|
|
2402
2414
|
super(...arguments);
|
|
2403
2415
|
/**
|
|
@@ -3097,7 +3109,7 @@ class Client$Z extends Client$_ {
|
|
|
3097
3109
|
}
|
|
3098
3110
|
|
|
3099
3111
|
// auto gen
|
|
3100
|
-
class Client$
|
|
3112
|
+
class Client$Z extends Client$_ {
|
|
3101
3113
|
constructor() {
|
|
3102
3114
|
super(...arguments);
|
|
3103
3115
|
/**
|
|
@@ -4671,7 +4683,7 @@ class Client$Y extends Client$Z {
|
|
|
4671
4683
|
}
|
|
4672
4684
|
|
|
4673
4685
|
// auto gen
|
|
4674
|
-
class Client$
|
|
4686
|
+
class Client$Y extends Client$Z {
|
|
4675
4687
|
constructor() {
|
|
4676
4688
|
super(...arguments);
|
|
4677
4689
|
/**
|
|
@@ -5476,7 +5488,7 @@ class Client$X extends Client$Y {
|
|
|
5476
5488
|
}),
|
|
5477
5489
|
},
|
|
5478
5490
|
/**
|
|
5479
|
-
*
|
|
5491
|
+
* 审批查询
|
|
5480
5492
|
*/
|
|
5481
5493
|
task: {
|
|
5482
5494
|
/**
|
|
@@ -6487,7 +6499,7 @@ class Client$X extends Client$Y {
|
|
|
6487
6499
|
}),
|
|
6488
6500
|
},
|
|
6489
6501
|
/**
|
|
6490
|
-
*
|
|
6502
|
+
* 审批查询
|
|
6491
6503
|
*/
|
|
6492
6504
|
task: {
|
|
6493
6505
|
/**
|
|
@@ -6699,7 +6711,7 @@ class Client$X extends Client$Y {
|
|
|
6699
6711
|
}
|
|
6700
6712
|
|
|
6701
6713
|
// auto gen
|
|
6702
|
-
class Client$
|
|
6714
|
+
class Client$X extends Client$Y {
|
|
6703
6715
|
constructor() {
|
|
6704
6716
|
super(...arguments);
|
|
6705
6717
|
/**
|
|
@@ -7116,6 +7128,27 @@ class Client$W extends Client$X {
|
|
|
7116
7128
|
throw e;
|
|
7117
7129
|
});
|
|
7118
7130
|
}),
|
|
7131
|
+
/**
|
|
7132
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
7133
|
+
*
|
|
7134
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
7135
|
+
*/
|
|
7136
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7137
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7138
|
+
return this.httpInstance
|
|
7139
|
+
.request({
|
|
7140
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
7141
|
+
method: "GET",
|
|
7142
|
+
data,
|
|
7143
|
+
params,
|
|
7144
|
+
headers,
|
|
7145
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
7146
|
+
})
|
|
7147
|
+
.catch((e) => {
|
|
7148
|
+
this.logger.error(formatErrors(e));
|
|
7149
|
+
throw e;
|
|
7150
|
+
});
|
|
7151
|
+
}),
|
|
7119
7152
|
/**
|
|
7120
7153
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
7121
7154
|
*
|
|
@@ -7466,6 +7499,27 @@ class Client$W extends Client$X {
|
|
|
7466
7499
|
throw e;
|
|
7467
7500
|
});
|
|
7468
7501
|
}),
|
|
7502
|
+
/**
|
|
7503
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
7504
|
+
*
|
|
7505
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
7506
|
+
*/
|
|
7507
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7508
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7509
|
+
return this.httpInstance
|
|
7510
|
+
.request({
|
|
7511
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
7512
|
+
method: "POST",
|
|
7513
|
+
data,
|
|
7514
|
+
params,
|
|
7515
|
+
headers,
|
|
7516
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
7517
|
+
})
|
|
7518
|
+
.catch((e) => {
|
|
7519
|
+
this.logger.error(formatErrors(e));
|
|
7520
|
+
throw e;
|
|
7521
|
+
});
|
|
7522
|
+
}),
|
|
7469
7523
|
/**
|
|
7470
7524
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
7471
7525
|
*
|
|
@@ -8273,6 +8327,27 @@ class Client$W extends Client$X {
|
|
|
8273
8327
|
throw e;
|
|
8274
8328
|
});
|
|
8275
8329
|
}),
|
|
8330
|
+
/**
|
|
8331
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
8332
|
+
*
|
|
8333
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
8334
|
+
*/
|
|
8335
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8336
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8337
|
+
return this.httpInstance
|
|
8338
|
+
.request({
|
|
8339
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
8340
|
+
method: "GET",
|
|
8341
|
+
data,
|
|
8342
|
+
params,
|
|
8343
|
+
headers,
|
|
8344
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
8345
|
+
})
|
|
8346
|
+
.catch((e) => {
|
|
8347
|
+
this.logger.error(formatErrors(e));
|
|
8348
|
+
throw e;
|
|
8349
|
+
});
|
|
8350
|
+
}),
|
|
8276
8351
|
/**
|
|
8277
8352
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
8278
8353
|
*
|
|
@@ -8625,6 +8700,27 @@ class Client$W extends Client$X {
|
|
|
8625
8700
|
throw e;
|
|
8626
8701
|
});
|
|
8627
8702
|
}),
|
|
8703
|
+
/**
|
|
8704
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
8705
|
+
*
|
|
8706
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
8707
|
+
*/
|
|
8708
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8709
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8710
|
+
return this.httpInstance
|
|
8711
|
+
.request({
|
|
8712
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
8713
|
+
method: "POST",
|
|
8714
|
+
data,
|
|
8715
|
+
params,
|
|
8716
|
+
headers,
|
|
8717
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
8718
|
+
})
|
|
8719
|
+
.catch((e) => {
|
|
8720
|
+
this.logger.error(formatErrors(e));
|
|
8721
|
+
throw e;
|
|
8722
|
+
});
|
|
8723
|
+
}),
|
|
8628
8724
|
/**
|
|
8629
8725
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
8630
8726
|
*
|
|
@@ -9023,7 +9119,7 @@ class Client$W extends Client$X {
|
|
|
9023
9119
|
}
|
|
9024
9120
|
|
|
9025
9121
|
// auto gen
|
|
9026
|
-
class Client$
|
|
9122
|
+
class Client$W extends Client$X {
|
|
9027
9123
|
constructor() {
|
|
9028
9124
|
super(...arguments);
|
|
9029
9125
|
/**
|
|
@@ -9277,7 +9373,7 @@ class Client$V extends Client$W {
|
|
|
9277
9373
|
}
|
|
9278
9374
|
|
|
9279
9375
|
// auto gen
|
|
9280
|
-
class Client$
|
|
9376
|
+
class Client$V extends Client$W {
|
|
9281
9377
|
constructor() {
|
|
9282
9378
|
super(...arguments);
|
|
9283
9379
|
/**
|
|
@@ -9551,7 +9647,7 @@ class Client$U extends Client$V {
|
|
|
9551
9647
|
}
|
|
9552
9648
|
|
|
9553
9649
|
// auto gen
|
|
9554
|
-
class Client$
|
|
9650
|
+
class Client$U extends Client$V {
|
|
9555
9651
|
constructor() {
|
|
9556
9652
|
super(...arguments);
|
|
9557
9653
|
/**
|
|
@@ -9562,7 +9658,7 @@ class Client$T extends Client$U {
|
|
|
9562
9658
|
}
|
|
9563
9659
|
|
|
9564
9660
|
// auto gen
|
|
9565
|
-
class Client$
|
|
9661
|
+
class Client$T extends Client$U {
|
|
9566
9662
|
constructor() {
|
|
9567
9663
|
super(...arguments);
|
|
9568
9664
|
/**
|
|
@@ -10640,7 +10736,7 @@ class Client$S extends Client$T {
|
|
|
10640
10736
|
}
|
|
10641
10737
|
|
|
10642
10738
|
// auto gen
|
|
10643
|
-
class Client$
|
|
10739
|
+
class Client$S extends Client$T {
|
|
10644
10740
|
constructor() {
|
|
10645
10741
|
super(...arguments);
|
|
10646
10742
|
/**
|
|
@@ -12289,6 +12385,103 @@ class Client$R extends Client$S {
|
|
|
12289
12385
|
});
|
|
12290
12386
|
}),
|
|
12291
12387
|
},
|
|
12388
|
+
/**
|
|
12389
|
+
* app.workflow
|
|
12390
|
+
*/
|
|
12391
|
+
appWorkflow: {
|
|
12392
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12393
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12394
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12395
|
+
const res = yield this.httpInstance
|
|
12396
|
+
.request({
|
|
12397
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12398
|
+
method: "GET",
|
|
12399
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
12400
|
+
params: pickBy(innerPayload.params, identity),
|
|
12401
|
+
data,
|
|
12402
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
12403
|
+
})
|
|
12404
|
+
.catch((e) => {
|
|
12405
|
+
this.logger.error(formatErrors(e));
|
|
12406
|
+
});
|
|
12407
|
+
return res;
|
|
12408
|
+
});
|
|
12409
|
+
const Iterable = {
|
|
12410
|
+
[Symbol.asyncIterator]() {
|
|
12411
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12412
|
+
let hasMore = true;
|
|
12413
|
+
let pageToken;
|
|
12414
|
+
while (hasMore) {
|
|
12415
|
+
try {
|
|
12416
|
+
const res = yield __await(sendRequest({
|
|
12417
|
+
headers,
|
|
12418
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12419
|
+
data,
|
|
12420
|
+
}));
|
|
12421
|
+
const _b = get(res, "data") || {}, {
|
|
12422
|
+
// @ts-ignore
|
|
12423
|
+
has_more,
|
|
12424
|
+
// @ts-ignore
|
|
12425
|
+
page_token,
|
|
12426
|
+
// @ts-ignore
|
|
12427
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12428
|
+
yield yield __await(rest);
|
|
12429
|
+
hasMore = Boolean(has_more);
|
|
12430
|
+
pageToken = page_token || next_page_token;
|
|
12431
|
+
}
|
|
12432
|
+
catch (e) {
|
|
12433
|
+
yield yield __await(null);
|
|
12434
|
+
break;
|
|
12435
|
+
}
|
|
12436
|
+
}
|
|
12437
|
+
});
|
|
12438
|
+
},
|
|
12439
|
+
};
|
|
12440
|
+
return Iterable;
|
|
12441
|
+
}),
|
|
12442
|
+
/**
|
|
12443
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
12444
|
+
*
|
|
12445
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
12446
|
+
*/
|
|
12447
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12448
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12449
|
+
return this.httpInstance
|
|
12450
|
+
.request({
|
|
12451
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12452
|
+
method: "GET",
|
|
12453
|
+
data,
|
|
12454
|
+
params,
|
|
12455
|
+
headers,
|
|
12456
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
12457
|
+
})
|
|
12458
|
+
.catch((e) => {
|
|
12459
|
+
this.logger.error(formatErrors(e));
|
|
12460
|
+
throw e;
|
|
12461
|
+
});
|
|
12462
|
+
}),
|
|
12463
|
+
/**
|
|
12464
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
12465
|
+
*
|
|
12466
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
12467
|
+
*/
|
|
12468
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12469
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12470
|
+
return this.httpInstance
|
|
12471
|
+
.request({
|
|
12472
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
12473
|
+
method: "PUT",
|
|
12474
|
+
data,
|
|
12475
|
+
params,
|
|
12476
|
+
headers,
|
|
12477
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
12478
|
+
})
|
|
12479
|
+
.catch((e) => {
|
|
12480
|
+
this.logger.error(formatErrors(e));
|
|
12481
|
+
throw e;
|
|
12482
|
+
});
|
|
12483
|
+
}),
|
|
12484
|
+
},
|
|
12292
12485
|
v1: {
|
|
12293
12486
|
/**
|
|
12294
12487
|
* 多维表格
|
|
@@ -13950,13 +14143,112 @@ class Client$R extends Client$S {
|
|
|
13950
14143
|
});
|
|
13951
14144
|
}),
|
|
13952
14145
|
},
|
|
14146
|
+
/**
|
|
14147
|
+
* app.workflow
|
|
14148
|
+
*/
|
|
14149
|
+
appWorkflow: {
|
|
14150
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14151
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14152
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
14153
|
+
const res = yield this.httpInstance
|
|
14154
|
+
.request({
|
|
14155
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14156
|
+
method: "GET",
|
|
14157
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
14158
|
+
params: pickBy(innerPayload.params, identity),
|
|
14159
|
+
data,
|
|
14160
|
+
paramsSerializer: (params) => stringify(params, {
|
|
14161
|
+
arrayFormat: "repeat",
|
|
14162
|
+
}),
|
|
14163
|
+
})
|
|
14164
|
+
.catch((e) => {
|
|
14165
|
+
this.logger.error(formatErrors(e));
|
|
14166
|
+
});
|
|
14167
|
+
return res;
|
|
14168
|
+
});
|
|
14169
|
+
const Iterable = {
|
|
14170
|
+
[Symbol.asyncIterator]() {
|
|
14171
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
14172
|
+
let hasMore = true;
|
|
14173
|
+
let pageToken;
|
|
14174
|
+
while (hasMore) {
|
|
14175
|
+
try {
|
|
14176
|
+
const res = yield __await(sendRequest({
|
|
14177
|
+
headers,
|
|
14178
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
14179
|
+
data,
|
|
14180
|
+
}));
|
|
14181
|
+
const _b = get(res, "data") || {}, {
|
|
14182
|
+
// @ts-ignore
|
|
14183
|
+
has_more,
|
|
14184
|
+
// @ts-ignore
|
|
14185
|
+
page_token,
|
|
14186
|
+
// @ts-ignore
|
|
14187
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
14188
|
+
yield yield __await(rest);
|
|
14189
|
+
hasMore = Boolean(has_more);
|
|
14190
|
+
pageToken = page_token || next_page_token;
|
|
14191
|
+
}
|
|
14192
|
+
catch (e) {
|
|
14193
|
+
yield yield __await(null);
|
|
14194
|
+
break;
|
|
14195
|
+
}
|
|
14196
|
+
}
|
|
14197
|
+
});
|
|
14198
|
+
},
|
|
14199
|
+
};
|
|
14200
|
+
return Iterable;
|
|
14201
|
+
}),
|
|
14202
|
+
/**
|
|
14203
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
14204
|
+
*
|
|
14205
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
14206
|
+
*/
|
|
14207
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14208
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14209
|
+
return this.httpInstance
|
|
14210
|
+
.request({
|
|
14211
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14212
|
+
method: "GET",
|
|
14213
|
+
data,
|
|
14214
|
+
params,
|
|
14215
|
+
headers,
|
|
14216
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
14217
|
+
})
|
|
14218
|
+
.catch((e) => {
|
|
14219
|
+
this.logger.error(formatErrors(e));
|
|
14220
|
+
throw e;
|
|
14221
|
+
});
|
|
14222
|
+
}),
|
|
14223
|
+
/**
|
|
14224
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
14225
|
+
*
|
|
14226
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
14227
|
+
*/
|
|
14228
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14229
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14230
|
+
return this.httpInstance
|
|
14231
|
+
.request({
|
|
14232
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
14233
|
+
method: "PUT",
|
|
14234
|
+
data,
|
|
14235
|
+
params,
|
|
14236
|
+
headers,
|
|
14237
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
14238
|
+
})
|
|
14239
|
+
.catch((e) => {
|
|
14240
|
+
this.logger.error(formatErrors(e));
|
|
14241
|
+
throw e;
|
|
14242
|
+
});
|
|
14243
|
+
}),
|
|
14244
|
+
},
|
|
13953
14245
|
},
|
|
13954
14246
|
};
|
|
13955
14247
|
}
|
|
13956
14248
|
}
|
|
13957
14249
|
|
|
13958
14250
|
// auto gen
|
|
13959
|
-
class Client$
|
|
14251
|
+
class Client$R extends Client$S {
|
|
13960
14252
|
constructor() {
|
|
13961
14253
|
super(...arguments);
|
|
13962
14254
|
/**
|
|
@@ -14140,7 +14432,7 @@ class Client$Q extends Client$R {
|
|
|
14140
14432
|
}
|
|
14141
14433
|
|
|
14142
14434
|
// auto gen
|
|
14143
|
-
class Client$
|
|
14435
|
+
class Client$Q extends Client$R {
|
|
14144
14436
|
constructor() {
|
|
14145
14437
|
super(...arguments);
|
|
14146
14438
|
/**
|
|
@@ -14237,7 +14529,7 @@ class Client$P extends Client$Q {
|
|
|
14237
14529
|
}
|
|
14238
14530
|
|
|
14239
14531
|
// auto gen
|
|
14240
|
-
class Client$
|
|
14532
|
+
class Client$P extends Client$Q {
|
|
14241
14533
|
constructor() {
|
|
14242
14534
|
super(...arguments);
|
|
14243
14535
|
/**
|
|
@@ -16977,7 +17269,7 @@ class Client$O extends Client$P {
|
|
|
16977
17269
|
}
|
|
16978
17270
|
|
|
16979
17271
|
// auto gen
|
|
16980
|
-
class Client$
|
|
17272
|
+
class Client$O extends Client$P {
|
|
16981
17273
|
constructor() {
|
|
16982
17274
|
super(...arguments);
|
|
16983
17275
|
/**
|
|
@@ -16988,7 +17280,7 @@ class Client$N extends Client$O {
|
|
|
16988
17280
|
}
|
|
16989
17281
|
|
|
16990
17282
|
// auto gen
|
|
16991
|
-
class Client$
|
|
17283
|
+
class Client$N extends Client$O {
|
|
16992
17284
|
constructor() {
|
|
16993
17285
|
super(...arguments);
|
|
16994
17286
|
/**
|
|
@@ -17418,7 +17710,7 @@ class Client$M extends Client$N {
|
|
|
17418
17710
|
}
|
|
17419
17711
|
|
|
17420
17712
|
// auto gen
|
|
17421
|
-
class Client$
|
|
17713
|
+
class Client$M extends Client$N {
|
|
17422
17714
|
constructor() {
|
|
17423
17715
|
super(...arguments);
|
|
17424
17716
|
/**
|
|
@@ -22446,7 +22738,7 @@ class Client$L extends Client$M {
|
|
|
22446
22738
|
}
|
|
22447
22739
|
|
|
22448
22740
|
// auto gen
|
|
22449
|
-
class Client$
|
|
22741
|
+
class Client$L extends Client$M {
|
|
22450
22742
|
constructor() {
|
|
22451
22743
|
super(...arguments);
|
|
22452
22744
|
/**
|
|
@@ -22457,7 +22749,7 @@ class Client$K extends Client$L {
|
|
|
22457
22749
|
}
|
|
22458
22750
|
|
|
22459
22751
|
// auto gen
|
|
22460
|
-
class Client$
|
|
22752
|
+
class Client$K extends Client$L {
|
|
22461
22753
|
constructor() {
|
|
22462
22754
|
super(...arguments);
|
|
22463
22755
|
/**
|
|
@@ -22468,7 +22760,7 @@ class Client$J extends Client$K {
|
|
|
22468
22760
|
}
|
|
22469
22761
|
|
|
22470
22762
|
// auto gen
|
|
22471
|
-
class Client$
|
|
22763
|
+
class Client$J extends Client$K {
|
|
22472
22764
|
constructor() {
|
|
22473
22765
|
super(...arguments);
|
|
22474
22766
|
/**
|
|
@@ -28129,71 +28421,21 @@ class Client$I extends Client$J {
|
|
|
28129
28421
|
},
|
|
28130
28422
|
v2: {
|
|
28131
28423
|
/**
|
|
28132
|
-
*
|
|
28424
|
+
* approval_groups
|
|
28133
28425
|
*/
|
|
28134
|
-
|
|
28135
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28136
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28137
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28138
|
-
const res = yield this.httpInstance
|
|
28139
|
-
.request({
|
|
28140
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28141
|
-
method: "GET",
|
|
28142
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28143
|
-
params: pickBy(innerPayload.params, identity),
|
|
28144
|
-
data,
|
|
28145
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28146
|
-
arrayFormat: "repeat",
|
|
28147
|
-
}),
|
|
28148
|
-
})
|
|
28149
|
-
.catch((e) => {
|
|
28150
|
-
this.logger.error(formatErrors(e));
|
|
28151
|
-
});
|
|
28152
|
-
return res;
|
|
28153
|
-
});
|
|
28154
|
-
const Iterable = {
|
|
28155
|
-
[Symbol.asyncIterator]() {
|
|
28156
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28157
|
-
let hasMore = true;
|
|
28158
|
-
let pageToken;
|
|
28159
|
-
while (hasMore) {
|
|
28160
|
-
try {
|
|
28161
|
-
const res = yield __await(sendRequest({
|
|
28162
|
-
headers,
|
|
28163
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28164
|
-
data,
|
|
28165
|
-
}));
|
|
28166
|
-
const _b = get(res, "data") || {}, {
|
|
28167
|
-
// @ts-ignore
|
|
28168
|
-
has_more,
|
|
28169
|
-
// @ts-ignore
|
|
28170
|
-
page_token,
|
|
28171
|
-
// @ts-ignore
|
|
28172
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28173
|
-
yield yield __await(rest);
|
|
28174
|
-
hasMore = Boolean(has_more);
|
|
28175
|
-
pageToken = page_token || next_page_token;
|
|
28176
|
-
}
|
|
28177
|
-
catch (e) {
|
|
28178
|
-
yield yield __await(null);
|
|
28179
|
-
break;
|
|
28180
|
-
}
|
|
28181
|
-
}
|
|
28182
|
-
});
|
|
28183
|
-
},
|
|
28184
|
-
};
|
|
28185
|
-
return Iterable;
|
|
28186
|
-
}),
|
|
28426
|
+
approvalGroups: {
|
|
28187
28427
|
/**
|
|
28188
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28428
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=get&version=v2 click to debug }
|
|
28189
28429
|
*
|
|
28190
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28430
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=approval_groups&version=v2 document }
|
|
28431
|
+
*
|
|
28432
|
+
* 获取审批组信息
|
|
28191
28433
|
*/
|
|
28192
|
-
|
|
28434
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28193
28435
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28194
28436
|
return this.httpInstance
|
|
28195
28437
|
.request({
|
|
28196
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28438
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
|
|
28197
28439
|
method: "GET",
|
|
28198
28440
|
data,
|
|
28199
28441
|
params,
|
|
@@ -28205,73 +28447,18 @@ class Client$I extends Client$J {
|
|
|
28205
28447
|
throw e;
|
|
28206
28448
|
});
|
|
28207
28449
|
}),
|
|
28208
|
-
},
|
|
28209
|
-
/**
|
|
28210
|
-
* basic_info.bank
|
|
28211
|
-
*/
|
|
28212
|
-
basicInfoBank: {
|
|
28213
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28214
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28215
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28216
|
-
const res = yield this.httpInstance
|
|
28217
|
-
.request({
|
|
28218
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28219
|
-
method: "POST",
|
|
28220
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28221
|
-
params: pickBy(innerPayload.params, identity),
|
|
28222
|
-
data,
|
|
28223
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28224
|
-
arrayFormat: "repeat",
|
|
28225
|
-
}),
|
|
28226
|
-
})
|
|
28227
|
-
.catch((e) => {
|
|
28228
|
-
this.logger.error(formatErrors(e));
|
|
28229
|
-
});
|
|
28230
|
-
return res;
|
|
28231
|
-
});
|
|
28232
|
-
const Iterable = {
|
|
28233
|
-
[Symbol.asyncIterator]() {
|
|
28234
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28235
|
-
let hasMore = true;
|
|
28236
|
-
let pageToken;
|
|
28237
|
-
while (hasMore) {
|
|
28238
|
-
try {
|
|
28239
|
-
const res = yield __await(sendRequest({
|
|
28240
|
-
headers,
|
|
28241
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28242
|
-
data,
|
|
28243
|
-
}));
|
|
28244
|
-
const _b = get(res, "data") || {}, {
|
|
28245
|
-
// @ts-ignore
|
|
28246
|
-
has_more,
|
|
28247
|
-
// @ts-ignore
|
|
28248
|
-
page_token,
|
|
28249
|
-
// @ts-ignore
|
|
28250
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28251
|
-
yield yield __await(rest);
|
|
28252
|
-
hasMore = Boolean(has_more);
|
|
28253
|
-
pageToken = page_token || next_page_token;
|
|
28254
|
-
}
|
|
28255
|
-
catch (e) {
|
|
28256
|
-
yield yield __await(null);
|
|
28257
|
-
break;
|
|
28258
|
-
}
|
|
28259
|
-
}
|
|
28260
|
-
});
|
|
28261
|
-
},
|
|
28262
|
-
};
|
|
28263
|
-
return Iterable;
|
|
28264
|
-
}),
|
|
28265
28450
|
/**
|
|
28266
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28451
|
+
* {@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 }
|
|
28267
28452
|
*
|
|
28268
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28453
|
+
* {@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 }
|
|
28454
|
+
*
|
|
28455
|
+
* 获取部门调整信息详情
|
|
28269
28456
|
*/
|
|
28270
|
-
|
|
28457
|
+
openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28271
28458
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28272
28459
|
return this.httpInstance
|
|
28273
28460
|
.request({
|
|
28274
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28461
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`, path),
|
|
28275
28462
|
method: "POST",
|
|
28276
28463
|
data,
|
|
28277
28464
|
params,
|
|
@@ -28283,73 +28470,16 @@ class Client$I extends Client$J {
|
|
|
28283
28470
|
throw e;
|
|
28284
28471
|
});
|
|
28285
28472
|
}),
|
|
28286
|
-
},
|
|
28287
|
-
/**
|
|
28288
|
-
* basic_info.bank_branch
|
|
28289
|
-
*/
|
|
28290
|
-
basicInfoBankBranch: {
|
|
28291
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28292
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28293
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28294
|
-
const res = yield this.httpInstance
|
|
28295
|
-
.request({
|
|
28296
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28297
|
-
method: "POST",
|
|
28298
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28299
|
-
params: pickBy(innerPayload.params, identity),
|
|
28300
|
-
data,
|
|
28301
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28302
|
-
arrayFormat: "repeat",
|
|
28303
|
-
}),
|
|
28304
|
-
})
|
|
28305
|
-
.catch((e) => {
|
|
28306
|
-
this.logger.error(formatErrors(e));
|
|
28307
|
-
});
|
|
28308
|
-
return res;
|
|
28309
|
-
});
|
|
28310
|
-
const Iterable = {
|
|
28311
|
-
[Symbol.asyncIterator]() {
|
|
28312
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28313
|
-
let hasMore = true;
|
|
28314
|
-
let pageToken;
|
|
28315
|
-
while (hasMore) {
|
|
28316
|
-
try {
|
|
28317
|
-
const res = yield __await(sendRequest({
|
|
28318
|
-
headers,
|
|
28319
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28320
|
-
data,
|
|
28321
|
-
}));
|
|
28322
|
-
const _b = get(res, "data") || {}, {
|
|
28323
|
-
// @ts-ignore
|
|
28324
|
-
has_more,
|
|
28325
|
-
// @ts-ignore
|
|
28326
|
-
page_token,
|
|
28327
|
-
// @ts-ignore
|
|
28328
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28329
|
-
yield yield __await(rest);
|
|
28330
|
-
hasMore = Boolean(has_more);
|
|
28331
|
-
pageToken = page_token || next_page_token;
|
|
28332
|
-
}
|
|
28333
|
-
catch (e) {
|
|
28334
|
-
yield yield __await(null);
|
|
28335
|
-
break;
|
|
28336
|
-
}
|
|
28337
|
-
}
|
|
28338
|
-
});
|
|
28339
|
-
},
|
|
28340
|
-
};
|
|
28341
|
-
return Iterable;
|
|
28342
|
-
}),
|
|
28343
28473
|
/**
|
|
28344
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28474
|
+
* {@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 }
|
|
28345
28475
|
*
|
|
28346
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28476
|
+
* {@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 }
|
|
28347
28477
|
*/
|
|
28348
|
-
|
|
28478
|
+
openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28349
28479
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28350
28480
|
return this.httpInstance
|
|
28351
28481
|
.request({
|
|
28352
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28482
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`, path),
|
|
28353
28483
|
method: "POST",
|
|
28354
28484
|
data,
|
|
28355
28485
|
params,
|
|
@@ -28363,16 +28493,16 @@ class Client$I extends Client$J {
|
|
|
28363
28493
|
}),
|
|
28364
28494
|
},
|
|
28365
28495
|
/**
|
|
28366
|
-
*
|
|
28496
|
+
* approver
|
|
28367
28497
|
*/
|
|
28368
|
-
|
|
28369
|
-
|
|
28498
|
+
approver: {
|
|
28499
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28370
28500
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28371
28501
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28372
28502
|
const res = yield this.httpInstance
|
|
28373
28503
|
.request({
|
|
28374
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28375
|
-
method: "
|
|
28504
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28505
|
+
method: "GET",
|
|
28376
28506
|
headers: pickBy(innerPayload.headers, identity),
|
|
28377
28507
|
params: pickBy(innerPayload.params, identity),
|
|
28378
28508
|
data,
|
|
@@ -28419,16 +28549,16 @@ class Client$I extends Client$J {
|
|
|
28419
28549
|
return Iterable;
|
|
28420
28550
|
}),
|
|
28421
28551
|
/**
|
|
28422
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=
|
|
28552
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approver&apiName=list&version=v2 click to debug }
|
|
28423
28553
|
*
|
|
28424
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
28554
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=approver&version=v2 document }
|
|
28425
28555
|
*/
|
|
28426
|
-
|
|
28556
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28427
28557
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28428
28558
|
return this.httpInstance
|
|
28429
28559
|
.request({
|
|
28430
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28431
|
-
method: "
|
|
28560
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28561
|
+
method: "GET",
|
|
28432
28562
|
data,
|
|
28433
28563
|
params,
|
|
28434
28564
|
headers,
|
|
@@ -28441,15 +28571,15 @@ class Client$I extends Client$J {
|
|
|
28441
28571
|
}),
|
|
28442
28572
|
},
|
|
28443
28573
|
/**
|
|
28444
|
-
* basic_info.
|
|
28574
|
+
* basic_info.bank
|
|
28445
28575
|
*/
|
|
28446
|
-
|
|
28576
|
+
basicInfoBank: {
|
|
28447
28577
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28448
28578
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28449
28579
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28450
28580
|
const res = yield this.httpInstance
|
|
28451
28581
|
.request({
|
|
28452
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28582
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28453
28583
|
method: "POST",
|
|
28454
28584
|
headers: pickBy(innerPayload.headers, identity),
|
|
28455
28585
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28497,15 +28627,15 @@ class Client$I extends Client$J {
|
|
|
28497
28627
|
return Iterable;
|
|
28498
28628
|
}),
|
|
28499
28629
|
/**
|
|
28500
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28630
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank&apiName=search&version=v2 click to debug }
|
|
28501
28631
|
*
|
|
28502
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28632
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank&version=v2 document }
|
|
28503
28633
|
*/
|
|
28504
28634
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28505
28635
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28506
28636
|
return this.httpInstance
|
|
28507
28637
|
.request({
|
|
28508
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28638
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28509
28639
|
method: "POST",
|
|
28510
28640
|
data,
|
|
28511
28641
|
params,
|
|
@@ -28519,15 +28649,15 @@ class Client$I extends Client$J {
|
|
|
28519
28649
|
}),
|
|
28520
28650
|
},
|
|
28521
28651
|
/**
|
|
28522
|
-
* basic_info.
|
|
28652
|
+
* basic_info.bank_branch
|
|
28523
28653
|
*/
|
|
28524
|
-
|
|
28654
|
+
basicInfoBankBranch: {
|
|
28525
28655
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28526
28656
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28527
28657
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28528
28658
|
const res = yield this.httpInstance
|
|
28529
28659
|
.request({
|
|
28530
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28660
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28531
28661
|
method: "POST",
|
|
28532
28662
|
headers: pickBy(innerPayload.headers, identity),
|
|
28533
28663
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28575,15 +28705,15 @@ class Client$I extends Client$J {
|
|
|
28575
28705
|
return Iterable;
|
|
28576
28706
|
}),
|
|
28577
28707
|
/**
|
|
28578
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28708
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.bank_branch&apiName=search&version=v2 click to debug }
|
|
28579
28709
|
*
|
|
28580
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28710
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.bank_branch&version=v2 document }
|
|
28581
28711
|
*/
|
|
28582
28712
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28583
28713
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28584
28714
|
return this.httpInstance
|
|
28585
28715
|
.request({
|
|
28586
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28716
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28587
28717
|
method: "POST",
|
|
28588
28718
|
data,
|
|
28589
28719
|
params,
|
|
@@ -28597,15 +28727,15 @@ class Client$I extends Client$J {
|
|
|
28597
28727
|
}),
|
|
28598
28728
|
},
|
|
28599
28729
|
/**
|
|
28600
|
-
* basic_info.
|
|
28730
|
+
* basic_info.city
|
|
28601
28731
|
*/
|
|
28602
|
-
|
|
28732
|
+
basicInfoCity: {
|
|
28603
28733
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28604
28734
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28605
28735
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28606
28736
|
const res = yield this.httpInstance
|
|
28607
28737
|
.request({
|
|
28608
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28738
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28609
28739
|
method: "POST",
|
|
28610
28740
|
headers: pickBy(innerPayload.headers, identity),
|
|
28611
28741
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28653,15 +28783,15 @@ class Client$I extends Client$J {
|
|
|
28653
28783
|
return Iterable;
|
|
28654
28784
|
}),
|
|
28655
28785
|
/**
|
|
28656
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.
|
|
28786
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.city&apiName=search&version=v2 click to debug }
|
|
28657
28787
|
*
|
|
28658
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.
|
|
28788
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.city&version=v2 document }
|
|
28659
28789
|
*/
|
|
28660
28790
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28661
28791
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28662
28792
|
return this.httpInstance
|
|
28663
28793
|
.request({
|
|
28664
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28794
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28665
28795
|
method: "POST",
|
|
28666
28796
|
data,
|
|
28667
28797
|
params,
|
|
@@ -28675,15 +28805,249 @@ class Client$I extends Client$J {
|
|
|
28675
28805
|
}),
|
|
28676
28806
|
},
|
|
28677
28807
|
/**
|
|
28678
|
-
* basic_info.
|
|
28808
|
+
* basic_info.country_region
|
|
28679
28809
|
*/
|
|
28680
|
-
|
|
28810
|
+
basicInfoCountryRegion: {
|
|
28681
28811
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28682
28812
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28683
28813
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28684
28814
|
const res = yield this.httpInstance
|
|
28685
28815
|
.request({
|
|
28686
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28816
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
28817
|
+
method: "POST",
|
|
28818
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
28819
|
+
params: pickBy(innerPayload.params, identity),
|
|
28820
|
+
data,
|
|
28821
|
+
paramsSerializer: (params) => stringify(params, {
|
|
28822
|
+
arrayFormat: "repeat",
|
|
28823
|
+
}),
|
|
28824
|
+
})
|
|
28825
|
+
.catch((e) => {
|
|
28826
|
+
this.logger.error(formatErrors(e));
|
|
28827
|
+
});
|
|
28828
|
+
return res;
|
|
28829
|
+
});
|
|
28830
|
+
const Iterable = {
|
|
28831
|
+
[Symbol.asyncIterator]() {
|
|
28832
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28833
|
+
let hasMore = true;
|
|
28834
|
+
let pageToken;
|
|
28835
|
+
while (hasMore) {
|
|
28836
|
+
try {
|
|
28837
|
+
const res = yield __await(sendRequest({
|
|
28838
|
+
headers,
|
|
28839
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28840
|
+
data,
|
|
28841
|
+
}));
|
|
28842
|
+
const _b = get(res, "data") || {}, {
|
|
28843
|
+
// @ts-ignore
|
|
28844
|
+
has_more,
|
|
28845
|
+
// @ts-ignore
|
|
28846
|
+
page_token,
|
|
28847
|
+
// @ts-ignore
|
|
28848
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28849
|
+
yield yield __await(rest);
|
|
28850
|
+
hasMore = Boolean(has_more);
|
|
28851
|
+
pageToken = page_token || next_page_token;
|
|
28852
|
+
}
|
|
28853
|
+
catch (e) {
|
|
28854
|
+
yield yield __await(null);
|
|
28855
|
+
break;
|
|
28856
|
+
}
|
|
28857
|
+
}
|
|
28858
|
+
});
|
|
28859
|
+
},
|
|
28860
|
+
};
|
|
28861
|
+
return Iterable;
|
|
28862
|
+
}),
|
|
28863
|
+
/**
|
|
28864
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region&apiName=search&version=v2 click to debug }
|
|
28865
|
+
*
|
|
28866
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region&version=v2 document }
|
|
28867
|
+
*/
|
|
28868
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28869
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28870
|
+
return this.httpInstance
|
|
28871
|
+
.request({
|
|
28872
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`, path),
|
|
28873
|
+
method: "POST",
|
|
28874
|
+
data,
|
|
28875
|
+
params,
|
|
28876
|
+
headers,
|
|
28877
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28878
|
+
})
|
|
28879
|
+
.catch((e) => {
|
|
28880
|
+
this.logger.error(formatErrors(e));
|
|
28881
|
+
throw e;
|
|
28882
|
+
});
|
|
28883
|
+
}),
|
|
28884
|
+
},
|
|
28885
|
+
/**
|
|
28886
|
+
* basic_info.country_region_subdivision
|
|
28887
|
+
*/
|
|
28888
|
+
basicInfoCountryRegionSubdivision: {
|
|
28889
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28890
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28891
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28892
|
+
const res = yield this.httpInstance
|
|
28893
|
+
.request({
|
|
28894
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
28895
|
+
method: "POST",
|
|
28896
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
28897
|
+
params: pickBy(innerPayload.params, identity),
|
|
28898
|
+
data,
|
|
28899
|
+
paramsSerializer: (params) => stringify(params, {
|
|
28900
|
+
arrayFormat: "repeat",
|
|
28901
|
+
}),
|
|
28902
|
+
})
|
|
28903
|
+
.catch((e) => {
|
|
28904
|
+
this.logger.error(formatErrors(e));
|
|
28905
|
+
});
|
|
28906
|
+
return res;
|
|
28907
|
+
});
|
|
28908
|
+
const Iterable = {
|
|
28909
|
+
[Symbol.asyncIterator]() {
|
|
28910
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28911
|
+
let hasMore = true;
|
|
28912
|
+
let pageToken;
|
|
28913
|
+
while (hasMore) {
|
|
28914
|
+
try {
|
|
28915
|
+
const res = yield __await(sendRequest({
|
|
28916
|
+
headers,
|
|
28917
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28918
|
+
data,
|
|
28919
|
+
}));
|
|
28920
|
+
const _b = get(res, "data") || {}, {
|
|
28921
|
+
// @ts-ignore
|
|
28922
|
+
has_more,
|
|
28923
|
+
// @ts-ignore
|
|
28924
|
+
page_token,
|
|
28925
|
+
// @ts-ignore
|
|
28926
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28927
|
+
yield yield __await(rest);
|
|
28928
|
+
hasMore = Boolean(has_more);
|
|
28929
|
+
pageToken = page_token || next_page_token;
|
|
28930
|
+
}
|
|
28931
|
+
catch (e) {
|
|
28932
|
+
yield yield __await(null);
|
|
28933
|
+
break;
|
|
28934
|
+
}
|
|
28935
|
+
}
|
|
28936
|
+
});
|
|
28937
|
+
},
|
|
28938
|
+
};
|
|
28939
|
+
return Iterable;
|
|
28940
|
+
}),
|
|
28941
|
+
/**
|
|
28942
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.country_region_subdivision&apiName=search&version=v2 click to debug }
|
|
28943
|
+
*
|
|
28944
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.country_region_subdivision&version=v2 document }
|
|
28945
|
+
*/
|
|
28946
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28947
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28948
|
+
return this.httpInstance
|
|
28949
|
+
.request({
|
|
28950
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`, path),
|
|
28951
|
+
method: "POST",
|
|
28952
|
+
data,
|
|
28953
|
+
params,
|
|
28954
|
+
headers,
|
|
28955
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28956
|
+
})
|
|
28957
|
+
.catch((e) => {
|
|
28958
|
+
this.logger.error(formatErrors(e));
|
|
28959
|
+
throw e;
|
|
28960
|
+
});
|
|
28961
|
+
}),
|
|
28962
|
+
},
|
|
28963
|
+
/**
|
|
28964
|
+
* basic_info.currency
|
|
28965
|
+
*/
|
|
28966
|
+
basicInfoCurrency: {
|
|
28967
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28968
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28969
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28970
|
+
const res = yield this.httpInstance
|
|
28971
|
+
.request({
|
|
28972
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
28973
|
+
method: "POST",
|
|
28974
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
28975
|
+
params: pickBy(innerPayload.params, identity),
|
|
28976
|
+
data,
|
|
28977
|
+
paramsSerializer: (params) => stringify(params, {
|
|
28978
|
+
arrayFormat: "repeat",
|
|
28979
|
+
}),
|
|
28980
|
+
})
|
|
28981
|
+
.catch((e) => {
|
|
28982
|
+
this.logger.error(formatErrors(e));
|
|
28983
|
+
});
|
|
28984
|
+
return res;
|
|
28985
|
+
});
|
|
28986
|
+
const Iterable = {
|
|
28987
|
+
[Symbol.asyncIterator]() {
|
|
28988
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28989
|
+
let hasMore = true;
|
|
28990
|
+
let pageToken;
|
|
28991
|
+
while (hasMore) {
|
|
28992
|
+
try {
|
|
28993
|
+
const res = yield __await(sendRequest({
|
|
28994
|
+
headers,
|
|
28995
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28996
|
+
data,
|
|
28997
|
+
}));
|
|
28998
|
+
const _b = get(res, "data") || {}, {
|
|
28999
|
+
// @ts-ignore
|
|
29000
|
+
has_more,
|
|
29001
|
+
// @ts-ignore
|
|
29002
|
+
page_token,
|
|
29003
|
+
// @ts-ignore
|
|
29004
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
29005
|
+
yield yield __await(rest);
|
|
29006
|
+
hasMore = Boolean(has_more);
|
|
29007
|
+
pageToken = page_token || next_page_token;
|
|
29008
|
+
}
|
|
29009
|
+
catch (e) {
|
|
29010
|
+
yield yield __await(null);
|
|
29011
|
+
break;
|
|
29012
|
+
}
|
|
29013
|
+
}
|
|
29014
|
+
});
|
|
29015
|
+
},
|
|
29016
|
+
};
|
|
29017
|
+
return Iterable;
|
|
29018
|
+
}),
|
|
29019
|
+
/**
|
|
29020
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.currency&apiName=search&version=v2 click to debug }
|
|
29021
|
+
*
|
|
29022
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.currency&version=v2 document }
|
|
29023
|
+
*/
|
|
29024
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29025
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29026
|
+
return this.httpInstance
|
|
29027
|
+
.request({
|
|
29028
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`, path),
|
|
29029
|
+
method: "POST",
|
|
29030
|
+
data,
|
|
29031
|
+
params,
|
|
29032
|
+
headers,
|
|
29033
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
29034
|
+
})
|
|
29035
|
+
.catch((e) => {
|
|
29036
|
+
this.logger.error(formatErrors(e));
|
|
29037
|
+
throw e;
|
|
29038
|
+
});
|
|
29039
|
+
}),
|
|
29040
|
+
},
|
|
29041
|
+
/**
|
|
29042
|
+
* basic_info.district
|
|
29043
|
+
*/
|
|
29044
|
+
basicInfoDistrict: {
|
|
29045
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29046
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29047
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
29048
|
+
const res = yield this.httpInstance
|
|
29049
|
+
.request({
|
|
29050
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`, path),
|
|
28687
29051
|
method: "POST",
|
|
28688
29052
|
headers: pickBy(innerPayload.headers, identity),
|
|
28689
29053
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -30167,6 +30531,48 @@ class Client$I extends Client$J {
|
|
|
30167
30531
|
* job_change
|
|
30168
30532
|
*/
|
|
30169
30533
|
jobChange: {
|
|
30534
|
+
/**
|
|
30535
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v2 click to debug }
|
|
30536
|
+
*
|
|
30537
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_change&version=v2 document }
|
|
30538
|
+
*/
|
|
30539
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30540
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30541
|
+
return this.httpInstance
|
|
30542
|
+
.request({
|
|
30543
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes`, path),
|
|
30544
|
+
method: "POST",
|
|
30545
|
+
data,
|
|
30546
|
+
params,
|
|
30547
|
+
headers,
|
|
30548
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30549
|
+
})
|
|
30550
|
+
.catch((e) => {
|
|
30551
|
+
this.logger.error(formatErrors(e));
|
|
30552
|
+
throw e;
|
|
30553
|
+
});
|
|
30554
|
+
}),
|
|
30555
|
+
/**
|
|
30556
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=revoke&version=v2 click to debug }
|
|
30557
|
+
*
|
|
30558
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=job_change&version=v2 document }
|
|
30559
|
+
*/
|
|
30560
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30561
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30562
|
+
return this.httpInstance
|
|
30563
|
+
.request({
|
|
30564
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`, path),
|
|
30565
|
+
method: "POST",
|
|
30566
|
+
data,
|
|
30567
|
+
params,
|
|
30568
|
+
headers,
|
|
30569
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30570
|
+
})
|
|
30571
|
+
.catch((e) => {
|
|
30572
|
+
this.logger.error(formatErrors(e));
|
|
30573
|
+
throw e;
|
|
30574
|
+
});
|
|
30575
|
+
}),
|
|
30170
30576
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30171
30577
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30172
30578
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30548,6 +30954,52 @@ class Client$I extends Client$J {
|
|
|
30548
30954
|
* offboarding
|
|
30549
30955
|
*/
|
|
30550
30956
|
offboarding: {
|
|
30957
|
+
/**
|
|
30958
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=edit&version=v2 click to debug }
|
|
30959
|
+
*
|
|
30960
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=edit&project=corehr&resource=offboarding&version=v2 document }
|
|
30961
|
+
*
|
|
30962
|
+
* 编辑离职信息
|
|
30963
|
+
*/
|
|
30964
|
+
edit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30965
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30966
|
+
return this.httpInstance
|
|
30967
|
+
.request({
|
|
30968
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/edit`, path),
|
|
30969
|
+
method: "POST",
|
|
30970
|
+
data,
|
|
30971
|
+
params,
|
|
30972
|
+
headers,
|
|
30973
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30974
|
+
})
|
|
30975
|
+
.catch((e) => {
|
|
30976
|
+
this.logger.error(formatErrors(e));
|
|
30977
|
+
throw e;
|
|
30978
|
+
});
|
|
30979
|
+
}),
|
|
30980
|
+
/**
|
|
30981
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=revoke&version=v2 click to debug }
|
|
30982
|
+
*
|
|
30983
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=offboarding&version=v2 document }
|
|
30984
|
+
*
|
|
30985
|
+
* 撤销离职信息
|
|
30986
|
+
*/
|
|
30987
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30988
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30989
|
+
return this.httpInstance
|
|
30990
|
+
.request({
|
|
30991
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`, path),
|
|
30992
|
+
method: "POST",
|
|
30993
|
+
data,
|
|
30994
|
+
params,
|
|
30995
|
+
headers,
|
|
30996
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30997
|
+
})
|
|
30998
|
+
.catch((e) => {
|
|
30999
|
+
this.logger.error(formatErrors(e));
|
|
31000
|
+
throw e;
|
|
31001
|
+
});
|
|
31002
|
+
}),
|
|
30551
31003
|
/**
|
|
30552
31004
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
|
|
30553
31005
|
*
|
|
@@ -31126,6 +31578,32 @@ class Client$I extends Client$J {
|
|
|
31126
31578
|
});
|
|
31127
31579
|
}),
|
|
31128
31580
|
},
|
|
31581
|
+
/**
|
|
31582
|
+
* process.extra
|
|
31583
|
+
*/
|
|
31584
|
+
processExtra: {
|
|
31585
|
+
/**
|
|
31586
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.extra&apiName=update&version=v2 click to debug }
|
|
31587
|
+
*
|
|
31588
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.extra&version=v2 document }
|
|
31589
|
+
*/
|
|
31590
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31591
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31592
|
+
return this.httpInstance
|
|
31593
|
+
.request({
|
|
31594
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`, path),
|
|
31595
|
+
method: "PUT",
|
|
31596
|
+
data,
|
|
31597
|
+
params,
|
|
31598
|
+
headers,
|
|
31599
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31600
|
+
})
|
|
31601
|
+
.catch((e) => {
|
|
31602
|
+
this.logger.error(formatErrors(e));
|
|
31603
|
+
throw e;
|
|
31604
|
+
});
|
|
31605
|
+
}),
|
|
31606
|
+
},
|
|
31129
31607
|
/**
|
|
31130
31608
|
* process.form_variable_data
|
|
31131
31609
|
*/
|
|
@@ -31251,6 +31729,135 @@ class Client$I extends Client$J {
|
|
|
31251
31729
|
});
|
|
31252
31730
|
}),
|
|
31253
31731
|
},
|
|
31732
|
+
/**
|
|
31733
|
+
* process.transfer
|
|
31734
|
+
*/
|
|
31735
|
+
processTransfer: {
|
|
31736
|
+
/**
|
|
31737
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.transfer&apiName=update&version=v2 click to debug }
|
|
31738
|
+
*
|
|
31739
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.transfer&version=v2 document }
|
|
31740
|
+
*/
|
|
31741
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31742
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31743
|
+
return this.httpInstance
|
|
31744
|
+
.request({
|
|
31745
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`, path),
|
|
31746
|
+
method: "PUT",
|
|
31747
|
+
data,
|
|
31748
|
+
params,
|
|
31749
|
+
headers,
|
|
31750
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31751
|
+
})
|
|
31752
|
+
.catch((e) => {
|
|
31753
|
+
this.logger.error(formatErrors(e));
|
|
31754
|
+
throw e;
|
|
31755
|
+
});
|
|
31756
|
+
}),
|
|
31757
|
+
},
|
|
31758
|
+
/**
|
|
31759
|
+
* process_revoke
|
|
31760
|
+
*/
|
|
31761
|
+
processRevoke: {
|
|
31762
|
+
/**
|
|
31763
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_revoke&apiName=update&version=v2 click to debug }
|
|
31764
|
+
*
|
|
31765
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_revoke&version=v2 document }
|
|
31766
|
+
*/
|
|
31767
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31768
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31769
|
+
return this.httpInstance
|
|
31770
|
+
.request({
|
|
31771
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`, path),
|
|
31772
|
+
method: "PUT",
|
|
31773
|
+
data,
|
|
31774
|
+
params,
|
|
31775
|
+
headers,
|
|
31776
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31777
|
+
})
|
|
31778
|
+
.catch((e) => {
|
|
31779
|
+
this.logger.error(formatErrors(e));
|
|
31780
|
+
throw e;
|
|
31781
|
+
});
|
|
31782
|
+
}),
|
|
31783
|
+
},
|
|
31784
|
+
/**
|
|
31785
|
+
* process_withdraw
|
|
31786
|
+
*/
|
|
31787
|
+
processWithdraw: {
|
|
31788
|
+
/**
|
|
31789
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_withdraw&apiName=update&version=v2 click to debug }
|
|
31790
|
+
*
|
|
31791
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_withdraw&version=v2 document }
|
|
31792
|
+
*/
|
|
31793
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31794
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31795
|
+
return this.httpInstance
|
|
31796
|
+
.request({
|
|
31797
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`, path),
|
|
31798
|
+
method: "PUT",
|
|
31799
|
+
data,
|
|
31800
|
+
params,
|
|
31801
|
+
headers,
|
|
31802
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31803
|
+
})
|
|
31804
|
+
.catch((e) => {
|
|
31805
|
+
this.logger.error(formatErrors(e));
|
|
31806
|
+
throw e;
|
|
31807
|
+
});
|
|
31808
|
+
}),
|
|
31809
|
+
},
|
|
31810
|
+
/**
|
|
31811
|
+
* report_detail_row
|
|
31812
|
+
*/
|
|
31813
|
+
reportDetailRow: {
|
|
31814
|
+
/**
|
|
31815
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
31816
|
+
*
|
|
31817
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=report_detail_row&version=v2 document }
|
|
31818
|
+
*
|
|
31819
|
+
* 批量删除填报行
|
|
31820
|
+
*/
|
|
31821
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31822
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31823
|
+
return this.httpInstance
|
|
31824
|
+
.request({
|
|
31825
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`, path),
|
|
31826
|
+
method: "POST",
|
|
31827
|
+
data,
|
|
31828
|
+
params,
|
|
31829
|
+
headers,
|
|
31830
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31831
|
+
})
|
|
31832
|
+
.catch((e) => {
|
|
31833
|
+
this.logger.error(formatErrors(e));
|
|
31834
|
+
throw e;
|
|
31835
|
+
});
|
|
31836
|
+
}),
|
|
31837
|
+
/**
|
|
31838
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
31839
|
+
*
|
|
31840
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=report_detail_row&version=v2 document }
|
|
31841
|
+
*
|
|
31842
|
+
* 批量创建/更新填报行
|
|
31843
|
+
*/
|
|
31844
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31845
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31846
|
+
return this.httpInstance
|
|
31847
|
+
.request({
|
|
31848
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`, path),
|
|
31849
|
+
method: "POST",
|
|
31850
|
+
data,
|
|
31851
|
+
params,
|
|
31852
|
+
headers,
|
|
31853
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31854
|
+
})
|
|
31855
|
+
.catch((e) => {
|
|
31856
|
+
this.logger.error(formatErrors(e));
|
|
31857
|
+
throw e;
|
|
31858
|
+
});
|
|
31859
|
+
}),
|
|
31860
|
+
},
|
|
31254
31861
|
/**
|
|
31255
31862
|
* workforce_plan
|
|
31256
31863
|
*/
|
|
@@ -31355,13 +31962,64 @@ class Client$I extends Client$J {
|
|
|
31355
31962
|
});
|
|
31356
31963
|
}),
|
|
31357
31964
|
},
|
|
31965
|
+
/**
|
|
31966
|
+
* workforce_plan_detail_row
|
|
31967
|
+
*/
|
|
31968
|
+
workforcePlanDetailRow: {
|
|
31969
|
+
/**
|
|
31970
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
31971
|
+
*
|
|
31972
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
31973
|
+
*
|
|
31974
|
+
* 批量删除明细行
|
|
31975
|
+
*/
|
|
31976
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31978
|
+
return this.httpInstance
|
|
31979
|
+
.request({
|
|
31980
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`, path),
|
|
31981
|
+
method: "POST",
|
|
31982
|
+
data,
|
|
31983
|
+
params,
|
|
31984
|
+
headers,
|
|
31985
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31986
|
+
})
|
|
31987
|
+
.catch((e) => {
|
|
31988
|
+
this.logger.error(formatErrors(e));
|
|
31989
|
+
throw e;
|
|
31990
|
+
});
|
|
31991
|
+
}),
|
|
31992
|
+
/**
|
|
31993
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
31994
|
+
*
|
|
31995
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
31996
|
+
*
|
|
31997
|
+
* 批量创建/更新明细行
|
|
31998
|
+
*/
|
|
31999
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32000
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32001
|
+
return this.httpInstance
|
|
32002
|
+
.request({
|
|
32003
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`, path),
|
|
32004
|
+
method: "POST",
|
|
32005
|
+
data,
|
|
32006
|
+
params,
|
|
32007
|
+
headers,
|
|
32008
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32009
|
+
})
|
|
32010
|
+
.catch((e) => {
|
|
32011
|
+
this.logger.error(formatErrors(e));
|
|
32012
|
+
throw e;
|
|
32013
|
+
});
|
|
32014
|
+
}),
|
|
32015
|
+
},
|
|
31358
32016
|
},
|
|
31359
32017
|
};
|
|
31360
32018
|
}
|
|
31361
32019
|
}
|
|
31362
32020
|
|
|
31363
32021
|
// auto gen
|
|
31364
|
-
class Client$
|
|
32022
|
+
class Client$I extends Client$J {
|
|
31365
32023
|
constructor() {
|
|
31366
32024
|
super(...arguments);
|
|
31367
32025
|
/**
|
|
@@ -31371,6 +32029,48 @@ class Client$H extends Client$I {
|
|
|
31371
32029
|
}
|
|
31372
32030
|
}
|
|
31373
32031
|
|
|
32032
|
+
// auto gen
|
|
32033
|
+
class Client$H extends Client$I {
|
|
32034
|
+
constructor() {
|
|
32035
|
+
super(...arguments);
|
|
32036
|
+
/**
|
|
32037
|
+
|
|
32038
|
+
*/
|
|
32039
|
+
this.docs = {
|
|
32040
|
+
v1: {
|
|
32041
|
+
/**
|
|
32042
|
+
* content
|
|
32043
|
+
*/
|
|
32044
|
+
content: {
|
|
32045
|
+
/**
|
|
32046
|
+
* {@link https://open.feishu.cn/api-explorer?project=docs&resource=content&apiName=get&version=v1 click to debug }
|
|
32047
|
+
*
|
|
32048
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docs&resource=content&version=v1 document }
|
|
32049
|
+
*
|
|
32050
|
+
* 获取云文档正文内容
|
|
32051
|
+
*/
|
|
32052
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32053
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32054
|
+
return this.httpInstance
|
|
32055
|
+
.request({
|
|
32056
|
+
url: fillApiPath(`${this.domain}/open-apis/docs/v1/content`, path),
|
|
32057
|
+
method: "GET",
|
|
32058
|
+
data,
|
|
32059
|
+
params,
|
|
32060
|
+
headers,
|
|
32061
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32062
|
+
})
|
|
32063
|
+
.catch((e) => {
|
|
32064
|
+
this.logger.error(formatErrors(e));
|
|
32065
|
+
throw e;
|
|
32066
|
+
});
|
|
32067
|
+
}),
|
|
32068
|
+
},
|
|
32069
|
+
},
|
|
32070
|
+
};
|
|
32071
|
+
}
|
|
32072
|
+
}
|
|
32073
|
+
|
|
31374
32074
|
// auto gen
|
|
31375
32075
|
class Client$G extends Client$H {
|
|
31376
32076
|
constructor() {
|
|
@@ -32756,7 +33456,7 @@ class Client$E extends Client$F {
|
|
|
32756
33456
|
constructor() {
|
|
32757
33457
|
super(...arguments);
|
|
32758
33458
|
/**
|
|
32759
|
-
*
|
|
33459
|
+
* 云文档-文档
|
|
32760
33460
|
*/
|
|
32761
33461
|
this.drive = {
|
|
32762
33462
|
/**
|
|
@@ -34050,7 +34750,7 @@ class Client$E extends Client$F {
|
|
|
34050
34750
|
}),
|
|
34051
34751
|
},
|
|
34052
34752
|
/**
|
|
34053
|
-
*
|
|
34753
|
+
* 分片上传
|
|
34054
34754
|
*/
|
|
34055
34755
|
media: {
|
|
34056
34756
|
/**
|
|
@@ -35876,7 +36576,7 @@ class Client$E extends Client$F {
|
|
|
35876
36576
|
}),
|
|
35877
36577
|
},
|
|
35878
36578
|
/**
|
|
35879
|
-
*
|
|
36579
|
+
* 分片上传
|
|
35880
36580
|
*/
|
|
35881
36581
|
media: {
|
|
35882
36582
|
/**
|
|
@@ -40335,6 +41035,27 @@ class Client$u extends Client$v {
|
|
|
40335
41035
|
* 猎头(灰度租户可见)
|
|
40336
41036
|
*/
|
|
40337
41037
|
agency: {
|
|
41038
|
+
/**
|
|
41039
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
41040
|
+
*
|
|
41041
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
41042
|
+
*/
|
|
41043
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41044
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41045
|
+
return this.httpInstance
|
|
41046
|
+
.request({
|
|
41047
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
41048
|
+
method: "POST",
|
|
41049
|
+
data,
|
|
41050
|
+
params,
|
|
41051
|
+
headers,
|
|
41052
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41053
|
+
})
|
|
41054
|
+
.catch((e) => {
|
|
41055
|
+
this.logger.error(formatErrors(e));
|
|
41056
|
+
throw e;
|
|
41057
|
+
});
|
|
41058
|
+
}),
|
|
40338
41059
|
/**
|
|
40339
41060
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
40340
41061
|
*
|
|
@@ -40360,6 +41081,48 @@ class Client$u extends Client$v {
|
|
|
40360
41081
|
throw e;
|
|
40361
41082
|
});
|
|
40362
41083
|
}),
|
|
41084
|
+
/**
|
|
41085
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
41086
|
+
*
|
|
41087
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
41088
|
+
*/
|
|
41089
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41090
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41091
|
+
return this.httpInstance
|
|
41092
|
+
.request({
|
|
41093
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
41094
|
+
method: "POST",
|
|
41095
|
+
data,
|
|
41096
|
+
params,
|
|
41097
|
+
headers,
|
|
41098
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41099
|
+
})
|
|
41100
|
+
.catch((e) => {
|
|
41101
|
+
this.logger.error(formatErrors(e));
|
|
41102
|
+
throw e;
|
|
41103
|
+
});
|
|
41104
|
+
}),
|
|
41105
|
+
/**
|
|
41106
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
41107
|
+
*
|
|
41108
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
41109
|
+
*/
|
|
41110
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41111
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41112
|
+
return this.httpInstance
|
|
41113
|
+
.request({
|
|
41114
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
41115
|
+
method: "POST",
|
|
41116
|
+
data,
|
|
41117
|
+
params,
|
|
41118
|
+
headers,
|
|
41119
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41120
|
+
})
|
|
41121
|
+
.catch((e) => {
|
|
41122
|
+
this.logger.error(formatErrors(e));
|
|
41123
|
+
throw e;
|
|
41124
|
+
});
|
|
41125
|
+
}),
|
|
40363
41126
|
/**
|
|
40364
41127
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
40365
41128
|
*
|
|
@@ -40433,7 +41196,7 @@ class Client$u extends Client$v {
|
|
|
40433
41196
|
}),
|
|
40434
41197
|
},
|
|
40435
41198
|
/**
|
|
40436
|
-
*
|
|
41199
|
+
* 投递
|
|
40437
41200
|
*/
|
|
40438
41201
|
application: {
|
|
40439
41202
|
/**
|
|
@@ -40486,6 +41249,27 @@ class Client$u extends Client$v {
|
|
|
40486
41249
|
throw e;
|
|
40487
41250
|
});
|
|
40488
41251
|
}),
|
|
41252
|
+
/**
|
|
41253
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
41254
|
+
*
|
|
41255
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
41256
|
+
*/
|
|
41257
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41258
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41259
|
+
return this.httpInstance
|
|
41260
|
+
.request({
|
|
41261
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
41262
|
+
method: "GET",
|
|
41263
|
+
data,
|
|
41264
|
+
params,
|
|
41265
|
+
headers,
|
|
41266
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41267
|
+
})
|
|
41268
|
+
.catch((e) => {
|
|
41269
|
+
this.logger.error(formatErrors(e));
|
|
41270
|
+
throw e;
|
|
41271
|
+
});
|
|
41272
|
+
}),
|
|
40489
41273
|
/**
|
|
40490
41274
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
40491
41275
|
*
|
|
@@ -41760,226 +42544,13 @@ class Client$u extends Client$v {
|
|
|
41760
42544
|
* 导入外部系统信息(灰度租户可见)
|
|
41761
42545
|
*/
|
|
41762
42546
|
externalBackgroundCheck: {
|
|
41763
|
-
|
|
41764
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
41765
|
-
*
|
|
41766
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
41767
|
-
*
|
|
41768
|
-
* 创建外部背调
|
|
41769
|
-
*
|
|
41770
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
41771
|
-
*/
|
|
41772
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41773
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41774
|
-
return this.httpInstance
|
|
41775
|
-
.request({
|
|
41776
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
41777
|
-
method: "POST",
|
|
41778
|
-
data,
|
|
41779
|
-
params,
|
|
41780
|
-
headers,
|
|
41781
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41782
|
-
})
|
|
41783
|
-
.catch((e) => {
|
|
41784
|
-
this.logger.error(formatErrors(e));
|
|
41785
|
-
throw e;
|
|
41786
|
-
});
|
|
41787
|
-
}),
|
|
41788
|
-
},
|
|
41789
|
-
/**
|
|
41790
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41791
|
-
*/
|
|
41792
|
-
externalInterview: {
|
|
41793
|
-
/**
|
|
41794
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
41795
|
-
*
|
|
41796
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
41797
|
-
*
|
|
41798
|
-
* 创建外部面试
|
|
41799
|
-
*
|
|
41800
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
41801
|
-
*/
|
|
41802
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41803
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41804
|
-
return this.httpInstance
|
|
41805
|
-
.request({
|
|
41806
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
41807
|
-
method: "POST",
|
|
41808
|
-
data,
|
|
41809
|
-
params,
|
|
41810
|
-
headers,
|
|
41811
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41812
|
-
})
|
|
41813
|
-
.catch((e) => {
|
|
41814
|
-
this.logger.error(formatErrors(e));
|
|
41815
|
-
throw e;
|
|
41816
|
-
});
|
|
41817
|
-
}),
|
|
41818
|
-
},
|
|
41819
|
-
/**
|
|
41820
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41821
|
-
*/
|
|
41822
|
-
externalInterviewAssessment: {
|
|
41823
|
-
/**
|
|
41824
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
|
|
41825
|
-
*
|
|
41826
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
|
|
41827
|
-
*
|
|
41828
|
-
* 创建外部面评
|
|
41829
|
-
*
|
|
41830
|
-
* 导入来自其他系统的面评信息,创建为外部面评
|
|
41831
|
-
*/
|
|
41832
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41833
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41834
|
-
return this.httpInstance
|
|
41835
|
-
.request({
|
|
41836
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
|
|
41837
|
-
method: "POST",
|
|
41838
|
-
data,
|
|
41839
|
-
params,
|
|
41840
|
-
headers,
|
|
41841
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41842
|
-
})
|
|
41843
|
-
.catch((e) => {
|
|
41844
|
-
this.logger.error(formatErrors(e));
|
|
41845
|
-
throw e;
|
|
41846
|
-
});
|
|
41847
|
-
}),
|
|
41848
|
-
/**
|
|
41849
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
|
|
41850
|
-
*
|
|
41851
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
|
|
41852
|
-
*/
|
|
41853
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41854
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41855
|
-
return this.httpInstance
|
|
41856
|
-
.request({
|
|
41857
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
|
|
41858
|
-
method: "PATCH",
|
|
41859
|
-
data,
|
|
41860
|
-
params,
|
|
41861
|
-
headers,
|
|
41862
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41863
|
-
})
|
|
41864
|
-
.catch((e) => {
|
|
41865
|
-
this.logger.error(formatErrors(e));
|
|
41866
|
-
throw e;
|
|
41867
|
-
});
|
|
41868
|
-
}),
|
|
41869
|
-
},
|
|
41870
|
-
/**
|
|
41871
|
-
* external_referral_reward
|
|
41872
|
-
*/
|
|
41873
|
-
externalReferralReward: {
|
|
41874
|
-
/**
|
|
41875
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
|
|
41876
|
-
*
|
|
41877
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41878
|
-
*/
|
|
41879
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41880
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41881
|
-
return this.httpInstance
|
|
41882
|
-
.request({
|
|
41883
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
|
|
41884
|
-
method: "POST",
|
|
41885
|
-
data,
|
|
41886
|
-
params,
|
|
41887
|
-
headers,
|
|
41888
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41889
|
-
})
|
|
41890
|
-
.catch((e) => {
|
|
41891
|
-
this.logger.error(formatErrors(e));
|
|
41892
|
-
throw e;
|
|
41893
|
-
});
|
|
41894
|
-
}),
|
|
41895
|
-
/**
|
|
41896
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
|
|
41897
|
-
*
|
|
41898
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41899
|
-
*/
|
|
41900
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41901
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41902
|
-
return this.httpInstance
|
|
41903
|
-
.request({
|
|
41904
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
|
|
41905
|
-
method: "DELETE",
|
|
41906
|
-
data,
|
|
41907
|
-
params,
|
|
41908
|
-
headers,
|
|
41909
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41910
|
-
})
|
|
41911
|
-
.catch((e) => {
|
|
41912
|
-
this.logger.error(formatErrors(e));
|
|
41913
|
-
throw e;
|
|
41914
|
-
});
|
|
41915
|
-
}),
|
|
41916
|
-
},
|
|
41917
|
-
/**
|
|
41918
|
-
* 面试
|
|
41919
|
-
*/
|
|
41920
|
-
interview: {
|
|
41921
|
-
/**
|
|
41922
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
|
|
41923
|
-
*
|
|
41924
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
|
|
41925
|
-
*
|
|
41926
|
-
* 获取人才面试信息
|
|
41927
|
-
*
|
|
41928
|
-
* 获取人才面试信息
|
|
41929
|
-
*/
|
|
41930
|
-
getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41931
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41932
|
-
return this.httpInstance
|
|
41933
|
-
.request({
|
|
41934
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
|
|
41935
|
-
method: "GET",
|
|
41936
|
-
data,
|
|
41937
|
-
params,
|
|
41938
|
-
headers,
|
|
41939
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41940
|
-
})
|
|
41941
|
-
.catch((e) => {
|
|
41942
|
-
this.logger.error(formatErrors(e));
|
|
41943
|
-
throw e;
|
|
41944
|
-
});
|
|
41945
|
-
}),
|
|
41946
|
-
/**
|
|
41947
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
|
|
41948
|
-
*
|
|
41949
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
|
|
41950
|
-
*
|
|
41951
|
-
* 获取面试信息
|
|
41952
|
-
*
|
|
41953
|
-
* 根据投递 ID 或面试时间获取面试信息
|
|
41954
|
-
*/
|
|
41955
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41956
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41957
|
-
return this.httpInstance
|
|
41958
|
-
.request({
|
|
41959
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
|
|
41960
|
-
method: "GET",
|
|
41961
|
-
data,
|
|
41962
|
-
params,
|
|
41963
|
-
headers,
|
|
41964
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41965
|
-
})
|
|
41966
|
-
.catch((e) => {
|
|
41967
|
-
this.logger.error(formatErrors(e));
|
|
41968
|
-
throw e;
|
|
41969
|
-
});
|
|
41970
|
-
}),
|
|
41971
|
-
},
|
|
41972
|
-
/**
|
|
41973
|
-
* interview_feedback_form
|
|
41974
|
-
*/
|
|
41975
|
-
interviewFeedbackForm: {
|
|
41976
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42547
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41977
42548
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41978
42549
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
41979
42550
|
const res = yield this.httpInstance
|
|
41980
42551
|
.request({
|
|
41981
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41982
|
-
method: "
|
|
42552
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42553
|
+
method: "POST",
|
|
41983
42554
|
headers: pickBy(innerPayload.headers, identity),
|
|
41984
42555
|
params: pickBy(innerPayload.params, identity),
|
|
41985
42556
|
data,
|
|
@@ -42024,16 +42595,16 @@ class Client$u extends Client$v {
|
|
|
42024
42595
|
return Iterable;
|
|
42025
42596
|
}),
|
|
42026
42597
|
/**
|
|
42027
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42598
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
42028
42599
|
*
|
|
42029
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
42600
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
42030
42601
|
*/
|
|
42031
|
-
|
|
42602
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42032
42603
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42033
42604
|
return this.httpInstance
|
|
42034
42605
|
.request({
|
|
42035
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42036
|
-
method: "
|
|
42606
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42607
|
+
method: "POST",
|
|
42037
42608
|
data,
|
|
42038
42609
|
params,
|
|
42039
42610
|
headers,
|
|
@@ -42044,22 +42615,21 @@ class Client$u extends Client$v {
|
|
|
42044
42615
|
throw e;
|
|
42045
42616
|
});
|
|
42046
42617
|
}),
|
|
42047
|
-
},
|
|
42048
|
-
/**
|
|
42049
|
-
* interview_record.attachment
|
|
42050
|
-
*/
|
|
42051
|
-
interviewRecordAttachment: {
|
|
42052
42618
|
/**
|
|
42053
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42619
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
42054
42620
|
*
|
|
42055
|
-
* {@link https://open.feishu.cn/
|
|
42621
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
42622
|
+
*
|
|
42623
|
+
* 创建外部背调
|
|
42624
|
+
*
|
|
42625
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
42056
42626
|
*/
|
|
42057
|
-
|
|
42627
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42058
42628
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42059
42629
|
return this.httpInstance
|
|
42060
42630
|
.request({
|
|
42061
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42062
|
-
method: "
|
|
42631
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
42632
|
+
method: "POST",
|
|
42063
42633
|
data,
|
|
42064
42634
|
params,
|
|
42065
42635
|
headers,
|
|
@@ -42070,26 +42640,38 @@ class Client$u extends Client$v {
|
|
|
42070
42640
|
throw e;
|
|
42071
42641
|
});
|
|
42072
42642
|
}),
|
|
42073
|
-
},
|
|
42074
|
-
/**
|
|
42075
|
-
* interview_record
|
|
42076
|
-
*/
|
|
42077
|
-
interviewRecord: {
|
|
42078
42643
|
/**
|
|
42079
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
42644
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
42080
42645
|
*
|
|
42081
|
-
* {@link https://open.feishu.cn/
|
|
42082
|
-
|
|
42083
|
-
|
|
42646
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
42647
|
+
*/
|
|
42648
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42649
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42650
|
+
return this.httpInstance
|
|
42651
|
+
.request({
|
|
42652
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
42653
|
+
method: "DELETE",
|
|
42654
|
+
data,
|
|
42655
|
+
params,
|
|
42656
|
+
headers,
|
|
42657
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42658
|
+
})
|
|
42659
|
+
.catch((e) => {
|
|
42660
|
+
this.logger.error(formatErrors(e));
|
|
42661
|
+
throw e;
|
|
42662
|
+
});
|
|
42663
|
+
}),
|
|
42664
|
+
/**
|
|
42665
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
42084
42666
|
*
|
|
42085
|
-
*
|
|
42667
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
42086
42668
|
*/
|
|
42087
|
-
|
|
42669
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42088
42670
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42089
42671
|
return this.httpInstance
|
|
42090
42672
|
.request({
|
|
42091
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42092
|
-
method: "
|
|
42673
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
42674
|
+
method: "PUT",
|
|
42093
42675
|
data,
|
|
42094
42676
|
params,
|
|
42095
42677
|
headers,
|
|
@@ -42100,13 +42682,580 @@ class Client$u extends Client$v {
|
|
|
42100
42682
|
throw e;
|
|
42101
42683
|
});
|
|
42102
42684
|
}),
|
|
42103
|
-
|
|
42685
|
+
},
|
|
42686
|
+
/**
|
|
42687
|
+
* 导入外部系统信息(灰度租户可见)
|
|
42688
|
+
*/
|
|
42689
|
+
externalInterview: {
|
|
42690
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42104
42691
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42105
42692
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
42106
42693
|
const res = yield this.httpInstance
|
|
42107
42694
|
.request({
|
|
42108
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42109
|
-
method: "
|
|
42695
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
42696
|
+
method: "POST",
|
|
42697
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
42698
|
+
params: pickBy(innerPayload.params, identity),
|
|
42699
|
+
data,
|
|
42700
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42701
|
+
})
|
|
42702
|
+
.catch((e) => {
|
|
42703
|
+
this.logger.error(formatErrors(e));
|
|
42704
|
+
});
|
|
42705
|
+
return res;
|
|
42706
|
+
});
|
|
42707
|
+
const Iterable = {
|
|
42708
|
+
[Symbol.asyncIterator]() {
|
|
42709
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
42710
|
+
let hasMore = true;
|
|
42711
|
+
let pageToken;
|
|
42712
|
+
while (hasMore) {
|
|
42713
|
+
try {
|
|
42714
|
+
const res = yield __await(sendRequest({
|
|
42715
|
+
headers,
|
|
42716
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
42717
|
+
data,
|
|
42718
|
+
}));
|
|
42719
|
+
const _b = get(res, "data") || {}, {
|
|
42720
|
+
// @ts-ignore
|
|
42721
|
+
has_more,
|
|
42722
|
+
// @ts-ignore
|
|
42723
|
+
page_token,
|
|
42724
|
+
// @ts-ignore
|
|
42725
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
42726
|
+
yield yield __await(rest);
|
|
42727
|
+
hasMore = Boolean(has_more);
|
|
42728
|
+
pageToken = page_token || next_page_token;
|
|
42729
|
+
}
|
|
42730
|
+
catch (e) {
|
|
42731
|
+
yield yield __await(null);
|
|
42732
|
+
break;
|
|
42733
|
+
}
|
|
42734
|
+
}
|
|
42735
|
+
});
|
|
42736
|
+
},
|
|
42737
|
+
};
|
|
42738
|
+
return Iterable;
|
|
42739
|
+
}),
|
|
42740
|
+
/**
|
|
42741
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
42742
|
+
*
|
|
42743
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
42744
|
+
*/
|
|
42745
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42746
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42747
|
+
return this.httpInstance
|
|
42748
|
+
.request({
|
|
42749
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
42750
|
+
method: "POST",
|
|
42751
|
+
data,
|
|
42752
|
+
params,
|
|
42753
|
+
headers,
|
|
42754
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42755
|
+
})
|
|
42756
|
+
.catch((e) => {
|
|
42757
|
+
this.logger.error(formatErrors(e));
|
|
42758
|
+
throw e;
|
|
42759
|
+
});
|
|
42760
|
+
}),
|
|
42761
|
+
/**
|
|
42762
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
42763
|
+
*
|
|
42764
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
42765
|
+
*
|
|
42766
|
+
* 创建外部面试
|
|
42767
|
+
*
|
|
42768
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
42769
|
+
*/
|
|
42770
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42771
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42772
|
+
return this.httpInstance
|
|
42773
|
+
.request({
|
|
42774
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
42775
|
+
method: "POST",
|
|
42776
|
+
data,
|
|
42777
|
+
params,
|
|
42778
|
+
headers,
|
|
42779
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42780
|
+
})
|
|
42781
|
+
.catch((e) => {
|
|
42782
|
+
this.logger.error(formatErrors(e));
|
|
42783
|
+
throw e;
|
|
42784
|
+
});
|
|
42785
|
+
}),
|
|
42786
|
+
/**
|
|
42787
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
42788
|
+
*
|
|
42789
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
42790
|
+
*/
|
|
42791
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42792
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42793
|
+
return this.httpInstance
|
|
42794
|
+
.request({
|
|
42795
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
42796
|
+
method: "DELETE",
|
|
42797
|
+
data,
|
|
42798
|
+
params,
|
|
42799
|
+
headers,
|
|
42800
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42801
|
+
})
|
|
42802
|
+
.catch((e) => {
|
|
42803
|
+
this.logger.error(formatErrors(e));
|
|
42804
|
+
throw e;
|
|
42805
|
+
});
|
|
42806
|
+
}),
|
|
42807
|
+
/**
|
|
42808
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
42809
|
+
*
|
|
42810
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
42811
|
+
*/
|
|
42812
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42813
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42814
|
+
return this.httpInstance
|
|
42815
|
+
.request({
|
|
42816
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
42817
|
+
method: "PUT",
|
|
42818
|
+
data,
|
|
42819
|
+
params,
|
|
42820
|
+
headers,
|
|
42821
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42822
|
+
})
|
|
42823
|
+
.catch((e) => {
|
|
42824
|
+
this.logger.error(formatErrors(e));
|
|
42825
|
+
throw e;
|
|
42826
|
+
});
|
|
42827
|
+
}),
|
|
42828
|
+
},
|
|
42829
|
+
/**
|
|
42830
|
+
* 导入外部系统信息(灰度租户可见)
|
|
42831
|
+
*/
|
|
42832
|
+
externalInterviewAssessment: {
|
|
42833
|
+
/**
|
|
42834
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
|
|
42835
|
+
*
|
|
42836
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
|
|
42837
|
+
*
|
|
42838
|
+
* 创建外部面评
|
|
42839
|
+
*
|
|
42840
|
+
* 导入来自其他系统的面评信息,创建为外部面评
|
|
42841
|
+
*/
|
|
42842
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42843
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42844
|
+
return this.httpInstance
|
|
42845
|
+
.request({
|
|
42846
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
|
|
42847
|
+
method: "POST",
|
|
42848
|
+
data,
|
|
42849
|
+
params,
|
|
42850
|
+
headers,
|
|
42851
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42852
|
+
})
|
|
42853
|
+
.catch((e) => {
|
|
42854
|
+
this.logger.error(formatErrors(e));
|
|
42855
|
+
throw e;
|
|
42856
|
+
});
|
|
42857
|
+
}),
|
|
42858
|
+
/**
|
|
42859
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
|
|
42860
|
+
*
|
|
42861
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
|
|
42862
|
+
*/
|
|
42863
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42864
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42865
|
+
return this.httpInstance
|
|
42866
|
+
.request({
|
|
42867
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
|
|
42868
|
+
method: "PATCH",
|
|
42869
|
+
data,
|
|
42870
|
+
params,
|
|
42871
|
+
headers,
|
|
42872
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42873
|
+
})
|
|
42874
|
+
.catch((e) => {
|
|
42875
|
+
this.logger.error(formatErrors(e));
|
|
42876
|
+
throw e;
|
|
42877
|
+
});
|
|
42878
|
+
}),
|
|
42879
|
+
},
|
|
42880
|
+
/**
|
|
42881
|
+
* external_offer
|
|
42882
|
+
*/
|
|
42883
|
+
externalOffer: {
|
|
42884
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42885
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42886
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
42887
|
+
const res = yield this.httpInstance
|
|
42888
|
+
.request({
|
|
42889
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
42890
|
+
method: "POST",
|
|
42891
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
42892
|
+
params: pickBy(innerPayload.params, identity),
|
|
42893
|
+
data,
|
|
42894
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42895
|
+
})
|
|
42896
|
+
.catch((e) => {
|
|
42897
|
+
this.logger.error(formatErrors(e));
|
|
42898
|
+
});
|
|
42899
|
+
return res;
|
|
42900
|
+
});
|
|
42901
|
+
const Iterable = {
|
|
42902
|
+
[Symbol.asyncIterator]() {
|
|
42903
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
42904
|
+
let hasMore = true;
|
|
42905
|
+
let pageToken;
|
|
42906
|
+
while (hasMore) {
|
|
42907
|
+
try {
|
|
42908
|
+
const res = yield __await(sendRequest({
|
|
42909
|
+
headers,
|
|
42910
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
42911
|
+
data,
|
|
42912
|
+
}));
|
|
42913
|
+
const _b = get(res, "data") || {}, {
|
|
42914
|
+
// @ts-ignore
|
|
42915
|
+
has_more,
|
|
42916
|
+
// @ts-ignore
|
|
42917
|
+
page_token,
|
|
42918
|
+
// @ts-ignore
|
|
42919
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
42920
|
+
yield yield __await(rest);
|
|
42921
|
+
hasMore = Boolean(has_more);
|
|
42922
|
+
pageToken = page_token || next_page_token;
|
|
42923
|
+
}
|
|
42924
|
+
catch (e) {
|
|
42925
|
+
yield yield __await(null);
|
|
42926
|
+
break;
|
|
42927
|
+
}
|
|
42928
|
+
}
|
|
42929
|
+
});
|
|
42930
|
+
},
|
|
42931
|
+
};
|
|
42932
|
+
return Iterable;
|
|
42933
|
+
}),
|
|
42934
|
+
/**
|
|
42935
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
42936
|
+
*
|
|
42937
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
42938
|
+
*/
|
|
42939
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42940
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42941
|
+
return this.httpInstance
|
|
42942
|
+
.request({
|
|
42943
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
42944
|
+
method: "POST",
|
|
42945
|
+
data,
|
|
42946
|
+
params,
|
|
42947
|
+
headers,
|
|
42948
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42949
|
+
})
|
|
42950
|
+
.catch((e) => {
|
|
42951
|
+
this.logger.error(formatErrors(e));
|
|
42952
|
+
throw e;
|
|
42953
|
+
});
|
|
42954
|
+
}),
|
|
42955
|
+
/**
|
|
42956
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
42957
|
+
*
|
|
42958
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
42959
|
+
*/
|
|
42960
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42961
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42962
|
+
return this.httpInstance
|
|
42963
|
+
.request({
|
|
42964
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
42965
|
+
method: "POST",
|
|
42966
|
+
data,
|
|
42967
|
+
params,
|
|
42968
|
+
headers,
|
|
42969
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42970
|
+
})
|
|
42971
|
+
.catch((e) => {
|
|
42972
|
+
this.logger.error(formatErrors(e));
|
|
42973
|
+
throw e;
|
|
42974
|
+
});
|
|
42975
|
+
}),
|
|
42976
|
+
/**
|
|
42977
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
42978
|
+
*
|
|
42979
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
42980
|
+
*/
|
|
42981
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42982
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42983
|
+
return this.httpInstance
|
|
42984
|
+
.request({
|
|
42985
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
42986
|
+
method: "DELETE",
|
|
42987
|
+
data,
|
|
42988
|
+
params,
|
|
42989
|
+
headers,
|
|
42990
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42991
|
+
})
|
|
42992
|
+
.catch((e) => {
|
|
42993
|
+
this.logger.error(formatErrors(e));
|
|
42994
|
+
throw e;
|
|
42995
|
+
});
|
|
42996
|
+
}),
|
|
42997
|
+
/**
|
|
42998
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
42999
|
+
*
|
|
43000
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
43001
|
+
*/
|
|
43002
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43003
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43004
|
+
return this.httpInstance
|
|
43005
|
+
.request({
|
|
43006
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
43007
|
+
method: "PUT",
|
|
43008
|
+
data,
|
|
43009
|
+
params,
|
|
43010
|
+
headers,
|
|
43011
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43012
|
+
})
|
|
43013
|
+
.catch((e) => {
|
|
43014
|
+
this.logger.error(formatErrors(e));
|
|
43015
|
+
throw e;
|
|
43016
|
+
});
|
|
43017
|
+
}),
|
|
43018
|
+
},
|
|
43019
|
+
/**
|
|
43020
|
+
* external_referral_reward
|
|
43021
|
+
*/
|
|
43022
|
+
externalReferralReward: {
|
|
43023
|
+
/**
|
|
43024
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
|
|
43025
|
+
*
|
|
43026
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
|
|
43027
|
+
*/
|
|
43028
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43029
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43030
|
+
return this.httpInstance
|
|
43031
|
+
.request({
|
|
43032
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
|
|
43033
|
+
method: "POST",
|
|
43034
|
+
data,
|
|
43035
|
+
params,
|
|
43036
|
+
headers,
|
|
43037
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43038
|
+
})
|
|
43039
|
+
.catch((e) => {
|
|
43040
|
+
this.logger.error(formatErrors(e));
|
|
43041
|
+
throw e;
|
|
43042
|
+
});
|
|
43043
|
+
}),
|
|
43044
|
+
/**
|
|
43045
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
|
|
43046
|
+
*
|
|
43047
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
|
|
43048
|
+
*/
|
|
43049
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43050
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43051
|
+
return this.httpInstance
|
|
43052
|
+
.request({
|
|
43053
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
|
|
43054
|
+
method: "DELETE",
|
|
43055
|
+
data,
|
|
43056
|
+
params,
|
|
43057
|
+
headers,
|
|
43058
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43059
|
+
})
|
|
43060
|
+
.catch((e) => {
|
|
43061
|
+
this.logger.error(formatErrors(e));
|
|
43062
|
+
throw e;
|
|
43063
|
+
});
|
|
43064
|
+
}),
|
|
43065
|
+
},
|
|
43066
|
+
/**
|
|
43067
|
+
* 面试
|
|
43068
|
+
*/
|
|
43069
|
+
interview: {
|
|
43070
|
+
/**
|
|
43071
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
|
|
43072
|
+
*
|
|
43073
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
|
|
43074
|
+
*
|
|
43075
|
+
* 获取人才面试信息
|
|
43076
|
+
*
|
|
43077
|
+
* 获取人才面试信息
|
|
43078
|
+
*/
|
|
43079
|
+
getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43080
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43081
|
+
return this.httpInstance
|
|
43082
|
+
.request({
|
|
43083
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
|
|
43084
|
+
method: "GET",
|
|
43085
|
+
data,
|
|
43086
|
+
params,
|
|
43087
|
+
headers,
|
|
43088
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43089
|
+
})
|
|
43090
|
+
.catch((e) => {
|
|
43091
|
+
this.logger.error(formatErrors(e));
|
|
43092
|
+
throw e;
|
|
43093
|
+
});
|
|
43094
|
+
}),
|
|
43095
|
+
/**
|
|
43096
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
|
|
43097
|
+
*
|
|
43098
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
|
|
43099
|
+
*
|
|
43100
|
+
* 获取面试信息
|
|
43101
|
+
*
|
|
43102
|
+
* 根据投递 ID 或面试时间获取面试信息
|
|
43103
|
+
*/
|
|
43104
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43105
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43106
|
+
return this.httpInstance
|
|
43107
|
+
.request({
|
|
43108
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
|
|
43109
|
+
method: "GET",
|
|
43110
|
+
data,
|
|
43111
|
+
params,
|
|
43112
|
+
headers,
|
|
43113
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43114
|
+
})
|
|
43115
|
+
.catch((e) => {
|
|
43116
|
+
this.logger.error(formatErrors(e));
|
|
43117
|
+
throw e;
|
|
43118
|
+
});
|
|
43119
|
+
}),
|
|
43120
|
+
},
|
|
43121
|
+
/**
|
|
43122
|
+
* interview_feedback_form
|
|
43123
|
+
*/
|
|
43124
|
+
interviewFeedbackForm: {
|
|
43125
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43126
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43127
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43128
|
+
const res = yield this.httpInstance
|
|
43129
|
+
.request({
|
|
43130
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
|
|
43131
|
+
method: "GET",
|
|
43132
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
43133
|
+
params: pickBy(innerPayload.params, identity),
|
|
43134
|
+
data,
|
|
43135
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43136
|
+
})
|
|
43137
|
+
.catch((e) => {
|
|
43138
|
+
this.logger.error(formatErrors(e));
|
|
43139
|
+
});
|
|
43140
|
+
return res;
|
|
43141
|
+
});
|
|
43142
|
+
const Iterable = {
|
|
43143
|
+
[Symbol.asyncIterator]() {
|
|
43144
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43145
|
+
let hasMore = true;
|
|
43146
|
+
let pageToken;
|
|
43147
|
+
while (hasMore) {
|
|
43148
|
+
try {
|
|
43149
|
+
const res = yield __await(sendRequest({
|
|
43150
|
+
headers,
|
|
43151
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
43152
|
+
data,
|
|
43153
|
+
}));
|
|
43154
|
+
const _b = get(res, "data") || {}, {
|
|
43155
|
+
// @ts-ignore
|
|
43156
|
+
has_more,
|
|
43157
|
+
// @ts-ignore
|
|
43158
|
+
page_token,
|
|
43159
|
+
// @ts-ignore
|
|
43160
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
43161
|
+
yield yield __await(rest);
|
|
43162
|
+
hasMore = Boolean(has_more);
|
|
43163
|
+
pageToken = page_token || next_page_token;
|
|
43164
|
+
}
|
|
43165
|
+
catch (e) {
|
|
43166
|
+
yield yield __await(null);
|
|
43167
|
+
break;
|
|
43168
|
+
}
|
|
43169
|
+
}
|
|
43170
|
+
});
|
|
43171
|
+
},
|
|
43172
|
+
};
|
|
43173
|
+
return Iterable;
|
|
43174
|
+
}),
|
|
43175
|
+
/**
|
|
43176
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_feedback_form&apiName=list&version=v1 click to debug }
|
|
43177
|
+
*
|
|
43178
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interview_feedback_form&version=v1 document }
|
|
43179
|
+
*/
|
|
43180
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43181
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43182
|
+
return this.httpInstance
|
|
43183
|
+
.request({
|
|
43184
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`, path),
|
|
43185
|
+
method: "GET",
|
|
43186
|
+
data,
|
|
43187
|
+
params,
|
|
43188
|
+
headers,
|
|
43189
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43190
|
+
})
|
|
43191
|
+
.catch((e) => {
|
|
43192
|
+
this.logger.error(formatErrors(e));
|
|
43193
|
+
throw e;
|
|
43194
|
+
});
|
|
43195
|
+
}),
|
|
43196
|
+
},
|
|
43197
|
+
/**
|
|
43198
|
+
* interview_record.attachment
|
|
43199
|
+
*/
|
|
43200
|
+
interviewRecordAttachment: {
|
|
43201
|
+
/**
|
|
43202
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record.attachment&apiName=get&version=v1 click to debug }
|
|
43203
|
+
*
|
|
43204
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=interview_record.attachment&version=v1 document }
|
|
43205
|
+
*/
|
|
43206
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43207
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43208
|
+
return this.httpInstance
|
|
43209
|
+
.request({
|
|
43210
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/attachments`, path),
|
|
43211
|
+
method: "GET",
|
|
43212
|
+
data,
|
|
43213
|
+
params,
|
|
43214
|
+
headers,
|
|
43215
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43216
|
+
})
|
|
43217
|
+
.catch((e) => {
|
|
43218
|
+
this.logger.error(formatErrors(e));
|
|
43219
|
+
throw e;
|
|
43220
|
+
});
|
|
43221
|
+
}),
|
|
43222
|
+
},
|
|
43223
|
+
/**
|
|
43224
|
+
* interview_record
|
|
43225
|
+
*/
|
|
43226
|
+
interviewRecord: {
|
|
43227
|
+
/**
|
|
43228
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview_record&apiName=get&version=v1 click to debug }
|
|
43229
|
+
*
|
|
43230
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview_record/get document }
|
|
43231
|
+
*
|
|
43232
|
+
* 获取面试评价详细信息
|
|
43233
|
+
*
|
|
43234
|
+
* 获取面试评价详细信息
|
|
43235
|
+
*/
|
|
43236
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43237
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43238
|
+
return this.httpInstance
|
|
43239
|
+
.request({
|
|
43240
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`, path),
|
|
43241
|
+
method: "GET",
|
|
43242
|
+
data,
|
|
43243
|
+
params,
|
|
43244
|
+
headers,
|
|
43245
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43246
|
+
})
|
|
43247
|
+
.catch((e) => {
|
|
43248
|
+
this.logger.error(formatErrors(e));
|
|
43249
|
+
throw e;
|
|
43250
|
+
});
|
|
43251
|
+
}),
|
|
43252
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43253
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43254
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43255
|
+
const res = yield this.httpInstance
|
|
43256
|
+
.request({
|
|
43257
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interview_records`, path),
|
|
43258
|
+
method: "GET",
|
|
42110
43259
|
headers: pickBy(innerPayload.headers, identity),
|
|
42111
43260
|
params: pickBy(innerPayload.params, identity),
|
|
42112
43261
|
data,
|
|
@@ -42588,6 +43737,27 @@ class Client$u extends Client$v {
|
|
|
42588
43737
|
throw e;
|
|
42589
43738
|
});
|
|
42590
43739
|
}),
|
|
43740
|
+
/**
|
|
43741
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
43742
|
+
*
|
|
43743
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
43744
|
+
*/
|
|
43745
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43746
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43747
|
+
return this.httpInstance
|
|
43748
|
+
.request({
|
|
43749
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
43750
|
+
method: "GET",
|
|
43751
|
+
data,
|
|
43752
|
+
params,
|
|
43753
|
+
headers,
|
|
43754
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43755
|
+
})
|
|
43756
|
+
.catch((e) => {
|
|
43757
|
+
this.logger.error(formatErrors(e));
|
|
43758
|
+
throw e;
|
|
43759
|
+
});
|
|
43760
|
+
}),
|
|
42591
43761
|
/**
|
|
42592
43762
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
42593
43763
|
*
|
|
@@ -43786,6 +44956,48 @@ class Client$u extends Client$v {
|
|
|
43786
44956
|
throw e;
|
|
43787
44957
|
});
|
|
43788
44958
|
}),
|
|
44959
|
+
/**
|
|
44960
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
44961
|
+
*
|
|
44962
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
44963
|
+
*/
|
|
44964
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44965
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44966
|
+
return this.httpInstance
|
|
44967
|
+
.request({
|
|
44968
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
44969
|
+
method: "POST",
|
|
44970
|
+
data,
|
|
44971
|
+
params,
|
|
44972
|
+
headers,
|
|
44973
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44974
|
+
})
|
|
44975
|
+
.catch((e) => {
|
|
44976
|
+
this.logger.error(formatErrors(e));
|
|
44977
|
+
throw e;
|
|
44978
|
+
});
|
|
44979
|
+
}),
|
|
44980
|
+
/**
|
|
44981
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
44982
|
+
*
|
|
44983
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
44984
|
+
*/
|
|
44985
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44986
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44987
|
+
return this.httpInstance
|
|
44988
|
+
.request({
|
|
44989
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
44990
|
+
method: "GET",
|
|
44991
|
+
data,
|
|
44992
|
+
params,
|
|
44993
|
+
headers,
|
|
44994
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44995
|
+
})
|
|
44996
|
+
.catch((e) => {
|
|
44997
|
+
this.logger.error(formatErrors(e));
|
|
44998
|
+
throw e;
|
|
44999
|
+
});
|
|
45000
|
+
}),
|
|
43789
45001
|
/**
|
|
43790
45002
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
43791
45003
|
*
|
|
@@ -44392,6 +45604,27 @@ class Client$u extends Client$v {
|
|
|
44392
45604
|
throw e;
|
|
44393
45605
|
});
|
|
44394
45606
|
}),
|
|
45607
|
+
/**
|
|
45608
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
45609
|
+
*
|
|
45610
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
45611
|
+
*/
|
|
45612
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45613
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45614
|
+
return this.httpInstance
|
|
45615
|
+
.request({
|
|
45616
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
45617
|
+
method: "POST",
|
|
45618
|
+
data,
|
|
45619
|
+
params,
|
|
45620
|
+
headers,
|
|
45621
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
45622
|
+
})
|
|
45623
|
+
.catch((e) => {
|
|
45624
|
+
this.logger.error(formatErrors(e));
|
|
45625
|
+
throw e;
|
|
45626
|
+
});
|
|
45627
|
+
}),
|
|
44395
45628
|
/**
|
|
44396
45629
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44397
45630
|
*
|
|
@@ -44469,6 +45702,32 @@ class Client$u extends Client$v {
|
|
|
44469
45702
|
});
|
|
44470
45703
|
}),
|
|
44471
45704
|
},
|
|
45705
|
+
/**
|
|
45706
|
+
* talent_blocklist
|
|
45707
|
+
*/
|
|
45708
|
+
talentBlocklist: {
|
|
45709
|
+
/**
|
|
45710
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
45711
|
+
*
|
|
45712
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
45713
|
+
*/
|
|
45714
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45715
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45716
|
+
return this.httpInstance
|
|
45717
|
+
.request({
|
|
45718
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
45719
|
+
method: "POST",
|
|
45720
|
+
data,
|
|
45721
|
+
params,
|
|
45722
|
+
headers,
|
|
45723
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
45724
|
+
})
|
|
45725
|
+
.catch((e) => {
|
|
45726
|
+
this.logger.error(formatErrors(e));
|
|
45727
|
+
throw e;
|
|
45728
|
+
});
|
|
45729
|
+
}),
|
|
45730
|
+
},
|
|
44472
45731
|
/**
|
|
44473
45732
|
* talent_folder
|
|
44474
45733
|
*/
|
|
@@ -44613,6 +45872,27 @@ class Client$u extends Client$v {
|
|
|
44613
45872
|
* talent_pool
|
|
44614
45873
|
*/
|
|
44615
45874
|
talentPool: {
|
|
45875
|
+
/**
|
|
45876
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
45877
|
+
*
|
|
45878
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
45879
|
+
*/
|
|
45880
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45881
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45882
|
+
return this.httpInstance
|
|
45883
|
+
.request({
|
|
45884
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
45885
|
+
method: "POST",
|
|
45886
|
+
data,
|
|
45887
|
+
params,
|
|
45888
|
+
headers,
|
|
45889
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
45890
|
+
})
|
|
45891
|
+
.catch((e) => {
|
|
45892
|
+
this.logger.error(formatErrors(e));
|
|
45893
|
+
throw e;
|
|
45894
|
+
});
|
|
45895
|
+
}),
|
|
44616
45896
|
/**
|
|
44617
45897
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
44618
45898
|
*
|
|
@@ -45758,6 +47038,27 @@ class Client$u extends Client$v {
|
|
|
45758
47038
|
* 猎头(灰度租户可见)
|
|
45759
47039
|
*/
|
|
45760
47040
|
agency: {
|
|
47041
|
+
/**
|
|
47042
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
47043
|
+
*
|
|
47044
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
47045
|
+
*/
|
|
47046
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47047
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47048
|
+
return this.httpInstance
|
|
47049
|
+
.request({
|
|
47050
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
47051
|
+
method: "POST",
|
|
47052
|
+
data,
|
|
47053
|
+
params,
|
|
47054
|
+
headers,
|
|
47055
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
47056
|
+
})
|
|
47057
|
+
.catch((e) => {
|
|
47058
|
+
this.logger.error(formatErrors(e));
|
|
47059
|
+
throw e;
|
|
47060
|
+
});
|
|
47061
|
+
}),
|
|
45761
47062
|
/**
|
|
45762
47063
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
45763
47064
|
*
|
|
@@ -45783,6 +47084,48 @@ class Client$u extends Client$v {
|
|
|
45783
47084
|
throw e;
|
|
45784
47085
|
});
|
|
45785
47086
|
}),
|
|
47087
|
+
/**
|
|
47088
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
47089
|
+
*
|
|
47090
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
47091
|
+
*/
|
|
47092
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47093
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47094
|
+
return this.httpInstance
|
|
47095
|
+
.request({
|
|
47096
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
47097
|
+
method: "POST",
|
|
47098
|
+
data,
|
|
47099
|
+
params,
|
|
47100
|
+
headers,
|
|
47101
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
47102
|
+
})
|
|
47103
|
+
.catch((e) => {
|
|
47104
|
+
this.logger.error(formatErrors(e));
|
|
47105
|
+
throw e;
|
|
47106
|
+
});
|
|
47107
|
+
}),
|
|
47108
|
+
/**
|
|
47109
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
47110
|
+
*
|
|
47111
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
47112
|
+
*/
|
|
47113
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47114
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47115
|
+
return this.httpInstance
|
|
47116
|
+
.request({
|
|
47117
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
47118
|
+
method: "POST",
|
|
47119
|
+
data,
|
|
47120
|
+
params,
|
|
47121
|
+
headers,
|
|
47122
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
47123
|
+
})
|
|
47124
|
+
.catch((e) => {
|
|
47125
|
+
this.logger.error(formatErrors(e));
|
|
47126
|
+
throw e;
|
|
47127
|
+
});
|
|
47128
|
+
}),
|
|
45786
47129
|
/**
|
|
45787
47130
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
45788
47131
|
*
|
|
@@ -45856,7 +47199,7 @@ class Client$u extends Client$v {
|
|
|
45856
47199
|
}),
|
|
45857
47200
|
},
|
|
45858
47201
|
/**
|
|
45859
|
-
*
|
|
47202
|
+
* 投递
|
|
45860
47203
|
*/
|
|
45861
47204
|
application: {
|
|
45862
47205
|
/**
|
|
@@ -45909,6 +47252,27 @@ class Client$u extends Client$v {
|
|
|
45909
47252
|
throw e;
|
|
45910
47253
|
});
|
|
45911
47254
|
}),
|
|
47255
|
+
/**
|
|
47256
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
47257
|
+
*
|
|
47258
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
47259
|
+
*/
|
|
47260
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47261
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47262
|
+
return this.httpInstance
|
|
47263
|
+
.request({
|
|
47264
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
47265
|
+
method: "GET",
|
|
47266
|
+
data,
|
|
47267
|
+
params,
|
|
47268
|
+
headers,
|
|
47269
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
47270
|
+
})
|
|
47271
|
+
.catch((e) => {
|
|
47272
|
+
this.logger.error(formatErrors(e));
|
|
47273
|
+
throw e;
|
|
47274
|
+
});
|
|
47275
|
+
}),
|
|
45912
47276
|
/**
|
|
45913
47277
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
45914
47278
|
*
|
|
@@ -47141,18 +48505,264 @@ class Client$u extends Client$v {
|
|
|
47141
48505
|
return Iterable;
|
|
47142
48506
|
}),
|
|
47143
48507
|
/**
|
|
47144
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
47145
|
-
*
|
|
47146
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
48508
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
48509
|
+
*
|
|
48510
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
48511
|
+
*
|
|
48512
|
+
* 根据人才 id 获取外部投递列表
|
|
48513
|
+
*/
|
|
48514
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48515
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48516
|
+
return this.httpInstance
|
|
48517
|
+
.request({
|
|
48518
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
48519
|
+
method: "GET",
|
|
48520
|
+
data,
|
|
48521
|
+
params,
|
|
48522
|
+
headers,
|
|
48523
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48524
|
+
})
|
|
48525
|
+
.catch((e) => {
|
|
48526
|
+
this.logger.error(formatErrors(e));
|
|
48527
|
+
throw e;
|
|
48528
|
+
});
|
|
48529
|
+
}),
|
|
48530
|
+
/**
|
|
48531
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
48532
|
+
*
|
|
48533
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
48534
|
+
*
|
|
48535
|
+
* 更新外部投递
|
|
48536
|
+
*/
|
|
48537
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48538
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48539
|
+
return this.httpInstance
|
|
48540
|
+
.request({
|
|
48541
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
48542
|
+
method: "PUT",
|
|
48543
|
+
data,
|
|
48544
|
+
params,
|
|
48545
|
+
headers,
|
|
48546
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48547
|
+
})
|
|
48548
|
+
.catch((e) => {
|
|
48549
|
+
this.logger.error(formatErrors(e));
|
|
48550
|
+
throw e;
|
|
48551
|
+
});
|
|
48552
|
+
}),
|
|
48553
|
+
},
|
|
48554
|
+
/**
|
|
48555
|
+
* 导入外部系统信息(灰度租户可见)
|
|
48556
|
+
*/
|
|
48557
|
+
externalBackgroundCheck: {
|
|
48558
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48559
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48560
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48561
|
+
const res = yield this.httpInstance
|
|
48562
|
+
.request({
|
|
48563
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
48564
|
+
method: "POST",
|
|
48565
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
48566
|
+
params: pickBy(innerPayload.params, identity),
|
|
48567
|
+
data,
|
|
48568
|
+
paramsSerializer: (params) => stringify(params, {
|
|
48569
|
+
arrayFormat: "repeat",
|
|
48570
|
+
}),
|
|
48571
|
+
})
|
|
48572
|
+
.catch((e) => {
|
|
48573
|
+
this.logger.error(formatErrors(e));
|
|
48574
|
+
});
|
|
48575
|
+
return res;
|
|
48576
|
+
});
|
|
48577
|
+
const Iterable = {
|
|
48578
|
+
[Symbol.asyncIterator]() {
|
|
48579
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48580
|
+
let hasMore = true;
|
|
48581
|
+
let pageToken;
|
|
48582
|
+
while (hasMore) {
|
|
48583
|
+
try {
|
|
48584
|
+
const res = yield __await(sendRequest({
|
|
48585
|
+
headers,
|
|
48586
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48587
|
+
data,
|
|
48588
|
+
}));
|
|
48589
|
+
const _b = get(res, "data") || {}, {
|
|
48590
|
+
// @ts-ignore
|
|
48591
|
+
has_more,
|
|
48592
|
+
// @ts-ignore
|
|
48593
|
+
page_token,
|
|
48594
|
+
// @ts-ignore
|
|
48595
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48596
|
+
yield yield __await(rest);
|
|
48597
|
+
hasMore = Boolean(has_more);
|
|
48598
|
+
pageToken = page_token || next_page_token;
|
|
48599
|
+
}
|
|
48600
|
+
catch (e) {
|
|
48601
|
+
yield yield __await(null);
|
|
48602
|
+
break;
|
|
48603
|
+
}
|
|
48604
|
+
}
|
|
48605
|
+
});
|
|
48606
|
+
},
|
|
48607
|
+
};
|
|
48608
|
+
return Iterable;
|
|
48609
|
+
}),
|
|
48610
|
+
/**
|
|
48611
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
48612
|
+
*
|
|
48613
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
48614
|
+
*/
|
|
48615
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48616
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48617
|
+
return this.httpInstance
|
|
48618
|
+
.request({
|
|
48619
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
48620
|
+
method: "POST",
|
|
48621
|
+
data,
|
|
48622
|
+
params,
|
|
48623
|
+
headers,
|
|
48624
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48625
|
+
})
|
|
48626
|
+
.catch((e) => {
|
|
48627
|
+
this.logger.error(formatErrors(e));
|
|
48628
|
+
throw e;
|
|
48629
|
+
});
|
|
48630
|
+
}),
|
|
48631
|
+
/**
|
|
48632
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
48633
|
+
*
|
|
48634
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
48635
|
+
*
|
|
48636
|
+
* 创建外部背调
|
|
48637
|
+
*
|
|
48638
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
48639
|
+
*/
|
|
48640
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48641
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48642
|
+
return this.httpInstance
|
|
48643
|
+
.request({
|
|
48644
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
48645
|
+
method: "POST",
|
|
48646
|
+
data,
|
|
48647
|
+
params,
|
|
48648
|
+
headers,
|
|
48649
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48650
|
+
})
|
|
48651
|
+
.catch((e) => {
|
|
48652
|
+
this.logger.error(formatErrors(e));
|
|
48653
|
+
throw e;
|
|
48654
|
+
});
|
|
48655
|
+
}),
|
|
48656
|
+
/**
|
|
48657
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
48658
|
+
*
|
|
48659
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
48660
|
+
*/
|
|
48661
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48662
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48663
|
+
return this.httpInstance
|
|
48664
|
+
.request({
|
|
48665
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
48666
|
+
method: "DELETE",
|
|
48667
|
+
data,
|
|
48668
|
+
params,
|
|
48669
|
+
headers,
|
|
48670
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48671
|
+
})
|
|
48672
|
+
.catch((e) => {
|
|
48673
|
+
this.logger.error(formatErrors(e));
|
|
48674
|
+
throw e;
|
|
48675
|
+
});
|
|
48676
|
+
}),
|
|
48677
|
+
/**
|
|
48678
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
48679
|
+
*
|
|
48680
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
48681
|
+
*/
|
|
48682
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48683
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48684
|
+
return this.httpInstance
|
|
48685
|
+
.request({
|
|
48686
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
48687
|
+
method: "PUT",
|
|
48688
|
+
data,
|
|
48689
|
+
params,
|
|
48690
|
+
headers,
|
|
48691
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48692
|
+
})
|
|
48693
|
+
.catch((e) => {
|
|
48694
|
+
this.logger.error(formatErrors(e));
|
|
48695
|
+
throw e;
|
|
48696
|
+
});
|
|
48697
|
+
}),
|
|
48698
|
+
},
|
|
48699
|
+
/**
|
|
48700
|
+
* 导入外部系统信息(灰度租户可见)
|
|
48701
|
+
*/
|
|
48702
|
+
externalInterview: {
|
|
48703
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48704
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48705
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48706
|
+
const res = yield this.httpInstance
|
|
48707
|
+
.request({
|
|
48708
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
48709
|
+
method: "POST",
|
|
48710
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
48711
|
+
params: pickBy(innerPayload.params, identity),
|
|
48712
|
+
data,
|
|
48713
|
+
paramsSerializer: (params) => stringify(params, {
|
|
48714
|
+
arrayFormat: "repeat",
|
|
48715
|
+
}),
|
|
48716
|
+
})
|
|
48717
|
+
.catch((e) => {
|
|
48718
|
+
this.logger.error(formatErrors(e));
|
|
48719
|
+
});
|
|
48720
|
+
return res;
|
|
48721
|
+
});
|
|
48722
|
+
const Iterable = {
|
|
48723
|
+
[Symbol.asyncIterator]() {
|
|
48724
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48725
|
+
let hasMore = true;
|
|
48726
|
+
let pageToken;
|
|
48727
|
+
while (hasMore) {
|
|
48728
|
+
try {
|
|
48729
|
+
const res = yield __await(sendRequest({
|
|
48730
|
+
headers,
|
|
48731
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48732
|
+
data,
|
|
48733
|
+
}));
|
|
48734
|
+
const _b = get(res, "data") || {}, {
|
|
48735
|
+
// @ts-ignore
|
|
48736
|
+
has_more,
|
|
48737
|
+
// @ts-ignore
|
|
48738
|
+
page_token,
|
|
48739
|
+
// @ts-ignore
|
|
48740
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48741
|
+
yield yield __await(rest);
|
|
48742
|
+
hasMore = Boolean(has_more);
|
|
48743
|
+
pageToken = page_token || next_page_token;
|
|
48744
|
+
}
|
|
48745
|
+
catch (e) {
|
|
48746
|
+
yield yield __await(null);
|
|
48747
|
+
break;
|
|
48748
|
+
}
|
|
48749
|
+
}
|
|
48750
|
+
});
|
|
48751
|
+
},
|
|
48752
|
+
};
|
|
48753
|
+
return Iterable;
|
|
48754
|
+
}),
|
|
48755
|
+
/**
|
|
48756
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
47147
48757
|
*
|
|
47148
|
-
*
|
|
48758
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
47149
48759
|
*/
|
|
47150
|
-
|
|
48760
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47151
48761
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47152
48762
|
return this.httpInstance
|
|
47153
48763
|
.request({
|
|
47154
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47155
|
-
method: "
|
|
48764
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
48765
|
+
method: "POST",
|
|
47156
48766
|
data,
|
|
47157
48767
|
params,
|
|
47158
48768
|
headers,
|
|
@@ -47164,18 +48774,20 @@ class Client$u extends Client$v {
|
|
|
47164
48774
|
});
|
|
47165
48775
|
}),
|
|
47166
48776
|
/**
|
|
47167
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
48777
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
47168
48778
|
*
|
|
47169
|
-
* {@link https://open.feishu.cn/
|
|
48779
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
47170
48780
|
*
|
|
47171
|
-
*
|
|
48781
|
+
* 创建外部面试
|
|
48782
|
+
*
|
|
48783
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
47172
48784
|
*/
|
|
47173
|
-
|
|
48785
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47174
48786
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47175
48787
|
return this.httpInstance
|
|
47176
48788
|
.request({
|
|
47177
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47178
|
-
method: "
|
|
48789
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
48790
|
+
method: "POST",
|
|
47179
48791
|
data,
|
|
47180
48792
|
params,
|
|
47181
48793
|
headers,
|
|
@@ -47186,26 +48798,17 @@ class Client$u extends Client$v {
|
|
|
47186
48798
|
throw e;
|
|
47187
48799
|
});
|
|
47188
48800
|
}),
|
|
47189
|
-
},
|
|
47190
|
-
/**
|
|
47191
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47192
|
-
*/
|
|
47193
|
-
externalBackgroundCheck: {
|
|
47194
48801
|
/**
|
|
47195
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
48802
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
47196
48803
|
*
|
|
47197
|
-
* {@link https://open.feishu.cn/
|
|
47198
|
-
*
|
|
47199
|
-
* 创建外部背调
|
|
47200
|
-
*
|
|
47201
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
48804
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
47202
48805
|
*/
|
|
47203
|
-
|
|
48806
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47204
48807
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47205
48808
|
return this.httpInstance
|
|
47206
48809
|
.request({
|
|
47207
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47208
|
-
method: "
|
|
48810
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48811
|
+
method: "DELETE",
|
|
47209
48812
|
data,
|
|
47210
48813
|
params,
|
|
47211
48814
|
headers,
|
|
@@ -47216,26 +48819,17 @@ class Client$u extends Client$v {
|
|
|
47216
48819
|
throw e;
|
|
47217
48820
|
});
|
|
47218
48821
|
}),
|
|
47219
|
-
},
|
|
47220
|
-
/**
|
|
47221
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47222
|
-
*/
|
|
47223
|
-
externalInterview: {
|
|
47224
48822
|
/**
|
|
47225
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
48823
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
47226
48824
|
*
|
|
47227
|
-
* {@link https://open.feishu.cn/
|
|
47228
|
-
*
|
|
47229
|
-
* 创建外部面试
|
|
47230
|
-
*
|
|
47231
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
48825
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
47232
48826
|
*/
|
|
47233
|
-
|
|
48827
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47234
48828
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47235
48829
|
return this.httpInstance
|
|
47236
48830
|
.request({
|
|
47237
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
47238
|
-
method: "
|
|
48831
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48832
|
+
method: "PUT",
|
|
47239
48833
|
data,
|
|
47240
48834
|
params,
|
|
47241
48835
|
headers,
|
|
@@ -47298,6 +48892,147 @@ class Client$u extends Client$v {
|
|
|
47298
48892
|
});
|
|
47299
48893
|
}),
|
|
47300
48894
|
},
|
|
48895
|
+
/**
|
|
48896
|
+
* external_offer
|
|
48897
|
+
*/
|
|
48898
|
+
externalOffer: {
|
|
48899
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48900
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48901
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
48902
|
+
const res = yield this.httpInstance
|
|
48903
|
+
.request({
|
|
48904
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
48905
|
+
method: "POST",
|
|
48906
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
48907
|
+
params: pickBy(innerPayload.params, identity),
|
|
48908
|
+
data,
|
|
48909
|
+
paramsSerializer: (params) => stringify(params, {
|
|
48910
|
+
arrayFormat: "repeat",
|
|
48911
|
+
}),
|
|
48912
|
+
})
|
|
48913
|
+
.catch((e) => {
|
|
48914
|
+
this.logger.error(formatErrors(e));
|
|
48915
|
+
});
|
|
48916
|
+
return res;
|
|
48917
|
+
});
|
|
48918
|
+
const Iterable = {
|
|
48919
|
+
[Symbol.asyncIterator]() {
|
|
48920
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
48921
|
+
let hasMore = true;
|
|
48922
|
+
let pageToken;
|
|
48923
|
+
while (hasMore) {
|
|
48924
|
+
try {
|
|
48925
|
+
const res = yield __await(sendRequest({
|
|
48926
|
+
headers,
|
|
48927
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
48928
|
+
data,
|
|
48929
|
+
}));
|
|
48930
|
+
const _b = get(res, "data") || {}, {
|
|
48931
|
+
// @ts-ignore
|
|
48932
|
+
has_more,
|
|
48933
|
+
// @ts-ignore
|
|
48934
|
+
page_token,
|
|
48935
|
+
// @ts-ignore
|
|
48936
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
48937
|
+
yield yield __await(rest);
|
|
48938
|
+
hasMore = Boolean(has_more);
|
|
48939
|
+
pageToken = page_token || next_page_token;
|
|
48940
|
+
}
|
|
48941
|
+
catch (e) {
|
|
48942
|
+
yield yield __await(null);
|
|
48943
|
+
break;
|
|
48944
|
+
}
|
|
48945
|
+
}
|
|
48946
|
+
});
|
|
48947
|
+
},
|
|
48948
|
+
};
|
|
48949
|
+
return Iterable;
|
|
48950
|
+
}),
|
|
48951
|
+
/**
|
|
48952
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
48953
|
+
*
|
|
48954
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
48955
|
+
*/
|
|
48956
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48957
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48958
|
+
return this.httpInstance
|
|
48959
|
+
.request({
|
|
48960
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
48961
|
+
method: "POST",
|
|
48962
|
+
data,
|
|
48963
|
+
params,
|
|
48964
|
+
headers,
|
|
48965
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48966
|
+
})
|
|
48967
|
+
.catch((e) => {
|
|
48968
|
+
this.logger.error(formatErrors(e));
|
|
48969
|
+
throw e;
|
|
48970
|
+
});
|
|
48971
|
+
}),
|
|
48972
|
+
/**
|
|
48973
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
48974
|
+
*
|
|
48975
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
48976
|
+
*/
|
|
48977
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48978
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48979
|
+
return this.httpInstance
|
|
48980
|
+
.request({
|
|
48981
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
48982
|
+
method: "POST",
|
|
48983
|
+
data,
|
|
48984
|
+
params,
|
|
48985
|
+
headers,
|
|
48986
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48987
|
+
})
|
|
48988
|
+
.catch((e) => {
|
|
48989
|
+
this.logger.error(formatErrors(e));
|
|
48990
|
+
throw e;
|
|
48991
|
+
});
|
|
48992
|
+
}),
|
|
48993
|
+
/**
|
|
48994
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
48995
|
+
*
|
|
48996
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
48997
|
+
*/
|
|
48998
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48999
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49000
|
+
return this.httpInstance
|
|
49001
|
+
.request({
|
|
49002
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
49003
|
+
method: "DELETE",
|
|
49004
|
+
data,
|
|
49005
|
+
params,
|
|
49006
|
+
headers,
|
|
49007
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49008
|
+
})
|
|
49009
|
+
.catch((e) => {
|
|
49010
|
+
this.logger.error(formatErrors(e));
|
|
49011
|
+
throw e;
|
|
49012
|
+
});
|
|
49013
|
+
}),
|
|
49014
|
+
/**
|
|
49015
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
49016
|
+
*
|
|
49017
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
49018
|
+
*/
|
|
49019
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49020
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49021
|
+
return this.httpInstance
|
|
49022
|
+
.request({
|
|
49023
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
49024
|
+
method: "PUT",
|
|
49025
|
+
data,
|
|
49026
|
+
params,
|
|
49027
|
+
headers,
|
|
49028
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49029
|
+
})
|
|
49030
|
+
.catch((e) => {
|
|
49031
|
+
this.logger.error(formatErrors(e));
|
|
49032
|
+
throw e;
|
|
49033
|
+
});
|
|
49034
|
+
}),
|
|
49035
|
+
},
|
|
47301
49036
|
/**
|
|
47302
49037
|
* external_referral_reward
|
|
47303
49038
|
*/
|
|
@@ -48029,6 +49764,27 @@ class Client$u extends Client$v {
|
|
|
48029
49764
|
throw e;
|
|
48030
49765
|
});
|
|
48031
49766
|
}),
|
|
49767
|
+
/**
|
|
49768
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
49769
|
+
*
|
|
49770
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
49771
|
+
*/
|
|
49772
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49773
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49774
|
+
return this.httpInstance
|
|
49775
|
+
.request({
|
|
49776
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
49777
|
+
method: "GET",
|
|
49778
|
+
data,
|
|
49779
|
+
params,
|
|
49780
|
+
headers,
|
|
49781
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49782
|
+
})
|
|
49783
|
+
.catch((e) => {
|
|
49784
|
+
this.logger.error(formatErrors(e));
|
|
49785
|
+
throw e;
|
|
49786
|
+
});
|
|
49787
|
+
}),
|
|
48032
49788
|
/**
|
|
48033
49789
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
48034
49790
|
*
|
|
@@ -49233,6 +50989,48 @@ class Client$u extends Client$v {
|
|
|
49233
50989
|
throw e;
|
|
49234
50990
|
});
|
|
49235
50991
|
}),
|
|
50992
|
+
/**
|
|
50993
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
50994
|
+
*
|
|
50995
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
50996
|
+
*/
|
|
50997
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50998
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50999
|
+
return this.httpInstance
|
|
51000
|
+
.request({
|
|
51001
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
51002
|
+
method: "POST",
|
|
51003
|
+
data,
|
|
51004
|
+
params,
|
|
51005
|
+
headers,
|
|
51006
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51007
|
+
})
|
|
51008
|
+
.catch((e) => {
|
|
51009
|
+
this.logger.error(formatErrors(e));
|
|
51010
|
+
throw e;
|
|
51011
|
+
});
|
|
51012
|
+
}),
|
|
51013
|
+
/**
|
|
51014
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
51015
|
+
*
|
|
51016
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
51017
|
+
*/
|
|
51018
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51019
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51020
|
+
return this.httpInstance
|
|
51021
|
+
.request({
|
|
51022
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
51023
|
+
method: "GET",
|
|
51024
|
+
data,
|
|
51025
|
+
params,
|
|
51026
|
+
headers,
|
|
51027
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51028
|
+
})
|
|
51029
|
+
.catch((e) => {
|
|
51030
|
+
this.logger.error(formatErrors(e));
|
|
51031
|
+
throw e;
|
|
51032
|
+
});
|
|
51033
|
+
}),
|
|
49236
51034
|
/**
|
|
49237
51035
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
49238
51036
|
*
|
|
@@ -49847,6 +51645,27 @@ class Client$u extends Client$v {
|
|
|
49847
51645
|
throw e;
|
|
49848
51646
|
});
|
|
49849
51647
|
}),
|
|
51648
|
+
/**
|
|
51649
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
51650
|
+
*
|
|
51651
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
51652
|
+
*/
|
|
51653
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51654
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51655
|
+
return this.httpInstance
|
|
51656
|
+
.request({
|
|
51657
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
51658
|
+
method: "POST",
|
|
51659
|
+
data,
|
|
51660
|
+
params,
|
|
51661
|
+
headers,
|
|
51662
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51663
|
+
})
|
|
51664
|
+
.catch((e) => {
|
|
51665
|
+
this.logger.error(formatErrors(e));
|
|
51666
|
+
throw e;
|
|
51667
|
+
});
|
|
51668
|
+
}),
|
|
49850
51669
|
/**
|
|
49851
51670
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49852
51671
|
*
|
|
@@ -49924,6 +51743,32 @@ class Client$u extends Client$v {
|
|
|
49924
51743
|
});
|
|
49925
51744
|
}),
|
|
49926
51745
|
},
|
|
51746
|
+
/**
|
|
51747
|
+
* talent_blocklist
|
|
51748
|
+
*/
|
|
51749
|
+
talentBlocklist: {
|
|
51750
|
+
/**
|
|
51751
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
51752
|
+
*
|
|
51753
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
51754
|
+
*/
|
|
51755
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51756
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51757
|
+
return this.httpInstance
|
|
51758
|
+
.request({
|
|
51759
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
51760
|
+
method: "POST",
|
|
51761
|
+
data,
|
|
51762
|
+
params,
|
|
51763
|
+
headers,
|
|
51764
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51765
|
+
})
|
|
51766
|
+
.catch((e) => {
|
|
51767
|
+
this.logger.error(formatErrors(e));
|
|
51768
|
+
throw e;
|
|
51769
|
+
});
|
|
51770
|
+
}),
|
|
51771
|
+
},
|
|
49927
51772
|
/**
|
|
49928
51773
|
* talent_folder
|
|
49929
51774
|
*/
|
|
@@ -50070,6 +51915,27 @@ class Client$u extends Client$v {
|
|
|
50070
51915
|
* talent_pool
|
|
50071
51916
|
*/
|
|
50072
51917
|
talentPool: {
|
|
51918
|
+
/**
|
|
51919
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
51920
|
+
*
|
|
51921
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
51922
|
+
*/
|
|
51923
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51924
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51925
|
+
return this.httpInstance
|
|
51926
|
+
.request({
|
|
51927
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
51928
|
+
method: "POST",
|
|
51929
|
+
data,
|
|
51930
|
+
params,
|
|
51931
|
+
headers,
|
|
51932
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51933
|
+
})
|
|
51934
|
+
.catch((e) => {
|
|
51935
|
+
this.logger.error(formatErrors(e));
|
|
51936
|
+
throw e;
|
|
51937
|
+
});
|
|
51938
|
+
}),
|
|
50073
51939
|
/**
|
|
50074
51940
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
50075
51941
|
*
|
|
@@ -52607,7 +54473,7 @@ class Client$s extends Client$t {
|
|
|
52607
54473
|
}),
|
|
52608
54474
|
},
|
|
52609
54475
|
/**
|
|
52610
|
-
*
|
|
54476
|
+
* 消息 - 消息卡片
|
|
52611
54477
|
*/
|
|
52612
54478
|
message: {
|
|
52613
54479
|
/**
|
|
@@ -54810,7 +56676,7 @@ class Client$s extends Client$t {
|
|
|
54810
56676
|
}),
|
|
54811
56677
|
},
|
|
54812
56678
|
/**
|
|
54813
|
-
*
|
|
56679
|
+
* 消息 - 消息卡片
|
|
54814
56680
|
*/
|
|
54815
56681
|
message: {
|
|
54816
56682
|
/**
|
|
@@ -62741,7 +64607,7 @@ class Client$c extends Client$d {
|
|
|
62741
64607
|
}),
|
|
62742
64608
|
},
|
|
62743
64609
|
/**
|
|
62744
|
-
*
|
|
64610
|
+
* 行列
|
|
62745
64611
|
*/
|
|
62746
64612
|
spreadsheetSheet: {
|
|
62747
64613
|
/**
|
|
@@ -63471,7 +65337,7 @@ class Client$c extends Client$d {
|
|
|
63471
65337
|
}),
|
|
63472
65338
|
},
|
|
63473
65339
|
/**
|
|
63474
|
-
*
|
|
65340
|
+
* 行列
|
|
63475
65341
|
*/
|
|
63476
65342
|
spreadsheetSheet: {
|
|
63477
65343
|
/**
|