@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/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
|
*
|
|
@@ -1291,6 +1317,31 @@ class Client$1 {
|
|
|
1291
1317
|
});
|
|
1292
1318
|
}),
|
|
1293
1319
|
},
|
|
1320
|
+
/**
|
|
1321
|
+
* application.contacts_range
|
|
1322
|
+
*/
|
|
1323
|
+
applicationContactsRange: {
|
|
1324
|
+
/**
|
|
1325
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.contacts_range&apiName=patch&version=v6 click to debug }
|
|
1326
|
+
*
|
|
1327
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=application&resource=application.contacts_range&version=v6 document }
|
|
1328
|
+
*/
|
|
1329
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1330
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1331
|
+
return this.httpInstance
|
|
1332
|
+
.request({
|
|
1333
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`, path),
|
|
1334
|
+
method: "PATCH",
|
|
1335
|
+
data,
|
|
1336
|
+
params,
|
|
1337
|
+
headers,
|
|
1338
|
+
})
|
|
1339
|
+
.catch((e) => {
|
|
1340
|
+
this.logger.error(formatErrors(e));
|
|
1341
|
+
throw e;
|
|
1342
|
+
});
|
|
1343
|
+
}),
|
|
1344
|
+
},
|
|
1294
1345
|
/**
|
|
1295
1346
|
* 应用
|
|
1296
1347
|
*/
|
|
@@ -1513,6 +1564,26 @@ class Client$1 {
|
|
|
1513
1564
|
throw e;
|
|
1514
1565
|
});
|
|
1515
1566
|
}),
|
|
1567
|
+
/**
|
|
1568
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.visibility&apiName=patch&version=v6 click to debug }
|
|
1569
|
+
*
|
|
1570
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=application&resource=application.visibility&version=v6 document }
|
|
1571
|
+
*/
|
|
1572
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1573
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1574
|
+
return this.httpInstance
|
|
1575
|
+
.request({
|
|
1576
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`, path),
|
|
1577
|
+
method: "PATCH",
|
|
1578
|
+
data,
|
|
1579
|
+
params,
|
|
1580
|
+
headers,
|
|
1581
|
+
})
|
|
1582
|
+
.catch((e) => {
|
|
1583
|
+
this.logger.error(formatErrors(e));
|
|
1584
|
+
throw e;
|
|
1585
|
+
});
|
|
1586
|
+
}),
|
|
1516
1587
|
},
|
|
1517
1588
|
};
|
|
1518
1589
|
/**
|
|
@@ -1652,6 +1723,26 @@ class Client$1 {
|
|
|
1652
1723
|
throw e;
|
|
1653
1724
|
});
|
|
1654
1725
|
}),
|
|
1726
|
+
/**
|
|
1727
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
|
|
1728
|
+
*
|
|
1729
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
|
|
1730
|
+
*/
|
|
1731
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1732
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1733
|
+
return this.httpInstance
|
|
1734
|
+
.request({
|
|
1735
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
|
|
1736
|
+
method: "GET",
|
|
1737
|
+
data,
|
|
1738
|
+
params,
|
|
1739
|
+
headers,
|
|
1740
|
+
})
|
|
1741
|
+
.catch((e) => {
|
|
1742
|
+
this.logger.error(formatErrors(e));
|
|
1743
|
+
throw e;
|
|
1744
|
+
});
|
|
1745
|
+
}),
|
|
1655
1746
|
},
|
|
1656
1747
|
/**
|
|
1657
1748
|
* 三方审批实例
|
|
@@ -2266,7 +2357,7 @@ class Client$1 {
|
|
|
2266
2357
|
}),
|
|
2267
2358
|
},
|
|
2268
2359
|
/**
|
|
2269
|
-
*
|
|
2360
|
+
* 原生审批任务
|
|
2270
2361
|
*/
|
|
2271
2362
|
task: {
|
|
2272
2363
|
/**
|
|
@@ -3582,6 +3673,81 @@ class Client$1 {
|
|
|
3582
3673
|
});
|
|
3583
3674
|
}),
|
|
3584
3675
|
},
|
|
3676
|
+
/**
|
|
3677
|
+
* authorize
|
|
3678
|
+
*/
|
|
3679
|
+
authorize: {
|
|
3680
|
+
/**
|
|
3681
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=authorize&apiName=get&version=v1 click to debug }
|
|
3682
|
+
*
|
|
3683
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=authen&resource=authorize&version=v1 document }
|
|
3684
|
+
*/
|
|
3685
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3686
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3687
|
+
return this.httpInstance
|
|
3688
|
+
.request({
|
|
3689
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/authorize`, path),
|
|
3690
|
+
method: "GET",
|
|
3691
|
+
data,
|
|
3692
|
+
params,
|
|
3693
|
+
headers,
|
|
3694
|
+
})
|
|
3695
|
+
.catch((e) => {
|
|
3696
|
+
this.logger.error(formatErrors(e));
|
|
3697
|
+
throw e;
|
|
3698
|
+
});
|
|
3699
|
+
}),
|
|
3700
|
+
},
|
|
3701
|
+
/**
|
|
3702
|
+
* oidc.access_token
|
|
3703
|
+
*/
|
|
3704
|
+
oidcAccessToken: {
|
|
3705
|
+
/**
|
|
3706
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=oidc.access_token&apiName=create&version=v1 click to debug }
|
|
3707
|
+
*
|
|
3708
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=authen&resource=oidc.access_token&version=v1 document }
|
|
3709
|
+
*/
|
|
3710
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3711
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3712
|
+
return this.httpInstance
|
|
3713
|
+
.request({
|
|
3714
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/oidc/access_token`, path),
|
|
3715
|
+
method: "POST",
|
|
3716
|
+
data,
|
|
3717
|
+
params,
|
|
3718
|
+
headers,
|
|
3719
|
+
})
|
|
3720
|
+
.catch((e) => {
|
|
3721
|
+
this.logger.error(formatErrors(e));
|
|
3722
|
+
throw e;
|
|
3723
|
+
});
|
|
3724
|
+
}),
|
|
3725
|
+
},
|
|
3726
|
+
/**
|
|
3727
|
+
* oidc.refresh_access_token
|
|
3728
|
+
*/
|
|
3729
|
+
oidcRefreshAccessToken: {
|
|
3730
|
+
/**
|
|
3731
|
+
* {@link https://open.feishu.cn/api-explorer?project=authen&resource=oidc.refresh_access_token&apiName=create&version=v1 click to debug }
|
|
3732
|
+
*
|
|
3733
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=authen&resource=oidc.refresh_access_token&version=v1 document }
|
|
3734
|
+
*/
|
|
3735
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3736
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3737
|
+
return this.httpInstance
|
|
3738
|
+
.request({
|
|
3739
|
+
url: fillApiPath(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`, path),
|
|
3740
|
+
method: "POST",
|
|
3741
|
+
data,
|
|
3742
|
+
params,
|
|
3743
|
+
headers,
|
|
3744
|
+
})
|
|
3745
|
+
.catch((e) => {
|
|
3746
|
+
this.logger.error(formatErrors(e));
|
|
3747
|
+
throw e;
|
|
3748
|
+
});
|
|
3749
|
+
}),
|
|
3750
|
+
},
|
|
3585
3751
|
/**
|
|
3586
3752
|
* refresh_access_token
|
|
3587
3753
|
*/
|
|
@@ -8457,6 +8623,99 @@ class Client$1 {
|
|
|
8457
8623
|
});
|
|
8458
8624
|
}),
|
|
8459
8625
|
},
|
|
8626
|
+
/**
|
|
8627
|
+
* job_title
|
|
8628
|
+
*/
|
|
8629
|
+
jobTitle: {
|
|
8630
|
+
/**
|
|
8631
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
|
|
8632
|
+
*
|
|
8633
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
|
|
8634
|
+
*/
|
|
8635
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8636
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8637
|
+
return this.httpInstance
|
|
8638
|
+
.request({
|
|
8639
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
|
|
8640
|
+
method: "GET",
|
|
8641
|
+
data,
|
|
8642
|
+
params,
|
|
8643
|
+
headers,
|
|
8644
|
+
})
|
|
8645
|
+
.catch((e) => {
|
|
8646
|
+
this.logger.error(formatErrors(e));
|
|
8647
|
+
throw e;
|
|
8648
|
+
});
|
|
8649
|
+
}),
|
|
8650
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8651
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8652
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
8653
|
+
const res = yield this.httpInstance
|
|
8654
|
+
.request({
|
|
8655
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8656
|
+
method: "GET",
|
|
8657
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
8658
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
8659
|
+
})
|
|
8660
|
+
.catch((e) => {
|
|
8661
|
+
this.logger.error(formatErrors(e));
|
|
8662
|
+
});
|
|
8663
|
+
return res;
|
|
8664
|
+
});
|
|
8665
|
+
const Iterable = {
|
|
8666
|
+
[Symbol.asyncIterator]() {
|
|
8667
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
8668
|
+
let hasMore = true;
|
|
8669
|
+
let pageToken;
|
|
8670
|
+
while (hasMore) {
|
|
8671
|
+
try {
|
|
8672
|
+
const res = yield __await(sendRequest({
|
|
8673
|
+
headers,
|
|
8674
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
8675
|
+
data,
|
|
8676
|
+
}));
|
|
8677
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
8678
|
+
// @ts-ignore
|
|
8679
|
+
has_more,
|
|
8680
|
+
// @ts-ignore
|
|
8681
|
+
page_token,
|
|
8682
|
+
// @ts-ignore
|
|
8683
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
8684
|
+
yield yield __await(rest);
|
|
8685
|
+
hasMore = Boolean(has_more);
|
|
8686
|
+
pageToken = page_token || next_page_token;
|
|
8687
|
+
}
|
|
8688
|
+
catch (e) {
|
|
8689
|
+
yield yield __await(null);
|
|
8690
|
+
break;
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8693
|
+
});
|
|
8694
|
+
},
|
|
8695
|
+
};
|
|
8696
|
+
return Iterable;
|
|
8697
|
+
}),
|
|
8698
|
+
/**
|
|
8699
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
|
|
8700
|
+
*
|
|
8701
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
|
|
8702
|
+
*/
|
|
8703
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8704
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8705
|
+
return this.httpInstance
|
|
8706
|
+
.request({
|
|
8707
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8708
|
+
method: "GET",
|
|
8709
|
+
data,
|
|
8710
|
+
params,
|
|
8711
|
+
headers,
|
|
8712
|
+
})
|
|
8713
|
+
.catch((e) => {
|
|
8714
|
+
this.logger.error(formatErrors(e));
|
|
8715
|
+
throw e;
|
|
8716
|
+
});
|
|
8717
|
+
}),
|
|
8718
|
+
},
|
|
8460
8719
|
/**
|
|
8461
8720
|
* 通讯录权限范围
|
|
8462
8721
|
*/
|
|
@@ -9075,39 +9334,17 @@ class Client$1 {
|
|
|
9075
9334
|
throw e;
|
|
9076
9335
|
});
|
|
9077
9336
|
}),
|
|
9078
|
-
},
|
|
9079
|
-
};
|
|
9080
|
-
/**
|
|
9081
|
-
|
|
9082
|
-
*/
|
|
9083
|
-
this.content_check = {};
|
|
9084
|
-
/**
|
|
9085
|
-
|
|
9086
|
-
*/
|
|
9087
|
-
this.contract = {};
|
|
9088
|
-
/**
|
|
9089
|
-
* CoreHR
|
|
9090
|
-
*/
|
|
9091
|
-
this.corehr = {
|
|
9092
|
-
/**
|
|
9093
|
-
* assigned_user
|
|
9094
|
-
*/
|
|
9095
|
-
assignedUser: {
|
|
9096
9337
|
/**
|
|
9097
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
9098
|
-
*
|
|
9099
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search document }
|
|
9100
|
-
*
|
|
9101
|
-
* 获取组织类角色授权列表
|
|
9338
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
|
|
9102
9339
|
*
|
|
9103
|
-
*
|
|
9340
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
|
|
9104
9341
|
*/
|
|
9105
|
-
|
|
9342
|
+
updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9106
9343
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9107
9344
|
return this.httpInstance
|
|
9108
9345
|
.request({
|
|
9109
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
9110
|
-
method: "
|
|
9346
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
|
|
9347
|
+
method: "PATCH",
|
|
9111
9348
|
data,
|
|
9112
9349
|
params,
|
|
9113
9350
|
headers,
|
|
@@ -9119,23 +9356,158 @@ class Client$1 {
|
|
|
9119
9356
|
}),
|
|
9120
9357
|
},
|
|
9121
9358
|
/**
|
|
9122
|
-
*
|
|
9359
|
+
* work_city
|
|
9123
9360
|
*/
|
|
9124
|
-
|
|
9361
|
+
workCity: {
|
|
9125
9362
|
/**
|
|
9126
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
9363
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
|
|
9127
9364
|
*
|
|
9128
|
-
* {@link https://open.feishu.cn/
|
|
9129
|
-
*
|
|
9130
|
-
* 创建公司
|
|
9131
|
-
*
|
|
9132
|
-
* 创建公司
|
|
9365
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
|
|
9133
9366
|
*/
|
|
9134
|
-
|
|
9367
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9135
9368
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9136
9369
|
return this.httpInstance
|
|
9137
9370
|
.request({
|
|
9138
|
-
url: fillApiPath(`${this.domain}/open-apis/
|
|
9371
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
|
|
9372
|
+
method: "GET",
|
|
9373
|
+
data,
|
|
9374
|
+
params,
|
|
9375
|
+
headers,
|
|
9376
|
+
})
|
|
9377
|
+
.catch((e) => {
|
|
9378
|
+
this.logger.error(formatErrors(e));
|
|
9379
|
+
throw e;
|
|
9380
|
+
});
|
|
9381
|
+
}),
|
|
9382
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9383
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9384
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
9385
|
+
const res = yield this.httpInstance
|
|
9386
|
+
.request({
|
|
9387
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9388
|
+
method: "GET",
|
|
9389
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
9390
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
9391
|
+
})
|
|
9392
|
+
.catch((e) => {
|
|
9393
|
+
this.logger.error(formatErrors(e));
|
|
9394
|
+
});
|
|
9395
|
+
return res;
|
|
9396
|
+
});
|
|
9397
|
+
const Iterable = {
|
|
9398
|
+
[Symbol.asyncIterator]() {
|
|
9399
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
9400
|
+
let hasMore = true;
|
|
9401
|
+
let pageToken;
|
|
9402
|
+
while (hasMore) {
|
|
9403
|
+
try {
|
|
9404
|
+
const res = yield __await(sendRequest({
|
|
9405
|
+
headers,
|
|
9406
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
9407
|
+
data,
|
|
9408
|
+
}));
|
|
9409
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
9410
|
+
// @ts-ignore
|
|
9411
|
+
has_more,
|
|
9412
|
+
// @ts-ignore
|
|
9413
|
+
page_token,
|
|
9414
|
+
// @ts-ignore
|
|
9415
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
9416
|
+
yield yield __await(rest);
|
|
9417
|
+
hasMore = Boolean(has_more);
|
|
9418
|
+
pageToken = page_token || next_page_token;
|
|
9419
|
+
}
|
|
9420
|
+
catch (e) {
|
|
9421
|
+
yield yield __await(null);
|
|
9422
|
+
break;
|
|
9423
|
+
}
|
|
9424
|
+
}
|
|
9425
|
+
});
|
|
9426
|
+
},
|
|
9427
|
+
};
|
|
9428
|
+
return Iterable;
|
|
9429
|
+
}),
|
|
9430
|
+
/**
|
|
9431
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
|
|
9432
|
+
*
|
|
9433
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
|
|
9434
|
+
*/
|
|
9435
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9436
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9437
|
+
return this.httpInstance
|
|
9438
|
+
.request({
|
|
9439
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9440
|
+
method: "GET",
|
|
9441
|
+
data,
|
|
9442
|
+
params,
|
|
9443
|
+
headers,
|
|
9444
|
+
})
|
|
9445
|
+
.catch((e) => {
|
|
9446
|
+
this.logger.error(formatErrors(e));
|
|
9447
|
+
throw e;
|
|
9448
|
+
});
|
|
9449
|
+
}),
|
|
9450
|
+
},
|
|
9451
|
+
};
|
|
9452
|
+
/**
|
|
9453
|
+
|
|
9454
|
+
*/
|
|
9455
|
+
this.content_check = {};
|
|
9456
|
+
/**
|
|
9457
|
+
|
|
9458
|
+
*/
|
|
9459
|
+
this.contract = {};
|
|
9460
|
+
/**
|
|
9461
|
+
* CoreHR
|
|
9462
|
+
*/
|
|
9463
|
+
this.corehr = {
|
|
9464
|
+
/**
|
|
9465
|
+
* assigned_user
|
|
9466
|
+
*/
|
|
9467
|
+
assignedUser: {
|
|
9468
|
+
/**
|
|
9469
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=assigned_user&apiName=search&version=v1 click to debug }
|
|
9470
|
+
*
|
|
9471
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search document }
|
|
9472
|
+
*
|
|
9473
|
+
* 获取组织类角色授权列表
|
|
9474
|
+
*
|
|
9475
|
+
* 查询组织类角色的授权信息
|
|
9476
|
+
*/
|
|
9477
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9478
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9479
|
+
return this.httpInstance
|
|
9480
|
+
.request({
|
|
9481
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/assigned_users/search`, path),
|
|
9482
|
+
method: "POST",
|
|
9483
|
+
data,
|
|
9484
|
+
params,
|
|
9485
|
+
headers,
|
|
9486
|
+
})
|
|
9487
|
+
.catch((e) => {
|
|
9488
|
+
this.logger.error(formatErrors(e));
|
|
9489
|
+
throw e;
|
|
9490
|
+
});
|
|
9491
|
+
}),
|
|
9492
|
+
},
|
|
9493
|
+
/**
|
|
9494
|
+
* 公司
|
|
9495
|
+
*/
|
|
9496
|
+
company: {
|
|
9497
|
+
/**
|
|
9498
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=create&version=v1 click to debug }
|
|
9499
|
+
*
|
|
9500
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create document }
|
|
9501
|
+
*
|
|
9502
|
+
* 创建公司
|
|
9503
|
+
*
|
|
9504
|
+
* 创建公司
|
|
9505
|
+
*/
|
|
9506
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9507
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9508
|
+
return this.httpInstance
|
|
9509
|
+
.request({
|
|
9510
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies`, path),
|
|
9139
9511
|
method: "POST",
|
|
9140
9512
|
data,
|
|
9141
9513
|
params,
|
|
@@ -12150,6 +12522,78 @@ class Client$1 {
|
|
|
12150
12522
|
throw e;
|
|
12151
12523
|
});
|
|
12152
12524
|
}),
|
|
12525
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12526
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12527
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12528
|
+
const res = yield this.httpInstance
|
|
12529
|
+
.request({
|
|
12530
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`, path),
|
|
12531
|
+
method: "GET",
|
|
12532
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
12533
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
12534
|
+
})
|
|
12535
|
+
.catch((e) => {
|
|
12536
|
+
this.logger.error(formatErrors(e));
|
|
12537
|
+
});
|
|
12538
|
+
return res;
|
|
12539
|
+
});
|
|
12540
|
+
const Iterable = {
|
|
12541
|
+
[Symbol.asyncIterator]() {
|
|
12542
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12543
|
+
let hasMore = true;
|
|
12544
|
+
let pageToken;
|
|
12545
|
+
while (hasMore) {
|
|
12546
|
+
try {
|
|
12547
|
+
const res = yield __await(sendRequest({
|
|
12548
|
+
headers,
|
|
12549
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12550
|
+
data,
|
|
12551
|
+
}));
|
|
12552
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
12553
|
+
// @ts-ignore
|
|
12554
|
+
has_more,
|
|
12555
|
+
// @ts-ignore
|
|
12556
|
+
page_token,
|
|
12557
|
+
// @ts-ignore
|
|
12558
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12559
|
+
yield yield __await(rest);
|
|
12560
|
+
hasMore = Boolean(has_more);
|
|
12561
|
+
pageToken = page_token || next_page_token;
|
|
12562
|
+
}
|
|
12563
|
+
catch (e) {
|
|
12564
|
+
yield yield __await(null);
|
|
12565
|
+
break;
|
|
12566
|
+
}
|
|
12567
|
+
}
|
|
12568
|
+
});
|
|
12569
|
+
},
|
|
12570
|
+
};
|
|
12571
|
+
return Iterable;
|
|
12572
|
+
}),
|
|
12573
|
+
/**
|
|
12574
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.comment.reply&apiName=list&version=v1 click to debug }
|
|
12575
|
+
*
|
|
12576
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-comment-reply/list document }
|
|
12577
|
+
*
|
|
12578
|
+
* 获取回复
|
|
12579
|
+
*
|
|
12580
|
+
* 该接口用于根据评论 ID 以及分页参数,获取回复。
|
|
12581
|
+
*/
|
|
12582
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12583
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12584
|
+
return this.httpInstance
|
|
12585
|
+
.request({
|
|
12586
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`, path),
|
|
12587
|
+
method: "GET",
|
|
12588
|
+
data,
|
|
12589
|
+
params,
|
|
12590
|
+
headers,
|
|
12591
|
+
})
|
|
12592
|
+
.catch((e) => {
|
|
12593
|
+
this.logger.error(formatErrors(e));
|
|
12594
|
+
throw e;
|
|
12595
|
+
});
|
|
12596
|
+
}),
|
|
12153
12597
|
/**
|
|
12154
12598
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.comment.reply&apiName=update&version=v1 click to debug }
|
|
12155
12599
|
*
|
|
@@ -12279,6 +12723,30 @@ class Client$1 {
|
|
|
12279
12723
|
throw e;
|
|
12280
12724
|
});
|
|
12281
12725
|
}),
|
|
12726
|
+
/**
|
|
12727
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
|
|
12728
|
+
*
|
|
12729
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
|
|
12730
|
+
*
|
|
12731
|
+
* 取消云文档事件订阅情况
|
|
12732
|
+
*
|
|
12733
|
+
* 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12734
|
+
*/
|
|
12735
|
+
deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12736
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12737
|
+
return this.httpInstance
|
|
12738
|
+
.request({
|
|
12739
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
|
|
12740
|
+
method: "DELETE",
|
|
12741
|
+
data,
|
|
12742
|
+
params,
|
|
12743
|
+
headers,
|
|
12744
|
+
})
|
|
12745
|
+
.catch((e) => {
|
|
12746
|
+
this.logger.error(formatErrors(e));
|
|
12747
|
+
throw e;
|
|
12748
|
+
});
|
|
12749
|
+
}),
|
|
12282
12750
|
/**
|
|
12283
12751
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
|
|
12284
12752
|
*
|
|
@@ -12320,6 +12788,30 @@ class Client$1 {
|
|
|
12320
12788
|
}),
|
|
12321
12789
|
};
|
|
12322
12790
|
}),
|
|
12791
|
+
/**
|
|
12792
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
|
|
12793
|
+
*
|
|
12794
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
|
|
12795
|
+
*
|
|
12796
|
+
* 查询云文档事件订阅状态
|
|
12797
|
+
*
|
|
12798
|
+
* 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12799
|
+
*/
|
|
12800
|
+
getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12801
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12802
|
+
return this.httpInstance
|
|
12803
|
+
.request({
|
|
12804
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
|
|
12805
|
+
method: "GET",
|
|
12806
|
+
data,
|
|
12807
|
+
params,
|
|
12808
|
+
headers,
|
|
12809
|
+
})
|
|
12810
|
+
.catch((e) => {
|
|
12811
|
+
this.logger.error(formatErrors(e));
|
|
12812
|
+
throw e;
|
|
12813
|
+
});
|
|
12814
|
+
}),
|
|
12323
12815
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12324
12816
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12325
12817
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16589,6 +17081,79 @@ class Client$1 {
|
|
|
16589
17081
|
});
|
|
16590
17082
|
}),
|
|
16591
17083
|
},
|
|
17084
|
+
/**
|
|
17085
|
+
* registration_schema
|
|
17086
|
+
*/
|
|
17087
|
+
registrationSchema: {
|
|
17088
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17089
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17090
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
17091
|
+
const res = yield this.httpInstance
|
|
17092
|
+
.request({
|
|
17093
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
17094
|
+
method: "GET",
|
|
17095
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
17096
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
17097
|
+
})
|
|
17098
|
+
.catch((e) => {
|
|
17099
|
+
this.logger.error(formatErrors(e));
|
|
17100
|
+
});
|
|
17101
|
+
return res;
|
|
17102
|
+
});
|
|
17103
|
+
const Iterable = {
|
|
17104
|
+
[Symbol.asyncIterator]() {
|
|
17105
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
17106
|
+
let hasMore = true;
|
|
17107
|
+
let pageToken;
|
|
17108
|
+
while (hasMore) {
|
|
17109
|
+
try {
|
|
17110
|
+
const res = yield __await(sendRequest({
|
|
17111
|
+
headers,
|
|
17112
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
17113
|
+
data,
|
|
17114
|
+
}));
|
|
17115
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
17116
|
+
// @ts-ignore
|
|
17117
|
+
has_more,
|
|
17118
|
+
// @ts-ignore
|
|
17119
|
+
page_token,
|
|
17120
|
+
// @ts-ignore
|
|
17121
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
17122
|
+
yield yield __await(rest);
|
|
17123
|
+
hasMore = Boolean(has_more);
|
|
17124
|
+
pageToken = page_token || next_page_token;
|
|
17125
|
+
}
|
|
17126
|
+
catch (e) {
|
|
17127
|
+
yield yield __await(null);
|
|
17128
|
+
break;
|
|
17129
|
+
}
|
|
17130
|
+
}
|
|
17131
|
+
});
|
|
17132
|
+
},
|
|
17133
|
+
};
|
|
17134
|
+
return Iterable;
|
|
17135
|
+
}),
|
|
17136
|
+
/**
|
|
17137
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
|
|
17138
|
+
*
|
|
17139
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
|
|
17140
|
+
*/
|
|
17141
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17142
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17143
|
+
return this.httpInstance
|
|
17144
|
+
.request({
|
|
17145
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
17146
|
+
method: "GET",
|
|
17147
|
+
data,
|
|
17148
|
+
params,
|
|
17149
|
+
headers,
|
|
17150
|
+
})
|
|
17151
|
+
.catch((e) => {
|
|
17152
|
+
this.logger.error(formatErrors(e));
|
|
17153
|
+
throw e;
|
|
17154
|
+
});
|
|
17155
|
+
}),
|
|
17156
|
+
},
|
|
16592
17157
|
/**
|
|
16593
17158
|
* 简历来源
|
|
16594
17159
|
*/
|
|
@@ -16820,6 +17385,35 @@ class Client$1 {
|
|
|
16820
17385
|
});
|
|
16821
17386
|
}),
|
|
16822
17387
|
},
|
|
17388
|
+
/**
|
|
17389
|
+
* talent_object
|
|
17390
|
+
*/
|
|
17391
|
+
talentObject: {
|
|
17392
|
+
/**
|
|
17393
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
|
|
17394
|
+
*
|
|
17395
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
|
|
17396
|
+
*
|
|
17397
|
+
* 获取人才字段
|
|
17398
|
+
*
|
|
17399
|
+
* 获取人才字段
|
|
17400
|
+
*/
|
|
17401
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17402
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17403
|
+
return this.httpInstance
|
|
17404
|
+
.request({
|
|
17405
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
|
|
17406
|
+
method: "GET",
|
|
17407
|
+
data,
|
|
17408
|
+
params,
|
|
17409
|
+
headers,
|
|
17410
|
+
})
|
|
17411
|
+
.catch((e) => {
|
|
17412
|
+
this.logger.error(formatErrors(e));
|
|
17413
|
+
throw e;
|
|
17414
|
+
});
|
|
17415
|
+
}),
|
|
17416
|
+
},
|
|
16823
17417
|
};
|
|
16824
17418
|
/**
|
|
16825
17419
|
* 实名认证
|
|
@@ -18108,7 +18702,7 @@ class Client$1 {
|
|
|
18108
18702
|
}),
|
|
18109
18703
|
},
|
|
18110
18704
|
/**
|
|
18111
|
-
* 消息
|
|
18705
|
+
* 消息 - 消息卡片
|
|
18112
18706
|
*/
|
|
18113
18707
|
message: {
|
|
18114
18708
|
/**
|
|
@@ -18896,107 +19490,6 @@ class Client$1 {
|
|
|
18896
19490
|
});
|
|
18897
19491
|
}),
|
|
18898
19492
|
},
|
|
18899
|
-
/**
|
|
18900
|
-
* 特别关注(灰度租户可见)
|
|
18901
|
-
*/
|
|
18902
|
-
specialFocus: {
|
|
18903
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18904
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18905
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18906
|
-
const res = yield this.httpInstance
|
|
18907
|
-
.request({
|
|
18908
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
18909
|
-
method: "GET",
|
|
18910
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
18911
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
18912
|
-
})
|
|
18913
|
-
.catch((e) => {
|
|
18914
|
-
this.logger.error(formatErrors(e));
|
|
18915
|
-
});
|
|
18916
|
-
return res;
|
|
18917
|
-
});
|
|
18918
|
-
const Iterable = {
|
|
18919
|
-
[Symbol.asyncIterator]() {
|
|
18920
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
18921
|
-
let hasMore = true;
|
|
18922
|
-
let pageToken;
|
|
18923
|
-
while (hasMore) {
|
|
18924
|
-
try {
|
|
18925
|
-
const res = yield __await(sendRequest({
|
|
18926
|
-
headers,
|
|
18927
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
18928
|
-
data,
|
|
18929
|
-
}));
|
|
18930
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
18931
|
-
// @ts-ignore
|
|
18932
|
-
has_more,
|
|
18933
|
-
// @ts-ignore
|
|
18934
|
-
page_token,
|
|
18935
|
-
// @ts-ignore
|
|
18936
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
18937
|
-
yield yield __await(rest);
|
|
18938
|
-
hasMore = Boolean(has_more);
|
|
18939
|
-
pageToken = page_token || next_page_token;
|
|
18940
|
-
}
|
|
18941
|
-
catch (e) {
|
|
18942
|
-
yield yield __await(null);
|
|
18943
|
-
break;
|
|
18944
|
-
}
|
|
18945
|
-
}
|
|
18946
|
-
});
|
|
18947
|
-
},
|
|
18948
|
-
};
|
|
18949
|
-
return Iterable;
|
|
18950
|
-
}),
|
|
18951
|
-
/**
|
|
18952
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
|
|
18953
|
-
*
|
|
18954
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
|
|
18955
|
-
*
|
|
18956
|
-
* 获取特别关注列表
|
|
18957
|
-
*
|
|
18958
|
-
* 获取用户的特别关注列表。
|
|
18959
|
-
*/
|
|
18960
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18961
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18962
|
-
return this.httpInstance
|
|
18963
|
-
.request({
|
|
18964
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
18965
|
-
method: "GET",
|
|
18966
|
-
data,
|
|
18967
|
-
params,
|
|
18968
|
-
headers,
|
|
18969
|
-
})
|
|
18970
|
-
.catch((e) => {
|
|
18971
|
-
this.logger.error(formatErrors(e));
|
|
18972
|
-
throw e;
|
|
18973
|
-
});
|
|
18974
|
-
}),
|
|
18975
|
-
/**
|
|
18976
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
|
|
18977
|
-
*
|
|
18978
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
|
|
18979
|
-
*
|
|
18980
|
-
* 获取特别关注未读信息
|
|
18981
|
-
*
|
|
18982
|
-
* 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
|
|
18983
|
-
*/
|
|
18984
|
-
unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18985
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18986
|
-
return this.httpInstance
|
|
18987
|
-
.request({
|
|
18988
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
|
|
18989
|
-
method: "POST",
|
|
18990
|
-
data,
|
|
18991
|
-
params,
|
|
18992
|
-
headers,
|
|
18993
|
-
})
|
|
18994
|
-
.catch((e) => {
|
|
18995
|
-
this.logger.error(formatErrors(e));
|
|
18996
|
-
throw e;
|
|
18997
|
-
});
|
|
18998
|
-
}),
|
|
18999
|
-
},
|
|
19000
19493
|
};
|
|
19001
19494
|
/**
|
|
19002
19495
|
* 邮箱
|
|
@@ -22057,7 +22550,7 @@ class Client$1 {
|
|
|
22057
22550
|
}),
|
|
22058
22551
|
},
|
|
22059
22552
|
/**
|
|
22060
|
-
*
|
|
22553
|
+
* 工作表
|
|
22061
22554
|
*/
|
|
22062
22555
|
spreadsheetSheet: {
|
|
22063
22556
|
/**
|