@larksuiteoapi/node-sdk 1.19.0 → 1.21.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 +635 -142
- package/lib/index.js +635 -142
- package/package.json +1 -1
- package/types/index.d.ts +1874 -346
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
|
*
|
|
@@ -1276,6 +1302,31 @@ class Client$1 {
|
|
|
1276
1302
|
});
|
|
1277
1303
|
}),
|
|
1278
1304
|
},
|
|
1305
|
+
/**
|
|
1306
|
+
* application.contacts_range
|
|
1307
|
+
*/
|
|
1308
|
+
applicationContactsRange: {
|
|
1309
|
+
/**
|
|
1310
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.contacts_range&apiName=patch&version=v6 click to debug }
|
|
1311
|
+
*
|
|
1312
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=application&resource=application.contacts_range&version=v6 document }
|
|
1313
|
+
*/
|
|
1314
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1315
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1316
|
+
return this.httpInstance
|
|
1317
|
+
.request({
|
|
1318
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`, path),
|
|
1319
|
+
method: "PATCH",
|
|
1320
|
+
data,
|
|
1321
|
+
params,
|
|
1322
|
+
headers,
|
|
1323
|
+
})
|
|
1324
|
+
.catch((e) => {
|
|
1325
|
+
this.logger.error(formatErrors(e));
|
|
1326
|
+
throw e;
|
|
1327
|
+
});
|
|
1328
|
+
}),
|
|
1329
|
+
},
|
|
1279
1330
|
/**
|
|
1280
1331
|
* 应用
|
|
1281
1332
|
*/
|
|
@@ -1498,6 +1549,26 @@ class Client$1 {
|
|
|
1498
1549
|
throw e;
|
|
1499
1550
|
});
|
|
1500
1551
|
}),
|
|
1552
|
+
/**
|
|
1553
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.visibility&apiName=patch&version=v6 click to debug }
|
|
1554
|
+
*
|
|
1555
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=application&resource=application.visibility&version=v6 document }
|
|
1556
|
+
*/
|
|
1557
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1558
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1559
|
+
return this.httpInstance
|
|
1560
|
+
.request({
|
|
1561
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`, path),
|
|
1562
|
+
method: "PATCH",
|
|
1563
|
+
data,
|
|
1564
|
+
params,
|
|
1565
|
+
headers,
|
|
1566
|
+
})
|
|
1567
|
+
.catch((e) => {
|
|
1568
|
+
this.logger.error(formatErrors(e));
|
|
1569
|
+
throw e;
|
|
1570
|
+
});
|
|
1571
|
+
}),
|
|
1501
1572
|
},
|
|
1502
1573
|
};
|
|
1503
1574
|
/**
|
|
@@ -1637,6 +1708,26 @@ class Client$1 {
|
|
|
1637
1708
|
throw e;
|
|
1638
1709
|
});
|
|
1639
1710
|
}),
|
|
1711
|
+
/**
|
|
1712
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
|
|
1713
|
+
*
|
|
1714
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
|
|
1715
|
+
*/
|
|
1716
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1717
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1718
|
+
return this.httpInstance
|
|
1719
|
+
.request({
|
|
1720
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
|
|
1721
|
+
method: "GET",
|
|
1722
|
+
data,
|
|
1723
|
+
params,
|
|
1724
|
+
headers,
|
|
1725
|
+
})
|
|
1726
|
+
.catch((e) => {
|
|
1727
|
+
this.logger.error(formatErrors(e));
|
|
1728
|
+
throw e;
|
|
1729
|
+
});
|
|
1730
|
+
}),
|
|
1640
1731
|
},
|
|
1641
1732
|
/**
|
|
1642
1733
|
* 三方审批实例
|
|
@@ -2251,7 +2342,7 @@ class Client$1 {
|
|
|
2251
2342
|
}),
|
|
2252
2343
|
},
|
|
2253
2344
|
/**
|
|
2254
|
-
*
|
|
2345
|
+
* 原生审批任务
|
|
2255
2346
|
*/
|
|
2256
2347
|
task: {
|
|
2257
2348
|
/**
|
|
@@ -3567,6 +3658,81 @@ class Client$1 {
|
|
|
3567
3658
|
});
|
|
3568
3659
|
}),
|
|
3569
3660
|
},
|
|
3661
|
+
/**
|
|
3662
|
+
* authorize
|
|
3663
|
+
*/
|
|
3664
|
+
authorize: {
|
|
3665
|
+
/**
|
|
3666
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=authorize&apiName=get&version=v1 click to debug }
|
|
3667
|
+
*
|
|
3668
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=authen&resource=authorize&version=v1 document }
|
|
3669
|
+
*/
|
|
3670
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3671
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3672
|
+
return this.httpInstance
|
|
3673
|
+
.request({
|
|
3674
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/authorize`, path),
|
|
3675
|
+
method: "GET",
|
|
3676
|
+
data,
|
|
3677
|
+
params,
|
|
3678
|
+
headers,
|
|
3679
|
+
})
|
|
3680
|
+
.catch((e) => {
|
|
3681
|
+
this.logger.error(formatErrors(e));
|
|
3682
|
+
throw e;
|
|
3683
|
+
});
|
|
3684
|
+
}),
|
|
3685
|
+
},
|
|
3686
|
+
/**
|
|
3687
|
+
* oidc.access_token
|
|
3688
|
+
*/
|
|
3689
|
+
oidcAccessToken: {
|
|
3690
|
+
/**
|
|
3691
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=oidc.access_token&apiName=create&version=v1 click to debug }
|
|
3692
|
+
*
|
|
3693
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=authen&resource=oidc.access_token&version=v1 document }
|
|
3694
|
+
*/
|
|
3695
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3696
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3697
|
+
return this.httpInstance
|
|
3698
|
+
.request({
|
|
3699
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/oidc/access_token`, path),
|
|
3700
|
+
method: "POST",
|
|
3701
|
+
data,
|
|
3702
|
+
params,
|
|
3703
|
+
headers,
|
|
3704
|
+
})
|
|
3705
|
+
.catch((e) => {
|
|
3706
|
+
this.logger.error(formatErrors(e));
|
|
3707
|
+
throw e;
|
|
3708
|
+
});
|
|
3709
|
+
}),
|
|
3710
|
+
},
|
|
3711
|
+
/**
|
|
3712
|
+
* oidc.refresh_access_token
|
|
3713
|
+
*/
|
|
3714
|
+
oidcRefreshAccessToken: {
|
|
3715
|
+
/**
|
|
3716
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=oidc.refresh_access_token&apiName=create&version=v1 click to debug }
|
|
3717
|
+
*
|
|
3718
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=authen&resource=oidc.refresh_access_token&version=v1 document }
|
|
3719
|
+
*/
|
|
3720
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3721
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3722
|
+
return this.httpInstance
|
|
3723
|
+
.request({
|
|
3724
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`, path),
|
|
3725
|
+
method: "POST",
|
|
3726
|
+
data,
|
|
3727
|
+
params,
|
|
3728
|
+
headers,
|
|
3729
|
+
})
|
|
3730
|
+
.catch((e) => {
|
|
3731
|
+
this.logger.error(formatErrors(e));
|
|
3732
|
+
throw e;
|
|
3733
|
+
});
|
|
3734
|
+
}),
|
|
3735
|
+
},
|
|
3570
3736
|
/**
|
|
3571
3737
|
* refresh_access_token
|
|
3572
3738
|
*/
|
|
@@ -8442,6 +8608,99 @@ class Client$1 {
|
|
|
8442
8608
|
});
|
|
8443
8609
|
}),
|
|
8444
8610
|
},
|
|
8611
|
+
/**
|
|
8612
|
+
* job_title
|
|
8613
|
+
*/
|
|
8614
|
+
jobTitle: {
|
|
8615
|
+
/**
|
|
8616
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
|
|
8617
|
+
*
|
|
8618
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
|
|
8619
|
+
*/
|
|
8620
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8621
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8622
|
+
return this.httpInstance
|
|
8623
|
+
.request({
|
|
8624
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
|
|
8625
|
+
method: "GET",
|
|
8626
|
+
data,
|
|
8627
|
+
params,
|
|
8628
|
+
headers,
|
|
8629
|
+
})
|
|
8630
|
+
.catch((e) => {
|
|
8631
|
+
this.logger.error(formatErrors(e));
|
|
8632
|
+
throw e;
|
|
8633
|
+
});
|
|
8634
|
+
}),
|
|
8635
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8636
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8637
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
8638
|
+
const res = yield this.httpInstance
|
|
8639
|
+
.request({
|
|
8640
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8641
|
+
method: "GET",
|
|
8642
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
8643
|
+
params: pickBy(innerPayload.params, identity),
|
|
8644
|
+
})
|
|
8645
|
+
.catch((e) => {
|
|
8646
|
+
this.logger.error(formatErrors(e));
|
|
8647
|
+
});
|
|
8648
|
+
return res;
|
|
8649
|
+
});
|
|
8650
|
+
const Iterable = {
|
|
8651
|
+
[Symbol.asyncIterator]() {
|
|
8652
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
8653
|
+
let hasMore = true;
|
|
8654
|
+
let pageToken;
|
|
8655
|
+
while (hasMore) {
|
|
8656
|
+
try {
|
|
8657
|
+
const res = yield __await(sendRequest({
|
|
8658
|
+
headers,
|
|
8659
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
8660
|
+
data,
|
|
8661
|
+
}));
|
|
8662
|
+
const _b = get(res, "data") || {}, {
|
|
8663
|
+
// @ts-ignore
|
|
8664
|
+
has_more,
|
|
8665
|
+
// @ts-ignore
|
|
8666
|
+
page_token,
|
|
8667
|
+
// @ts-ignore
|
|
8668
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
8669
|
+
yield yield __await(rest);
|
|
8670
|
+
hasMore = Boolean(has_more);
|
|
8671
|
+
pageToken = page_token || next_page_token;
|
|
8672
|
+
}
|
|
8673
|
+
catch (e) {
|
|
8674
|
+
yield yield __await(null);
|
|
8675
|
+
break;
|
|
8676
|
+
}
|
|
8677
|
+
}
|
|
8678
|
+
});
|
|
8679
|
+
},
|
|
8680
|
+
};
|
|
8681
|
+
return Iterable;
|
|
8682
|
+
}),
|
|
8683
|
+
/**
|
|
8684
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
|
|
8685
|
+
*
|
|
8686
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
|
|
8687
|
+
*/
|
|
8688
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8689
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8690
|
+
return this.httpInstance
|
|
8691
|
+
.request({
|
|
8692
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8693
|
+
method: "GET",
|
|
8694
|
+
data,
|
|
8695
|
+
params,
|
|
8696
|
+
headers,
|
|
8697
|
+
})
|
|
8698
|
+
.catch((e) => {
|
|
8699
|
+
this.logger.error(formatErrors(e));
|
|
8700
|
+
throw e;
|
|
8701
|
+
});
|
|
8702
|
+
}),
|
|
8703
|
+
},
|
|
8445
8704
|
/**
|
|
8446
8705
|
* 通讯录权限范围
|
|
8447
8706
|
*/
|
|
@@ -9060,39 +9319,17 @@ class Client$1 {
|
|
|
9060
9319
|
throw e;
|
|
9061
9320
|
});
|
|
9062
9321
|
}),
|
|
9063
|
-
},
|
|
9064
|
-
};
|
|
9065
|
-
/**
|
|
9066
|
-
|
|
9067
|
-
*/
|
|
9068
|
-
this.content_check = {};
|
|
9069
|
-
/**
|
|
9070
|
-
|
|
9071
|
-
*/
|
|
9072
|
-
this.contract = {};
|
|
9073
|
-
/**
|
|
9074
|
-
* CoreHR
|
|
9075
|
-
*/
|
|
9076
|
-
this.corehr = {
|
|
9077
|
-
/**
|
|
9078
|
-
* assigned_user
|
|
9079
|
-
*/
|
|
9080
|
-
assignedUser: {
|
|
9081
9322
|
/**
|
|
9082
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
9083
|
-
*
|
|
9084
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search document }
|
|
9085
|
-
*
|
|
9086
|
-
* 获取组织类角色授权列表
|
|
9323
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
|
|
9087
9324
|
*
|
|
9088
|
-
*
|
|
9325
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
|
|
9089
9326
|
*/
|
|
9090
|
-
|
|
9327
|
+
updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9091
9328
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9092
9329
|
return this.httpInstance
|
|
9093
9330
|
.request({
|
|
9094
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
9095
|
-
method: "
|
|
9331
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
|
|
9332
|
+
method: "PATCH",
|
|
9096
9333
|
data,
|
|
9097
9334
|
params,
|
|
9098
9335
|
headers,
|
|
@@ -9104,23 +9341,158 @@ class Client$1 {
|
|
|
9104
9341
|
}),
|
|
9105
9342
|
},
|
|
9106
9343
|
/**
|
|
9107
|
-
*
|
|
9344
|
+
* work_city
|
|
9108
9345
|
*/
|
|
9109
|
-
|
|
9346
|
+
workCity: {
|
|
9110
9347
|
/**
|
|
9111
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
9348
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
|
|
9112
9349
|
*
|
|
9113
|
-
* {@link https://open.feishu.cn/
|
|
9114
|
-
*
|
|
9115
|
-
* 创建公司
|
|
9116
|
-
*
|
|
9117
|
-
* 创建公司
|
|
9350
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
|
|
9118
9351
|
*/
|
|
9119
|
-
|
|
9352
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9120
9353
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9121
9354
|
return this.httpInstance
|
|
9122
9355
|
.request({
|
|
9123
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
9356
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
|
|
9357
|
+
method: "GET",
|
|
9358
|
+
data,
|
|
9359
|
+
params,
|
|
9360
|
+
headers,
|
|
9361
|
+
})
|
|
9362
|
+
.catch((e) => {
|
|
9363
|
+
this.logger.error(formatErrors(e));
|
|
9364
|
+
throw e;
|
|
9365
|
+
});
|
|
9366
|
+
}),
|
|
9367
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9368
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9369
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
9370
|
+
const res = yield this.httpInstance
|
|
9371
|
+
.request({
|
|
9372
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9373
|
+
method: "GET",
|
|
9374
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
9375
|
+
params: pickBy(innerPayload.params, identity),
|
|
9376
|
+
})
|
|
9377
|
+
.catch((e) => {
|
|
9378
|
+
this.logger.error(formatErrors(e));
|
|
9379
|
+
});
|
|
9380
|
+
return res;
|
|
9381
|
+
});
|
|
9382
|
+
const Iterable = {
|
|
9383
|
+
[Symbol.asyncIterator]() {
|
|
9384
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
9385
|
+
let hasMore = true;
|
|
9386
|
+
let pageToken;
|
|
9387
|
+
while (hasMore) {
|
|
9388
|
+
try {
|
|
9389
|
+
const res = yield __await(sendRequest({
|
|
9390
|
+
headers,
|
|
9391
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
9392
|
+
data,
|
|
9393
|
+
}));
|
|
9394
|
+
const _b = get(res, "data") || {}, {
|
|
9395
|
+
// @ts-ignore
|
|
9396
|
+
has_more,
|
|
9397
|
+
// @ts-ignore
|
|
9398
|
+
page_token,
|
|
9399
|
+
// @ts-ignore
|
|
9400
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
9401
|
+
yield yield __await(rest);
|
|
9402
|
+
hasMore = Boolean(has_more);
|
|
9403
|
+
pageToken = page_token || next_page_token;
|
|
9404
|
+
}
|
|
9405
|
+
catch (e) {
|
|
9406
|
+
yield yield __await(null);
|
|
9407
|
+
break;
|
|
9408
|
+
}
|
|
9409
|
+
}
|
|
9410
|
+
});
|
|
9411
|
+
},
|
|
9412
|
+
};
|
|
9413
|
+
return Iterable;
|
|
9414
|
+
}),
|
|
9415
|
+
/**
|
|
9416
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
|
|
9417
|
+
*
|
|
9418
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
|
|
9419
|
+
*/
|
|
9420
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9421
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9422
|
+
return this.httpInstance
|
|
9423
|
+
.request({
|
|
9424
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9425
|
+
method: "GET",
|
|
9426
|
+
data,
|
|
9427
|
+
params,
|
|
9428
|
+
headers,
|
|
9429
|
+
})
|
|
9430
|
+
.catch((e) => {
|
|
9431
|
+
this.logger.error(formatErrors(e));
|
|
9432
|
+
throw e;
|
|
9433
|
+
});
|
|
9434
|
+
}),
|
|
9435
|
+
},
|
|
9436
|
+
};
|
|
9437
|
+
/**
|
|
9438
|
+
|
|
9439
|
+
*/
|
|
9440
|
+
this.content_check = {};
|
|
9441
|
+
/**
|
|
9442
|
+
|
|
9443
|
+
*/
|
|
9444
|
+
this.contract = {};
|
|
9445
|
+
/**
|
|
9446
|
+
* CoreHR
|
|
9447
|
+
*/
|
|
9448
|
+
this.corehr = {
|
|
9449
|
+
/**
|
|
9450
|
+
* assigned_user
|
|
9451
|
+
*/
|
|
9452
|
+
assignedUser: {
|
|
9453
|
+
/**
|
|
9454
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=assigned_user&apiName=search&version=v1 click to debug }
|
|
9455
|
+
*
|
|
9456
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search document }
|
|
9457
|
+
*
|
|
9458
|
+
* 获取组织类角色授权列表
|
|
9459
|
+
*
|
|
9460
|
+
* 查询组织类角色的授权信息
|
|
9461
|
+
*/
|
|
9462
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9463
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9464
|
+
return this.httpInstance
|
|
9465
|
+
.request({
|
|
9466
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/assigned_users/search`, path),
|
|
9467
|
+
method: "POST",
|
|
9468
|
+
data,
|
|
9469
|
+
params,
|
|
9470
|
+
headers,
|
|
9471
|
+
})
|
|
9472
|
+
.catch((e) => {
|
|
9473
|
+
this.logger.error(formatErrors(e));
|
|
9474
|
+
throw e;
|
|
9475
|
+
});
|
|
9476
|
+
}),
|
|
9477
|
+
},
|
|
9478
|
+
/**
|
|
9479
|
+
* 公司
|
|
9480
|
+
*/
|
|
9481
|
+
company: {
|
|
9482
|
+
/**
|
|
9483
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=create&version=v1 click to debug }
|
|
9484
|
+
*
|
|
9485
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create document }
|
|
9486
|
+
*
|
|
9487
|
+
* 创建公司
|
|
9488
|
+
*
|
|
9489
|
+
* 创建公司
|
|
9490
|
+
*/
|
|
9491
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9492
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9493
|
+
return this.httpInstance
|
|
9494
|
+
.request({
|
|
9495
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies`, path),
|
|
9124
9496
|
method: "POST",
|
|
9125
9497
|
data,
|
|
9126
9498
|
params,
|
|
@@ -12135,6 +12507,78 @@ class Client$1 {
|
|
|
12135
12507
|
throw e;
|
|
12136
12508
|
});
|
|
12137
12509
|
}),
|
|
12510
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12511
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12512
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12513
|
+
const res = yield this.httpInstance
|
|
12514
|
+
.request({
|
|
12515
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`, path),
|
|
12516
|
+
method: "GET",
|
|
12517
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
12518
|
+
params: pickBy(innerPayload.params, identity),
|
|
12519
|
+
})
|
|
12520
|
+
.catch((e) => {
|
|
12521
|
+
this.logger.error(formatErrors(e));
|
|
12522
|
+
});
|
|
12523
|
+
return res;
|
|
12524
|
+
});
|
|
12525
|
+
const Iterable = {
|
|
12526
|
+
[Symbol.asyncIterator]() {
|
|
12527
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12528
|
+
let hasMore = true;
|
|
12529
|
+
let pageToken;
|
|
12530
|
+
while (hasMore) {
|
|
12531
|
+
try {
|
|
12532
|
+
const res = yield __await(sendRequest({
|
|
12533
|
+
headers,
|
|
12534
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12535
|
+
data,
|
|
12536
|
+
}));
|
|
12537
|
+
const _b = get(res, "data") || {}, {
|
|
12538
|
+
// @ts-ignore
|
|
12539
|
+
has_more,
|
|
12540
|
+
// @ts-ignore
|
|
12541
|
+
page_token,
|
|
12542
|
+
// @ts-ignore
|
|
12543
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12544
|
+
yield yield __await(rest);
|
|
12545
|
+
hasMore = Boolean(has_more);
|
|
12546
|
+
pageToken = page_token || next_page_token;
|
|
12547
|
+
}
|
|
12548
|
+
catch (e) {
|
|
12549
|
+
yield yield __await(null);
|
|
12550
|
+
break;
|
|
12551
|
+
}
|
|
12552
|
+
}
|
|
12553
|
+
});
|
|
12554
|
+
},
|
|
12555
|
+
};
|
|
12556
|
+
return Iterable;
|
|
12557
|
+
}),
|
|
12558
|
+
/**
|
|
12559
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.comment.reply&apiName=list&version=v1 click to debug }
|
|
12560
|
+
*
|
|
12561
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment-reply/list document }
|
|
12562
|
+
*
|
|
12563
|
+
* 获取回复
|
|
12564
|
+
*
|
|
12565
|
+
* 该接口用于根据评论 ID 以及分页参数,获取回复。
|
|
12566
|
+
*/
|
|
12567
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12568
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12569
|
+
return this.httpInstance
|
|
12570
|
+
.request({
|
|
12571
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`, path),
|
|
12572
|
+
method: "GET",
|
|
12573
|
+
data,
|
|
12574
|
+
params,
|
|
12575
|
+
headers,
|
|
12576
|
+
})
|
|
12577
|
+
.catch((e) => {
|
|
12578
|
+
this.logger.error(formatErrors(e));
|
|
12579
|
+
throw e;
|
|
12580
|
+
});
|
|
12581
|
+
}),
|
|
12138
12582
|
/**
|
|
12139
12583
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.comment.reply&apiName=update&version=v1 click to debug }
|
|
12140
12584
|
*
|
|
@@ -12264,6 +12708,30 @@ class Client$1 {
|
|
|
12264
12708
|
throw e;
|
|
12265
12709
|
});
|
|
12266
12710
|
}),
|
|
12711
|
+
/**
|
|
12712
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
|
|
12713
|
+
*
|
|
12714
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
|
|
12715
|
+
*
|
|
12716
|
+
* 取消云文档事件订阅情况
|
|
12717
|
+
*
|
|
12718
|
+
* 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12719
|
+
*/
|
|
12720
|
+
deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12721
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12722
|
+
return this.httpInstance
|
|
12723
|
+
.request({
|
|
12724
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
|
|
12725
|
+
method: "DELETE",
|
|
12726
|
+
data,
|
|
12727
|
+
params,
|
|
12728
|
+
headers,
|
|
12729
|
+
})
|
|
12730
|
+
.catch((e) => {
|
|
12731
|
+
this.logger.error(formatErrors(e));
|
|
12732
|
+
throw e;
|
|
12733
|
+
});
|
|
12734
|
+
}),
|
|
12267
12735
|
/**
|
|
12268
12736
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
|
|
12269
12737
|
*
|
|
@@ -12305,6 +12773,30 @@ class Client$1 {
|
|
|
12305
12773
|
}),
|
|
12306
12774
|
};
|
|
12307
12775
|
}),
|
|
12776
|
+
/**
|
|
12777
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
|
|
12778
|
+
*
|
|
12779
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
|
|
12780
|
+
*
|
|
12781
|
+
* 查询云文档事件订阅状态
|
|
12782
|
+
*
|
|
12783
|
+
* 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12784
|
+
*/
|
|
12785
|
+
getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12786
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12787
|
+
return this.httpInstance
|
|
12788
|
+
.request({
|
|
12789
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
|
|
12790
|
+
method: "GET",
|
|
12791
|
+
data,
|
|
12792
|
+
params,
|
|
12793
|
+
headers,
|
|
12794
|
+
})
|
|
12795
|
+
.catch((e) => {
|
|
12796
|
+
this.logger.error(formatErrors(e));
|
|
12797
|
+
throw e;
|
|
12798
|
+
});
|
|
12799
|
+
}),
|
|
12308
12800
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12309
12801
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12310
12802
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16574,6 +17066,79 @@ class Client$1 {
|
|
|
16574
17066
|
});
|
|
16575
17067
|
}),
|
|
16576
17068
|
},
|
|
17069
|
+
/**
|
|
17070
|
+
* registration_schema
|
|
17071
|
+
*/
|
|
17072
|
+
registrationSchema: {
|
|
17073
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17074
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17075
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
17076
|
+
const res = yield this.httpInstance
|
|
17077
|
+
.request({
|
|
17078
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
17079
|
+
method: "GET",
|
|
17080
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
17081
|
+
params: pickBy(innerPayload.params, identity),
|
|
17082
|
+
})
|
|
17083
|
+
.catch((e) => {
|
|
17084
|
+
this.logger.error(formatErrors(e));
|
|
17085
|
+
});
|
|
17086
|
+
return res;
|
|
17087
|
+
});
|
|
17088
|
+
const Iterable = {
|
|
17089
|
+
[Symbol.asyncIterator]() {
|
|
17090
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
17091
|
+
let hasMore = true;
|
|
17092
|
+
let pageToken;
|
|
17093
|
+
while (hasMore) {
|
|
17094
|
+
try {
|
|
17095
|
+
const res = yield __await(sendRequest({
|
|
17096
|
+
headers,
|
|
17097
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
17098
|
+
data,
|
|
17099
|
+
}));
|
|
17100
|
+
const _b = get(res, "data") || {}, {
|
|
17101
|
+
// @ts-ignore
|
|
17102
|
+
has_more,
|
|
17103
|
+
// @ts-ignore
|
|
17104
|
+
page_token,
|
|
17105
|
+
// @ts-ignore
|
|
17106
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
17107
|
+
yield yield __await(rest);
|
|
17108
|
+
hasMore = Boolean(has_more);
|
|
17109
|
+
pageToken = page_token || next_page_token;
|
|
17110
|
+
}
|
|
17111
|
+
catch (e) {
|
|
17112
|
+
yield yield __await(null);
|
|
17113
|
+
break;
|
|
17114
|
+
}
|
|
17115
|
+
}
|
|
17116
|
+
});
|
|
17117
|
+
},
|
|
17118
|
+
};
|
|
17119
|
+
return Iterable;
|
|
17120
|
+
}),
|
|
17121
|
+
/**
|
|
17122
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
|
|
17123
|
+
*
|
|
17124
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
|
|
17125
|
+
*/
|
|
17126
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17127
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17128
|
+
return this.httpInstance
|
|
17129
|
+
.request({
|
|
17130
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
17131
|
+
method: "GET",
|
|
17132
|
+
data,
|
|
17133
|
+
params,
|
|
17134
|
+
headers,
|
|
17135
|
+
})
|
|
17136
|
+
.catch((e) => {
|
|
17137
|
+
this.logger.error(formatErrors(e));
|
|
17138
|
+
throw e;
|
|
17139
|
+
});
|
|
17140
|
+
}),
|
|
17141
|
+
},
|
|
16577
17142
|
/**
|
|
16578
17143
|
* 简历来源
|
|
16579
17144
|
*/
|
|
@@ -16805,6 +17370,35 @@ class Client$1 {
|
|
|
16805
17370
|
});
|
|
16806
17371
|
}),
|
|
16807
17372
|
},
|
|
17373
|
+
/**
|
|
17374
|
+
* talent_object
|
|
17375
|
+
*/
|
|
17376
|
+
talentObject: {
|
|
17377
|
+
/**
|
|
17378
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
|
|
17379
|
+
*
|
|
17380
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
|
|
17381
|
+
*
|
|
17382
|
+
* 获取人才字段
|
|
17383
|
+
*
|
|
17384
|
+
* 获取人才字段
|
|
17385
|
+
*/
|
|
17386
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17387
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17388
|
+
return this.httpInstance
|
|
17389
|
+
.request({
|
|
17390
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
|
|
17391
|
+
method: "GET",
|
|
17392
|
+
data,
|
|
17393
|
+
params,
|
|
17394
|
+
headers,
|
|
17395
|
+
})
|
|
17396
|
+
.catch((e) => {
|
|
17397
|
+
this.logger.error(formatErrors(e));
|
|
17398
|
+
throw e;
|
|
17399
|
+
});
|
|
17400
|
+
}),
|
|
17401
|
+
},
|
|
16808
17402
|
};
|
|
16809
17403
|
/**
|
|
16810
17404
|
* 实名认证
|
|
@@ -18093,7 +18687,7 @@ class Client$1 {
|
|
|
18093
18687
|
}),
|
|
18094
18688
|
},
|
|
18095
18689
|
/**
|
|
18096
|
-
* 消息
|
|
18690
|
+
* 消息 - 消息卡片
|
|
18097
18691
|
*/
|
|
18098
18692
|
message: {
|
|
18099
18693
|
/**
|
|
@@ -18881,107 +19475,6 @@ class Client$1 {
|
|
|
18881
19475
|
});
|
|
18882
19476
|
}),
|
|
18883
19477
|
},
|
|
18884
|
-
/**
|
|
18885
|
-
* 特别关注(灰度租户可见)
|
|
18886
|
-
*/
|
|
18887
|
-
specialFocus: {
|
|
18888
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18889
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18890
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18891
|
-
const res = yield this.httpInstance
|
|
18892
|
-
.request({
|
|
18893
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
18894
|
-
method: "GET",
|
|
18895
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
18896
|
-
params: pickBy(innerPayload.params, identity),
|
|
18897
|
-
})
|
|
18898
|
-
.catch((e) => {
|
|
18899
|
-
this.logger.error(formatErrors(e));
|
|
18900
|
-
});
|
|
18901
|
-
return res;
|
|
18902
|
-
});
|
|
18903
|
-
const Iterable = {
|
|
18904
|
-
[Symbol.asyncIterator]() {
|
|
18905
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
18906
|
-
let hasMore = true;
|
|
18907
|
-
let pageToken;
|
|
18908
|
-
while (hasMore) {
|
|
18909
|
-
try {
|
|
18910
|
-
const res = yield __await(sendRequest({
|
|
18911
|
-
headers,
|
|
18912
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18913
|
-
data,
|
|
18914
|
-
}));
|
|
18915
|
-
const _b = get(res, "data") || {}, {
|
|
18916
|
-
// @ts-ignore
|
|
18917
|
-
has_more,
|
|
18918
|
-
// @ts-ignore
|
|
18919
|
-
page_token,
|
|
18920
|
-
// @ts-ignore
|
|
18921
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18922
|
-
yield yield __await(rest);
|
|
18923
|
-
hasMore = Boolean(has_more);
|
|
18924
|
-
pageToken = page_token || next_page_token;
|
|
18925
|
-
}
|
|
18926
|
-
catch (e) {
|
|
18927
|
-
yield yield __await(null);
|
|
18928
|
-
break;
|
|
18929
|
-
}
|
|
18930
|
-
}
|
|
18931
|
-
});
|
|
18932
|
-
},
|
|
18933
|
-
};
|
|
18934
|
-
return Iterable;
|
|
18935
|
-
}),
|
|
18936
|
-
/**
|
|
18937
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
|
|
18938
|
-
*
|
|
18939
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
|
|
18940
|
-
*
|
|
18941
|
-
* 获取特别关注列表
|
|
18942
|
-
*
|
|
18943
|
-
* 获取用户的特别关注列表。
|
|
18944
|
-
*/
|
|
18945
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18946
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18947
|
-
return this.httpInstance
|
|
18948
|
-
.request({
|
|
18949
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
18950
|
-
method: "GET",
|
|
18951
|
-
data,
|
|
18952
|
-
params,
|
|
18953
|
-
headers,
|
|
18954
|
-
})
|
|
18955
|
-
.catch((e) => {
|
|
18956
|
-
this.logger.error(formatErrors(e));
|
|
18957
|
-
throw e;
|
|
18958
|
-
});
|
|
18959
|
-
}),
|
|
18960
|
-
/**
|
|
18961
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
|
|
18962
|
-
*
|
|
18963
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
|
|
18964
|
-
*
|
|
18965
|
-
* 获取特别关注未读信息
|
|
18966
|
-
*
|
|
18967
|
-
* 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
|
|
18968
|
-
*/
|
|
18969
|
-
unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18970
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18971
|
-
return this.httpInstance
|
|
18972
|
-
.request({
|
|
18973
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
|
|
18974
|
-
method: "POST",
|
|
18975
|
-
data,
|
|
18976
|
-
params,
|
|
18977
|
-
headers,
|
|
18978
|
-
})
|
|
18979
|
-
.catch((e) => {
|
|
18980
|
-
this.logger.error(formatErrors(e));
|
|
18981
|
-
throw e;
|
|
18982
|
-
});
|
|
18983
|
-
}),
|
|
18984
|
-
},
|
|
18985
19478
|
};
|
|
18986
19479
|
/**
|
|
18987
19480
|
* 邮箱
|
|
@@ -22042,7 +22535,7 @@ class Client$1 {
|
|
|
22042
22535
|
}),
|
|
22043
22536
|
},
|
|
22044
22537
|
/**
|
|
22045
|
-
*
|
|
22538
|
+
* 工作表
|
|
22046
22539
|
*/
|
|
22047
22540
|
spreadsheetSheet: {
|
|
22048
22541
|
/**
|