@larksuiteoapi/node-sdk 1.18.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/README.md +4 -2
- package/README.zh.md +4 -2
- package/es/index.js +1131 -99
- package/lib/index.js +1131 -99
- package/package.json +1 -1
- package/types/index.d.ts +3019 -715
package/lib/index.js
CHANGED
|
@@ -1117,6 +1117,32 @@ class Client$1 {
|
|
|
1117
1117
|
* 应用使用情况
|
|
1118
1118
|
*/
|
|
1119
1119
|
applicationAppUsage: {
|
|
1120
|
+
/**
|
|
1121
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=department_overview&version=v6 click to debug }
|
|
1122
|
+
*
|
|
1123
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v6/application-app_usage/department_overview document }
|
|
1124
|
+
*
|
|
1125
|
+
* 获取多部门应用使用概览(灰度租户可见)
|
|
1126
|
+
*
|
|
1127
|
+
* 查看应用在某一天/某一周/某一个月的使用数据,可以根据部门做多层子部门的筛选
|
|
1128
|
+
*
|
|
1129
|
+
* 1. 仅支持企业版/旗舰版租户使用;2. 一般每天早上10点产出前一天的数据;3. 已经支持的指标包括:应用的活跃用户数、累计用户数、新增用户数、访问页面数、打开次数;4. 按照部门查看数据时,可以分别展示当前部门以及其子部门的使用情况;5. 如果查询的部门在查询日期没有使用过应用,只返回指标:应用的活跃用户数指标;6. 数据从飞书4.10版本开始统计,使用飞书版本4.10及以下版本的用户数据不会被统计到;7. 调用频控为100次/分
|
|
1130
|
+
*/
|
|
1131
|
+
departmentOverview: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1132
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1133
|
+
return this.httpInstance
|
|
1134
|
+
.request({
|
|
1135
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`, path),
|
|
1136
|
+
method: "POST",
|
|
1137
|
+
data,
|
|
1138
|
+
params,
|
|
1139
|
+
headers,
|
|
1140
|
+
})
|
|
1141
|
+
.catch((e) => {
|
|
1142
|
+
this.logger.error(formatErrors(e));
|
|
1143
|
+
throw e;
|
|
1144
|
+
});
|
|
1145
|
+
}),
|
|
1120
1146
|
/**
|
|
1121
1147
|
* {@link https://open.feishu.cn/api-explorer?project=application&resource=application.app_usage&apiName=overview&version=v6 click to debug }
|
|
1122
1148
|
*
|
|
@@ -1520,7 +1546,7 @@ class Client$1 {
|
|
|
1520
1546
|
*/
|
|
1521
1547
|
this.approval = {
|
|
1522
1548
|
/**
|
|
1523
|
-
*
|
|
1549
|
+
* 事件
|
|
1524
1550
|
*/
|
|
1525
1551
|
approval: {
|
|
1526
1552
|
/**
|
|
@@ -1652,6 +1678,26 @@ class Client$1 {
|
|
|
1652
1678
|
throw e;
|
|
1653
1679
|
});
|
|
1654
1680
|
}),
|
|
1681
|
+
/**
|
|
1682
|
+
* {@link https://open.feishu.cn/api-explorer?project=approval&resource=external_approval&apiName=get&version=v4 click to debug }
|
|
1683
|
+
*
|
|
1684
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=approval&resource=external_approval&version=v4 document }
|
|
1685
|
+
*/
|
|
1686
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1687
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1688
|
+
return this.httpInstance
|
|
1689
|
+
.request({
|
|
1690
|
+
url: fillApiPath(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`, path),
|
|
1691
|
+
method: "GET",
|
|
1692
|
+
data,
|
|
1693
|
+
params,
|
|
1694
|
+
headers,
|
|
1695
|
+
})
|
|
1696
|
+
.catch((e) => {
|
|
1697
|
+
this.logger.error(formatErrors(e));
|
|
1698
|
+
throw e;
|
|
1699
|
+
});
|
|
1700
|
+
}),
|
|
1655
1701
|
},
|
|
1656
1702
|
/**
|
|
1657
1703
|
* 三方审批实例
|
|
@@ -2266,7 +2312,7 @@ class Client$1 {
|
|
|
2266
2312
|
}),
|
|
2267
2313
|
},
|
|
2268
2314
|
/**
|
|
2269
|
-
*
|
|
2315
|
+
* 审批查询
|
|
2270
2316
|
*/
|
|
2271
2317
|
task: {
|
|
2272
2318
|
/**
|
|
@@ -6993,6 +7039,26 @@ class Client$1 {
|
|
|
6993
7039
|
* 部门
|
|
6994
7040
|
*/
|
|
6995
7041
|
department: {
|
|
7042
|
+
/**
|
|
7043
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=department&apiName=batch&version=v3 click to debug }
|
|
7044
|
+
*
|
|
7045
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=department&version=v3 document }
|
|
7046
|
+
*/
|
|
7047
|
+
batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7048
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7049
|
+
return this.httpInstance
|
|
7050
|
+
.request({
|
|
7051
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/departments/batch`, path),
|
|
7052
|
+
method: "GET",
|
|
7053
|
+
data,
|
|
7054
|
+
params,
|
|
7055
|
+
headers,
|
|
7056
|
+
})
|
|
7057
|
+
.catch((e) => {
|
|
7058
|
+
this.logger.error(formatErrors(e));
|
|
7059
|
+
throw e;
|
|
7060
|
+
});
|
|
7061
|
+
}),
|
|
6996
7062
|
childrenWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
6997
7063
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
6998
7064
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8437,6 +8503,99 @@ class Client$1 {
|
|
|
8437
8503
|
});
|
|
8438
8504
|
}),
|
|
8439
8505
|
},
|
|
8506
|
+
/**
|
|
8507
|
+
* job_title
|
|
8508
|
+
*/
|
|
8509
|
+
jobTitle: {
|
|
8510
|
+
/**
|
|
8511
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=get&version=v3 click to debug }
|
|
8512
|
+
*
|
|
8513
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=job_title&version=v3 document }
|
|
8514
|
+
*/
|
|
8515
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8516
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8517
|
+
return this.httpInstance
|
|
8518
|
+
.request({
|
|
8519
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`, path),
|
|
8520
|
+
method: "GET",
|
|
8521
|
+
data,
|
|
8522
|
+
params,
|
|
8523
|
+
headers,
|
|
8524
|
+
})
|
|
8525
|
+
.catch((e) => {
|
|
8526
|
+
this.logger.error(formatErrors(e));
|
|
8527
|
+
throw e;
|
|
8528
|
+
});
|
|
8529
|
+
}),
|
|
8530
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8531
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8532
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
8533
|
+
const res = yield this.httpInstance
|
|
8534
|
+
.request({
|
|
8535
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8536
|
+
method: "GET",
|
|
8537
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
8538
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
8539
|
+
})
|
|
8540
|
+
.catch((e) => {
|
|
8541
|
+
this.logger.error(formatErrors(e));
|
|
8542
|
+
});
|
|
8543
|
+
return res;
|
|
8544
|
+
});
|
|
8545
|
+
const Iterable = {
|
|
8546
|
+
[Symbol.asyncIterator]() {
|
|
8547
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
8548
|
+
let hasMore = true;
|
|
8549
|
+
let pageToken;
|
|
8550
|
+
while (hasMore) {
|
|
8551
|
+
try {
|
|
8552
|
+
const res = yield __await(sendRequest({
|
|
8553
|
+
headers,
|
|
8554
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
8555
|
+
data,
|
|
8556
|
+
}));
|
|
8557
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
8558
|
+
// @ts-ignore
|
|
8559
|
+
has_more,
|
|
8560
|
+
// @ts-ignore
|
|
8561
|
+
page_token,
|
|
8562
|
+
// @ts-ignore
|
|
8563
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
8564
|
+
yield yield __await(rest);
|
|
8565
|
+
hasMore = Boolean(has_more);
|
|
8566
|
+
pageToken = page_token || next_page_token;
|
|
8567
|
+
}
|
|
8568
|
+
catch (e) {
|
|
8569
|
+
yield yield __await(null);
|
|
8570
|
+
break;
|
|
8571
|
+
}
|
|
8572
|
+
}
|
|
8573
|
+
});
|
|
8574
|
+
},
|
|
8575
|
+
};
|
|
8576
|
+
return Iterable;
|
|
8577
|
+
}),
|
|
8578
|
+
/**
|
|
8579
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=job_title&apiName=list&version=v3 click to debug }
|
|
8580
|
+
*
|
|
8581
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=job_title&version=v3 document }
|
|
8582
|
+
*/
|
|
8583
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8584
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8585
|
+
return this.httpInstance
|
|
8586
|
+
.request({
|
|
8587
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/job_titles`, path),
|
|
8588
|
+
method: "GET",
|
|
8589
|
+
data,
|
|
8590
|
+
params,
|
|
8591
|
+
headers,
|
|
8592
|
+
})
|
|
8593
|
+
.catch((e) => {
|
|
8594
|
+
this.logger.error(formatErrors(e));
|
|
8595
|
+
throw e;
|
|
8596
|
+
});
|
|
8597
|
+
}),
|
|
8598
|
+
},
|
|
8440
8599
|
/**
|
|
8441
8600
|
* 通讯录权限范围
|
|
8442
8601
|
*/
|
|
@@ -8715,6 +8874,26 @@ class Client$1 {
|
|
|
8715
8874
|
* 用户
|
|
8716
8875
|
*/
|
|
8717
8876
|
user: {
|
|
8877
|
+
/**
|
|
8878
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch&version=v3 click to debug }
|
|
8879
|
+
*
|
|
8880
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=contact&resource=user&version=v3 document }
|
|
8881
|
+
*/
|
|
8882
|
+
batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8883
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8884
|
+
return this.httpInstance
|
|
8885
|
+
.request({
|
|
8886
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/batch`, path),
|
|
8887
|
+
method: "GET",
|
|
8888
|
+
data,
|
|
8889
|
+
params,
|
|
8890
|
+
headers,
|
|
8891
|
+
})
|
|
8892
|
+
.catch((e) => {
|
|
8893
|
+
this.logger.error(formatErrors(e));
|
|
8894
|
+
throw e;
|
|
8895
|
+
});
|
|
8896
|
+
}),
|
|
8718
8897
|
/**
|
|
8719
8898
|
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=batch_get_id&version=v3 click to debug }
|
|
8720
8899
|
*
|
|
@@ -9035,6 +9214,119 @@ class Client$1 {
|
|
|
9035
9214
|
throw e;
|
|
9036
9215
|
});
|
|
9037
9216
|
}),
|
|
9217
|
+
/**
|
|
9218
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=user&apiName=update_user_id&version=v3 click to debug }
|
|
9219
|
+
*
|
|
9220
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update_user_id&project=contact&resource=user&version=v3 document }
|
|
9221
|
+
*/
|
|
9222
|
+
updateUserId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9223
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9224
|
+
return this.httpInstance
|
|
9225
|
+
.request({
|
|
9226
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`, path),
|
|
9227
|
+
method: "PATCH",
|
|
9228
|
+
data,
|
|
9229
|
+
params,
|
|
9230
|
+
headers,
|
|
9231
|
+
})
|
|
9232
|
+
.catch((e) => {
|
|
9233
|
+
this.logger.error(formatErrors(e));
|
|
9234
|
+
throw e;
|
|
9235
|
+
});
|
|
9236
|
+
}),
|
|
9237
|
+
},
|
|
9238
|
+
/**
|
|
9239
|
+
* work_city
|
|
9240
|
+
*/
|
|
9241
|
+
workCity: {
|
|
9242
|
+
/**
|
|
9243
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=get&version=v3 click to debug }
|
|
9244
|
+
*
|
|
9245
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=work_city&version=v3 document }
|
|
9246
|
+
*/
|
|
9247
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9248
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9249
|
+
return this.httpInstance
|
|
9250
|
+
.request({
|
|
9251
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`, path),
|
|
9252
|
+
method: "GET",
|
|
9253
|
+
data,
|
|
9254
|
+
params,
|
|
9255
|
+
headers,
|
|
9256
|
+
})
|
|
9257
|
+
.catch((e) => {
|
|
9258
|
+
this.logger.error(formatErrors(e));
|
|
9259
|
+
throw e;
|
|
9260
|
+
});
|
|
9261
|
+
}),
|
|
9262
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9263
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9264
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
9265
|
+
const res = yield this.httpInstance
|
|
9266
|
+
.request({
|
|
9267
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9268
|
+
method: "GET",
|
|
9269
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
9270
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
9271
|
+
})
|
|
9272
|
+
.catch((e) => {
|
|
9273
|
+
this.logger.error(formatErrors(e));
|
|
9274
|
+
});
|
|
9275
|
+
return res;
|
|
9276
|
+
});
|
|
9277
|
+
const Iterable = {
|
|
9278
|
+
[Symbol.asyncIterator]() {
|
|
9279
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
9280
|
+
let hasMore = true;
|
|
9281
|
+
let pageToken;
|
|
9282
|
+
while (hasMore) {
|
|
9283
|
+
try {
|
|
9284
|
+
const res = yield __await(sendRequest({
|
|
9285
|
+
headers,
|
|
9286
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
9287
|
+
data,
|
|
9288
|
+
}));
|
|
9289
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
9290
|
+
// @ts-ignore
|
|
9291
|
+
has_more,
|
|
9292
|
+
// @ts-ignore
|
|
9293
|
+
page_token,
|
|
9294
|
+
// @ts-ignore
|
|
9295
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
9296
|
+
yield yield __await(rest);
|
|
9297
|
+
hasMore = Boolean(has_more);
|
|
9298
|
+
pageToken = page_token || next_page_token;
|
|
9299
|
+
}
|
|
9300
|
+
catch (e) {
|
|
9301
|
+
yield yield __await(null);
|
|
9302
|
+
break;
|
|
9303
|
+
}
|
|
9304
|
+
}
|
|
9305
|
+
});
|
|
9306
|
+
},
|
|
9307
|
+
};
|
|
9308
|
+
return Iterable;
|
|
9309
|
+
}),
|
|
9310
|
+
/**
|
|
9311
|
+
* {@link https://open.feishu.cn/api-explorer?project=contact&resource=work_city&apiName=list&version=v3 click to debug }
|
|
9312
|
+
*
|
|
9313
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=work_city&version=v3 document }
|
|
9314
|
+
*/
|
|
9315
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9316
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
9317
|
+
return this.httpInstance
|
|
9318
|
+
.request({
|
|
9319
|
+
url: fillApiPath(`${this.domain}/open-apis/contact/v3/work_cities`, path),
|
|
9320
|
+
method: "GET",
|
|
9321
|
+
data,
|
|
9322
|
+
params,
|
|
9323
|
+
headers,
|
|
9324
|
+
})
|
|
9325
|
+
.catch((e) => {
|
|
9326
|
+
this.logger.error(formatErrors(e));
|
|
9327
|
+
throw e;
|
|
9328
|
+
});
|
|
9329
|
+
}),
|
|
9038
9330
|
},
|
|
9039
9331
|
};
|
|
9040
9332
|
/**
|
|
@@ -12136,7 +12428,7 @@ class Client$1 {
|
|
|
12136
12428
|
}),
|
|
12137
12429
|
},
|
|
12138
12430
|
/**
|
|
12139
|
-
*
|
|
12431
|
+
* 文件
|
|
12140
12432
|
*/
|
|
12141
12433
|
file: {
|
|
12142
12434
|
/**
|
|
@@ -12240,9 +12532,33 @@ class Client$1 {
|
|
|
12240
12532
|
});
|
|
12241
12533
|
}),
|
|
12242
12534
|
/**
|
|
12243
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=
|
|
12535
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=delete_subscribe&version=v1 click to debug }
|
|
12244
12536
|
*
|
|
12245
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/
|
|
12537
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/delete_subscribe document }
|
|
12538
|
+
*
|
|
12539
|
+
* 取消云文档事件订阅情况
|
|
12540
|
+
*
|
|
12541
|
+
* 该接口**仅支持文档拥有者**取消订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12542
|
+
*/
|
|
12543
|
+
deleteSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12544
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12545
|
+
return this.httpInstance
|
|
12546
|
+
.request({
|
|
12547
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`, path),
|
|
12548
|
+
method: "DELETE",
|
|
12549
|
+
data,
|
|
12550
|
+
params,
|
|
12551
|
+
headers,
|
|
12552
|
+
})
|
|
12553
|
+
.catch((e) => {
|
|
12554
|
+
this.logger.error(formatErrors(e));
|
|
12555
|
+
throw e;
|
|
12556
|
+
});
|
|
12557
|
+
}),
|
|
12558
|
+
/**
|
|
12559
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=download&version=v1 click to debug }
|
|
12560
|
+
*
|
|
12561
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/download document }
|
|
12246
12562
|
*
|
|
12247
12563
|
* 下载文件
|
|
12248
12564
|
*
|
|
@@ -12280,6 +12596,30 @@ class Client$1 {
|
|
|
12280
12596
|
}),
|
|
12281
12597
|
};
|
|
12282
12598
|
}),
|
|
12599
|
+
/**
|
|
12600
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file&apiName=get_subscribe&version=v1 click to debug }
|
|
12601
|
+
*
|
|
12602
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file/get_subscribe document }
|
|
12603
|
+
*
|
|
12604
|
+
* 查询云文档事件订阅状态
|
|
12605
|
+
*
|
|
12606
|
+
* 该接口**仅支持文档拥有者**查询自己文档的订阅状态,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
|
|
12607
|
+
*/
|
|
12608
|
+
getSubscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12609
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12610
|
+
return this.httpInstance
|
|
12611
|
+
.request({
|
|
12612
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`, path),
|
|
12613
|
+
method: "GET",
|
|
12614
|
+
data,
|
|
12615
|
+
params,
|
|
12616
|
+
headers,
|
|
12617
|
+
})
|
|
12618
|
+
.catch((e) => {
|
|
12619
|
+
this.logger.error(formatErrors(e));
|
|
12620
|
+
throw e;
|
|
12621
|
+
});
|
|
12622
|
+
}),
|
|
12283
12623
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12284
12624
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12285
12625
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16452,6 +16792,176 @@ class Client$1 {
|
|
|
16452
16792
|
});
|
|
16453
16793
|
}),
|
|
16454
16794
|
},
|
|
16795
|
+
/**
|
|
16796
|
+
* referral_website.job_post
|
|
16797
|
+
*/
|
|
16798
|
+
referralWebsiteJobPost: {
|
|
16799
|
+
/**
|
|
16800
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=get&version=v1 click to debug }
|
|
16801
|
+
*
|
|
16802
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=referral_website.job_post&version=v1 document }
|
|
16803
|
+
*
|
|
16804
|
+
* 获取内推官网下职位广告详情
|
|
16805
|
+
*/
|
|
16806
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16807
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16808
|
+
return this.httpInstance
|
|
16809
|
+
.request({
|
|
16810
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`, path),
|
|
16811
|
+
method: "GET",
|
|
16812
|
+
data,
|
|
16813
|
+
params,
|
|
16814
|
+
headers,
|
|
16815
|
+
})
|
|
16816
|
+
.catch((e) => {
|
|
16817
|
+
this.logger.error(formatErrors(e));
|
|
16818
|
+
throw e;
|
|
16819
|
+
});
|
|
16820
|
+
}),
|
|
16821
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16822
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16823
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
16824
|
+
const res = yield this.httpInstance
|
|
16825
|
+
.request({
|
|
16826
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
|
|
16827
|
+
method: "GET",
|
|
16828
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
16829
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
16830
|
+
})
|
|
16831
|
+
.catch((e) => {
|
|
16832
|
+
this.logger.error(formatErrors(e));
|
|
16833
|
+
});
|
|
16834
|
+
return res;
|
|
16835
|
+
});
|
|
16836
|
+
const Iterable = {
|
|
16837
|
+
[Symbol.asyncIterator]() {
|
|
16838
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
16839
|
+
let hasMore = true;
|
|
16840
|
+
let pageToken;
|
|
16841
|
+
while (hasMore) {
|
|
16842
|
+
try {
|
|
16843
|
+
const res = yield __await(sendRequest({
|
|
16844
|
+
headers,
|
|
16845
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
16846
|
+
data,
|
|
16847
|
+
}));
|
|
16848
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
16849
|
+
// @ts-ignore
|
|
16850
|
+
has_more,
|
|
16851
|
+
// @ts-ignore
|
|
16852
|
+
page_token,
|
|
16853
|
+
// @ts-ignore
|
|
16854
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
16855
|
+
yield yield __await(rest);
|
|
16856
|
+
hasMore = Boolean(has_more);
|
|
16857
|
+
pageToken = page_token || next_page_token;
|
|
16858
|
+
}
|
|
16859
|
+
catch (e) {
|
|
16860
|
+
yield yield __await(null);
|
|
16861
|
+
break;
|
|
16862
|
+
}
|
|
16863
|
+
}
|
|
16864
|
+
});
|
|
16865
|
+
},
|
|
16866
|
+
};
|
|
16867
|
+
return Iterable;
|
|
16868
|
+
}),
|
|
16869
|
+
/**
|
|
16870
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=referral_website.job_post&apiName=list&version=v1 click to debug }
|
|
16871
|
+
*
|
|
16872
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=referral_website.job_post&version=v1 document }
|
|
16873
|
+
*
|
|
16874
|
+
* 获取内推官网下的职位列表。自定义数据暂不支持列表获取,请从「获取内推官网下职位广告详情」接口获取
|
|
16875
|
+
*/
|
|
16876
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16877
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16878
|
+
return this.httpInstance
|
|
16879
|
+
.request({
|
|
16880
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`, path),
|
|
16881
|
+
method: "GET",
|
|
16882
|
+
data,
|
|
16883
|
+
params,
|
|
16884
|
+
headers,
|
|
16885
|
+
})
|
|
16886
|
+
.catch((e) => {
|
|
16887
|
+
this.logger.error(formatErrors(e));
|
|
16888
|
+
throw e;
|
|
16889
|
+
});
|
|
16890
|
+
}),
|
|
16891
|
+
},
|
|
16892
|
+
/**
|
|
16893
|
+
* registration_schema
|
|
16894
|
+
*/
|
|
16895
|
+
registrationSchema: {
|
|
16896
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16897
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16898
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
16899
|
+
const res = yield this.httpInstance
|
|
16900
|
+
.request({
|
|
16901
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16902
|
+
method: "GET",
|
|
16903
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
16904
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
16905
|
+
})
|
|
16906
|
+
.catch((e) => {
|
|
16907
|
+
this.logger.error(formatErrors(e));
|
|
16908
|
+
});
|
|
16909
|
+
return res;
|
|
16910
|
+
});
|
|
16911
|
+
const Iterable = {
|
|
16912
|
+
[Symbol.asyncIterator]() {
|
|
16913
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
16914
|
+
let hasMore = true;
|
|
16915
|
+
let pageToken;
|
|
16916
|
+
while (hasMore) {
|
|
16917
|
+
try {
|
|
16918
|
+
const res = yield __await(sendRequest({
|
|
16919
|
+
headers,
|
|
16920
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
16921
|
+
data,
|
|
16922
|
+
}));
|
|
16923
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
16924
|
+
// @ts-ignore
|
|
16925
|
+
has_more,
|
|
16926
|
+
// @ts-ignore
|
|
16927
|
+
page_token,
|
|
16928
|
+
// @ts-ignore
|
|
16929
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
16930
|
+
yield yield __await(rest);
|
|
16931
|
+
hasMore = Boolean(has_more);
|
|
16932
|
+
pageToken = page_token || next_page_token;
|
|
16933
|
+
}
|
|
16934
|
+
catch (e) {
|
|
16935
|
+
yield yield __await(null);
|
|
16936
|
+
break;
|
|
16937
|
+
}
|
|
16938
|
+
}
|
|
16939
|
+
});
|
|
16940
|
+
},
|
|
16941
|
+
};
|
|
16942
|
+
return Iterable;
|
|
16943
|
+
}),
|
|
16944
|
+
/**
|
|
16945
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=registration_schema&apiName=list&version=v1 click to debug }
|
|
16946
|
+
*
|
|
16947
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=registration_schema&version=v1 document }
|
|
16948
|
+
*/
|
|
16949
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
16950
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
16951
|
+
return this.httpInstance
|
|
16952
|
+
.request({
|
|
16953
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/registration_schemas`, path),
|
|
16954
|
+
method: "GET",
|
|
16955
|
+
data,
|
|
16956
|
+
params,
|
|
16957
|
+
headers,
|
|
16958
|
+
})
|
|
16959
|
+
.catch((e) => {
|
|
16960
|
+
this.logger.error(formatErrors(e));
|
|
16961
|
+
throw e;
|
|
16962
|
+
});
|
|
16963
|
+
}),
|
|
16964
|
+
},
|
|
16455
16965
|
/**
|
|
16456
16966
|
* 简历来源
|
|
16457
16967
|
*/
|
|
@@ -16683,6 +17193,35 @@ class Client$1 {
|
|
|
16683
17193
|
});
|
|
16684
17194
|
}),
|
|
16685
17195
|
},
|
|
17196
|
+
/**
|
|
17197
|
+
* talent_object
|
|
17198
|
+
*/
|
|
17199
|
+
talentObject: {
|
|
17200
|
+
/**
|
|
17201
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_object&apiName=query&version=v1 click to debug }
|
|
17202
|
+
*
|
|
17203
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent_object/query document }
|
|
17204
|
+
*
|
|
17205
|
+
* 获取人才字段
|
|
17206
|
+
*
|
|
17207
|
+
* 获取人才字段
|
|
17208
|
+
*/
|
|
17209
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17210
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17211
|
+
return this.httpInstance
|
|
17212
|
+
.request({
|
|
17213
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_objects/query`, path),
|
|
17214
|
+
method: "GET",
|
|
17215
|
+
data,
|
|
17216
|
+
params,
|
|
17217
|
+
headers,
|
|
17218
|
+
})
|
|
17219
|
+
.catch((e) => {
|
|
17220
|
+
this.logger.error(formatErrors(e));
|
|
17221
|
+
throw e;
|
|
17222
|
+
});
|
|
17223
|
+
}),
|
|
17224
|
+
},
|
|
16686
17225
|
};
|
|
16687
17226
|
/**
|
|
16688
17227
|
* 实名认证
|
|
@@ -17971,7 +18510,7 @@ class Client$1 {
|
|
|
17971
18510
|
}),
|
|
17972
18511
|
},
|
|
17973
18512
|
/**
|
|
17974
|
-
*
|
|
18513
|
+
* 消息加急
|
|
17975
18514
|
*/
|
|
17976
18515
|
message: {
|
|
17977
18516
|
/**
|
|
@@ -18250,6 +18789,28 @@ class Client$1 {
|
|
|
18250
18789
|
throw e;
|
|
18251
18790
|
});
|
|
18252
18791
|
}),
|
|
18792
|
+
/**
|
|
18793
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
|
|
18794
|
+
*
|
|
18795
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
|
|
18796
|
+
*
|
|
18797
|
+
* 编辑已发送的消息内容,当前仅支持编辑文本和富文本消息。
|
|
18798
|
+
*/
|
|
18799
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18800
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18801
|
+
return this.httpInstance
|
|
18802
|
+
.request({
|
|
18803
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
|
|
18804
|
+
method: "PUT",
|
|
18805
|
+
data,
|
|
18806
|
+
params,
|
|
18807
|
+
headers,
|
|
18808
|
+
})
|
|
18809
|
+
.catch((e) => {
|
|
18810
|
+
this.logger.error(formatErrors(e));
|
|
18811
|
+
throw e;
|
|
18812
|
+
});
|
|
18813
|
+
}),
|
|
18253
18814
|
/**
|
|
18254
18815
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=urgent_app&version=v1 click to debug }
|
|
18255
18816
|
*
|
|
@@ -18398,29 +18959,59 @@ class Client$1 {
|
|
|
18398
18959
|
throw e;
|
|
18399
18960
|
});
|
|
18400
18961
|
}),
|
|
18401
|
-
},
|
|
18402
|
-
/**
|
|
18403
|
-
* 消息 - 表情回复
|
|
18404
|
-
*/
|
|
18405
|
-
messageReaction: {
|
|
18406
18962
|
/**
|
|
18407
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message
|
|
18408
|
-
*
|
|
18409
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/create document }
|
|
18963
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=update&version=v1 click to debug }
|
|
18410
18964
|
*
|
|
18411
|
-
*
|
|
18412
|
-
*
|
|
18413
|
-
* 给指定消息添加指定类型的表情回复(reaction即表情回复,本文档统一用“reaction”代称)。
|
|
18965
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=message&version=v1 document }
|
|
18414
18966
|
*
|
|
18415
|
-
*
|
|
18967
|
+
* 通过模版消息卡片
|
|
18416
18968
|
*/
|
|
18417
|
-
|
|
18969
|
+
updateByCard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18418
18970
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18971
|
+
const { template_id, template_variable } = data, rest = __rest(data, ["template_id", "template_variable"]);
|
|
18972
|
+
const targetData = Object.assign({ msg_type: "interactive", content: JSON.stringify({
|
|
18973
|
+
type: "template",
|
|
18974
|
+
data: {
|
|
18975
|
+
template_id: template_id,
|
|
18976
|
+
template_variable: template_variable,
|
|
18977
|
+
},
|
|
18978
|
+
}) }, rest);
|
|
18419
18979
|
return this.httpInstance
|
|
18420
18980
|
.request({
|
|
18421
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id
|
|
18422
|
-
method: "
|
|
18423
|
-
data,
|
|
18981
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id`, path),
|
|
18982
|
+
method: "PUT",
|
|
18983
|
+
data: targetData,
|
|
18984
|
+
params,
|
|
18985
|
+
headers,
|
|
18986
|
+
})
|
|
18987
|
+
.catch((e) => {
|
|
18988
|
+
this.logger.error(formatErrors(e));
|
|
18989
|
+
throw e;
|
|
18990
|
+
});
|
|
18991
|
+
}),
|
|
18992
|
+
},
|
|
18993
|
+
/**
|
|
18994
|
+
* 消息 - 表情回复
|
|
18995
|
+
*/
|
|
18996
|
+
messageReaction: {
|
|
18997
|
+
/**
|
|
18998
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message.reaction&apiName=create&version=v1 click to debug }
|
|
18999
|
+
*
|
|
19000
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message-reaction/create document }
|
|
19001
|
+
*
|
|
19002
|
+
* 添加消息表情回复
|
|
19003
|
+
*
|
|
19004
|
+
* 给指定消息添加指定类型的表情回复(reaction即表情回复,本文档统一用“reaction”代称)。
|
|
19005
|
+
*
|
|
19006
|
+
* 注意事项:;- 需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability) ;- 待添加reaction的消息要真实存在,不能被撤回;- 给消息添加reaction,需要reaction的发送方(机器人或者用户)在消息所在的会话内
|
|
19007
|
+
*/
|
|
19008
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19009
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19010
|
+
return this.httpInstance
|
|
19011
|
+
.request({
|
|
19012
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`, path),
|
|
19013
|
+
method: "POST",
|
|
19014
|
+
data,
|
|
18424
19015
|
params,
|
|
18425
19016
|
headers,
|
|
18426
19017
|
})
|
|
@@ -18707,6 +19298,107 @@ class Client$1 {
|
|
|
18707
19298
|
});
|
|
18708
19299
|
}),
|
|
18709
19300
|
},
|
|
19301
|
+
/**
|
|
19302
|
+
* 特别关注(灰度租户可见)
|
|
19303
|
+
*/
|
|
19304
|
+
specialFocus: {
|
|
19305
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19306
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19307
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19308
|
+
const res = yield this.httpInstance
|
|
19309
|
+
.request({
|
|
19310
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
19311
|
+
method: "GET",
|
|
19312
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19313
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19314
|
+
})
|
|
19315
|
+
.catch((e) => {
|
|
19316
|
+
this.logger.error(formatErrors(e));
|
|
19317
|
+
});
|
|
19318
|
+
return res;
|
|
19319
|
+
});
|
|
19320
|
+
const Iterable = {
|
|
19321
|
+
[Symbol.asyncIterator]() {
|
|
19322
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19323
|
+
let hasMore = true;
|
|
19324
|
+
let pageToken;
|
|
19325
|
+
while (hasMore) {
|
|
19326
|
+
try {
|
|
19327
|
+
const res = yield __await(sendRequest({
|
|
19328
|
+
headers,
|
|
19329
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19330
|
+
data,
|
|
19331
|
+
}));
|
|
19332
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19333
|
+
// @ts-ignore
|
|
19334
|
+
has_more,
|
|
19335
|
+
// @ts-ignore
|
|
19336
|
+
page_token,
|
|
19337
|
+
// @ts-ignore
|
|
19338
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19339
|
+
yield yield __await(rest);
|
|
19340
|
+
hasMore = Boolean(has_more);
|
|
19341
|
+
pageToken = page_token || next_page_token;
|
|
19342
|
+
}
|
|
19343
|
+
catch (e) {
|
|
19344
|
+
yield yield __await(null);
|
|
19345
|
+
break;
|
|
19346
|
+
}
|
|
19347
|
+
}
|
|
19348
|
+
});
|
|
19349
|
+
},
|
|
19350
|
+
};
|
|
19351
|
+
return Iterable;
|
|
19352
|
+
}),
|
|
19353
|
+
/**
|
|
19354
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=list&version=v1 click to debug }
|
|
19355
|
+
*
|
|
19356
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/list document }
|
|
19357
|
+
*
|
|
19358
|
+
* 获取特别关注列表
|
|
19359
|
+
*
|
|
19360
|
+
* 获取用户的特别关注列表。
|
|
19361
|
+
*/
|
|
19362
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19363
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19364
|
+
return this.httpInstance
|
|
19365
|
+
.request({
|
|
19366
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus`, path),
|
|
19367
|
+
method: "GET",
|
|
19368
|
+
data,
|
|
19369
|
+
params,
|
|
19370
|
+
headers,
|
|
19371
|
+
})
|
|
19372
|
+
.catch((e) => {
|
|
19373
|
+
this.logger.error(formatErrors(e));
|
|
19374
|
+
throw e;
|
|
19375
|
+
});
|
|
19376
|
+
}),
|
|
19377
|
+
/**
|
|
19378
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=special_focus&apiName=unread&version=v1 click to debug }
|
|
19379
|
+
*
|
|
19380
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/special_focus/unread document }
|
|
19381
|
+
*
|
|
19382
|
+
* 获取特别关注未读信息
|
|
19383
|
+
*
|
|
19384
|
+
* 支持按单聊类型和群聊类型获取用户的特别关注未读消息数。
|
|
19385
|
+
*/
|
|
19386
|
+
unread: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19387
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19388
|
+
return this.httpInstance
|
|
19389
|
+
.request({
|
|
19390
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/special_focus/unread`, path),
|
|
19391
|
+
method: "POST",
|
|
19392
|
+
data,
|
|
19393
|
+
params,
|
|
19394
|
+
headers,
|
|
19395
|
+
})
|
|
19396
|
+
.catch((e) => {
|
|
19397
|
+
this.logger.error(formatErrors(e));
|
|
19398
|
+
throw e;
|
|
19399
|
+
});
|
|
19400
|
+
}),
|
|
19401
|
+
},
|
|
18710
19402
|
};
|
|
18711
19403
|
/**
|
|
18712
19404
|
* 邮箱
|
|
@@ -18798,16 +19490,184 @@ class Client$1 {
|
|
|
18798
19490
|
*
|
|
18799
19491
|
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/create document }
|
|
18800
19492
|
*
|
|
18801
|
-
* 创建邮件组
|
|
19493
|
+
* 创建邮件组
|
|
19494
|
+
*
|
|
19495
|
+
* 创建一个邮件组
|
|
19496
|
+
*/
|
|
19497
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19498
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19499
|
+
return this.httpInstance
|
|
19500
|
+
.request({
|
|
19501
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
19502
|
+
method: "POST",
|
|
19503
|
+
data,
|
|
19504
|
+
params,
|
|
19505
|
+
headers,
|
|
19506
|
+
})
|
|
19507
|
+
.catch((e) => {
|
|
19508
|
+
this.logger.error(formatErrors(e));
|
|
19509
|
+
throw e;
|
|
19510
|
+
});
|
|
19511
|
+
}),
|
|
19512
|
+
/**
|
|
19513
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=delete&version=v1 click to debug }
|
|
19514
|
+
*
|
|
19515
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/delete document }
|
|
19516
|
+
*
|
|
19517
|
+
* 删除邮件组
|
|
19518
|
+
*
|
|
19519
|
+
* 删除一个邮件组
|
|
19520
|
+
*/
|
|
19521
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19522
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19523
|
+
return this.httpInstance
|
|
19524
|
+
.request({
|
|
19525
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
19526
|
+
method: "DELETE",
|
|
19527
|
+
data,
|
|
19528
|
+
params,
|
|
19529
|
+
headers,
|
|
19530
|
+
})
|
|
19531
|
+
.catch((e) => {
|
|
19532
|
+
this.logger.error(formatErrors(e));
|
|
19533
|
+
throw e;
|
|
19534
|
+
});
|
|
19535
|
+
}),
|
|
19536
|
+
/**
|
|
19537
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=get&version=v1 click to debug }
|
|
19538
|
+
*
|
|
19539
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/get document }
|
|
19540
|
+
*
|
|
19541
|
+
* 获取邮件组
|
|
19542
|
+
*
|
|
19543
|
+
* 获取特定邮件组信息
|
|
19544
|
+
*/
|
|
19545
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19546
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19547
|
+
return this.httpInstance
|
|
19548
|
+
.request({
|
|
19549
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
19550
|
+
method: "GET",
|
|
19551
|
+
data,
|
|
19552
|
+
params,
|
|
19553
|
+
headers,
|
|
19554
|
+
})
|
|
19555
|
+
.catch((e) => {
|
|
19556
|
+
this.logger.error(formatErrors(e));
|
|
19557
|
+
throw e;
|
|
19558
|
+
});
|
|
19559
|
+
}),
|
|
19560
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19561
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19562
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19563
|
+
const res = yield this.httpInstance
|
|
19564
|
+
.request({
|
|
19565
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
19566
|
+
method: "GET",
|
|
19567
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19568
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19569
|
+
})
|
|
19570
|
+
.catch((e) => {
|
|
19571
|
+
this.logger.error(formatErrors(e));
|
|
19572
|
+
});
|
|
19573
|
+
return res;
|
|
19574
|
+
});
|
|
19575
|
+
const Iterable = {
|
|
19576
|
+
[Symbol.asyncIterator]() {
|
|
19577
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19578
|
+
let hasMore = true;
|
|
19579
|
+
let pageToken;
|
|
19580
|
+
while (hasMore) {
|
|
19581
|
+
try {
|
|
19582
|
+
const res = yield __await(sendRequest({
|
|
19583
|
+
headers,
|
|
19584
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19585
|
+
data,
|
|
19586
|
+
}));
|
|
19587
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19588
|
+
// @ts-ignore
|
|
19589
|
+
has_more,
|
|
19590
|
+
// @ts-ignore
|
|
19591
|
+
page_token,
|
|
19592
|
+
// @ts-ignore
|
|
19593
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19594
|
+
yield yield __await(rest);
|
|
19595
|
+
hasMore = Boolean(has_more);
|
|
19596
|
+
pageToken = page_token || next_page_token;
|
|
19597
|
+
}
|
|
19598
|
+
catch (e) {
|
|
19599
|
+
yield yield __await(null);
|
|
19600
|
+
break;
|
|
19601
|
+
}
|
|
19602
|
+
}
|
|
19603
|
+
});
|
|
19604
|
+
},
|
|
19605
|
+
};
|
|
19606
|
+
return Iterable;
|
|
19607
|
+
}),
|
|
19608
|
+
/**
|
|
19609
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=list&version=v1 click to debug }
|
|
19610
|
+
*
|
|
19611
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list document }
|
|
19612
|
+
*
|
|
19613
|
+
* 批量获取邮件组
|
|
19614
|
+
*
|
|
19615
|
+
* 分页批量获取邮件组
|
|
19616
|
+
*/
|
|
19617
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19618
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19619
|
+
return this.httpInstance
|
|
19620
|
+
.request({
|
|
19621
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
19622
|
+
method: "GET",
|
|
19623
|
+
data,
|
|
19624
|
+
params,
|
|
19625
|
+
headers,
|
|
19626
|
+
})
|
|
19627
|
+
.catch((e) => {
|
|
19628
|
+
this.logger.error(formatErrors(e));
|
|
19629
|
+
throw e;
|
|
19630
|
+
});
|
|
19631
|
+
}),
|
|
19632
|
+
/**
|
|
19633
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=patch&version=v1 click to debug }
|
|
19634
|
+
*
|
|
19635
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch document }
|
|
19636
|
+
*
|
|
19637
|
+
* 修改邮件组
|
|
19638
|
+
*
|
|
19639
|
+
* 更新邮件组部分字段,没有填写的字段不会被更新
|
|
19640
|
+
*/
|
|
19641
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19642
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19643
|
+
return this.httpInstance
|
|
19644
|
+
.request({
|
|
19645
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
19646
|
+
method: "PATCH",
|
|
19647
|
+
data,
|
|
19648
|
+
params,
|
|
19649
|
+
headers,
|
|
19650
|
+
})
|
|
19651
|
+
.catch((e) => {
|
|
19652
|
+
this.logger.error(formatErrors(e));
|
|
19653
|
+
throw e;
|
|
19654
|
+
});
|
|
19655
|
+
}),
|
|
19656
|
+
/**
|
|
19657
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=update&version=v1 click to debug }
|
|
19658
|
+
*
|
|
19659
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update document }
|
|
19660
|
+
*
|
|
19661
|
+
* 更新邮件组
|
|
18802
19662
|
*
|
|
18803
|
-
*
|
|
19663
|
+
* 更新邮件组所有信息
|
|
18804
19664
|
*/
|
|
18805
|
-
|
|
19665
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18806
19666
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18807
19667
|
return this.httpInstance
|
|
18808
19668
|
.request({
|
|
18809
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
18810
|
-
method: "
|
|
19669
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
19670
|
+
method: "PUT",
|
|
18811
19671
|
data,
|
|
18812
19672
|
params,
|
|
18813
19673
|
headers,
|
|
@@ -18817,21 +19677,26 @@ class Client$1 {
|
|
|
18817
19677
|
throw e;
|
|
18818
19678
|
});
|
|
18819
19679
|
}),
|
|
19680
|
+
},
|
|
19681
|
+
/**
|
|
19682
|
+
* 邮件组管理员
|
|
19683
|
+
*/
|
|
19684
|
+
mailgroupManager: {
|
|
18820
19685
|
/**
|
|
18821
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=
|
|
19686
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_create&version=v1 click to debug }
|
|
18822
19687
|
*
|
|
18823
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/
|
|
19688
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_create document }
|
|
18824
19689
|
*
|
|
18825
|
-
*
|
|
19690
|
+
* 批量创建邮件组管理员
|
|
18826
19691
|
*
|
|
18827
|
-
*
|
|
19692
|
+
* 批量创建邮件组管理员
|
|
18828
19693
|
*/
|
|
18829
|
-
|
|
19694
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18830
19695
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18831
19696
|
return this.httpInstance
|
|
18832
19697
|
.request({
|
|
18833
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
18834
|
-
method: "
|
|
19698
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`, path),
|
|
19699
|
+
method: "POST",
|
|
18835
19700
|
data,
|
|
18836
19701
|
params,
|
|
18837
19702
|
headers,
|
|
@@ -18842,20 +19707,20 @@ class Client$1 {
|
|
|
18842
19707
|
});
|
|
18843
19708
|
}),
|
|
18844
19709
|
/**
|
|
18845
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=
|
|
19710
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=batch_delete&version=v1 click to debug }
|
|
18846
19711
|
*
|
|
18847
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/
|
|
19712
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/batch_delete document }
|
|
18848
19713
|
*
|
|
18849
|
-
*
|
|
19714
|
+
* 批量删除邮件组管理员
|
|
18850
19715
|
*
|
|
18851
|
-
*
|
|
19716
|
+
* 批量删除邮件组管理员
|
|
18852
19717
|
*/
|
|
18853
|
-
|
|
19718
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18854
19719
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18855
19720
|
return this.httpInstance
|
|
18856
19721
|
.request({
|
|
18857
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
18858
|
-
method: "
|
|
19722
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`, path),
|
|
19723
|
+
method: "POST",
|
|
18859
19724
|
data,
|
|
18860
19725
|
params,
|
|
18861
19726
|
headers,
|
|
@@ -18870,7 +19735,7 @@ class Client$1 {
|
|
|
18870
19735
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
18871
19736
|
const res = yield this.httpInstance
|
|
18872
19737
|
.request({
|
|
18873
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
19738
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
|
|
18874
19739
|
method: "GET",
|
|
18875
19740
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
18876
19741
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -18914,19 +19779,19 @@ class Client$1 {
|
|
|
18914
19779
|
return Iterable;
|
|
18915
19780
|
}),
|
|
18916
19781
|
/**
|
|
18917
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=list&version=v1 click to debug }
|
|
19782
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup.manager&apiName=list&version=v1 click to debug }
|
|
18918
19783
|
*
|
|
18919
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/list document }
|
|
19784
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup-manager/list document }
|
|
18920
19785
|
*
|
|
18921
|
-
*
|
|
19786
|
+
* 批量获取邮件组管理员
|
|
18922
19787
|
*
|
|
18923
|
-
*
|
|
19788
|
+
* 批量获取邮件组管理员
|
|
18924
19789
|
*/
|
|
18925
19790
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18926
19791
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18927
19792
|
return this.httpInstance
|
|
18928
19793
|
.request({
|
|
18929
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups`, path),
|
|
19794
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`, path),
|
|
18930
19795
|
method: "GET",
|
|
18931
19796
|
data,
|
|
18932
19797
|
params,
|
|
@@ -18937,54 +19802,6 @@ class Client$1 {
|
|
|
18937
19802
|
throw e;
|
|
18938
19803
|
});
|
|
18939
19804
|
}),
|
|
18940
|
-
/**
|
|
18941
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=patch&version=v1 click to debug }
|
|
18942
|
-
*
|
|
18943
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/patch document }
|
|
18944
|
-
*
|
|
18945
|
-
* 修改邮件组
|
|
18946
|
-
*
|
|
18947
|
-
* 更新邮件组部分字段,没有填写的字段不会被更新
|
|
18948
|
-
*/
|
|
18949
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18950
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18951
|
-
return this.httpInstance
|
|
18952
|
-
.request({
|
|
18953
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
18954
|
-
method: "PATCH",
|
|
18955
|
-
data,
|
|
18956
|
-
params,
|
|
18957
|
-
headers,
|
|
18958
|
-
})
|
|
18959
|
-
.catch((e) => {
|
|
18960
|
-
this.logger.error(formatErrors(e));
|
|
18961
|
-
throw e;
|
|
18962
|
-
});
|
|
18963
|
-
}),
|
|
18964
|
-
/**
|
|
18965
|
-
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=mailgroup&apiName=update&version=v1 click to debug }
|
|
18966
|
-
*
|
|
18967
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/mail-v1/mailgroup/update document }
|
|
18968
|
-
*
|
|
18969
|
-
* 更新邮件组
|
|
18970
|
-
*
|
|
18971
|
-
* 更新邮件组所有信息
|
|
18972
|
-
*/
|
|
18973
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
18974
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
18975
|
-
return this.httpInstance
|
|
18976
|
-
.request({
|
|
18977
|
-
url: fillApiPath(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`, path),
|
|
18978
|
-
method: "PUT",
|
|
18979
|
-
data,
|
|
18980
|
-
params,
|
|
18981
|
-
headers,
|
|
18982
|
-
})
|
|
18983
|
-
.catch((e) => {
|
|
18984
|
-
this.logger.error(formatErrors(e));
|
|
18985
|
-
throw e;
|
|
18986
|
-
});
|
|
18987
|
-
}),
|
|
18988
19805
|
},
|
|
18989
19806
|
/**
|
|
18990
19807
|
* 邮件组成员
|
|
@@ -20036,9 +20853,63 @@ class Client$1 {
|
|
|
20036
20853
|
},
|
|
20037
20854
|
};
|
|
20038
20855
|
/**
|
|
20039
|
-
|
|
20856
|
+
* 主数据
|
|
20857
|
+
*/
|
|
20858
|
+
this.mdm = {
|
|
20859
|
+
/**
|
|
20860
|
+
* 数据维度
|
|
20040
20861
|
*/
|
|
20041
|
-
|
|
20862
|
+
userAuthDataRelation: {
|
|
20863
|
+
/**
|
|
20864
|
+
* {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=bind&version=v1 click to debug }
|
|
20865
|
+
*
|
|
20866
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/bind document }
|
|
20867
|
+
*
|
|
20868
|
+
* 用户数据维度绑定
|
|
20869
|
+
*
|
|
20870
|
+
* 通过该接口,可为指定应用下的用户绑定一类数据维度,支持批量给多个用户同时增量授权。
|
|
20871
|
+
*/
|
|
20872
|
+
bind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20873
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20874
|
+
return this.httpInstance
|
|
20875
|
+
.request({
|
|
20876
|
+
url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`, path),
|
|
20877
|
+
method: "POST",
|
|
20878
|
+
data,
|
|
20879
|
+
params,
|
|
20880
|
+
headers,
|
|
20881
|
+
})
|
|
20882
|
+
.catch((e) => {
|
|
20883
|
+
this.logger.error(formatErrors(e));
|
|
20884
|
+
throw e;
|
|
20885
|
+
});
|
|
20886
|
+
}),
|
|
20887
|
+
/**
|
|
20888
|
+
* {@link https://open.feishu.cn/api-explorer?project=mdm&resource=user_auth_data_relation&apiName=unbind&version=v1 click to debug }
|
|
20889
|
+
*
|
|
20890
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/mdm-v1/user_auth_data_relation/unbind document }
|
|
20891
|
+
*
|
|
20892
|
+
* 用户数据维度解绑
|
|
20893
|
+
*
|
|
20894
|
+
* 通过该接口,可为指定应用下的指定用户解除一类数据维度。
|
|
20895
|
+
*/
|
|
20896
|
+
unbind: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20897
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20898
|
+
return this.httpInstance
|
|
20899
|
+
.request({
|
|
20900
|
+
url: fillApiPath(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`, path),
|
|
20901
|
+
method: "POST",
|
|
20902
|
+
data,
|
|
20903
|
+
params,
|
|
20904
|
+
headers,
|
|
20905
|
+
})
|
|
20906
|
+
.catch((e) => {
|
|
20907
|
+
this.logger.error(formatErrors(e));
|
|
20908
|
+
throw e;
|
|
20909
|
+
});
|
|
20910
|
+
}),
|
|
20911
|
+
},
|
|
20912
|
+
};
|
|
20042
20913
|
/**
|
|
20043
20914
|
|
|
20044
20915
|
*/
|
|
@@ -21588,7 +22459,7 @@ class Client$1 {
|
|
|
21588
22459
|
}),
|
|
21589
22460
|
},
|
|
21590
22461
|
/**
|
|
21591
|
-
*
|
|
22462
|
+
* 工作表
|
|
21592
22463
|
*/
|
|
21593
22464
|
spreadsheetSheet: {
|
|
21594
22465
|
/**
|
|
@@ -23880,6 +24751,51 @@ class Client$1 {
|
|
|
23880
24751
|
});
|
|
23881
24752
|
}),
|
|
23882
24753
|
},
|
|
24754
|
+
/**
|
|
24755
|
+
* reserve_config.disable_inform
|
|
24756
|
+
*/
|
|
24757
|
+
reserveConfigDisableInform: {
|
|
24758
|
+
/**
|
|
24759
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=get&version=v1 click to debug }
|
|
24760
|
+
*
|
|
24761
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.disable_inform&version=v1 document }
|
|
24762
|
+
*/
|
|
24763
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24764
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24765
|
+
return this.httpInstance
|
|
24766
|
+
.request({
|
|
24767
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
|
|
24768
|
+
method: "GET",
|
|
24769
|
+
data,
|
|
24770
|
+
params,
|
|
24771
|
+
headers,
|
|
24772
|
+
})
|
|
24773
|
+
.catch((e) => {
|
|
24774
|
+
this.logger.error(formatErrors(e));
|
|
24775
|
+
throw e;
|
|
24776
|
+
});
|
|
24777
|
+
}),
|
|
24778
|
+
/**
|
|
24779
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.disable_inform&apiName=patch&version=v1 click to debug }
|
|
24780
|
+
*
|
|
24781
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.disable_inform&version=v1 document }
|
|
24782
|
+
*/
|
|
24783
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
24784
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
24785
|
+
return this.httpInstance
|
|
24786
|
+
.request({
|
|
24787
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`, path),
|
|
24788
|
+
method: "PATCH",
|
|
24789
|
+
data,
|
|
24790
|
+
params,
|
|
24791
|
+
headers,
|
|
24792
|
+
})
|
|
24793
|
+
.catch((e) => {
|
|
24794
|
+
this.logger.error(formatErrors(e));
|
|
24795
|
+
throw e;
|
|
24796
|
+
});
|
|
24797
|
+
}),
|
|
24798
|
+
},
|
|
23883
24799
|
/**
|
|
23884
24800
|
* reserve_config.form
|
|
23885
24801
|
*/
|
|
@@ -24316,6 +25232,46 @@ class Client$1 {
|
|
|
24316
25232
|
throw e;
|
|
24317
25233
|
});
|
|
24318
25234
|
}),
|
|
25235
|
+
/**
|
|
25236
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_checkboard_access_code&version=v1 click to debug }
|
|
25237
|
+
*
|
|
25238
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_checkboard_access_code&project=vc&resource=room_config&version=v1 document }
|
|
25239
|
+
*/
|
|
25240
|
+
setCheckboardAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25241
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25242
|
+
return this.httpInstance
|
|
25243
|
+
.request({
|
|
25244
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`, path),
|
|
25245
|
+
method: "POST",
|
|
25246
|
+
data,
|
|
25247
|
+
params,
|
|
25248
|
+
headers,
|
|
25249
|
+
})
|
|
25250
|
+
.catch((e) => {
|
|
25251
|
+
this.logger.error(formatErrors(e));
|
|
25252
|
+
throw e;
|
|
25253
|
+
});
|
|
25254
|
+
}),
|
|
25255
|
+
/**
|
|
25256
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=room_config&apiName=set_room_access_code&version=v1 click to debug }
|
|
25257
|
+
*
|
|
25258
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=set_room_access_code&project=vc&resource=room_config&version=v1 document }
|
|
25259
|
+
*/
|
|
25260
|
+
setRoomAccessCode: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25261
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25262
|
+
return this.httpInstance
|
|
25263
|
+
.request({
|
|
25264
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`, path),
|
|
25265
|
+
method: "POST",
|
|
25266
|
+
data,
|
|
25267
|
+
params,
|
|
25268
|
+
headers,
|
|
25269
|
+
})
|
|
25270
|
+
.catch((e) => {
|
|
25271
|
+
this.logger.error(formatErrors(e));
|
|
25272
|
+
throw e;
|
|
25273
|
+
});
|
|
25274
|
+
}),
|
|
24319
25275
|
},
|
|
24320
25276
|
/**
|
|
24321
25277
|
* 会议室层级
|
|
@@ -25085,7 +26041,83 @@ class Client$1 {
|
|
|
25085
26041
|
/**
|
|
25086
26042
|
|
|
25087
26043
|
*/
|
|
25088
|
-
this.workplace = {
|
|
26044
|
+
this.workplace = {
|
|
26045
|
+
/**
|
|
26046
|
+
* custom_workplace_access_data
|
|
26047
|
+
*/
|
|
26048
|
+
customWorkplaceAccessData: {
|
|
26049
|
+
/**
|
|
26050
|
+
* {@link https://open.feishu.cn/api-explorer?project=workplace&resource=custom_workplace_access_data&apiName=search&version=v1 click to debug }
|
|
26051
|
+
*
|
|
26052
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=custom_workplace_access_data&version=v1 document }
|
|
26053
|
+
*/
|
|
26054
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26055
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26056
|
+
return this.httpInstance
|
|
26057
|
+
.request({
|
|
26058
|
+
url: fillApiPath(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`, path),
|
|
26059
|
+
method: "POST",
|
|
26060
|
+
data,
|
|
26061
|
+
params,
|
|
26062
|
+
headers,
|
|
26063
|
+
})
|
|
26064
|
+
.catch((e) => {
|
|
26065
|
+
this.logger.error(formatErrors(e));
|
|
26066
|
+
throw e;
|
|
26067
|
+
});
|
|
26068
|
+
}),
|
|
26069
|
+
},
|
|
26070
|
+
/**
|
|
26071
|
+
* workplace_access_data
|
|
26072
|
+
*/
|
|
26073
|
+
workplaceAccessData: {
|
|
26074
|
+
/**
|
|
26075
|
+
* {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_access_data&apiName=search&version=v1 click to debug }
|
|
26076
|
+
*
|
|
26077
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_access_data&version=v1 document }
|
|
26078
|
+
*/
|
|
26079
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26080
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26081
|
+
return this.httpInstance
|
|
26082
|
+
.request({
|
|
26083
|
+
url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`, path),
|
|
26084
|
+
method: "POST",
|
|
26085
|
+
data,
|
|
26086
|
+
params,
|
|
26087
|
+
headers,
|
|
26088
|
+
})
|
|
26089
|
+
.catch((e) => {
|
|
26090
|
+
this.logger.error(formatErrors(e));
|
|
26091
|
+
throw e;
|
|
26092
|
+
});
|
|
26093
|
+
}),
|
|
26094
|
+
},
|
|
26095
|
+
/**
|
|
26096
|
+
* workplace_block_access_data
|
|
26097
|
+
*/
|
|
26098
|
+
workplaceBlockAccessData: {
|
|
26099
|
+
/**
|
|
26100
|
+
* {@link https://open.feishu.cn/api-explorer?project=workplace&resource=workplace_block_access_data&apiName=search&version=v1 click to debug }
|
|
26101
|
+
*
|
|
26102
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=workplace&resource=workplace_block_access_data&version=v1 document }
|
|
26103
|
+
*/
|
|
26104
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26105
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26106
|
+
return this.httpInstance
|
|
26107
|
+
.request({
|
|
26108
|
+
url: fillApiPath(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`, path),
|
|
26109
|
+
method: "POST",
|
|
26110
|
+
data,
|
|
26111
|
+
params,
|
|
26112
|
+
headers,
|
|
26113
|
+
})
|
|
26114
|
+
.catch((e) => {
|
|
26115
|
+
this.logger.error(formatErrors(e));
|
|
26116
|
+
throw e;
|
|
26117
|
+
});
|
|
26118
|
+
}),
|
|
26119
|
+
},
|
|
26120
|
+
};
|
|
25089
26121
|
}
|
|
25090
26122
|
}
|
|
25091
26123
|
|