@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/es/index.js
CHANGED
|
@@ -3226,6 +3226,84 @@ class Client$13 extends Client$14 {
|
|
|
3226
3226
|
*/
|
|
3227
3227
|
this.apaas = {
|
|
3228
3228
|
v1: {
|
|
3229
|
+
/**
|
|
3230
|
+
* app
|
|
3231
|
+
*/
|
|
3232
|
+
app: {
|
|
3233
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3234
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3235
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
3236
|
+
const res = yield this.httpInstance
|
|
3237
|
+
.request({
|
|
3238
|
+
url: fillApiPath(`${this.domain}/open-apis/apaas/v1/apps`, path),
|
|
3239
|
+
method: "GET",
|
|
3240
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
3241
|
+
params: pickBy(innerPayload.params, identity),
|
|
3242
|
+
data,
|
|
3243
|
+
paramsSerializer: (params) => stringify(params, {
|
|
3244
|
+
arrayFormat: "repeat",
|
|
3245
|
+
}),
|
|
3246
|
+
})
|
|
3247
|
+
.catch((e) => {
|
|
3248
|
+
this.logger.error(formatErrors(e));
|
|
3249
|
+
});
|
|
3250
|
+
return res;
|
|
3251
|
+
});
|
|
3252
|
+
const Iterable = {
|
|
3253
|
+
[Symbol.asyncIterator]() {
|
|
3254
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
3255
|
+
let hasMore = true;
|
|
3256
|
+
let pageToken;
|
|
3257
|
+
while (hasMore) {
|
|
3258
|
+
try {
|
|
3259
|
+
const res = yield __await(sendRequest({
|
|
3260
|
+
headers,
|
|
3261
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
3262
|
+
data,
|
|
3263
|
+
}));
|
|
3264
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
3265
|
+
// @ts-ignore
|
|
3266
|
+
has_more,
|
|
3267
|
+
// @ts-ignore
|
|
3268
|
+
page_token,
|
|
3269
|
+
// @ts-ignore
|
|
3270
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
3271
|
+
yield yield __await(rest);
|
|
3272
|
+
hasMore = Boolean(has_more);
|
|
3273
|
+
pageToken = page_token || next_page_token;
|
|
3274
|
+
}
|
|
3275
|
+
catch (e) {
|
|
3276
|
+
yield yield __await(null);
|
|
3277
|
+
break;
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
});
|
|
3281
|
+
},
|
|
3282
|
+
};
|
|
3283
|
+
return Iterable;
|
|
3284
|
+
}),
|
|
3285
|
+
/**
|
|
3286
|
+
* {@link https://open.feishu.cn/api-explorer?project=apaas&resource=app&apiName=list&version=v1 click to debug }
|
|
3287
|
+
*
|
|
3288
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=apaas&resource=app&version=v1 document }
|
|
3289
|
+
*/
|
|
3290
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3291
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3292
|
+
return this.httpInstance
|
|
3293
|
+
.request({
|
|
3294
|
+
url: fillApiPath(`${this.domain}/open-apis/apaas/v1/apps`, path),
|
|
3295
|
+
method: "GET",
|
|
3296
|
+
data,
|
|
3297
|
+
params,
|
|
3298
|
+
headers,
|
|
3299
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
3300
|
+
})
|
|
3301
|
+
.catch((e) => {
|
|
3302
|
+
this.logger.error(formatErrors(e));
|
|
3303
|
+
throw e;
|
|
3304
|
+
});
|
|
3305
|
+
}),
|
|
3306
|
+
},
|
|
3229
3307
|
/**
|
|
3230
3308
|
* application.audit_log
|
|
3231
3309
|
*/
|
|
@@ -5927,7 +6005,7 @@ class Client$11 extends Client$12 {
|
|
|
5927
6005
|
*/
|
|
5928
6006
|
this.approval = {
|
|
5929
6007
|
/**
|
|
5930
|
-
*
|
|
6008
|
+
* 事件
|
|
5931
6009
|
*/
|
|
5932
6010
|
approval: {
|
|
5933
6011
|
/**
|
|
@@ -6222,7 +6300,7 @@ class Client$11 extends Client$12 {
|
|
|
6222
6300
|
}),
|
|
6223
6301
|
},
|
|
6224
6302
|
/**
|
|
6225
|
-
*
|
|
6303
|
+
* 审批查询
|
|
6226
6304
|
*/
|
|
6227
6305
|
instance: {
|
|
6228
6306
|
/**
|
|
@@ -6930,7 +7008,7 @@ class Client$11 extends Client$12 {
|
|
|
6930
7008
|
},
|
|
6931
7009
|
v4: {
|
|
6932
7010
|
/**
|
|
6933
|
-
*
|
|
7011
|
+
* 事件
|
|
6934
7012
|
*/
|
|
6935
7013
|
approval: {
|
|
6936
7014
|
/**
|
|
@@ -7227,7 +7305,7 @@ class Client$11 extends Client$12 {
|
|
|
7227
7305
|
}),
|
|
7228
7306
|
},
|
|
7229
7307
|
/**
|
|
7230
|
-
*
|
|
7308
|
+
* 审批查询
|
|
7231
7309
|
*/
|
|
7232
7310
|
instance: {
|
|
7233
7311
|
/**
|
|
@@ -19312,6 +19390,220 @@ class Client$Q extends Client$R {
|
|
|
19312
19390
|
});
|
|
19313
19391
|
}),
|
|
19314
19392
|
},
|
|
19393
|
+
/**
|
|
19394
|
+
* lump_sum_payment
|
|
19395
|
+
*/
|
|
19396
|
+
lumpSumPayment: {
|
|
19397
|
+
/**
|
|
19398
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_create&version=v1 click to debug }
|
|
19399
|
+
*
|
|
19400
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_create&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19401
|
+
*/
|
|
19402
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19403
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19404
|
+
return this.httpInstance
|
|
19405
|
+
.request({
|
|
19406
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`, path),
|
|
19407
|
+
method: "POST",
|
|
19408
|
+
data,
|
|
19409
|
+
params,
|
|
19410
|
+
headers,
|
|
19411
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
19412
|
+
})
|
|
19413
|
+
.catch((e) => {
|
|
19414
|
+
this.logger.error(formatErrors(e));
|
|
19415
|
+
throw e;
|
|
19416
|
+
});
|
|
19417
|
+
}),
|
|
19418
|
+
/**
|
|
19419
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_remove&version=v1 click to debug }
|
|
19420
|
+
*
|
|
19421
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_remove&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19422
|
+
*/
|
|
19423
|
+
batchRemove: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19424
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19425
|
+
return this.httpInstance
|
|
19426
|
+
.request({
|
|
19427
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`, path),
|
|
19428
|
+
method: "POST",
|
|
19429
|
+
data,
|
|
19430
|
+
params,
|
|
19431
|
+
headers,
|
|
19432
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
19433
|
+
})
|
|
19434
|
+
.catch((e) => {
|
|
19435
|
+
this.logger.error(formatErrors(e));
|
|
19436
|
+
throw e;
|
|
19437
|
+
});
|
|
19438
|
+
}),
|
|
19439
|
+
/**
|
|
19440
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=batch_update&version=v1 click to debug }
|
|
19441
|
+
*
|
|
19442
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19443
|
+
*/
|
|
19444
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19445
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19446
|
+
return this.httpInstance
|
|
19447
|
+
.request({
|
|
19448
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`, path),
|
|
19449
|
+
method: "POST",
|
|
19450
|
+
data,
|
|
19451
|
+
params,
|
|
19452
|
+
headers,
|
|
19453
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
19454
|
+
})
|
|
19455
|
+
.catch((e) => {
|
|
19456
|
+
this.logger.error(formatErrors(e));
|
|
19457
|
+
throw e;
|
|
19458
|
+
});
|
|
19459
|
+
}),
|
|
19460
|
+
queryWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19461
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19462
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19463
|
+
const res = yield this.httpInstance
|
|
19464
|
+
.request({
|
|
19465
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
|
|
19466
|
+
method: "POST",
|
|
19467
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19468
|
+
params: pickBy(innerPayload.params, identity),
|
|
19469
|
+
data,
|
|
19470
|
+
paramsSerializer: (params) => stringify(params, {
|
|
19471
|
+
arrayFormat: "repeat",
|
|
19472
|
+
}),
|
|
19473
|
+
})
|
|
19474
|
+
.catch((e) => {
|
|
19475
|
+
this.logger.error(formatErrors(e));
|
|
19476
|
+
});
|
|
19477
|
+
return res;
|
|
19478
|
+
});
|
|
19479
|
+
const Iterable = {
|
|
19480
|
+
[Symbol.asyncIterator]() {
|
|
19481
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19482
|
+
let hasMore = true;
|
|
19483
|
+
let pageToken;
|
|
19484
|
+
while (hasMore) {
|
|
19485
|
+
try {
|
|
19486
|
+
const res = yield __await(sendRequest({
|
|
19487
|
+
headers,
|
|
19488
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19489
|
+
data,
|
|
19490
|
+
}));
|
|
19491
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
19492
|
+
// @ts-ignore
|
|
19493
|
+
has_more,
|
|
19494
|
+
// @ts-ignore
|
|
19495
|
+
page_token,
|
|
19496
|
+
// @ts-ignore
|
|
19497
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19498
|
+
yield yield __await(rest);
|
|
19499
|
+
hasMore = Boolean(has_more);
|
|
19500
|
+
pageToken = page_token || next_page_token;
|
|
19501
|
+
}
|
|
19502
|
+
catch (e) {
|
|
19503
|
+
yield yield __await(null);
|
|
19504
|
+
break;
|
|
19505
|
+
}
|
|
19506
|
+
}
|
|
19507
|
+
});
|
|
19508
|
+
},
|
|
19509
|
+
};
|
|
19510
|
+
return Iterable;
|
|
19511
|
+
}),
|
|
19512
|
+
/**
|
|
19513
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query&version=v1 click to debug }
|
|
19514
|
+
*
|
|
19515
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19516
|
+
*/
|
|
19517
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19518
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19519
|
+
return this.httpInstance
|
|
19520
|
+
.request({
|
|
19521
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`, path),
|
|
19522
|
+
method: "POST",
|
|
19523
|
+
data,
|
|
19524
|
+
params,
|
|
19525
|
+
headers,
|
|
19526
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
19527
|
+
})
|
|
19528
|
+
.catch((e) => {
|
|
19529
|
+
this.logger.error(formatErrors(e));
|
|
19530
|
+
throw e;
|
|
19531
|
+
});
|
|
19532
|
+
}),
|
|
19533
|
+
queryDetailWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19534
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19535
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19536
|
+
const res = yield this.httpInstance
|
|
19537
|
+
.request({
|
|
19538
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
|
|
19539
|
+
method: "POST",
|
|
19540
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19541
|
+
params: pickBy(innerPayload.params, identity),
|
|
19542
|
+
data,
|
|
19543
|
+
paramsSerializer: (params) => stringify(params, {
|
|
19544
|
+
arrayFormat: "repeat",
|
|
19545
|
+
}),
|
|
19546
|
+
})
|
|
19547
|
+
.catch((e) => {
|
|
19548
|
+
this.logger.error(formatErrors(e));
|
|
19549
|
+
});
|
|
19550
|
+
return res;
|
|
19551
|
+
});
|
|
19552
|
+
const Iterable = {
|
|
19553
|
+
[Symbol.asyncIterator]() {
|
|
19554
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19555
|
+
let hasMore = true;
|
|
19556
|
+
let pageToken;
|
|
19557
|
+
while (hasMore) {
|
|
19558
|
+
try {
|
|
19559
|
+
const res = yield __await(sendRequest({
|
|
19560
|
+
headers,
|
|
19561
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19562
|
+
data,
|
|
19563
|
+
}));
|
|
19564
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
19565
|
+
// @ts-ignore
|
|
19566
|
+
has_more,
|
|
19567
|
+
// @ts-ignore
|
|
19568
|
+
page_token,
|
|
19569
|
+
// @ts-ignore
|
|
19570
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19571
|
+
yield yield __await(rest);
|
|
19572
|
+
hasMore = Boolean(has_more);
|
|
19573
|
+
pageToken = page_token || next_page_token;
|
|
19574
|
+
}
|
|
19575
|
+
catch (e) {
|
|
19576
|
+
yield yield __await(null);
|
|
19577
|
+
break;
|
|
19578
|
+
}
|
|
19579
|
+
}
|
|
19580
|
+
});
|
|
19581
|
+
},
|
|
19582
|
+
};
|
|
19583
|
+
return Iterable;
|
|
19584
|
+
}),
|
|
19585
|
+
/**
|
|
19586
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=lump_sum_payment&apiName=query_detail&version=v1 click to debug }
|
|
19587
|
+
*
|
|
19588
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_detail&project=compensation&resource=lump_sum_payment&version=v1 document }
|
|
19589
|
+
*/
|
|
19590
|
+
queryDetail: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19591
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19592
|
+
return this.httpInstance
|
|
19593
|
+
.request({
|
|
19594
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`, path),
|
|
19595
|
+
method: "POST",
|
|
19596
|
+
data,
|
|
19597
|
+
params,
|
|
19598
|
+
headers,
|
|
19599
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
19600
|
+
})
|
|
19601
|
+
.catch((e) => {
|
|
19602
|
+
this.logger.error(formatErrors(e));
|
|
19603
|
+
throw e;
|
|
19604
|
+
});
|
|
19605
|
+
}),
|
|
19606
|
+
},
|
|
19315
19607
|
/**
|
|
19316
19608
|
* plan
|
|
19317
19609
|
*/
|
|
@@ -32887,6 +33179,29 @@ class Client$M extends Client$N {
|
|
|
32887
33179
|
* job
|
|
32888
33180
|
*/
|
|
32889
33181
|
job: {
|
|
33182
|
+
/**
|
|
33183
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=batch_get&version=v2 click to debug }
|
|
33184
|
+
*
|
|
33185
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=job&version=v2 document }
|
|
33186
|
+
*
|
|
33187
|
+
* 批量获取职务信息
|
|
33188
|
+
*/
|
|
33189
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33190
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33191
|
+
return this.httpInstance
|
|
33192
|
+
.request({
|
|
33193
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`, path),
|
|
33194
|
+
method: "POST",
|
|
33195
|
+
data,
|
|
33196
|
+
params,
|
|
33197
|
+
headers,
|
|
33198
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33199
|
+
})
|
|
33200
|
+
.catch((e) => {
|
|
33201
|
+
this.logger.error(formatErrors(e));
|
|
33202
|
+
throw e;
|
|
33203
|
+
});
|
|
33204
|
+
}),
|
|
32890
33205
|
/**
|
|
32891
33206
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=get&version=v2 click to debug }
|
|
32892
33207
|
*
|
|
@@ -32933,6 +33248,29 @@ class Client$M extends Client$N {
|
|
|
32933
33248
|
throw e;
|
|
32934
33249
|
});
|
|
32935
33250
|
}),
|
|
33251
|
+
/**
|
|
33252
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=query_multi_timeline&version=v2 click to debug }
|
|
33253
|
+
*
|
|
33254
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job&version=v2 document }
|
|
33255
|
+
*
|
|
33256
|
+
* 查询生效时间在指定时间范围的职务
|
|
33257
|
+
*/
|
|
33258
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33259
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33260
|
+
return this.httpInstance
|
|
33261
|
+
.request({
|
|
33262
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`, path),
|
|
33263
|
+
method: "POST",
|
|
33264
|
+
data,
|
|
33265
|
+
params,
|
|
33266
|
+
headers,
|
|
33267
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33268
|
+
})
|
|
33269
|
+
.catch((e) => {
|
|
33270
|
+
this.logger.error(formatErrors(e));
|
|
33271
|
+
throw e;
|
|
33272
|
+
});
|
|
33273
|
+
}),
|
|
32936
33274
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32937
33275
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32938
33276
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33156,6 +33494,29 @@ class Client$M extends Client$N {
|
|
|
33156
33494
|
throw e;
|
|
33157
33495
|
});
|
|
33158
33496
|
}),
|
|
33497
|
+
/**
|
|
33498
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_multi_timeline&version=v2 click to debug }
|
|
33499
|
+
*
|
|
33500
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=job_family&version=v2 document }
|
|
33501
|
+
*
|
|
33502
|
+
* 查询生效时间在指定时间范围的序列
|
|
33503
|
+
*/
|
|
33504
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33505
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33506
|
+
return this.httpInstance
|
|
33507
|
+
.request({
|
|
33508
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`, path),
|
|
33509
|
+
method: "POST",
|
|
33510
|
+
data,
|
|
33511
|
+
params,
|
|
33512
|
+
headers,
|
|
33513
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
33514
|
+
})
|
|
33515
|
+
.catch((e) => {
|
|
33516
|
+
this.logger.error(formatErrors(e));
|
|
33517
|
+
throw e;
|
|
33518
|
+
});
|
|
33519
|
+
}),
|
|
33159
33520
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33160
33521
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33161
33522
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33794,6 +34155,126 @@ class Client$M extends Client$N {
|
|
|
33794
34155
|
});
|
|
33795
34156
|
}),
|
|
33796
34157
|
},
|
|
34158
|
+
/**
|
|
34159
|
+
* pathway
|
|
34160
|
+
*/
|
|
34161
|
+
pathway: {
|
|
34162
|
+
/**
|
|
34163
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=active&version=v2 click to debug }
|
|
34164
|
+
*
|
|
34165
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=pathway&version=v2 document }
|
|
34166
|
+
*
|
|
34167
|
+
* 启/停用通道
|
|
34168
|
+
*/
|
|
34169
|
+
active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34170
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34171
|
+
return this.httpInstance
|
|
34172
|
+
.request({
|
|
34173
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/active`, path),
|
|
34174
|
+
method: "POST",
|
|
34175
|
+
data,
|
|
34176
|
+
params,
|
|
34177
|
+
headers,
|
|
34178
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34179
|
+
})
|
|
34180
|
+
.catch((e) => {
|
|
34181
|
+
this.logger.error(formatErrors(e));
|
|
34182
|
+
throw e;
|
|
34183
|
+
});
|
|
34184
|
+
}),
|
|
34185
|
+
/**
|
|
34186
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=batch_get&version=v2 click to debug }
|
|
34187
|
+
*
|
|
34188
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_get&project=corehr&resource=pathway&version=v2 document }
|
|
34189
|
+
*
|
|
34190
|
+
* 通过通道 ID 批量获取通道信息
|
|
34191
|
+
*/
|
|
34192
|
+
batchGet: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34193
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34194
|
+
return this.httpInstance
|
|
34195
|
+
.request({
|
|
34196
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`, path),
|
|
34197
|
+
method: "POST",
|
|
34198
|
+
data,
|
|
34199
|
+
params,
|
|
34200
|
+
headers,
|
|
34201
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34202
|
+
})
|
|
34203
|
+
.catch((e) => {
|
|
34204
|
+
this.logger.error(formatErrors(e));
|
|
34205
|
+
throw e;
|
|
34206
|
+
});
|
|
34207
|
+
}),
|
|
34208
|
+
/**
|
|
34209
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=create&version=v2 click to debug }
|
|
34210
|
+
*
|
|
34211
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=pathway&version=v2 document }
|
|
34212
|
+
*
|
|
34213
|
+
* 创建通道
|
|
34214
|
+
*/
|
|
34215
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34216
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34217
|
+
return this.httpInstance
|
|
34218
|
+
.request({
|
|
34219
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways`, path),
|
|
34220
|
+
method: "POST",
|
|
34221
|
+
data,
|
|
34222
|
+
params,
|
|
34223
|
+
headers,
|
|
34224
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34225
|
+
})
|
|
34226
|
+
.catch((e) => {
|
|
34227
|
+
this.logger.error(formatErrors(e));
|
|
34228
|
+
throw e;
|
|
34229
|
+
});
|
|
34230
|
+
}),
|
|
34231
|
+
/**
|
|
34232
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=delete&version=v2 click to debug }
|
|
34233
|
+
*
|
|
34234
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=pathway&version=v2 document }
|
|
34235
|
+
*
|
|
34236
|
+
* 删除通道
|
|
34237
|
+
*/
|
|
34238
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34239
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34240
|
+
return this.httpInstance
|
|
34241
|
+
.request({
|
|
34242
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
|
|
34243
|
+
method: "DELETE",
|
|
34244
|
+
data,
|
|
34245
|
+
params,
|
|
34246
|
+
headers,
|
|
34247
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34248
|
+
})
|
|
34249
|
+
.catch((e) => {
|
|
34250
|
+
this.logger.error(formatErrors(e));
|
|
34251
|
+
throw e;
|
|
34252
|
+
});
|
|
34253
|
+
}),
|
|
34254
|
+
/**
|
|
34255
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pathway&apiName=patch&version=v2 click to debug }
|
|
34256
|
+
*
|
|
34257
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=pathway&version=v2 document }
|
|
34258
|
+
*
|
|
34259
|
+
* 更新通道信息
|
|
34260
|
+
*/
|
|
34261
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34262
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34263
|
+
return this.httpInstance
|
|
34264
|
+
.request({
|
|
34265
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`, path),
|
|
34266
|
+
method: "PATCH",
|
|
34267
|
+
data,
|
|
34268
|
+
params,
|
|
34269
|
+
headers,
|
|
34270
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34271
|
+
})
|
|
34272
|
+
.catch((e) => {
|
|
34273
|
+
this.logger.error(formatErrors(e));
|
|
34274
|
+
throw e;
|
|
34275
|
+
});
|
|
34276
|
+
}),
|
|
34277
|
+
},
|
|
33797
34278
|
/**
|
|
33798
34279
|
* person
|
|
33799
34280
|
*/
|
|
@@ -33843,6 +34324,34 @@ class Client$M extends Client$N {
|
|
|
33843
34324
|
});
|
|
33844
34325
|
}),
|
|
33845
34326
|
},
|
|
34327
|
+
/**
|
|
34328
|
+
* position
|
|
34329
|
+
*/
|
|
34330
|
+
position: {
|
|
34331
|
+
/**
|
|
34332
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=position&apiName=query&version=v2 click to debug }
|
|
34333
|
+
*
|
|
34334
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=position&version=v2 document }
|
|
34335
|
+
*
|
|
34336
|
+
* 查询岗位信息
|
|
34337
|
+
*/
|
|
34338
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34339
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34340
|
+
return this.httpInstance
|
|
34341
|
+
.request({
|
|
34342
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/positions/query`, path),
|
|
34343
|
+
method: "POST",
|
|
34344
|
+
data,
|
|
34345
|
+
params,
|
|
34346
|
+
headers,
|
|
34347
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
34348
|
+
})
|
|
34349
|
+
.catch((e) => {
|
|
34350
|
+
this.logger.error(formatErrors(e));
|
|
34351
|
+
throw e;
|
|
34352
|
+
});
|
|
34353
|
+
}),
|
|
34354
|
+
},
|
|
33846
34355
|
/**
|
|
33847
34356
|
* 待入职
|
|
33848
34357
|
*/
|
|
@@ -37479,7 +37988,7 @@ class Client$G extends Client$H {
|
|
|
37479
37988
|
constructor() {
|
|
37480
37989
|
super(...arguments);
|
|
37481
37990
|
/**
|
|
37482
|
-
*
|
|
37991
|
+
* 云文档-文件管理
|
|
37483
37992
|
*/
|
|
37484
37993
|
this.drive = {
|
|
37485
37994
|
/**
|
|
@@ -37902,7 +38411,7 @@ class Client$G extends Client$H {
|
|
|
37902
38411
|
}),
|
|
37903
38412
|
},
|
|
37904
38413
|
/**
|
|
37905
|
-
*
|
|
38414
|
+
* 文件
|
|
37906
38415
|
*/
|
|
37907
38416
|
file: {
|
|
37908
38417
|
/**
|
|
@@ -38777,7 +39286,7 @@ class Client$G extends Client$H {
|
|
|
38777
39286
|
}),
|
|
38778
39287
|
},
|
|
38779
39288
|
/**
|
|
38780
|
-
*
|
|
39289
|
+
* 素材
|
|
38781
39290
|
*/
|
|
38782
39291
|
media: {
|
|
38783
39292
|
/**
|
|
@@ -39728,7 +40237,7 @@ class Client$G extends Client$H {
|
|
|
39728
40237
|
}),
|
|
39729
40238
|
},
|
|
39730
40239
|
/**
|
|
39731
|
-
*
|
|
40240
|
+
* 文件
|
|
39732
40241
|
*/
|
|
39733
40242
|
file: {
|
|
39734
40243
|
/**
|
|
@@ -40609,7 +41118,7 @@ class Client$G extends Client$H {
|
|
|
40609
41118
|
}),
|
|
40610
41119
|
},
|
|
40611
41120
|
/**
|
|
40612
|
-
*
|
|
41121
|
+
* 素材
|
|
40613
41122
|
*/
|
|
40614
41123
|
media: {
|
|
40615
41124
|
/**
|
|
@@ -45071,7 +45580,7 @@ class Client$x extends Client$y {
|
|
|
45071
45580
|
}),
|
|
45072
45581
|
},
|
|
45073
45582
|
/**
|
|
45074
|
-
*
|
|
45583
|
+
* 入职
|
|
45075
45584
|
*/
|
|
45076
45585
|
application: {
|
|
45077
45586
|
/**
|
|
@@ -48673,6 +49182,36 @@ class Client$x extends Client$y {
|
|
|
48673
49182
|
});
|
|
48674
49183
|
}),
|
|
48675
49184
|
},
|
|
49185
|
+
/**
|
|
49186
|
+
* Offer 审批流配置(灰度租户可见)
|
|
49187
|
+
*/
|
|
49188
|
+
offerApprovalTemplate: {
|
|
49189
|
+
/**
|
|
49190
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
|
|
49191
|
+
*
|
|
49192
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
|
|
49193
|
+
*
|
|
49194
|
+
* 获取 Offer 审批流配置列表
|
|
49195
|
+
*
|
|
49196
|
+
* 获取 Offer 审批流配置列表
|
|
49197
|
+
*/
|
|
49198
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49199
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49200
|
+
return this.httpInstance
|
|
49201
|
+
.request({
|
|
49202
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
|
|
49203
|
+
method: "GET",
|
|
49204
|
+
data,
|
|
49205
|
+
params,
|
|
49206
|
+
headers,
|
|
49207
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49208
|
+
})
|
|
49209
|
+
.catch((e) => {
|
|
49210
|
+
this.logger.error(formatErrors(e));
|
|
49211
|
+
throw e;
|
|
49212
|
+
});
|
|
49213
|
+
}),
|
|
49214
|
+
},
|
|
48676
49215
|
/**
|
|
48677
49216
|
* offer_custom_field
|
|
48678
49217
|
*/
|
|
@@ -48729,6 +49268,82 @@ class Client$x extends Client$y {
|
|
|
48729
49268
|
});
|
|
48730
49269
|
}),
|
|
48731
49270
|
},
|
|
49271
|
+
/**
|
|
49272
|
+
* portal_apply_schema
|
|
49273
|
+
*/
|
|
49274
|
+
portalApplySchema: {
|
|
49275
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49276
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49277
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49278
|
+
const res = yield this.httpInstance
|
|
49279
|
+
.request({
|
|
49280
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
49281
|
+
method: "GET",
|
|
49282
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
49283
|
+
params: pickBy(innerPayload.params, identity),
|
|
49284
|
+
data,
|
|
49285
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49286
|
+
})
|
|
49287
|
+
.catch((e) => {
|
|
49288
|
+
this.logger.error(formatErrors(e));
|
|
49289
|
+
});
|
|
49290
|
+
return res;
|
|
49291
|
+
});
|
|
49292
|
+
const Iterable = {
|
|
49293
|
+
[Symbol.asyncIterator]() {
|
|
49294
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49295
|
+
let hasMore = true;
|
|
49296
|
+
let pageToken;
|
|
49297
|
+
while (hasMore) {
|
|
49298
|
+
try {
|
|
49299
|
+
const res = yield __await(sendRequest({
|
|
49300
|
+
headers,
|
|
49301
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
49302
|
+
data,
|
|
49303
|
+
}));
|
|
49304
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
49305
|
+
// @ts-ignore
|
|
49306
|
+
has_more,
|
|
49307
|
+
// @ts-ignore
|
|
49308
|
+
page_token,
|
|
49309
|
+
// @ts-ignore
|
|
49310
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
49311
|
+
yield yield __await(rest);
|
|
49312
|
+
hasMore = Boolean(has_more);
|
|
49313
|
+
pageToken = page_token || next_page_token;
|
|
49314
|
+
}
|
|
49315
|
+
catch (e) {
|
|
49316
|
+
yield yield __await(null);
|
|
49317
|
+
break;
|
|
49318
|
+
}
|
|
49319
|
+
}
|
|
49320
|
+
});
|
|
49321
|
+
},
|
|
49322
|
+
};
|
|
49323
|
+
return Iterable;
|
|
49324
|
+
}),
|
|
49325
|
+
/**
|
|
49326
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
|
|
49327
|
+
*
|
|
49328
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
|
|
49329
|
+
*/
|
|
49330
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49331
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49332
|
+
return this.httpInstance
|
|
49333
|
+
.request({
|
|
49334
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
49335
|
+
method: "GET",
|
|
49336
|
+
data,
|
|
49337
|
+
params,
|
|
49338
|
+
headers,
|
|
49339
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49340
|
+
})
|
|
49341
|
+
.catch((e) => {
|
|
49342
|
+
this.logger.error(formatErrors(e));
|
|
49343
|
+
throw e;
|
|
49344
|
+
});
|
|
49345
|
+
}),
|
|
49346
|
+
},
|
|
48732
49347
|
/**
|
|
48733
49348
|
* 问卷(灰度租户可见)
|
|
48734
49349
|
*/
|
|
@@ -51099,7 +51714,7 @@ class Client$x extends Client$y {
|
|
|
51099
51714
|
}),
|
|
51100
51715
|
},
|
|
51101
51716
|
/**
|
|
51102
|
-
*
|
|
51717
|
+
* 入职
|
|
51103
51718
|
*/
|
|
51104
51719
|
application: {
|
|
51105
51720
|
/**
|
|
@@ -54731,6 +55346,36 @@ class Client$x extends Client$y {
|
|
|
54731
55346
|
});
|
|
54732
55347
|
}),
|
|
54733
55348
|
},
|
|
55349
|
+
/**
|
|
55350
|
+
* Offer 审批流配置(灰度租户可见)
|
|
55351
|
+
*/
|
|
55352
|
+
offerApprovalTemplate: {
|
|
55353
|
+
/**
|
|
55354
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer_approval_template&apiName=list&version=v1 click to debug }
|
|
55355
|
+
*
|
|
55356
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list document }
|
|
55357
|
+
*
|
|
55358
|
+
* 获取 Offer 审批流配置列表
|
|
55359
|
+
*
|
|
55360
|
+
* 获取 Offer 审批流配置列表
|
|
55361
|
+
*/
|
|
55362
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55363
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55364
|
+
return this.httpInstance
|
|
55365
|
+
.request({
|
|
55366
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offer_approval_templates`, path),
|
|
55367
|
+
method: "GET",
|
|
55368
|
+
data,
|
|
55369
|
+
params,
|
|
55370
|
+
headers,
|
|
55371
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
55372
|
+
})
|
|
55373
|
+
.catch((e) => {
|
|
55374
|
+
this.logger.error(formatErrors(e));
|
|
55375
|
+
throw e;
|
|
55376
|
+
});
|
|
55377
|
+
}),
|
|
55378
|
+
},
|
|
54734
55379
|
/**
|
|
54735
55380
|
* offer_custom_field
|
|
54736
55381
|
*/
|
|
@@ -54787,6 +55432,84 @@ class Client$x extends Client$y {
|
|
|
54787
55432
|
});
|
|
54788
55433
|
}),
|
|
54789
55434
|
},
|
|
55435
|
+
/**
|
|
55436
|
+
* portal_apply_schema
|
|
55437
|
+
*/
|
|
55438
|
+
portalApplySchema: {
|
|
55439
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55440
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55441
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
55442
|
+
const res = yield this.httpInstance
|
|
55443
|
+
.request({
|
|
55444
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
55445
|
+
method: "GET",
|
|
55446
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
55447
|
+
params: pickBy(innerPayload.params, identity),
|
|
55448
|
+
data,
|
|
55449
|
+
paramsSerializer: (params) => stringify(params, {
|
|
55450
|
+
arrayFormat: "repeat",
|
|
55451
|
+
}),
|
|
55452
|
+
})
|
|
55453
|
+
.catch((e) => {
|
|
55454
|
+
this.logger.error(formatErrors(e));
|
|
55455
|
+
});
|
|
55456
|
+
return res;
|
|
55457
|
+
});
|
|
55458
|
+
const Iterable = {
|
|
55459
|
+
[Symbol.asyncIterator]() {
|
|
55460
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
55461
|
+
let hasMore = true;
|
|
55462
|
+
let pageToken;
|
|
55463
|
+
while (hasMore) {
|
|
55464
|
+
try {
|
|
55465
|
+
const res = yield __await(sendRequest({
|
|
55466
|
+
headers,
|
|
55467
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
55468
|
+
data,
|
|
55469
|
+
}));
|
|
55470
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
55471
|
+
// @ts-ignore
|
|
55472
|
+
has_more,
|
|
55473
|
+
// @ts-ignore
|
|
55474
|
+
page_token,
|
|
55475
|
+
// @ts-ignore
|
|
55476
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
55477
|
+
yield yield __await(rest);
|
|
55478
|
+
hasMore = Boolean(has_more);
|
|
55479
|
+
pageToken = page_token || next_page_token;
|
|
55480
|
+
}
|
|
55481
|
+
catch (e) {
|
|
55482
|
+
yield yield __await(null);
|
|
55483
|
+
break;
|
|
55484
|
+
}
|
|
55485
|
+
}
|
|
55486
|
+
});
|
|
55487
|
+
},
|
|
55488
|
+
};
|
|
55489
|
+
return Iterable;
|
|
55490
|
+
}),
|
|
55491
|
+
/**
|
|
55492
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=portal_apply_schema&apiName=list&version=v1 click to debug }
|
|
55493
|
+
*
|
|
55494
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=portal_apply_schema&version=v1 document }
|
|
55495
|
+
*/
|
|
55496
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55497
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55498
|
+
return this.httpInstance
|
|
55499
|
+
.request({
|
|
55500
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`, path),
|
|
55501
|
+
method: "GET",
|
|
55502
|
+
data,
|
|
55503
|
+
params,
|
|
55504
|
+
headers,
|
|
55505
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
55506
|
+
})
|
|
55507
|
+
.catch((e) => {
|
|
55508
|
+
this.logger.error(formatErrors(e));
|
|
55509
|
+
throw e;
|
|
55510
|
+
});
|
|
55511
|
+
}),
|
|
55512
|
+
},
|
|
54790
55513
|
/**
|
|
54791
55514
|
* 问卷(灰度租户可见)
|
|
54792
55515
|
*/
|
|
@@ -58533,7 +59256,7 @@ class Client$v extends Client$w {
|
|
|
58533
59256
|
}),
|
|
58534
59257
|
},
|
|
58535
59258
|
/**
|
|
58536
|
-
*
|
|
59259
|
+
* 消息加急
|
|
58537
59260
|
*/
|
|
58538
59261
|
message: {
|
|
58539
59262
|
/**
|
|
@@ -60742,7 +61465,7 @@ class Client$v extends Client$w {
|
|
|
60742
61465
|
}),
|
|
60743
61466
|
},
|
|
60744
61467
|
/**
|
|
60745
|
-
*
|
|
61468
|
+
* 消息加急
|
|
60746
61469
|
*/
|
|
60747
61470
|
message: {
|
|
60748
61471
|
/**
|
|
@@ -68068,6 +68791,86 @@ class Client$l extends Client$m {
|
|
|
68068
68791
|
});
|
|
68069
68792
|
}),
|
|
68070
68793
|
},
|
|
68794
|
+
/**
|
|
68795
|
+
* cost_allocation_detail
|
|
68796
|
+
*/
|
|
68797
|
+
costAllocationDetail: {
|
|
68798
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
68799
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
68800
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
68801
|
+
const res = yield this.httpInstance
|
|
68802
|
+
.request({
|
|
68803
|
+
url: fillApiPath(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`, path),
|
|
68804
|
+
method: "GET",
|
|
68805
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
68806
|
+
params: pickBy(innerPayload.params, identity),
|
|
68807
|
+
data,
|
|
68808
|
+
paramsSerializer: (params) => stringify(params, {
|
|
68809
|
+
arrayFormat: "repeat",
|
|
68810
|
+
}),
|
|
68811
|
+
})
|
|
68812
|
+
.catch((e) => {
|
|
68813
|
+
this.logger.error(formatErrors(e));
|
|
68814
|
+
});
|
|
68815
|
+
return res;
|
|
68816
|
+
});
|
|
68817
|
+
const Iterable = {
|
|
68818
|
+
[Symbol.asyncIterator]() {
|
|
68819
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
68820
|
+
let hasMore = true;
|
|
68821
|
+
let pageToken;
|
|
68822
|
+
while (hasMore) {
|
|
68823
|
+
try {
|
|
68824
|
+
const res = yield __await(sendRequest({
|
|
68825
|
+
headers,
|
|
68826
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
68827
|
+
data,
|
|
68828
|
+
}));
|
|
68829
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
68830
|
+
// @ts-ignore
|
|
68831
|
+
has_more,
|
|
68832
|
+
// @ts-ignore
|
|
68833
|
+
page_token,
|
|
68834
|
+
// @ts-ignore
|
|
68835
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
68836
|
+
yield yield __await(rest);
|
|
68837
|
+
hasMore = Boolean(has_more);
|
|
68838
|
+
pageToken = page_token || next_page_token;
|
|
68839
|
+
}
|
|
68840
|
+
catch (e) {
|
|
68841
|
+
yield yield __await(null);
|
|
68842
|
+
break;
|
|
68843
|
+
}
|
|
68844
|
+
}
|
|
68845
|
+
});
|
|
68846
|
+
},
|
|
68847
|
+
};
|
|
68848
|
+
return Iterable;
|
|
68849
|
+
}),
|
|
68850
|
+
/**
|
|
68851
|
+
* {@link https://open.feishu.cn/api-explorer?project=payroll&resource=cost_allocation_detail&apiName=list&version=v1 click to debug }
|
|
68852
|
+
*
|
|
68853
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=payroll&resource=cost_allocation_detail&version=v1 document }
|
|
68854
|
+
*
|
|
68855
|
+
* 获取成本分摊报表明细数据
|
|
68856
|
+
*/
|
|
68857
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
68858
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
68859
|
+
return this.httpInstance
|
|
68860
|
+
.request({
|
|
68861
|
+
url: fillApiPath(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`, path),
|
|
68862
|
+
method: "GET",
|
|
68863
|
+
data,
|
|
68864
|
+
params,
|
|
68865
|
+
headers,
|
|
68866
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
68867
|
+
})
|
|
68868
|
+
.catch((e) => {
|
|
68869
|
+
this.logger.error(formatErrors(e));
|
|
68870
|
+
throw e;
|
|
68871
|
+
});
|
|
68872
|
+
}),
|
|
68873
|
+
},
|
|
68071
68874
|
/**
|
|
68072
68875
|
* cost_allocation_plan
|
|
68073
68876
|
*/
|