@larksuiteoapi/node-sdk 1.53.0 → 1.55.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 +816 -13
- package/lib/index.js +816 -13
- package/package.json +1 -1
- package/types/index.d.ts +1895 -173
package/lib/index.js
CHANGED
|
@@ -3241,6 +3241,84 @@ class Client$13 extends Client$14 {
|
|
|
3241
3241
|
*/
|
|
3242
3242
|
this.apaas = {
|
|
3243
3243
|
v1: {
|
|
3244
|
+
/**
|
|
3245
|
+
* app
|
|
3246
|
+
*/
|
|
3247
|
+
app: {
|
|
3248
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3249
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3250
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
3251
|
+
const res = yield this.httpInstance
|
|
3252
|
+
.request({
|
|
3253
|
+
url: fillApiPath(`${this.domain}/open-apis/apaas/v1/apps`, path),
|
|
3254
|
+
method: "GET",
|
|
3255
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
3256
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
3257
|
+
data,
|
|
3258
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
3259
|
+
arrayFormat: "repeat",
|
|
3260
|
+
}),
|
|
3261
|
+
})
|
|
3262
|
+
.catch((e) => {
|
|
3263
|
+
this.logger.error(formatErrors(e));
|
|
3264
|
+
});
|
|
3265
|
+
return res;
|
|
3266
|
+
});
|
|
3267
|
+
const Iterable = {
|
|
3268
|
+
[Symbol.asyncIterator]() {
|
|
3269
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
3270
|
+
let hasMore = true;
|
|
3271
|
+
let pageToken;
|
|
3272
|
+
while (hasMore) {
|
|
3273
|
+
try {
|
|
3274
|
+
const res = yield __await(sendRequest({
|
|
3275
|
+
headers,
|
|
3276
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
3277
|
+
data,
|
|
3278
|
+
}));
|
|
3279
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
3280
|
+
// @ts-ignore
|
|
3281
|
+
has_more,
|
|
3282
|
+
// @ts-ignore
|
|
3283
|
+
page_token,
|
|
3284
|
+
// @ts-ignore
|
|
3285
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
3286
|
+
yield yield __await(rest);
|
|
3287
|
+
hasMore = Boolean(has_more);
|
|
3288
|
+
pageToken = page_token || next_page_token;
|
|
3289
|
+
}
|
|
3290
|
+
catch (e) {
|
|
3291
|
+
yield yield __await(null);
|
|
3292
|
+
break;
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
});
|
|
3296
|
+
},
|
|
3297
|
+
};
|
|
3298
|
+
return Iterable;
|
|
3299
|
+
}),
|
|
3300
|
+
/**
|
|
3301
|
+
* {@link https://open.feishu.cn/api-explorer?project=apaas&resource=app&apiName=list&version=v1 click to debug }
|
|
3302
|
+
*
|
|
3303
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=apaas&resource=app&version=v1 document }
|
|
3304
|
+
*/
|
|
3305
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3306
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3307
|
+
return this.httpInstance
|
|
3308
|
+
.request({
|
|
3309
|
+
url: fillApiPath(`${this.domain}/open-apis/apaas/v1/apps`, path),
|
|
3310
|
+
method: "GET",
|
|
3311
|
+
data,
|
|
3312
|
+
params,
|
|
3313
|
+
headers,
|
|
3314
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
3315
|
+
})
|
|
3316
|
+
.catch((e) => {
|
|
3317
|
+
this.logger.error(formatErrors(e));
|
|
3318
|
+
throw e;
|
|
3319
|
+
});
|
|
3320
|
+
}),
|
|
3321
|
+
},
|
|
3244
3322
|
/**
|
|
3245
3323
|
* application.audit_log
|
|
3246
3324
|
*/
|
|
@@ -5942,7 +6020,7 @@ class Client$11 extends Client$12 {
|
|
|
5942
6020
|
*/
|
|
5943
6021
|
this.approval = {
|
|
5944
6022
|
/**
|
|
5945
|
-
*
|
|
6023
|
+
* 事件
|
|
5946
6024
|
*/
|
|
5947
6025
|
approval: {
|
|
5948
6026
|
/**
|
|
@@ -6237,7 +6315,7 @@ class Client$11 extends Client$12 {
|
|
|
6237
6315
|
}),
|
|
6238
6316
|
},
|
|
6239
6317
|
/**
|
|
6240
|
-
*
|
|
6318
|
+
* 审批查询
|
|
6241
6319
|
*/
|
|
6242
6320
|
instance: {
|
|
6243
6321
|
/**
|
|
@@ -6945,7 +7023,7 @@ class Client$11 extends Client$12 {
|
|
|
6945
7023
|
},
|
|
6946
7024
|
v4: {
|
|
6947
7025
|
/**
|
|
6948
|
-
*
|
|
7026
|
+
* 事件
|
|
6949
7027
|
*/
|
|
6950
7028
|
approval: {
|
|
6951
7029
|
/**
|
|
@@ -7242,7 +7320,7 @@ class Client$11 extends Client$12 {
|
|
|
7242
7320
|
}),
|
|
7243
7321
|
},
|
|
7244
7322
|
/**
|
|
7245
|
-
*
|
|
7323
|
+
* 审批查询
|
|
7246
7324
|
*/
|
|
7247
7325
|
instance: {
|
|
7248
7326
|
/**
|
|
@@ -19327,6 +19405,220 @@ class Client$Q extends Client$R {
|
|
|
19327
19405
|
});
|
|
19328
19406
|
}),
|
|
19329
19407
|
},
|
|
19408
|
+
/**
|
|
19409
|
+
* lump_sum_payment
|
|
19410
|
+
*/
|
|
19411
|
+
lumpSumPayment: {
|
|
19412
|
+
/**
|
|
19413
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_create&version=v1 click to debug }
|
|
19414
|
+
*
|
|
19415
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19416
|
+
*/
|
|
19417
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19418
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19419
|
+
return this.httpInstance
|
|
19420
|
+
.request({
|
|
19421
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`, path),
|
|
19422
|
+
method: "POST",
|
|
19423
|
+
data,
|
|
19424
|
+
params,
|
|
19425
|
+
headers,
|
|
19426
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
19427
|
+
})
|
|
19428
|
+
.catch((e) => {
|
|
19429
|
+
this.logger.error(formatErrors(e));
|
|
19430
|
+
throw e;
|
|
19431
|
+
});
|
|
19432
|
+
}),
|
|
19433
|
+
/**
|
|
19434
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_remove&version=v1 click to debug }
|
|
19435
|
+
*
|
|
19436
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_remove&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19437
|
+
*/
|
|
19438
|
+
batchRemove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19439
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19440
|
+
return this.httpInstance
|
|
19441
|
+
.request({
|
|
19442
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`, path),
|
|
19443
|
+
method: "POST",
|
|
19444
|
+
data,
|
|
19445
|
+
params,
|
|
19446
|
+
headers,
|
|
19447
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
19448
|
+
})
|
|
19449
|
+
.catch((e) => {
|
|
19450
|
+
this.logger.error(formatErrors(e));
|
|
19451
|
+
throw e;
|
|
19452
|
+
});
|
|
19453
|
+
}),
|
|
19454
|
+
/**
|
|
19455
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_update&version=v1 click to debug }
|
|
19456
|
+
*
|
|
19457
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19458
|
+
*/
|
|
19459
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19460
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19461
|
+
return this.httpInstance
|
|
19462
|
+
.request({
|
|
19463
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`, path),
|
|
19464
|
+
method: "POST",
|
|
19465
|
+
data,
|
|
19466
|
+
params,
|
|
19467
|
+
headers,
|
|
19468
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
19469
|
+
})
|
|
19470
|
+
.catch((e) => {
|
|
19471
|
+
this.logger.error(formatErrors(e));
|
|
19472
|
+
throw e;
|
|
19473
|
+
});
|
|
19474
|
+
}),
|
|
19475
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19476
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19477
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19478
|
+
const res = yield this.httpInstance
|
|
19479
|
+
.request({
|
|
19480
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
|
|
19481
|
+
method: "POST",
|
|
19482
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19483
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19484
|
+
data,
|
|
19485
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
19486
|
+
arrayFormat: "repeat",
|
|
19487
|
+
}),
|
|
19488
|
+
})
|
|
19489
|
+
.catch((e) => {
|
|
19490
|
+
this.logger.error(formatErrors(e));
|
|
19491
|
+
});
|
|
19492
|
+
return res;
|
|
19493
|
+
});
|
|
19494
|
+
const Iterable = {
|
|
19495
|
+
[Symbol.asyncIterator]() {
|
|
19496
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19497
|
+
let hasMore = true;
|
|
19498
|
+
let pageToken;
|
|
19499
|
+
while (hasMore) {
|
|
19500
|
+
try {
|
|
19501
|
+
const res = yield __await(sendRequest({
|
|
19502
|
+
headers,
|
|
19503
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19504
|
+
data,
|
|
19505
|
+
}));
|
|
19506
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
19507
|
+
// @ts-ignore
|
|
19508
|
+
has_more,
|
|
19509
|
+
// @ts-ignore
|
|
19510
|
+
page_token,
|
|
19511
|
+
// @ts-ignore
|
|
19512
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19513
|
+
yield yield __await(rest);
|
|
19514
|
+
hasMore = Boolean(has_more);
|
|
19515
|
+
pageToken = page_token || next_page_token;
|
|
19516
|
+
}
|
|
19517
|
+
catch (e) {
|
|
19518
|
+
yield yield __await(null);
|
|
19519
|
+
break;
|
|
19520
|
+
}
|
|
19521
|
+
}
|
|
19522
|
+
});
|
|
19523
|
+
},
|
|
19524
|
+
};
|
|
19525
|
+
return Iterable;
|
|
19526
|
+
}),
|
|
19527
|
+
/**
|
|
19528
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query&version=v1 click to debug }
|
|
19529
|
+
*
|
|
19530
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19531
|
+
*/
|
|
19532
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19533
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19534
|
+
return this.httpInstance
|
|
19535
|
+
.request({
|
|
19536
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
|
|
19537
|
+
method: "POST",
|
|
19538
|
+
data,
|
|
19539
|
+
params,
|
|
19540
|
+
headers,
|
|
19541
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
19542
|
+
})
|
|
19543
|
+
.catch((e) => {
|
|
19544
|
+
this.logger.error(formatErrors(e));
|
|
19545
|
+
throw e;
|
|
19546
|
+
});
|
|
19547
|
+
}),
|
|
19548
|
+
queryDetailWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19549
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19550
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19551
|
+
const res = yield this.httpInstance
|
|
19552
|
+
.request({
|
|
19553
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
|
|
19554
|
+
method: "POST",
|
|
19555
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19556
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19557
|
+
data,
|
|
19558
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
19559
|
+
arrayFormat: "repeat",
|
|
19560
|
+
}),
|
|
19561
|
+
})
|
|
19562
|
+
.catch((e) => {
|
|
19563
|
+
this.logger.error(formatErrors(e));
|
|
19564
|
+
});
|
|
19565
|
+
return res;
|
|
19566
|
+
});
|
|
19567
|
+
const Iterable = {
|
|
19568
|
+
[Symbol.asyncIterator]() {
|
|
19569
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19570
|
+
let hasMore = true;
|
|
19571
|
+
let pageToken;
|
|
19572
|
+
while (hasMore) {
|
|
19573
|
+
try {
|
|
19574
|
+
const res = yield __await(sendRequest({
|
|
19575
|
+
headers,
|
|
19576
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19577
|
+
data,
|
|
19578
|
+
}));
|
|
19579
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
19580
|
+
// @ts-ignore
|
|
19581
|
+
has_more,
|
|
19582
|
+
// @ts-ignore
|
|
19583
|
+
page_token,
|
|
19584
|
+
// @ts-ignore
|
|
19585
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19586
|
+
yield yield __await(rest);
|
|
19587
|
+
hasMore = Boolean(has_more);
|
|
19588
|
+
pageToken = page_token || next_page_token;
|
|
19589
|
+
}
|
|
19590
|
+
catch (e) {
|
|
19591
|
+
yield yield __await(null);
|
|
19592
|
+
break;
|
|
19593
|
+
}
|
|
19594
|
+
}
|
|
19595
|
+
});
|
|
19596
|
+
},
|
|
19597
|
+
};
|
|
19598
|
+
return Iterable;
|
|
19599
|
+
}),
|
|
19600
|
+
/**
|
|
19601
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query_detail&version=v1 click to debug }
|
|
19602
|
+
*
|
|
19603
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_detail&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19604
|
+
*/
|
|
19605
|
+
queryDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19606
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19607
|
+
return this.httpInstance
|
|
19608
|
+
.request({
|
|
19609
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
|
|
19610
|
+
method: "POST",
|
|
19611
|
+
data,
|
|
19612
|
+
params,
|
|
19613
|
+
headers,
|
|
19614
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
19615
|
+
})
|
|
19616
|
+
.catch((e) => {
|
|
19617
|
+
this.logger.error(formatErrors(e));
|
|
19618
|
+
throw e;
|
|
19619
|
+
});
|
|
19620
|
+
}),
|
|
19621
|
+
},
|
|
19330
19622
|
/**
|
|
19331
19623
|
* plan
|
|
19332
19624
|
*/
|
|
@@ -32902,6 +33194,29 @@ class Client$M extends Client$N {
|
|
|
32902
33194
|
* job
|
|
32903
33195
|
*/
|
|
32904
33196
|
job: {
|
|
33197
|
+
/**
|
|
33198
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=batch_get&version=v2 click to debug }
|
|
33199
|
+
*
|
|
33200
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job&version=v2 document }
|
|
33201
|
+
*
|
|
33202
|
+
* 批量获取职务信息
|
|
33203
|
+
*/
|
|
33204
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33205
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33206
|
+
return this.httpInstance
|
|
33207
|
+
.request({
|
|
33208
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`, path),
|
|
33209
|
+
method: "POST",
|
|
33210
|
+
data,
|
|
33211
|
+
params,
|
|
33212
|
+
headers,
|
|
33213
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33214
|
+
})
|
|
33215
|
+
.catch((e) => {
|
|
33216
|
+
this.logger.error(formatErrors(e));
|
|
33217
|
+
throw e;
|
|
33218
|
+
});
|
|
33219
|
+
}),
|
|
32905
33220
|
/**
|
|
32906
33221
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=get&version=v2 click to debug }
|
|
32907
33222
|
*
|
|
@@ -32948,6 +33263,29 @@ class Client$M extends Client$N {
|
|
|
32948
33263
|
throw e;
|
|
32949
33264
|
});
|
|
32950
33265
|
}),
|
|
33266
|
+
/**
|
|
33267
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=query_multi_timeline&version=v2 click to debug }
|
|
33268
|
+
*
|
|
33269
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job&version=v2 document }
|
|
33270
|
+
*
|
|
33271
|
+
* 查询生效时间在指定时间范围的职务
|
|
33272
|
+
*/
|
|
33273
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33274
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33275
|
+
return this.httpInstance
|
|
33276
|
+
.request({
|
|
33277
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`, path),
|
|
33278
|
+
method: "POST",
|
|
33279
|
+
data,
|
|
33280
|
+
params,
|
|
33281
|
+
headers,
|
|
33282
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33283
|
+
})
|
|
33284
|
+
.catch((e) => {
|
|
33285
|
+
this.logger.error(formatErrors(e));
|
|
33286
|
+
throw e;
|
|
33287
|
+
});
|
|
33288
|
+
}),
|
|
32951
33289
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32952
33290
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32953
33291
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33171,6 +33509,29 @@ class Client$M extends Client$N {
|
|
|
33171
33509
|
throw e;
|
|
33172
33510
|
});
|
|
33173
33511
|
}),
|
|
33512
|
+
/**
|
|
33513
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_multi_timeline&version=v2 click to debug }
|
|
33514
|
+
*
|
|
33515
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job_family&version=v2 document }
|
|
33516
|
+
*
|
|
33517
|
+
* 查询生效时间在指定时间范围的序列
|
|
33518
|
+
*/
|
|
33519
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33520
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33521
|
+
return this.httpInstance
|
|
33522
|
+
.request({
|
|
33523
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`, path),
|
|
33524
|
+
method: "POST",
|
|
33525
|
+
data,
|
|
33526
|
+
params,
|
|
33527
|
+
headers,
|
|
33528
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33529
|
+
})
|
|
33530
|
+
.catch((e) => {
|
|
33531
|
+
this.logger.error(formatErrors(e));
|
|
33532
|
+
throw e;
|
|
33533
|
+
});
|
|
33534
|
+
}),
|
|
33174
33535
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33175
33536
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33176
33537
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33809,6 +34170,126 @@ class Client$M extends Client$N {
|
|
|
33809
34170
|
});
|
|
33810
34171
|
}),
|
|
33811
34172
|
},
|
|
34173
|
+
/**
|
|
34174
|
+
* pathway
|
|
34175
|
+
*/
|
|
34176
|
+
pathway: {
|
|
34177
|
+
/**
|
|
34178
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=active&version=v2 click to debug }
|
|
34179
|
+
*
|
|
34180
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=pathway&version=v2 document }
|
|
34181
|
+
*
|
|
34182
|
+
* 启/停用通道
|
|
34183
|
+
*/
|
|
34184
|
+
active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34185
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34186
|
+
return this.httpInstance
|
|
34187
|
+
.request({
|
|
34188
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/active`, path),
|
|
34189
|
+
method: "POST",
|
|
34190
|
+
data,
|
|
34191
|
+
params,
|
|
34192
|
+
headers,
|
|
34193
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34194
|
+
})
|
|
34195
|
+
.catch((e) => {
|
|
34196
|
+
this.logger.error(formatErrors(e));
|
|
34197
|
+
throw e;
|
|
34198
|
+
});
|
|
34199
|
+
}),
|
|
34200
|
+
/**
|
|
34201
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=batch_get&version=v2 click to debug }
|
|
34202
|
+
*
|
|
34203
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=pathway&version=v2 document }
|
|
34204
|
+
*
|
|
34205
|
+
* 通过通道 ID 批量获取通道信息
|
|
34206
|
+
*/
|
|
34207
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34208
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34209
|
+
return this.httpInstance
|
|
34210
|
+
.request({
|
|
34211
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`, path),
|
|
34212
|
+
method: "POST",
|
|
34213
|
+
data,
|
|
34214
|
+
params,
|
|
34215
|
+
headers,
|
|
34216
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34217
|
+
})
|
|
34218
|
+
.catch((e) => {
|
|
34219
|
+
this.logger.error(formatErrors(e));
|
|
34220
|
+
throw e;
|
|
34221
|
+
});
|
|
34222
|
+
}),
|
|
34223
|
+
/**
|
|
34224
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=create&version=v2 click to debug }
|
|
34225
|
+
*
|
|
34226
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=pathway&version=v2 document }
|
|
34227
|
+
*
|
|
34228
|
+
* 创建通道
|
|
34229
|
+
*/
|
|
34230
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34231
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34232
|
+
return this.httpInstance
|
|
34233
|
+
.request({
|
|
34234
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways`, path),
|
|
34235
|
+
method: "POST",
|
|
34236
|
+
data,
|
|
34237
|
+
params,
|
|
34238
|
+
headers,
|
|
34239
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34240
|
+
})
|
|
34241
|
+
.catch((e) => {
|
|
34242
|
+
this.logger.error(formatErrors(e));
|
|
34243
|
+
throw e;
|
|
34244
|
+
});
|
|
34245
|
+
}),
|
|
34246
|
+
/**
|
|
34247
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=delete&version=v2 click to debug }
|
|
34248
|
+
*
|
|
34249
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pathway&version=v2 document }
|
|
34250
|
+
*
|
|
34251
|
+
* 删除通道
|
|
34252
|
+
*/
|
|
34253
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34254
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34255
|
+
return this.httpInstance
|
|
34256
|
+
.request({
|
|
34257
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
|
|
34258
|
+
method: "DELETE",
|
|
34259
|
+
data,
|
|
34260
|
+
params,
|
|
34261
|
+
headers,
|
|
34262
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34263
|
+
})
|
|
34264
|
+
.catch((e) => {
|
|
34265
|
+
this.logger.error(formatErrors(e));
|
|
34266
|
+
throw e;
|
|
34267
|
+
});
|
|
34268
|
+
}),
|
|
34269
|
+
/**
|
|
34270
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=patch&version=v2 click to debug }
|
|
34271
|
+
*
|
|
34272
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pathway&version=v2 document }
|
|
34273
|
+
*
|
|
34274
|
+
* 更新通道信息
|
|
34275
|
+
*/
|
|
34276
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34277
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34278
|
+
return this.httpInstance
|
|
34279
|
+
.request({
|
|
34280
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
|
|
34281
|
+
method: "PATCH",
|
|
34282
|
+
data,
|
|
34283
|
+
params,
|
|
34284
|
+
headers,
|
|
34285
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34286
|
+
})
|
|
34287
|
+
.catch((e) => {
|
|
34288
|
+
this.logger.error(formatErrors(e));
|
|
34289
|
+
throw e;
|
|
34290
|
+
});
|
|
34291
|
+
}),
|
|
34292
|
+
},
|
|
33812
34293
|
/**
|
|
33813
34294
|
* person
|
|
33814
34295
|
*/
|
|
@@ -33858,6 +34339,34 @@ class Client$M extends Client$N {
|
|
|
33858
34339
|
});
|
|
33859
34340
|
}),
|
|
33860
34341
|
},
|
|
34342
|
+
/**
|
|
34343
|
+
* position
|
|
34344
|
+
*/
|
|
34345
|
+
position: {
|
|
34346
|
+
/**
|
|
34347
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=position&apiName=query&version=v2 click to debug }
|
|
34348
|
+
*
|
|
34349
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=position&version=v2 document }
|
|
34350
|
+
*
|
|
34351
|
+
* 查询岗位信息
|
|
34352
|
+
*/
|
|
34353
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34354
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34355
|
+
return this.httpInstance
|
|
34356
|
+
.request({
|
|
34357
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/positions/query`, path),
|
|
34358
|
+
method: "POST",
|
|
34359
|
+
data,
|
|
34360
|
+
params,
|
|
34361
|
+
headers,
|
|
34362
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34363
|
+
})
|
|
34364
|
+
.catch((e) => {
|
|
34365
|
+
this.logger.error(formatErrors(e));
|
|
34366
|
+
throw e;
|
|
34367
|
+
});
|
|
34368
|
+
}),
|
|
34369
|
+
},
|
|
33861
34370
|
/**
|
|
33862
34371
|
* 待入职
|
|
33863
34372
|
*/
|
|
@@ -37494,7 +38003,7 @@ class Client$G extends Client$H {
|
|
|
37494
38003
|
constructor() {
|
|
37495
38004
|
super(...arguments);
|
|
37496
38005
|
/**
|
|
37497
|
-
*
|
|
38006
|
+
* 云文档-文件管理
|
|
37498
38007
|
*/
|
|
37499
38008
|
this.drive = {
|
|
37500
38009
|
/**
|
|
@@ -37917,7 +38426,7 @@ class Client$G extends Client$H {
|
|
|
37917
38426
|
}),
|
|
37918
38427
|
},
|
|
37919
38428
|
/**
|
|
37920
|
-
*
|
|
38429
|
+
* 文件
|
|
37921
38430
|
*/
|
|
37922
38431
|
file: {
|
|
37923
38432
|
/**
|
|
@@ -38792,7 +39301,7 @@ class Client$G extends Client$H {
|
|
|
38792
39301
|
}),
|
|
38793
39302
|
},
|
|
38794
39303
|
/**
|
|
38795
|
-
*
|
|
39304
|
+
* 素材
|
|
38796
39305
|
*/
|
|
38797
39306
|
media: {
|
|
38798
39307
|
/**
|
|
@@ -39743,7 +40252,7 @@ class Client$G extends Client$H {
|
|
|
39743
40252
|
}),
|
|
39744
40253
|
},
|
|
39745
40254
|
/**
|
|
39746
|
-
*
|
|
40255
|
+
* 文件
|
|
39747
40256
|
*/
|
|
39748
40257
|
file: {
|
|
39749
40258
|
/**
|
|
@@ -40624,7 +41133,7 @@ class Client$G extends Client$H {
|
|
|
40624
41133
|
}),
|
|
40625
41134
|
},
|
|
40626
41135
|
/**
|
|
40627
|
-
*
|
|
41136
|
+
* 素材
|
|
40628
41137
|
*/
|
|
40629
41138
|
media: {
|
|
40630
41139
|
/**
|
|
@@ -45086,7 +45595,7 @@ class Client$x extends Client$y {
|
|
|
45086
45595
|
}),
|
|
45087
45596
|
},
|
|
45088
45597
|
/**
|
|
45089
|
-
*
|
|
45598
|
+
* 入职
|
|
45090
45599
|
*/
|
|
45091
45600
|
application: {
|
|
45092
45601
|
/**
|
|
@@ -48688,6 +49197,36 @@ class Client$x extends Client$y {
|
|
|
48688
49197
|
});
|
|
48689
49198
|
}),
|
|
48690
49199
|
},
|
|
49200
|
+
/**
|
|
49201
|
+
* Offer 审批流配置(灰度租户可见)
|
|
49202
|
+
*/
|
|
49203
|
+
offerApprovalTemplate: {
|
|
49204
|
+
/**
|
|
49205
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
|
|
49206
|
+
*
|
|
49207
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
|
|
49208
|
+
*
|
|
49209
|
+
* 获取 Offer 审批流配置列表
|
|
49210
|
+
*
|
|
49211
|
+
* 获取 Offer 审批流配置列表
|
|
49212
|
+
*/
|
|
49213
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49214
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49215
|
+
return this.httpInstance
|
|
49216
|
+
.request({
|
|
49217
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
|
|
49218
|
+
method: "GET",
|
|
49219
|
+
data,
|
|
49220
|
+
params,
|
|
49221
|
+
headers,
|
|
49222
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49223
|
+
})
|
|
49224
|
+
.catch((e) => {
|
|
49225
|
+
this.logger.error(formatErrors(e));
|
|
49226
|
+
throw e;
|
|
49227
|
+
});
|
|
49228
|
+
}),
|
|
49229
|
+
},
|
|
48691
49230
|
/**
|
|
48692
49231
|
* offer_custom_field
|
|
48693
49232
|
*/
|
|
@@ -48744,6 +49283,82 @@ class Client$x extends Client$y {
|
|
|
48744
49283
|
});
|
|
48745
49284
|
}),
|
|
48746
49285
|
},
|
|
49286
|
+
/**
|
|
49287
|
+
* portal_apply_schema
|
|
49288
|
+
*/
|
|
49289
|
+
portalApplySchema: {
|
|
49290
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49291
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49292
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49293
|
+
const res = yield this.httpInstance
|
|
49294
|
+
.request({
|
|
49295
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
49296
|
+
method: "GET",
|
|
49297
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
49298
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
49299
|
+
data,
|
|
49300
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49301
|
+
})
|
|
49302
|
+
.catch((e) => {
|
|
49303
|
+
this.logger.error(formatErrors(e));
|
|
49304
|
+
});
|
|
49305
|
+
return res;
|
|
49306
|
+
});
|
|
49307
|
+
const Iterable = {
|
|
49308
|
+
[Symbol.asyncIterator]() {
|
|
49309
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49310
|
+
let hasMore = true;
|
|
49311
|
+
let pageToken;
|
|
49312
|
+
while (hasMore) {
|
|
49313
|
+
try {
|
|
49314
|
+
const res = yield __await(sendRequest({
|
|
49315
|
+
headers,
|
|
49316
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
49317
|
+
data,
|
|
49318
|
+
}));
|
|
49319
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
49320
|
+
// @ts-ignore
|
|
49321
|
+
has_more,
|
|
49322
|
+
// @ts-ignore
|
|
49323
|
+
page_token,
|
|
49324
|
+
// @ts-ignore
|
|
49325
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
49326
|
+
yield yield __await(rest);
|
|
49327
|
+
hasMore = Boolean(has_more);
|
|
49328
|
+
pageToken = page_token || next_page_token;
|
|
49329
|
+
}
|
|
49330
|
+
catch (e) {
|
|
49331
|
+
yield yield __await(null);
|
|
49332
|
+
break;
|
|
49333
|
+
}
|
|
49334
|
+
}
|
|
49335
|
+
});
|
|
49336
|
+
},
|
|
49337
|
+
};
|
|
49338
|
+
return Iterable;
|
|
49339
|
+
}),
|
|
49340
|
+
/**
|
|
49341
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
|
|
49342
|
+
*
|
|
49343
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
|
|
49344
|
+
*/
|
|
49345
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49346
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49347
|
+
return this.httpInstance
|
|
49348
|
+
.request({
|
|
49349
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
49350
|
+
method: "GET",
|
|
49351
|
+
data,
|
|
49352
|
+
params,
|
|
49353
|
+
headers,
|
|
49354
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
49355
|
+
})
|
|
49356
|
+
.catch((e) => {
|
|
49357
|
+
this.logger.error(formatErrors(e));
|
|
49358
|
+
throw e;
|
|
49359
|
+
});
|
|
49360
|
+
}),
|
|
49361
|
+
},
|
|
48747
49362
|
/**
|
|
48748
49363
|
* 问卷(灰度租户可见)
|
|
48749
49364
|
*/
|
|
@@ -51114,7 +51729,7 @@ class Client$x extends Client$y {
|
|
|
51114
51729
|
}),
|
|
51115
51730
|
},
|
|
51116
51731
|
/**
|
|
51117
|
-
*
|
|
51732
|
+
* 入职
|
|
51118
51733
|
*/
|
|
51119
51734
|
application: {
|
|
51120
51735
|
/**
|
|
@@ -54746,6 +55361,36 @@ class Client$x extends Client$y {
|
|
|
54746
55361
|
});
|
|
54747
55362
|
}),
|
|
54748
55363
|
},
|
|
55364
|
+
/**
|
|
55365
|
+
* Offer 审批流配置(灰度租户可见)
|
|
55366
|
+
*/
|
|
55367
|
+
offerApprovalTemplate: {
|
|
55368
|
+
/**
|
|
55369
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
|
|
55370
|
+
*
|
|
55371
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
|
|
55372
|
+
*
|
|
55373
|
+
* 获取 Offer 审批流配置列表
|
|
55374
|
+
*
|
|
55375
|
+
* 获取 Offer 审批流配置列表
|
|
55376
|
+
*/
|
|
55377
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55378
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55379
|
+
return this.httpInstance
|
|
55380
|
+
.request({
|
|
55381
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
|
|
55382
|
+
method: "GET",
|
|
55383
|
+
data,
|
|
55384
|
+
params,
|
|
55385
|
+
headers,
|
|
55386
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
55387
|
+
})
|
|
55388
|
+
.catch((e) => {
|
|
55389
|
+
this.logger.error(formatErrors(e));
|
|
55390
|
+
throw e;
|
|
55391
|
+
});
|
|
55392
|
+
}),
|
|
55393
|
+
},
|
|
54749
55394
|
/**
|
|
54750
55395
|
* offer_custom_field
|
|
54751
55396
|
*/
|
|
@@ -54802,6 +55447,84 @@ class Client$x extends Client$y {
|
|
|
54802
55447
|
});
|
|
54803
55448
|
}),
|
|
54804
55449
|
},
|
|
55450
|
+
/**
|
|
55451
|
+
* portal_apply_schema
|
|
55452
|
+
*/
|
|
55453
|
+
portalApplySchema: {
|
|
55454
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55455
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55456
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
55457
|
+
const res = yield this.httpInstance
|
|
55458
|
+
.request({
|
|
55459
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
55460
|
+
method: "GET",
|
|
55461
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
55462
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
55463
|
+
data,
|
|
55464
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
55465
|
+
arrayFormat: "repeat",
|
|
55466
|
+
}),
|
|
55467
|
+
})
|
|
55468
|
+
.catch((e) => {
|
|
55469
|
+
this.logger.error(formatErrors(e));
|
|
55470
|
+
});
|
|
55471
|
+
return res;
|
|
55472
|
+
});
|
|
55473
|
+
const Iterable = {
|
|
55474
|
+
[Symbol.asyncIterator]() {
|
|
55475
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
55476
|
+
let hasMore = true;
|
|
55477
|
+
let pageToken;
|
|
55478
|
+
while (hasMore) {
|
|
55479
|
+
try {
|
|
55480
|
+
const res = yield __await(sendRequest({
|
|
55481
|
+
headers,
|
|
55482
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
55483
|
+
data,
|
|
55484
|
+
}));
|
|
55485
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
55486
|
+
// @ts-ignore
|
|
55487
|
+
has_more,
|
|
55488
|
+
// @ts-ignore
|
|
55489
|
+
page_token,
|
|
55490
|
+
// @ts-ignore
|
|
55491
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
55492
|
+
yield yield __await(rest);
|
|
55493
|
+
hasMore = Boolean(has_more);
|
|
55494
|
+
pageToken = page_token || next_page_token;
|
|
55495
|
+
}
|
|
55496
|
+
catch (e) {
|
|
55497
|
+
yield yield __await(null);
|
|
55498
|
+
break;
|
|
55499
|
+
}
|
|
55500
|
+
}
|
|
55501
|
+
});
|
|
55502
|
+
},
|
|
55503
|
+
};
|
|
55504
|
+
return Iterable;
|
|
55505
|
+
}),
|
|
55506
|
+
/**
|
|
55507
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
|
|
55508
|
+
*
|
|
55509
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
|
|
55510
|
+
*/
|
|
55511
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55512
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55513
|
+
return this.httpInstance
|
|
55514
|
+
.request({
|
|
55515
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
55516
|
+
method: "GET",
|
|
55517
|
+
data,
|
|
55518
|
+
params,
|
|
55519
|
+
headers,
|
|
55520
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
55521
|
+
})
|
|
55522
|
+
.catch((e) => {
|
|
55523
|
+
this.logger.error(formatErrors(e));
|
|
55524
|
+
throw e;
|
|
55525
|
+
});
|
|
55526
|
+
}),
|
|
55527
|
+
},
|
|
54805
55528
|
/**
|
|
54806
55529
|
* 问卷(灰度租户可见)
|
|
54807
55530
|
*/
|
|
@@ -58548,7 +59271,7 @@ class Client$v extends Client$w {
|
|
|
58548
59271
|
}),
|
|
58549
59272
|
},
|
|
58550
59273
|
/**
|
|
58551
|
-
*
|
|
59274
|
+
* 消息加急
|
|
58552
59275
|
*/
|
|
58553
59276
|
message: {
|
|
58554
59277
|
/**
|
|
@@ -60757,7 +61480,7 @@ class Client$v extends Client$w {
|
|
|
60757
61480
|
}),
|
|
60758
61481
|
},
|
|
60759
61482
|
/**
|
|
60760
|
-
*
|
|
61483
|
+
* 消息加急
|
|
60761
61484
|
*/
|
|
60762
61485
|
message: {
|
|
60763
61486
|
/**
|
|
@@ -68083,6 +68806,86 @@ class Client$l extends Client$m {
|
|
|
68083
68806
|
});
|
|
68084
68807
|
}),
|
|
68085
68808
|
},
|
|
68809
|
+
/**
|
|
68810
|
+
* cost_allocation_detail
|
|
68811
|
+
*/
|
|
68812
|
+
costAllocationDetail: {
|
|
68813
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
68814
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
68815
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
68816
|
+
const res = yield this.httpInstance
|
|
68817
|
+
.request({
|
|
68818
|
+
url: fillApiPath(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`, path),
|
|
68819
|
+
method: "GET",
|
|
68820
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
68821
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
68822
|
+
data,
|
|
68823
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
68824
|
+
arrayFormat: "repeat",
|
|
68825
|
+
}),
|
|
68826
|
+
})
|
|
68827
|
+
.catch((e) => {
|
|
68828
|
+
this.logger.error(formatErrors(e));
|
|
68829
|
+
});
|
|
68830
|
+
return res;
|
|
68831
|
+
});
|
|
68832
|
+
const Iterable = {
|
|
68833
|
+
[Symbol.asyncIterator]() {
|
|
68834
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
68835
|
+
let hasMore = true;
|
|
68836
|
+
let pageToken;
|
|
68837
|
+
while (hasMore) {
|
|
68838
|
+
try {
|
|
68839
|
+
const res = yield __await(sendRequest({
|
|
68840
|
+
headers,
|
|
68841
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
68842
|
+
data,
|
|
68843
|
+
}));
|
|
68844
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
68845
|
+
// @ts-ignore
|
|
68846
|
+
has_more,
|
|
68847
|
+
// @ts-ignore
|
|
68848
|
+
page_token,
|
|
68849
|
+
// @ts-ignore
|
|
68850
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
68851
|
+
yield yield __await(rest);
|
|
68852
|
+
hasMore = Boolean(has_more);
|
|
68853
|
+
pageToken = page_token || next_page_token;
|
|
68854
|
+
}
|
|
68855
|
+
catch (e) {
|
|
68856
|
+
yield yield __await(null);
|
|
68857
|
+
break;
|
|
68858
|
+
}
|
|
68859
|
+
}
|
|
68860
|
+
});
|
|
68861
|
+
},
|
|
68862
|
+
};
|
|
68863
|
+
return Iterable;
|
|
68864
|
+
}),
|
|
68865
|
+
/**
|
|
68866
|
+
* {@link https://open.feishu.cn/api-explorer?project=payroll&resource=cost_allocation_detail&apiName=list&version=v1 click to debug }
|
|
68867
|
+
*
|
|
68868
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=payroll&resource=cost_allocation_detail&version=v1 document }
|
|
68869
|
+
*
|
|
68870
|
+
* 获取成本分摊报表明细数据
|
|
68871
|
+
*/
|
|
68872
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
68873
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
68874
|
+
return this.httpInstance
|
|
68875
|
+
.request({
|
|
68876
|
+
url: fillApiPath(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`, path),
|
|
68877
|
+
method: "GET",
|
|
68878
|
+
data,
|
|
68879
|
+
params,
|
|
68880
|
+
headers,
|
|
68881
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
68882
|
+
})
|
|
68883
|
+
.catch((e) => {
|
|
68884
|
+
this.logger.error(formatErrors(e));
|
|
68885
|
+
throw e;
|
|
68886
|
+
});
|
|
68887
|
+
}),
|
|
68888
|
+
},
|
|
68086
68889
|
/**
|
|
68087
68890
|
* cost_allocation_plan
|
|
68088
68891
|
*/
|