@larksuiteoapi/node-sdk 1.40.1 → 1.42.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 +3238 -114
- package/lib/index.js +3238 -114
- package/package.json +1 -1
- package/types/index.d.ts +48410 -2463
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$11 {
|
|
260
260
|
constructor() {
|
|
261
261
|
/**
|
|
262
262
|
* 智能门禁
|
|
@@ -1313,7 +1313,7 @@ class Client$$ {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
// auto gen
|
|
1316
|
-
class Client$
|
|
1316
|
+
class Client$10 extends Client$11 {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
super(...arguments);
|
|
1319
1319
|
/**
|
|
@@ -2409,7 +2409,7 @@ class Client$_ extends Client$$ {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
|
|
2411
2411
|
// auto gen
|
|
2412
|
-
class Client
|
|
2412
|
+
class Client$$ extends Client$10 {
|
|
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$_ extends Client$$ {
|
|
3113
3113
|
constructor() {
|
|
3114
3114
|
super(...arguments);
|
|
3115
3115
|
/**
|
|
@@ -3492,7 +3492,7 @@ class Client$Y extends Client$Z {
|
|
|
3492
3492
|
}),
|
|
3493
3493
|
},
|
|
3494
3494
|
/**
|
|
3495
|
-
*
|
|
3495
|
+
* 应用管理
|
|
3496
3496
|
*/
|
|
3497
3497
|
application: {
|
|
3498
3498
|
/**
|
|
@@ -4273,7 +4273,7 @@ class Client$Y extends Client$Z {
|
|
|
4273
4273
|
}),
|
|
4274
4274
|
},
|
|
4275
4275
|
/**
|
|
4276
|
-
*
|
|
4276
|
+
* 应用管理
|
|
4277
4277
|
*/
|
|
4278
4278
|
application: {
|
|
4279
4279
|
/**
|
|
@@ -4683,7 +4683,7 @@ class Client$Y extends Client$Z {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
|
|
4685
4685
|
// auto gen
|
|
4686
|
-
class Client$
|
|
4686
|
+
class Client$Z extends Client$_ {
|
|
4687
4687
|
constructor() {
|
|
4688
4688
|
super(...arguments);
|
|
4689
4689
|
/**
|
|
@@ -4691,7 +4691,7 @@ class Client$X extends Client$Y {
|
|
|
4691
4691
|
*/
|
|
4692
4692
|
this.approval = {
|
|
4693
4693
|
/**
|
|
4694
|
-
*
|
|
4694
|
+
* 事件
|
|
4695
4695
|
*/
|
|
4696
4696
|
approval: {
|
|
4697
4697
|
/**
|
|
@@ -5694,7 +5694,7 @@ class Client$X extends Client$Y {
|
|
|
5694
5694
|
},
|
|
5695
5695
|
v4: {
|
|
5696
5696
|
/**
|
|
5697
|
-
*
|
|
5697
|
+
* 事件
|
|
5698
5698
|
*/
|
|
5699
5699
|
approval: {
|
|
5700
5700
|
/**
|
|
@@ -6711,7 +6711,7 @@ class Client$X extends Client$Y {
|
|
|
6711
6711
|
}
|
|
6712
6712
|
|
|
6713
6713
|
// auto gen
|
|
6714
|
-
class Client$
|
|
6714
|
+
class Client$Y extends Client$Z {
|
|
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$X extends Client$Y {
|
|
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$W extends Client$X {
|
|
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$V extends Client$W {
|
|
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$U extends Client$V {
|
|
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$T extends Client$U {
|
|
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$S extends Client$T {
|
|
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$R extends Client$S {
|
|
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$Q extends Client$R {
|
|
14253
14533
|
constructor() {
|
|
14254
14534
|
super(...arguments);
|
|
14255
14535
|
/**
|
|
@@ -16989,7 +17269,261 @@ class Client$O extends Client$P {
|
|
|
16989
17269
|
}
|
|
16990
17270
|
|
|
16991
17271
|
// auto gen
|
|
16992
|
-
class Client$
|
|
17272
|
+
class Client$P extends Client$Q {
|
|
17273
|
+
constructor() {
|
|
17274
|
+
super(...arguments);
|
|
17275
|
+
/**
|
|
17276
|
+
|
|
17277
|
+
*/
|
|
17278
|
+
this.cardkit = {
|
|
17279
|
+
v1: {
|
|
17280
|
+
/**
|
|
17281
|
+
* card
|
|
17282
|
+
*/
|
|
17283
|
+
card: {
|
|
17284
|
+
/**
|
|
17285
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=batch_update&version=v1 click to debug }
|
|
17286
|
+
*
|
|
17287
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=cardkit&resource=card&version=v1 document }
|
|
17288
|
+
*
|
|
17289
|
+
* 按指定的多个操作批量局部更新卡片,支持更新卡片设置、添加组件、删除组件、更新组件
|
|
17290
|
+
*/
|
|
17291
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17292
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17293
|
+
return this.httpInstance
|
|
17294
|
+
.request({
|
|
17295
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`, path),
|
|
17296
|
+
method: "POST",
|
|
17297
|
+
data,
|
|
17298
|
+
params,
|
|
17299
|
+
headers,
|
|
17300
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17301
|
+
})
|
|
17302
|
+
.catch((e) => {
|
|
17303
|
+
this.logger.error(formatErrors(e));
|
|
17304
|
+
throw e;
|
|
17305
|
+
});
|
|
17306
|
+
}),
|
|
17307
|
+
/**
|
|
17308
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=create&version=v1 click to debug }
|
|
17309
|
+
*
|
|
17310
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card&version=v1 document }
|
|
17311
|
+
*
|
|
17312
|
+
* 创建卡片实例,成功后可通过发送消息等接口发送卡片实例
|
|
17313
|
+
*/
|
|
17314
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17315
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17316
|
+
return this.httpInstance
|
|
17317
|
+
.request({
|
|
17318
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards`, path),
|
|
17319
|
+
method: "POST",
|
|
17320
|
+
data,
|
|
17321
|
+
params,
|
|
17322
|
+
headers,
|
|
17323
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17324
|
+
})
|
|
17325
|
+
.catch((e) => {
|
|
17326
|
+
this.logger.error(formatErrors(e));
|
|
17327
|
+
throw e;
|
|
17328
|
+
});
|
|
17329
|
+
}),
|
|
17330
|
+
/**
|
|
17331
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=id_convert&version=v1 click to debug }
|
|
17332
|
+
*
|
|
17333
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=id_convert&project=cardkit&resource=card&version=v1 document }
|
|
17334
|
+
*
|
|
17335
|
+
* 获取消息 id 对应的卡片 id
|
|
17336
|
+
*/
|
|
17337
|
+
idConvert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17338
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17339
|
+
return this.httpInstance
|
|
17340
|
+
.request({
|
|
17341
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`, path),
|
|
17342
|
+
method: "POST",
|
|
17343
|
+
data,
|
|
17344
|
+
params,
|
|
17345
|
+
headers,
|
|
17346
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17347
|
+
})
|
|
17348
|
+
.catch((e) => {
|
|
17349
|
+
this.logger.error(formatErrors(e));
|
|
17350
|
+
throw e;
|
|
17351
|
+
});
|
|
17352
|
+
}),
|
|
17353
|
+
/**
|
|
17354
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=settings&version=v1 click to debug }
|
|
17355
|
+
*
|
|
17356
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=settings&project=cardkit&resource=card&version=v1 document }
|
|
17357
|
+
*
|
|
17358
|
+
* 更新指定的卡片设置
|
|
17359
|
+
*/
|
|
17360
|
+
settings: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17361
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17362
|
+
return this.httpInstance
|
|
17363
|
+
.request({
|
|
17364
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`, path),
|
|
17365
|
+
method: "PATCH",
|
|
17366
|
+
data,
|
|
17367
|
+
params,
|
|
17368
|
+
headers,
|
|
17369
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17370
|
+
})
|
|
17371
|
+
.catch((e) => {
|
|
17372
|
+
this.logger.error(formatErrors(e));
|
|
17373
|
+
throw e;
|
|
17374
|
+
});
|
|
17375
|
+
}),
|
|
17376
|
+
/**
|
|
17377
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=update&version=v1 click to debug }
|
|
17378
|
+
*
|
|
17379
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card&version=v1 document }
|
|
17380
|
+
*
|
|
17381
|
+
* 对卡片进行全量更新,即:以全新的卡片内容更新已有卡片
|
|
17382
|
+
*/
|
|
17383
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17384
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17385
|
+
return this.httpInstance
|
|
17386
|
+
.request({
|
|
17387
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`, path),
|
|
17388
|
+
method: "PUT",
|
|
17389
|
+
data,
|
|
17390
|
+
params,
|
|
17391
|
+
headers,
|
|
17392
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17393
|
+
})
|
|
17394
|
+
.catch((e) => {
|
|
17395
|
+
this.logger.error(formatErrors(e));
|
|
17396
|
+
throw e;
|
|
17397
|
+
});
|
|
17398
|
+
}),
|
|
17399
|
+
},
|
|
17400
|
+
/**
|
|
17401
|
+
* card.element
|
|
17402
|
+
*/
|
|
17403
|
+
cardElement: {
|
|
17404
|
+
/**
|
|
17405
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=content&version=v1 click to debug }
|
|
17406
|
+
*
|
|
17407
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=content&project=cardkit&resource=card.element&version=v1 document }
|
|
17408
|
+
*
|
|
17409
|
+
* 以传入的文本内容覆盖已有卡片组件内容,卡片将自动识别其中的增量变更内容,并以“打字机”效果输出。
|
|
17410
|
+
*/
|
|
17411
|
+
content: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17412
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17413
|
+
return this.httpInstance
|
|
17414
|
+
.request({
|
|
17415
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`, path),
|
|
17416
|
+
method: "PUT",
|
|
17417
|
+
data,
|
|
17418
|
+
params,
|
|
17419
|
+
headers,
|
|
17420
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17421
|
+
})
|
|
17422
|
+
.catch((e) => {
|
|
17423
|
+
this.logger.error(formatErrors(e));
|
|
17424
|
+
throw e;
|
|
17425
|
+
});
|
|
17426
|
+
}),
|
|
17427
|
+
/**
|
|
17428
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=create&version=v1 click to debug }
|
|
17429
|
+
*
|
|
17430
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card.element&version=v1 document }
|
|
17431
|
+
*
|
|
17432
|
+
* 在卡片内指定位置添加组件
|
|
17433
|
+
*/
|
|
17434
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17435
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17436
|
+
return this.httpInstance
|
|
17437
|
+
.request({
|
|
17438
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`, path),
|
|
17439
|
+
method: "POST",
|
|
17440
|
+
data,
|
|
17441
|
+
params,
|
|
17442
|
+
headers,
|
|
17443
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17444
|
+
})
|
|
17445
|
+
.catch((e) => {
|
|
17446
|
+
this.logger.error(formatErrors(e));
|
|
17447
|
+
throw e;
|
|
17448
|
+
});
|
|
17449
|
+
}),
|
|
17450
|
+
/**
|
|
17451
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=delete&version=v1 click to debug }
|
|
17452
|
+
*
|
|
17453
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=cardkit&resource=card.element&version=v1 document }
|
|
17454
|
+
*
|
|
17455
|
+
* 删除卡片内的指定组件
|
|
17456
|
+
*/
|
|
17457
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17458
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17459
|
+
return this.httpInstance
|
|
17460
|
+
.request({
|
|
17461
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17462
|
+
method: "DELETE",
|
|
17463
|
+
data,
|
|
17464
|
+
params,
|
|
17465
|
+
headers,
|
|
17466
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17467
|
+
})
|
|
17468
|
+
.catch((e) => {
|
|
17469
|
+
this.logger.error(formatErrors(e));
|
|
17470
|
+
throw e;
|
|
17471
|
+
});
|
|
17472
|
+
}),
|
|
17473
|
+
/**
|
|
17474
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=patch&version=v1 click to debug }
|
|
17475
|
+
*
|
|
17476
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=cardkit&resource=card.element&version=v1 document }
|
|
17477
|
+
*
|
|
17478
|
+
* 以传入的配置覆盖指定组件的已有配置
|
|
17479
|
+
*/
|
|
17480
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17481
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17482
|
+
return this.httpInstance
|
|
17483
|
+
.request({
|
|
17484
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17485
|
+
method: "PATCH",
|
|
17486
|
+
data,
|
|
17487
|
+
params,
|
|
17488
|
+
headers,
|
|
17489
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17490
|
+
})
|
|
17491
|
+
.catch((e) => {
|
|
17492
|
+
this.logger.error(formatErrors(e));
|
|
17493
|
+
throw e;
|
|
17494
|
+
});
|
|
17495
|
+
}),
|
|
17496
|
+
/**
|
|
17497
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=update&version=v1 click to debug }
|
|
17498
|
+
*
|
|
17499
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card.element&version=v1 document }
|
|
17500
|
+
*
|
|
17501
|
+
* 以新组件全量替换更新指定组件
|
|
17502
|
+
*/
|
|
17503
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17504
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17505
|
+
return this.httpInstance
|
|
17506
|
+
.request({
|
|
17507
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17508
|
+
method: "PUT",
|
|
17509
|
+
data,
|
|
17510
|
+
params,
|
|
17511
|
+
headers,
|
|
17512
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
17513
|
+
})
|
|
17514
|
+
.catch((e) => {
|
|
17515
|
+
this.logger.error(formatErrors(e));
|
|
17516
|
+
throw e;
|
|
17517
|
+
});
|
|
17518
|
+
}),
|
|
17519
|
+
},
|
|
17520
|
+
},
|
|
17521
|
+
};
|
|
17522
|
+
}
|
|
17523
|
+
}
|
|
17524
|
+
|
|
17525
|
+
// auto gen
|
|
17526
|
+
class Client$O extends Client$P {
|
|
16993
17527
|
constructor() {
|
|
16994
17528
|
super(...arguments);
|
|
16995
17529
|
/**
|
|
@@ -17000,7 +17534,7 @@ class Client$N extends Client$O {
|
|
|
17000
17534
|
}
|
|
17001
17535
|
|
|
17002
17536
|
// auto gen
|
|
17003
|
-
class Client$
|
|
17537
|
+
class Client$N extends Client$O {
|
|
17004
17538
|
constructor() {
|
|
17005
17539
|
super(...arguments);
|
|
17006
17540
|
/**
|
|
@@ -17430,7 +17964,7 @@ class Client$M extends Client$N {
|
|
|
17430
17964
|
}
|
|
17431
17965
|
|
|
17432
17966
|
// auto gen
|
|
17433
|
-
class Client$
|
|
17967
|
+
class Client$M extends Client$N {
|
|
17434
17968
|
constructor() {
|
|
17435
17969
|
super(...arguments);
|
|
17436
17970
|
/**
|
|
@@ -22458,7 +22992,7 @@ class Client$L extends Client$M {
|
|
|
22458
22992
|
}
|
|
22459
22993
|
|
|
22460
22994
|
// auto gen
|
|
22461
|
-
class Client$
|
|
22995
|
+
class Client$L extends Client$M {
|
|
22462
22996
|
constructor() {
|
|
22463
22997
|
super(...arguments);
|
|
22464
22998
|
/**
|
|
@@ -22469,7 +23003,7 @@ class Client$K extends Client$L {
|
|
|
22469
23003
|
}
|
|
22470
23004
|
|
|
22471
23005
|
// auto gen
|
|
22472
|
-
class Client$
|
|
23006
|
+
class Client$K extends Client$L {
|
|
22473
23007
|
constructor() {
|
|
22474
23008
|
super(...arguments);
|
|
22475
23009
|
/**
|
|
@@ -22480,7 +23014,7 @@ class Client$J extends Client$K {
|
|
|
22480
23014
|
}
|
|
22481
23015
|
|
|
22482
23016
|
// auto gen
|
|
22483
|
-
class Client$
|
|
23017
|
+
class Client$J extends Client$K {
|
|
22484
23018
|
constructor() {
|
|
22485
23019
|
super(...arguments);
|
|
22486
23020
|
/**
|
|
@@ -28140,6 +28674,78 @@ class Client$I extends Client$J {
|
|
|
28140
28674
|
},
|
|
28141
28675
|
},
|
|
28142
28676
|
v2: {
|
|
28677
|
+
/**
|
|
28678
|
+
* approval_groups
|
|
28679
|
+
*/
|
|
28680
|
+
approvalGroups: {
|
|
28681
|
+
/**
|
|
28682
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=get&version=v2 click to debug }
|
|
28683
|
+
*
|
|
28684
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=approval_groups&version=v2 document }
|
|
28685
|
+
*
|
|
28686
|
+
* 获取审批组信息
|
|
28687
|
+
*/
|
|
28688
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28689
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28690
|
+
return this.httpInstance
|
|
28691
|
+
.request({
|
|
28692
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
|
|
28693
|
+
method: "GET",
|
|
28694
|
+
data,
|
|
28695
|
+
params,
|
|
28696
|
+
headers,
|
|
28697
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28698
|
+
})
|
|
28699
|
+
.catch((e) => {
|
|
28700
|
+
this.logger.error(formatErrors(e));
|
|
28701
|
+
throw e;
|
|
28702
|
+
});
|
|
28703
|
+
}),
|
|
28704
|
+
/**
|
|
28705
|
+
* {@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 }
|
|
28706
|
+
*
|
|
28707
|
+
* {@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 }
|
|
28708
|
+
*
|
|
28709
|
+
* 获取部门调整信息详情
|
|
28710
|
+
*/
|
|
28711
|
+
openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28712
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28713
|
+
return this.httpInstance
|
|
28714
|
+
.request({
|
|
28715
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`, path),
|
|
28716
|
+
method: "POST",
|
|
28717
|
+
data,
|
|
28718
|
+
params,
|
|
28719
|
+
headers,
|
|
28720
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28721
|
+
})
|
|
28722
|
+
.catch((e) => {
|
|
28723
|
+
this.logger.error(formatErrors(e));
|
|
28724
|
+
throw e;
|
|
28725
|
+
});
|
|
28726
|
+
}),
|
|
28727
|
+
/**
|
|
28728
|
+
* {@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 }
|
|
28729
|
+
*
|
|
28730
|
+
* {@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 }
|
|
28731
|
+
*/
|
|
28732
|
+
openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28733
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28734
|
+
return this.httpInstance
|
|
28735
|
+
.request({
|
|
28736
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`, path),
|
|
28737
|
+
method: "POST",
|
|
28738
|
+
data,
|
|
28739
|
+
params,
|
|
28740
|
+
headers,
|
|
28741
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28742
|
+
})
|
|
28743
|
+
.catch((e) => {
|
|
28744
|
+
this.logger.error(formatErrors(e));
|
|
28745
|
+
throw e;
|
|
28746
|
+
});
|
|
28747
|
+
}),
|
|
28748
|
+
},
|
|
28143
28749
|
/**
|
|
28144
28750
|
* approver
|
|
28145
28751
|
*/
|
|
@@ -29372,6 +29978,79 @@ class Client$I extends Client$J {
|
|
|
29372
29978
|
throw e;
|
|
29373
29979
|
});
|
|
29374
29980
|
}),
|
|
29981
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29982
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29983
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
29984
|
+
const res = yield this.httpInstance
|
|
29985
|
+
.request({
|
|
29986
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
29987
|
+
method: "GET",
|
|
29988
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
29989
|
+
params: pickBy(innerPayload.params, identity),
|
|
29990
|
+
data,
|
|
29991
|
+
paramsSerializer: (params) => stringify(params, {
|
|
29992
|
+
arrayFormat: "repeat",
|
|
29993
|
+
}),
|
|
29994
|
+
})
|
|
29995
|
+
.catch((e) => {
|
|
29996
|
+
this.logger.error(formatErrors(e));
|
|
29997
|
+
});
|
|
29998
|
+
return res;
|
|
29999
|
+
});
|
|
30000
|
+
const Iterable = {
|
|
30001
|
+
[Symbol.asyncIterator]() {
|
|
30002
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30003
|
+
let hasMore = true;
|
|
30004
|
+
let pageToken;
|
|
30005
|
+
while (hasMore) {
|
|
30006
|
+
try {
|
|
30007
|
+
const res = yield __await(sendRequest({
|
|
30008
|
+
headers,
|
|
30009
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30010
|
+
data,
|
|
30011
|
+
}));
|
|
30012
|
+
const _b = get(res, "data") || {}, {
|
|
30013
|
+
// @ts-ignore
|
|
30014
|
+
has_more,
|
|
30015
|
+
// @ts-ignore
|
|
30016
|
+
page_token,
|
|
30017
|
+
// @ts-ignore
|
|
30018
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30019
|
+
yield yield __await(rest);
|
|
30020
|
+
hasMore = Boolean(has_more);
|
|
30021
|
+
pageToken = page_token || next_page_token;
|
|
30022
|
+
}
|
|
30023
|
+
catch (e) {
|
|
30024
|
+
yield yield __await(null);
|
|
30025
|
+
break;
|
|
30026
|
+
}
|
|
30027
|
+
}
|
|
30028
|
+
});
|
|
30029
|
+
},
|
|
30030
|
+
};
|
|
30031
|
+
return Iterable;
|
|
30032
|
+
}),
|
|
30033
|
+
/**
|
|
30034
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=query_recent_change&version=v2 click to debug }
|
|
30035
|
+
*
|
|
30036
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=cost_center&version=v2 document }
|
|
30037
|
+
*/
|
|
30038
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30039
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30040
|
+
return this.httpInstance
|
|
30041
|
+
.request({
|
|
30042
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
30043
|
+
method: "GET",
|
|
30044
|
+
data,
|
|
30045
|
+
params,
|
|
30046
|
+
headers,
|
|
30047
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30048
|
+
})
|
|
30049
|
+
.catch((e) => {
|
|
30050
|
+
this.logger.error(formatErrors(e));
|
|
30051
|
+
throw e;
|
|
30052
|
+
});
|
|
30053
|
+
}),
|
|
29375
30054
|
/**
|
|
29376
30055
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
|
|
29377
30056
|
*
|
|
@@ -29585,6 +30264,81 @@ class Client$I extends Client$J {
|
|
|
29585
30264
|
throw e;
|
|
29586
30265
|
});
|
|
29587
30266
|
}),
|
|
30267
|
+
queryOperationLogsWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30268
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30269
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30270
|
+
const res = yield this.httpInstance
|
|
30271
|
+
.request({
|
|
30272
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30273
|
+
method: "POST",
|
|
30274
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
30275
|
+
params: pickBy(innerPayload.params, identity),
|
|
30276
|
+
data,
|
|
30277
|
+
paramsSerializer: (params) => stringify(params, {
|
|
30278
|
+
arrayFormat: "repeat",
|
|
30279
|
+
}),
|
|
30280
|
+
})
|
|
30281
|
+
.catch((e) => {
|
|
30282
|
+
this.logger.error(formatErrors(e));
|
|
30283
|
+
});
|
|
30284
|
+
return res;
|
|
30285
|
+
});
|
|
30286
|
+
const Iterable = {
|
|
30287
|
+
[Symbol.asyncIterator]() {
|
|
30288
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30289
|
+
let hasMore = true;
|
|
30290
|
+
let pageToken;
|
|
30291
|
+
while (hasMore) {
|
|
30292
|
+
try {
|
|
30293
|
+
const res = yield __await(sendRequest({
|
|
30294
|
+
headers,
|
|
30295
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30296
|
+
data,
|
|
30297
|
+
}));
|
|
30298
|
+
const _b = get(res, "data") || {}, {
|
|
30299
|
+
// @ts-ignore
|
|
30300
|
+
has_more,
|
|
30301
|
+
// @ts-ignore
|
|
30302
|
+
page_token,
|
|
30303
|
+
// @ts-ignore
|
|
30304
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30305
|
+
yield yield __await(rest);
|
|
30306
|
+
hasMore = Boolean(has_more);
|
|
30307
|
+
pageToken = page_token || next_page_token;
|
|
30308
|
+
}
|
|
30309
|
+
catch (e) {
|
|
30310
|
+
yield yield __await(null);
|
|
30311
|
+
break;
|
|
30312
|
+
}
|
|
30313
|
+
}
|
|
30314
|
+
});
|
|
30315
|
+
},
|
|
30316
|
+
};
|
|
30317
|
+
return Iterable;
|
|
30318
|
+
}),
|
|
30319
|
+
/**
|
|
30320
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_operation_logs&version=v2 click to debug }
|
|
30321
|
+
*
|
|
30322
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_operation_logs&project=corehr&resource=department&version=v2 document }
|
|
30323
|
+
*
|
|
30324
|
+
* 查询操作日志
|
|
30325
|
+
*/
|
|
30326
|
+
queryOperationLogs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30327
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30328
|
+
return this.httpInstance
|
|
30329
|
+
.request({
|
|
30330
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30331
|
+
method: "POST",
|
|
30332
|
+
data,
|
|
30333
|
+
params,
|
|
30334
|
+
headers,
|
|
30335
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30336
|
+
})
|
|
30337
|
+
.catch((e) => {
|
|
30338
|
+
this.logger.error(formatErrors(e));
|
|
30339
|
+
throw e;
|
|
30340
|
+
});
|
|
30341
|
+
}),
|
|
29588
30342
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29589
30343
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29590
30344
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30124,6 +30878,34 @@ class Client$I extends Client$J {
|
|
|
30124
30878
|
});
|
|
30125
30879
|
}),
|
|
30126
30880
|
},
|
|
30881
|
+
/**
|
|
30882
|
+
* enum
|
|
30883
|
+
*/
|
|
30884
|
+
enum: {
|
|
30885
|
+
/**
|
|
30886
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=enum&apiName=search&version=v2 click to debug }
|
|
30887
|
+
*
|
|
30888
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=enum&version=v2 document }
|
|
30889
|
+
*
|
|
30890
|
+
* 通过apiname批量获取枚举信息
|
|
30891
|
+
*/
|
|
30892
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30893
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30894
|
+
return this.httpInstance
|
|
30895
|
+
.request({
|
|
30896
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/enums/search`, path),
|
|
30897
|
+
method: "POST",
|
|
30898
|
+
data,
|
|
30899
|
+
params,
|
|
30900
|
+
headers,
|
|
30901
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30902
|
+
})
|
|
30903
|
+
.catch((e) => {
|
|
30904
|
+
this.logger.error(formatErrors(e));
|
|
30905
|
+
throw e;
|
|
30906
|
+
});
|
|
30907
|
+
}),
|
|
30908
|
+
},
|
|
30127
30909
|
/**
|
|
30128
30910
|
* job
|
|
30129
30911
|
*/
|
|
@@ -30179,6 +30961,48 @@ class Client$I extends Client$J {
|
|
|
30179
30961
|
* job_change
|
|
30180
30962
|
*/
|
|
30181
30963
|
jobChange: {
|
|
30964
|
+
/**
|
|
30965
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v2 click to debug }
|
|
30966
|
+
*
|
|
30967
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_change&version=v2 document }
|
|
30968
|
+
*/
|
|
30969
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30970
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30971
|
+
return this.httpInstance
|
|
30972
|
+
.request({
|
|
30973
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes`, path),
|
|
30974
|
+
method: "POST",
|
|
30975
|
+
data,
|
|
30976
|
+
params,
|
|
30977
|
+
headers,
|
|
30978
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30979
|
+
})
|
|
30980
|
+
.catch((e) => {
|
|
30981
|
+
this.logger.error(formatErrors(e));
|
|
30982
|
+
throw e;
|
|
30983
|
+
});
|
|
30984
|
+
}),
|
|
30985
|
+
/**
|
|
30986
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=revoke&version=v2 click to debug }
|
|
30987
|
+
*
|
|
30988
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=job_change&version=v2 document }
|
|
30989
|
+
*/
|
|
30990
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30991
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30992
|
+
return this.httpInstance
|
|
30993
|
+
.request({
|
|
30994
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`, path),
|
|
30995
|
+
method: "POST",
|
|
30996
|
+
data,
|
|
30997
|
+
params,
|
|
30998
|
+
headers,
|
|
30999
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31000
|
+
})
|
|
31001
|
+
.catch((e) => {
|
|
31002
|
+
this.logger.error(formatErrors(e));
|
|
31003
|
+
throw e;
|
|
31004
|
+
});
|
|
31005
|
+
}),
|
|
30182
31006
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30183
31007
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30184
31008
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30282,6 +31106,79 @@ class Client$I extends Client$J {
|
|
|
30282
31106
|
throw e;
|
|
30283
31107
|
});
|
|
30284
31108
|
}),
|
|
31109
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31111
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31112
|
+
const res = yield this.httpInstance
|
|
31113
|
+
.request({
|
|
31114
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31115
|
+
method: "GET",
|
|
31116
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
31117
|
+
params: pickBy(innerPayload.params, identity),
|
|
31118
|
+
data,
|
|
31119
|
+
paramsSerializer: (params) => stringify(params, {
|
|
31120
|
+
arrayFormat: "repeat",
|
|
31121
|
+
}),
|
|
31122
|
+
})
|
|
31123
|
+
.catch((e) => {
|
|
31124
|
+
this.logger.error(formatErrors(e));
|
|
31125
|
+
});
|
|
31126
|
+
return res;
|
|
31127
|
+
});
|
|
31128
|
+
const Iterable = {
|
|
31129
|
+
[Symbol.asyncIterator]() {
|
|
31130
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31131
|
+
let hasMore = true;
|
|
31132
|
+
let pageToken;
|
|
31133
|
+
while (hasMore) {
|
|
31134
|
+
try {
|
|
31135
|
+
const res = yield __await(sendRequest({
|
|
31136
|
+
headers,
|
|
31137
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31138
|
+
data,
|
|
31139
|
+
}));
|
|
31140
|
+
const _b = get(res, "data") || {}, {
|
|
31141
|
+
// @ts-ignore
|
|
31142
|
+
has_more,
|
|
31143
|
+
// @ts-ignore
|
|
31144
|
+
page_token,
|
|
31145
|
+
// @ts-ignore
|
|
31146
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31147
|
+
yield yield __await(rest);
|
|
31148
|
+
hasMore = Boolean(has_more);
|
|
31149
|
+
pageToken = page_token || next_page_token;
|
|
31150
|
+
}
|
|
31151
|
+
catch (e) {
|
|
31152
|
+
yield yield __await(null);
|
|
31153
|
+
break;
|
|
31154
|
+
}
|
|
31155
|
+
}
|
|
31156
|
+
});
|
|
31157
|
+
},
|
|
31158
|
+
};
|
|
31159
|
+
return Iterable;
|
|
31160
|
+
}),
|
|
31161
|
+
/**
|
|
31162
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_recent_change&version=v2 click to debug }
|
|
31163
|
+
*
|
|
31164
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_family&version=v2 document }
|
|
31165
|
+
*/
|
|
31166
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31167
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31168
|
+
return this.httpInstance
|
|
31169
|
+
.request({
|
|
31170
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31171
|
+
method: "GET",
|
|
31172
|
+
data,
|
|
31173
|
+
params,
|
|
31174
|
+
headers,
|
|
31175
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31176
|
+
})
|
|
31177
|
+
.catch((e) => {
|
|
31178
|
+
this.logger.error(formatErrors(e));
|
|
31179
|
+
throw e;
|
|
31180
|
+
});
|
|
31181
|
+
}),
|
|
30285
31182
|
},
|
|
30286
31183
|
/**
|
|
30287
31184
|
* job_grade
|
|
@@ -30379,6 +31276,79 @@ class Client$I extends Client$J {
|
|
|
30379
31276
|
throw e;
|
|
30380
31277
|
});
|
|
30381
31278
|
}),
|
|
31279
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31280
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31281
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31282
|
+
const res = yield this.httpInstance
|
|
31283
|
+
.request({
|
|
31284
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31285
|
+
method: "GET",
|
|
31286
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
31287
|
+
params: pickBy(innerPayload.params, identity),
|
|
31288
|
+
data,
|
|
31289
|
+
paramsSerializer: (params) => stringify(params, {
|
|
31290
|
+
arrayFormat: "repeat",
|
|
31291
|
+
}),
|
|
31292
|
+
})
|
|
31293
|
+
.catch((e) => {
|
|
31294
|
+
this.logger.error(formatErrors(e));
|
|
31295
|
+
});
|
|
31296
|
+
return res;
|
|
31297
|
+
});
|
|
31298
|
+
const Iterable = {
|
|
31299
|
+
[Symbol.asyncIterator]() {
|
|
31300
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31301
|
+
let hasMore = true;
|
|
31302
|
+
let pageToken;
|
|
31303
|
+
while (hasMore) {
|
|
31304
|
+
try {
|
|
31305
|
+
const res = yield __await(sendRequest({
|
|
31306
|
+
headers,
|
|
31307
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31308
|
+
data,
|
|
31309
|
+
}));
|
|
31310
|
+
const _b = get(res, "data") || {}, {
|
|
31311
|
+
// @ts-ignore
|
|
31312
|
+
has_more,
|
|
31313
|
+
// @ts-ignore
|
|
31314
|
+
page_token,
|
|
31315
|
+
// @ts-ignore
|
|
31316
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31317
|
+
yield yield __await(rest);
|
|
31318
|
+
hasMore = Boolean(has_more);
|
|
31319
|
+
pageToken = page_token || next_page_token;
|
|
31320
|
+
}
|
|
31321
|
+
catch (e) {
|
|
31322
|
+
yield yield __await(null);
|
|
31323
|
+
break;
|
|
31324
|
+
}
|
|
31325
|
+
}
|
|
31326
|
+
});
|
|
31327
|
+
},
|
|
31328
|
+
};
|
|
31329
|
+
return Iterable;
|
|
31330
|
+
}),
|
|
31331
|
+
/**
|
|
31332
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query_recent_change&version=v2 click to debug }
|
|
31333
|
+
*
|
|
31334
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_grade&version=v2 document }
|
|
31335
|
+
*/
|
|
31336
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31337
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31338
|
+
return this.httpInstance
|
|
31339
|
+
.request({
|
|
31340
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31341
|
+
method: "GET",
|
|
31342
|
+
data,
|
|
31343
|
+
params,
|
|
31344
|
+
headers,
|
|
31345
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31346
|
+
})
|
|
31347
|
+
.catch((e) => {
|
|
31348
|
+
this.logger.error(formatErrors(e));
|
|
31349
|
+
throw e;
|
|
31350
|
+
});
|
|
31351
|
+
}),
|
|
30382
31352
|
},
|
|
30383
31353
|
/**
|
|
30384
31354
|
* job_level
|
|
@@ -30407,6 +31377,79 @@ class Client$I extends Client$J {
|
|
|
30407
31377
|
throw e;
|
|
30408
31378
|
});
|
|
30409
31379
|
}),
|
|
31380
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31381
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31382
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31383
|
+
const res = yield this.httpInstance
|
|
31384
|
+
.request({
|
|
31385
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31386
|
+
method: "GET",
|
|
31387
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
31388
|
+
params: pickBy(innerPayload.params, identity),
|
|
31389
|
+
data,
|
|
31390
|
+
paramsSerializer: (params) => stringify(params, {
|
|
31391
|
+
arrayFormat: "repeat",
|
|
31392
|
+
}),
|
|
31393
|
+
})
|
|
31394
|
+
.catch((e) => {
|
|
31395
|
+
this.logger.error(formatErrors(e));
|
|
31396
|
+
});
|
|
31397
|
+
return res;
|
|
31398
|
+
});
|
|
31399
|
+
const Iterable = {
|
|
31400
|
+
[Symbol.asyncIterator]() {
|
|
31401
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31402
|
+
let hasMore = true;
|
|
31403
|
+
let pageToken;
|
|
31404
|
+
while (hasMore) {
|
|
31405
|
+
try {
|
|
31406
|
+
const res = yield __await(sendRequest({
|
|
31407
|
+
headers,
|
|
31408
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31409
|
+
data,
|
|
31410
|
+
}));
|
|
31411
|
+
const _b = get(res, "data") || {}, {
|
|
31412
|
+
// @ts-ignore
|
|
31413
|
+
has_more,
|
|
31414
|
+
// @ts-ignore
|
|
31415
|
+
page_token,
|
|
31416
|
+
// @ts-ignore
|
|
31417
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31418
|
+
yield yield __await(rest);
|
|
31419
|
+
hasMore = Boolean(has_more);
|
|
31420
|
+
pageToken = page_token || next_page_token;
|
|
31421
|
+
}
|
|
31422
|
+
catch (e) {
|
|
31423
|
+
yield yield __await(null);
|
|
31424
|
+
break;
|
|
31425
|
+
}
|
|
31426
|
+
}
|
|
31427
|
+
});
|
|
31428
|
+
},
|
|
31429
|
+
};
|
|
31430
|
+
return Iterable;
|
|
31431
|
+
}),
|
|
31432
|
+
/**
|
|
31433
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=query_recent_change&version=v2 click to debug }
|
|
31434
|
+
*
|
|
31435
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_level&version=v2 document }
|
|
31436
|
+
*/
|
|
31437
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31438
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31439
|
+
return this.httpInstance
|
|
31440
|
+
.request({
|
|
31441
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31442
|
+
method: "GET",
|
|
31443
|
+
data,
|
|
31444
|
+
params,
|
|
31445
|
+
headers,
|
|
31446
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31447
|
+
})
|
|
31448
|
+
.catch((e) => {
|
|
31449
|
+
this.logger.error(formatErrors(e));
|
|
31450
|
+
throw e;
|
|
31451
|
+
});
|
|
31452
|
+
}),
|
|
30410
31453
|
},
|
|
30411
31454
|
/**
|
|
30412
31455
|
* location
|
|
@@ -30481,6 +31524,79 @@ class Client$I extends Client$J {
|
|
|
30481
31524
|
throw e;
|
|
30482
31525
|
});
|
|
30483
31526
|
}),
|
|
31527
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31528
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31529
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31530
|
+
const res = yield this.httpInstance
|
|
31531
|
+
.request({
|
|
31532
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31533
|
+
method: "GET",
|
|
31534
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
31535
|
+
params: pickBy(innerPayload.params, identity),
|
|
31536
|
+
data,
|
|
31537
|
+
paramsSerializer: (params) => stringify(params, {
|
|
31538
|
+
arrayFormat: "repeat",
|
|
31539
|
+
}),
|
|
31540
|
+
})
|
|
31541
|
+
.catch((e) => {
|
|
31542
|
+
this.logger.error(formatErrors(e));
|
|
31543
|
+
});
|
|
31544
|
+
return res;
|
|
31545
|
+
});
|
|
31546
|
+
const Iterable = {
|
|
31547
|
+
[Symbol.asyncIterator]() {
|
|
31548
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31549
|
+
let hasMore = true;
|
|
31550
|
+
let pageToken;
|
|
31551
|
+
while (hasMore) {
|
|
31552
|
+
try {
|
|
31553
|
+
const res = yield __await(sendRequest({
|
|
31554
|
+
headers,
|
|
31555
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31556
|
+
data,
|
|
31557
|
+
}));
|
|
31558
|
+
const _b = get(res, "data") || {}, {
|
|
31559
|
+
// @ts-ignore
|
|
31560
|
+
has_more,
|
|
31561
|
+
// @ts-ignore
|
|
31562
|
+
page_token,
|
|
31563
|
+
// @ts-ignore
|
|
31564
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31565
|
+
yield yield __await(rest);
|
|
31566
|
+
hasMore = Boolean(has_more);
|
|
31567
|
+
pageToken = page_token || next_page_token;
|
|
31568
|
+
}
|
|
31569
|
+
catch (e) {
|
|
31570
|
+
yield yield __await(null);
|
|
31571
|
+
break;
|
|
31572
|
+
}
|
|
31573
|
+
}
|
|
31574
|
+
});
|
|
31575
|
+
},
|
|
31576
|
+
};
|
|
31577
|
+
return Iterable;
|
|
31578
|
+
}),
|
|
31579
|
+
/**
|
|
31580
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=query_recent_change&version=v2 click to debug }
|
|
31581
|
+
*
|
|
31582
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=location&version=v2 document }
|
|
31583
|
+
*/
|
|
31584
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31585
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31586
|
+
return this.httpInstance
|
|
31587
|
+
.request({
|
|
31588
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31589
|
+
method: "GET",
|
|
31590
|
+
data,
|
|
31591
|
+
params,
|
|
31592
|
+
headers,
|
|
31593
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31594
|
+
})
|
|
31595
|
+
.catch((e) => {
|
|
31596
|
+
this.logger.error(formatErrors(e));
|
|
31597
|
+
throw e;
|
|
31598
|
+
});
|
|
31599
|
+
}),
|
|
30484
31600
|
},
|
|
30485
31601
|
/**
|
|
30486
31602
|
* location.address
|
|
@@ -30560,6 +31676,52 @@ class Client$I extends Client$J {
|
|
|
30560
31676
|
* offboarding
|
|
30561
31677
|
*/
|
|
30562
31678
|
offboarding: {
|
|
31679
|
+
/**
|
|
31680
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=edit&version=v2 click to debug }
|
|
31681
|
+
*
|
|
31682
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=edit&project=corehr&resource=offboarding&version=v2 document }
|
|
31683
|
+
*
|
|
31684
|
+
* 编辑离职信息
|
|
31685
|
+
*/
|
|
31686
|
+
edit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31687
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31688
|
+
return this.httpInstance
|
|
31689
|
+
.request({
|
|
31690
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/edit`, path),
|
|
31691
|
+
method: "POST",
|
|
31692
|
+
data,
|
|
31693
|
+
params,
|
|
31694
|
+
headers,
|
|
31695
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31696
|
+
})
|
|
31697
|
+
.catch((e) => {
|
|
31698
|
+
this.logger.error(formatErrors(e));
|
|
31699
|
+
throw e;
|
|
31700
|
+
});
|
|
31701
|
+
}),
|
|
31702
|
+
/**
|
|
31703
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=revoke&version=v2 click to debug }
|
|
31704
|
+
*
|
|
31705
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=offboarding&version=v2 document }
|
|
31706
|
+
*
|
|
31707
|
+
* 撤销离职信息
|
|
31708
|
+
*/
|
|
31709
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31710
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31711
|
+
return this.httpInstance
|
|
31712
|
+
.request({
|
|
31713
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`, path),
|
|
31714
|
+
method: "POST",
|
|
31715
|
+
data,
|
|
31716
|
+
params,
|
|
31717
|
+
headers,
|
|
31718
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31719
|
+
})
|
|
31720
|
+
.catch((e) => {
|
|
31721
|
+
this.logger.error(formatErrors(e));
|
|
31722
|
+
throw e;
|
|
31723
|
+
});
|
|
31724
|
+
}),
|
|
30563
31725
|
/**
|
|
30564
31726
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
|
|
30565
31727
|
*
|
|
@@ -30804,6 +31966,27 @@ class Client$I extends Client$J {
|
|
|
30804
31966
|
throw e;
|
|
30805
31967
|
});
|
|
30806
31968
|
}),
|
|
31969
|
+
/**
|
|
31970
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=restore_flow_instance&version=v2 click to debug }
|
|
31971
|
+
*
|
|
31972
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=restore_flow_instance&project=corehr&resource=pre_hire&version=v2 document }
|
|
31973
|
+
*/
|
|
31974
|
+
restoreFlowInstance: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31975
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31976
|
+
return this.httpInstance
|
|
31977
|
+
.request({
|
|
31978
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`, path),
|
|
31979
|
+
method: "POST",
|
|
31980
|
+
data,
|
|
31981
|
+
params,
|
|
31982
|
+
headers,
|
|
31983
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
31984
|
+
})
|
|
31985
|
+
.catch((e) => {
|
|
31986
|
+
this.logger.error(formatErrors(e));
|
|
31987
|
+
throw e;
|
|
31988
|
+
});
|
|
31989
|
+
}),
|
|
30807
31990
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30808
31991
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30809
31992
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30902,6 +32085,27 @@ class Client$I extends Client$J {
|
|
|
30902
32085
|
throw e;
|
|
30903
32086
|
});
|
|
30904
32087
|
}),
|
|
32088
|
+
/**
|
|
32089
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=withdraw_onboarding&version=v2 click to debug }
|
|
32090
|
+
*
|
|
32091
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=withdraw_onboarding&project=corehr&resource=pre_hire&version=v2 document }
|
|
32092
|
+
*/
|
|
32093
|
+
withdrawOnboarding: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32094
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32095
|
+
return this.httpInstance
|
|
32096
|
+
.request({
|
|
32097
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`, path),
|
|
32098
|
+
method: "POST",
|
|
32099
|
+
data,
|
|
32100
|
+
params,
|
|
32101
|
+
headers,
|
|
32102
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32103
|
+
})
|
|
32104
|
+
.catch((e) => {
|
|
32105
|
+
this.logger.error(formatErrors(e));
|
|
32106
|
+
throw e;
|
|
32107
|
+
});
|
|
32108
|
+
}),
|
|
30905
32109
|
},
|
|
30906
32110
|
/**
|
|
30907
32111
|
* probation.assessment
|
|
@@ -31138,6 +32342,32 @@ class Client$I extends Client$J {
|
|
|
31138
32342
|
});
|
|
31139
32343
|
}),
|
|
31140
32344
|
},
|
|
32345
|
+
/**
|
|
32346
|
+
* process.extra
|
|
32347
|
+
*/
|
|
32348
|
+
processExtra: {
|
|
32349
|
+
/**
|
|
32350
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.extra&apiName=update&version=v2 click to debug }
|
|
32351
|
+
*
|
|
32352
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.extra&version=v2 document }
|
|
32353
|
+
*/
|
|
32354
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32355
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32356
|
+
return this.httpInstance
|
|
32357
|
+
.request({
|
|
32358
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`, path),
|
|
32359
|
+
method: "PUT",
|
|
32360
|
+
data,
|
|
32361
|
+
params,
|
|
32362
|
+
headers,
|
|
32363
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32364
|
+
})
|
|
32365
|
+
.catch((e) => {
|
|
32366
|
+
this.logger.error(formatErrors(e));
|
|
32367
|
+
throw e;
|
|
32368
|
+
});
|
|
32369
|
+
}),
|
|
32370
|
+
},
|
|
31141
32371
|
/**
|
|
31142
32372
|
* process.form_variable_data
|
|
31143
32373
|
*/
|
|
@@ -31263,6 +32493,135 @@ class Client$I extends Client$J {
|
|
|
31263
32493
|
});
|
|
31264
32494
|
}),
|
|
31265
32495
|
},
|
|
32496
|
+
/**
|
|
32497
|
+
* process.transfer
|
|
32498
|
+
*/
|
|
32499
|
+
processTransfer: {
|
|
32500
|
+
/**
|
|
32501
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.transfer&apiName=update&version=v2 click to debug }
|
|
32502
|
+
*
|
|
32503
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.transfer&version=v2 document }
|
|
32504
|
+
*/
|
|
32505
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32506
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32507
|
+
return this.httpInstance
|
|
32508
|
+
.request({
|
|
32509
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`, path),
|
|
32510
|
+
method: "PUT",
|
|
32511
|
+
data,
|
|
32512
|
+
params,
|
|
32513
|
+
headers,
|
|
32514
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32515
|
+
})
|
|
32516
|
+
.catch((e) => {
|
|
32517
|
+
this.logger.error(formatErrors(e));
|
|
32518
|
+
throw e;
|
|
32519
|
+
});
|
|
32520
|
+
}),
|
|
32521
|
+
},
|
|
32522
|
+
/**
|
|
32523
|
+
* process_revoke
|
|
32524
|
+
*/
|
|
32525
|
+
processRevoke: {
|
|
32526
|
+
/**
|
|
32527
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_revoke&apiName=update&version=v2 click to debug }
|
|
32528
|
+
*
|
|
32529
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_revoke&version=v2 document }
|
|
32530
|
+
*/
|
|
32531
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32532
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32533
|
+
return this.httpInstance
|
|
32534
|
+
.request({
|
|
32535
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`, path),
|
|
32536
|
+
method: "PUT",
|
|
32537
|
+
data,
|
|
32538
|
+
params,
|
|
32539
|
+
headers,
|
|
32540
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32541
|
+
})
|
|
32542
|
+
.catch((e) => {
|
|
32543
|
+
this.logger.error(formatErrors(e));
|
|
32544
|
+
throw e;
|
|
32545
|
+
});
|
|
32546
|
+
}),
|
|
32547
|
+
},
|
|
32548
|
+
/**
|
|
32549
|
+
* process_withdraw
|
|
32550
|
+
*/
|
|
32551
|
+
processWithdraw: {
|
|
32552
|
+
/**
|
|
32553
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_withdraw&apiName=update&version=v2 click to debug }
|
|
32554
|
+
*
|
|
32555
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_withdraw&version=v2 document }
|
|
32556
|
+
*/
|
|
32557
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32558
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32559
|
+
return this.httpInstance
|
|
32560
|
+
.request({
|
|
32561
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`, path),
|
|
32562
|
+
method: "PUT",
|
|
32563
|
+
data,
|
|
32564
|
+
params,
|
|
32565
|
+
headers,
|
|
32566
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32567
|
+
})
|
|
32568
|
+
.catch((e) => {
|
|
32569
|
+
this.logger.error(formatErrors(e));
|
|
32570
|
+
throw e;
|
|
32571
|
+
});
|
|
32572
|
+
}),
|
|
32573
|
+
},
|
|
32574
|
+
/**
|
|
32575
|
+
* report_detail_row
|
|
32576
|
+
*/
|
|
32577
|
+
reportDetailRow: {
|
|
32578
|
+
/**
|
|
32579
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
32580
|
+
*
|
|
32581
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=report_detail_row&version=v2 document }
|
|
32582
|
+
*
|
|
32583
|
+
* 批量删除填报行
|
|
32584
|
+
*/
|
|
32585
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32586
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32587
|
+
return this.httpInstance
|
|
32588
|
+
.request({
|
|
32589
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`, path),
|
|
32590
|
+
method: "POST",
|
|
32591
|
+
data,
|
|
32592
|
+
params,
|
|
32593
|
+
headers,
|
|
32594
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32595
|
+
})
|
|
32596
|
+
.catch((e) => {
|
|
32597
|
+
this.logger.error(formatErrors(e));
|
|
32598
|
+
throw e;
|
|
32599
|
+
});
|
|
32600
|
+
}),
|
|
32601
|
+
/**
|
|
32602
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
32603
|
+
*
|
|
32604
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=report_detail_row&version=v2 document }
|
|
32605
|
+
*
|
|
32606
|
+
* 批量创建/更新填报行
|
|
32607
|
+
*/
|
|
32608
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32609
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32610
|
+
return this.httpInstance
|
|
32611
|
+
.request({
|
|
32612
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`, path),
|
|
32613
|
+
method: "POST",
|
|
32614
|
+
data,
|
|
32615
|
+
params,
|
|
32616
|
+
headers,
|
|
32617
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32618
|
+
})
|
|
32619
|
+
.catch((e) => {
|
|
32620
|
+
this.logger.error(formatErrors(e));
|
|
32621
|
+
throw e;
|
|
32622
|
+
});
|
|
32623
|
+
}),
|
|
32624
|
+
},
|
|
31266
32625
|
/**
|
|
31267
32626
|
* workforce_plan
|
|
31268
32627
|
*/
|
|
@@ -31367,13 +32726,64 @@ class Client$I extends Client$J {
|
|
|
31367
32726
|
});
|
|
31368
32727
|
}),
|
|
31369
32728
|
},
|
|
32729
|
+
/**
|
|
32730
|
+
* workforce_plan_detail_row
|
|
32731
|
+
*/
|
|
32732
|
+
workforcePlanDetailRow: {
|
|
32733
|
+
/**
|
|
32734
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
32735
|
+
*
|
|
32736
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
32737
|
+
*
|
|
32738
|
+
* 批量删除明细行
|
|
32739
|
+
*/
|
|
32740
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32741
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32742
|
+
return this.httpInstance
|
|
32743
|
+
.request({
|
|
32744
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`, path),
|
|
32745
|
+
method: "POST",
|
|
32746
|
+
data,
|
|
32747
|
+
params,
|
|
32748
|
+
headers,
|
|
32749
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32750
|
+
})
|
|
32751
|
+
.catch((e) => {
|
|
32752
|
+
this.logger.error(formatErrors(e));
|
|
32753
|
+
throw e;
|
|
32754
|
+
});
|
|
32755
|
+
}),
|
|
32756
|
+
/**
|
|
32757
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
32758
|
+
*
|
|
32759
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
32760
|
+
*
|
|
32761
|
+
* 批量创建/更新明细行
|
|
32762
|
+
*/
|
|
32763
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32764
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32765
|
+
return this.httpInstance
|
|
32766
|
+
.request({
|
|
32767
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`, path),
|
|
32768
|
+
method: "POST",
|
|
32769
|
+
data,
|
|
32770
|
+
params,
|
|
32771
|
+
headers,
|
|
32772
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32773
|
+
})
|
|
32774
|
+
.catch((e) => {
|
|
32775
|
+
this.logger.error(formatErrors(e));
|
|
32776
|
+
throw e;
|
|
32777
|
+
});
|
|
32778
|
+
}),
|
|
32779
|
+
},
|
|
31370
32780
|
},
|
|
31371
32781
|
};
|
|
31372
32782
|
}
|
|
31373
32783
|
}
|
|
31374
32784
|
|
|
31375
32785
|
// auto gen
|
|
31376
|
-
class Client$
|
|
32786
|
+
class Client$I extends Client$J {
|
|
31377
32787
|
constructor() {
|
|
31378
32788
|
super(...arguments);
|
|
31379
32789
|
/**
|
|
@@ -31383,6 +32793,48 @@ class Client$H extends Client$I {
|
|
|
31383
32793
|
}
|
|
31384
32794
|
}
|
|
31385
32795
|
|
|
32796
|
+
// auto gen
|
|
32797
|
+
class Client$H extends Client$I {
|
|
32798
|
+
constructor() {
|
|
32799
|
+
super(...arguments);
|
|
32800
|
+
/**
|
|
32801
|
+
|
|
32802
|
+
*/
|
|
32803
|
+
this.docs = {
|
|
32804
|
+
v1: {
|
|
32805
|
+
/**
|
|
32806
|
+
* content
|
|
32807
|
+
*/
|
|
32808
|
+
content: {
|
|
32809
|
+
/**
|
|
32810
|
+
* {@link https://open.feishu.cn/api-explorer?project=docs&resource=content&apiName=get&version=v1 click to debug }
|
|
32811
|
+
*
|
|
32812
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docs&resource=content&version=v1 document }
|
|
32813
|
+
*
|
|
32814
|
+
* 获取云文档正文内容
|
|
32815
|
+
*/
|
|
32816
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32817
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32818
|
+
return this.httpInstance
|
|
32819
|
+
.request({
|
|
32820
|
+
url: fillApiPath(`${this.domain}/open-apis/docs/v1/content`, path),
|
|
32821
|
+
method: "GET",
|
|
32822
|
+
data,
|
|
32823
|
+
params,
|
|
32824
|
+
headers,
|
|
32825
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32826
|
+
})
|
|
32827
|
+
.catch((e) => {
|
|
32828
|
+
this.logger.error(formatErrors(e));
|
|
32829
|
+
throw e;
|
|
32830
|
+
});
|
|
32831
|
+
}),
|
|
32832
|
+
},
|
|
32833
|
+
},
|
|
32834
|
+
};
|
|
32835
|
+
}
|
|
32836
|
+
}
|
|
32837
|
+
|
|
31386
32838
|
// auto gen
|
|
31387
32839
|
class Client$G extends Client$H {
|
|
31388
32840
|
constructor() {
|
|
@@ -31891,6 +33343,218 @@ class Client$F extends Client$G {
|
|
|
31891
33343
|
* 云文档-文档
|
|
31892
33344
|
*/
|
|
31893
33345
|
this.docx = {
|
|
33346
|
+
/**
|
|
33347
|
+
* chat.announcement.block
|
|
33348
|
+
*/
|
|
33349
|
+
chatAnnouncementBlock: {
|
|
33350
|
+
/**
|
|
33351
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
33352
|
+
*
|
|
33353
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33354
|
+
*/
|
|
33355
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33356
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33357
|
+
return this.httpInstance
|
|
33358
|
+
.request({
|
|
33359
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
33360
|
+
method: "PATCH",
|
|
33361
|
+
data,
|
|
33362
|
+
params,
|
|
33363
|
+
headers,
|
|
33364
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33365
|
+
})
|
|
33366
|
+
.catch((e) => {
|
|
33367
|
+
this.logger.error(formatErrors(e));
|
|
33368
|
+
throw e;
|
|
33369
|
+
});
|
|
33370
|
+
}),
|
|
33371
|
+
/**
|
|
33372
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
33373
|
+
*
|
|
33374
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33375
|
+
*/
|
|
33376
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33377
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33378
|
+
return this.httpInstance
|
|
33379
|
+
.request({
|
|
33380
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
33381
|
+
method: "GET",
|
|
33382
|
+
data,
|
|
33383
|
+
params,
|
|
33384
|
+
headers,
|
|
33385
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33386
|
+
})
|
|
33387
|
+
.catch((e) => {
|
|
33388
|
+
this.logger.error(formatErrors(e));
|
|
33389
|
+
throw e;
|
|
33390
|
+
});
|
|
33391
|
+
}),
|
|
33392
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33393
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33394
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
33395
|
+
const res = yield this.httpInstance
|
|
33396
|
+
.request({
|
|
33397
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33398
|
+
method: "GET",
|
|
33399
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
33400
|
+
params: pickBy(innerPayload.params, identity),
|
|
33401
|
+
data,
|
|
33402
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33403
|
+
})
|
|
33404
|
+
.catch((e) => {
|
|
33405
|
+
this.logger.error(formatErrors(e));
|
|
33406
|
+
});
|
|
33407
|
+
return res;
|
|
33408
|
+
});
|
|
33409
|
+
const Iterable = {
|
|
33410
|
+
[Symbol.asyncIterator]() {
|
|
33411
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
33412
|
+
let hasMore = true;
|
|
33413
|
+
let pageToken;
|
|
33414
|
+
while (hasMore) {
|
|
33415
|
+
try {
|
|
33416
|
+
const res = yield __await(sendRequest({
|
|
33417
|
+
headers,
|
|
33418
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
33419
|
+
data,
|
|
33420
|
+
}));
|
|
33421
|
+
const _b = get(res, "data") || {}, {
|
|
33422
|
+
// @ts-ignore
|
|
33423
|
+
has_more,
|
|
33424
|
+
// @ts-ignore
|
|
33425
|
+
page_token,
|
|
33426
|
+
// @ts-ignore
|
|
33427
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
33428
|
+
yield yield __await(rest);
|
|
33429
|
+
hasMore = Boolean(has_more);
|
|
33430
|
+
pageToken = page_token || next_page_token;
|
|
33431
|
+
}
|
|
33432
|
+
catch (e) {
|
|
33433
|
+
yield yield __await(null);
|
|
33434
|
+
break;
|
|
33435
|
+
}
|
|
33436
|
+
}
|
|
33437
|
+
});
|
|
33438
|
+
},
|
|
33439
|
+
};
|
|
33440
|
+
return Iterable;
|
|
33441
|
+
}),
|
|
33442
|
+
/**
|
|
33443
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
33444
|
+
*
|
|
33445
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33446
|
+
*/
|
|
33447
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33448
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33449
|
+
return this.httpInstance
|
|
33450
|
+
.request({
|
|
33451
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33452
|
+
method: "GET",
|
|
33453
|
+
data,
|
|
33454
|
+
params,
|
|
33455
|
+
headers,
|
|
33456
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33457
|
+
})
|
|
33458
|
+
.catch((e) => {
|
|
33459
|
+
this.logger.error(formatErrors(e));
|
|
33460
|
+
throw e;
|
|
33461
|
+
});
|
|
33462
|
+
}),
|
|
33463
|
+
},
|
|
33464
|
+
/**
|
|
33465
|
+
* chat.announcement.block.children
|
|
33466
|
+
*/
|
|
33467
|
+
chatAnnouncementBlockChildren: {
|
|
33468
|
+
/**
|
|
33469
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
33470
|
+
*
|
|
33471
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33472
|
+
*/
|
|
33473
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33474
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33475
|
+
return this.httpInstance
|
|
33476
|
+
.request({
|
|
33477
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
33478
|
+
method: "DELETE",
|
|
33479
|
+
data,
|
|
33480
|
+
params,
|
|
33481
|
+
headers,
|
|
33482
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33483
|
+
})
|
|
33484
|
+
.catch((e) => {
|
|
33485
|
+
this.logger.error(formatErrors(e));
|
|
33486
|
+
throw e;
|
|
33487
|
+
});
|
|
33488
|
+
}),
|
|
33489
|
+
/**
|
|
33490
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
33491
|
+
*
|
|
33492
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33493
|
+
*/
|
|
33494
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33495
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33496
|
+
return this.httpInstance
|
|
33497
|
+
.request({
|
|
33498
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33499
|
+
method: "POST",
|
|
33500
|
+
data,
|
|
33501
|
+
params,
|
|
33502
|
+
headers,
|
|
33503
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33504
|
+
})
|
|
33505
|
+
.catch((e) => {
|
|
33506
|
+
this.logger.error(formatErrors(e));
|
|
33507
|
+
throw e;
|
|
33508
|
+
});
|
|
33509
|
+
}),
|
|
33510
|
+
/**
|
|
33511
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
33512
|
+
*
|
|
33513
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33514
|
+
*/
|
|
33515
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33516
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33517
|
+
return this.httpInstance
|
|
33518
|
+
.request({
|
|
33519
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33520
|
+
method: "GET",
|
|
33521
|
+
data,
|
|
33522
|
+
params,
|
|
33523
|
+
headers,
|
|
33524
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33525
|
+
})
|
|
33526
|
+
.catch((e) => {
|
|
33527
|
+
this.logger.error(formatErrors(e));
|
|
33528
|
+
throw e;
|
|
33529
|
+
});
|
|
33530
|
+
}),
|
|
33531
|
+
},
|
|
33532
|
+
/**
|
|
33533
|
+
* chat.announcement
|
|
33534
|
+
*/
|
|
33535
|
+
chatAnnouncement: {
|
|
33536
|
+
/**
|
|
33537
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
33538
|
+
*
|
|
33539
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
33540
|
+
*/
|
|
33541
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33542
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33543
|
+
return this.httpInstance
|
|
33544
|
+
.request({
|
|
33545
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
33546
|
+
method: "GET",
|
|
33547
|
+
data,
|
|
33548
|
+
params,
|
|
33549
|
+
headers,
|
|
33550
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33551
|
+
})
|
|
33552
|
+
.catch((e) => {
|
|
33553
|
+
this.logger.error(formatErrors(e));
|
|
33554
|
+
throw e;
|
|
33555
|
+
});
|
|
33556
|
+
}),
|
|
33557
|
+
},
|
|
31894
33558
|
/**
|
|
31895
33559
|
* 块
|
|
31896
33560
|
*/
|
|
@@ -32323,6 +33987,220 @@ class Client$F extends Client$G {
|
|
|
32323
33987
|
}),
|
|
32324
33988
|
},
|
|
32325
33989
|
v1: {
|
|
33990
|
+
/**
|
|
33991
|
+
* chat.announcement.block
|
|
33992
|
+
*/
|
|
33993
|
+
chatAnnouncementBlock: {
|
|
33994
|
+
/**
|
|
33995
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
33996
|
+
*
|
|
33997
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33998
|
+
*/
|
|
33999
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34000
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34001
|
+
return this.httpInstance
|
|
34002
|
+
.request({
|
|
34003
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
34004
|
+
method: "PATCH",
|
|
34005
|
+
data,
|
|
34006
|
+
params,
|
|
34007
|
+
headers,
|
|
34008
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34009
|
+
})
|
|
34010
|
+
.catch((e) => {
|
|
34011
|
+
this.logger.error(formatErrors(e));
|
|
34012
|
+
throw e;
|
|
34013
|
+
});
|
|
34014
|
+
}),
|
|
34015
|
+
/**
|
|
34016
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
34017
|
+
*
|
|
34018
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34019
|
+
*/
|
|
34020
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34021
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34022
|
+
return this.httpInstance
|
|
34023
|
+
.request({
|
|
34024
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
34025
|
+
method: "GET",
|
|
34026
|
+
data,
|
|
34027
|
+
params,
|
|
34028
|
+
headers,
|
|
34029
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34030
|
+
})
|
|
34031
|
+
.catch((e) => {
|
|
34032
|
+
this.logger.error(formatErrors(e));
|
|
34033
|
+
throw e;
|
|
34034
|
+
});
|
|
34035
|
+
}),
|
|
34036
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34037
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34038
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
34039
|
+
const res = yield this.httpInstance
|
|
34040
|
+
.request({
|
|
34041
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34042
|
+
method: "GET",
|
|
34043
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
34044
|
+
params: pickBy(innerPayload.params, identity),
|
|
34045
|
+
data,
|
|
34046
|
+
paramsSerializer: (params) => stringify(params, {
|
|
34047
|
+
arrayFormat: "repeat",
|
|
34048
|
+
}),
|
|
34049
|
+
})
|
|
34050
|
+
.catch((e) => {
|
|
34051
|
+
this.logger.error(formatErrors(e));
|
|
34052
|
+
});
|
|
34053
|
+
return res;
|
|
34054
|
+
});
|
|
34055
|
+
const Iterable = {
|
|
34056
|
+
[Symbol.asyncIterator]() {
|
|
34057
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
34058
|
+
let hasMore = true;
|
|
34059
|
+
let pageToken;
|
|
34060
|
+
while (hasMore) {
|
|
34061
|
+
try {
|
|
34062
|
+
const res = yield __await(sendRequest({
|
|
34063
|
+
headers,
|
|
34064
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
34065
|
+
data,
|
|
34066
|
+
}));
|
|
34067
|
+
const _b = get(res, "data") || {}, {
|
|
34068
|
+
// @ts-ignore
|
|
34069
|
+
has_more,
|
|
34070
|
+
// @ts-ignore
|
|
34071
|
+
page_token,
|
|
34072
|
+
// @ts-ignore
|
|
34073
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
34074
|
+
yield yield __await(rest);
|
|
34075
|
+
hasMore = Boolean(has_more);
|
|
34076
|
+
pageToken = page_token || next_page_token;
|
|
34077
|
+
}
|
|
34078
|
+
catch (e) {
|
|
34079
|
+
yield yield __await(null);
|
|
34080
|
+
break;
|
|
34081
|
+
}
|
|
34082
|
+
}
|
|
34083
|
+
});
|
|
34084
|
+
},
|
|
34085
|
+
};
|
|
34086
|
+
return Iterable;
|
|
34087
|
+
}),
|
|
34088
|
+
/**
|
|
34089
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
34090
|
+
*
|
|
34091
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34092
|
+
*/
|
|
34093
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34094
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34095
|
+
return this.httpInstance
|
|
34096
|
+
.request({
|
|
34097
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34098
|
+
method: "GET",
|
|
34099
|
+
data,
|
|
34100
|
+
params,
|
|
34101
|
+
headers,
|
|
34102
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34103
|
+
})
|
|
34104
|
+
.catch((e) => {
|
|
34105
|
+
this.logger.error(formatErrors(e));
|
|
34106
|
+
throw e;
|
|
34107
|
+
});
|
|
34108
|
+
}),
|
|
34109
|
+
},
|
|
34110
|
+
/**
|
|
34111
|
+
* chat.announcement.block.children
|
|
34112
|
+
*/
|
|
34113
|
+
chatAnnouncementBlockChildren: {
|
|
34114
|
+
/**
|
|
34115
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
34116
|
+
*
|
|
34117
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34118
|
+
*/
|
|
34119
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34120
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34121
|
+
return this.httpInstance
|
|
34122
|
+
.request({
|
|
34123
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
34124
|
+
method: "DELETE",
|
|
34125
|
+
data,
|
|
34126
|
+
params,
|
|
34127
|
+
headers,
|
|
34128
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34129
|
+
})
|
|
34130
|
+
.catch((e) => {
|
|
34131
|
+
this.logger.error(formatErrors(e));
|
|
34132
|
+
throw e;
|
|
34133
|
+
});
|
|
34134
|
+
}),
|
|
34135
|
+
/**
|
|
34136
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
34137
|
+
*
|
|
34138
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34139
|
+
*/
|
|
34140
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34141
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34142
|
+
return this.httpInstance
|
|
34143
|
+
.request({
|
|
34144
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34145
|
+
method: "POST",
|
|
34146
|
+
data,
|
|
34147
|
+
params,
|
|
34148
|
+
headers,
|
|
34149
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34150
|
+
})
|
|
34151
|
+
.catch((e) => {
|
|
34152
|
+
this.logger.error(formatErrors(e));
|
|
34153
|
+
throw e;
|
|
34154
|
+
});
|
|
34155
|
+
}),
|
|
34156
|
+
/**
|
|
34157
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
34158
|
+
*
|
|
34159
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34160
|
+
*/
|
|
34161
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34162
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34163
|
+
return this.httpInstance
|
|
34164
|
+
.request({
|
|
34165
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34166
|
+
method: "GET",
|
|
34167
|
+
data,
|
|
34168
|
+
params,
|
|
34169
|
+
headers,
|
|
34170
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34171
|
+
})
|
|
34172
|
+
.catch((e) => {
|
|
34173
|
+
this.logger.error(formatErrors(e));
|
|
34174
|
+
throw e;
|
|
34175
|
+
});
|
|
34176
|
+
}),
|
|
34177
|
+
},
|
|
34178
|
+
/**
|
|
34179
|
+
* chat.announcement
|
|
34180
|
+
*/
|
|
34181
|
+
chatAnnouncement: {
|
|
34182
|
+
/**
|
|
34183
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
34184
|
+
*
|
|
34185
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
34186
|
+
*/
|
|
34187
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34188
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34189
|
+
return this.httpInstance
|
|
34190
|
+
.request({
|
|
34191
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
34192
|
+
method: "GET",
|
|
34193
|
+
data,
|
|
34194
|
+
params,
|
|
34195
|
+
headers,
|
|
34196
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34197
|
+
})
|
|
34198
|
+
.catch((e) => {
|
|
34199
|
+
this.logger.error(formatErrors(e));
|
|
34200
|
+
throw e;
|
|
34201
|
+
});
|
|
34202
|
+
}),
|
|
34203
|
+
},
|
|
32326
34204
|
/**
|
|
32327
34205
|
* 块
|
|
32328
34206
|
*/
|
|
@@ -32768,7 +34646,7 @@ class Client$E extends Client$F {
|
|
|
32768
34646
|
constructor() {
|
|
32769
34647
|
super(...arguments);
|
|
32770
34648
|
/**
|
|
32771
|
-
*
|
|
34649
|
+
* 云文档-文档
|
|
32772
34650
|
*/
|
|
32773
34651
|
this.drive = {
|
|
32774
34652
|
/**
|
|
@@ -36414,6 +38292,86 @@ class Client$E extends Client$F {
|
|
|
36414
38292
|
},
|
|
36415
38293
|
},
|
|
36416
38294
|
v2: {
|
|
38295
|
+
/**
|
|
38296
|
+
* file.like
|
|
38297
|
+
*/
|
|
38298
|
+
fileLike: {
|
|
38299
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38300
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38301
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
38302
|
+
const res = yield this.httpInstance
|
|
38303
|
+
.request({
|
|
38304
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38305
|
+
method: "GET",
|
|
38306
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
38307
|
+
params: pickBy(innerPayload.params, identity),
|
|
38308
|
+
data,
|
|
38309
|
+
paramsSerializer: (params) => stringify(params, {
|
|
38310
|
+
arrayFormat: "repeat",
|
|
38311
|
+
}),
|
|
38312
|
+
})
|
|
38313
|
+
.catch((e) => {
|
|
38314
|
+
this.logger.error(formatErrors(e));
|
|
38315
|
+
});
|
|
38316
|
+
return res;
|
|
38317
|
+
});
|
|
38318
|
+
const Iterable = {
|
|
38319
|
+
[Symbol.asyncIterator]() {
|
|
38320
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
38321
|
+
let hasMore = true;
|
|
38322
|
+
let pageToken;
|
|
38323
|
+
while (hasMore) {
|
|
38324
|
+
try {
|
|
38325
|
+
const res = yield __await(sendRequest({
|
|
38326
|
+
headers,
|
|
38327
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
38328
|
+
data,
|
|
38329
|
+
}));
|
|
38330
|
+
const _b = get(res, "data") || {}, {
|
|
38331
|
+
// @ts-ignore
|
|
38332
|
+
has_more,
|
|
38333
|
+
// @ts-ignore
|
|
38334
|
+
page_token,
|
|
38335
|
+
// @ts-ignore
|
|
38336
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
38337
|
+
yield yield __await(rest);
|
|
38338
|
+
hasMore = Boolean(has_more);
|
|
38339
|
+
pageToken = page_token || next_page_token;
|
|
38340
|
+
}
|
|
38341
|
+
catch (e) {
|
|
38342
|
+
yield yield __await(null);
|
|
38343
|
+
break;
|
|
38344
|
+
}
|
|
38345
|
+
}
|
|
38346
|
+
});
|
|
38347
|
+
},
|
|
38348
|
+
};
|
|
38349
|
+
return Iterable;
|
|
38350
|
+
}),
|
|
38351
|
+
/**
|
|
38352
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.like&apiName=list&version=v2 click to debug }
|
|
38353
|
+
*
|
|
38354
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=drive&resource=file.like&version=v2 document }
|
|
38355
|
+
*
|
|
38356
|
+
* 获取指定文件的点赞者列表并分页返回。
|
|
38357
|
+
*/
|
|
38358
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38359
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38360
|
+
return this.httpInstance
|
|
38361
|
+
.request({
|
|
38362
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38363
|
+
method: "GET",
|
|
38364
|
+
data,
|
|
38365
|
+
params,
|
|
38366
|
+
headers,
|
|
38367
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
38368
|
+
})
|
|
38369
|
+
.catch((e) => {
|
|
38370
|
+
this.logger.error(formatErrors(e));
|
|
38371
|
+
throw e;
|
|
38372
|
+
});
|
|
38373
|
+
}),
|
|
38374
|
+
},
|
|
36417
38375
|
/**
|
|
36418
38376
|
* permission.public
|
|
36419
38377
|
*/
|
|
@@ -40347,6 +42305,27 @@ class Client$u extends Client$v {
|
|
|
40347
42305
|
* 猎头(灰度租户可见)
|
|
40348
42306
|
*/
|
|
40349
42307
|
agency: {
|
|
42308
|
+
/**
|
|
42309
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
42310
|
+
*
|
|
42311
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
42312
|
+
*/
|
|
42313
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42314
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42315
|
+
return this.httpInstance
|
|
42316
|
+
.request({
|
|
42317
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
42318
|
+
method: "POST",
|
|
42319
|
+
data,
|
|
42320
|
+
params,
|
|
42321
|
+
headers,
|
|
42322
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42323
|
+
})
|
|
42324
|
+
.catch((e) => {
|
|
42325
|
+
this.logger.error(formatErrors(e));
|
|
42326
|
+
throw e;
|
|
42327
|
+
});
|
|
42328
|
+
}),
|
|
40350
42329
|
/**
|
|
40351
42330
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
40352
42331
|
*
|
|
@@ -40372,6 +42351,48 @@ class Client$u extends Client$v {
|
|
|
40372
42351
|
throw e;
|
|
40373
42352
|
});
|
|
40374
42353
|
}),
|
|
42354
|
+
/**
|
|
42355
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
42356
|
+
*
|
|
42357
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
42358
|
+
*/
|
|
42359
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42360
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42361
|
+
return this.httpInstance
|
|
42362
|
+
.request({
|
|
42363
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
42364
|
+
method: "POST",
|
|
42365
|
+
data,
|
|
42366
|
+
params,
|
|
42367
|
+
headers,
|
|
42368
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42369
|
+
})
|
|
42370
|
+
.catch((e) => {
|
|
42371
|
+
this.logger.error(formatErrors(e));
|
|
42372
|
+
throw e;
|
|
42373
|
+
});
|
|
42374
|
+
}),
|
|
42375
|
+
/**
|
|
42376
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
42377
|
+
*
|
|
42378
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
42379
|
+
*/
|
|
42380
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42381
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42382
|
+
return this.httpInstance
|
|
42383
|
+
.request({
|
|
42384
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
42385
|
+
method: "POST",
|
|
42386
|
+
data,
|
|
42387
|
+
params,
|
|
42388
|
+
headers,
|
|
42389
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42390
|
+
})
|
|
42391
|
+
.catch((e) => {
|
|
42392
|
+
this.logger.error(formatErrors(e));
|
|
42393
|
+
throw e;
|
|
42394
|
+
});
|
|
42395
|
+
}),
|
|
40375
42396
|
/**
|
|
40376
42397
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
40377
42398
|
*
|
|
@@ -40445,7 +42466,7 @@ class Client$u extends Client$v {
|
|
|
40445
42466
|
}),
|
|
40446
42467
|
},
|
|
40447
42468
|
/**
|
|
40448
|
-
*
|
|
42469
|
+
* 投递
|
|
40449
42470
|
*/
|
|
40450
42471
|
application: {
|
|
40451
42472
|
/**
|
|
@@ -40498,6 +42519,27 @@ class Client$u extends Client$v {
|
|
|
40498
42519
|
throw e;
|
|
40499
42520
|
});
|
|
40500
42521
|
}),
|
|
42522
|
+
/**
|
|
42523
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
42524
|
+
*
|
|
42525
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
42526
|
+
*/
|
|
42527
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42528
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42529
|
+
return this.httpInstance
|
|
42530
|
+
.request({
|
|
42531
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
42532
|
+
method: "GET",
|
|
42533
|
+
data,
|
|
42534
|
+
params,
|
|
42535
|
+
headers,
|
|
42536
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
42537
|
+
})
|
|
42538
|
+
.catch((e) => {
|
|
42539
|
+
this.logger.error(formatErrors(e));
|
|
42540
|
+
throw e;
|
|
42541
|
+
});
|
|
42542
|
+
}),
|
|
40501
42543
|
/**
|
|
40502
42544
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
40503
42545
|
*
|
|
@@ -41722,18 +43764,260 @@ class Client$u extends Client$v {
|
|
|
41722
43764
|
return Iterable;
|
|
41723
43765
|
}),
|
|
41724
43766
|
/**
|
|
41725
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
41726
|
-
*
|
|
41727
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
43767
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
43768
|
+
*
|
|
43769
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
43770
|
+
*
|
|
43771
|
+
* 根据人才 id 获取外部投递列表
|
|
43772
|
+
*/
|
|
43773
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43774
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43775
|
+
return this.httpInstance
|
|
43776
|
+
.request({
|
|
43777
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
43778
|
+
method: "GET",
|
|
43779
|
+
data,
|
|
43780
|
+
params,
|
|
43781
|
+
headers,
|
|
43782
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43783
|
+
})
|
|
43784
|
+
.catch((e) => {
|
|
43785
|
+
this.logger.error(formatErrors(e));
|
|
43786
|
+
throw e;
|
|
43787
|
+
});
|
|
43788
|
+
}),
|
|
43789
|
+
/**
|
|
43790
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
43791
|
+
*
|
|
43792
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
43793
|
+
*
|
|
43794
|
+
* 更新外部投递
|
|
43795
|
+
*/
|
|
43796
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43797
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43798
|
+
return this.httpInstance
|
|
43799
|
+
.request({
|
|
43800
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
43801
|
+
method: "PUT",
|
|
43802
|
+
data,
|
|
43803
|
+
params,
|
|
43804
|
+
headers,
|
|
43805
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43806
|
+
})
|
|
43807
|
+
.catch((e) => {
|
|
43808
|
+
this.logger.error(formatErrors(e));
|
|
43809
|
+
throw e;
|
|
43810
|
+
});
|
|
43811
|
+
}),
|
|
43812
|
+
},
|
|
43813
|
+
/**
|
|
43814
|
+
* 导入外部系统信息(灰度租户可见)
|
|
43815
|
+
*/
|
|
43816
|
+
externalBackgroundCheck: {
|
|
43817
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43818
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43819
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43820
|
+
const res = yield this.httpInstance
|
|
43821
|
+
.request({
|
|
43822
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
43823
|
+
method: "POST",
|
|
43824
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
43825
|
+
params: pickBy(innerPayload.params, identity),
|
|
43826
|
+
data,
|
|
43827
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43828
|
+
})
|
|
43829
|
+
.catch((e) => {
|
|
43830
|
+
this.logger.error(formatErrors(e));
|
|
43831
|
+
});
|
|
43832
|
+
return res;
|
|
43833
|
+
});
|
|
43834
|
+
const Iterable = {
|
|
43835
|
+
[Symbol.asyncIterator]() {
|
|
43836
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43837
|
+
let hasMore = true;
|
|
43838
|
+
let pageToken;
|
|
43839
|
+
while (hasMore) {
|
|
43840
|
+
try {
|
|
43841
|
+
const res = yield __await(sendRequest({
|
|
43842
|
+
headers,
|
|
43843
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
43844
|
+
data,
|
|
43845
|
+
}));
|
|
43846
|
+
const _b = get(res, "data") || {}, {
|
|
43847
|
+
// @ts-ignore
|
|
43848
|
+
has_more,
|
|
43849
|
+
// @ts-ignore
|
|
43850
|
+
page_token,
|
|
43851
|
+
// @ts-ignore
|
|
43852
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
43853
|
+
yield yield __await(rest);
|
|
43854
|
+
hasMore = Boolean(has_more);
|
|
43855
|
+
pageToken = page_token || next_page_token;
|
|
43856
|
+
}
|
|
43857
|
+
catch (e) {
|
|
43858
|
+
yield yield __await(null);
|
|
43859
|
+
break;
|
|
43860
|
+
}
|
|
43861
|
+
}
|
|
43862
|
+
});
|
|
43863
|
+
},
|
|
43864
|
+
};
|
|
43865
|
+
return Iterable;
|
|
43866
|
+
}),
|
|
43867
|
+
/**
|
|
43868
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
43869
|
+
*
|
|
43870
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
43871
|
+
*/
|
|
43872
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43873
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43874
|
+
return this.httpInstance
|
|
43875
|
+
.request({
|
|
43876
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
43877
|
+
method: "POST",
|
|
43878
|
+
data,
|
|
43879
|
+
params,
|
|
43880
|
+
headers,
|
|
43881
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43882
|
+
})
|
|
43883
|
+
.catch((e) => {
|
|
43884
|
+
this.logger.error(formatErrors(e));
|
|
43885
|
+
throw e;
|
|
43886
|
+
});
|
|
43887
|
+
}),
|
|
43888
|
+
/**
|
|
43889
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
43890
|
+
*
|
|
43891
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
43892
|
+
*
|
|
43893
|
+
* 创建外部背调
|
|
43894
|
+
*
|
|
43895
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
43896
|
+
*/
|
|
43897
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43898
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43899
|
+
return this.httpInstance
|
|
43900
|
+
.request({
|
|
43901
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
43902
|
+
method: "POST",
|
|
43903
|
+
data,
|
|
43904
|
+
params,
|
|
43905
|
+
headers,
|
|
43906
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43907
|
+
})
|
|
43908
|
+
.catch((e) => {
|
|
43909
|
+
this.logger.error(formatErrors(e));
|
|
43910
|
+
throw e;
|
|
43911
|
+
});
|
|
43912
|
+
}),
|
|
43913
|
+
/**
|
|
43914
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
43915
|
+
*
|
|
43916
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
43917
|
+
*/
|
|
43918
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43919
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43920
|
+
return this.httpInstance
|
|
43921
|
+
.request({
|
|
43922
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
43923
|
+
method: "DELETE",
|
|
43924
|
+
data,
|
|
43925
|
+
params,
|
|
43926
|
+
headers,
|
|
43927
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43928
|
+
})
|
|
43929
|
+
.catch((e) => {
|
|
43930
|
+
this.logger.error(formatErrors(e));
|
|
43931
|
+
throw e;
|
|
43932
|
+
});
|
|
43933
|
+
}),
|
|
43934
|
+
/**
|
|
43935
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
43936
|
+
*
|
|
43937
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
43938
|
+
*/
|
|
43939
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43940
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43941
|
+
return this.httpInstance
|
|
43942
|
+
.request({
|
|
43943
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
43944
|
+
method: "PUT",
|
|
43945
|
+
data,
|
|
43946
|
+
params,
|
|
43947
|
+
headers,
|
|
43948
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43949
|
+
})
|
|
43950
|
+
.catch((e) => {
|
|
43951
|
+
this.logger.error(formatErrors(e));
|
|
43952
|
+
throw e;
|
|
43953
|
+
});
|
|
43954
|
+
}),
|
|
43955
|
+
},
|
|
43956
|
+
/**
|
|
43957
|
+
* 导入外部系统信息(灰度租户可见)
|
|
43958
|
+
*/
|
|
43959
|
+
externalInterview: {
|
|
43960
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43961
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43962
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43963
|
+
const res = yield this.httpInstance
|
|
43964
|
+
.request({
|
|
43965
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
43966
|
+
method: "POST",
|
|
43967
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
43968
|
+
params: pickBy(innerPayload.params, identity),
|
|
43969
|
+
data,
|
|
43970
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
43971
|
+
})
|
|
43972
|
+
.catch((e) => {
|
|
43973
|
+
this.logger.error(formatErrors(e));
|
|
43974
|
+
});
|
|
43975
|
+
return res;
|
|
43976
|
+
});
|
|
43977
|
+
const Iterable = {
|
|
43978
|
+
[Symbol.asyncIterator]() {
|
|
43979
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43980
|
+
let hasMore = true;
|
|
43981
|
+
let pageToken;
|
|
43982
|
+
while (hasMore) {
|
|
43983
|
+
try {
|
|
43984
|
+
const res = yield __await(sendRequest({
|
|
43985
|
+
headers,
|
|
43986
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
43987
|
+
data,
|
|
43988
|
+
}));
|
|
43989
|
+
const _b = get(res, "data") || {}, {
|
|
43990
|
+
// @ts-ignore
|
|
43991
|
+
has_more,
|
|
43992
|
+
// @ts-ignore
|
|
43993
|
+
page_token,
|
|
43994
|
+
// @ts-ignore
|
|
43995
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
43996
|
+
yield yield __await(rest);
|
|
43997
|
+
hasMore = Boolean(has_more);
|
|
43998
|
+
pageToken = page_token || next_page_token;
|
|
43999
|
+
}
|
|
44000
|
+
catch (e) {
|
|
44001
|
+
yield yield __await(null);
|
|
44002
|
+
break;
|
|
44003
|
+
}
|
|
44004
|
+
}
|
|
44005
|
+
});
|
|
44006
|
+
},
|
|
44007
|
+
};
|
|
44008
|
+
return Iterable;
|
|
44009
|
+
}),
|
|
44010
|
+
/**
|
|
44011
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
41728
44012
|
*
|
|
41729
|
-
*
|
|
44013
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
41730
44014
|
*/
|
|
41731
|
-
|
|
44015
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41732
44016
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41733
44017
|
return this.httpInstance
|
|
41734
44018
|
.request({
|
|
41735
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41736
|
-
method: "
|
|
44019
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
44020
|
+
method: "POST",
|
|
41737
44021
|
data,
|
|
41738
44022
|
params,
|
|
41739
44023
|
headers,
|
|
@@ -41745,18 +44029,20 @@ class Client$u extends Client$v {
|
|
|
41745
44029
|
});
|
|
41746
44030
|
}),
|
|
41747
44031
|
/**
|
|
41748
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
44032
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
41749
44033
|
*
|
|
41750
|
-
* {@link https://open.feishu.cn/
|
|
44034
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
41751
44035
|
*
|
|
41752
|
-
*
|
|
44036
|
+
* 创建外部面试
|
|
44037
|
+
*
|
|
44038
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
41753
44039
|
*/
|
|
41754
|
-
|
|
44040
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41755
44041
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41756
44042
|
return this.httpInstance
|
|
41757
44043
|
.request({
|
|
41758
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41759
|
-
method: "
|
|
44044
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
44045
|
+
method: "POST",
|
|
41760
44046
|
data,
|
|
41761
44047
|
params,
|
|
41762
44048
|
headers,
|
|
@@ -41767,26 +44053,17 @@ class Client$u extends Client$v {
|
|
|
41767
44053
|
throw e;
|
|
41768
44054
|
});
|
|
41769
44055
|
}),
|
|
41770
|
-
},
|
|
41771
|
-
/**
|
|
41772
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41773
|
-
*/
|
|
41774
|
-
externalBackgroundCheck: {
|
|
41775
44056
|
/**
|
|
41776
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
44057
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
41777
44058
|
*
|
|
41778
|
-
* {@link https://open.feishu.cn/
|
|
41779
|
-
*
|
|
41780
|
-
* 创建外部背调
|
|
41781
|
-
*
|
|
41782
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
44059
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
41783
44060
|
*/
|
|
41784
|
-
|
|
44061
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41785
44062
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41786
44063
|
return this.httpInstance
|
|
41787
44064
|
.request({
|
|
41788
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41789
|
-
method: "
|
|
44065
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
44066
|
+
method: "DELETE",
|
|
41790
44067
|
data,
|
|
41791
44068
|
params,
|
|
41792
44069
|
headers,
|
|
@@ -41797,26 +44074,17 @@ class Client$u extends Client$v {
|
|
|
41797
44074
|
throw e;
|
|
41798
44075
|
});
|
|
41799
44076
|
}),
|
|
41800
|
-
},
|
|
41801
|
-
/**
|
|
41802
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41803
|
-
*/
|
|
41804
|
-
externalInterview: {
|
|
41805
44077
|
/**
|
|
41806
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
44078
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
41807
44079
|
*
|
|
41808
|
-
* {@link https://open.feishu.cn/
|
|
41809
|
-
*
|
|
41810
|
-
* 创建外部面试
|
|
41811
|
-
*
|
|
41812
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
44080
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
41813
44081
|
*/
|
|
41814
|
-
|
|
44082
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41815
44083
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41816
44084
|
return this.httpInstance
|
|
41817
44085
|
.request({
|
|
41818
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
41819
|
-
method: "
|
|
44086
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
44087
|
+
method: "PUT",
|
|
41820
44088
|
data,
|
|
41821
44089
|
params,
|
|
41822
44090
|
headers,
|
|
@@ -41879,6 +44147,145 @@ class Client$u extends Client$v {
|
|
|
41879
44147
|
});
|
|
41880
44148
|
}),
|
|
41881
44149
|
},
|
|
44150
|
+
/**
|
|
44151
|
+
* external_offer
|
|
44152
|
+
*/
|
|
44153
|
+
externalOffer: {
|
|
44154
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44155
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44156
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
44157
|
+
const res = yield this.httpInstance
|
|
44158
|
+
.request({
|
|
44159
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
44160
|
+
method: "POST",
|
|
44161
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
44162
|
+
params: pickBy(innerPayload.params, identity),
|
|
44163
|
+
data,
|
|
44164
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44165
|
+
})
|
|
44166
|
+
.catch((e) => {
|
|
44167
|
+
this.logger.error(formatErrors(e));
|
|
44168
|
+
});
|
|
44169
|
+
return res;
|
|
44170
|
+
});
|
|
44171
|
+
const Iterable = {
|
|
44172
|
+
[Symbol.asyncIterator]() {
|
|
44173
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
44174
|
+
let hasMore = true;
|
|
44175
|
+
let pageToken;
|
|
44176
|
+
while (hasMore) {
|
|
44177
|
+
try {
|
|
44178
|
+
const res = yield __await(sendRequest({
|
|
44179
|
+
headers,
|
|
44180
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44181
|
+
data,
|
|
44182
|
+
}));
|
|
44183
|
+
const _b = get(res, "data") || {}, {
|
|
44184
|
+
// @ts-ignore
|
|
44185
|
+
has_more,
|
|
44186
|
+
// @ts-ignore
|
|
44187
|
+
page_token,
|
|
44188
|
+
// @ts-ignore
|
|
44189
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44190
|
+
yield yield __await(rest);
|
|
44191
|
+
hasMore = Boolean(has_more);
|
|
44192
|
+
pageToken = page_token || next_page_token;
|
|
44193
|
+
}
|
|
44194
|
+
catch (e) {
|
|
44195
|
+
yield yield __await(null);
|
|
44196
|
+
break;
|
|
44197
|
+
}
|
|
44198
|
+
}
|
|
44199
|
+
});
|
|
44200
|
+
},
|
|
44201
|
+
};
|
|
44202
|
+
return Iterable;
|
|
44203
|
+
}),
|
|
44204
|
+
/**
|
|
44205
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
44206
|
+
*
|
|
44207
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
44208
|
+
*/
|
|
44209
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44210
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44211
|
+
return this.httpInstance
|
|
44212
|
+
.request({
|
|
44213
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
44214
|
+
method: "POST",
|
|
44215
|
+
data,
|
|
44216
|
+
params,
|
|
44217
|
+
headers,
|
|
44218
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44219
|
+
})
|
|
44220
|
+
.catch((e) => {
|
|
44221
|
+
this.logger.error(formatErrors(e));
|
|
44222
|
+
throw e;
|
|
44223
|
+
});
|
|
44224
|
+
}),
|
|
44225
|
+
/**
|
|
44226
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
44227
|
+
*
|
|
44228
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
44229
|
+
*/
|
|
44230
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44231
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44232
|
+
return this.httpInstance
|
|
44233
|
+
.request({
|
|
44234
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
44235
|
+
method: "POST",
|
|
44236
|
+
data,
|
|
44237
|
+
params,
|
|
44238
|
+
headers,
|
|
44239
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44240
|
+
})
|
|
44241
|
+
.catch((e) => {
|
|
44242
|
+
this.logger.error(formatErrors(e));
|
|
44243
|
+
throw e;
|
|
44244
|
+
});
|
|
44245
|
+
}),
|
|
44246
|
+
/**
|
|
44247
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
44248
|
+
*
|
|
44249
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
44250
|
+
*/
|
|
44251
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44252
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44253
|
+
return this.httpInstance
|
|
44254
|
+
.request({
|
|
44255
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
44256
|
+
method: "DELETE",
|
|
44257
|
+
data,
|
|
44258
|
+
params,
|
|
44259
|
+
headers,
|
|
44260
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44261
|
+
})
|
|
44262
|
+
.catch((e) => {
|
|
44263
|
+
this.logger.error(formatErrors(e));
|
|
44264
|
+
throw e;
|
|
44265
|
+
});
|
|
44266
|
+
}),
|
|
44267
|
+
/**
|
|
44268
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
44269
|
+
*
|
|
44270
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
44271
|
+
*/
|
|
44272
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44273
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44274
|
+
return this.httpInstance
|
|
44275
|
+
.request({
|
|
44276
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
44277
|
+
method: "PUT",
|
|
44278
|
+
data,
|
|
44279
|
+
params,
|
|
44280
|
+
headers,
|
|
44281
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44282
|
+
})
|
|
44283
|
+
.catch((e) => {
|
|
44284
|
+
this.logger.error(formatErrors(e));
|
|
44285
|
+
throw e;
|
|
44286
|
+
});
|
|
44287
|
+
}),
|
|
44288
|
+
},
|
|
41882
44289
|
/**
|
|
41883
44290
|
* external_referral_reward
|
|
41884
44291
|
*/
|
|
@@ -42600,6 +45007,27 @@ class Client$u extends Client$v {
|
|
|
42600
45007
|
throw e;
|
|
42601
45008
|
});
|
|
42602
45009
|
}),
|
|
45010
|
+
/**
|
|
45011
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
45012
|
+
*
|
|
45013
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
45014
|
+
*/
|
|
45015
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45016
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45017
|
+
return this.httpInstance
|
|
45018
|
+
.request({
|
|
45019
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
45020
|
+
method: "GET",
|
|
45021
|
+
data,
|
|
45022
|
+
params,
|
|
45023
|
+
headers,
|
|
45024
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
45025
|
+
})
|
|
45026
|
+
.catch((e) => {
|
|
45027
|
+
this.logger.error(formatErrors(e));
|
|
45028
|
+
throw e;
|
|
45029
|
+
});
|
|
45030
|
+
}),
|
|
42603
45031
|
/**
|
|
42604
45032
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
42605
45033
|
*
|
|
@@ -43798,6 +46226,48 @@ class Client$u extends Client$v {
|
|
|
43798
46226
|
throw e;
|
|
43799
46227
|
});
|
|
43800
46228
|
}),
|
|
46229
|
+
/**
|
|
46230
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
46231
|
+
*
|
|
46232
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
46233
|
+
*/
|
|
46234
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46235
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46236
|
+
return this.httpInstance
|
|
46237
|
+
.request({
|
|
46238
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
46239
|
+
method: "POST",
|
|
46240
|
+
data,
|
|
46241
|
+
params,
|
|
46242
|
+
headers,
|
|
46243
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
46244
|
+
})
|
|
46245
|
+
.catch((e) => {
|
|
46246
|
+
this.logger.error(formatErrors(e));
|
|
46247
|
+
throw e;
|
|
46248
|
+
});
|
|
46249
|
+
}),
|
|
46250
|
+
/**
|
|
46251
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
46252
|
+
*
|
|
46253
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
46254
|
+
*/
|
|
46255
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46256
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46257
|
+
return this.httpInstance
|
|
46258
|
+
.request({
|
|
46259
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
46260
|
+
method: "GET",
|
|
46261
|
+
data,
|
|
46262
|
+
params,
|
|
46263
|
+
headers,
|
|
46264
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
46265
|
+
})
|
|
46266
|
+
.catch((e) => {
|
|
46267
|
+
this.logger.error(formatErrors(e));
|
|
46268
|
+
throw e;
|
|
46269
|
+
});
|
|
46270
|
+
}),
|
|
43801
46271
|
/**
|
|
43802
46272
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
43803
46273
|
*
|
|
@@ -44404,6 +46874,27 @@ class Client$u extends Client$v {
|
|
|
44404
46874
|
throw e;
|
|
44405
46875
|
});
|
|
44406
46876
|
}),
|
|
46877
|
+
/**
|
|
46878
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
46879
|
+
*
|
|
46880
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
46881
|
+
*/
|
|
46882
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46883
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46884
|
+
return this.httpInstance
|
|
46885
|
+
.request({
|
|
46886
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
46887
|
+
method: "POST",
|
|
46888
|
+
data,
|
|
46889
|
+
params,
|
|
46890
|
+
headers,
|
|
46891
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
46892
|
+
})
|
|
46893
|
+
.catch((e) => {
|
|
46894
|
+
this.logger.error(formatErrors(e));
|
|
46895
|
+
throw e;
|
|
46896
|
+
});
|
|
46897
|
+
}),
|
|
44407
46898
|
/**
|
|
44408
46899
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44409
46900
|
*
|
|
@@ -44481,6 +46972,32 @@ class Client$u extends Client$v {
|
|
|
44481
46972
|
});
|
|
44482
46973
|
}),
|
|
44483
46974
|
},
|
|
46975
|
+
/**
|
|
46976
|
+
* talent_blocklist
|
|
46977
|
+
*/
|
|
46978
|
+
talentBlocklist: {
|
|
46979
|
+
/**
|
|
46980
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
46981
|
+
*
|
|
46982
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
46983
|
+
*/
|
|
46984
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46985
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46986
|
+
return this.httpInstance
|
|
46987
|
+
.request({
|
|
46988
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
46989
|
+
method: "POST",
|
|
46990
|
+
data,
|
|
46991
|
+
params,
|
|
46992
|
+
headers,
|
|
46993
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
46994
|
+
})
|
|
46995
|
+
.catch((e) => {
|
|
46996
|
+
this.logger.error(formatErrors(e));
|
|
46997
|
+
throw e;
|
|
46998
|
+
});
|
|
46999
|
+
}),
|
|
47000
|
+
},
|
|
44484
47001
|
/**
|
|
44485
47002
|
* talent_folder
|
|
44486
47003
|
*/
|
|
@@ -44625,6 +47142,27 @@ class Client$u extends Client$v {
|
|
|
44625
47142
|
* talent_pool
|
|
44626
47143
|
*/
|
|
44627
47144
|
talentPool: {
|
|
47145
|
+
/**
|
|
47146
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
47147
|
+
*
|
|
47148
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
47149
|
+
*/
|
|
47150
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47151
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47152
|
+
return this.httpInstance
|
|
47153
|
+
.request({
|
|
47154
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
47155
|
+
method: "POST",
|
|
47156
|
+
data,
|
|
47157
|
+
params,
|
|
47158
|
+
headers,
|
|
47159
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
47160
|
+
})
|
|
47161
|
+
.catch((e) => {
|
|
47162
|
+
this.logger.error(formatErrors(e));
|
|
47163
|
+
throw e;
|
|
47164
|
+
});
|
|
47165
|
+
}),
|
|
44628
47166
|
/**
|
|
44629
47167
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
44630
47168
|
*
|
|
@@ -45770,6 +48308,27 @@ class Client$u extends Client$v {
|
|
|
45770
48308
|
* 猎头(灰度租户可见)
|
|
45771
48309
|
*/
|
|
45772
48310
|
agency: {
|
|
48311
|
+
/**
|
|
48312
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
48313
|
+
*
|
|
48314
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
48315
|
+
*/
|
|
48316
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48317
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48318
|
+
return this.httpInstance
|
|
48319
|
+
.request({
|
|
48320
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
48321
|
+
method: "POST",
|
|
48322
|
+
data,
|
|
48323
|
+
params,
|
|
48324
|
+
headers,
|
|
48325
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48326
|
+
})
|
|
48327
|
+
.catch((e) => {
|
|
48328
|
+
this.logger.error(formatErrors(e));
|
|
48329
|
+
throw e;
|
|
48330
|
+
});
|
|
48331
|
+
}),
|
|
45773
48332
|
/**
|
|
45774
48333
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
45775
48334
|
*
|
|
@@ -45795,6 +48354,48 @@ class Client$u extends Client$v {
|
|
|
45795
48354
|
throw e;
|
|
45796
48355
|
});
|
|
45797
48356
|
}),
|
|
48357
|
+
/**
|
|
48358
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
48359
|
+
*
|
|
48360
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
48361
|
+
*/
|
|
48362
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48363
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48364
|
+
return this.httpInstance
|
|
48365
|
+
.request({
|
|
48366
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
48367
|
+
method: "POST",
|
|
48368
|
+
data,
|
|
48369
|
+
params,
|
|
48370
|
+
headers,
|
|
48371
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48372
|
+
})
|
|
48373
|
+
.catch((e) => {
|
|
48374
|
+
this.logger.error(formatErrors(e));
|
|
48375
|
+
throw e;
|
|
48376
|
+
});
|
|
48377
|
+
}),
|
|
48378
|
+
/**
|
|
48379
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
48380
|
+
*
|
|
48381
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
48382
|
+
*/
|
|
48383
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48384
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48385
|
+
return this.httpInstance
|
|
48386
|
+
.request({
|
|
48387
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
48388
|
+
method: "POST",
|
|
48389
|
+
data,
|
|
48390
|
+
params,
|
|
48391
|
+
headers,
|
|
48392
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48393
|
+
})
|
|
48394
|
+
.catch((e) => {
|
|
48395
|
+
this.logger.error(formatErrors(e));
|
|
48396
|
+
throw e;
|
|
48397
|
+
});
|
|
48398
|
+
}),
|
|
45798
48399
|
/**
|
|
45799
48400
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
45800
48401
|
*
|
|
@@ -45868,7 +48469,7 @@ class Client$u extends Client$v {
|
|
|
45868
48469
|
}),
|
|
45869
48470
|
},
|
|
45870
48471
|
/**
|
|
45871
|
-
*
|
|
48472
|
+
* 投递
|
|
45872
48473
|
*/
|
|
45873
48474
|
application: {
|
|
45874
48475
|
/**
|
|
@@ -45921,6 +48522,27 @@ class Client$u extends Client$v {
|
|
|
45921
48522
|
throw e;
|
|
45922
48523
|
});
|
|
45923
48524
|
}),
|
|
48525
|
+
/**
|
|
48526
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
48527
|
+
*
|
|
48528
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
48529
|
+
*/
|
|
48530
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48531
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48532
|
+
return this.httpInstance
|
|
48533
|
+
.request({
|
|
48534
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
48535
|
+
method: "GET",
|
|
48536
|
+
data,
|
|
48537
|
+
params,
|
|
48538
|
+
headers,
|
|
48539
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
48540
|
+
})
|
|
48541
|
+
.catch((e) => {
|
|
48542
|
+
this.logger.error(formatErrors(e));
|
|
48543
|
+
throw e;
|
|
48544
|
+
});
|
|
48545
|
+
}),
|
|
45924
48546
|
/**
|
|
45925
48547
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
45926
48548
|
*
|
|
@@ -47153,18 +49775,264 @@ class Client$u extends Client$v {
|
|
|
47153
49775
|
return Iterable;
|
|
47154
49776
|
}),
|
|
47155
49777
|
/**
|
|
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 }
|
|
49778
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
49779
|
+
*
|
|
49780
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
49781
|
+
*
|
|
49782
|
+
* 根据人才 id 获取外部投递列表
|
|
49783
|
+
*/
|
|
49784
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49785
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49786
|
+
return this.httpInstance
|
|
49787
|
+
.request({
|
|
49788
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
49789
|
+
method: "GET",
|
|
49790
|
+
data,
|
|
49791
|
+
params,
|
|
49792
|
+
headers,
|
|
49793
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49794
|
+
})
|
|
49795
|
+
.catch((e) => {
|
|
49796
|
+
this.logger.error(formatErrors(e));
|
|
49797
|
+
throw e;
|
|
49798
|
+
});
|
|
49799
|
+
}),
|
|
49800
|
+
/**
|
|
49801
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
49802
|
+
*
|
|
49803
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
49804
|
+
*
|
|
49805
|
+
* 更新外部投递
|
|
49806
|
+
*/
|
|
49807
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49808
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49809
|
+
return this.httpInstance
|
|
49810
|
+
.request({
|
|
49811
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
49812
|
+
method: "PUT",
|
|
49813
|
+
data,
|
|
49814
|
+
params,
|
|
49815
|
+
headers,
|
|
49816
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49817
|
+
})
|
|
49818
|
+
.catch((e) => {
|
|
49819
|
+
this.logger.error(formatErrors(e));
|
|
49820
|
+
throw e;
|
|
49821
|
+
});
|
|
49822
|
+
}),
|
|
49823
|
+
},
|
|
49824
|
+
/**
|
|
49825
|
+
* 导入外部系统信息(灰度租户可见)
|
|
49826
|
+
*/
|
|
49827
|
+
externalBackgroundCheck: {
|
|
49828
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49829
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49830
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49831
|
+
const res = yield this.httpInstance
|
|
49832
|
+
.request({
|
|
49833
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
49834
|
+
method: "POST",
|
|
49835
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
49836
|
+
params: pickBy(innerPayload.params, identity),
|
|
49837
|
+
data,
|
|
49838
|
+
paramsSerializer: (params) => stringify(params, {
|
|
49839
|
+
arrayFormat: "repeat",
|
|
49840
|
+
}),
|
|
49841
|
+
})
|
|
49842
|
+
.catch((e) => {
|
|
49843
|
+
this.logger.error(formatErrors(e));
|
|
49844
|
+
});
|
|
49845
|
+
return res;
|
|
49846
|
+
});
|
|
49847
|
+
const Iterable = {
|
|
49848
|
+
[Symbol.asyncIterator]() {
|
|
49849
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49850
|
+
let hasMore = true;
|
|
49851
|
+
let pageToken;
|
|
49852
|
+
while (hasMore) {
|
|
49853
|
+
try {
|
|
49854
|
+
const res = yield __await(sendRequest({
|
|
49855
|
+
headers,
|
|
49856
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
49857
|
+
data,
|
|
49858
|
+
}));
|
|
49859
|
+
const _b = get(res, "data") || {}, {
|
|
49860
|
+
// @ts-ignore
|
|
49861
|
+
has_more,
|
|
49862
|
+
// @ts-ignore
|
|
49863
|
+
page_token,
|
|
49864
|
+
// @ts-ignore
|
|
49865
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
49866
|
+
yield yield __await(rest);
|
|
49867
|
+
hasMore = Boolean(has_more);
|
|
49868
|
+
pageToken = page_token || next_page_token;
|
|
49869
|
+
}
|
|
49870
|
+
catch (e) {
|
|
49871
|
+
yield yield __await(null);
|
|
49872
|
+
break;
|
|
49873
|
+
}
|
|
49874
|
+
}
|
|
49875
|
+
});
|
|
49876
|
+
},
|
|
49877
|
+
};
|
|
49878
|
+
return Iterable;
|
|
49879
|
+
}),
|
|
49880
|
+
/**
|
|
49881
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
49882
|
+
*
|
|
49883
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
49884
|
+
*/
|
|
49885
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49886
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49887
|
+
return this.httpInstance
|
|
49888
|
+
.request({
|
|
49889
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
49890
|
+
method: "POST",
|
|
49891
|
+
data,
|
|
49892
|
+
params,
|
|
49893
|
+
headers,
|
|
49894
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49895
|
+
})
|
|
49896
|
+
.catch((e) => {
|
|
49897
|
+
this.logger.error(formatErrors(e));
|
|
49898
|
+
throw e;
|
|
49899
|
+
});
|
|
49900
|
+
}),
|
|
49901
|
+
/**
|
|
49902
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
49903
|
+
*
|
|
49904
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
49905
|
+
*
|
|
49906
|
+
* 创建外部背调
|
|
49907
|
+
*
|
|
49908
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
49909
|
+
*/
|
|
49910
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49911
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49912
|
+
return this.httpInstance
|
|
49913
|
+
.request({
|
|
49914
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
49915
|
+
method: "POST",
|
|
49916
|
+
data,
|
|
49917
|
+
params,
|
|
49918
|
+
headers,
|
|
49919
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49920
|
+
})
|
|
49921
|
+
.catch((e) => {
|
|
49922
|
+
this.logger.error(formatErrors(e));
|
|
49923
|
+
throw e;
|
|
49924
|
+
});
|
|
49925
|
+
}),
|
|
49926
|
+
/**
|
|
49927
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
49928
|
+
*
|
|
49929
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
49930
|
+
*/
|
|
49931
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49932
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49933
|
+
return this.httpInstance
|
|
49934
|
+
.request({
|
|
49935
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
49936
|
+
method: "DELETE",
|
|
49937
|
+
data,
|
|
49938
|
+
params,
|
|
49939
|
+
headers,
|
|
49940
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49941
|
+
})
|
|
49942
|
+
.catch((e) => {
|
|
49943
|
+
this.logger.error(formatErrors(e));
|
|
49944
|
+
throw e;
|
|
49945
|
+
});
|
|
49946
|
+
}),
|
|
49947
|
+
/**
|
|
49948
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
49949
|
+
*
|
|
49950
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
49951
|
+
*/
|
|
49952
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49953
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49954
|
+
return this.httpInstance
|
|
49955
|
+
.request({
|
|
49956
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
49957
|
+
method: "PUT",
|
|
49958
|
+
data,
|
|
49959
|
+
params,
|
|
49960
|
+
headers,
|
|
49961
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49962
|
+
})
|
|
49963
|
+
.catch((e) => {
|
|
49964
|
+
this.logger.error(formatErrors(e));
|
|
49965
|
+
throw e;
|
|
49966
|
+
});
|
|
49967
|
+
}),
|
|
49968
|
+
},
|
|
49969
|
+
/**
|
|
49970
|
+
* 导入外部系统信息(灰度租户可见)
|
|
49971
|
+
*/
|
|
49972
|
+
externalInterview: {
|
|
49973
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49974
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49975
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49976
|
+
const res = yield this.httpInstance
|
|
49977
|
+
.request({
|
|
49978
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
49979
|
+
method: "POST",
|
|
49980
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
49981
|
+
params: pickBy(innerPayload.params, identity),
|
|
49982
|
+
data,
|
|
49983
|
+
paramsSerializer: (params) => stringify(params, {
|
|
49984
|
+
arrayFormat: "repeat",
|
|
49985
|
+
}),
|
|
49986
|
+
})
|
|
49987
|
+
.catch((e) => {
|
|
49988
|
+
this.logger.error(formatErrors(e));
|
|
49989
|
+
});
|
|
49990
|
+
return res;
|
|
49991
|
+
});
|
|
49992
|
+
const Iterable = {
|
|
49993
|
+
[Symbol.asyncIterator]() {
|
|
49994
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49995
|
+
let hasMore = true;
|
|
49996
|
+
let pageToken;
|
|
49997
|
+
while (hasMore) {
|
|
49998
|
+
try {
|
|
49999
|
+
const res = yield __await(sendRequest({
|
|
50000
|
+
headers,
|
|
50001
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
50002
|
+
data,
|
|
50003
|
+
}));
|
|
50004
|
+
const _b = get(res, "data") || {}, {
|
|
50005
|
+
// @ts-ignore
|
|
50006
|
+
has_more,
|
|
50007
|
+
// @ts-ignore
|
|
50008
|
+
page_token,
|
|
50009
|
+
// @ts-ignore
|
|
50010
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
50011
|
+
yield yield __await(rest);
|
|
50012
|
+
hasMore = Boolean(has_more);
|
|
50013
|
+
pageToken = page_token || next_page_token;
|
|
50014
|
+
}
|
|
50015
|
+
catch (e) {
|
|
50016
|
+
yield yield __await(null);
|
|
50017
|
+
break;
|
|
50018
|
+
}
|
|
50019
|
+
}
|
|
50020
|
+
});
|
|
50021
|
+
},
|
|
50022
|
+
};
|
|
50023
|
+
return Iterable;
|
|
50024
|
+
}),
|
|
50025
|
+
/**
|
|
50026
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
47159
50027
|
*
|
|
47160
|
-
*
|
|
50028
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
47161
50029
|
*/
|
|
47162
|
-
|
|
50030
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47163
50031
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47164
50032
|
return this.httpInstance
|
|
47165
50033
|
.request({
|
|
47166
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47167
|
-
method: "
|
|
50034
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
50035
|
+
method: "POST",
|
|
47168
50036
|
data,
|
|
47169
50037
|
params,
|
|
47170
50038
|
headers,
|
|
@@ -47176,18 +50044,20 @@ class Client$u extends Client$v {
|
|
|
47176
50044
|
});
|
|
47177
50045
|
}),
|
|
47178
50046
|
/**
|
|
47179
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
50047
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
47180
50048
|
*
|
|
47181
|
-
* {@link https://open.feishu.cn/
|
|
50049
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
47182
50050
|
*
|
|
47183
|
-
*
|
|
50051
|
+
* 创建外部面试
|
|
50052
|
+
*
|
|
50053
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
47184
50054
|
*/
|
|
47185
|
-
|
|
50055
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47186
50056
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47187
50057
|
return this.httpInstance
|
|
47188
50058
|
.request({
|
|
47189
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47190
|
-
method: "
|
|
50059
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
50060
|
+
method: "POST",
|
|
47191
50061
|
data,
|
|
47192
50062
|
params,
|
|
47193
50063
|
headers,
|
|
@@ -47198,26 +50068,17 @@ class Client$u extends Client$v {
|
|
|
47198
50068
|
throw e;
|
|
47199
50069
|
});
|
|
47200
50070
|
}),
|
|
47201
|
-
},
|
|
47202
|
-
/**
|
|
47203
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47204
|
-
*/
|
|
47205
|
-
externalBackgroundCheck: {
|
|
47206
50071
|
/**
|
|
47207
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
50072
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
47208
50073
|
*
|
|
47209
|
-
* {@link https://open.feishu.cn/
|
|
47210
|
-
*
|
|
47211
|
-
* 创建外部背调
|
|
47212
|
-
*
|
|
47213
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
50074
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
47214
50075
|
*/
|
|
47215
|
-
|
|
50076
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47216
50077
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47217
50078
|
return this.httpInstance
|
|
47218
50079
|
.request({
|
|
47219
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47220
|
-
method: "
|
|
50080
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
50081
|
+
method: "DELETE",
|
|
47221
50082
|
data,
|
|
47222
50083
|
params,
|
|
47223
50084
|
headers,
|
|
@@ -47228,26 +50089,17 @@ class Client$u extends Client$v {
|
|
|
47228
50089
|
throw e;
|
|
47229
50090
|
});
|
|
47230
50091
|
}),
|
|
47231
|
-
},
|
|
47232
|
-
/**
|
|
47233
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47234
|
-
*/
|
|
47235
|
-
externalInterview: {
|
|
47236
50092
|
/**
|
|
47237
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
50093
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
47238
50094
|
*
|
|
47239
|
-
* {@link https://open.feishu.cn/
|
|
47240
|
-
*
|
|
47241
|
-
* 创建外部面试
|
|
47242
|
-
*
|
|
47243
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
50095
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
47244
50096
|
*/
|
|
47245
|
-
|
|
50097
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47246
50098
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47247
50099
|
return this.httpInstance
|
|
47248
50100
|
.request({
|
|
47249
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
47250
|
-
method: "
|
|
50101
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
50102
|
+
method: "PUT",
|
|
47251
50103
|
data,
|
|
47252
50104
|
params,
|
|
47253
50105
|
headers,
|
|
@@ -47310,6 +50162,147 @@ class Client$u extends Client$v {
|
|
|
47310
50162
|
});
|
|
47311
50163
|
}),
|
|
47312
50164
|
},
|
|
50165
|
+
/**
|
|
50166
|
+
* external_offer
|
|
50167
|
+
*/
|
|
50168
|
+
externalOffer: {
|
|
50169
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50170
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50171
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
50172
|
+
const res = yield this.httpInstance
|
|
50173
|
+
.request({
|
|
50174
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
50175
|
+
method: "POST",
|
|
50176
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
50177
|
+
params: pickBy(innerPayload.params, identity),
|
|
50178
|
+
data,
|
|
50179
|
+
paramsSerializer: (params) => stringify(params, {
|
|
50180
|
+
arrayFormat: "repeat",
|
|
50181
|
+
}),
|
|
50182
|
+
})
|
|
50183
|
+
.catch((e) => {
|
|
50184
|
+
this.logger.error(formatErrors(e));
|
|
50185
|
+
});
|
|
50186
|
+
return res;
|
|
50187
|
+
});
|
|
50188
|
+
const Iterable = {
|
|
50189
|
+
[Symbol.asyncIterator]() {
|
|
50190
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
50191
|
+
let hasMore = true;
|
|
50192
|
+
let pageToken;
|
|
50193
|
+
while (hasMore) {
|
|
50194
|
+
try {
|
|
50195
|
+
const res = yield __await(sendRequest({
|
|
50196
|
+
headers,
|
|
50197
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
50198
|
+
data,
|
|
50199
|
+
}));
|
|
50200
|
+
const _b = get(res, "data") || {}, {
|
|
50201
|
+
// @ts-ignore
|
|
50202
|
+
has_more,
|
|
50203
|
+
// @ts-ignore
|
|
50204
|
+
page_token,
|
|
50205
|
+
// @ts-ignore
|
|
50206
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
50207
|
+
yield yield __await(rest);
|
|
50208
|
+
hasMore = Boolean(has_more);
|
|
50209
|
+
pageToken = page_token || next_page_token;
|
|
50210
|
+
}
|
|
50211
|
+
catch (e) {
|
|
50212
|
+
yield yield __await(null);
|
|
50213
|
+
break;
|
|
50214
|
+
}
|
|
50215
|
+
}
|
|
50216
|
+
});
|
|
50217
|
+
},
|
|
50218
|
+
};
|
|
50219
|
+
return Iterable;
|
|
50220
|
+
}),
|
|
50221
|
+
/**
|
|
50222
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
50223
|
+
*
|
|
50224
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
50225
|
+
*/
|
|
50226
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50227
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50228
|
+
return this.httpInstance
|
|
50229
|
+
.request({
|
|
50230
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
50231
|
+
method: "POST",
|
|
50232
|
+
data,
|
|
50233
|
+
params,
|
|
50234
|
+
headers,
|
|
50235
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
50236
|
+
})
|
|
50237
|
+
.catch((e) => {
|
|
50238
|
+
this.logger.error(formatErrors(e));
|
|
50239
|
+
throw e;
|
|
50240
|
+
});
|
|
50241
|
+
}),
|
|
50242
|
+
/**
|
|
50243
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
50244
|
+
*
|
|
50245
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
50246
|
+
*/
|
|
50247
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50248
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50249
|
+
return this.httpInstance
|
|
50250
|
+
.request({
|
|
50251
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
50252
|
+
method: "POST",
|
|
50253
|
+
data,
|
|
50254
|
+
params,
|
|
50255
|
+
headers,
|
|
50256
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
50257
|
+
})
|
|
50258
|
+
.catch((e) => {
|
|
50259
|
+
this.logger.error(formatErrors(e));
|
|
50260
|
+
throw e;
|
|
50261
|
+
});
|
|
50262
|
+
}),
|
|
50263
|
+
/**
|
|
50264
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
50265
|
+
*
|
|
50266
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
50267
|
+
*/
|
|
50268
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50269
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50270
|
+
return this.httpInstance
|
|
50271
|
+
.request({
|
|
50272
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
50273
|
+
method: "DELETE",
|
|
50274
|
+
data,
|
|
50275
|
+
params,
|
|
50276
|
+
headers,
|
|
50277
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
50278
|
+
})
|
|
50279
|
+
.catch((e) => {
|
|
50280
|
+
this.logger.error(formatErrors(e));
|
|
50281
|
+
throw e;
|
|
50282
|
+
});
|
|
50283
|
+
}),
|
|
50284
|
+
/**
|
|
50285
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
50286
|
+
*
|
|
50287
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
50288
|
+
*/
|
|
50289
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50290
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50291
|
+
return this.httpInstance
|
|
50292
|
+
.request({
|
|
50293
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
50294
|
+
method: "PUT",
|
|
50295
|
+
data,
|
|
50296
|
+
params,
|
|
50297
|
+
headers,
|
|
50298
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
50299
|
+
})
|
|
50300
|
+
.catch((e) => {
|
|
50301
|
+
this.logger.error(formatErrors(e));
|
|
50302
|
+
throw e;
|
|
50303
|
+
});
|
|
50304
|
+
}),
|
|
50305
|
+
},
|
|
47313
50306
|
/**
|
|
47314
50307
|
* external_referral_reward
|
|
47315
50308
|
*/
|
|
@@ -48041,6 +51034,27 @@ class Client$u extends Client$v {
|
|
|
48041
51034
|
throw e;
|
|
48042
51035
|
});
|
|
48043
51036
|
}),
|
|
51037
|
+
/**
|
|
51038
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
51039
|
+
*
|
|
51040
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
51041
|
+
*/
|
|
51042
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51043
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51044
|
+
return this.httpInstance
|
|
51045
|
+
.request({
|
|
51046
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
51047
|
+
method: "GET",
|
|
51048
|
+
data,
|
|
51049
|
+
params,
|
|
51050
|
+
headers,
|
|
51051
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
51052
|
+
})
|
|
51053
|
+
.catch((e) => {
|
|
51054
|
+
this.logger.error(formatErrors(e));
|
|
51055
|
+
throw e;
|
|
51056
|
+
});
|
|
51057
|
+
}),
|
|
48044
51058
|
/**
|
|
48045
51059
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
48046
51060
|
*
|
|
@@ -49245,6 +52259,48 @@ class Client$u extends Client$v {
|
|
|
49245
52259
|
throw e;
|
|
49246
52260
|
});
|
|
49247
52261
|
}),
|
|
52262
|
+
/**
|
|
52263
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
52264
|
+
*
|
|
52265
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
52266
|
+
*/
|
|
52267
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52268
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52269
|
+
return this.httpInstance
|
|
52270
|
+
.request({
|
|
52271
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
52272
|
+
method: "POST",
|
|
52273
|
+
data,
|
|
52274
|
+
params,
|
|
52275
|
+
headers,
|
|
52276
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
52277
|
+
})
|
|
52278
|
+
.catch((e) => {
|
|
52279
|
+
this.logger.error(formatErrors(e));
|
|
52280
|
+
throw e;
|
|
52281
|
+
});
|
|
52282
|
+
}),
|
|
52283
|
+
/**
|
|
52284
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
52285
|
+
*
|
|
52286
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
52287
|
+
*/
|
|
52288
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52289
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52290
|
+
return this.httpInstance
|
|
52291
|
+
.request({
|
|
52292
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
52293
|
+
method: "GET",
|
|
52294
|
+
data,
|
|
52295
|
+
params,
|
|
52296
|
+
headers,
|
|
52297
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
52298
|
+
})
|
|
52299
|
+
.catch((e) => {
|
|
52300
|
+
this.logger.error(formatErrors(e));
|
|
52301
|
+
throw e;
|
|
52302
|
+
});
|
|
52303
|
+
}),
|
|
49248
52304
|
/**
|
|
49249
52305
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
49250
52306
|
*
|
|
@@ -49859,6 +52915,27 @@ class Client$u extends Client$v {
|
|
|
49859
52915
|
throw e;
|
|
49860
52916
|
});
|
|
49861
52917
|
}),
|
|
52918
|
+
/**
|
|
52919
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
52920
|
+
*
|
|
52921
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
52922
|
+
*/
|
|
52923
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52924
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52925
|
+
return this.httpInstance
|
|
52926
|
+
.request({
|
|
52927
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
52928
|
+
method: "POST",
|
|
52929
|
+
data,
|
|
52930
|
+
params,
|
|
52931
|
+
headers,
|
|
52932
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
52933
|
+
})
|
|
52934
|
+
.catch((e) => {
|
|
52935
|
+
this.logger.error(formatErrors(e));
|
|
52936
|
+
throw e;
|
|
52937
|
+
});
|
|
52938
|
+
}),
|
|
49862
52939
|
/**
|
|
49863
52940
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49864
52941
|
*
|
|
@@ -49936,6 +53013,32 @@ class Client$u extends Client$v {
|
|
|
49936
53013
|
});
|
|
49937
53014
|
}),
|
|
49938
53015
|
},
|
|
53016
|
+
/**
|
|
53017
|
+
* talent_blocklist
|
|
53018
|
+
*/
|
|
53019
|
+
talentBlocklist: {
|
|
53020
|
+
/**
|
|
53021
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
53022
|
+
*
|
|
53023
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
53024
|
+
*/
|
|
53025
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53026
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53027
|
+
return this.httpInstance
|
|
53028
|
+
.request({
|
|
53029
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
53030
|
+
method: "POST",
|
|
53031
|
+
data,
|
|
53032
|
+
params,
|
|
53033
|
+
headers,
|
|
53034
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
53035
|
+
})
|
|
53036
|
+
.catch((e) => {
|
|
53037
|
+
this.logger.error(formatErrors(e));
|
|
53038
|
+
throw e;
|
|
53039
|
+
});
|
|
53040
|
+
}),
|
|
53041
|
+
},
|
|
49939
53042
|
/**
|
|
49940
53043
|
* talent_folder
|
|
49941
53044
|
*/
|
|
@@ -50082,6 +53185,27 @@ class Client$u extends Client$v {
|
|
|
50082
53185
|
* talent_pool
|
|
50083
53186
|
*/
|
|
50084
53187
|
talentPool: {
|
|
53188
|
+
/**
|
|
53189
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
53190
|
+
*
|
|
53191
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
53192
|
+
*/
|
|
53193
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53194
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53195
|
+
return this.httpInstance
|
|
53196
|
+
.request({
|
|
53197
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
53198
|
+
method: "POST",
|
|
53199
|
+
data,
|
|
53200
|
+
params,
|
|
53201
|
+
headers,
|
|
53202
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
53203
|
+
})
|
|
53204
|
+
.catch((e) => {
|
|
53205
|
+
this.logger.error(formatErrors(e));
|
|
53206
|
+
throw e;
|
|
53207
|
+
});
|
|
53208
|
+
}),
|
|
50085
53209
|
/**
|
|
50086
53210
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
50087
53211
|
*
|
|
@@ -52619,7 +55743,7 @@ class Client$s extends Client$t {
|
|
|
52619
55743
|
}),
|
|
52620
55744
|
},
|
|
52621
55745
|
/**
|
|
52622
|
-
*
|
|
55746
|
+
* 消息
|
|
52623
55747
|
*/
|
|
52624
55748
|
message: {
|
|
52625
55749
|
/**
|
|
@@ -54822,7 +57946,7 @@ class Client$s extends Client$t {
|
|
|
54822
57946
|
}),
|
|
54823
57947
|
},
|
|
54824
57948
|
/**
|
|
54825
|
-
*
|
|
57949
|
+
* 消息
|
|
54826
57950
|
*/
|
|
54827
57951
|
message: {
|
|
54828
57952
|
/**
|
|
@@ -62753,7 +65877,7 @@ class Client$c extends Client$d {
|
|
|
62753
65877
|
}),
|
|
62754
65878
|
},
|
|
62755
65879
|
/**
|
|
62756
|
-
*
|
|
65880
|
+
* 行列
|
|
62757
65881
|
*/
|
|
62758
65882
|
spreadsheetSheet: {
|
|
62759
65883
|
/**
|
|
@@ -63483,7 +66607,7 @@ class Client$c extends Client$d {
|
|
|
63483
66607
|
}),
|
|
63484
66608
|
},
|
|
63485
66609
|
/**
|
|
63486
|
-
*
|
|
66610
|
+
* 行列
|
|
63487
66611
|
*/
|
|
63488
66612
|
spreadsheetSheet: {
|
|
63489
66613
|
/**
|