@larksuiteoapi/node-sdk 1.16.1 → 1.17.1
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 +8 -0
- package/README.zh.md +8 -0
- package/es/index.js +378 -6
- package/lib/index.js +378 -6
- package/package.json +1 -1
- package/types/index.d.ts +752 -17
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
|
/**
|
|
@@ -9752,7 +9752,7 @@ class Client$1 {
|
|
|
9752
9752
|
}),
|
|
9753
9753
|
},
|
|
9754
9754
|
/**
|
|
9755
|
-
*
|
|
9755
|
+
* 异步任务状态
|
|
9756
9756
|
*/
|
|
9757
9757
|
file: {
|
|
9758
9758
|
/**
|
|
@@ -10508,7 +10508,7 @@ class Client$1 {
|
|
|
10508
10508
|
}),
|
|
10509
10509
|
},
|
|
10510
10510
|
/**
|
|
10511
|
-
*
|
|
10511
|
+
* 素材
|
|
10512
10512
|
*/
|
|
10513
10513
|
media: {
|
|
10514
10514
|
/**
|
|
@@ -12781,7 +12781,7 @@ class Client$1 {
|
|
|
12781
12781
|
*/
|
|
12782
12782
|
this.hire = {
|
|
12783
12783
|
/**
|
|
12784
|
-
*
|
|
12784
|
+
* 入职
|
|
12785
12785
|
*/
|
|
12786
12786
|
application: {
|
|
12787
12787
|
/**
|
|
@@ -13113,6 +13113,83 @@ class Client$1 {
|
|
|
13113
13113
|
});
|
|
13114
13114
|
}),
|
|
13115
13115
|
},
|
|
13116
|
+
/**
|
|
13117
|
+
* 评估(灰度租户可见)
|
|
13118
|
+
*/
|
|
13119
|
+
evaluation: {
|
|
13120
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13121
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13122
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13123
|
+
const res = yield this.httpInstance
|
|
13124
|
+
.request({
|
|
13125
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/evaluations`, path),
|
|
13126
|
+
method: "GET",
|
|
13127
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
13128
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
13129
|
+
})
|
|
13130
|
+
.catch((e) => {
|
|
13131
|
+
this.logger.error(formatErrors(e));
|
|
13132
|
+
});
|
|
13133
|
+
return res;
|
|
13134
|
+
});
|
|
13135
|
+
const Iterable = {
|
|
13136
|
+
[Symbol.asyncIterator]() {
|
|
13137
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
13138
|
+
let hasMore = true;
|
|
13139
|
+
let pageToken;
|
|
13140
|
+
while (hasMore) {
|
|
13141
|
+
try {
|
|
13142
|
+
const res = yield __await(sendRequest({
|
|
13143
|
+
headers,
|
|
13144
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
13145
|
+
data,
|
|
13146
|
+
}));
|
|
13147
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
13148
|
+
// @ts-ignore
|
|
13149
|
+
has_more,
|
|
13150
|
+
// @ts-ignore
|
|
13151
|
+
page_token,
|
|
13152
|
+
// @ts-ignore
|
|
13153
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
13154
|
+
yield yield __await(rest);
|
|
13155
|
+
hasMore = Boolean(has_more);
|
|
13156
|
+
pageToken = page_token || next_page_token;
|
|
13157
|
+
}
|
|
13158
|
+
catch (e) {
|
|
13159
|
+
yield yield __await(null);
|
|
13160
|
+
break;
|
|
13161
|
+
}
|
|
13162
|
+
}
|
|
13163
|
+
});
|
|
13164
|
+
},
|
|
13165
|
+
};
|
|
13166
|
+
return Iterable;
|
|
13167
|
+
}),
|
|
13168
|
+
/**
|
|
13169
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=evaluation&apiName=list&version=v1 click to debug }
|
|
13170
|
+
*
|
|
13171
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/evaluation/list document }
|
|
13172
|
+
*
|
|
13173
|
+
* 获取简历评估信息
|
|
13174
|
+
*
|
|
13175
|
+
* 获取简历评估信息
|
|
13176
|
+
*/
|
|
13177
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13178
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13179
|
+
return this.httpInstance
|
|
13180
|
+
.request({
|
|
13181
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/evaluations`, path),
|
|
13182
|
+
method: "GET",
|
|
13183
|
+
data,
|
|
13184
|
+
params,
|
|
13185
|
+
headers,
|
|
13186
|
+
})
|
|
13187
|
+
.catch((e) => {
|
|
13188
|
+
this.logger.error(formatErrors(e));
|
|
13189
|
+
throw e;
|
|
13190
|
+
});
|
|
13191
|
+
}),
|
|
13192
|
+
},
|
|
13116
13193
|
/**
|
|
13117
13194
|
* 导入外部系统信息(灰度租户可见)
|
|
13118
13195
|
*/
|
|
@@ -13513,6 +13590,151 @@ class Client$1 {
|
|
|
13513
13590
|
});
|
|
13514
13591
|
}),
|
|
13515
13592
|
},
|
|
13593
|
+
/**
|
|
13594
|
+
* Offer
|
|
13595
|
+
*/
|
|
13596
|
+
offer: {
|
|
13597
|
+
/**
|
|
13598
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=create&version=v1 click to debug }
|
|
13599
|
+
*
|
|
13600
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/create document }
|
|
13601
|
+
*
|
|
13602
|
+
* 创建 Offer
|
|
13603
|
+
*
|
|
13604
|
+
* 创建 Offer 时,需传入本文档中标注为必传的参数,其余参数是否必传参考「获取 Offer 申请表模板信息」的参数定义
|
|
13605
|
+
*/
|
|
13606
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13607
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13608
|
+
return this.httpInstance
|
|
13609
|
+
.request({
|
|
13610
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers`, path),
|
|
13611
|
+
method: "POST",
|
|
13612
|
+
data,
|
|
13613
|
+
params,
|
|
13614
|
+
headers,
|
|
13615
|
+
})
|
|
13616
|
+
.catch((e) => {
|
|
13617
|
+
this.logger.error(formatErrors(e));
|
|
13618
|
+
throw e;
|
|
13619
|
+
});
|
|
13620
|
+
}),
|
|
13621
|
+
/**
|
|
13622
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=get&version=v1 click to debug }
|
|
13623
|
+
*
|
|
13624
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/get document }
|
|
13625
|
+
*
|
|
13626
|
+
* 获取 Offer 详情
|
|
13627
|
+
*
|
|
13628
|
+
* 根据 Offer ID 获取 Offer 详细信息
|
|
13629
|
+
*/
|
|
13630
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13631
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13632
|
+
return this.httpInstance
|
|
13633
|
+
.request({
|
|
13634
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers/:offer_id`, path),
|
|
13635
|
+
method: "GET",
|
|
13636
|
+
data,
|
|
13637
|
+
params,
|
|
13638
|
+
headers,
|
|
13639
|
+
})
|
|
13640
|
+
.catch((e) => {
|
|
13641
|
+
this.logger.error(formatErrors(e));
|
|
13642
|
+
throw e;
|
|
13643
|
+
});
|
|
13644
|
+
}),
|
|
13645
|
+
/**
|
|
13646
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=intern_offer_status&version=v1 click to debug }
|
|
13647
|
+
*
|
|
13648
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/intern_offer_status document }
|
|
13649
|
+
*
|
|
13650
|
+
* 更新实习 Offer 入/离职状态
|
|
13651
|
+
*
|
|
13652
|
+
* 对「实习待入职」状态的实习 Offer 确认入职、放弃入职,或对「实习已入职」状态的实习 Offer 操作离职
|
|
13653
|
+
*/
|
|
13654
|
+
internOfferStatus: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13655
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13656
|
+
return this.httpInstance
|
|
13657
|
+
.request({
|
|
13658
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`, path),
|
|
13659
|
+
method: "POST",
|
|
13660
|
+
data,
|
|
13661
|
+
params,
|
|
13662
|
+
headers,
|
|
13663
|
+
})
|
|
13664
|
+
.catch((e) => {
|
|
13665
|
+
this.logger.error(formatErrors(e));
|
|
13666
|
+
throw e;
|
|
13667
|
+
});
|
|
13668
|
+
}),
|
|
13669
|
+
/**
|
|
13670
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=list&version=v1 click to debug }
|
|
13671
|
+
*
|
|
13672
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/list document }
|
|
13673
|
+
*
|
|
13674
|
+
* 获取 Offer 列表
|
|
13675
|
+
*
|
|
13676
|
+
* 根据人才 ID 获取 Offer 列表
|
|
13677
|
+
*/
|
|
13678
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13679
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13680
|
+
return this.httpInstance
|
|
13681
|
+
.request({
|
|
13682
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers`, path),
|
|
13683
|
+
method: "GET",
|
|
13684
|
+
data,
|
|
13685
|
+
params,
|
|
13686
|
+
headers,
|
|
13687
|
+
})
|
|
13688
|
+
.catch((e) => {
|
|
13689
|
+
this.logger.error(formatErrors(e));
|
|
13690
|
+
throw e;
|
|
13691
|
+
});
|
|
13692
|
+
}),
|
|
13693
|
+
/**
|
|
13694
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=offer_status&version=v1 click to debug }
|
|
13695
|
+
*
|
|
13696
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=offer_status&project=hire&resource=offer&version=v1 document }
|
|
13697
|
+
*/
|
|
13698
|
+
offerStatus: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13699
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13700
|
+
return this.httpInstance
|
|
13701
|
+
.request({
|
|
13702
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`, path),
|
|
13703
|
+
method: "PATCH",
|
|
13704
|
+
data,
|
|
13705
|
+
params,
|
|
13706
|
+
headers,
|
|
13707
|
+
})
|
|
13708
|
+
.catch((e) => {
|
|
13709
|
+
this.logger.error(formatErrors(e));
|
|
13710
|
+
throw e;
|
|
13711
|
+
});
|
|
13712
|
+
}),
|
|
13713
|
+
/**
|
|
13714
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=offer&apiName=update&version=v1 click to debug }
|
|
13715
|
+
*
|
|
13716
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer/update document }
|
|
13717
|
+
*
|
|
13718
|
+
* 更新 Offer 信息
|
|
13719
|
+
*
|
|
13720
|
+
* 1. 更新 Offer 时,需传入本文档中标注为必传的参数,其余参数是否必传参考「获取 Offer 申请表模板信息」的参数定义;;2. 对系统中已存在的 offer 进行更新的,若更新 offer 中含有「修改需审批」的字段,更新后原 Offer 的审批会自动撤回,需要重新发起审批
|
|
13721
|
+
*/
|
|
13722
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13723
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13724
|
+
return this.httpInstance
|
|
13725
|
+
.request({
|
|
13726
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/offers/:offer_id`, path),
|
|
13727
|
+
method: "PUT",
|
|
13728
|
+
data,
|
|
13729
|
+
params,
|
|
13730
|
+
headers,
|
|
13731
|
+
})
|
|
13732
|
+
.catch((e) => {
|
|
13733
|
+
this.logger.error(formatErrors(e));
|
|
13734
|
+
throw e;
|
|
13735
|
+
});
|
|
13736
|
+
}),
|
|
13737
|
+
},
|
|
13516
13738
|
/**
|
|
13517
13739
|
* offer_schema
|
|
13518
13740
|
*/
|
|
@@ -13538,6 +13760,35 @@ class Client$1 {
|
|
|
13538
13760
|
});
|
|
13539
13761
|
}),
|
|
13540
13762
|
},
|
|
13763
|
+
/**
|
|
13764
|
+
* 问卷(灰度租户可见)
|
|
13765
|
+
*/
|
|
13766
|
+
questionnaire: {
|
|
13767
|
+
/**
|
|
13768
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=questionnaire&apiName=list&version=v1 click to debug }
|
|
13769
|
+
*
|
|
13770
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/questionnaire/list document }
|
|
13771
|
+
*
|
|
13772
|
+
* 获取面试满意度问卷列表
|
|
13773
|
+
*
|
|
13774
|
+
* 获取面试满意度问卷列表
|
|
13775
|
+
*/
|
|
13776
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13777
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13778
|
+
return this.httpInstance
|
|
13779
|
+
.request({
|
|
13780
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/questionnaires`, path),
|
|
13781
|
+
method: "GET",
|
|
13782
|
+
data,
|
|
13783
|
+
params,
|
|
13784
|
+
headers,
|
|
13785
|
+
})
|
|
13786
|
+
.catch((e) => {
|
|
13787
|
+
this.logger.error(formatErrors(e));
|
|
13788
|
+
throw e;
|
|
13789
|
+
});
|
|
13790
|
+
}),
|
|
13791
|
+
},
|
|
13541
13792
|
/**
|
|
13542
13793
|
* 内推
|
|
13543
13794
|
*/
|
|
@@ -15086,7 +15337,7 @@ class Client$1 {
|
|
|
15086
15337
|
}),
|
|
15087
15338
|
},
|
|
15088
15339
|
/**
|
|
15089
|
-
*
|
|
15340
|
+
* 消息
|
|
15090
15341
|
*/
|
|
15091
15342
|
message: {
|
|
15092
15343
|
/**
|
|
@@ -15141,6 +15392,28 @@ class Client$1 {
|
|
|
15141
15392
|
throw e;
|
|
15142
15393
|
});
|
|
15143
15394
|
}),
|
|
15395
|
+
/**
|
|
15396
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=forward&version=v1 click to debug }
|
|
15397
|
+
*
|
|
15398
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=forward&project=im&resource=message&version=v1 document }
|
|
15399
|
+
*
|
|
15400
|
+
* 转发一条消息
|
|
15401
|
+
*/
|
|
15402
|
+
forward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15403
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15404
|
+
return this.httpInstance
|
|
15405
|
+
.request({
|
|
15406
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`, path),
|
|
15407
|
+
method: "POST",
|
|
15408
|
+
data,
|
|
15409
|
+
params,
|
|
15410
|
+
headers,
|
|
15411
|
+
})
|
|
15412
|
+
.catch((e) => {
|
|
15413
|
+
this.logger.error(formatErrors(e));
|
|
15414
|
+
throw e;
|
|
15415
|
+
});
|
|
15416
|
+
}),
|
|
15144
15417
|
/**
|
|
15145
15418
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=get&version=v1 click to debug }
|
|
15146
15419
|
*
|
|
@@ -15243,6 +15516,28 @@ class Client$1 {
|
|
|
15243
15516
|
throw e;
|
|
15244
15517
|
});
|
|
15245
15518
|
}),
|
|
15519
|
+
/**
|
|
15520
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=merge_forward&version=v1 click to debug }
|
|
15521
|
+
*
|
|
15522
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=merge_forward&project=im&resource=message&version=v1 document }
|
|
15523
|
+
*
|
|
15524
|
+
* 合并转发多条消息
|
|
15525
|
+
*/
|
|
15526
|
+
mergeForward: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15527
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15528
|
+
return this.httpInstance
|
|
15529
|
+
.request({
|
|
15530
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/messages/merge_forward`, path),
|
|
15531
|
+
method: "POST",
|
|
15532
|
+
data,
|
|
15533
|
+
params,
|
|
15534
|
+
headers,
|
|
15535
|
+
})
|
|
15536
|
+
.catch((e) => {
|
|
15537
|
+
this.logger.error(formatErrors(e));
|
|
15538
|
+
throw e;
|
|
15539
|
+
});
|
|
15540
|
+
}),
|
|
15246
15541
|
/**
|
|
15247
15542
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=message&apiName=patch&version=v1 click to debug }
|
|
15248
15543
|
*
|
|
@@ -18451,7 +18746,7 @@ class Client$1 {
|
|
|
18451
18746
|
}),
|
|
18452
18747
|
},
|
|
18453
18748
|
/**
|
|
18454
|
-
*
|
|
18749
|
+
* 单元格
|
|
18455
18750
|
*/
|
|
18456
18751
|
spreadsheetSheet: {
|
|
18457
18752
|
/**
|
|
@@ -19732,6 +20027,83 @@ class Client$1 {
|
|
|
19732
20027
|
* 视频会议
|
|
19733
20028
|
*/
|
|
19734
20029
|
this.vc = {
|
|
20030
|
+
/**
|
|
20031
|
+
* 告警中心
|
|
20032
|
+
*/
|
|
20033
|
+
alert: {
|
|
20034
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20035
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20036
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
20037
|
+
const res = yield this.httpInstance
|
|
20038
|
+
.request({
|
|
20039
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/alerts`, path),
|
|
20040
|
+
method: "GET",
|
|
20041
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
20042
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
20043
|
+
})
|
|
20044
|
+
.catch((e) => {
|
|
20045
|
+
this.logger.error(formatErrors(e));
|
|
20046
|
+
});
|
|
20047
|
+
return res;
|
|
20048
|
+
});
|
|
20049
|
+
const Iterable = {
|
|
20050
|
+
[Symbol.asyncIterator]() {
|
|
20051
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
20052
|
+
let hasMore = true;
|
|
20053
|
+
let pageToken;
|
|
20054
|
+
while (hasMore) {
|
|
20055
|
+
try {
|
|
20056
|
+
const res = yield __await(sendRequest({
|
|
20057
|
+
headers,
|
|
20058
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
20059
|
+
data,
|
|
20060
|
+
}));
|
|
20061
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
20062
|
+
// @ts-ignore
|
|
20063
|
+
has_more,
|
|
20064
|
+
// @ts-ignore
|
|
20065
|
+
page_token,
|
|
20066
|
+
// @ts-ignore
|
|
20067
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
20068
|
+
yield yield __await(rest);
|
|
20069
|
+
hasMore = Boolean(has_more);
|
|
20070
|
+
pageToken = page_token || next_page_token;
|
|
20071
|
+
}
|
|
20072
|
+
catch (e) {
|
|
20073
|
+
yield yield __await(null);
|
|
20074
|
+
break;
|
|
20075
|
+
}
|
|
20076
|
+
}
|
|
20077
|
+
});
|
|
20078
|
+
},
|
|
20079
|
+
};
|
|
20080
|
+
return Iterable;
|
|
20081
|
+
}),
|
|
20082
|
+
/**
|
|
20083
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=alert&apiName=list&version=v1 click to debug }
|
|
20084
|
+
*
|
|
20085
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/vc-v1/alert/list document }
|
|
20086
|
+
*
|
|
20087
|
+
* 获取告警记录
|
|
20088
|
+
*
|
|
20089
|
+
* 获取特定条件下租户的设备告警记录
|
|
20090
|
+
*/
|
|
20091
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20092
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20093
|
+
return this.httpInstance
|
|
20094
|
+
.request({
|
|
20095
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/alerts`, path),
|
|
20096
|
+
method: "GET",
|
|
20097
|
+
data,
|
|
20098
|
+
params,
|
|
20099
|
+
headers,
|
|
20100
|
+
})
|
|
20101
|
+
.catch((e) => {
|
|
20102
|
+
this.logger.error(formatErrors(e));
|
|
20103
|
+
throw e;
|
|
20104
|
+
});
|
|
20105
|
+
}),
|
|
20106
|
+
},
|
|
19735
20107
|
/**
|
|
19736
20108
|
* 导出
|
|
19737
20109
|
*/
|