@larksuiteoapi/node-sdk 1.40.1 → 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 +2386 -532
- package/lib/index.js +2386 -532
- package/package.json +1 -1
- package/types/index.d.ts +5222 -97
package/es/index.js
CHANGED
|
@@ -256,7 +256,7 @@ const formatErrors = (e) => {
|
|
|
256
256
|
};
|
|
257
257
|
|
|
258
258
|
// auto gen
|
|
259
|
-
class Client
|
|
259
|
+
class Client$10 {
|
|
260
260
|
constructor() {
|
|
261
261
|
/**
|
|
262
262
|
* 智能门禁
|
|
@@ -1313,11 +1313,11 @@ class Client$$ {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
// auto gen
|
|
1316
|
-
class Client
|
|
1316
|
+
class Client$$ extends Client$10 {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
super(...arguments);
|
|
1319
1319
|
/**
|
|
1320
|
-
*
|
|
1320
|
+
* 管理后台-企业勋章
|
|
1321
1321
|
*/
|
|
1322
1322
|
this.admin = {
|
|
1323
1323
|
/**
|
|
@@ -2409,7 +2409,7 @@ class Client$_ extends Client$$ {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
|
|
2411
2411
|
// auto gen
|
|
2412
|
-
class Client$
|
|
2412
|
+
class Client$_ extends Client$$ {
|
|
2413
2413
|
constructor() {
|
|
2414
2414
|
super(...arguments);
|
|
2415
2415
|
/**
|
|
@@ -3109,7 +3109,7 @@ class Client$Z extends Client$_ {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
|
|
3111
3111
|
// auto gen
|
|
3112
|
-
class Client$
|
|
3112
|
+
class Client$Z extends Client$_ {
|
|
3113
3113
|
constructor() {
|
|
3114
3114
|
super(...arguments);
|
|
3115
3115
|
/**
|
|
@@ -4683,7 +4683,7 @@ class Client$Y extends Client$Z {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
|
|
4685
4685
|
// auto gen
|
|
4686
|
-
class Client$
|
|
4686
|
+
class Client$Y extends Client$Z {
|
|
4687
4687
|
constructor() {
|
|
4688
4688
|
super(...arguments);
|
|
4689
4689
|
/**
|
|
@@ -5488,7 +5488,7 @@ class Client$X extends Client$Y {
|
|
|
5488
5488
|
}),
|
|
5489
5489
|
},
|
|
5490
5490
|
/**
|
|
5491
|
-
*
|
|
5491
|
+
* 审批查询
|
|
5492
5492
|
*/
|
|
5493
5493
|
task: {
|
|
5494
5494
|
/**
|
|
@@ -6499,7 +6499,7 @@ class Client$X extends Client$Y {
|
|
|
6499
6499
|
}),
|
|
6500
6500
|
},
|
|
6501
6501
|
/**
|
|
6502
|
-
*
|
|
6502
|
+
* 审批查询
|
|
6503
6503
|
*/
|
|
6504
6504
|
task: {
|
|
6505
6505
|
/**
|
|
@@ -6711,7 +6711,7 @@ class Client$X extends Client$Y {
|
|
|
6711
6711
|
}
|
|
6712
6712
|
|
|
6713
6713
|
// auto gen
|
|
6714
|
-
class Client$
|
|
6714
|
+
class Client$X extends Client$Y {
|
|
6715
6715
|
constructor() {
|
|
6716
6716
|
super(...arguments);
|
|
6717
6717
|
/**
|
|
@@ -7128,6 +7128,27 @@ class Client$W extends Client$X {
|
|
|
7128
7128
|
throw e;
|
|
7129
7129
|
});
|
|
7130
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
|
+
}),
|
|
7131
7152
|
/**
|
|
7132
7153
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
7133
7154
|
*
|
|
@@ -7478,6 +7499,27 @@ class Client$W extends Client$X {
|
|
|
7478
7499
|
throw e;
|
|
7479
7500
|
});
|
|
7480
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
|
+
}),
|
|
7481
7523
|
/**
|
|
7482
7524
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
7483
7525
|
*
|
|
@@ -8285,6 +8327,27 @@ class Client$W extends Client$X {
|
|
|
8285
8327
|
throw e;
|
|
8286
8328
|
});
|
|
8287
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
|
+
}),
|
|
8288
8351
|
/**
|
|
8289
8352
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
8290
8353
|
*
|
|
@@ -8637,6 +8700,27 @@ class Client$W extends Client$X {
|
|
|
8637
8700
|
throw e;
|
|
8638
8701
|
});
|
|
8639
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
|
+
}),
|
|
8640
8724
|
/**
|
|
8641
8725
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
8642
8726
|
*
|
|
@@ -9035,7 +9119,7 @@ class Client$W extends Client$X {
|
|
|
9035
9119
|
}
|
|
9036
9120
|
|
|
9037
9121
|
// auto gen
|
|
9038
|
-
class Client$
|
|
9122
|
+
class Client$W extends Client$X {
|
|
9039
9123
|
constructor() {
|
|
9040
9124
|
super(...arguments);
|
|
9041
9125
|
/**
|
|
@@ -9289,7 +9373,7 @@ class Client$V extends Client$W {
|
|
|
9289
9373
|
}
|
|
9290
9374
|
|
|
9291
9375
|
// auto gen
|
|
9292
|
-
class Client$
|
|
9376
|
+
class Client$V extends Client$W {
|
|
9293
9377
|
constructor() {
|
|
9294
9378
|
super(...arguments);
|
|
9295
9379
|
/**
|
|
@@ -9563,7 +9647,7 @@ class Client$U extends Client$V {
|
|
|
9563
9647
|
}
|
|
9564
9648
|
|
|
9565
9649
|
// auto gen
|
|
9566
|
-
class Client$
|
|
9650
|
+
class Client$U extends Client$V {
|
|
9567
9651
|
constructor() {
|
|
9568
9652
|
super(...arguments);
|
|
9569
9653
|
/**
|
|
@@ -9574,7 +9658,7 @@ class Client$T extends Client$U {
|
|
|
9574
9658
|
}
|
|
9575
9659
|
|
|
9576
9660
|
// auto gen
|
|
9577
|
-
class Client$
|
|
9661
|
+
class Client$T extends Client$U {
|
|
9578
9662
|
constructor() {
|
|
9579
9663
|
super(...arguments);
|
|
9580
9664
|
/**
|
|
@@ -10652,7 +10736,7 @@ class Client$S extends Client$T {
|
|
|
10652
10736
|
}
|
|
10653
10737
|
|
|
10654
10738
|
// auto gen
|
|
10655
|
-
class Client$
|
|
10739
|
+
class Client$S extends Client$T {
|
|
10656
10740
|
constructor() {
|
|
10657
10741
|
super(...arguments);
|
|
10658
10742
|
/**
|
|
@@ -12301,6 +12385,103 @@ class Client$R extends Client$S {
|
|
|
12301
12385
|
});
|
|
12302
12386
|
}),
|
|
12303
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
|
+
},
|
|
12304
12485
|
v1: {
|
|
12305
12486
|
/**
|
|
12306
12487
|
* 多维表格
|
|
@@ -13962,13 +14143,112 @@ class Client$R extends Client$S {
|
|
|
13962
14143
|
});
|
|
13963
14144
|
}),
|
|
13964
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
|
+
},
|
|
13965
14245
|
},
|
|
13966
14246
|
};
|
|
13967
14247
|
}
|
|
13968
14248
|
}
|
|
13969
14249
|
|
|
13970
14250
|
// auto gen
|
|
13971
|
-
class Client$
|
|
14251
|
+
class Client$R extends Client$S {
|
|
13972
14252
|
constructor() {
|
|
13973
14253
|
super(...arguments);
|
|
13974
14254
|
/**
|
|
@@ -14152,7 +14432,7 @@ class Client$Q extends Client$R {
|
|
|
14152
14432
|
}
|
|
14153
14433
|
|
|
14154
14434
|
// auto gen
|
|
14155
|
-
class Client$
|
|
14435
|
+
class Client$Q extends Client$R {
|
|
14156
14436
|
constructor() {
|
|
14157
14437
|
super(...arguments);
|
|
14158
14438
|
/**
|
|
@@ -14249,7 +14529,7 @@ class Client$P extends Client$Q {
|
|
|
14249
14529
|
}
|
|
14250
14530
|
|
|
14251
14531
|
// auto gen
|
|
14252
|
-
class Client$
|
|
14532
|
+
class Client$P extends Client$Q {
|
|
14253
14533
|
constructor() {
|
|
14254
14534
|
super(...arguments);
|
|
14255
14535
|
/**
|
|
@@ -16989,7 +17269,7 @@ class Client$O extends Client$P {
|
|
|
16989
17269
|
}
|
|
16990
17270
|
|
|
16991
17271
|
// auto gen
|
|
16992
|
-
class Client$
|
|
17272
|
+
class Client$O extends Client$P {
|
|
16993
17273
|
constructor() {
|
|
16994
17274
|
super(...arguments);
|
|
16995
17275
|
/**
|
|
@@ -17000,7 +17280,7 @@ class Client$N extends Client$O {
|
|
|
17000
17280
|
}
|
|
17001
17281
|
|
|
17002
17282
|
// auto gen
|
|
17003
|
-
class Client$
|
|
17283
|
+
class Client$N extends Client$O {
|
|
17004
17284
|
constructor() {
|
|
17005
17285
|
super(...arguments);
|
|
17006
17286
|
/**
|
|
@@ -17430,7 +17710,7 @@ class Client$M extends Client$N {
|
|
|
17430
17710
|
}
|
|
17431
17711
|
|
|
17432
17712
|
// auto gen
|
|
17433
|
-
class Client$
|
|
17713
|
+
class Client$M extends Client$N {
|
|
17434
17714
|
constructor() {
|
|
17435
17715
|
super(...arguments);
|
|
17436
17716
|
/**
|
|
@@ -22458,7 +22738,7 @@ class Client$L extends Client$M {
|
|
|
22458
22738
|
}
|
|
22459
22739
|
|
|
22460
22740
|
// auto gen
|
|
22461
|
-
class Client$
|
|
22741
|
+
class Client$L extends Client$M {
|
|
22462
22742
|
constructor() {
|
|
22463
22743
|
super(...arguments);
|
|
22464
22744
|
/**
|
|
@@ -22469,7 +22749,7 @@ class Client$K extends Client$L {
|
|
|
22469
22749
|
}
|
|
22470
22750
|
|
|
22471
22751
|
// auto gen
|
|
22472
|
-
class Client$
|
|
22752
|
+
class Client$K extends Client$L {
|
|
22473
22753
|
constructor() {
|
|
22474
22754
|
super(...arguments);
|
|
22475
22755
|
/**
|
|
@@ -22480,7 +22760,7 @@ class Client$J extends Client$K {
|
|
|
22480
22760
|
}
|
|
22481
22761
|
|
|
22482
22762
|
// auto gen
|
|
22483
|
-
class Client$
|
|
22763
|
+
class Client$J extends Client$K {
|
|
22484
22764
|
constructor() {
|
|
22485
22765
|
super(...arguments);
|
|
22486
22766
|
/**
|
|
@@ -28141,71 +28421,21 @@ class Client$I extends Client$J {
|
|
|
28141
28421
|
},
|
|
28142
28422
|
v2: {
|
|
28143
28423
|
/**
|
|
28144
|
-
*
|
|
28424
|
+
* approval_groups
|
|
28145
28425
|
*/
|
|
28146
|
-
|
|
28147
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28148
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28149
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28150
|
-
const res = yield this.httpInstance
|
|
28151
|
-
.request({
|
|
28152
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28153
|
-
method: "GET",
|
|
28154
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28155
|
-
params: pickBy(innerPayload.params, identity),
|
|
28156
|
-
data,
|
|
28157
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28158
|
-
arrayFormat: "repeat",
|
|
28159
|
-
}),
|
|
28160
|
-
})
|
|
28161
|
-
.catch((e) => {
|
|
28162
|
-
this.logger.error(formatErrors(e));
|
|
28163
|
-
});
|
|
28164
|
-
return res;
|
|
28165
|
-
});
|
|
28166
|
-
const Iterable = {
|
|
28167
|
-
[Symbol.asyncIterator]() {
|
|
28168
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28169
|
-
let hasMore = true;
|
|
28170
|
-
let pageToken;
|
|
28171
|
-
while (hasMore) {
|
|
28172
|
-
try {
|
|
28173
|
-
const res = yield __await(sendRequest({
|
|
28174
|
-
headers,
|
|
28175
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28176
|
-
data,
|
|
28177
|
-
}));
|
|
28178
|
-
const _b = get(res, "data") || {}, {
|
|
28179
|
-
// @ts-ignore
|
|
28180
|
-
has_more,
|
|
28181
|
-
// @ts-ignore
|
|
28182
|
-
page_token,
|
|
28183
|
-
// @ts-ignore
|
|
28184
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28185
|
-
yield yield __await(rest);
|
|
28186
|
-
hasMore = Boolean(has_more);
|
|
28187
|
-
pageToken = page_token || next_page_token;
|
|
28188
|
-
}
|
|
28189
|
-
catch (e) {
|
|
28190
|
-
yield yield __await(null);
|
|
28191
|
-
break;
|
|
28192
|
-
}
|
|
28193
|
-
}
|
|
28194
|
-
});
|
|
28195
|
-
},
|
|
28196
|
-
};
|
|
28197
|
-
return Iterable;
|
|
28198
|
-
}),
|
|
28426
|
+
approvalGroups: {
|
|
28199
28427
|
/**
|
|
28200
|
-
* {@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 }
|
|
28201
28429
|
*
|
|
28202
|
-
* {@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
|
+
* 获取审批组信息
|
|
28203
28433
|
*/
|
|
28204
|
-
|
|
28434
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28205
28435
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28206
28436
|
return this.httpInstance
|
|
28207
28437
|
.request({
|
|
28208
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28438
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
|
|
28209
28439
|
method: "GET",
|
|
28210
28440
|
data,
|
|
28211
28441
|
params,
|
|
@@ -28217,73 +28447,18 @@ class Client$I extends Client$J {
|
|
|
28217
28447
|
throw e;
|
|
28218
28448
|
});
|
|
28219
28449
|
}),
|
|
28220
|
-
},
|
|
28221
|
-
/**
|
|
28222
|
-
* basic_info.bank
|
|
28223
|
-
*/
|
|
28224
|
-
basicInfoBank: {
|
|
28225
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28226
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28227
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28228
|
-
const res = yield this.httpInstance
|
|
28229
|
-
.request({
|
|
28230
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28231
|
-
method: "POST",
|
|
28232
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28233
|
-
params: pickBy(innerPayload.params, identity),
|
|
28234
|
-
data,
|
|
28235
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28236
|
-
arrayFormat: "repeat",
|
|
28237
|
-
}),
|
|
28238
|
-
})
|
|
28239
|
-
.catch((e) => {
|
|
28240
|
-
this.logger.error(formatErrors(e));
|
|
28241
|
-
});
|
|
28242
|
-
return res;
|
|
28243
|
-
});
|
|
28244
|
-
const Iterable = {
|
|
28245
|
-
[Symbol.asyncIterator]() {
|
|
28246
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28247
|
-
let hasMore = true;
|
|
28248
|
-
let pageToken;
|
|
28249
|
-
while (hasMore) {
|
|
28250
|
-
try {
|
|
28251
|
-
const res = yield __await(sendRequest({
|
|
28252
|
-
headers,
|
|
28253
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28254
|
-
data,
|
|
28255
|
-
}));
|
|
28256
|
-
const _b = get(res, "data") || {}, {
|
|
28257
|
-
// @ts-ignore
|
|
28258
|
-
has_more,
|
|
28259
|
-
// @ts-ignore
|
|
28260
|
-
page_token,
|
|
28261
|
-
// @ts-ignore
|
|
28262
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28263
|
-
yield yield __await(rest);
|
|
28264
|
-
hasMore = Boolean(has_more);
|
|
28265
|
-
pageToken = page_token || next_page_token;
|
|
28266
|
-
}
|
|
28267
|
-
catch (e) {
|
|
28268
|
-
yield yield __await(null);
|
|
28269
|
-
break;
|
|
28270
|
-
}
|
|
28271
|
-
}
|
|
28272
|
-
});
|
|
28273
|
-
},
|
|
28274
|
-
};
|
|
28275
|
-
return Iterable;
|
|
28276
|
-
}),
|
|
28277
28450
|
/**
|
|
28278
|
-
* {@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 }
|
|
28279
28452
|
*
|
|
28280
|
-
* {@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
|
+
* 获取部门调整信息详情
|
|
28281
28456
|
*/
|
|
28282
|
-
|
|
28457
|
+
openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28283
28458
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28284
28459
|
return this.httpInstance
|
|
28285
28460
|
.request({
|
|
28286
|
-
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),
|
|
28287
28462
|
method: "POST",
|
|
28288
28463
|
data,
|
|
28289
28464
|
params,
|
|
@@ -28295,73 +28470,16 @@ class Client$I extends Client$J {
|
|
|
28295
28470
|
throw e;
|
|
28296
28471
|
});
|
|
28297
28472
|
}),
|
|
28298
|
-
},
|
|
28299
|
-
/**
|
|
28300
|
-
* basic_info.bank_branch
|
|
28301
|
-
*/
|
|
28302
|
-
basicInfoBankBranch: {
|
|
28303
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28304
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28305
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28306
|
-
const res = yield this.httpInstance
|
|
28307
|
-
.request({
|
|
28308
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`, path),
|
|
28309
|
-
method: "POST",
|
|
28310
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
28311
|
-
params: pickBy(innerPayload.params, identity),
|
|
28312
|
-
data,
|
|
28313
|
-
paramsSerializer: (params) => stringify(params, {
|
|
28314
|
-
arrayFormat: "repeat",
|
|
28315
|
-
}),
|
|
28316
|
-
})
|
|
28317
|
-
.catch((e) => {
|
|
28318
|
-
this.logger.error(formatErrors(e));
|
|
28319
|
-
});
|
|
28320
|
-
return res;
|
|
28321
|
-
});
|
|
28322
|
-
const Iterable = {
|
|
28323
|
-
[Symbol.asyncIterator]() {
|
|
28324
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
28325
|
-
let hasMore = true;
|
|
28326
|
-
let pageToken;
|
|
28327
|
-
while (hasMore) {
|
|
28328
|
-
try {
|
|
28329
|
-
const res = yield __await(sendRequest({
|
|
28330
|
-
headers,
|
|
28331
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28332
|
-
data,
|
|
28333
|
-
}));
|
|
28334
|
-
const _b = get(res, "data") || {}, {
|
|
28335
|
-
// @ts-ignore
|
|
28336
|
-
has_more,
|
|
28337
|
-
// @ts-ignore
|
|
28338
|
-
page_token,
|
|
28339
|
-
// @ts-ignore
|
|
28340
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28341
|
-
yield yield __await(rest);
|
|
28342
|
-
hasMore = Boolean(has_more);
|
|
28343
|
-
pageToken = page_token || next_page_token;
|
|
28344
|
-
}
|
|
28345
|
-
catch (e) {
|
|
28346
|
-
yield yield __await(null);
|
|
28347
|
-
break;
|
|
28348
|
-
}
|
|
28349
|
-
}
|
|
28350
|
-
});
|
|
28351
|
-
},
|
|
28352
|
-
};
|
|
28353
|
-
return Iterable;
|
|
28354
|
-
}),
|
|
28355
28473
|
/**
|
|
28356
|
-
* {@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 }
|
|
28357
28475
|
*
|
|
28358
|
-
* {@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 }
|
|
28359
28477
|
*/
|
|
28360
|
-
|
|
28478
|
+
openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28361
28479
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28362
28480
|
return this.httpInstance
|
|
28363
28481
|
.request({
|
|
28364
|
-
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),
|
|
28365
28483
|
method: "POST",
|
|
28366
28484
|
data,
|
|
28367
28485
|
params,
|
|
@@ -28375,16 +28493,16 @@ class Client$I extends Client$J {
|
|
|
28375
28493
|
}),
|
|
28376
28494
|
},
|
|
28377
28495
|
/**
|
|
28378
|
-
*
|
|
28496
|
+
* approver
|
|
28379
28497
|
*/
|
|
28380
|
-
|
|
28381
|
-
|
|
28498
|
+
approver: {
|
|
28499
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28382
28500
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28383
28501
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28384
28502
|
const res = yield this.httpInstance
|
|
28385
28503
|
.request({
|
|
28386
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28387
|
-
method: "
|
|
28504
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28505
|
+
method: "GET",
|
|
28388
28506
|
headers: pickBy(innerPayload.headers, identity),
|
|
28389
28507
|
params: pickBy(innerPayload.params, identity),
|
|
28390
28508
|
data,
|
|
@@ -28431,16 +28549,16 @@ class Client$I extends Client$J {
|
|
|
28431
28549
|
return Iterable;
|
|
28432
28550
|
}),
|
|
28433
28551
|
/**
|
|
28434
|
-
* {@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 }
|
|
28435
28553
|
*
|
|
28436
|
-
* {@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 }
|
|
28437
28555
|
*/
|
|
28438
|
-
|
|
28556
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28439
28557
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28440
28558
|
return this.httpInstance
|
|
28441
28559
|
.request({
|
|
28442
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/
|
|
28443
|
-
method: "
|
|
28560
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28561
|
+
method: "GET",
|
|
28444
28562
|
data,
|
|
28445
28563
|
params,
|
|
28446
28564
|
headers,
|
|
@@ -28453,15 +28571,15 @@ class Client$I extends Client$J {
|
|
|
28453
28571
|
}),
|
|
28454
28572
|
},
|
|
28455
28573
|
/**
|
|
28456
|
-
* basic_info.
|
|
28574
|
+
* basic_info.bank
|
|
28457
28575
|
*/
|
|
28458
|
-
|
|
28576
|
+
basicInfoBank: {
|
|
28459
28577
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28460
28578
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28461
28579
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28462
28580
|
const res = yield this.httpInstance
|
|
28463
28581
|
.request({
|
|
28464
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28582
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28465
28583
|
method: "POST",
|
|
28466
28584
|
headers: pickBy(innerPayload.headers, identity),
|
|
28467
28585
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28509,15 +28627,15 @@ class Client$I extends Client$J {
|
|
|
28509
28627
|
return Iterable;
|
|
28510
28628
|
}),
|
|
28511
28629
|
/**
|
|
28512
|
-
* {@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 }
|
|
28513
28631
|
*
|
|
28514
|
-
* {@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 }
|
|
28515
28633
|
*/
|
|
28516
28634
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28517
28635
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28518
28636
|
return this.httpInstance
|
|
28519
28637
|
.request({
|
|
28520
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28638
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`, path),
|
|
28521
28639
|
method: "POST",
|
|
28522
28640
|
data,
|
|
28523
28641
|
params,
|
|
@@ -28531,15 +28649,15 @@ class Client$I extends Client$J {
|
|
|
28531
28649
|
}),
|
|
28532
28650
|
},
|
|
28533
28651
|
/**
|
|
28534
|
-
* basic_info.
|
|
28652
|
+
* basic_info.bank_branch
|
|
28535
28653
|
*/
|
|
28536
|
-
|
|
28654
|
+
basicInfoBankBranch: {
|
|
28537
28655
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28538
28656
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28539
28657
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28540
28658
|
const res = yield this.httpInstance
|
|
28541
28659
|
.request({
|
|
28542
|
-
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),
|
|
28543
28661
|
method: "POST",
|
|
28544
28662
|
headers: pickBy(innerPayload.headers, identity),
|
|
28545
28663
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28587,15 +28705,15 @@ class Client$I extends Client$J {
|
|
|
28587
28705
|
return Iterable;
|
|
28588
28706
|
}),
|
|
28589
28707
|
/**
|
|
28590
|
-
* {@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 }
|
|
28591
28709
|
*
|
|
28592
|
-
* {@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 }
|
|
28593
28711
|
*/
|
|
28594
28712
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28595
28713
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28596
28714
|
return this.httpInstance
|
|
28597
28715
|
.request({
|
|
28598
|
-
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),
|
|
28599
28717
|
method: "POST",
|
|
28600
28718
|
data,
|
|
28601
28719
|
params,
|
|
@@ -28609,15 +28727,15 @@ class Client$I extends Client$J {
|
|
|
28609
28727
|
}),
|
|
28610
28728
|
},
|
|
28611
28729
|
/**
|
|
28612
|
-
* basic_info.
|
|
28730
|
+
* basic_info.city
|
|
28613
28731
|
*/
|
|
28614
|
-
|
|
28732
|
+
basicInfoCity: {
|
|
28615
28733
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28616
28734
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28617
28735
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28618
28736
|
const res = yield this.httpInstance
|
|
28619
28737
|
.request({
|
|
28620
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28738
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28621
28739
|
method: "POST",
|
|
28622
28740
|
headers: pickBy(innerPayload.headers, identity),
|
|
28623
28741
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -28665,15 +28783,15 @@ class Client$I extends Client$J {
|
|
|
28665
28783
|
return Iterable;
|
|
28666
28784
|
}),
|
|
28667
28785
|
/**
|
|
28668
|
-
* {@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 }
|
|
28669
28787
|
*
|
|
28670
|
-
* {@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 }
|
|
28671
28789
|
*/
|
|
28672
28790
|
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28673
28791
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28674
28792
|
return this.httpInstance
|
|
28675
28793
|
.request({
|
|
28676
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/
|
|
28794
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`, path),
|
|
28677
28795
|
method: "POST",
|
|
28678
28796
|
data,
|
|
28679
28797
|
params,
|
|
@@ -28687,15 +28805,249 @@ class Client$I extends Client$J {
|
|
|
28687
28805
|
}),
|
|
28688
28806
|
},
|
|
28689
28807
|
/**
|
|
28690
|
-
* basic_info.
|
|
28808
|
+
* basic_info.country_region
|
|
28691
28809
|
*/
|
|
28692
|
-
|
|
28810
|
+
basicInfoCountryRegion: {
|
|
28693
28811
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28694
28812
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28695
28813
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28696
28814
|
const res = yield this.httpInstance
|
|
28697
28815
|
.request({
|
|
28698
|
-
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),
|
|
28699
29051
|
method: "POST",
|
|
28700
29052
|
headers: pickBy(innerPayload.headers, identity),
|
|
28701
29053
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -30179,6 +30531,48 @@ class Client$I extends Client$J {
|
|
|
30179
30531
|
* job_change
|
|
30180
30532
|
*/
|
|
30181
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
|
+
}),
|
|
30182
30576
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30183
30577
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30184
30578
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30560,6 +30954,52 @@ class Client$I extends Client$J {
|
|
|
30560
30954
|
* offboarding
|
|
30561
30955
|
*/
|
|
30562
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
|
+
}),
|
|
30563
31003
|
/**
|
|
30564
31004
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
|
|
30565
31005
|
*
|
|
@@ -31138,6 +31578,32 @@ class Client$I extends Client$J {
|
|
|
31138
31578
|
});
|
|
31139
31579
|
}),
|
|
31140
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
|
+
},
|
|
31141
31607
|
/**
|
|
31142
31608
|
* process.form_variable_data
|
|
31143
31609
|
*/
|
|
@@ -31263,6 +31729,135 @@ class Client$I extends Client$J {
|
|
|
31263
31729
|
});
|
|
31264
31730
|
}),
|
|
31265
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
|
+
},
|
|
31266
31861
|
/**
|
|
31267
31862
|
* workforce_plan
|
|
31268
31863
|
*/
|
|
@@ -31367,13 +31962,64 @@ class Client$I extends Client$J {
|
|
|
31367
31962
|
});
|
|
31368
31963
|
}),
|
|
31369
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
|
+
},
|
|
31370
32016
|
},
|
|
31371
32017
|
};
|
|
31372
32018
|
}
|
|
31373
32019
|
}
|
|
31374
32020
|
|
|
31375
32021
|
// auto gen
|
|
31376
|
-
class Client$
|
|
32022
|
+
class Client$I extends Client$J {
|
|
31377
32023
|
constructor() {
|
|
31378
32024
|
super(...arguments);
|
|
31379
32025
|
/**
|
|
@@ -31383,6 +32029,48 @@ class Client$H extends Client$I {
|
|
|
31383
32029
|
}
|
|
31384
32030
|
}
|
|
31385
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
|
+
|
|
31386
32074
|
// auto gen
|
|
31387
32075
|
class Client$G extends Client$H {
|
|
31388
32076
|
constructor() {
|
|
@@ -32768,7 +33456,7 @@ class Client$E extends Client$F {
|
|
|
32768
33456
|
constructor() {
|
|
32769
33457
|
super(...arguments);
|
|
32770
33458
|
/**
|
|
32771
|
-
*
|
|
33459
|
+
* 云文档-文档
|
|
32772
33460
|
*/
|
|
32773
33461
|
this.drive = {
|
|
32774
33462
|
/**
|
|
@@ -34062,7 +34750,7 @@ class Client$E extends Client$F {
|
|
|
34062
34750
|
}),
|
|
34063
34751
|
},
|
|
34064
34752
|
/**
|
|
34065
|
-
*
|
|
34753
|
+
* 分片上传
|
|
34066
34754
|
*/
|
|
34067
34755
|
media: {
|
|
34068
34756
|
/**
|
|
@@ -35888,7 +36576,7 @@ class Client$E extends Client$F {
|
|
|
35888
36576
|
}),
|
|
35889
36577
|
},
|
|
35890
36578
|
/**
|
|
35891
|
-
*
|
|
36579
|
+
* 分片上传
|
|
35892
36580
|
*/
|
|
35893
36581
|
media: {
|
|
35894
36582
|
/**
|
|
@@ -40347,6 +41035,27 @@ class Client$u extends Client$v {
|
|
|
40347
41035
|
* 猎头(灰度租户可见)
|
|
40348
41036
|
*/
|
|
40349
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
|
+
}),
|
|
40350
41059
|
/**
|
|
40351
41060
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
40352
41061
|
*
|
|
@@ -40372,6 +41081,48 @@ class Client$u extends Client$v {
|
|
|
40372
41081
|
throw e;
|
|
40373
41082
|
});
|
|
40374
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
|
+
}),
|
|
40375
41126
|
/**
|
|
40376
41127
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
40377
41128
|
*
|
|
@@ -40445,7 +41196,7 @@ class Client$u extends Client$v {
|
|
|
40445
41196
|
}),
|
|
40446
41197
|
},
|
|
40447
41198
|
/**
|
|
40448
|
-
*
|
|
41199
|
+
* 投递
|
|
40449
41200
|
*/
|
|
40450
41201
|
application: {
|
|
40451
41202
|
/**
|
|
@@ -40498,6 +41249,27 @@ class Client$u extends Client$v {
|
|
|
40498
41249
|
throw e;
|
|
40499
41250
|
});
|
|
40500
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
|
+
}),
|
|
40501
41273
|
/**
|
|
40502
41274
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
40503
41275
|
*
|
|
@@ -41772,226 +42544,13 @@ class Client$u extends Client$v {
|
|
|
41772
42544
|
* 导入外部系统信息(灰度租户可见)
|
|
41773
42545
|
*/
|
|
41774
42546
|
externalBackgroundCheck: {
|
|
41775
|
-
|
|
41776
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
41777
|
-
*
|
|
41778
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
41779
|
-
*
|
|
41780
|
-
* 创建外部背调
|
|
41781
|
-
*
|
|
41782
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
41783
|
-
*/
|
|
41784
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41785
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41786
|
-
return this.httpInstance
|
|
41787
|
-
.request({
|
|
41788
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
41789
|
-
method: "POST",
|
|
41790
|
-
data,
|
|
41791
|
-
params,
|
|
41792
|
-
headers,
|
|
41793
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41794
|
-
})
|
|
41795
|
-
.catch((e) => {
|
|
41796
|
-
this.logger.error(formatErrors(e));
|
|
41797
|
-
throw e;
|
|
41798
|
-
});
|
|
41799
|
-
}),
|
|
41800
|
-
},
|
|
41801
|
-
/**
|
|
41802
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41803
|
-
*/
|
|
41804
|
-
externalInterview: {
|
|
41805
|
-
/**
|
|
41806
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
41807
|
-
*
|
|
41808
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
41809
|
-
*
|
|
41810
|
-
* 创建外部面试
|
|
41811
|
-
*
|
|
41812
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
41813
|
-
*/
|
|
41814
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41815
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41816
|
-
return this.httpInstance
|
|
41817
|
-
.request({
|
|
41818
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
41819
|
-
method: "POST",
|
|
41820
|
-
data,
|
|
41821
|
-
params,
|
|
41822
|
-
headers,
|
|
41823
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41824
|
-
})
|
|
41825
|
-
.catch((e) => {
|
|
41826
|
-
this.logger.error(formatErrors(e));
|
|
41827
|
-
throw e;
|
|
41828
|
-
});
|
|
41829
|
-
}),
|
|
41830
|
-
},
|
|
41831
|
-
/**
|
|
41832
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41833
|
-
*/
|
|
41834
|
-
externalInterviewAssessment: {
|
|
41835
|
-
/**
|
|
41836
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
|
|
41837
|
-
*
|
|
41838
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
|
|
41839
|
-
*
|
|
41840
|
-
* 创建外部面评
|
|
41841
|
-
*
|
|
41842
|
-
* 导入来自其他系统的面评信息,创建为外部面评
|
|
41843
|
-
*/
|
|
41844
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41845
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41846
|
-
return this.httpInstance
|
|
41847
|
-
.request({
|
|
41848
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
|
|
41849
|
-
method: "POST",
|
|
41850
|
-
data,
|
|
41851
|
-
params,
|
|
41852
|
-
headers,
|
|
41853
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41854
|
-
})
|
|
41855
|
-
.catch((e) => {
|
|
41856
|
-
this.logger.error(formatErrors(e));
|
|
41857
|
-
throw e;
|
|
41858
|
-
});
|
|
41859
|
-
}),
|
|
41860
|
-
/**
|
|
41861
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=patch&version=v1 click to debug }
|
|
41862
|
-
*
|
|
41863
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=external_interview_assessment&version=v1 document }
|
|
41864
|
-
*/
|
|
41865
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41866
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41867
|
-
return this.httpInstance
|
|
41868
|
-
.request({
|
|
41869
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`, path),
|
|
41870
|
-
method: "PATCH",
|
|
41871
|
-
data,
|
|
41872
|
-
params,
|
|
41873
|
-
headers,
|
|
41874
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41875
|
-
})
|
|
41876
|
-
.catch((e) => {
|
|
41877
|
-
this.logger.error(formatErrors(e));
|
|
41878
|
-
throw e;
|
|
41879
|
-
});
|
|
41880
|
-
}),
|
|
41881
|
-
},
|
|
41882
|
-
/**
|
|
41883
|
-
* external_referral_reward
|
|
41884
|
-
*/
|
|
41885
|
-
externalReferralReward: {
|
|
41886
|
-
/**
|
|
41887
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=create&version=v1 click to debug }
|
|
41888
|
-
*
|
|
41889
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41890
|
-
*/
|
|
41891
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41892
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41893
|
-
return this.httpInstance
|
|
41894
|
-
.request({
|
|
41895
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards`, path),
|
|
41896
|
-
method: "POST",
|
|
41897
|
-
data,
|
|
41898
|
-
params,
|
|
41899
|
-
headers,
|
|
41900
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41901
|
-
})
|
|
41902
|
-
.catch((e) => {
|
|
41903
|
-
this.logger.error(formatErrors(e));
|
|
41904
|
-
throw e;
|
|
41905
|
-
});
|
|
41906
|
-
}),
|
|
41907
|
-
/**
|
|
41908
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_referral_reward&apiName=delete&version=v1 click to debug }
|
|
41909
|
-
*
|
|
41910
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_referral_reward&version=v1 document }
|
|
41911
|
-
*/
|
|
41912
|
-
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41913
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41914
|
-
return this.httpInstance
|
|
41915
|
-
.request({
|
|
41916
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`, path),
|
|
41917
|
-
method: "DELETE",
|
|
41918
|
-
data,
|
|
41919
|
-
params,
|
|
41920
|
-
headers,
|
|
41921
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41922
|
-
})
|
|
41923
|
-
.catch((e) => {
|
|
41924
|
-
this.logger.error(formatErrors(e));
|
|
41925
|
-
throw e;
|
|
41926
|
-
});
|
|
41927
|
-
}),
|
|
41928
|
-
},
|
|
41929
|
-
/**
|
|
41930
|
-
* 面试
|
|
41931
|
-
*/
|
|
41932
|
-
interview: {
|
|
41933
|
-
/**
|
|
41934
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=get_by_talent&version=v1 click to debug }
|
|
41935
|
-
*
|
|
41936
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/get_by_talent document }
|
|
41937
|
-
*
|
|
41938
|
-
* 获取人才面试信息
|
|
41939
|
-
*
|
|
41940
|
-
* 获取人才面试信息
|
|
41941
|
-
*/
|
|
41942
|
-
getByTalent: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41943
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41944
|
-
return this.httpInstance
|
|
41945
|
-
.request({
|
|
41946
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`, path),
|
|
41947
|
-
method: "GET",
|
|
41948
|
-
data,
|
|
41949
|
-
params,
|
|
41950
|
-
headers,
|
|
41951
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41952
|
-
})
|
|
41953
|
-
.catch((e) => {
|
|
41954
|
-
this.logger.error(formatErrors(e));
|
|
41955
|
-
throw e;
|
|
41956
|
-
});
|
|
41957
|
-
}),
|
|
41958
|
-
/**
|
|
41959
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
|
|
41960
|
-
*
|
|
41961
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
|
|
41962
|
-
*
|
|
41963
|
-
* 获取面试信息
|
|
41964
|
-
*
|
|
41965
|
-
* 根据投递 ID 或面试时间获取面试信息
|
|
41966
|
-
*/
|
|
41967
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41968
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41969
|
-
return this.httpInstance
|
|
41970
|
-
.request({
|
|
41971
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
|
|
41972
|
-
method: "GET",
|
|
41973
|
-
data,
|
|
41974
|
-
params,
|
|
41975
|
-
headers,
|
|
41976
|
-
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
41977
|
-
})
|
|
41978
|
-
.catch((e) => {
|
|
41979
|
-
this.logger.error(formatErrors(e));
|
|
41980
|
-
throw e;
|
|
41981
|
-
});
|
|
41982
|
-
}),
|
|
41983
|
-
},
|
|
41984
|
-
/**
|
|
41985
|
-
* interview_feedback_form
|
|
41986
|
-
*/
|
|
41987
|
-
interviewFeedbackForm: {
|
|
41988
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42547
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41989
42548
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41990
42549
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
41991
42550
|
const res = yield this.httpInstance
|
|
41992
42551
|
.request({
|
|
41993
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41994
|
-
method: "
|
|
42552
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42553
|
+
method: "POST",
|
|
41995
42554
|
headers: pickBy(innerPayload.headers, identity),
|
|
41996
42555
|
params: pickBy(innerPayload.params, identity),
|
|
41997
42556
|
data,
|
|
@@ -42036,16 +42595,16 @@ class Client$u extends Client$v {
|
|
|
42036
42595
|
return Iterable;
|
|
42037
42596
|
}),
|
|
42038
42597
|
/**
|
|
42039
|
-
* {@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 }
|
|
42040
42599
|
*
|
|
42041
|
-
* {@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 }
|
|
42042
42601
|
*/
|
|
42043
|
-
|
|
42602
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42044
42603
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42045
42604
|
return this.httpInstance
|
|
42046
42605
|
.request({
|
|
42047
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42048
|
-
method: "
|
|
42606
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
42607
|
+
method: "POST",
|
|
42049
42608
|
data,
|
|
42050
42609
|
params,
|
|
42051
42610
|
headers,
|
|
@@ -42056,22 +42615,21 @@ class Client$u extends Client$v {
|
|
|
42056
42615
|
throw e;
|
|
42057
42616
|
});
|
|
42058
42617
|
}),
|
|
42059
|
-
},
|
|
42060
|
-
/**
|
|
42061
|
-
* interview_record.attachment
|
|
42062
|
-
*/
|
|
42063
|
-
interviewRecordAttachment: {
|
|
42064
42618
|
/**
|
|
42065
|
-
* {@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 }
|
|
42066
42620
|
*
|
|
42067
|
-
* {@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
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
42068
42626
|
*/
|
|
42069
|
-
|
|
42627
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42070
42628
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42071
42629
|
return this.httpInstance
|
|
42072
42630
|
.request({
|
|
42073
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42074
|
-
method: "
|
|
42631
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
42632
|
+
method: "POST",
|
|
42075
42633
|
data,
|
|
42076
42634
|
params,
|
|
42077
42635
|
headers,
|
|
@@ -42082,26 +42640,38 @@ class Client$u extends Client$v {
|
|
|
42082
42640
|
throw e;
|
|
42083
42641
|
});
|
|
42084
42642
|
}),
|
|
42085
|
-
},
|
|
42086
|
-
/**
|
|
42087
|
-
* interview_record
|
|
42088
|
-
*/
|
|
42089
|
-
interviewRecord: {
|
|
42090
42643
|
/**
|
|
42091
|
-
* {@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 }
|
|
42092
42645
|
*
|
|
42093
|
-
* {@link https://open.feishu.cn/
|
|
42094
|
-
|
|
42095
|
-
|
|
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 }
|
|
42096
42666
|
*
|
|
42097
|
-
*
|
|
42667
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
42098
42668
|
*/
|
|
42099
|
-
|
|
42669
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42100
42670
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42101
42671
|
return this.httpInstance
|
|
42102
42672
|
.request({
|
|
42103
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42104
|
-
method: "
|
|
42673
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
42674
|
+
method: "PUT",
|
|
42105
42675
|
data,
|
|
42106
42676
|
params,
|
|
42107
42677
|
headers,
|
|
@@ -42112,13 +42682,580 @@ class Client$u extends Client$v {
|
|
|
42112
42682
|
throw e;
|
|
42113
42683
|
});
|
|
42114
42684
|
}),
|
|
42115
|
-
|
|
42685
|
+
},
|
|
42686
|
+
/**
|
|
42687
|
+
* 导入外部系统信息(灰度租户可见)
|
|
42688
|
+
*/
|
|
42689
|
+
externalInterview: {
|
|
42690
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42116
42691
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42117
42692
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
42118
42693
|
const res = yield this.httpInstance
|
|
42119
42694
|
.request({
|
|
42120
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
42121
|
-
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",
|
|
42122
43259
|
headers: pickBy(innerPayload.headers, identity),
|
|
42123
43260
|
params: pickBy(innerPayload.params, identity),
|
|
42124
43261
|
data,
|
|
@@ -42600,6 +43737,27 @@ class Client$u extends Client$v {
|
|
|
42600
43737
|
throw e;
|
|
42601
43738
|
});
|
|
42602
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
|
+
}),
|
|
42603
43761
|
/**
|
|
42604
43762
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
42605
43763
|
*
|
|
@@ -43798,6 +44956,48 @@ class Client$u extends Client$v {
|
|
|
43798
44956
|
throw e;
|
|
43799
44957
|
});
|
|
43800
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
|
+
}),
|
|
43801
45001
|
/**
|
|
43802
45002
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
43803
45003
|
*
|
|
@@ -44404,6 +45604,27 @@ class Client$u extends Client$v {
|
|
|
44404
45604
|
throw e;
|
|
44405
45605
|
});
|
|
44406
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
|
+
}),
|
|
44407
45628
|
/**
|
|
44408
45629
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44409
45630
|
*
|
|
@@ -44481,6 +45702,32 @@ class Client$u extends Client$v {
|
|
|
44481
45702
|
});
|
|
44482
45703
|
}),
|
|
44483
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
|
+
},
|
|
44484
45731
|
/**
|
|
44485
45732
|
* talent_folder
|
|
44486
45733
|
*/
|
|
@@ -44625,6 +45872,27 @@ class Client$u extends Client$v {
|
|
|
44625
45872
|
* talent_pool
|
|
44626
45873
|
*/
|
|
44627
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
|
+
}),
|
|
44628
45896
|
/**
|
|
44629
45897
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
44630
45898
|
*
|
|
@@ -45770,6 +47038,27 @@ class Client$u extends Client$v {
|
|
|
45770
47038
|
* 猎头(灰度租户可见)
|
|
45771
47039
|
*/
|
|
45772
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
|
+
}),
|
|
45773
47062
|
/**
|
|
45774
47063
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
45775
47064
|
*
|
|
@@ -45795,6 +47084,48 @@ class Client$u extends Client$v {
|
|
|
45795
47084
|
throw e;
|
|
45796
47085
|
});
|
|
45797
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
|
+
}),
|
|
45798
47129
|
/**
|
|
45799
47130
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
45800
47131
|
*
|
|
@@ -45868,7 +47199,7 @@ class Client$u extends Client$v {
|
|
|
45868
47199
|
}),
|
|
45869
47200
|
},
|
|
45870
47201
|
/**
|
|
45871
|
-
*
|
|
47202
|
+
* 投递
|
|
45872
47203
|
*/
|
|
45873
47204
|
application: {
|
|
45874
47205
|
/**
|
|
@@ -45921,6 +47252,27 @@ class Client$u extends Client$v {
|
|
|
45921
47252
|
throw e;
|
|
45922
47253
|
});
|
|
45923
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
|
+
}),
|
|
45924
47276
|
/**
|
|
45925
47277
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
45926
47278
|
*
|
|
@@ -47153,18 +48505,264 @@ class Client$u extends Client$v {
|
|
|
47153
48505
|
return Iterable;
|
|
47154
48506
|
}),
|
|
47155
48507
|
/**
|
|
47156
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
47157
|
-
*
|
|
47158
|
-
* {@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 }
|
|
47159
48757
|
*
|
|
47160
|
-
*
|
|
48758
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
47161
48759
|
*/
|
|
47162
|
-
|
|
48760
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47163
48761
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47164
48762
|
return this.httpInstance
|
|
47165
48763
|
.request({
|
|
47166
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47167
|
-
method: "
|
|
48764
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
48765
|
+
method: "POST",
|
|
47168
48766
|
data,
|
|
47169
48767
|
params,
|
|
47170
48768
|
headers,
|
|
@@ -47176,18 +48774,20 @@ class Client$u extends Client$v {
|
|
|
47176
48774
|
});
|
|
47177
48775
|
}),
|
|
47178
48776
|
/**
|
|
47179
|
-
* {@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 }
|
|
47180
48778
|
*
|
|
47181
|
-
* {@link https://open.feishu.cn/
|
|
48779
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
47182
48780
|
*
|
|
47183
|
-
*
|
|
48781
|
+
* 创建外部面试
|
|
48782
|
+
*
|
|
48783
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
47184
48784
|
*/
|
|
47185
|
-
|
|
48785
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47186
48786
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47187
48787
|
return this.httpInstance
|
|
47188
48788
|
.request({
|
|
47189
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47190
|
-
method: "
|
|
48789
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
48790
|
+
method: "POST",
|
|
47191
48791
|
data,
|
|
47192
48792
|
params,
|
|
47193
48793
|
headers,
|
|
@@ -47198,26 +48798,17 @@ class Client$u extends Client$v {
|
|
|
47198
48798
|
throw e;
|
|
47199
48799
|
});
|
|
47200
48800
|
}),
|
|
47201
|
-
},
|
|
47202
|
-
/**
|
|
47203
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47204
|
-
*/
|
|
47205
|
-
externalBackgroundCheck: {
|
|
47206
48801
|
/**
|
|
47207
|
-
* {@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 }
|
|
47208
48803
|
*
|
|
47209
|
-
* {@link https://open.feishu.cn/
|
|
47210
|
-
*
|
|
47211
|
-
* 创建外部背调
|
|
47212
|
-
*
|
|
47213
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
48804
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
47214
48805
|
*/
|
|
47215
|
-
|
|
48806
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47216
48807
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47217
48808
|
return this.httpInstance
|
|
47218
48809
|
.request({
|
|
47219
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47220
|
-
method: "
|
|
48810
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48811
|
+
method: "DELETE",
|
|
47221
48812
|
data,
|
|
47222
48813
|
params,
|
|
47223
48814
|
headers,
|
|
@@ -47228,26 +48819,17 @@ class Client$u extends Client$v {
|
|
|
47228
48819
|
throw e;
|
|
47229
48820
|
});
|
|
47230
48821
|
}),
|
|
47231
|
-
},
|
|
47232
|
-
/**
|
|
47233
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47234
|
-
*/
|
|
47235
|
-
externalInterview: {
|
|
47236
48822
|
/**
|
|
47237
|
-
* {@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 }
|
|
47238
48824
|
*
|
|
47239
|
-
* {@link https://open.feishu.cn/
|
|
47240
|
-
*
|
|
47241
|
-
* 创建外部面试
|
|
47242
|
-
*
|
|
47243
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
48825
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
47244
48826
|
*/
|
|
47245
|
-
|
|
48827
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47246
48828
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47247
48829
|
return this.httpInstance
|
|
47248
48830
|
.request({
|
|
47249
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
47250
|
-
method: "
|
|
48831
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
48832
|
+
method: "PUT",
|
|
47251
48833
|
data,
|
|
47252
48834
|
params,
|
|
47253
48835
|
headers,
|
|
@@ -47310,6 +48892,147 @@ class Client$u extends Client$v {
|
|
|
47310
48892
|
});
|
|
47311
48893
|
}),
|
|
47312
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
|
+
},
|
|
47313
49036
|
/**
|
|
47314
49037
|
* external_referral_reward
|
|
47315
49038
|
*/
|
|
@@ -48041,6 +49764,27 @@ class Client$u extends Client$v {
|
|
|
48041
49764
|
throw e;
|
|
48042
49765
|
});
|
|
48043
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
|
+
}),
|
|
48044
49788
|
/**
|
|
48045
49789
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
48046
49790
|
*
|
|
@@ -49245,6 +50989,48 @@ class Client$u extends Client$v {
|
|
|
49245
50989
|
throw e;
|
|
49246
50990
|
});
|
|
49247
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
|
+
}),
|
|
49248
51034
|
/**
|
|
49249
51035
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
49250
51036
|
*
|
|
@@ -49859,6 +51645,27 @@ class Client$u extends Client$v {
|
|
|
49859
51645
|
throw e;
|
|
49860
51646
|
});
|
|
49861
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
|
+
}),
|
|
49862
51669
|
/**
|
|
49863
51670
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49864
51671
|
*
|
|
@@ -49936,6 +51743,32 @@ class Client$u extends Client$v {
|
|
|
49936
51743
|
});
|
|
49937
51744
|
}),
|
|
49938
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
|
+
},
|
|
49939
51772
|
/**
|
|
49940
51773
|
* talent_folder
|
|
49941
51774
|
*/
|
|
@@ -50082,6 +51915,27 @@ class Client$u extends Client$v {
|
|
|
50082
51915
|
* talent_pool
|
|
50083
51916
|
*/
|
|
50084
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
|
+
}),
|
|
50085
51939
|
/**
|
|
50086
51940
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
50087
51941
|
*
|
|
@@ -52619,7 +54473,7 @@ class Client$s extends Client$t {
|
|
|
52619
54473
|
}),
|
|
52620
54474
|
},
|
|
52621
54475
|
/**
|
|
52622
|
-
*
|
|
54476
|
+
* 消息 - 消息卡片
|
|
52623
54477
|
*/
|
|
52624
54478
|
message: {
|
|
52625
54479
|
/**
|
|
@@ -54822,7 +56676,7 @@ class Client$s extends Client$t {
|
|
|
54822
56676
|
}),
|
|
54823
56677
|
},
|
|
54824
56678
|
/**
|
|
54825
|
-
*
|
|
56679
|
+
* 消息 - 消息卡片
|
|
54826
56680
|
*/
|
|
54827
56681
|
message: {
|
|
54828
56682
|
/**
|
|
@@ -62753,7 +64607,7 @@ class Client$c extends Client$d {
|
|
|
62753
64607
|
}),
|
|
62754
64608
|
},
|
|
62755
64609
|
/**
|
|
62756
|
-
*
|
|
64610
|
+
* 行列
|
|
62757
64611
|
*/
|
|
62758
64612
|
spreadsheetSheet: {
|
|
62759
64613
|
/**
|
|
@@ -63483,7 +65337,7 @@ class Client$c extends Client$d {
|
|
|
63483
65337
|
}),
|
|
63484
65338
|
},
|
|
63485
65339
|
/**
|
|
63486
|
-
*
|
|
65340
|
+
* 行列
|
|
63487
65341
|
*/
|
|
63488
65342
|
spreadsheetSheet: {
|
|
63489
65343
|
/**
|