@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/es/index.js
CHANGED
|
@@ -570,7 +570,7 @@ class Client$1 {
|
|
|
570
570
|
},
|
|
571
571
|
};
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* 管理后台-企业勋章
|
|
574
574
|
*/
|
|
575
575
|
this.admin = {
|
|
576
576
|
/**
|
|
@@ -1102,6 +1102,32 @@ class Client$1 {
|
|
|
1102
1102
|
* 应用使用情况
|
|
1103
1103
|
*/
|
|
1104
1104
|
applicationAppUsage: {
|
|
1105
|
+
/**
|
|
1106
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=department_overview&version=v6 click to debug }
|
|
1107
|
+
*
|
|
1108
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/application-app_usage/department_overview document }
|
|
1109
|
+
*
|
|
1110
|
+
* 获取多部门应用使用概览(灰度租户可见)
|
|
1111
|
+
*
|
|
1112
|
+
* 查看应用在某一天/某一周/某一个月的使用数据,可以根据部门做多层子部门的筛选
|
|
1113
|
+
*
|
|
1114
|
+
* 1. 仅支持企业版/旗舰版租户使用;2. 一般每天早上10点产出前一天的数据;3. 已经支持的指标包括:应用的活跃用户数、累计用户数、新增用户数、访问页面数、打开次数;4. 按照部门查看数据时,可以分别展示当前部门以及其子部门的使用情况;5. 如果查询的部门在查询日期没有使用过应用,只返回指标:应用的活跃用户数指标;6. 数据从飞书4.10版本开始统计,使用飞书版本4.10及以下版本的用户数据不会被统计到;7. 调用频控为100次/分
|
|
1115
|
+
*/
|
|
1116
|
+
departmentOverview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1117
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1118
|
+
return this.httpInstance
|
|
1119
|
+
.request({
|
|
1120
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`, path),
|
|
1121
|
+
method: "POST",
|
|
1122
|
+
data,
|
|
1123
|
+
params,
|
|
1124
|
+
headers,
|
|
1125
|
+
})
|
|
1126
|
+
.catch((e) => {
|
|
1127
|
+
this.logger.error(formatErrors(e));
|
|
1128
|
+
throw e;
|
|
1129
|
+
});
|
|
1130
|
+
}),
|
|
1105
1131
|
/**
|
|
1106
1132
|
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
1107
1133
|
*
|
|
@@ -1505,7 +1531,7 @@ class Client$1 {
|
|
|
1505
1531
|
*/
|
|
1506
1532
|
this.approval = {
|
|
1507
1533
|
/**
|
|
1508
|
-
*
|
|
1534
|
+
* 事件
|
|
1509
1535
|
*/
|
|
1510
1536
|
approval: {
|
|
1511
1537
|
/**
|
|
@@ -1637,6 +1663,26 @@ class Client$1 {
|
|
|
1637
1663
|
throw e;
|
|
1638
1664
|
});
|
|
1639
1665
|
}),
|
|
1666
|
+
/**
|
|
1667
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
|
|
1668
|
+
*
|
|
1669
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
|
|
1670
|
+
*/
|
|
1671
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1672
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1673
|
+
return this.httpInstance
|
|
1674
|
+
.request({
|
|
1675
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
|
|
1676
|
+
method: "GET",
|
|
1677
|
+
data,
|
|
1678
|
+
params,
|
|
1679
|
+
headers,
|
|
1680
|
+
})
|
|
1681
|
+
.catch((e) => {
|
|
1682
|
+
this.logger.error(formatErrors(e));
|
|
1683
|
+
throw e;
|
|
1684
|
+
});
|
|
1685
|
+
}),
|
|
1640
1686
|
},
|
|
1641
1687
|
/**
|
|
1642
1688
|
* 三方审批实例
|
|
@@ -8442,6 +8488,99 @@ class Client$1 {
|
|
|
8442
8488
|
});
|
|
8443
8489
|
}),
|
|
8444
8490
|
},
|
|
8491
|
+
/**
|
|
8492
|
+
* job_title
|
|
8493
|
+
*/
|
|
8494
|
+
jobTitle: {
|
|
8495
|
+
/**
|
|
8496
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
|
|
8497
|
+
*
|
|
8498
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
|
|
8499
|
+
*/
|
|
8500
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8501
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8502
|
+
return this.httpInstance
|
|
8503
|
+
.request({
|
|
8504
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
|
|
8505
|
+
method: "GET",
|
|
8506
|
+
data,
|
|
8507
|
+
params,
|
|
8508
|
+
headers,
|
|
8509
|
+
})
|
|
8510
|
+
.catch((e) => {
|
|
8511
|
+
this.logger.error(formatErrors(e));
|
|
8512
|
+
throw e;
|
|
8513
|
+
});
|
|
8514
|
+
}),
|
|
8515
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8516
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8517
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
8518
|
+
const res = yield this.httpInstance
|
|
8519
|
+
.request({
|
|
8520
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8521
|
+
method: "GET",
|
|
8522
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
8523
|
+
params: pickBy(innerPayload.params, identity),
|
|
8524
|
+
})
|
|
8525
|
+
.catch((e) => {
|
|
8526
|
+
this.logger.error(formatErrors(e));
|
|
8527
|
+
});
|
|
8528
|
+
return res;
|
|
8529
|
+
});
|
|
8530
|
+
const Iterable = {
|
|
8531
|
+
[Symbol.asyncIterator]() {
|
|
8532
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
8533
|
+
let hasMore = true;
|
|
8534
|
+
let pageToken;
|
|
8535
|
+
while (hasMore) {
|
|
8536
|
+
try {
|
|
8537
|
+
const res = yield __await(sendRequest({
|
|
8538
|
+
headers,
|
|
8539
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
8540
|
+
data,
|
|
8541
|
+
}));
|
|
8542
|
+
const _b = get(res, "data") || {}, {
|
|
8543
|
+
// @ts-ignore
|
|
8544
|
+
has_more,
|
|
8545
|
+
// @ts-ignore
|
|
8546
|
+
page_token,
|
|
8547
|
+
// @ts-ignore
|
|
8548
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
8549
|
+
yield yield __await(rest);
|
|
8550
|
+
hasMore = Boolean(has_more);
|
|
8551
|
+
pageToken = page_token || next_page_token;
|
|
8552
|
+
}
|
|
8553
|
+
catch (e) {
|
|
8554
|
+
yield yield __await(null);
|
|
8555
|
+
break;
|
|
8556
|
+
}
|
|
8557
|
+
}
|
|
8558
|
+
});
|
|
8559
|
+
},
|
|
8560
|
+
};
|
|
8561
|
+
return Iterable;
|
|
8562
|
+
}),
|
|
8563
|
+
/**
|
|
8564
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
|
|
8565
|
+
*
|
|
8566
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
|
|
8567
|
+
*/
|
|
8568
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8569
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8570
|
+
return this.httpInstance
|
|
8571
|
+
.request({
|
|
8572
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8573
|
+
method: "GET",
|
|
8574
|
+
data,
|
|
8575
|
+
params,
|
|
8576
|
+
headers,
|
|
8577
|
+
})
|
|
8578
|
+
.catch((e) => {
|
|
8579
|
+
this.logger.error(formatErrors(e));
|
|
8580
|
+
throw e;
|
|
8581
|
+
});
|
|
8582
|
+
}),
|
|
8583
|
+
},
|
|
8445
8584
|
/**
|
|
8446
8585
|
* 通讯录权限范围
|
|
8447
8586
|
*/
|
|
@@ -9060,6 +9199,119 @@ class Client$1 {
|
|
|
9060
9199
|
throw e;
|
|
9061
9200
|
});
|
|
9062
9201
|
}),
|
|
9202
|
+
/**
|
|
9203
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
|
|
9204
|
+
*
|
|
9205
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
|
|
9206
|
+
*/
|
|
9207
|
+
updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9208
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9209
|
+
return this.httpInstance
|
|
9210
|
+
.request({
|
|
9211
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
|
|
9212
|
+
method: "PATCH",
|
|
9213
|
+
data,
|
|
9214
|
+
params,
|
|
9215
|
+
headers,
|
|
9216
|
+
})
|
|
9217
|
+
.catch((e) => {
|
|
9218
|
+
this.logger.error(formatErrors(e));
|
|
9219
|
+
throw e;
|
|
9220
|
+
});
|
|
9221
|
+
}),
|
|
9222
|
+
},
|
|
9223
|
+
/**
|
|
9224
|
+
* work_city
|
|
9225
|
+
*/
|
|
9226
|
+
workCity: {
|
|
9227
|
+
/**
|
|
9228
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
|
|
9229
|
+
*
|
|
9230
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
|
|
9231
|
+
*/
|
|
9232
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9233
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9234
|
+
return this.httpInstance
|
|
9235
|
+
.request({
|
|
9236
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
|
|
9237
|
+
method: "GET",
|
|
9238
|
+
data,
|
|
9239
|
+
params,
|
|
9240
|
+
headers,
|
|
9241
|
+
})
|
|
9242
|
+
.catch((e) => {
|
|
9243
|
+
this.logger.error(formatErrors(e));
|
|
9244
|
+
throw e;
|
|
9245
|
+
});
|
|
9246
|
+
}),
|
|
9247
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9248
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9249
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
9250
|
+
const res = yield this.httpInstance
|
|
9251
|
+
.request({
|
|
9252
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9253
|
+
method: "GET",
|
|
9254
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
9255
|
+
params: pickBy(innerPayload.params, identity),
|
|
9256
|
+
})
|
|
9257
|
+
.catch((e) => {
|
|
9258
|
+
this.logger.error(formatErrors(e));
|
|
9259
|
+
});
|
|
9260
|
+
return res;
|
|
9261
|
+
});
|
|
9262
|
+
const Iterable = {
|
|
9263
|
+
[Symbol.asyncIterator]() {
|
|
9264
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
9265
|
+
let hasMore = true;
|
|
9266
|
+
let pageToken;
|
|
9267
|
+
while (hasMore) {
|
|
9268
|
+
try {
|
|
9269
|
+
const res = yield __await(sendRequest({
|
|
9270
|
+
headers,
|
|
9271
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
9272
|
+
data,
|
|
9273
|
+
}));
|
|
9274
|
+
const _b = get(res, "data") || {}, {
|
|
9275
|
+
// @ts-ignore
|
|
9276
|
+
has_more,
|
|
9277
|
+
// @ts-ignore
|
|
9278
|
+
page_token,
|
|
9279
|
+
// @ts-ignore
|
|
9280
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
9281
|
+
yield yield __await(rest);
|
|
9282
|
+
hasMore = Boolean(has_more);
|
|
9283
|
+
pageToken = page_token || next_page_token;
|
|
9284
|
+
}
|
|
9285
|
+
catch (e) {
|
|
9286
|
+
yield yield __await(null);
|
|
9287
|
+
break;
|
|
9288
|
+
}
|
|
9289
|
+
}
|
|
9290
|
+
});
|
|
9291
|
+
},
|
|
9292
|
+
};
|
|
9293
|
+
return Iterable;
|
|
9294
|
+
}),
|
|
9295
|
+
/**
|
|
9296
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
|
|
9297
|
+
*
|
|
9298
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
|
|
9299
|
+
*/
|
|
9300
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9301
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9302
|
+
return this.httpInstance
|
|
9303
|
+
.request({
|
|
9304
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9305
|
+
method: "GET",
|
|
9306
|
+
data,
|
|
9307
|
+
params,
|
|
9308
|
+
headers,
|
|
9309
|
+
})
|
|
9310
|
+
.catch((e) => {
|
|
9311
|
+
this.logger.error(formatErrors(e));
|
|
9312
|
+
throw e;
|
|
9313
|
+
});
|
|
9314
|
+
}),
|
|
9063
9315
|
},
|
|
9064
9316
|
};
|
|
9065
9317
|
/**
|
|
@@ -12264,6 +12516,30 @@ class Client$1 {
|
|
|
12264
12516
|
throw e;
|
|
12265
12517
|
});
|
|
12266
12518
|
}),
|
|
12519
|
+
/**
|
|
12520
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
|
|
12521
|
+
*
|
|
12522
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
|
|
12523
|
+
*
|
|
12524
|
+
* 取消云文档事件订阅情况
|
|
12525
|
+
*
|
|
12526
|
+
* 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12527
|
+
*/
|
|
12528
|
+
deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12529
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12530
|
+
return this.httpInstance
|
|
12531
|
+
.request({
|
|
12532
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
|
|
12533
|
+
method: "DELETE",
|
|
12534
|
+
data,
|
|
12535
|
+
params,
|
|
12536
|
+
headers,
|
|
12537
|
+
})
|
|
12538
|
+
.catch((e) => {
|
|
12539
|
+
this.logger.error(formatErrors(e));
|
|
12540
|
+
throw e;
|
|
12541
|
+
});
|
|
12542
|
+
}),
|
|
12267
12543
|
/**
|
|
12268
12544
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
|
|
12269
12545
|
*
|
|
@@ -12305,6 +12581,30 @@ class Client$1 {
|
|
|
12305
12581
|
}),
|
|
12306
12582
|
};
|
|
12307
12583
|
}),
|
|
12584
|
+
/**
|
|
12585
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
|
|
12586
|
+
*
|
|
12587
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
|
|
12588
|
+
*
|
|
12589
|
+
* 查询云文档事件订阅状态
|
|
12590
|
+
*
|
|
12591
|
+
* 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12592
|
+
*/
|
|
12593
|
+
getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12594
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12595
|
+
return this.httpInstance
|
|
12596
|
+
.request({
|
|
12597
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
|
|
12598
|
+
method: "GET",
|
|
12599
|
+
data,
|
|
12600
|
+
params,
|
|
12601
|
+
headers,
|
|
12602
|
+
})
|
|
12603
|
+
.catch((e) => {
|
|
12604
|
+
this.logger.error(formatErrors(e));
|
|
12605
|
+
throw e;
|
|
12606
|
+
});
|
|
12607
|
+
}),
|
|
12308
12608
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12309
12609
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12310
12610
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16574,6 +16874,79 @@ class Client$1 {
|
|
|
16574
16874
|
});
|
|
16575
16875
|
}),
|
|
16576
16876
|
},
|
|
16877
|
+
/**
|
|
16878
|
+
* registration_schema
|
|
16879
|
+
*/
|
|
16880
|
+
registrationSchema: {
|
|
16881
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16882
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16883
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
16884
|
+
const res = yield this.httpInstance
|
|
16885
|
+
.request({
|
|
16886
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16887
|
+
method: "GET",
|
|
16888
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
16889
|
+
params: pickBy(innerPayload.params, identity),
|
|
16890
|
+
})
|
|
16891
|
+
.catch((e) => {
|
|
16892
|
+
this.logger.error(formatErrors(e));
|
|
16893
|
+
});
|
|
16894
|
+
return res;
|
|
16895
|
+
});
|
|
16896
|
+
const Iterable = {
|
|
16897
|
+
[Symbol.asyncIterator]() {
|
|
16898
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
16899
|
+
let hasMore = true;
|
|
16900
|
+
let pageToken;
|
|
16901
|
+
while (hasMore) {
|
|
16902
|
+
try {
|
|
16903
|
+
const res = yield __await(sendRequest({
|
|
16904
|
+
headers,
|
|
16905
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
16906
|
+
data,
|
|
16907
|
+
}));
|
|
16908
|
+
const _b = get(res, "data") || {}, {
|
|
16909
|
+
// @ts-ignore
|
|
16910
|
+
has_more,
|
|
16911
|
+
// @ts-ignore
|
|
16912
|
+
page_token,
|
|
16913
|
+
// @ts-ignore
|
|
16914
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
16915
|
+
yield yield __await(rest);
|
|
16916
|
+
hasMore = Boolean(has_more);
|
|
16917
|
+
pageToken = page_token || next_page_token;
|
|
16918
|
+
}
|
|
16919
|
+
catch (e) {
|
|
16920
|
+
yield yield __await(null);
|
|
16921
|
+
break;
|
|
16922
|
+
}
|
|
16923
|
+
}
|
|
16924
|
+
});
|
|
16925
|
+
},
|
|
16926
|
+
};
|
|
16927
|
+
return Iterable;
|
|
16928
|
+
}),
|
|
16929
|
+
/**
|
|
16930
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
|
|
16931
|
+
*
|
|
16932
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
|
|
16933
|
+
*/
|
|
16934
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16935
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16936
|
+
return this.httpInstance
|
|
16937
|
+
.request({
|
|
16938
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16939
|
+
method: "GET",
|
|
16940
|
+
data,
|
|
16941
|
+
params,
|
|
16942
|
+
headers,
|
|
16943
|
+
})
|
|
16944
|
+
.catch((e) => {
|
|
16945
|
+
this.logger.error(formatErrors(e));
|
|
16946
|
+
throw e;
|
|
16947
|
+
});
|
|
16948
|
+
}),
|
|
16949
|
+
},
|
|
16577
16950
|
/**
|
|
16578
16951
|
* 简历来源
|
|
16579
16952
|
*/
|
|
@@ -16805,6 +17178,35 @@ class Client$1 {
|
|
|
16805
17178
|
});
|
|
16806
17179
|
}),
|
|
16807
17180
|
},
|
|
17181
|
+
/**
|
|
17182
|
+
* talent_object
|
|
17183
|
+
*/
|
|
17184
|
+
talentObject: {
|
|
17185
|
+
/**
|
|
17186
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
|
|
17187
|
+
*
|
|
17188
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
|
|
17189
|
+
*
|
|
17190
|
+
* 获取人才字段
|
|
17191
|
+
*
|
|
17192
|
+
* 获取人才字段
|
|
17193
|
+
*/
|
|
17194
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17195
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17196
|
+
return this.httpInstance
|
|
17197
|
+
.request({
|
|
17198
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
|
|
17199
|
+
method: "GET",
|
|
17200
|
+
data,
|
|
17201
|
+
params,
|
|
17202
|
+
headers,
|
|
17203
|
+
})
|
|
17204
|
+
.catch((e) => {
|
|
17205
|
+
this.logger.error(formatErrors(e));
|
|
17206
|
+
throw e;
|
|
17207
|
+
});
|
|
17208
|
+
}),
|
|
17209
|
+
},
|
|
16808
17210
|
};
|
|
16809
17211
|
/**
|
|
16810
17212
|
* 实名认证
|
|
@@ -18093,7 +18495,7 @@ class Client$1 {
|
|
|
18093
18495
|
}),
|
|
18094
18496
|
},
|
|
18095
18497
|
/**
|
|
18096
|
-
*
|
|
18498
|
+
* 消息加急
|
|
18097
18499
|
*/
|
|
18098
18500
|
message: {
|
|
18099
18501
|
/**
|
|
@@ -22042,7 +22444,7 @@ class Client$1 {
|
|
|
22042
22444
|
}),
|
|
22043
22445
|
},
|
|
22044
22446
|
/**
|
|
22045
|
-
*
|
|
22447
|
+
* 工作表
|
|
22046
22448
|
*/
|
|
22047
22449
|
spreadsheetSheet: {
|
|
22048
22450
|
/**
|