@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/lib/index.js
CHANGED
|
@@ -272,7 +272,7 @@ const formatErrors = (e) => {
|
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
// auto gen
|
|
275
|
-
class Client
|
|
275
|
+
class Client$11 {
|
|
276
276
|
constructor() {
|
|
277
277
|
/**
|
|
278
278
|
* 智能门禁
|
|
@@ -1329,7 +1329,7 @@ class Client$$ {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
// auto gen
|
|
1332
|
-
class Client$
|
|
1332
|
+
class Client$10 extends Client$11 {
|
|
1333
1333
|
constructor() {
|
|
1334
1334
|
super(...arguments);
|
|
1335
1335
|
/**
|
|
@@ -2425,7 +2425,7 @@ class Client$_ extends Client$$ {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
// auto gen
|
|
2428
|
-
class Client
|
|
2428
|
+
class Client$$ extends Client$10 {
|
|
2429
2429
|
constructor() {
|
|
2430
2430
|
super(...arguments);
|
|
2431
2431
|
/**
|
|
@@ -3125,7 +3125,7 @@ class Client$Z extends Client$_ {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
|
|
3127
3127
|
// auto gen
|
|
3128
|
-
class Client$
|
|
3128
|
+
class Client$_ extends Client$$ {
|
|
3129
3129
|
constructor() {
|
|
3130
3130
|
super(...arguments);
|
|
3131
3131
|
/**
|
|
@@ -3508,7 +3508,7 @@ class Client$Y extends Client$Z {
|
|
|
3508
3508
|
}),
|
|
3509
3509
|
},
|
|
3510
3510
|
/**
|
|
3511
|
-
*
|
|
3511
|
+
* 应用管理
|
|
3512
3512
|
*/
|
|
3513
3513
|
application: {
|
|
3514
3514
|
/**
|
|
@@ -4289,7 +4289,7 @@ class Client$Y extends Client$Z {
|
|
|
4289
4289
|
}),
|
|
4290
4290
|
},
|
|
4291
4291
|
/**
|
|
4292
|
-
*
|
|
4292
|
+
* 应用管理
|
|
4293
4293
|
*/
|
|
4294
4294
|
application: {
|
|
4295
4295
|
/**
|
|
@@ -4699,7 +4699,7 @@ class Client$Y extends Client$Z {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
|
|
4701
4701
|
// auto gen
|
|
4702
|
-
class Client$
|
|
4702
|
+
class Client$Z extends Client$_ {
|
|
4703
4703
|
constructor() {
|
|
4704
4704
|
super(...arguments);
|
|
4705
4705
|
/**
|
|
@@ -4707,7 +4707,7 @@ class Client$X extends Client$Y {
|
|
|
4707
4707
|
*/
|
|
4708
4708
|
this.approval = {
|
|
4709
4709
|
/**
|
|
4710
|
-
*
|
|
4710
|
+
* 事件
|
|
4711
4711
|
*/
|
|
4712
4712
|
approval: {
|
|
4713
4713
|
/**
|
|
@@ -5710,7 +5710,7 @@ class Client$X extends Client$Y {
|
|
|
5710
5710
|
},
|
|
5711
5711
|
v4: {
|
|
5712
5712
|
/**
|
|
5713
|
-
*
|
|
5713
|
+
* 事件
|
|
5714
5714
|
*/
|
|
5715
5715
|
approval: {
|
|
5716
5716
|
/**
|
|
@@ -6727,7 +6727,7 @@ class Client$X extends Client$Y {
|
|
|
6727
6727
|
}
|
|
6728
6728
|
|
|
6729
6729
|
// auto gen
|
|
6730
|
-
class Client$
|
|
6730
|
+
class Client$Y extends Client$Z {
|
|
6731
6731
|
constructor() {
|
|
6732
6732
|
super(...arguments);
|
|
6733
6733
|
/**
|
|
@@ -7144,6 +7144,27 @@ class Client$W extends Client$X {
|
|
|
7144
7144
|
throw e;
|
|
7145
7145
|
});
|
|
7146
7146
|
}),
|
|
7147
|
+
/**
|
|
7148
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
7149
|
+
*
|
|
7150
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
7151
|
+
*/
|
|
7152
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7153
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7154
|
+
return this.httpInstance
|
|
7155
|
+
.request({
|
|
7156
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
7157
|
+
method: "GET",
|
|
7158
|
+
data,
|
|
7159
|
+
params,
|
|
7160
|
+
headers,
|
|
7161
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
7162
|
+
})
|
|
7163
|
+
.catch((e) => {
|
|
7164
|
+
this.logger.error(formatErrors(e));
|
|
7165
|
+
throw e;
|
|
7166
|
+
});
|
|
7167
|
+
}),
|
|
7147
7168
|
/**
|
|
7148
7169
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
7149
7170
|
*
|
|
@@ -7494,6 +7515,27 @@ class Client$W extends Client$X {
|
|
|
7494
7515
|
throw e;
|
|
7495
7516
|
});
|
|
7496
7517
|
}),
|
|
7518
|
+
/**
|
|
7519
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
7520
|
+
*
|
|
7521
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
7522
|
+
*/
|
|
7523
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7524
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7525
|
+
return this.httpInstance
|
|
7526
|
+
.request({
|
|
7527
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
7528
|
+
method: "POST",
|
|
7529
|
+
data,
|
|
7530
|
+
params,
|
|
7531
|
+
headers,
|
|
7532
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
7533
|
+
})
|
|
7534
|
+
.catch((e) => {
|
|
7535
|
+
this.logger.error(formatErrors(e));
|
|
7536
|
+
throw e;
|
|
7537
|
+
});
|
|
7538
|
+
}),
|
|
7497
7539
|
/**
|
|
7498
7540
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
7499
7541
|
*
|
|
@@ -8301,6 +8343,27 @@ class Client$W extends Client$X {
|
|
|
8301
8343
|
throw e;
|
|
8302
8344
|
});
|
|
8303
8345
|
}),
|
|
8346
|
+
/**
|
|
8347
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=list_user&version=v1 click to debug }
|
|
8348
|
+
*
|
|
8349
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_user&project=attendance&resource=group&version=v1 document }
|
|
8350
|
+
*/
|
|
8351
|
+
listUser: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8352
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8353
|
+
return this.httpInstance
|
|
8354
|
+
.request({
|
|
8355
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`, path),
|
|
8356
|
+
method: "GET",
|
|
8357
|
+
data,
|
|
8358
|
+
params,
|
|
8359
|
+
headers,
|
|
8360
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
8361
|
+
})
|
|
8362
|
+
.catch((e) => {
|
|
8363
|
+
this.logger.error(formatErrors(e));
|
|
8364
|
+
throw e;
|
|
8365
|
+
});
|
|
8366
|
+
}),
|
|
8304
8367
|
/**
|
|
8305
8368
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=search&version=v1 click to debug }
|
|
8306
8369
|
*
|
|
@@ -8653,6 +8716,27 @@ class Client$W extends Client$X {
|
|
|
8653
8716
|
throw e;
|
|
8654
8717
|
});
|
|
8655
8718
|
}),
|
|
8719
|
+
/**
|
|
8720
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=batch_create_temp&version=v1 click to debug }
|
|
8721
|
+
*
|
|
8722
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create_temp&project=attendance&resource=user_daily_shift&version=v1 document }
|
|
8723
|
+
*/
|
|
8724
|
+
batchCreateTemp: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8725
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8726
|
+
return this.httpInstance
|
|
8727
|
+
.request({
|
|
8728
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`, path),
|
|
8729
|
+
method: "POST",
|
|
8730
|
+
data,
|
|
8731
|
+
params,
|
|
8732
|
+
headers,
|
|
8733
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
8734
|
+
})
|
|
8735
|
+
.catch((e) => {
|
|
8736
|
+
this.logger.error(formatErrors(e));
|
|
8737
|
+
throw e;
|
|
8738
|
+
});
|
|
8739
|
+
}),
|
|
8656
8740
|
/**
|
|
8657
8741
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_daily_shift&apiName=query&version=v1 click to debug }
|
|
8658
8742
|
*
|
|
@@ -9051,7 +9135,7 @@ class Client$W extends Client$X {
|
|
|
9051
9135
|
}
|
|
9052
9136
|
|
|
9053
9137
|
// auto gen
|
|
9054
|
-
class Client$
|
|
9138
|
+
class Client$X extends Client$Y {
|
|
9055
9139
|
constructor() {
|
|
9056
9140
|
super(...arguments);
|
|
9057
9141
|
/**
|
|
@@ -9305,7 +9389,7 @@ class Client$V extends Client$W {
|
|
|
9305
9389
|
}
|
|
9306
9390
|
|
|
9307
9391
|
// auto gen
|
|
9308
|
-
class Client$
|
|
9392
|
+
class Client$W extends Client$X {
|
|
9309
9393
|
constructor() {
|
|
9310
9394
|
super(...arguments);
|
|
9311
9395
|
/**
|
|
@@ -9579,7 +9663,7 @@ class Client$U extends Client$V {
|
|
|
9579
9663
|
}
|
|
9580
9664
|
|
|
9581
9665
|
// auto gen
|
|
9582
|
-
class Client$
|
|
9666
|
+
class Client$V extends Client$W {
|
|
9583
9667
|
constructor() {
|
|
9584
9668
|
super(...arguments);
|
|
9585
9669
|
/**
|
|
@@ -9590,7 +9674,7 @@ class Client$T extends Client$U {
|
|
|
9590
9674
|
}
|
|
9591
9675
|
|
|
9592
9676
|
// auto gen
|
|
9593
|
-
class Client$
|
|
9677
|
+
class Client$U extends Client$V {
|
|
9594
9678
|
constructor() {
|
|
9595
9679
|
super(...arguments);
|
|
9596
9680
|
/**
|
|
@@ -10668,7 +10752,7 @@ class Client$S extends Client$T {
|
|
|
10668
10752
|
}
|
|
10669
10753
|
|
|
10670
10754
|
// auto gen
|
|
10671
|
-
class Client$
|
|
10755
|
+
class Client$T extends Client$U {
|
|
10672
10756
|
constructor() {
|
|
10673
10757
|
super(...arguments);
|
|
10674
10758
|
/**
|
|
@@ -12317,6 +12401,103 @@ class Client$R extends Client$S {
|
|
|
12317
12401
|
});
|
|
12318
12402
|
}),
|
|
12319
12403
|
},
|
|
12404
|
+
/**
|
|
12405
|
+
* app.workflow
|
|
12406
|
+
*/
|
|
12407
|
+
appWorkflow: {
|
|
12408
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12409
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12410
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12411
|
+
const res = yield this.httpInstance
|
|
12412
|
+
.request({
|
|
12413
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12414
|
+
method: "GET",
|
|
12415
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12416
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
12417
|
+
data,
|
|
12418
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12419
|
+
})
|
|
12420
|
+
.catch((e) => {
|
|
12421
|
+
this.logger.error(formatErrors(e));
|
|
12422
|
+
});
|
|
12423
|
+
return res;
|
|
12424
|
+
});
|
|
12425
|
+
const Iterable = {
|
|
12426
|
+
[Symbol.asyncIterator]() {
|
|
12427
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12428
|
+
let hasMore = true;
|
|
12429
|
+
let pageToken;
|
|
12430
|
+
while (hasMore) {
|
|
12431
|
+
try {
|
|
12432
|
+
const res = yield __await(sendRequest({
|
|
12433
|
+
headers,
|
|
12434
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12435
|
+
data,
|
|
12436
|
+
}));
|
|
12437
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
12438
|
+
// @ts-ignore
|
|
12439
|
+
has_more,
|
|
12440
|
+
// @ts-ignore
|
|
12441
|
+
page_token,
|
|
12442
|
+
// @ts-ignore
|
|
12443
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12444
|
+
yield yield __await(rest);
|
|
12445
|
+
hasMore = Boolean(has_more);
|
|
12446
|
+
pageToken = page_token || next_page_token;
|
|
12447
|
+
}
|
|
12448
|
+
catch (e) {
|
|
12449
|
+
yield yield __await(null);
|
|
12450
|
+
break;
|
|
12451
|
+
}
|
|
12452
|
+
}
|
|
12453
|
+
});
|
|
12454
|
+
},
|
|
12455
|
+
};
|
|
12456
|
+
return Iterable;
|
|
12457
|
+
}),
|
|
12458
|
+
/**
|
|
12459
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
12460
|
+
*
|
|
12461
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
12462
|
+
*/
|
|
12463
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12465
|
+
return this.httpInstance
|
|
12466
|
+
.request({
|
|
12467
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
12468
|
+
method: "GET",
|
|
12469
|
+
data,
|
|
12470
|
+
params,
|
|
12471
|
+
headers,
|
|
12472
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12473
|
+
})
|
|
12474
|
+
.catch((e) => {
|
|
12475
|
+
this.logger.error(formatErrors(e));
|
|
12476
|
+
throw e;
|
|
12477
|
+
});
|
|
12478
|
+
}),
|
|
12479
|
+
/**
|
|
12480
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
12481
|
+
*
|
|
12482
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
12483
|
+
*/
|
|
12484
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12485
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12486
|
+
return this.httpInstance
|
|
12487
|
+
.request({
|
|
12488
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
12489
|
+
method: "PUT",
|
|
12490
|
+
data,
|
|
12491
|
+
params,
|
|
12492
|
+
headers,
|
|
12493
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
12494
|
+
})
|
|
12495
|
+
.catch((e) => {
|
|
12496
|
+
this.logger.error(formatErrors(e));
|
|
12497
|
+
throw e;
|
|
12498
|
+
});
|
|
12499
|
+
}),
|
|
12500
|
+
},
|
|
12320
12501
|
v1: {
|
|
12321
12502
|
/**
|
|
12322
12503
|
* 多维表格
|
|
@@ -13978,13 +14159,112 @@ class Client$R extends Client$S {
|
|
|
13978
14159
|
});
|
|
13979
14160
|
}),
|
|
13980
14161
|
},
|
|
14162
|
+
/**
|
|
14163
|
+
* app.workflow
|
|
14164
|
+
*/
|
|
14165
|
+
appWorkflow: {
|
|
14166
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14167
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14168
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
14169
|
+
const res = yield this.httpInstance
|
|
14170
|
+
.request({
|
|
14171
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14172
|
+
method: "GET",
|
|
14173
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
14174
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
14175
|
+
data,
|
|
14176
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
14177
|
+
arrayFormat: "repeat",
|
|
14178
|
+
}),
|
|
14179
|
+
})
|
|
14180
|
+
.catch((e) => {
|
|
14181
|
+
this.logger.error(formatErrors(e));
|
|
14182
|
+
});
|
|
14183
|
+
return res;
|
|
14184
|
+
});
|
|
14185
|
+
const Iterable = {
|
|
14186
|
+
[Symbol.asyncIterator]() {
|
|
14187
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
14188
|
+
let hasMore = true;
|
|
14189
|
+
let pageToken;
|
|
14190
|
+
while (hasMore) {
|
|
14191
|
+
try {
|
|
14192
|
+
const res = yield __await(sendRequest({
|
|
14193
|
+
headers,
|
|
14194
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
14195
|
+
data,
|
|
14196
|
+
}));
|
|
14197
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
14198
|
+
// @ts-ignore
|
|
14199
|
+
has_more,
|
|
14200
|
+
// @ts-ignore
|
|
14201
|
+
page_token,
|
|
14202
|
+
// @ts-ignore
|
|
14203
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
14204
|
+
yield yield __await(rest);
|
|
14205
|
+
hasMore = Boolean(has_more);
|
|
14206
|
+
pageToken = page_token || next_page_token;
|
|
14207
|
+
}
|
|
14208
|
+
catch (e) {
|
|
14209
|
+
yield yield __await(null);
|
|
14210
|
+
break;
|
|
14211
|
+
}
|
|
14212
|
+
}
|
|
14213
|
+
});
|
|
14214
|
+
},
|
|
14215
|
+
};
|
|
14216
|
+
return Iterable;
|
|
14217
|
+
}),
|
|
14218
|
+
/**
|
|
14219
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=list&version=v1 click to debug }
|
|
14220
|
+
*
|
|
14221
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=bitable&resource=app.workflow&version=v1 document }
|
|
14222
|
+
*/
|
|
14223
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14224
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14225
|
+
return this.httpInstance
|
|
14226
|
+
.request({
|
|
14227
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`, path),
|
|
14228
|
+
method: "GET",
|
|
14229
|
+
data,
|
|
14230
|
+
params,
|
|
14231
|
+
headers,
|
|
14232
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
14233
|
+
})
|
|
14234
|
+
.catch((e) => {
|
|
14235
|
+
this.logger.error(formatErrors(e));
|
|
14236
|
+
throw e;
|
|
14237
|
+
});
|
|
14238
|
+
}),
|
|
14239
|
+
/**
|
|
14240
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.workflow&apiName=update&version=v1 click to debug }
|
|
14241
|
+
*
|
|
14242
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=bitable&resource=app.workflow&version=v1 document }
|
|
14243
|
+
*/
|
|
14244
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
14245
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
14246
|
+
return this.httpInstance
|
|
14247
|
+
.request({
|
|
14248
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`, path),
|
|
14249
|
+
method: "PUT",
|
|
14250
|
+
data,
|
|
14251
|
+
params,
|
|
14252
|
+
headers,
|
|
14253
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
14254
|
+
})
|
|
14255
|
+
.catch((e) => {
|
|
14256
|
+
this.logger.error(formatErrors(e));
|
|
14257
|
+
throw e;
|
|
14258
|
+
});
|
|
14259
|
+
}),
|
|
14260
|
+
},
|
|
13981
14261
|
},
|
|
13982
14262
|
};
|
|
13983
14263
|
}
|
|
13984
14264
|
}
|
|
13985
14265
|
|
|
13986
14266
|
// auto gen
|
|
13987
|
-
class Client$
|
|
14267
|
+
class Client$S extends Client$T {
|
|
13988
14268
|
constructor() {
|
|
13989
14269
|
super(...arguments);
|
|
13990
14270
|
/**
|
|
@@ -14168,7 +14448,7 @@ class Client$Q extends Client$R {
|
|
|
14168
14448
|
}
|
|
14169
14449
|
|
|
14170
14450
|
// auto gen
|
|
14171
|
-
class Client$
|
|
14451
|
+
class Client$R extends Client$S {
|
|
14172
14452
|
constructor() {
|
|
14173
14453
|
super(...arguments);
|
|
14174
14454
|
/**
|
|
@@ -14265,7 +14545,7 @@ class Client$P extends Client$Q {
|
|
|
14265
14545
|
}
|
|
14266
14546
|
|
|
14267
14547
|
// auto gen
|
|
14268
|
-
class Client$
|
|
14548
|
+
class Client$Q extends Client$R {
|
|
14269
14549
|
constructor() {
|
|
14270
14550
|
super(...arguments);
|
|
14271
14551
|
/**
|
|
@@ -17005,7 +17285,261 @@ class Client$O extends Client$P {
|
|
|
17005
17285
|
}
|
|
17006
17286
|
|
|
17007
17287
|
// auto gen
|
|
17008
|
-
class Client$
|
|
17288
|
+
class Client$P extends Client$Q {
|
|
17289
|
+
constructor() {
|
|
17290
|
+
super(...arguments);
|
|
17291
|
+
/**
|
|
17292
|
+
|
|
17293
|
+
*/
|
|
17294
|
+
this.cardkit = {
|
|
17295
|
+
v1: {
|
|
17296
|
+
/**
|
|
17297
|
+
* card
|
|
17298
|
+
*/
|
|
17299
|
+
card: {
|
|
17300
|
+
/**
|
|
17301
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=batch_update&version=v1 click to debug }
|
|
17302
|
+
*
|
|
17303
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=cardkit&resource=card&version=v1 document }
|
|
17304
|
+
*
|
|
17305
|
+
* 按指定的多个操作批量局部更新卡片,支持更新卡片设置、添加组件、删除组件、更新组件
|
|
17306
|
+
*/
|
|
17307
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17308
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17309
|
+
return this.httpInstance
|
|
17310
|
+
.request({
|
|
17311
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`, path),
|
|
17312
|
+
method: "POST",
|
|
17313
|
+
data,
|
|
17314
|
+
params,
|
|
17315
|
+
headers,
|
|
17316
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17317
|
+
})
|
|
17318
|
+
.catch((e) => {
|
|
17319
|
+
this.logger.error(formatErrors(e));
|
|
17320
|
+
throw e;
|
|
17321
|
+
});
|
|
17322
|
+
}),
|
|
17323
|
+
/**
|
|
17324
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=create&version=v1 click to debug }
|
|
17325
|
+
*
|
|
17326
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card&version=v1 document }
|
|
17327
|
+
*
|
|
17328
|
+
* 创建卡片实例,成功后可通过发送消息等接口发送卡片实例
|
|
17329
|
+
*/
|
|
17330
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17331
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17332
|
+
return this.httpInstance
|
|
17333
|
+
.request({
|
|
17334
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards`, path),
|
|
17335
|
+
method: "POST",
|
|
17336
|
+
data,
|
|
17337
|
+
params,
|
|
17338
|
+
headers,
|
|
17339
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17340
|
+
})
|
|
17341
|
+
.catch((e) => {
|
|
17342
|
+
this.logger.error(formatErrors(e));
|
|
17343
|
+
throw e;
|
|
17344
|
+
});
|
|
17345
|
+
}),
|
|
17346
|
+
/**
|
|
17347
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=id_convert&version=v1 click to debug }
|
|
17348
|
+
*
|
|
17349
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=id_convert&project=cardkit&resource=card&version=v1 document }
|
|
17350
|
+
*
|
|
17351
|
+
* 获取消息 id 对应的卡片 id
|
|
17352
|
+
*/
|
|
17353
|
+
idConvert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17354
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17355
|
+
return this.httpInstance
|
|
17356
|
+
.request({
|
|
17357
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`, path),
|
|
17358
|
+
method: "POST",
|
|
17359
|
+
data,
|
|
17360
|
+
params,
|
|
17361
|
+
headers,
|
|
17362
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17363
|
+
})
|
|
17364
|
+
.catch((e) => {
|
|
17365
|
+
this.logger.error(formatErrors(e));
|
|
17366
|
+
throw e;
|
|
17367
|
+
});
|
|
17368
|
+
}),
|
|
17369
|
+
/**
|
|
17370
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=settings&version=v1 click to debug }
|
|
17371
|
+
*
|
|
17372
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=settings&project=cardkit&resource=card&version=v1 document }
|
|
17373
|
+
*
|
|
17374
|
+
* 更新指定的卡片设置
|
|
17375
|
+
*/
|
|
17376
|
+
settings: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17377
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17378
|
+
return this.httpInstance
|
|
17379
|
+
.request({
|
|
17380
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`, path),
|
|
17381
|
+
method: "PATCH",
|
|
17382
|
+
data,
|
|
17383
|
+
params,
|
|
17384
|
+
headers,
|
|
17385
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17386
|
+
})
|
|
17387
|
+
.catch((e) => {
|
|
17388
|
+
this.logger.error(formatErrors(e));
|
|
17389
|
+
throw e;
|
|
17390
|
+
});
|
|
17391
|
+
}),
|
|
17392
|
+
/**
|
|
17393
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=update&version=v1 click to debug }
|
|
17394
|
+
*
|
|
17395
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card&version=v1 document }
|
|
17396
|
+
*
|
|
17397
|
+
* 对卡片进行全量更新,即:以全新的卡片内容更新已有卡片
|
|
17398
|
+
*/
|
|
17399
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17400
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17401
|
+
return this.httpInstance
|
|
17402
|
+
.request({
|
|
17403
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`, path),
|
|
17404
|
+
method: "PUT",
|
|
17405
|
+
data,
|
|
17406
|
+
params,
|
|
17407
|
+
headers,
|
|
17408
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17409
|
+
})
|
|
17410
|
+
.catch((e) => {
|
|
17411
|
+
this.logger.error(formatErrors(e));
|
|
17412
|
+
throw e;
|
|
17413
|
+
});
|
|
17414
|
+
}),
|
|
17415
|
+
},
|
|
17416
|
+
/**
|
|
17417
|
+
* card.element
|
|
17418
|
+
*/
|
|
17419
|
+
cardElement: {
|
|
17420
|
+
/**
|
|
17421
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=content&version=v1 click to debug }
|
|
17422
|
+
*
|
|
17423
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=content&project=cardkit&resource=card.element&version=v1 document }
|
|
17424
|
+
*
|
|
17425
|
+
* 以传入的文本内容覆盖已有卡片组件内容,卡片将自动识别其中的增量变更内容,并以“打字机”效果输出。
|
|
17426
|
+
*/
|
|
17427
|
+
content: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17428
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17429
|
+
return this.httpInstance
|
|
17430
|
+
.request({
|
|
17431
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`, path),
|
|
17432
|
+
method: "PUT",
|
|
17433
|
+
data,
|
|
17434
|
+
params,
|
|
17435
|
+
headers,
|
|
17436
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17437
|
+
})
|
|
17438
|
+
.catch((e) => {
|
|
17439
|
+
this.logger.error(formatErrors(e));
|
|
17440
|
+
throw e;
|
|
17441
|
+
});
|
|
17442
|
+
}),
|
|
17443
|
+
/**
|
|
17444
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=create&version=v1 click to debug }
|
|
17445
|
+
*
|
|
17446
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card.element&version=v1 document }
|
|
17447
|
+
*
|
|
17448
|
+
* 在卡片内指定位置添加组件
|
|
17449
|
+
*/
|
|
17450
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17451
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17452
|
+
return this.httpInstance
|
|
17453
|
+
.request({
|
|
17454
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`, path),
|
|
17455
|
+
method: "POST",
|
|
17456
|
+
data,
|
|
17457
|
+
params,
|
|
17458
|
+
headers,
|
|
17459
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17460
|
+
})
|
|
17461
|
+
.catch((e) => {
|
|
17462
|
+
this.logger.error(formatErrors(e));
|
|
17463
|
+
throw e;
|
|
17464
|
+
});
|
|
17465
|
+
}),
|
|
17466
|
+
/**
|
|
17467
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=delete&version=v1 click to debug }
|
|
17468
|
+
*
|
|
17469
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=cardkit&resource=card.element&version=v1 document }
|
|
17470
|
+
*
|
|
17471
|
+
* 删除卡片内的指定组件
|
|
17472
|
+
*/
|
|
17473
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17474
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17475
|
+
return this.httpInstance
|
|
17476
|
+
.request({
|
|
17477
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17478
|
+
method: "DELETE",
|
|
17479
|
+
data,
|
|
17480
|
+
params,
|
|
17481
|
+
headers,
|
|
17482
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17483
|
+
})
|
|
17484
|
+
.catch((e) => {
|
|
17485
|
+
this.logger.error(formatErrors(e));
|
|
17486
|
+
throw e;
|
|
17487
|
+
});
|
|
17488
|
+
}),
|
|
17489
|
+
/**
|
|
17490
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=patch&version=v1 click to debug }
|
|
17491
|
+
*
|
|
17492
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=cardkit&resource=card.element&version=v1 document }
|
|
17493
|
+
*
|
|
17494
|
+
* 以传入的配置覆盖指定组件的已有配置
|
|
17495
|
+
*/
|
|
17496
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17497
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17498
|
+
return this.httpInstance
|
|
17499
|
+
.request({
|
|
17500
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17501
|
+
method: "PATCH",
|
|
17502
|
+
data,
|
|
17503
|
+
params,
|
|
17504
|
+
headers,
|
|
17505
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17506
|
+
})
|
|
17507
|
+
.catch((e) => {
|
|
17508
|
+
this.logger.error(formatErrors(e));
|
|
17509
|
+
throw e;
|
|
17510
|
+
});
|
|
17511
|
+
}),
|
|
17512
|
+
/**
|
|
17513
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=update&version=v1 click to debug }
|
|
17514
|
+
*
|
|
17515
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card.element&version=v1 document }
|
|
17516
|
+
*
|
|
17517
|
+
* 以新组件全量替换更新指定组件
|
|
17518
|
+
*/
|
|
17519
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17520
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17521
|
+
return this.httpInstance
|
|
17522
|
+
.request({
|
|
17523
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17524
|
+
method: "PUT",
|
|
17525
|
+
data,
|
|
17526
|
+
params,
|
|
17527
|
+
headers,
|
|
17528
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17529
|
+
})
|
|
17530
|
+
.catch((e) => {
|
|
17531
|
+
this.logger.error(formatErrors(e));
|
|
17532
|
+
throw e;
|
|
17533
|
+
});
|
|
17534
|
+
}),
|
|
17535
|
+
},
|
|
17536
|
+
},
|
|
17537
|
+
};
|
|
17538
|
+
}
|
|
17539
|
+
}
|
|
17540
|
+
|
|
17541
|
+
// auto gen
|
|
17542
|
+
class Client$O extends Client$P {
|
|
17009
17543
|
constructor() {
|
|
17010
17544
|
super(...arguments);
|
|
17011
17545
|
/**
|
|
@@ -17016,7 +17550,7 @@ class Client$N extends Client$O {
|
|
|
17016
17550
|
}
|
|
17017
17551
|
|
|
17018
17552
|
// auto gen
|
|
17019
|
-
class Client$
|
|
17553
|
+
class Client$N extends Client$O {
|
|
17020
17554
|
constructor() {
|
|
17021
17555
|
super(...arguments);
|
|
17022
17556
|
/**
|
|
@@ -17446,7 +17980,7 @@ class Client$M extends Client$N {
|
|
|
17446
17980
|
}
|
|
17447
17981
|
|
|
17448
17982
|
// auto gen
|
|
17449
|
-
class Client$
|
|
17983
|
+
class Client$M extends Client$N {
|
|
17450
17984
|
constructor() {
|
|
17451
17985
|
super(...arguments);
|
|
17452
17986
|
/**
|
|
@@ -22474,7 +23008,7 @@ class Client$L extends Client$M {
|
|
|
22474
23008
|
}
|
|
22475
23009
|
|
|
22476
23010
|
// auto gen
|
|
22477
|
-
class Client$
|
|
23011
|
+
class Client$L extends Client$M {
|
|
22478
23012
|
constructor() {
|
|
22479
23013
|
super(...arguments);
|
|
22480
23014
|
/**
|
|
@@ -22485,7 +23019,7 @@ class Client$K extends Client$L {
|
|
|
22485
23019
|
}
|
|
22486
23020
|
|
|
22487
23021
|
// auto gen
|
|
22488
|
-
class Client$
|
|
23022
|
+
class Client$K extends Client$L {
|
|
22489
23023
|
constructor() {
|
|
22490
23024
|
super(...arguments);
|
|
22491
23025
|
/**
|
|
@@ -22496,7 +23030,7 @@ class Client$J extends Client$K {
|
|
|
22496
23030
|
}
|
|
22497
23031
|
|
|
22498
23032
|
// auto gen
|
|
22499
|
-
class Client$
|
|
23033
|
+
class Client$J extends Client$K {
|
|
22500
23034
|
constructor() {
|
|
22501
23035
|
super(...arguments);
|
|
22502
23036
|
/**
|
|
@@ -28156,6 +28690,78 @@ class Client$I extends Client$J {
|
|
|
28156
28690
|
},
|
|
28157
28691
|
},
|
|
28158
28692
|
v2: {
|
|
28693
|
+
/**
|
|
28694
|
+
* approval_groups
|
|
28695
|
+
*/
|
|
28696
|
+
approvalGroups: {
|
|
28697
|
+
/**
|
|
28698
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approval_groups&apiName=get&version=v2 click to debug }
|
|
28699
|
+
*
|
|
28700
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=approval_groups&version=v2 document }
|
|
28701
|
+
*
|
|
28702
|
+
* 获取审批组信息
|
|
28703
|
+
*/
|
|
28704
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28705
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28706
|
+
return this.httpInstance
|
|
28707
|
+
.request({
|
|
28708
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`, path),
|
|
28709
|
+
method: "GET",
|
|
28710
|
+
data,
|
|
28711
|
+
params,
|
|
28712
|
+
headers,
|
|
28713
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
28714
|
+
})
|
|
28715
|
+
.catch((e) => {
|
|
28716
|
+
this.logger.error(formatErrors(e));
|
|
28717
|
+
throw e;
|
|
28718
|
+
});
|
|
28719
|
+
}),
|
|
28720
|
+
/**
|
|
28721
|
+
* {@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 }
|
|
28722
|
+
*
|
|
28723
|
+
* {@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 }
|
|
28724
|
+
*
|
|
28725
|
+
* 获取部门调整信息详情
|
|
28726
|
+
*/
|
|
28727
|
+
openQueryDepartmentChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28728
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28729
|
+
return this.httpInstance
|
|
28730
|
+
.request({
|
|
28731
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`, path),
|
|
28732
|
+
method: "POST",
|
|
28733
|
+
data,
|
|
28734
|
+
params,
|
|
28735
|
+
headers,
|
|
28736
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
28737
|
+
})
|
|
28738
|
+
.catch((e) => {
|
|
28739
|
+
this.logger.error(formatErrors(e));
|
|
28740
|
+
throw e;
|
|
28741
|
+
});
|
|
28742
|
+
}),
|
|
28743
|
+
/**
|
|
28744
|
+
* {@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 }
|
|
28745
|
+
*
|
|
28746
|
+
* {@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 }
|
|
28747
|
+
*/
|
|
28748
|
+
openQueryJobChangeListByIds: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28749
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28750
|
+
return this.httpInstance
|
|
28751
|
+
.request({
|
|
28752
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`, path),
|
|
28753
|
+
method: "POST",
|
|
28754
|
+
data,
|
|
28755
|
+
params,
|
|
28756
|
+
headers,
|
|
28757
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
28758
|
+
})
|
|
28759
|
+
.catch((e) => {
|
|
28760
|
+
this.logger.error(formatErrors(e));
|
|
28761
|
+
throw e;
|
|
28762
|
+
});
|
|
28763
|
+
}),
|
|
28764
|
+
},
|
|
28159
28765
|
/**
|
|
28160
28766
|
* approver
|
|
28161
28767
|
*/
|
|
@@ -29388,6 +29994,79 @@ class Client$I extends Client$J {
|
|
|
29388
29994
|
throw e;
|
|
29389
29995
|
});
|
|
29390
29996
|
}),
|
|
29997
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29998
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29999
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30000
|
+
const res = yield this.httpInstance
|
|
30001
|
+
.request({
|
|
30002
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
30003
|
+
method: "GET",
|
|
30004
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
30005
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
30006
|
+
data,
|
|
30007
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
30008
|
+
arrayFormat: "repeat",
|
|
30009
|
+
}),
|
|
30010
|
+
})
|
|
30011
|
+
.catch((e) => {
|
|
30012
|
+
this.logger.error(formatErrors(e));
|
|
30013
|
+
});
|
|
30014
|
+
return res;
|
|
30015
|
+
});
|
|
30016
|
+
const Iterable = {
|
|
30017
|
+
[Symbol.asyncIterator]() {
|
|
30018
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30019
|
+
let hasMore = true;
|
|
30020
|
+
let pageToken;
|
|
30021
|
+
while (hasMore) {
|
|
30022
|
+
try {
|
|
30023
|
+
const res = yield __await(sendRequest({
|
|
30024
|
+
headers,
|
|
30025
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30026
|
+
data,
|
|
30027
|
+
}));
|
|
30028
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
30029
|
+
// @ts-ignore
|
|
30030
|
+
has_more,
|
|
30031
|
+
// @ts-ignore
|
|
30032
|
+
page_token,
|
|
30033
|
+
// @ts-ignore
|
|
30034
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30035
|
+
yield yield __await(rest);
|
|
30036
|
+
hasMore = Boolean(has_more);
|
|
30037
|
+
pageToken = page_token || next_page_token;
|
|
30038
|
+
}
|
|
30039
|
+
catch (e) {
|
|
30040
|
+
yield yield __await(null);
|
|
30041
|
+
break;
|
|
30042
|
+
}
|
|
30043
|
+
}
|
|
30044
|
+
});
|
|
30045
|
+
},
|
|
30046
|
+
};
|
|
30047
|
+
return Iterable;
|
|
30048
|
+
}),
|
|
30049
|
+
/**
|
|
30050
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=query_recent_change&version=v2 click to debug }
|
|
30051
|
+
*
|
|
30052
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=cost_center&version=v2 document }
|
|
30053
|
+
*/
|
|
30054
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30055
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30056
|
+
return this.httpInstance
|
|
30057
|
+
.request({
|
|
30058
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
30059
|
+
method: "GET",
|
|
30060
|
+
data,
|
|
30061
|
+
params,
|
|
30062
|
+
headers,
|
|
30063
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30064
|
+
})
|
|
30065
|
+
.catch((e) => {
|
|
30066
|
+
this.logger.error(formatErrors(e));
|
|
30067
|
+
throw e;
|
|
30068
|
+
});
|
|
30069
|
+
}),
|
|
29391
30070
|
/**
|
|
29392
30071
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
|
|
29393
30072
|
*
|
|
@@ -29601,6 +30280,81 @@ class Client$I extends Client$J {
|
|
|
29601
30280
|
throw e;
|
|
29602
30281
|
});
|
|
29603
30282
|
}),
|
|
30283
|
+
queryOperationLogsWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30284
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30285
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30286
|
+
const res = yield this.httpInstance
|
|
30287
|
+
.request({
|
|
30288
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30289
|
+
method: "POST",
|
|
30290
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
30291
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
30292
|
+
data,
|
|
30293
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
30294
|
+
arrayFormat: "repeat",
|
|
30295
|
+
}),
|
|
30296
|
+
})
|
|
30297
|
+
.catch((e) => {
|
|
30298
|
+
this.logger.error(formatErrors(e));
|
|
30299
|
+
});
|
|
30300
|
+
return res;
|
|
30301
|
+
});
|
|
30302
|
+
const Iterable = {
|
|
30303
|
+
[Symbol.asyncIterator]() {
|
|
30304
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30305
|
+
let hasMore = true;
|
|
30306
|
+
let pageToken;
|
|
30307
|
+
while (hasMore) {
|
|
30308
|
+
try {
|
|
30309
|
+
const res = yield __await(sendRequest({
|
|
30310
|
+
headers,
|
|
30311
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30312
|
+
data,
|
|
30313
|
+
}));
|
|
30314
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
30315
|
+
// @ts-ignore
|
|
30316
|
+
has_more,
|
|
30317
|
+
// @ts-ignore
|
|
30318
|
+
page_token,
|
|
30319
|
+
// @ts-ignore
|
|
30320
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30321
|
+
yield yield __await(rest);
|
|
30322
|
+
hasMore = Boolean(has_more);
|
|
30323
|
+
pageToken = page_token || next_page_token;
|
|
30324
|
+
}
|
|
30325
|
+
catch (e) {
|
|
30326
|
+
yield yield __await(null);
|
|
30327
|
+
break;
|
|
30328
|
+
}
|
|
30329
|
+
}
|
|
30330
|
+
});
|
|
30331
|
+
},
|
|
30332
|
+
};
|
|
30333
|
+
return Iterable;
|
|
30334
|
+
}),
|
|
30335
|
+
/**
|
|
30336
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_operation_logs&version=v2 click to debug }
|
|
30337
|
+
*
|
|
30338
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_operation_logs&project=corehr&resource=department&version=v2 document }
|
|
30339
|
+
*
|
|
30340
|
+
* 查询操作日志
|
|
30341
|
+
*/
|
|
30342
|
+
queryOperationLogs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30343
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30344
|
+
return this.httpInstance
|
|
30345
|
+
.request({
|
|
30346
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30347
|
+
method: "POST",
|
|
30348
|
+
data,
|
|
30349
|
+
params,
|
|
30350
|
+
headers,
|
|
30351
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30352
|
+
})
|
|
30353
|
+
.catch((e) => {
|
|
30354
|
+
this.logger.error(formatErrors(e));
|
|
30355
|
+
throw e;
|
|
30356
|
+
});
|
|
30357
|
+
}),
|
|
29604
30358
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29605
30359
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29606
30360
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30140,6 +30894,34 @@ class Client$I extends Client$J {
|
|
|
30140
30894
|
});
|
|
30141
30895
|
}),
|
|
30142
30896
|
},
|
|
30897
|
+
/**
|
|
30898
|
+
* enum
|
|
30899
|
+
*/
|
|
30900
|
+
enum: {
|
|
30901
|
+
/**
|
|
30902
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=enum&apiName=search&version=v2 click to debug }
|
|
30903
|
+
*
|
|
30904
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=enum&version=v2 document }
|
|
30905
|
+
*
|
|
30906
|
+
* 通过apiname批量获取枚举信息
|
|
30907
|
+
*/
|
|
30908
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30909
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30910
|
+
return this.httpInstance
|
|
30911
|
+
.request({
|
|
30912
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/enums/search`, path),
|
|
30913
|
+
method: "POST",
|
|
30914
|
+
data,
|
|
30915
|
+
params,
|
|
30916
|
+
headers,
|
|
30917
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30918
|
+
})
|
|
30919
|
+
.catch((e) => {
|
|
30920
|
+
this.logger.error(formatErrors(e));
|
|
30921
|
+
throw e;
|
|
30922
|
+
});
|
|
30923
|
+
}),
|
|
30924
|
+
},
|
|
30143
30925
|
/**
|
|
30144
30926
|
* job
|
|
30145
30927
|
*/
|
|
@@ -30195,6 +30977,48 @@ class Client$I extends Client$J {
|
|
|
30195
30977
|
* job_change
|
|
30196
30978
|
*/
|
|
30197
30979
|
jobChange: {
|
|
30980
|
+
/**
|
|
30981
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v2 click to debug }
|
|
30982
|
+
*
|
|
30983
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_change&version=v2 document }
|
|
30984
|
+
*/
|
|
30985
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30986
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30987
|
+
return this.httpInstance
|
|
30988
|
+
.request({
|
|
30989
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes`, path),
|
|
30990
|
+
method: "POST",
|
|
30991
|
+
data,
|
|
30992
|
+
params,
|
|
30993
|
+
headers,
|
|
30994
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30995
|
+
})
|
|
30996
|
+
.catch((e) => {
|
|
30997
|
+
this.logger.error(formatErrors(e));
|
|
30998
|
+
throw e;
|
|
30999
|
+
});
|
|
31000
|
+
}),
|
|
31001
|
+
/**
|
|
31002
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=revoke&version=v2 click to debug }
|
|
31003
|
+
*
|
|
31004
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=job_change&version=v2 document }
|
|
31005
|
+
*/
|
|
31006
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31007
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31008
|
+
return this.httpInstance
|
|
31009
|
+
.request({
|
|
31010
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`, path),
|
|
31011
|
+
method: "POST",
|
|
31012
|
+
data,
|
|
31013
|
+
params,
|
|
31014
|
+
headers,
|
|
31015
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31016
|
+
})
|
|
31017
|
+
.catch((e) => {
|
|
31018
|
+
this.logger.error(formatErrors(e));
|
|
31019
|
+
throw e;
|
|
31020
|
+
});
|
|
31021
|
+
}),
|
|
30198
31022
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30199
31023
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30200
31024
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30298,6 +31122,79 @@ class Client$I extends Client$J {
|
|
|
30298
31122
|
throw e;
|
|
30299
31123
|
});
|
|
30300
31124
|
}),
|
|
31125
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31126
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31127
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31128
|
+
const res = yield this.httpInstance
|
|
31129
|
+
.request({
|
|
31130
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31131
|
+
method: "GET",
|
|
31132
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31133
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31134
|
+
data,
|
|
31135
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31136
|
+
arrayFormat: "repeat",
|
|
31137
|
+
}),
|
|
31138
|
+
})
|
|
31139
|
+
.catch((e) => {
|
|
31140
|
+
this.logger.error(formatErrors(e));
|
|
31141
|
+
});
|
|
31142
|
+
return res;
|
|
31143
|
+
});
|
|
31144
|
+
const Iterable = {
|
|
31145
|
+
[Symbol.asyncIterator]() {
|
|
31146
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31147
|
+
let hasMore = true;
|
|
31148
|
+
let pageToken;
|
|
31149
|
+
while (hasMore) {
|
|
31150
|
+
try {
|
|
31151
|
+
const res = yield __await(sendRequest({
|
|
31152
|
+
headers,
|
|
31153
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31154
|
+
data,
|
|
31155
|
+
}));
|
|
31156
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31157
|
+
// @ts-ignore
|
|
31158
|
+
has_more,
|
|
31159
|
+
// @ts-ignore
|
|
31160
|
+
page_token,
|
|
31161
|
+
// @ts-ignore
|
|
31162
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31163
|
+
yield yield __await(rest);
|
|
31164
|
+
hasMore = Boolean(has_more);
|
|
31165
|
+
pageToken = page_token || next_page_token;
|
|
31166
|
+
}
|
|
31167
|
+
catch (e) {
|
|
31168
|
+
yield yield __await(null);
|
|
31169
|
+
break;
|
|
31170
|
+
}
|
|
31171
|
+
}
|
|
31172
|
+
});
|
|
31173
|
+
},
|
|
31174
|
+
};
|
|
31175
|
+
return Iterable;
|
|
31176
|
+
}),
|
|
31177
|
+
/**
|
|
31178
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_recent_change&version=v2 click to debug }
|
|
31179
|
+
*
|
|
31180
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_family&version=v2 document }
|
|
31181
|
+
*/
|
|
31182
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31183
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31184
|
+
return this.httpInstance
|
|
31185
|
+
.request({
|
|
31186
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31187
|
+
method: "GET",
|
|
31188
|
+
data,
|
|
31189
|
+
params,
|
|
31190
|
+
headers,
|
|
31191
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31192
|
+
})
|
|
31193
|
+
.catch((e) => {
|
|
31194
|
+
this.logger.error(formatErrors(e));
|
|
31195
|
+
throw e;
|
|
31196
|
+
});
|
|
31197
|
+
}),
|
|
30301
31198
|
},
|
|
30302
31199
|
/**
|
|
30303
31200
|
* job_grade
|
|
@@ -30395,6 +31292,79 @@ class Client$I extends Client$J {
|
|
|
30395
31292
|
throw e;
|
|
30396
31293
|
});
|
|
30397
31294
|
}),
|
|
31295
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31296
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31297
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31298
|
+
const res = yield this.httpInstance
|
|
31299
|
+
.request({
|
|
31300
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31301
|
+
method: "GET",
|
|
31302
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31303
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31304
|
+
data,
|
|
31305
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31306
|
+
arrayFormat: "repeat",
|
|
31307
|
+
}),
|
|
31308
|
+
})
|
|
31309
|
+
.catch((e) => {
|
|
31310
|
+
this.logger.error(formatErrors(e));
|
|
31311
|
+
});
|
|
31312
|
+
return res;
|
|
31313
|
+
});
|
|
31314
|
+
const Iterable = {
|
|
31315
|
+
[Symbol.asyncIterator]() {
|
|
31316
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31317
|
+
let hasMore = true;
|
|
31318
|
+
let pageToken;
|
|
31319
|
+
while (hasMore) {
|
|
31320
|
+
try {
|
|
31321
|
+
const res = yield __await(sendRequest({
|
|
31322
|
+
headers,
|
|
31323
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31324
|
+
data,
|
|
31325
|
+
}));
|
|
31326
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31327
|
+
// @ts-ignore
|
|
31328
|
+
has_more,
|
|
31329
|
+
// @ts-ignore
|
|
31330
|
+
page_token,
|
|
31331
|
+
// @ts-ignore
|
|
31332
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31333
|
+
yield yield __await(rest);
|
|
31334
|
+
hasMore = Boolean(has_more);
|
|
31335
|
+
pageToken = page_token || next_page_token;
|
|
31336
|
+
}
|
|
31337
|
+
catch (e) {
|
|
31338
|
+
yield yield __await(null);
|
|
31339
|
+
break;
|
|
31340
|
+
}
|
|
31341
|
+
}
|
|
31342
|
+
});
|
|
31343
|
+
},
|
|
31344
|
+
};
|
|
31345
|
+
return Iterable;
|
|
31346
|
+
}),
|
|
31347
|
+
/**
|
|
31348
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query_recent_change&version=v2 click to debug }
|
|
31349
|
+
*
|
|
31350
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_grade&version=v2 document }
|
|
31351
|
+
*/
|
|
31352
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31353
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31354
|
+
return this.httpInstance
|
|
31355
|
+
.request({
|
|
31356
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31357
|
+
method: "GET",
|
|
31358
|
+
data,
|
|
31359
|
+
params,
|
|
31360
|
+
headers,
|
|
31361
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31362
|
+
})
|
|
31363
|
+
.catch((e) => {
|
|
31364
|
+
this.logger.error(formatErrors(e));
|
|
31365
|
+
throw e;
|
|
31366
|
+
});
|
|
31367
|
+
}),
|
|
30398
31368
|
},
|
|
30399
31369
|
/**
|
|
30400
31370
|
* job_level
|
|
@@ -30423,6 +31393,79 @@ class Client$I extends Client$J {
|
|
|
30423
31393
|
throw e;
|
|
30424
31394
|
});
|
|
30425
31395
|
}),
|
|
31396
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31397
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31398
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31399
|
+
const res = yield this.httpInstance
|
|
31400
|
+
.request({
|
|
31401
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31402
|
+
method: "GET",
|
|
31403
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31404
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31405
|
+
data,
|
|
31406
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31407
|
+
arrayFormat: "repeat",
|
|
31408
|
+
}),
|
|
31409
|
+
})
|
|
31410
|
+
.catch((e) => {
|
|
31411
|
+
this.logger.error(formatErrors(e));
|
|
31412
|
+
});
|
|
31413
|
+
return res;
|
|
31414
|
+
});
|
|
31415
|
+
const Iterable = {
|
|
31416
|
+
[Symbol.asyncIterator]() {
|
|
31417
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31418
|
+
let hasMore = true;
|
|
31419
|
+
let pageToken;
|
|
31420
|
+
while (hasMore) {
|
|
31421
|
+
try {
|
|
31422
|
+
const res = yield __await(sendRequest({
|
|
31423
|
+
headers,
|
|
31424
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31425
|
+
data,
|
|
31426
|
+
}));
|
|
31427
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31428
|
+
// @ts-ignore
|
|
31429
|
+
has_more,
|
|
31430
|
+
// @ts-ignore
|
|
31431
|
+
page_token,
|
|
31432
|
+
// @ts-ignore
|
|
31433
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31434
|
+
yield yield __await(rest);
|
|
31435
|
+
hasMore = Boolean(has_more);
|
|
31436
|
+
pageToken = page_token || next_page_token;
|
|
31437
|
+
}
|
|
31438
|
+
catch (e) {
|
|
31439
|
+
yield yield __await(null);
|
|
31440
|
+
break;
|
|
31441
|
+
}
|
|
31442
|
+
}
|
|
31443
|
+
});
|
|
31444
|
+
},
|
|
31445
|
+
};
|
|
31446
|
+
return Iterable;
|
|
31447
|
+
}),
|
|
31448
|
+
/**
|
|
31449
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=query_recent_change&version=v2 click to debug }
|
|
31450
|
+
*
|
|
31451
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_level&version=v2 document }
|
|
31452
|
+
*/
|
|
31453
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31454
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31455
|
+
return this.httpInstance
|
|
31456
|
+
.request({
|
|
31457
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31458
|
+
method: "GET",
|
|
31459
|
+
data,
|
|
31460
|
+
params,
|
|
31461
|
+
headers,
|
|
31462
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31463
|
+
})
|
|
31464
|
+
.catch((e) => {
|
|
31465
|
+
this.logger.error(formatErrors(e));
|
|
31466
|
+
throw e;
|
|
31467
|
+
});
|
|
31468
|
+
}),
|
|
30426
31469
|
},
|
|
30427
31470
|
/**
|
|
30428
31471
|
* location
|
|
@@ -30497,6 +31540,79 @@ class Client$I extends Client$J {
|
|
|
30497
31540
|
throw e;
|
|
30498
31541
|
});
|
|
30499
31542
|
}),
|
|
31543
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31544
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31545
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31546
|
+
const res = yield this.httpInstance
|
|
31547
|
+
.request({
|
|
31548
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31549
|
+
method: "GET",
|
|
31550
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31551
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31552
|
+
data,
|
|
31553
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31554
|
+
arrayFormat: "repeat",
|
|
31555
|
+
}),
|
|
31556
|
+
})
|
|
31557
|
+
.catch((e) => {
|
|
31558
|
+
this.logger.error(formatErrors(e));
|
|
31559
|
+
});
|
|
31560
|
+
return res;
|
|
31561
|
+
});
|
|
31562
|
+
const Iterable = {
|
|
31563
|
+
[Symbol.asyncIterator]() {
|
|
31564
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31565
|
+
let hasMore = true;
|
|
31566
|
+
let pageToken;
|
|
31567
|
+
while (hasMore) {
|
|
31568
|
+
try {
|
|
31569
|
+
const res = yield __await(sendRequest({
|
|
31570
|
+
headers,
|
|
31571
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31572
|
+
data,
|
|
31573
|
+
}));
|
|
31574
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31575
|
+
// @ts-ignore
|
|
31576
|
+
has_more,
|
|
31577
|
+
// @ts-ignore
|
|
31578
|
+
page_token,
|
|
31579
|
+
// @ts-ignore
|
|
31580
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31581
|
+
yield yield __await(rest);
|
|
31582
|
+
hasMore = Boolean(has_more);
|
|
31583
|
+
pageToken = page_token || next_page_token;
|
|
31584
|
+
}
|
|
31585
|
+
catch (e) {
|
|
31586
|
+
yield yield __await(null);
|
|
31587
|
+
break;
|
|
31588
|
+
}
|
|
31589
|
+
}
|
|
31590
|
+
});
|
|
31591
|
+
},
|
|
31592
|
+
};
|
|
31593
|
+
return Iterable;
|
|
31594
|
+
}),
|
|
31595
|
+
/**
|
|
31596
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=query_recent_change&version=v2 click to debug }
|
|
31597
|
+
*
|
|
31598
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=location&version=v2 document }
|
|
31599
|
+
*/
|
|
31600
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31601
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31602
|
+
return this.httpInstance
|
|
31603
|
+
.request({
|
|
31604
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31605
|
+
method: "GET",
|
|
31606
|
+
data,
|
|
31607
|
+
params,
|
|
31608
|
+
headers,
|
|
31609
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31610
|
+
})
|
|
31611
|
+
.catch((e) => {
|
|
31612
|
+
this.logger.error(formatErrors(e));
|
|
31613
|
+
throw e;
|
|
31614
|
+
});
|
|
31615
|
+
}),
|
|
30500
31616
|
},
|
|
30501
31617
|
/**
|
|
30502
31618
|
* location.address
|
|
@@ -30576,6 +31692,52 @@ class Client$I extends Client$J {
|
|
|
30576
31692
|
* offboarding
|
|
30577
31693
|
*/
|
|
30578
31694
|
offboarding: {
|
|
31695
|
+
/**
|
|
31696
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=edit&version=v2 click to debug }
|
|
31697
|
+
*
|
|
31698
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=edit&project=corehr&resource=offboarding&version=v2 document }
|
|
31699
|
+
*
|
|
31700
|
+
* 编辑离职信息
|
|
31701
|
+
*/
|
|
31702
|
+
edit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31703
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31704
|
+
return this.httpInstance
|
|
31705
|
+
.request({
|
|
31706
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/edit`, path),
|
|
31707
|
+
method: "POST",
|
|
31708
|
+
data,
|
|
31709
|
+
params,
|
|
31710
|
+
headers,
|
|
31711
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31712
|
+
})
|
|
31713
|
+
.catch((e) => {
|
|
31714
|
+
this.logger.error(formatErrors(e));
|
|
31715
|
+
throw e;
|
|
31716
|
+
});
|
|
31717
|
+
}),
|
|
31718
|
+
/**
|
|
31719
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=revoke&version=v2 click to debug }
|
|
31720
|
+
*
|
|
31721
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=revoke&project=corehr&resource=offboarding&version=v2 document }
|
|
31722
|
+
*
|
|
31723
|
+
* 撤销离职信息
|
|
31724
|
+
*/
|
|
31725
|
+
revoke: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31726
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31727
|
+
return this.httpInstance
|
|
31728
|
+
.request({
|
|
31729
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`, path),
|
|
31730
|
+
method: "POST",
|
|
31731
|
+
data,
|
|
31732
|
+
params,
|
|
31733
|
+
headers,
|
|
31734
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31735
|
+
})
|
|
31736
|
+
.catch((e) => {
|
|
31737
|
+
this.logger.error(formatErrors(e));
|
|
31738
|
+
throw e;
|
|
31739
|
+
});
|
|
31740
|
+
}),
|
|
30579
31741
|
/**
|
|
30580
31742
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit_v2&version=v2 click to debug }
|
|
30581
31743
|
*
|
|
@@ -30820,6 +31982,27 @@ class Client$I extends Client$J {
|
|
|
30820
31982
|
throw e;
|
|
30821
31983
|
});
|
|
30822
31984
|
}),
|
|
31985
|
+
/**
|
|
31986
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=restore_flow_instance&version=v2 click to debug }
|
|
31987
|
+
*
|
|
31988
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=restore_flow_instance&project=corehr&resource=pre_hire&version=v2 document }
|
|
31989
|
+
*/
|
|
31990
|
+
restoreFlowInstance: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31991
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31992
|
+
return this.httpInstance
|
|
31993
|
+
.request({
|
|
31994
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`, path),
|
|
31995
|
+
method: "POST",
|
|
31996
|
+
data,
|
|
31997
|
+
params,
|
|
31998
|
+
headers,
|
|
31999
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32000
|
+
})
|
|
32001
|
+
.catch((e) => {
|
|
32002
|
+
this.logger.error(formatErrors(e));
|
|
32003
|
+
throw e;
|
|
32004
|
+
});
|
|
32005
|
+
}),
|
|
30823
32006
|
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30824
32007
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30825
32008
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30918,6 +32101,27 @@ class Client$I extends Client$J {
|
|
|
30918
32101
|
throw e;
|
|
30919
32102
|
});
|
|
30920
32103
|
}),
|
|
32104
|
+
/**
|
|
32105
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=withdraw_onboarding&version=v2 click to debug }
|
|
32106
|
+
*
|
|
32107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=withdraw_onboarding&project=corehr&resource=pre_hire&version=v2 document }
|
|
32108
|
+
*/
|
|
32109
|
+
withdrawOnboarding: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32111
|
+
return this.httpInstance
|
|
32112
|
+
.request({
|
|
32113
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`, path),
|
|
32114
|
+
method: "POST",
|
|
32115
|
+
data,
|
|
32116
|
+
params,
|
|
32117
|
+
headers,
|
|
32118
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32119
|
+
})
|
|
32120
|
+
.catch((e) => {
|
|
32121
|
+
this.logger.error(formatErrors(e));
|
|
32122
|
+
throw e;
|
|
32123
|
+
});
|
|
32124
|
+
}),
|
|
30921
32125
|
},
|
|
30922
32126
|
/**
|
|
30923
32127
|
* probation.assessment
|
|
@@ -31154,6 +32358,32 @@ class Client$I extends Client$J {
|
|
|
31154
32358
|
});
|
|
31155
32359
|
}),
|
|
31156
32360
|
},
|
|
32361
|
+
/**
|
|
32362
|
+
* process.extra
|
|
32363
|
+
*/
|
|
32364
|
+
processExtra: {
|
|
32365
|
+
/**
|
|
32366
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.extra&apiName=update&version=v2 click to debug }
|
|
32367
|
+
*
|
|
32368
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.extra&version=v2 document }
|
|
32369
|
+
*/
|
|
32370
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32371
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32372
|
+
return this.httpInstance
|
|
32373
|
+
.request({
|
|
32374
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`, path),
|
|
32375
|
+
method: "PUT",
|
|
32376
|
+
data,
|
|
32377
|
+
params,
|
|
32378
|
+
headers,
|
|
32379
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32380
|
+
})
|
|
32381
|
+
.catch((e) => {
|
|
32382
|
+
this.logger.error(formatErrors(e));
|
|
32383
|
+
throw e;
|
|
32384
|
+
});
|
|
32385
|
+
}),
|
|
32386
|
+
},
|
|
31157
32387
|
/**
|
|
31158
32388
|
* process.form_variable_data
|
|
31159
32389
|
*/
|
|
@@ -31279,6 +32509,135 @@ class Client$I extends Client$J {
|
|
|
31279
32509
|
});
|
|
31280
32510
|
}),
|
|
31281
32511
|
},
|
|
32512
|
+
/**
|
|
32513
|
+
* process.transfer
|
|
32514
|
+
*/
|
|
32515
|
+
processTransfer: {
|
|
32516
|
+
/**
|
|
32517
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.transfer&apiName=update&version=v2 click to debug }
|
|
32518
|
+
*
|
|
32519
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process.transfer&version=v2 document }
|
|
32520
|
+
*/
|
|
32521
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32522
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32523
|
+
return this.httpInstance
|
|
32524
|
+
.request({
|
|
32525
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`, path),
|
|
32526
|
+
method: "PUT",
|
|
32527
|
+
data,
|
|
32528
|
+
params,
|
|
32529
|
+
headers,
|
|
32530
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32531
|
+
})
|
|
32532
|
+
.catch((e) => {
|
|
32533
|
+
this.logger.error(formatErrors(e));
|
|
32534
|
+
throw e;
|
|
32535
|
+
});
|
|
32536
|
+
}),
|
|
32537
|
+
},
|
|
32538
|
+
/**
|
|
32539
|
+
* process_revoke
|
|
32540
|
+
*/
|
|
32541
|
+
processRevoke: {
|
|
32542
|
+
/**
|
|
32543
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_revoke&apiName=update&version=v2 click to debug }
|
|
32544
|
+
*
|
|
32545
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_revoke&version=v2 document }
|
|
32546
|
+
*/
|
|
32547
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32548
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32549
|
+
return this.httpInstance
|
|
32550
|
+
.request({
|
|
32551
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`, path),
|
|
32552
|
+
method: "PUT",
|
|
32553
|
+
data,
|
|
32554
|
+
params,
|
|
32555
|
+
headers,
|
|
32556
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32557
|
+
})
|
|
32558
|
+
.catch((e) => {
|
|
32559
|
+
this.logger.error(formatErrors(e));
|
|
32560
|
+
throw e;
|
|
32561
|
+
});
|
|
32562
|
+
}),
|
|
32563
|
+
},
|
|
32564
|
+
/**
|
|
32565
|
+
* process_withdraw
|
|
32566
|
+
*/
|
|
32567
|
+
processWithdraw: {
|
|
32568
|
+
/**
|
|
32569
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process_withdraw&apiName=update&version=v2 click to debug }
|
|
32570
|
+
*
|
|
32571
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=corehr&resource=process_withdraw&version=v2 document }
|
|
32572
|
+
*/
|
|
32573
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32574
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32575
|
+
return this.httpInstance
|
|
32576
|
+
.request({
|
|
32577
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`, path),
|
|
32578
|
+
method: "PUT",
|
|
32579
|
+
data,
|
|
32580
|
+
params,
|
|
32581
|
+
headers,
|
|
32582
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32583
|
+
})
|
|
32584
|
+
.catch((e) => {
|
|
32585
|
+
this.logger.error(formatErrors(e));
|
|
32586
|
+
throw e;
|
|
32587
|
+
});
|
|
32588
|
+
}),
|
|
32589
|
+
},
|
|
32590
|
+
/**
|
|
32591
|
+
* report_detail_row
|
|
32592
|
+
*/
|
|
32593
|
+
reportDetailRow: {
|
|
32594
|
+
/**
|
|
32595
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
32596
|
+
*
|
|
32597
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=report_detail_row&version=v2 document }
|
|
32598
|
+
*
|
|
32599
|
+
* 批量删除填报行
|
|
32600
|
+
*/
|
|
32601
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32602
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32603
|
+
return this.httpInstance
|
|
32604
|
+
.request({
|
|
32605
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`, path),
|
|
32606
|
+
method: "POST",
|
|
32607
|
+
data,
|
|
32608
|
+
params,
|
|
32609
|
+
headers,
|
|
32610
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32611
|
+
})
|
|
32612
|
+
.catch((e) => {
|
|
32613
|
+
this.logger.error(formatErrors(e));
|
|
32614
|
+
throw e;
|
|
32615
|
+
});
|
|
32616
|
+
}),
|
|
32617
|
+
/**
|
|
32618
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=report_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
32619
|
+
*
|
|
32620
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=report_detail_row&version=v2 document }
|
|
32621
|
+
*
|
|
32622
|
+
* 批量创建/更新填报行
|
|
32623
|
+
*/
|
|
32624
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32625
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32626
|
+
return this.httpInstance
|
|
32627
|
+
.request({
|
|
32628
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`, path),
|
|
32629
|
+
method: "POST",
|
|
32630
|
+
data,
|
|
32631
|
+
params,
|
|
32632
|
+
headers,
|
|
32633
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32634
|
+
})
|
|
32635
|
+
.catch((e) => {
|
|
32636
|
+
this.logger.error(formatErrors(e));
|
|
32637
|
+
throw e;
|
|
32638
|
+
});
|
|
32639
|
+
}),
|
|
32640
|
+
},
|
|
31282
32641
|
/**
|
|
31283
32642
|
* workforce_plan
|
|
31284
32643
|
*/
|
|
@@ -31383,13 +32742,64 @@ class Client$I extends Client$J {
|
|
|
31383
32742
|
});
|
|
31384
32743
|
}),
|
|
31385
32744
|
},
|
|
32745
|
+
/**
|
|
32746
|
+
* workforce_plan_detail_row
|
|
32747
|
+
*/
|
|
32748
|
+
workforcePlanDetailRow: {
|
|
32749
|
+
/**
|
|
32750
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchDelete&version=v2 click to debug }
|
|
32751
|
+
*
|
|
32752
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchDelete&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
32753
|
+
*
|
|
32754
|
+
* 批量删除明细行
|
|
32755
|
+
*/
|
|
32756
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32757
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32758
|
+
return this.httpInstance
|
|
32759
|
+
.request({
|
|
32760
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`, path),
|
|
32761
|
+
method: "POST",
|
|
32762
|
+
data,
|
|
32763
|
+
params,
|
|
32764
|
+
headers,
|
|
32765
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32766
|
+
})
|
|
32767
|
+
.catch((e) => {
|
|
32768
|
+
this.logger.error(formatErrors(e));
|
|
32769
|
+
throw e;
|
|
32770
|
+
});
|
|
32771
|
+
}),
|
|
32772
|
+
/**
|
|
32773
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail_row&apiName=batchSave&version=v2 click to debug }
|
|
32774
|
+
*
|
|
32775
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batchSave&project=corehr&resource=workforce_plan_detail_row&version=v2 document }
|
|
32776
|
+
*
|
|
32777
|
+
* 批量创建/更新明细行
|
|
32778
|
+
*/
|
|
32779
|
+
batchSave: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32780
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32781
|
+
return this.httpInstance
|
|
32782
|
+
.request({
|
|
32783
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`, path),
|
|
32784
|
+
method: "POST",
|
|
32785
|
+
data,
|
|
32786
|
+
params,
|
|
32787
|
+
headers,
|
|
32788
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32789
|
+
})
|
|
32790
|
+
.catch((e) => {
|
|
32791
|
+
this.logger.error(formatErrors(e));
|
|
32792
|
+
throw e;
|
|
32793
|
+
});
|
|
32794
|
+
}),
|
|
32795
|
+
},
|
|
31386
32796
|
},
|
|
31387
32797
|
};
|
|
31388
32798
|
}
|
|
31389
32799
|
}
|
|
31390
32800
|
|
|
31391
32801
|
// auto gen
|
|
31392
|
-
class Client$
|
|
32802
|
+
class Client$I extends Client$J {
|
|
31393
32803
|
constructor() {
|
|
31394
32804
|
super(...arguments);
|
|
31395
32805
|
/**
|
|
@@ -31399,6 +32809,48 @@ class Client$H extends Client$I {
|
|
|
31399
32809
|
}
|
|
31400
32810
|
}
|
|
31401
32811
|
|
|
32812
|
+
// auto gen
|
|
32813
|
+
class Client$H extends Client$I {
|
|
32814
|
+
constructor() {
|
|
32815
|
+
super(...arguments);
|
|
32816
|
+
/**
|
|
32817
|
+
|
|
32818
|
+
*/
|
|
32819
|
+
this.docs = {
|
|
32820
|
+
v1: {
|
|
32821
|
+
/**
|
|
32822
|
+
* content
|
|
32823
|
+
*/
|
|
32824
|
+
content: {
|
|
32825
|
+
/**
|
|
32826
|
+
* {@link https://open.feishu.cn/api-explorer?project=docs&resource=content&apiName=get&version=v1 click to debug }
|
|
32827
|
+
*
|
|
32828
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docs&resource=content&version=v1 document }
|
|
32829
|
+
*
|
|
32830
|
+
* 获取云文档正文内容
|
|
32831
|
+
*/
|
|
32832
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32833
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32834
|
+
return this.httpInstance
|
|
32835
|
+
.request({
|
|
32836
|
+
url: fillApiPath(`${this.domain}/open-apis/docs/v1/content`, path),
|
|
32837
|
+
method: "GET",
|
|
32838
|
+
data,
|
|
32839
|
+
params,
|
|
32840
|
+
headers,
|
|
32841
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32842
|
+
})
|
|
32843
|
+
.catch((e) => {
|
|
32844
|
+
this.logger.error(formatErrors(e));
|
|
32845
|
+
throw e;
|
|
32846
|
+
});
|
|
32847
|
+
}),
|
|
32848
|
+
},
|
|
32849
|
+
},
|
|
32850
|
+
};
|
|
32851
|
+
}
|
|
32852
|
+
}
|
|
32853
|
+
|
|
31402
32854
|
// auto gen
|
|
31403
32855
|
class Client$G extends Client$H {
|
|
31404
32856
|
constructor() {
|
|
@@ -31907,6 +33359,218 @@ class Client$F extends Client$G {
|
|
|
31907
33359
|
* 云文档-文档
|
|
31908
33360
|
*/
|
|
31909
33361
|
this.docx = {
|
|
33362
|
+
/**
|
|
33363
|
+
* chat.announcement.block
|
|
33364
|
+
*/
|
|
33365
|
+
chatAnnouncementBlock: {
|
|
33366
|
+
/**
|
|
33367
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
33368
|
+
*
|
|
33369
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33370
|
+
*/
|
|
33371
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33372
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33373
|
+
return this.httpInstance
|
|
33374
|
+
.request({
|
|
33375
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
33376
|
+
method: "PATCH",
|
|
33377
|
+
data,
|
|
33378
|
+
params,
|
|
33379
|
+
headers,
|
|
33380
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33381
|
+
})
|
|
33382
|
+
.catch((e) => {
|
|
33383
|
+
this.logger.error(formatErrors(e));
|
|
33384
|
+
throw e;
|
|
33385
|
+
});
|
|
33386
|
+
}),
|
|
33387
|
+
/**
|
|
33388
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
33389
|
+
*
|
|
33390
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33391
|
+
*/
|
|
33392
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33393
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33394
|
+
return this.httpInstance
|
|
33395
|
+
.request({
|
|
33396
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
33397
|
+
method: "GET",
|
|
33398
|
+
data,
|
|
33399
|
+
params,
|
|
33400
|
+
headers,
|
|
33401
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33402
|
+
})
|
|
33403
|
+
.catch((e) => {
|
|
33404
|
+
this.logger.error(formatErrors(e));
|
|
33405
|
+
throw e;
|
|
33406
|
+
});
|
|
33407
|
+
}),
|
|
33408
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33409
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33410
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
33411
|
+
const res = yield this.httpInstance
|
|
33412
|
+
.request({
|
|
33413
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33414
|
+
method: "GET",
|
|
33415
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
33416
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
33417
|
+
data,
|
|
33418
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33419
|
+
})
|
|
33420
|
+
.catch((e) => {
|
|
33421
|
+
this.logger.error(formatErrors(e));
|
|
33422
|
+
});
|
|
33423
|
+
return res;
|
|
33424
|
+
});
|
|
33425
|
+
const Iterable = {
|
|
33426
|
+
[Symbol.asyncIterator]() {
|
|
33427
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
33428
|
+
let hasMore = true;
|
|
33429
|
+
let pageToken;
|
|
33430
|
+
while (hasMore) {
|
|
33431
|
+
try {
|
|
33432
|
+
const res = yield __await(sendRequest({
|
|
33433
|
+
headers,
|
|
33434
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
33435
|
+
data,
|
|
33436
|
+
}));
|
|
33437
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
33438
|
+
// @ts-ignore
|
|
33439
|
+
has_more,
|
|
33440
|
+
// @ts-ignore
|
|
33441
|
+
page_token,
|
|
33442
|
+
// @ts-ignore
|
|
33443
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
33444
|
+
yield yield __await(rest);
|
|
33445
|
+
hasMore = Boolean(has_more);
|
|
33446
|
+
pageToken = page_token || next_page_token;
|
|
33447
|
+
}
|
|
33448
|
+
catch (e) {
|
|
33449
|
+
yield yield __await(null);
|
|
33450
|
+
break;
|
|
33451
|
+
}
|
|
33452
|
+
}
|
|
33453
|
+
});
|
|
33454
|
+
},
|
|
33455
|
+
};
|
|
33456
|
+
return Iterable;
|
|
33457
|
+
}),
|
|
33458
|
+
/**
|
|
33459
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
33460
|
+
*
|
|
33461
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33462
|
+
*/
|
|
33463
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33465
|
+
return this.httpInstance
|
|
33466
|
+
.request({
|
|
33467
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33468
|
+
method: "GET",
|
|
33469
|
+
data,
|
|
33470
|
+
params,
|
|
33471
|
+
headers,
|
|
33472
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33473
|
+
})
|
|
33474
|
+
.catch((e) => {
|
|
33475
|
+
this.logger.error(formatErrors(e));
|
|
33476
|
+
throw e;
|
|
33477
|
+
});
|
|
33478
|
+
}),
|
|
33479
|
+
},
|
|
33480
|
+
/**
|
|
33481
|
+
* chat.announcement.block.children
|
|
33482
|
+
*/
|
|
33483
|
+
chatAnnouncementBlockChildren: {
|
|
33484
|
+
/**
|
|
33485
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
33486
|
+
*
|
|
33487
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33488
|
+
*/
|
|
33489
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33490
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33491
|
+
return this.httpInstance
|
|
33492
|
+
.request({
|
|
33493
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
33494
|
+
method: "DELETE",
|
|
33495
|
+
data,
|
|
33496
|
+
params,
|
|
33497
|
+
headers,
|
|
33498
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33499
|
+
})
|
|
33500
|
+
.catch((e) => {
|
|
33501
|
+
this.logger.error(formatErrors(e));
|
|
33502
|
+
throw e;
|
|
33503
|
+
});
|
|
33504
|
+
}),
|
|
33505
|
+
/**
|
|
33506
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
33507
|
+
*
|
|
33508
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33509
|
+
*/
|
|
33510
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33511
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33512
|
+
return this.httpInstance
|
|
33513
|
+
.request({
|
|
33514
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33515
|
+
method: "POST",
|
|
33516
|
+
data,
|
|
33517
|
+
params,
|
|
33518
|
+
headers,
|
|
33519
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33520
|
+
})
|
|
33521
|
+
.catch((e) => {
|
|
33522
|
+
this.logger.error(formatErrors(e));
|
|
33523
|
+
throw e;
|
|
33524
|
+
});
|
|
33525
|
+
}),
|
|
33526
|
+
/**
|
|
33527
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
33528
|
+
*
|
|
33529
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33530
|
+
*/
|
|
33531
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33532
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33533
|
+
return this.httpInstance
|
|
33534
|
+
.request({
|
|
33535
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33536
|
+
method: "GET",
|
|
33537
|
+
data,
|
|
33538
|
+
params,
|
|
33539
|
+
headers,
|
|
33540
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33541
|
+
})
|
|
33542
|
+
.catch((e) => {
|
|
33543
|
+
this.logger.error(formatErrors(e));
|
|
33544
|
+
throw e;
|
|
33545
|
+
});
|
|
33546
|
+
}),
|
|
33547
|
+
},
|
|
33548
|
+
/**
|
|
33549
|
+
* chat.announcement
|
|
33550
|
+
*/
|
|
33551
|
+
chatAnnouncement: {
|
|
33552
|
+
/**
|
|
33553
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
33554
|
+
*
|
|
33555
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
33556
|
+
*/
|
|
33557
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33558
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33559
|
+
return this.httpInstance
|
|
33560
|
+
.request({
|
|
33561
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
33562
|
+
method: "GET",
|
|
33563
|
+
data,
|
|
33564
|
+
params,
|
|
33565
|
+
headers,
|
|
33566
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33567
|
+
})
|
|
33568
|
+
.catch((e) => {
|
|
33569
|
+
this.logger.error(formatErrors(e));
|
|
33570
|
+
throw e;
|
|
33571
|
+
});
|
|
33572
|
+
}),
|
|
33573
|
+
},
|
|
31910
33574
|
/**
|
|
31911
33575
|
* 块
|
|
31912
33576
|
*/
|
|
@@ -32339,6 +34003,220 @@ class Client$F extends Client$G {
|
|
|
32339
34003
|
}),
|
|
32340
34004
|
},
|
|
32341
34005
|
v1: {
|
|
34006
|
+
/**
|
|
34007
|
+
* chat.announcement.block
|
|
34008
|
+
*/
|
|
34009
|
+
chatAnnouncementBlock: {
|
|
34010
|
+
/**
|
|
34011
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
34012
|
+
*
|
|
34013
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34014
|
+
*/
|
|
34015
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34016
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34017
|
+
return this.httpInstance
|
|
34018
|
+
.request({
|
|
34019
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
34020
|
+
method: "PATCH",
|
|
34021
|
+
data,
|
|
34022
|
+
params,
|
|
34023
|
+
headers,
|
|
34024
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34025
|
+
})
|
|
34026
|
+
.catch((e) => {
|
|
34027
|
+
this.logger.error(formatErrors(e));
|
|
34028
|
+
throw e;
|
|
34029
|
+
});
|
|
34030
|
+
}),
|
|
34031
|
+
/**
|
|
34032
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
34033
|
+
*
|
|
34034
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34035
|
+
*/
|
|
34036
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34037
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34038
|
+
return this.httpInstance
|
|
34039
|
+
.request({
|
|
34040
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
34041
|
+
method: "GET",
|
|
34042
|
+
data,
|
|
34043
|
+
params,
|
|
34044
|
+
headers,
|
|
34045
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34046
|
+
})
|
|
34047
|
+
.catch((e) => {
|
|
34048
|
+
this.logger.error(formatErrors(e));
|
|
34049
|
+
throw e;
|
|
34050
|
+
});
|
|
34051
|
+
}),
|
|
34052
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34053
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34054
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
34055
|
+
const res = yield this.httpInstance
|
|
34056
|
+
.request({
|
|
34057
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34058
|
+
method: "GET",
|
|
34059
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
34060
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
34061
|
+
data,
|
|
34062
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
34063
|
+
arrayFormat: "repeat",
|
|
34064
|
+
}),
|
|
34065
|
+
})
|
|
34066
|
+
.catch((e) => {
|
|
34067
|
+
this.logger.error(formatErrors(e));
|
|
34068
|
+
});
|
|
34069
|
+
return res;
|
|
34070
|
+
});
|
|
34071
|
+
const Iterable = {
|
|
34072
|
+
[Symbol.asyncIterator]() {
|
|
34073
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
34074
|
+
let hasMore = true;
|
|
34075
|
+
let pageToken;
|
|
34076
|
+
while (hasMore) {
|
|
34077
|
+
try {
|
|
34078
|
+
const res = yield __await(sendRequest({
|
|
34079
|
+
headers,
|
|
34080
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
34081
|
+
data,
|
|
34082
|
+
}));
|
|
34083
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
34084
|
+
// @ts-ignore
|
|
34085
|
+
has_more,
|
|
34086
|
+
// @ts-ignore
|
|
34087
|
+
page_token,
|
|
34088
|
+
// @ts-ignore
|
|
34089
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
34090
|
+
yield yield __await(rest);
|
|
34091
|
+
hasMore = Boolean(has_more);
|
|
34092
|
+
pageToken = page_token || next_page_token;
|
|
34093
|
+
}
|
|
34094
|
+
catch (e) {
|
|
34095
|
+
yield yield __await(null);
|
|
34096
|
+
break;
|
|
34097
|
+
}
|
|
34098
|
+
}
|
|
34099
|
+
});
|
|
34100
|
+
},
|
|
34101
|
+
};
|
|
34102
|
+
return Iterable;
|
|
34103
|
+
}),
|
|
34104
|
+
/**
|
|
34105
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
34106
|
+
*
|
|
34107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34108
|
+
*/
|
|
34109
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34111
|
+
return this.httpInstance
|
|
34112
|
+
.request({
|
|
34113
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34114
|
+
method: "GET",
|
|
34115
|
+
data,
|
|
34116
|
+
params,
|
|
34117
|
+
headers,
|
|
34118
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34119
|
+
})
|
|
34120
|
+
.catch((e) => {
|
|
34121
|
+
this.logger.error(formatErrors(e));
|
|
34122
|
+
throw e;
|
|
34123
|
+
});
|
|
34124
|
+
}),
|
|
34125
|
+
},
|
|
34126
|
+
/**
|
|
34127
|
+
* chat.announcement.block.children
|
|
34128
|
+
*/
|
|
34129
|
+
chatAnnouncementBlockChildren: {
|
|
34130
|
+
/**
|
|
34131
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
34132
|
+
*
|
|
34133
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34134
|
+
*/
|
|
34135
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34136
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34137
|
+
return this.httpInstance
|
|
34138
|
+
.request({
|
|
34139
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
34140
|
+
method: "DELETE",
|
|
34141
|
+
data,
|
|
34142
|
+
params,
|
|
34143
|
+
headers,
|
|
34144
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34145
|
+
})
|
|
34146
|
+
.catch((e) => {
|
|
34147
|
+
this.logger.error(formatErrors(e));
|
|
34148
|
+
throw e;
|
|
34149
|
+
});
|
|
34150
|
+
}),
|
|
34151
|
+
/**
|
|
34152
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
34153
|
+
*
|
|
34154
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34155
|
+
*/
|
|
34156
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34157
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34158
|
+
return this.httpInstance
|
|
34159
|
+
.request({
|
|
34160
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34161
|
+
method: "POST",
|
|
34162
|
+
data,
|
|
34163
|
+
params,
|
|
34164
|
+
headers,
|
|
34165
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34166
|
+
})
|
|
34167
|
+
.catch((e) => {
|
|
34168
|
+
this.logger.error(formatErrors(e));
|
|
34169
|
+
throw e;
|
|
34170
|
+
});
|
|
34171
|
+
}),
|
|
34172
|
+
/**
|
|
34173
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
34174
|
+
*
|
|
34175
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34176
|
+
*/
|
|
34177
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34178
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34179
|
+
return this.httpInstance
|
|
34180
|
+
.request({
|
|
34181
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34182
|
+
method: "GET",
|
|
34183
|
+
data,
|
|
34184
|
+
params,
|
|
34185
|
+
headers,
|
|
34186
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34187
|
+
})
|
|
34188
|
+
.catch((e) => {
|
|
34189
|
+
this.logger.error(formatErrors(e));
|
|
34190
|
+
throw e;
|
|
34191
|
+
});
|
|
34192
|
+
}),
|
|
34193
|
+
},
|
|
34194
|
+
/**
|
|
34195
|
+
* chat.announcement
|
|
34196
|
+
*/
|
|
34197
|
+
chatAnnouncement: {
|
|
34198
|
+
/**
|
|
34199
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
34200
|
+
*
|
|
34201
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
34202
|
+
*/
|
|
34203
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34204
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34205
|
+
return this.httpInstance
|
|
34206
|
+
.request({
|
|
34207
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
34208
|
+
method: "GET",
|
|
34209
|
+
data,
|
|
34210
|
+
params,
|
|
34211
|
+
headers,
|
|
34212
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34213
|
+
})
|
|
34214
|
+
.catch((e) => {
|
|
34215
|
+
this.logger.error(formatErrors(e));
|
|
34216
|
+
throw e;
|
|
34217
|
+
});
|
|
34218
|
+
}),
|
|
34219
|
+
},
|
|
32342
34220
|
/**
|
|
32343
34221
|
* 块
|
|
32344
34222
|
*/
|
|
@@ -32784,7 +34662,7 @@ class Client$E extends Client$F {
|
|
|
32784
34662
|
constructor() {
|
|
32785
34663
|
super(...arguments);
|
|
32786
34664
|
/**
|
|
32787
|
-
*
|
|
34665
|
+
* 云文档-文档
|
|
32788
34666
|
*/
|
|
32789
34667
|
this.drive = {
|
|
32790
34668
|
/**
|
|
@@ -36430,6 +38308,86 @@ class Client$E extends Client$F {
|
|
|
36430
38308
|
},
|
|
36431
38309
|
},
|
|
36432
38310
|
v2: {
|
|
38311
|
+
/**
|
|
38312
|
+
* file.like
|
|
38313
|
+
*/
|
|
38314
|
+
fileLike: {
|
|
38315
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38316
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38317
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
38318
|
+
const res = yield this.httpInstance
|
|
38319
|
+
.request({
|
|
38320
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38321
|
+
method: "GET",
|
|
38322
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
38323
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
38324
|
+
data,
|
|
38325
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
38326
|
+
arrayFormat: "repeat",
|
|
38327
|
+
}),
|
|
38328
|
+
})
|
|
38329
|
+
.catch((e) => {
|
|
38330
|
+
this.logger.error(formatErrors(e));
|
|
38331
|
+
});
|
|
38332
|
+
return res;
|
|
38333
|
+
});
|
|
38334
|
+
const Iterable = {
|
|
38335
|
+
[Symbol.asyncIterator]() {
|
|
38336
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
38337
|
+
let hasMore = true;
|
|
38338
|
+
let pageToken;
|
|
38339
|
+
while (hasMore) {
|
|
38340
|
+
try {
|
|
38341
|
+
const res = yield __await(sendRequest({
|
|
38342
|
+
headers,
|
|
38343
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
38344
|
+
data,
|
|
38345
|
+
}));
|
|
38346
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
38347
|
+
// @ts-ignore
|
|
38348
|
+
has_more,
|
|
38349
|
+
// @ts-ignore
|
|
38350
|
+
page_token,
|
|
38351
|
+
// @ts-ignore
|
|
38352
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
38353
|
+
yield yield __await(rest);
|
|
38354
|
+
hasMore = Boolean(has_more);
|
|
38355
|
+
pageToken = page_token || next_page_token;
|
|
38356
|
+
}
|
|
38357
|
+
catch (e) {
|
|
38358
|
+
yield yield __await(null);
|
|
38359
|
+
break;
|
|
38360
|
+
}
|
|
38361
|
+
}
|
|
38362
|
+
});
|
|
38363
|
+
},
|
|
38364
|
+
};
|
|
38365
|
+
return Iterable;
|
|
38366
|
+
}),
|
|
38367
|
+
/**
|
|
38368
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.like&apiName=list&version=v2 click to debug }
|
|
38369
|
+
*
|
|
38370
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=drive&resource=file.like&version=v2 document }
|
|
38371
|
+
*
|
|
38372
|
+
* 获取指定文件的点赞者列表并分页返回。
|
|
38373
|
+
*/
|
|
38374
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38375
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38376
|
+
return this.httpInstance
|
|
38377
|
+
.request({
|
|
38378
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38379
|
+
method: "GET",
|
|
38380
|
+
data,
|
|
38381
|
+
params,
|
|
38382
|
+
headers,
|
|
38383
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
38384
|
+
})
|
|
38385
|
+
.catch((e) => {
|
|
38386
|
+
this.logger.error(formatErrors(e));
|
|
38387
|
+
throw e;
|
|
38388
|
+
});
|
|
38389
|
+
}),
|
|
38390
|
+
},
|
|
36433
38391
|
/**
|
|
36434
38392
|
* permission.public
|
|
36435
38393
|
*/
|
|
@@ -40363,6 +42321,27 @@ class Client$u extends Client$v {
|
|
|
40363
42321
|
* 猎头(灰度租户可见)
|
|
40364
42322
|
*/
|
|
40365
42323
|
agency: {
|
|
42324
|
+
/**
|
|
42325
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
42326
|
+
*
|
|
42327
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
42328
|
+
*/
|
|
42329
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42330
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42331
|
+
return this.httpInstance
|
|
42332
|
+
.request({
|
|
42333
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
42334
|
+
method: "POST",
|
|
42335
|
+
data,
|
|
42336
|
+
params,
|
|
42337
|
+
headers,
|
|
42338
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42339
|
+
})
|
|
42340
|
+
.catch((e) => {
|
|
42341
|
+
this.logger.error(formatErrors(e));
|
|
42342
|
+
throw e;
|
|
42343
|
+
});
|
|
42344
|
+
}),
|
|
40366
42345
|
/**
|
|
40367
42346
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
40368
42347
|
*
|
|
@@ -40388,6 +42367,48 @@ class Client$u extends Client$v {
|
|
|
40388
42367
|
throw e;
|
|
40389
42368
|
});
|
|
40390
42369
|
}),
|
|
42370
|
+
/**
|
|
42371
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
42372
|
+
*
|
|
42373
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
42374
|
+
*/
|
|
42375
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42376
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42377
|
+
return this.httpInstance
|
|
42378
|
+
.request({
|
|
42379
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
42380
|
+
method: "POST",
|
|
42381
|
+
data,
|
|
42382
|
+
params,
|
|
42383
|
+
headers,
|
|
42384
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42385
|
+
})
|
|
42386
|
+
.catch((e) => {
|
|
42387
|
+
this.logger.error(formatErrors(e));
|
|
42388
|
+
throw e;
|
|
42389
|
+
});
|
|
42390
|
+
}),
|
|
42391
|
+
/**
|
|
42392
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
42393
|
+
*
|
|
42394
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
42395
|
+
*/
|
|
42396
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42397
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42398
|
+
return this.httpInstance
|
|
42399
|
+
.request({
|
|
42400
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
42401
|
+
method: "POST",
|
|
42402
|
+
data,
|
|
42403
|
+
params,
|
|
42404
|
+
headers,
|
|
42405
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42406
|
+
})
|
|
42407
|
+
.catch((e) => {
|
|
42408
|
+
this.logger.error(formatErrors(e));
|
|
42409
|
+
throw e;
|
|
42410
|
+
});
|
|
42411
|
+
}),
|
|
40391
42412
|
/**
|
|
40392
42413
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
40393
42414
|
*
|
|
@@ -40461,7 +42482,7 @@ class Client$u extends Client$v {
|
|
|
40461
42482
|
}),
|
|
40462
42483
|
},
|
|
40463
42484
|
/**
|
|
40464
|
-
*
|
|
42485
|
+
* 投递
|
|
40465
42486
|
*/
|
|
40466
42487
|
application: {
|
|
40467
42488
|
/**
|
|
@@ -40514,6 +42535,27 @@ class Client$u extends Client$v {
|
|
|
40514
42535
|
throw e;
|
|
40515
42536
|
});
|
|
40516
42537
|
}),
|
|
42538
|
+
/**
|
|
42539
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
42540
|
+
*
|
|
42541
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
42542
|
+
*/
|
|
42543
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
42544
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
42545
|
+
return this.httpInstance
|
|
42546
|
+
.request({
|
|
42547
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
42548
|
+
method: "GET",
|
|
42549
|
+
data,
|
|
42550
|
+
params,
|
|
42551
|
+
headers,
|
|
42552
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
42553
|
+
})
|
|
42554
|
+
.catch((e) => {
|
|
42555
|
+
this.logger.error(formatErrors(e));
|
|
42556
|
+
throw e;
|
|
42557
|
+
});
|
|
42558
|
+
}),
|
|
40517
42559
|
/**
|
|
40518
42560
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
40519
42561
|
*
|
|
@@ -41738,18 +43780,260 @@ class Client$u extends Client$v {
|
|
|
41738
43780
|
return Iterable;
|
|
41739
43781
|
}),
|
|
41740
43782
|
/**
|
|
41741
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
41742
|
-
*
|
|
41743
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
43783
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
43784
|
+
*
|
|
43785
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
43786
|
+
*
|
|
43787
|
+
* 根据人才 id 获取外部投递列表
|
|
43788
|
+
*/
|
|
43789
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43790
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43791
|
+
return this.httpInstance
|
|
43792
|
+
.request({
|
|
43793
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
43794
|
+
method: "GET",
|
|
43795
|
+
data,
|
|
43796
|
+
params,
|
|
43797
|
+
headers,
|
|
43798
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43799
|
+
})
|
|
43800
|
+
.catch((e) => {
|
|
43801
|
+
this.logger.error(formatErrors(e));
|
|
43802
|
+
throw e;
|
|
43803
|
+
});
|
|
43804
|
+
}),
|
|
43805
|
+
/**
|
|
43806
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
43807
|
+
*
|
|
43808
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
43809
|
+
*
|
|
43810
|
+
* 更新外部投递
|
|
43811
|
+
*/
|
|
43812
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43813
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43814
|
+
return this.httpInstance
|
|
43815
|
+
.request({
|
|
43816
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
43817
|
+
method: "PUT",
|
|
43818
|
+
data,
|
|
43819
|
+
params,
|
|
43820
|
+
headers,
|
|
43821
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43822
|
+
})
|
|
43823
|
+
.catch((e) => {
|
|
43824
|
+
this.logger.error(formatErrors(e));
|
|
43825
|
+
throw e;
|
|
43826
|
+
});
|
|
43827
|
+
}),
|
|
43828
|
+
},
|
|
43829
|
+
/**
|
|
43830
|
+
* 导入外部系统信息(灰度租户可见)
|
|
43831
|
+
*/
|
|
43832
|
+
externalBackgroundCheck: {
|
|
43833
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43834
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43835
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43836
|
+
const res = yield this.httpInstance
|
|
43837
|
+
.request({
|
|
43838
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
43839
|
+
method: "POST",
|
|
43840
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
43841
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
43842
|
+
data,
|
|
43843
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43844
|
+
})
|
|
43845
|
+
.catch((e) => {
|
|
43846
|
+
this.logger.error(formatErrors(e));
|
|
43847
|
+
});
|
|
43848
|
+
return res;
|
|
43849
|
+
});
|
|
43850
|
+
const Iterable = {
|
|
43851
|
+
[Symbol.asyncIterator]() {
|
|
43852
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43853
|
+
let hasMore = true;
|
|
43854
|
+
let pageToken;
|
|
43855
|
+
while (hasMore) {
|
|
43856
|
+
try {
|
|
43857
|
+
const res = yield __await(sendRequest({
|
|
43858
|
+
headers,
|
|
43859
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
43860
|
+
data,
|
|
43861
|
+
}));
|
|
43862
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
43863
|
+
// @ts-ignore
|
|
43864
|
+
has_more,
|
|
43865
|
+
// @ts-ignore
|
|
43866
|
+
page_token,
|
|
43867
|
+
// @ts-ignore
|
|
43868
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
43869
|
+
yield yield __await(rest);
|
|
43870
|
+
hasMore = Boolean(has_more);
|
|
43871
|
+
pageToken = page_token || next_page_token;
|
|
43872
|
+
}
|
|
43873
|
+
catch (e) {
|
|
43874
|
+
yield yield __await(null);
|
|
43875
|
+
break;
|
|
43876
|
+
}
|
|
43877
|
+
}
|
|
43878
|
+
});
|
|
43879
|
+
},
|
|
43880
|
+
};
|
|
43881
|
+
return Iterable;
|
|
43882
|
+
}),
|
|
43883
|
+
/**
|
|
43884
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
43885
|
+
*
|
|
43886
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
43887
|
+
*/
|
|
43888
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43889
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43890
|
+
return this.httpInstance
|
|
43891
|
+
.request({
|
|
43892
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
43893
|
+
method: "POST",
|
|
43894
|
+
data,
|
|
43895
|
+
params,
|
|
43896
|
+
headers,
|
|
43897
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43898
|
+
})
|
|
43899
|
+
.catch((e) => {
|
|
43900
|
+
this.logger.error(formatErrors(e));
|
|
43901
|
+
throw e;
|
|
43902
|
+
});
|
|
43903
|
+
}),
|
|
43904
|
+
/**
|
|
43905
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
43906
|
+
*
|
|
43907
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
43908
|
+
*
|
|
43909
|
+
* 创建外部背调
|
|
43910
|
+
*
|
|
43911
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
43912
|
+
*/
|
|
43913
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43914
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43915
|
+
return this.httpInstance
|
|
43916
|
+
.request({
|
|
43917
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
43918
|
+
method: "POST",
|
|
43919
|
+
data,
|
|
43920
|
+
params,
|
|
43921
|
+
headers,
|
|
43922
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43923
|
+
})
|
|
43924
|
+
.catch((e) => {
|
|
43925
|
+
this.logger.error(formatErrors(e));
|
|
43926
|
+
throw e;
|
|
43927
|
+
});
|
|
43928
|
+
}),
|
|
43929
|
+
/**
|
|
43930
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
43931
|
+
*
|
|
43932
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
43933
|
+
*/
|
|
43934
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43935
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43936
|
+
return this.httpInstance
|
|
43937
|
+
.request({
|
|
43938
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
43939
|
+
method: "DELETE",
|
|
43940
|
+
data,
|
|
43941
|
+
params,
|
|
43942
|
+
headers,
|
|
43943
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43944
|
+
})
|
|
43945
|
+
.catch((e) => {
|
|
43946
|
+
this.logger.error(formatErrors(e));
|
|
43947
|
+
throw e;
|
|
43948
|
+
});
|
|
43949
|
+
}),
|
|
43950
|
+
/**
|
|
43951
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
43952
|
+
*
|
|
43953
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
43954
|
+
*/
|
|
43955
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43956
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43957
|
+
return this.httpInstance
|
|
43958
|
+
.request({
|
|
43959
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
43960
|
+
method: "PUT",
|
|
43961
|
+
data,
|
|
43962
|
+
params,
|
|
43963
|
+
headers,
|
|
43964
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43965
|
+
})
|
|
43966
|
+
.catch((e) => {
|
|
43967
|
+
this.logger.error(formatErrors(e));
|
|
43968
|
+
throw e;
|
|
43969
|
+
});
|
|
43970
|
+
}),
|
|
43971
|
+
},
|
|
43972
|
+
/**
|
|
43973
|
+
* 导入外部系统信息(灰度租户可见)
|
|
43974
|
+
*/
|
|
43975
|
+
externalInterview: {
|
|
43976
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43978
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
43979
|
+
const res = yield this.httpInstance
|
|
43980
|
+
.request({
|
|
43981
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
43982
|
+
method: "POST",
|
|
43983
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
43984
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
43985
|
+
data,
|
|
43986
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
43987
|
+
})
|
|
43988
|
+
.catch((e) => {
|
|
43989
|
+
this.logger.error(formatErrors(e));
|
|
43990
|
+
});
|
|
43991
|
+
return res;
|
|
43992
|
+
});
|
|
43993
|
+
const Iterable = {
|
|
43994
|
+
[Symbol.asyncIterator]() {
|
|
43995
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
43996
|
+
let hasMore = true;
|
|
43997
|
+
let pageToken;
|
|
43998
|
+
while (hasMore) {
|
|
43999
|
+
try {
|
|
44000
|
+
const res = yield __await(sendRequest({
|
|
44001
|
+
headers,
|
|
44002
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44003
|
+
data,
|
|
44004
|
+
}));
|
|
44005
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
44006
|
+
// @ts-ignore
|
|
44007
|
+
has_more,
|
|
44008
|
+
// @ts-ignore
|
|
44009
|
+
page_token,
|
|
44010
|
+
// @ts-ignore
|
|
44011
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44012
|
+
yield yield __await(rest);
|
|
44013
|
+
hasMore = Boolean(has_more);
|
|
44014
|
+
pageToken = page_token || next_page_token;
|
|
44015
|
+
}
|
|
44016
|
+
catch (e) {
|
|
44017
|
+
yield yield __await(null);
|
|
44018
|
+
break;
|
|
44019
|
+
}
|
|
44020
|
+
}
|
|
44021
|
+
});
|
|
44022
|
+
},
|
|
44023
|
+
};
|
|
44024
|
+
return Iterable;
|
|
44025
|
+
}),
|
|
44026
|
+
/**
|
|
44027
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
41744
44028
|
*
|
|
41745
|
-
*
|
|
44029
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
41746
44030
|
*/
|
|
41747
|
-
|
|
44031
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41748
44032
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41749
44033
|
return this.httpInstance
|
|
41750
44034
|
.request({
|
|
41751
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41752
|
-
method: "
|
|
44035
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
44036
|
+
method: "POST",
|
|
41753
44037
|
data,
|
|
41754
44038
|
params,
|
|
41755
44039
|
headers,
|
|
@@ -41761,18 +44045,20 @@ class Client$u extends Client$v {
|
|
|
41761
44045
|
});
|
|
41762
44046
|
}),
|
|
41763
44047
|
/**
|
|
41764
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
44048
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
41765
44049
|
*
|
|
41766
|
-
* {@link https://open.feishu.cn/
|
|
44050
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
41767
44051
|
*
|
|
41768
|
-
*
|
|
44052
|
+
* 创建外部面试
|
|
44053
|
+
*
|
|
44054
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
41769
44055
|
*/
|
|
41770
|
-
|
|
44056
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41771
44057
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41772
44058
|
return this.httpInstance
|
|
41773
44059
|
.request({
|
|
41774
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41775
|
-
method: "
|
|
44060
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
44061
|
+
method: "POST",
|
|
41776
44062
|
data,
|
|
41777
44063
|
params,
|
|
41778
44064
|
headers,
|
|
@@ -41783,26 +44069,17 @@ class Client$u extends Client$v {
|
|
|
41783
44069
|
throw e;
|
|
41784
44070
|
});
|
|
41785
44071
|
}),
|
|
41786
|
-
},
|
|
41787
|
-
/**
|
|
41788
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41789
|
-
*/
|
|
41790
|
-
externalBackgroundCheck: {
|
|
41791
44072
|
/**
|
|
41792
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
44073
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
41793
44074
|
*
|
|
41794
|
-
* {@link https://open.feishu.cn/
|
|
41795
|
-
*
|
|
41796
|
-
* 创建外部背调
|
|
41797
|
-
*
|
|
41798
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
44075
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
41799
44076
|
*/
|
|
41800
|
-
|
|
44077
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41801
44078
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41802
44079
|
return this.httpInstance
|
|
41803
44080
|
.request({
|
|
41804
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
41805
|
-
method: "
|
|
44081
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
44082
|
+
method: "DELETE",
|
|
41806
44083
|
data,
|
|
41807
44084
|
params,
|
|
41808
44085
|
headers,
|
|
@@ -41813,26 +44090,17 @@ class Client$u extends Client$v {
|
|
|
41813
44090
|
throw e;
|
|
41814
44091
|
});
|
|
41815
44092
|
}),
|
|
41816
|
-
},
|
|
41817
|
-
/**
|
|
41818
|
-
* 导入外部系统信息(灰度租户可见)
|
|
41819
|
-
*/
|
|
41820
|
-
externalInterview: {
|
|
41821
44093
|
/**
|
|
41822
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
44094
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
41823
44095
|
*
|
|
41824
|
-
* {@link https://open.feishu.cn/
|
|
41825
|
-
*
|
|
41826
|
-
* 创建外部面试
|
|
41827
|
-
*
|
|
41828
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
44096
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
41829
44097
|
*/
|
|
41830
|
-
|
|
44098
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41831
44099
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41832
44100
|
return this.httpInstance
|
|
41833
44101
|
.request({
|
|
41834
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
41835
|
-
method: "
|
|
44102
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
44103
|
+
method: "PUT",
|
|
41836
44104
|
data,
|
|
41837
44105
|
params,
|
|
41838
44106
|
headers,
|
|
@@ -41895,6 +44163,145 @@ class Client$u extends Client$v {
|
|
|
41895
44163
|
});
|
|
41896
44164
|
}),
|
|
41897
44165
|
},
|
|
44166
|
+
/**
|
|
44167
|
+
* external_offer
|
|
44168
|
+
*/
|
|
44169
|
+
externalOffer: {
|
|
44170
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44171
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44172
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
44173
|
+
const res = yield this.httpInstance
|
|
44174
|
+
.request({
|
|
44175
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
44176
|
+
method: "POST",
|
|
44177
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
44178
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
44179
|
+
data,
|
|
44180
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44181
|
+
})
|
|
44182
|
+
.catch((e) => {
|
|
44183
|
+
this.logger.error(formatErrors(e));
|
|
44184
|
+
});
|
|
44185
|
+
return res;
|
|
44186
|
+
});
|
|
44187
|
+
const Iterable = {
|
|
44188
|
+
[Symbol.asyncIterator]() {
|
|
44189
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
44190
|
+
let hasMore = true;
|
|
44191
|
+
let pageToken;
|
|
44192
|
+
while (hasMore) {
|
|
44193
|
+
try {
|
|
44194
|
+
const res = yield __await(sendRequest({
|
|
44195
|
+
headers,
|
|
44196
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44197
|
+
data,
|
|
44198
|
+
}));
|
|
44199
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
44200
|
+
// @ts-ignore
|
|
44201
|
+
has_more,
|
|
44202
|
+
// @ts-ignore
|
|
44203
|
+
page_token,
|
|
44204
|
+
// @ts-ignore
|
|
44205
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44206
|
+
yield yield __await(rest);
|
|
44207
|
+
hasMore = Boolean(has_more);
|
|
44208
|
+
pageToken = page_token || next_page_token;
|
|
44209
|
+
}
|
|
44210
|
+
catch (e) {
|
|
44211
|
+
yield yield __await(null);
|
|
44212
|
+
break;
|
|
44213
|
+
}
|
|
44214
|
+
}
|
|
44215
|
+
});
|
|
44216
|
+
},
|
|
44217
|
+
};
|
|
44218
|
+
return Iterable;
|
|
44219
|
+
}),
|
|
44220
|
+
/**
|
|
44221
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
44222
|
+
*
|
|
44223
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
44224
|
+
*/
|
|
44225
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44226
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44227
|
+
return this.httpInstance
|
|
44228
|
+
.request({
|
|
44229
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
44230
|
+
method: "POST",
|
|
44231
|
+
data,
|
|
44232
|
+
params,
|
|
44233
|
+
headers,
|
|
44234
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44235
|
+
})
|
|
44236
|
+
.catch((e) => {
|
|
44237
|
+
this.logger.error(formatErrors(e));
|
|
44238
|
+
throw e;
|
|
44239
|
+
});
|
|
44240
|
+
}),
|
|
44241
|
+
/**
|
|
44242
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
44243
|
+
*
|
|
44244
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
44245
|
+
*/
|
|
44246
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44247
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44248
|
+
return this.httpInstance
|
|
44249
|
+
.request({
|
|
44250
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
44251
|
+
method: "POST",
|
|
44252
|
+
data,
|
|
44253
|
+
params,
|
|
44254
|
+
headers,
|
|
44255
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44256
|
+
})
|
|
44257
|
+
.catch((e) => {
|
|
44258
|
+
this.logger.error(formatErrors(e));
|
|
44259
|
+
throw e;
|
|
44260
|
+
});
|
|
44261
|
+
}),
|
|
44262
|
+
/**
|
|
44263
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
44264
|
+
*
|
|
44265
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
44266
|
+
*/
|
|
44267
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44268
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44269
|
+
return this.httpInstance
|
|
44270
|
+
.request({
|
|
44271
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
44272
|
+
method: "DELETE",
|
|
44273
|
+
data,
|
|
44274
|
+
params,
|
|
44275
|
+
headers,
|
|
44276
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44277
|
+
})
|
|
44278
|
+
.catch((e) => {
|
|
44279
|
+
this.logger.error(formatErrors(e));
|
|
44280
|
+
throw e;
|
|
44281
|
+
});
|
|
44282
|
+
}),
|
|
44283
|
+
/**
|
|
44284
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
44285
|
+
*
|
|
44286
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
44287
|
+
*/
|
|
44288
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44289
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44290
|
+
return this.httpInstance
|
|
44291
|
+
.request({
|
|
44292
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
44293
|
+
method: "PUT",
|
|
44294
|
+
data,
|
|
44295
|
+
params,
|
|
44296
|
+
headers,
|
|
44297
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
44298
|
+
})
|
|
44299
|
+
.catch((e) => {
|
|
44300
|
+
this.logger.error(formatErrors(e));
|
|
44301
|
+
throw e;
|
|
44302
|
+
});
|
|
44303
|
+
}),
|
|
44304
|
+
},
|
|
41898
44305
|
/**
|
|
41899
44306
|
* external_referral_reward
|
|
41900
44307
|
*/
|
|
@@ -42616,6 +45023,27 @@ class Client$u extends Client$v {
|
|
|
42616
45023
|
throw e;
|
|
42617
45024
|
});
|
|
42618
45025
|
}),
|
|
45026
|
+
/**
|
|
45027
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
45028
|
+
*
|
|
45029
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
45030
|
+
*/
|
|
45031
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45032
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45033
|
+
return this.httpInstance
|
|
45034
|
+
.request({
|
|
45035
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
45036
|
+
method: "GET",
|
|
45037
|
+
data,
|
|
45038
|
+
params,
|
|
45039
|
+
headers,
|
|
45040
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
45041
|
+
})
|
|
45042
|
+
.catch((e) => {
|
|
45043
|
+
this.logger.error(formatErrors(e));
|
|
45044
|
+
throw e;
|
|
45045
|
+
});
|
|
45046
|
+
}),
|
|
42619
45047
|
/**
|
|
42620
45048
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
42621
45049
|
*
|
|
@@ -43814,6 +46242,48 @@ class Client$u extends Client$v {
|
|
|
43814
46242
|
throw e;
|
|
43815
46243
|
});
|
|
43816
46244
|
}),
|
|
46245
|
+
/**
|
|
46246
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
46247
|
+
*
|
|
46248
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
46249
|
+
*/
|
|
46250
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46251
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46252
|
+
return this.httpInstance
|
|
46253
|
+
.request({
|
|
46254
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
46255
|
+
method: "POST",
|
|
46256
|
+
data,
|
|
46257
|
+
params,
|
|
46258
|
+
headers,
|
|
46259
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
46260
|
+
})
|
|
46261
|
+
.catch((e) => {
|
|
46262
|
+
this.logger.error(formatErrors(e));
|
|
46263
|
+
throw e;
|
|
46264
|
+
});
|
|
46265
|
+
}),
|
|
46266
|
+
/**
|
|
46267
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
46268
|
+
*
|
|
46269
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
46270
|
+
*/
|
|
46271
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46272
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46273
|
+
return this.httpInstance
|
|
46274
|
+
.request({
|
|
46275
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
46276
|
+
method: "GET",
|
|
46277
|
+
data,
|
|
46278
|
+
params,
|
|
46279
|
+
headers,
|
|
46280
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
46281
|
+
})
|
|
46282
|
+
.catch((e) => {
|
|
46283
|
+
this.logger.error(formatErrors(e));
|
|
46284
|
+
throw e;
|
|
46285
|
+
});
|
|
46286
|
+
}),
|
|
43817
46287
|
/**
|
|
43818
46288
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
43819
46289
|
*
|
|
@@ -44420,6 +46890,27 @@ class Client$u extends Client$v {
|
|
|
44420
46890
|
throw e;
|
|
44421
46891
|
});
|
|
44422
46892
|
}),
|
|
46893
|
+
/**
|
|
46894
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
46895
|
+
*
|
|
46896
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
46897
|
+
*/
|
|
46898
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46899
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46900
|
+
return this.httpInstance
|
|
46901
|
+
.request({
|
|
46902
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
46903
|
+
method: "POST",
|
|
46904
|
+
data,
|
|
46905
|
+
params,
|
|
46906
|
+
headers,
|
|
46907
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
46908
|
+
})
|
|
46909
|
+
.catch((e) => {
|
|
46910
|
+
this.logger.error(formatErrors(e));
|
|
46911
|
+
throw e;
|
|
46912
|
+
});
|
|
46913
|
+
}),
|
|
44423
46914
|
/**
|
|
44424
46915
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44425
46916
|
*
|
|
@@ -44497,6 +46988,32 @@ class Client$u extends Client$v {
|
|
|
44497
46988
|
});
|
|
44498
46989
|
}),
|
|
44499
46990
|
},
|
|
46991
|
+
/**
|
|
46992
|
+
* talent_blocklist
|
|
46993
|
+
*/
|
|
46994
|
+
talentBlocklist: {
|
|
46995
|
+
/**
|
|
46996
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
46997
|
+
*
|
|
46998
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
46999
|
+
*/
|
|
47000
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47001
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47002
|
+
return this.httpInstance
|
|
47003
|
+
.request({
|
|
47004
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
47005
|
+
method: "POST",
|
|
47006
|
+
data,
|
|
47007
|
+
params,
|
|
47008
|
+
headers,
|
|
47009
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47010
|
+
})
|
|
47011
|
+
.catch((e) => {
|
|
47012
|
+
this.logger.error(formatErrors(e));
|
|
47013
|
+
throw e;
|
|
47014
|
+
});
|
|
47015
|
+
}),
|
|
47016
|
+
},
|
|
44500
47017
|
/**
|
|
44501
47018
|
* talent_folder
|
|
44502
47019
|
*/
|
|
@@ -44641,6 +47158,27 @@ class Client$u extends Client$v {
|
|
|
44641
47158
|
* talent_pool
|
|
44642
47159
|
*/
|
|
44643
47160
|
talentPool: {
|
|
47161
|
+
/**
|
|
47162
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
47163
|
+
*
|
|
47164
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
47165
|
+
*/
|
|
47166
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47167
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47168
|
+
return this.httpInstance
|
|
47169
|
+
.request({
|
|
47170
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
47171
|
+
method: "POST",
|
|
47172
|
+
data,
|
|
47173
|
+
params,
|
|
47174
|
+
headers,
|
|
47175
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
47176
|
+
})
|
|
47177
|
+
.catch((e) => {
|
|
47178
|
+
this.logger.error(formatErrors(e));
|
|
47179
|
+
throw e;
|
|
47180
|
+
});
|
|
47181
|
+
}),
|
|
44644
47182
|
/**
|
|
44645
47183
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
44646
47184
|
*
|
|
@@ -45786,6 +48324,27 @@ class Client$u extends Client$v {
|
|
|
45786
48324
|
* 猎头(灰度租户可见)
|
|
45787
48325
|
*/
|
|
45788
48326
|
agency: {
|
|
48327
|
+
/**
|
|
48328
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=batch_query&version=v1 click to debug }
|
|
48329
|
+
*
|
|
48330
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=agency&version=v1 document }
|
|
48331
|
+
*/
|
|
48332
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48333
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48334
|
+
return this.httpInstance
|
|
48335
|
+
.request({
|
|
48336
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/batch_query`, path),
|
|
48337
|
+
method: "POST",
|
|
48338
|
+
data,
|
|
48339
|
+
params,
|
|
48340
|
+
headers,
|
|
48341
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48342
|
+
})
|
|
48343
|
+
.catch((e) => {
|
|
48344
|
+
this.logger.error(formatErrors(e));
|
|
48345
|
+
throw e;
|
|
48346
|
+
});
|
|
48347
|
+
}),
|
|
45789
48348
|
/**
|
|
45790
48349
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get&version=v1 click to debug }
|
|
45791
48350
|
*
|
|
@@ -45811,6 +48370,48 @@ class Client$u extends Client$v {
|
|
|
45811
48370
|
throw e;
|
|
45812
48371
|
});
|
|
45813
48372
|
}),
|
|
48373
|
+
/**
|
|
48374
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=get_agency_account&version=v1 click to debug }
|
|
48375
|
+
*
|
|
48376
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_agency_account&project=hire&resource=agency&version=v1 document }
|
|
48377
|
+
*/
|
|
48378
|
+
getAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48379
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48380
|
+
return this.httpInstance
|
|
48381
|
+
.request({
|
|
48382
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`, path),
|
|
48383
|
+
method: "POST",
|
|
48384
|
+
data,
|
|
48385
|
+
params,
|
|
48386
|
+
headers,
|
|
48387
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48388
|
+
})
|
|
48389
|
+
.catch((e) => {
|
|
48390
|
+
this.logger.error(formatErrors(e));
|
|
48391
|
+
throw e;
|
|
48392
|
+
});
|
|
48393
|
+
}),
|
|
48394
|
+
/**
|
|
48395
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=operate_agency_account&version=v1 click to debug }
|
|
48396
|
+
*
|
|
48397
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=operate_agency_account&project=hire&resource=agency&version=v1 document }
|
|
48398
|
+
*/
|
|
48399
|
+
operateAgencyAccount: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48400
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48401
|
+
return this.httpInstance
|
|
48402
|
+
.request({
|
|
48403
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`, path),
|
|
48404
|
+
method: "POST",
|
|
48405
|
+
data,
|
|
48406
|
+
params,
|
|
48407
|
+
headers,
|
|
48408
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48409
|
+
})
|
|
48410
|
+
.catch((e) => {
|
|
48411
|
+
this.logger.error(formatErrors(e));
|
|
48412
|
+
throw e;
|
|
48413
|
+
});
|
|
48414
|
+
}),
|
|
45814
48415
|
/**
|
|
45815
48416
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=agency&apiName=protect&version=v1 click to debug }
|
|
45816
48417
|
*
|
|
@@ -45884,7 +48485,7 @@ class Client$u extends Client$v {
|
|
|
45884
48485
|
}),
|
|
45885
48486
|
},
|
|
45886
48487
|
/**
|
|
45887
|
-
*
|
|
48488
|
+
* 投递
|
|
45888
48489
|
*/
|
|
45889
48490
|
application: {
|
|
45890
48491
|
/**
|
|
@@ -45937,6 +48538,27 @@ class Client$u extends Client$v {
|
|
|
45937
48538
|
throw e;
|
|
45938
48539
|
});
|
|
45939
48540
|
}),
|
|
48541
|
+
/**
|
|
48542
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=get_detail&version=v1 click to debug }
|
|
48543
|
+
*
|
|
48544
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=application&version=v1 document }
|
|
48545
|
+
*/
|
|
48546
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
48547
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
48548
|
+
return this.httpInstance
|
|
48549
|
+
.request({
|
|
48550
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`, path),
|
|
48551
|
+
method: "GET",
|
|
48552
|
+
data,
|
|
48553
|
+
params,
|
|
48554
|
+
headers,
|
|
48555
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
48556
|
+
})
|
|
48557
|
+
.catch((e) => {
|
|
48558
|
+
this.logger.error(formatErrors(e));
|
|
48559
|
+
throw e;
|
|
48560
|
+
});
|
|
48561
|
+
}),
|
|
45940
48562
|
/**
|
|
45941
48563
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=list&version=v1 click to debug }
|
|
45942
48564
|
*
|
|
@@ -47169,18 +49791,264 @@ class Client$u extends Client$v {
|
|
|
47169
49791
|
return Iterable;
|
|
47170
49792
|
}),
|
|
47171
49793
|
/**
|
|
47172
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
47173
|
-
*
|
|
47174
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
49794
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=list&version=v1 click to debug }
|
|
49795
|
+
*
|
|
49796
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=external_application&version=v1 document }
|
|
49797
|
+
*
|
|
49798
|
+
* 根据人才 id 获取外部投递列表
|
|
49799
|
+
*/
|
|
49800
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49801
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49802
|
+
return this.httpInstance
|
|
49803
|
+
.request({
|
|
49804
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications`, path),
|
|
49805
|
+
method: "GET",
|
|
49806
|
+
data,
|
|
49807
|
+
params,
|
|
49808
|
+
headers,
|
|
49809
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49810
|
+
})
|
|
49811
|
+
.catch((e) => {
|
|
49812
|
+
this.logger.error(formatErrors(e));
|
|
49813
|
+
throw e;
|
|
49814
|
+
});
|
|
49815
|
+
}),
|
|
49816
|
+
/**
|
|
49817
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
|
|
49818
|
+
*
|
|
49819
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
|
|
49820
|
+
*
|
|
49821
|
+
* 更新外部投递
|
|
49822
|
+
*/
|
|
49823
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49824
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49825
|
+
return this.httpInstance
|
|
49826
|
+
.request({
|
|
49827
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
|
|
49828
|
+
method: "PUT",
|
|
49829
|
+
data,
|
|
49830
|
+
params,
|
|
49831
|
+
headers,
|
|
49832
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49833
|
+
})
|
|
49834
|
+
.catch((e) => {
|
|
49835
|
+
this.logger.error(formatErrors(e));
|
|
49836
|
+
throw e;
|
|
49837
|
+
});
|
|
49838
|
+
}),
|
|
49839
|
+
},
|
|
49840
|
+
/**
|
|
49841
|
+
* 导入外部系统信息(灰度租户可见)
|
|
49842
|
+
*/
|
|
49843
|
+
externalBackgroundCheck: {
|
|
49844
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49845
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49846
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49847
|
+
const res = yield this.httpInstance
|
|
49848
|
+
.request({
|
|
49849
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
49850
|
+
method: "POST",
|
|
49851
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
49852
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
49853
|
+
data,
|
|
49854
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
49855
|
+
arrayFormat: "repeat",
|
|
49856
|
+
}),
|
|
49857
|
+
})
|
|
49858
|
+
.catch((e) => {
|
|
49859
|
+
this.logger.error(formatErrors(e));
|
|
49860
|
+
});
|
|
49861
|
+
return res;
|
|
49862
|
+
});
|
|
49863
|
+
const Iterable = {
|
|
49864
|
+
[Symbol.asyncIterator]() {
|
|
49865
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49866
|
+
let hasMore = true;
|
|
49867
|
+
let pageToken;
|
|
49868
|
+
while (hasMore) {
|
|
49869
|
+
try {
|
|
49870
|
+
const res = yield __await(sendRequest({
|
|
49871
|
+
headers,
|
|
49872
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
49873
|
+
data,
|
|
49874
|
+
}));
|
|
49875
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
49876
|
+
// @ts-ignore
|
|
49877
|
+
has_more,
|
|
49878
|
+
// @ts-ignore
|
|
49879
|
+
page_token,
|
|
49880
|
+
// @ts-ignore
|
|
49881
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
49882
|
+
yield yield __await(rest);
|
|
49883
|
+
hasMore = Boolean(has_more);
|
|
49884
|
+
pageToken = page_token || next_page_token;
|
|
49885
|
+
}
|
|
49886
|
+
catch (e) {
|
|
49887
|
+
yield yield __await(null);
|
|
49888
|
+
break;
|
|
49889
|
+
}
|
|
49890
|
+
}
|
|
49891
|
+
});
|
|
49892
|
+
},
|
|
49893
|
+
};
|
|
49894
|
+
return Iterable;
|
|
49895
|
+
}),
|
|
49896
|
+
/**
|
|
49897
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=batch_query&version=v1 click to debug }
|
|
49898
|
+
*
|
|
49899
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_background_check&version=v1 document }
|
|
49900
|
+
*/
|
|
49901
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49902
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49903
|
+
return this.httpInstance
|
|
49904
|
+
.request({
|
|
49905
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`, path),
|
|
49906
|
+
method: "POST",
|
|
49907
|
+
data,
|
|
49908
|
+
params,
|
|
49909
|
+
headers,
|
|
49910
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49911
|
+
})
|
|
49912
|
+
.catch((e) => {
|
|
49913
|
+
this.logger.error(formatErrors(e));
|
|
49914
|
+
throw e;
|
|
49915
|
+
});
|
|
49916
|
+
}),
|
|
49917
|
+
/**
|
|
49918
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=create&version=v1 click to debug }
|
|
49919
|
+
*
|
|
49920
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_background_check/create document }
|
|
49921
|
+
*
|
|
49922
|
+
* 创建外部背调
|
|
49923
|
+
*
|
|
49924
|
+
* 导入来自其他系统的背调信息,创建为外部背调
|
|
49925
|
+
*/
|
|
49926
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49927
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49928
|
+
return this.httpInstance
|
|
49929
|
+
.request({
|
|
49930
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks`, path),
|
|
49931
|
+
method: "POST",
|
|
49932
|
+
data,
|
|
49933
|
+
params,
|
|
49934
|
+
headers,
|
|
49935
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49936
|
+
})
|
|
49937
|
+
.catch((e) => {
|
|
49938
|
+
this.logger.error(formatErrors(e));
|
|
49939
|
+
throw e;
|
|
49940
|
+
});
|
|
49941
|
+
}),
|
|
49942
|
+
/**
|
|
49943
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=delete&version=v1 click to debug }
|
|
49944
|
+
*
|
|
49945
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_background_check&version=v1 document }
|
|
49946
|
+
*/
|
|
49947
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49948
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49949
|
+
return this.httpInstance
|
|
49950
|
+
.request({
|
|
49951
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
49952
|
+
method: "DELETE",
|
|
49953
|
+
data,
|
|
49954
|
+
params,
|
|
49955
|
+
headers,
|
|
49956
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49957
|
+
})
|
|
49958
|
+
.catch((e) => {
|
|
49959
|
+
this.logger.error(formatErrors(e));
|
|
49960
|
+
throw e;
|
|
49961
|
+
});
|
|
49962
|
+
}),
|
|
49963
|
+
/**
|
|
49964
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_background_check&apiName=update&version=v1 click to debug }
|
|
49965
|
+
*
|
|
49966
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_background_check&version=v1 document }
|
|
49967
|
+
*/
|
|
49968
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49969
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49970
|
+
return this.httpInstance
|
|
49971
|
+
.request({
|
|
49972
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`, path),
|
|
49973
|
+
method: "PUT",
|
|
49974
|
+
data,
|
|
49975
|
+
params,
|
|
49976
|
+
headers,
|
|
49977
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49978
|
+
})
|
|
49979
|
+
.catch((e) => {
|
|
49980
|
+
this.logger.error(formatErrors(e));
|
|
49981
|
+
throw e;
|
|
49982
|
+
});
|
|
49983
|
+
}),
|
|
49984
|
+
},
|
|
49985
|
+
/**
|
|
49986
|
+
* 导入外部系统信息(灰度租户可见)
|
|
49987
|
+
*/
|
|
49988
|
+
externalInterview: {
|
|
49989
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49990
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49991
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49992
|
+
const res = yield this.httpInstance
|
|
49993
|
+
.request({
|
|
49994
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
49995
|
+
method: "POST",
|
|
49996
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
49997
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
49998
|
+
data,
|
|
49999
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
50000
|
+
arrayFormat: "repeat",
|
|
50001
|
+
}),
|
|
50002
|
+
})
|
|
50003
|
+
.catch((e) => {
|
|
50004
|
+
this.logger.error(formatErrors(e));
|
|
50005
|
+
});
|
|
50006
|
+
return res;
|
|
50007
|
+
});
|
|
50008
|
+
const Iterable = {
|
|
50009
|
+
[Symbol.asyncIterator]() {
|
|
50010
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
50011
|
+
let hasMore = true;
|
|
50012
|
+
let pageToken;
|
|
50013
|
+
while (hasMore) {
|
|
50014
|
+
try {
|
|
50015
|
+
const res = yield __await(sendRequest({
|
|
50016
|
+
headers,
|
|
50017
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
50018
|
+
data,
|
|
50019
|
+
}));
|
|
50020
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
50021
|
+
// @ts-ignore
|
|
50022
|
+
has_more,
|
|
50023
|
+
// @ts-ignore
|
|
50024
|
+
page_token,
|
|
50025
|
+
// @ts-ignore
|
|
50026
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
50027
|
+
yield yield __await(rest);
|
|
50028
|
+
hasMore = Boolean(has_more);
|
|
50029
|
+
pageToken = page_token || next_page_token;
|
|
50030
|
+
}
|
|
50031
|
+
catch (e) {
|
|
50032
|
+
yield yield __await(null);
|
|
50033
|
+
break;
|
|
50034
|
+
}
|
|
50035
|
+
}
|
|
50036
|
+
});
|
|
50037
|
+
},
|
|
50038
|
+
};
|
|
50039
|
+
return Iterable;
|
|
50040
|
+
}),
|
|
50041
|
+
/**
|
|
50042
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=batch_query&version=v1 click to debug }
|
|
47175
50043
|
*
|
|
47176
|
-
*
|
|
50044
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_interview&version=v1 document }
|
|
47177
50045
|
*/
|
|
47178
|
-
|
|
50046
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47179
50047
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47180
50048
|
return this.httpInstance
|
|
47181
50049
|
.request({
|
|
47182
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47183
|
-
method: "
|
|
50050
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`, path),
|
|
50051
|
+
method: "POST",
|
|
47184
50052
|
data,
|
|
47185
50053
|
params,
|
|
47186
50054
|
headers,
|
|
@@ -47192,18 +50060,20 @@ class Client$u extends Client$v {
|
|
|
47192
50060
|
});
|
|
47193
50061
|
}),
|
|
47194
50062
|
/**
|
|
47195
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
50063
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=create&version=v1 click to debug }
|
|
47196
50064
|
*
|
|
47197
|
-
* {@link https://open.feishu.cn/
|
|
50065
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview/create document }
|
|
47198
50066
|
*
|
|
47199
|
-
*
|
|
50067
|
+
* 创建外部面试
|
|
50068
|
+
*
|
|
50069
|
+
* 导入来自其他系统的面试信息,创建为外部面试
|
|
47200
50070
|
*/
|
|
47201
|
-
|
|
50071
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47202
50072
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47203
50073
|
return this.httpInstance
|
|
47204
50074
|
.request({
|
|
47205
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47206
|
-
method: "
|
|
50075
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
50076
|
+
method: "POST",
|
|
47207
50077
|
data,
|
|
47208
50078
|
params,
|
|
47209
50079
|
headers,
|
|
@@ -47214,26 +50084,17 @@ class Client$u extends Client$v {
|
|
|
47214
50084
|
throw e;
|
|
47215
50085
|
});
|
|
47216
50086
|
}),
|
|
47217
|
-
},
|
|
47218
|
-
/**
|
|
47219
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47220
|
-
*/
|
|
47221
|
-
externalBackgroundCheck: {
|
|
47222
50087
|
/**
|
|
47223
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
50088
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=delete&version=v1 click to debug }
|
|
47224
50089
|
*
|
|
47225
|
-
* {@link https://open.feishu.cn/
|
|
47226
|
-
*
|
|
47227
|
-
* 创建外部背调
|
|
47228
|
-
*
|
|
47229
|
-
* 导入来自其他系统的背调信息,创建为外部背调
|
|
50090
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_interview&version=v1 document }
|
|
47230
50091
|
*/
|
|
47231
|
-
|
|
50092
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47232
50093
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47233
50094
|
return this.httpInstance
|
|
47234
50095
|
.request({
|
|
47235
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
47236
|
-
method: "
|
|
50096
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
50097
|
+
method: "DELETE",
|
|
47237
50098
|
data,
|
|
47238
50099
|
params,
|
|
47239
50100
|
headers,
|
|
@@ -47244,26 +50105,17 @@ class Client$u extends Client$v {
|
|
|
47244
50105
|
throw e;
|
|
47245
50106
|
});
|
|
47246
50107
|
}),
|
|
47247
|
-
},
|
|
47248
|
-
/**
|
|
47249
|
-
* 导入外部系统信息(灰度租户可见)
|
|
47250
|
-
*/
|
|
47251
|
-
externalInterview: {
|
|
47252
50108
|
/**
|
|
47253
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=
|
|
50109
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview&apiName=update&version=v1 click to debug }
|
|
47254
50110
|
*
|
|
47255
|
-
* {@link https://open.feishu.cn/
|
|
47256
|
-
*
|
|
47257
|
-
* 创建外部面试
|
|
47258
|
-
*
|
|
47259
|
-
* 导入来自其他系统的面试信息,创建为外部面试
|
|
50111
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_interview&version=v1 document }
|
|
47260
50112
|
*/
|
|
47261
|
-
|
|
50113
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47262
50114
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47263
50115
|
return this.httpInstance
|
|
47264
50116
|
.request({
|
|
47265
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews`, path),
|
|
47266
|
-
method: "
|
|
50117
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`, path),
|
|
50118
|
+
method: "PUT",
|
|
47267
50119
|
data,
|
|
47268
50120
|
params,
|
|
47269
50121
|
headers,
|
|
@@ -47326,6 +50178,147 @@ class Client$u extends Client$v {
|
|
|
47326
50178
|
});
|
|
47327
50179
|
}),
|
|
47328
50180
|
},
|
|
50181
|
+
/**
|
|
50182
|
+
* external_offer
|
|
50183
|
+
*/
|
|
50184
|
+
externalOffer: {
|
|
50185
|
+
batchQueryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50186
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50187
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
50188
|
+
const res = yield this.httpInstance
|
|
50189
|
+
.request({
|
|
50190
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
50191
|
+
method: "POST",
|
|
50192
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
50193
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
50194
|
+
data,
|
|
50195
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
50196
|
+
arrayFormat: "repeat",
|
|
50197
|
+
}),
|
|
50198
|
+
})
|
|
50199
|
+
.catch((e) => {
|
|
50200
|
+
this.logger.error(formatErrors(e));
|
|
50201
|
+
});
|
|
50202
|
+
return res;
|
|
50203
|
+
});
|
|
50204
|
+
const Iterable = {
|
|
50205
|
+
[Symbol.asyncIterator]() {
|
|
50206
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
50207
|
+
let hasMore = true;
|
|
50208
|
+
let pageToken;
|
|
50209
|
+
while (hasMore) {
|
|
50210
|
+
try {
|
|
50211
|
+
const res = yield __await(sendRequest({
|
|
50212
|
+
headers,
|
|
50213
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
50214
|
+
data,
|
|
50215
|
+
}));
|
|
50216
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
50217
|
+
// @ts-ignore
|
|
50218
|
+
has_more,
|
|
50219
|
+
// @ts-ignore
|
|
50220
|
+
page_token,
|
|
50221
|
+
// @ts-ignore
|
|
50222
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
50223
|
+
yield yield __await(rest);
|
|
50224
|
+
hasMore = Boolean(has_more);
|
|
50225
|
+
pageToken = page_token || next_page_token;
|
|
50226
|
+
}
|
|
50227
|
+
catch (e) {
|
|
50228
|
+
yield yield __await(null);
|
|
50229
|
+
break;
|
|
50230
|
+
}
|
|
50231
|
+
}
|
|
50232
|
+
});
|
|
50233
|
+
},
|
|
50234
|
+
};
|
|
50235
|
+
return Iterable;
|
|
50236
|
+
}),
|
|
50237
|
+
/**
|
|
50238
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=batch_query&version=v1 click to debug }
|
|
50239
|
+
*
|
|
50240
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_query&project=hire&resource=external_offer&version=v1 document }
|
|
50241
|
+
*/
|
|
50242
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50243
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50244
|
+
return this.httpInstance
|
|
50245
|
+
.request({
|
|
50246
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`, path),
|
|
50247
|
+
method: "POST",
|
|
50248
|
+
data,
|
|
50249
|
+
params,
|
|
50250
|
+
headers,
|
|
50251
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
50252
|
+
})
|
|
50253
|
+
.catch((e) => {
|
|
50254
|
+
this.logger.error(formatErrors(e));
|
|
50255
|
+
throw e;
|
|
50256
|
+
});
|
|
50257
|
+
}),
|
|
50258
|
+
/**
|
|
50259
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=create&version=v1 click to debug }
|
|
50260
|
+
*
|
|
50261
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=external_offer&version=v1 document }
|
|
50262
|
+
*/
|
|
50263
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50264
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50265
|
+
return this.httpInstance
|
|
50266
|
+
.request({
|
|
50267
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers`, path),
|
|
50268
|
+
method: "POST",
|
|
50269
|
+
data,
|
|
50270
|
+
params,
|
|
50271
|
+
headers,
|
|
50272
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
50273
|
+
})
|
|
50274
|
+
.catch((e) => {
|
|
50275
|
+
this.logger.error(formatErrors(e));
|
|
50276
|
+
throw e;
|
|
50277
|
+
});
|
|
50278
|
+
}),
|
|
50279
|
+
/**
|
|
50280
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=delete&version=v1 click to debug }
|
|
50281
|
+
*
|
|
50282
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_offer&version=v1 document }
|
|
50283
|
+
*/
|
|
50284
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50285
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50286
|
+
return this.httpInstance
|
|
50287
|
+
.request({
|
|
50288
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
50289
|
+
method: "DELETE",
|
|
50290
|
+
data,
|
|
50291
|
+
params,
|
|
50292
|
+
headers,
|
|
50293
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
50294
|
+
})
|
|
50295
|
+
.catch((e) => {
|
|
50296
|
+
this.logger.error(formatErrors(e));
|
|
50297
|
+
throw e;
|
|
50298
|
+
});
|
|
50299
|
+
}),
|
|
50300
|
+
/**
|
|
50301
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_offer&apiName=update&version=v1 click to debug }
|
|
50302
|
+
*
|
|
50303
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_offer&version=v1 document }
|
|
50304
|
+
*/
|
|
50305
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
50306
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
50307
|
+
return this.httpInstance
|
|
50308
|
+
.request({
|
|
50309
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`, path),
|
|
50310
|
+
method: "PUT",
|
|
50311
|
+
data,
|
|
50312
|
+
params,
|
|
50313
|
+
headers,
|
|
50314
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
50315
|
+
})
|
|
50316
|
+
.catch((e) => {
|
|
50317
|
+
this.logger.error(formatErrors(e));
|
|
50318
|
+
throw e;
|
|
50319
|
+
});
|
|
50320
|
+
}),
|
|
50321
|
+
},
|
|
47329
50322
|
/**
|
|
47330
50323
|
* external_referral_reward
|
|
47331
50324
|
*/
|
|
@@ -48057,6 +51050,27 @@ class Client$u extends Client$v {
|
|
|
48057
51050
|
throw e;
|
|
48058
51051
|
});
|
|
48059
51052
|
}),
|
|
51053
|
+
/**
|
|
51054
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get_detail&version=v1 click to debug }
|
|
51055
|
+
*
|
|
51056
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_detail&project=hire&resource=job&version=v1 document }
|
|
51057
|
+
*/
|
|
51058
|
+
getDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51059
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51060
|
+
return this.httpInstance
|
|
51061
|
+
.request({
|
|
51062
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`, path),
|
|
51063
|
+
method: "GET",
|
|
51064
|
+
data,
|
|
51065
|
+
params,
|
|
51066
|
+
headers,
|
|
51067
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
51068
|
+
})
|
|
51069
|
+
.catch((e) => {
|
|
51070
|
+
this.logger.error(formatErrors(e));
|
|
51071
|
+
throw e;
|
|
51072
|
+
});
|
|
51073
|
+
}),
|
|
48060
51074
|
/**
|
|
48061
51075
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=list&version=v1 click to debug }
|
|
48062
51076
|
*
|
|
@@ -49261,6 +52275,48 @@ class Client$u extends Client$v {
|
|
|
49261
52275
|
throw e;
|
|
49262
52276
|
});
|
|
49263
52277
|
}),
|
|
52278
|
+
/**
|
|
52279
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=enable&version=v1 click to debug }
|
|
52280
|
+
*
|
|
52281
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=enable&project=hire&resource=referral_account&version=v1 document }
|
|
52282
|
+
*/
|
|
52283
|
+
enable: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52284
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52285
|
+
return this.httpInstance
|
|
52286
|
+
.request({
|
|
52287
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/enable`, path),
|
|
52288
|
+
method: "POST",
|
|
52289
|
+
data,
|
|
52290
|
+
params,
|
|
52291
|
+
headers,
|
|
52292
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
52293
|
+
})
|
|
52294
|
+
.catch((e) => {
|
|
52295
|
+
this.logger.error(formatErrors(e));
|
|
52296
|
+
throw e;
|
|
52297
|
+
});
|
|
52298
|
+
}),
|
|
52299
|
+
/**
|
|
52300
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=get_account_assets&version=v1 click to debug }
|
|
52301
|
+
*
|
|
52302
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_account_assets&project=hire&resource=referral_account&version=v1 document }
|
|
52303
|
+
*/
|
|
52304
|
+
getAccountAssets: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52305
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52306
|
+
return this.httpInstance
|
|
52307
|
+
.request({
|
|
52308
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`, path),
|
|
52309
|
+
method: "GET",
|
|
52310
|
+
data,
|
|
52311
|
+
params,
|
|
52312
|
+
headers,
|
|
52313
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
52314
|
+
})
|
|
52315
|
+
.catch((e) => {
|
|
52316
|
+
this.logger.error(formatErrors(e));
|
|
52317
|
+
throw e;
|
|
52318
|
+
});
|
|
52319
|
+
}),
|
|
49264
52320
|
/**
|
|
49265
52321
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_account&apiName=reconciliation&version=v1 click to debug }
|
|
49266
52322
|
*
|
|
@@ -49875,6 +52931,27 @@ class Client$u extends Client$v {
|
|
|
49875
52931
|
throw e;
|
|
49876
52932
|
});
|
|
49877
52933
|
}),
|
|
52934
|
+
/**
|
|
52935
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=remove_to_folder&version=v1 click to debug }
|
|
52936
|
+
*
|
|
52937
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=remove_to_folder&project=hire&resource=talent&version=v1 document }
|
|
52938
|
+
*/
|
|
52939
|
+
removeToFolder: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
52940
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
52941
|
+
return this.httpInstance
|
|
52942
|
+
.request({
|
|
52943
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`, path),
|
|
52944
|
+
method: "POST",
|
|
52945
|
+
data,
|
|
52946
|
+
params,
|
|
52947
|
+
headers,
|
|
52948
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
52949
|
+
})
|
|
52950
|
+
.catch((e) => {
|
|
52951
|
+
this.logger.error(formatErrors(e));
|
|
52952
|
+
throw e;
|
|
52953
|
+
});
|
|
52954
|
+
}),
|
|
49878
52955
|
/**
|
|
49879
52956
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49880
52957
|
*
|
|
@@ -49952,6 +53029,32 @@ class Client$u extends Client$v {
|
|
|
49952
53029
|
});
|
|
49953
53030
|
}),
|
|
49954
53031
|
},
|
|
53032
|
+
/**
|
|
53033
|
+
* talent_blocklist
|
|
53034
|
+
*/
|
|
53035
|
+
talentBlocklist: {
|
|
53036
|
+
/**
|
|
53037
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_blocklist&apiName=change_talent_block&version=v1 click to debug }
|
|
53038
|
+
*
|
|
53039
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=change_talent_block&project=hire&resource=talent_blocklist&version=v1 document }
|
|
53040
|
+
*/
|
|
53041
|
+
changeTalentBlock: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53042
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53043
|
+
return this.httpInstance
|
|
53044
|
+
.request({
|
|
53045
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`, path),
|
|
53046
|
+
method: "POST",
|
|
53047
|
+
data,
|
|
53048
|
+
params,
|
|
53049
|
+
headers,
|
|
53050
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
53051
|
+
})
|
|
53052
|
+
.catch((e) => {
|
|
53053
|
+
this.logger.error(formatErrors(e));
|
|
53054
|
+
throw e;
|
|
53055
|
+
});
|
|
53056
|
+
}),
|
|
53057
|
+
},
|
|
49955
53058
|
/**
|
|
49956
53059
|
* talent_folder
|
|
49957
53060
|
*/
|
|
@@ -50098,6 +53201,27 @@ class Client$u extends Client$v {
|
|
|
50098
53201
|
* talent_pool
|
|
50099
53202
|
*/
|
|
50100
53203
|
talentPool: {
|
|
53204
|
+
/**
|
|
53205
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=batch_change_talent_pool&version=v1 click to debug }
|
|
53206
|
+
*
|
|
53207
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_change_talent_pool&project=hire&resource=talent_pool&version=v1 document }
|
|
53208
|
+
*/
|
|
53209
|
+
batchChangeTalentPool: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53210
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53211
|
+
return this.httpInstance
|
|
53212
|
+
.request({
|
|
53213
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`, path),
|
|
53214
|
+
method: "POST",
|
|
53215
|
+
data,
|
|
53216
|
+
params,
|
|
53217
|
+
headers,
|
|
53218
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
53219
|
+
})
|
|
53220
|
+
.catch((e) => {
|
|
53221
|
+
this.logger.error(formatErrors(e));
|
|
53222
|
+
throw e;
|
|
53223
|
+
});
|
|
53224
|
+
}),
|
|
50101
53225
|
/**
|
|
50102
53226
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_pool&apiName=move_talent&version=v1 click to debug }
|
|
50103
53227
|
*
|
|
@@ -52635,7 +55759,7 @@ class Client$s extends Client$t {
|
|
|
52635
55759
|
}),
|
|
52636
55760
|
},
|
|
52637
55761
|
/**
|
|
52638
|
-
*
|
|
55762
|
+
* 消息
|
|
52639
55763
|
*/
|
|
52640
55764
|
message: {
|
|
52641
55765
|
/**
|
|
@@ -54838,7 +57962,7 @@ class Client$s extends Client$t {
|
|
|
54838
57962
|
}),
|
|
54839
57963
|
},
|
|
54840
57964
|
/**
|
|
54841
|
-
*
|
|
57965
|
+
* 消息
|
|
54842
57966
|
*/
|
|
54843
57967
|
message: {
|
|
54844
57968
|
/**
|
|
@@ -62769,7 +65893,7 @@ class Client$c extends Client$d {
|
|
|
62769
65893
|
}),
|
|
62770
65894
|
},
|
|
62771
65895
|
/**
|
|
62772
|
-
*
|
|
65896
|
+
* 行列
|
|
62773
65897
|
*/
|
|
62774
65898
|
spreadsheetSheet: {
|
|
62775
65899
|
/**
|
|
@@ -63499,7 +66623,7 @@ class Client$c extends Client$d {
|
|
|
63499
66623
|
}),
|
|
63500
66624
|
},
|
|
63501
66625
|
/**
|
|
63502
|
-
*
|
|
66626
|
+
* 行列
|
|
63503
66627
|
*/
|
|
63504
66628
|
spreadsheetSheet: {
|
|
63505
66629
|
/**
|