@larksuiteoapi/node-sdk 1.19.0 → 1.20.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 +406 -4
- package/lib/index.js +406 -4
- package/package.json +1 -1
- package/types/index.d.ts +1106 -265
package/lib/index.js
CHANGED
|
@@ -585,7 +585,7 @@ class Client$1 {
|
|
|
585
585
|
},
|
|
586
586
|
};
|
|
587
587
|
/**
|
|
588
|
-
*
|
|
588
|
+
* 管理后台-企业勋章
|
|
589
589
|
*/
|
|
590
590
|
this.admin = {
|
|
591
591
|
/**
|
|
@@ -1117,6 +1117,32 @@ class Client$1 {
|
|
|
1117
1117
|
* 应用使用情况
|
|
1118
1118
|
*/
|
|
1119
1119
|
applicationAppUsage: {
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=department_overview&version=v6 click to debug }
|
|
1122
|
+
*
|
|
1123
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/application-app_usage/department_overview document }
|
|
1124
|
+
*
|
|
1125
|
+
* 获取多部门应用使用概览(灰度租户可见)
|
|
1126
|
+
*
|
|
1127
|
+
* 查看应用在某一天/某一周/某一个月的使用数据,可以根据部门做多层子部门的筛选
|
|
1128
|
+
*
|
|
1129
|
+
* 1. 仅支持企业版/旗舰版租户使用;2. 一般每天早上10点产出前一天的数据;3. 已经支持的指标包括:应用的活跃用户数、累计用户数、新增用户数、访问页面数、打开次数;4. 按照部门查看数据时,可以分别展示当前部门以及其子部门的使用情况;5. 如果查询的部门在查询日期没有使用过应用,只返回指标:应用的活跃用户数指标;6. 数据从飞书4.10版本开始统计,使用飞书版本4.10及以下版本的用户数据不会被统计到;7. 调用频控为100次/分
|
|
1130
|
+
*/
|
|
1131
|
+
departmentOverview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1133
|
+
return this.httpInstance
|
|
1134
|
+
.request({
|
|
1135
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`, path),
|
|
1136
|
+
method: "POST",
|
|
1137
|
+
data,
|
|
1138
|
+
params,
|
|
1139
|
+
headers,
|
|
1140
|
+
})
|
|
1141
|
+
.catch((e) => {
|
|
1142
|
+
this.logger.error(formatErrors(e));
|
|
1143
|
+
throw e;
|
|
1144
|
+
});
|
|
1145
|
+
}),
|
|
1120
1146
|
/**
|
|
1121
1147
|
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
1122
1148
|
*
|
|
@@ -1520,7 +1546,7 @@ class Client$1 {
|
|
|
1520
1546
|
*/
|
|
1521
1547
|
this.approval = {
|
|
1522
1548
|
/**
|
|
1523
|
-
*
|
|
1549
|
+
* 事件
|
|
1524
1550
|
*/
|
|
1525
1551
|
approval: {
|
|
1526
1552
|
/**
|
|
@@ -1652,6 +1678,26 @@ class Client$1 {
|
|
|
1652
1678
|
throw e;
|
|
1653
1679
|
});
|
|
1654
1680
|
}),
|
|
1681
|
+
/**
|
|
1682
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
|
|
1683
|
+
*
|
|
1684
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
|
|
1685
|
+
*/
|
|
1686
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1687
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1688
|
+
return this.httpInstance
|
|
1689
|
+
.request({
|
|
1690
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
|
|
1691
|
+
method: "GET",
|
|
1692
|
+
data,
|
|
1693
|
+
params,
|
|
1694
|
+
headers,
|
|
1695
|
+
})
|
|
1696
|
+
.catch((e) => {
|
|
1697
|
+
this.logger.error(formatErrors(e));
|
|
1698
|
+
throw e;
|
|
1699
|
+
});
|
|
1700
|
+
}),
|
|
1655
1701
|
},
|
|
1656
1702
|
/**
|
|
1657
1703
|
* 三方审批实例
|
|
@@ -8457,6 +8503,99 @@ class Client$1 {
|
|
|
8457
8503
|
});
|
|
8458
8504
|
}),
|
|
8459
8505
|
},
|
|
8506
|
+
/**
|
|
8507
|
+
* job_title
|
|
8508
|
+
*/
|
|
8509
|
+
jobTitle: {
|
|
8510
|
+
/**
|
|
8511
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
|
|
8512
|
+
*
|
|
8513
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
|
|
8514
|
+
*/
|
|
8515
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8516
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8517
|
+
return this.httpInstance
|
|
8518
|
+
.request({
|
|
8519
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
|
|
8520
|
+
method: "GET",
|
|
8521
|
+
data,
|
|
8522
|
+
params,
|
|
8523
|
+
headers,
|
|
8524
|
+
})
|
|
8525
|
+
.catch((e) => {
|
|
8526
|
+
this.logger.error(formatErrors(e));
|
|
8527
|
+
throw e;
|
|
8528
|
+
});
|
|
8529
|
+
}),
|
|
8530
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8531
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8532
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
8533
|
+
const res = yield this.httpInstance
|
|
8534
|
+
.request({
|
|
8535
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8536
|
+
method: "GET",
|
|
8537
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
8538
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
8539
|
+
})
|
|
8540
|
+
.catch((e) => {
|
|
8541
|
+
this.logger.error(formatErrors(e));
|
|
8542
|
+
});
|
|
8543
|
+
return res;
|
|
8544
|
+
});
|
|
8545
|
+
const Iterable = {
|
|
8546
|
+
[Symbol.asyncIterator]() {
|
|
8547
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
8548
|
+
let hasMore = true;
|
|
8549
|
+
let pageToken;
|
|
8550
|
+
while (hasMore) {
|
|
8551
|
+
try {
|
|
8552
|
+
const res = yield __await(sendRequest({
|
|
8553
|
+
headers,
|
|
8554
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
8555
|
+
data,
|
|
8556
|
+
}));
|
|
8557
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
8558
|
+
// @ts-ignore
|
|
8559
|
+
has_more,
|
|
8560
|
+
// @ts-ignore
|
|
8561
|
+
page_token,
|
|
8562
|
+
// @ts-ignore
|
|
8563
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
8564
|
+
yield yield __await(rest);
|
|
8565
|
+
hasMore = Boolean(has_more);
|
|
8566
|
+
pageToken = page_token || next_page_token;
|
|
8567
|
+
}
|
|
8568
|
+
catch (e) {
|
|
8569
|
+
yield yield __await(null);
|
|
8570
|
+
break;
|
|
8571
|
+
}
|
|
8572
|
+
}
|
|
8573
|
+
});
|
|
8574
|
+
},
|
|
8575
|
+
};
|
|
8576
|
+
return Iterable;
|
|
8577
|
+
}),
|
|
8578
|
+
/**
|
|
8579
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
|
|
8580
|
+
*
|
|
8581
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
|
|
8582
|
+
*/
|
|
8583
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8584
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8585
|
+
return this.httpInstance
|
|
8586
|
+
.request({
|
|
8587
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8588
|
+
method: "GET",
|
|
8589
|
+
data,
|
|
8590
|
+
params,
|
|
8591
|
+
headers,
|
|
8592
|
+
})
|
|
8593
|
+
.catch((e) => {
|
|
8594
|
+
this.logger.error(formatErrors(e));
|
|
8595
|
+
throw e;
|
|
8596
|
+
});
|
|
8597
|
+
}),
|
|
8598
|
+
},
|
|
8460
8599
|
/**
|
|
8461
8600
|
* 通讯录权限范围
|
|
8462
8601
|
*/
|
|
@@ -9075,6 +9214,119 @@ class Client$1 {
|
|
|
9075
9214
|
throw e;
|
|
9076
9215
|
});
|
|
9077
9216
|
}),
|
|
9217
|
+
/**
|
|
9218
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
|
|
9219
|
+
*
|
|
9220
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
|
|
9221
|
+
*/
|
|
9222
|
+
updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9223
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9224
|
+
return this.httpInstance
|
|
9225
|
+
.request({
|
|
9226
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
|
|
9227
|
+
method: "PATCH",
|
|
9228
|
+
data,
|
|
9229
|
+
params,
|
|
9230
|
+
headers,
|
|
9231
|
+
})
|
|
9232
|
+
.catch((e) => {
|
|
9233
|
+
this.logger.error(formatErrors(e));
|
|
9234
|
+
throw e;
|
|
9235
|
+
});
|
|
9236
|
+
}),
|
|
9237
|
+
},
|
|
9238
|
+
/**
|
|
9239
|
+
* work_city
|
|
9240
|
+
*/
|
|
9241
|
+
workCity: {
|
|
9242
|
+
/**
|
|
9243
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
|
|
9244
|
+
*
|
|
9245
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
|
|
9246
|
+
*/
|
|
9247
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9248
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9249
|
+
return this.httpInstance
|
|
9250
|
+
.request({
|
|
9251
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
|
|
9252
|
+
method: "GET",
|
|
9253
|
+
data,
|
|
9254
|
+
params,
|
|
9255
|
+
headers,
|
|
9256
|
+
})
|
|
9257
|
+
.catch((e) => {
|
|
9258
|
+
this.logger.error(formatErrors(e));
|
|
9259
|
+
throw e;
|
|
9260
|
+
});
|
|
9261
|
+
}),
|
|
9262
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9263
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9264
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
9265
|
+
const res = yield this.httpInstance
|
|
9266
|
+
.request({
|
|
9267
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9268
|
+
method: "GET",
|
|
9269
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
9270
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
9271
|
+
})
|
|
9272
|
+
.catch((e) => {
|
|
9273
|
+
this.logger.error(formatErrors(e));
|
|
9274
|
+
});
|
|
9275
|
+
return res;
|
|
9276
|
+
});
|
|
9277
|
+
const Iterable = {
|
|
9278
|
+
[Symbol.asyncIterator]() {
|
|
9279
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
9280
|
+
let hasMore = true;
|
|
9281
|
+
let pageToken;
|
|
9282
|
+
while (hasMore) {
|
|
9283
|
+
try {
|
|
9284
|
+
const res = yield __await(sendRequest({
|
|
9285
|
+
headers,
|
|
9286
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
9287
|
+
data,
|
|
9288
|
+
}));
|
|
9289
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
9290
|
+
// @ts-ignore
|
|
9291
|
+
has_more,
|
|
9292
|
+
// @ts-ignore
|
|
9293
|
+
page_token,
|
|
9294
|
+
// @ts-ignore
|
|
9295
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
9296
|
+
yield yield __await(rest);
|
|
9297
|
+
hasMore = Boolean(has_more);
|
|
9298
|
+
pageToken = page_token || next_page_token;
|
|
9299
|
+
}
|
|
9300
|
+
catch (e) {
|
|
9301
|
+
yield yield __await(null);
|
|
9302
|
+
break;
|
|
9303
|
+
}
|
|
9304
|
+
}
|
|
9305
|
+
});
|
|
9306
|
+
},
|
|
9307
|
+
};
|
|
9308
|
+
return Iterable;
|
|
9309
|
+
}),
|
|
9310
|
+
/**
|
|
9311
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
|
|
9312
|
+
*
|
|
9313
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
|
|
9314
|
+
*/
|
|
9315
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9316
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9317
|
+
return this.httpInstance
|
|
9318
|
+
.request({
|
|
9319
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9320
|
+
method: "GET",
|
|
9321
|
+
data,
|
|
9322
|
+
params,
|
|
9323
|
+
headers,
|
|
9324
|
+
})
|
|
9325
|
+
.catch((e) => {
|
|
9326
|
+
this.logger.error(formatErrors(e));
|
|
9327
|
+
throw e;
|
|
9328
|
+
});
|
|
9329
|
+
}),
|
|
9078
9330
|
},
|
|
9079
9331
|
};
|
|
9080
9332
|
/**
|
|
@@ -12279,6 +12531,30 @@ class Client$1 {
|
|
|
12279
12531
|
throw e;
|
|
12280
12532
|
});
|
|
12281
12533
|
}),
|
|
12534
|
+
/**
|
|
12535
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
|
|
12536
|
+
*
|
|
12537
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
|
|
12538
|
+
*
|
|
12539
|
+
* 取消云文档事件订阅情况
|
|
12540
|
+
*
|
|
12541
|
+
* 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12542
|
+
*/
|
|
12543
|
+
deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12544
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12545
|
+
return this.httpInstance
|
|
12546
|
+
.request({
|
|
12547
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
|
|
12548
|
+
method: "DELETE",
|
|
12549
|
+
data,
|
|
12550
|
+
params,
|
|
12551
|
+
headers,
|
|
12552
|
+
})
|
|
12553
|
+
.catch((e) => {
|
|
12554
|
+
this.logger.error(formatErrors(e));
|
|
12555
|
+
throw e;
|
|
12556
|
+
});
|
|
12557
|
+
}),
|
|
12282
12558
|
/**
|
|
12283
12559
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
|
|
12284
12560
|
*
|
|
@@ -12320,6 +12596,30 @@ class Client$1 {
|
|
|
12320
12596
|
}),
|
|
12321
12597
|
};
|
|
12322
12598
|
}),
|
|
12599
|
+
/**
|
|
12600
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
|
|
12601
|
+
*
|
|
12602
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
|
|
12603
|
+
*
|
|
12604
|
+
* 查询云文档事件订阅状态
|
|
12605
|
+
*
|
|
12606
|
+
* 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12607
|
+
*/
|
|
12608
|
+
getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12609
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12610
|
+
return this.httpInstance
|
|
12611
|
+
.request({
|
|
12612
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
|
|
12613
|
+
method: "GET",
|
|
12614
|
+
data,
|
|
12615
|
+
params,
|
|
12616
|
+
headers,
|
|
12617
|
+
})
|
|
12618
|
+
.catch((e) => {
|
|
12619
|
+
this.logger.error(formatErrors(e));
|
|
12620
|
+
throw e;
|
|
12621
|
+
});
|
|
12622
|
+
}),
|
|
12323
12623
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12324
12624
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12325
12625
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16589,6 +16889,79 @@ class Client$1 {
|
|
|
16589
16889
|
});
|
|
16590
16890
|
}),
|
|
16591
16891
|
},
|
|
16892
|
+
/**
|
|
16893
|
+
* registration_schema
|
|
16894
|
+
*/
|
|
16895
|
+
registrationSchema: {
|
|
16896
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16897
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16898
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
16899
|
+
const res = yield this.httpInstance
|
|
16900
|
+
.request({
|
|
16901
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16902
|
+
method: "GET",
|
|
16903
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
16904
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
16905
|
+
})
|
|
16906
|
+
.catch((e) => {
|
|
16907
|
+
this.logger.error(formatErrors(e));
|
|
16908
|
+
});
|
|
16909
|
+
return res;
|
|
16910
|
+
});
|
|
16911
|
+
const Iterable = {
|
|
16912
|
+
[Symbol.asyncIterator]() {
|
|
16913
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
16914
|
+
let hasMore = true;
|
|
16915
|
+
let pageToken;
|
|
16916
|
+
while (hasMore) {
|
|
16917
|
+
try {
|
|
16918
|
+
const res = yield __await(sendRequest({
|
|
16919
|
+
headers,
|
|
16920
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
16921
|
+
data,
|
|
16922
|
+
}));
|
|
16923
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
16924
|
+
// @ts-ignore
|
|
16925
|
+
has_more,
|
|
16926
|
+
// @ts-ignore
|
|
16927
|
+
page_token,
|
|
16928
|
+
// @ts-ignore
|
|
16929
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
16930
|
+
yield yield __await(rest);
|
|
16931
|
+
hasMore = Boolean(has_more);
|
|
16932
|
+
pageToken = page_token || next_page_token;
|
|
16933
|
+
}
|
|
16934
|
+
catch (e) {
|
|
16935
|
+
yield yield __await(null);
|
|
16936
|
+
break;
|
|
16937
|
+
}
|
|
16938
|
+
}
|
|
16939
|
+
});
|
|
16940
|
+
},
|
|
16941
|
+
};
|
|
16942
|
+
return Iterable;
|
|
16943
|
+
}),
|
|
16944
|
+
/**
|
|
16945
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
|
|
16946
|
+
*
|
|
16947
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
|
|
16948
|
+
*/
|
|
16949
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16950
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16951
|
+
return this.httpInstance
|
|
16952
|
+
.request({
|
|
16953
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16954
|
+
method: "GET",
|
|
16955
|
+
data,
|
|
16956
|
+
params,
|
|
16957
|
+
headers,
|
|
16958
|
+
})
|
|
16959
|
+
.catch((e) => {
|
|
16960
|
+
this.logger.error(formatErrors(e));
|
|
16961
|
+
throw e;
|
|
16962
|
+
});
|
|
16963
|
+
}),
|
|
16964
|
+
},
|
|
16592
16965
|
/**
|
|
16593
16966
|
* 简历来源
|
|
16594
16967
|
*/
|
|
@@ -16820,6 +17193,35 @@ class Client$1 {
|
|
|
16820
17193
|
});
|
|
16821
17194
|
}),
|
|
16822
17195
|
},
|
|
17196
|
+
/**
|
|
17197
|
+
* talent_object
|
|
17198
|
+
*/
|
|
17199
|
+
talentObject: {
|
|
17200
|
+
/**
|
|
17201
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
|
|
17202
|
+
*
|
|
17203
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
|
|
17204
|
+
*
|
|
17205
|
+
* 获取人才字段
|
|
17206
|
+
*
|
|
17207
|
+
* 获取人才字段
|
|
17208
|
+
*/
|
|
17209
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17210
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17211
|
+
return this.httpInstance
|
|
17212
|
+
.request({
|
|
17213
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
|
|
17214
|
+
method: "GET",
|
|
17215
|
+
data,
|
|
17216
|
+
params,
|
|
17217
|
+
headers,
|
|
17218
|
+
})
|
|
17219
|
+
.catch((e) => {
|
|
17220
|
+
this.logger.error(formatErrors(e));
|
|
17221
|
+
throw e;
|
|
17222
|
+
});
|
|
17223
|
+
}),
|
|
17224
|
+
},
|
|
16823
17225
|
};
|
|
16824
17226
|
/**
|
|
16825
17227
|
* 实名认证
|
|
@@ -18108,7 +18510,7 @@ class Client$1 {
|
|
|
18108
18510
|
}),
|
|
18109
18511
|
},
|
|
18110
18512
|
/**
|
|
18111
|
-
*
|
|
18513
|
+
* 消息加急
|
|
18112
18514
|
*/
|
|
18113
18515
|
message: {
|
|
18114
18516
|
/**
|
|
@@ -22057,7 +22459,7 @@ class Client$1 {
|
|
|
22057
22459
|
}),
|
|
22058
22460
|
},
|
|
22059
22461
|
/**
|
|
22060
|
-
*
|
|
22462
|
+
* 工作表
|
|
22061
22463
|
*/
|
|
22062
22464
|
spreadsheetSheet: {
|
|
22063
22465
|
/**
|