@larksuiteoapi/node-sdk 1.26.0 → 1.28.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 +2 -2
- package/README.zh.md +2 -2
- package/es/index.js +400 -8
- package/lib/index.js +400 -8
- package/package.json +1 -1
- package/types/index.d.ts +3314 -492
package/lib/index.js
CHANGED
|
@@ -1211,7 +1211,7 @@ class Client$Y extends Client$Z {
|
|
|
1211
1211
|
constructor() {
|
|
1212
1212
|
super(...arguments);
|
|
1213
1213
|
/**
|
|
1214
|
-
*
|
|
1214
|
+
* 管理后台-行为审计
|
|
1215
1215
|
*/
|
|
1216
1216
|
this.admin = {
|
|
1217
1217
|
/**
|
|
@@ -25983,6 +25983,76 @@ class Client$I extends Client$J {
|
|
|
25983
25983
|
throw e;
|
|
25984
25984
|
});
|
|
25985
25985
|
}),
|
|
25986
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25987
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25988
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
25989
|
+
const res = yield this.httpInstance
|
|
25990
|
+
.request({
|
|
25991
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
|
|
25992
|
+
method: "POST",
|
|
25993
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
25994
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
25995
|
+
})
|
|
25996
|
+
.catch((e) => {
|
|
25997
|
+
this.logger.error(formatErrors(e));
|
|
25998
|
+
});
|
|
25999
|
+
return res;
|
|
26000
|
+
});
|
|
26001
|
+
const Iterable = {
|
|
26002
|
+
[Symbol.asyncIterator]() {
|
|
26003
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
26004
|
+
let hasMore = true;
|
|
26005
|
+
let pageToken;
|
|
26006
|
+
while (hasMore) {
|
|
26007
|
+
try {
|
|
26008
|
+
const res = yield __await(sendRequest({
|
|
26009
|
+
headers,
|
|
26010
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
26011
|
+
data,
|
|
26012
|
+
}));
|
|
26013
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
26014
|
+
// @ts-ignore
|
|
26015
|
+
has_more,
|
|
26016
|
+
// @ts-ignore
|
|
26017
|
+
page_token,
|
|
26018
|
+
// @ts-ignore
|
|
26019
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
26020
|
+
yield yield __await(rest);
|
|
26021
|
+
hasMore = Boolean(has_more);
|
|
26022
|
+
pageToken = page_token || next_page_token;
|
|
26023
|
+
}
|
|
26024
|
+
catch (e) {
|
|
26025
|
+
yield yield __await(null);
|
|
26026
|
+
break;
|
|
26027
|
+
}
|
|
26028
|
+
}
|
|
26029
|
+
});
|
|
26030
|
+
},
|
|
26031
|
+
};
|
|
26032
|
+
return Iterable;
|
|
26033
|
+
}),
|
|
26034
|
+
/**
|
|
26035
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=search&version=v2 click to debug }
|
|
26036
|
+
*
|
|
26037
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=pre_hire&version=v2 document }
|
|
26038
|
+
*
|
|
26039
|
+
* 根据部门 ID,上级部门查询部门列表
|
|
26040
|
+
*/
|
|
26041
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26042
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26043
|
+
return this.httpInstance
|
|
26044
|
+
.request({
|
|
26045
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
|
|
26046
|
+
method: "POST",
|
|
26047
|
+
data,
|
|
26048
|
+
params,
|
|
26049
|
+
headers,
|
|
26050
|
+
})
|
|
26051
|
+
.catch((e) => {
|
|
26052
|
+
this.logger.error(formatErrors(e));
|
|
26053
|
+
throw e;
|
|
26054
|
+
});
|
|
26055
|
+
}),
|
|
25986
26056
|
},
|
|
25987
26057
|
/**
|
|
25988
26058
|
* probation.assessment
|
|
@@ -27534,7 +27604,7 @@ class Client$E extends Client$F {
|
|
|
27534
27604
|
constructor() {
|
|
27535
27605
|
super(...arguments);
|
|
27536
27606
|
/**
|
|
27537
|
-
*
|
|
27607
|
+
* 云文档-文件管理
|
|
27538
27608
|
*/
|
|
27539
27609
|
this.drive = {
|
|
27540
27610
|
/**
|
|
@@ -27928,7 +27998,7 @@ class Client$E extends Client$F {
|
|
|
27928
27998
|
}),
|
|
27929
27999
|
},
|
|
27930
28000
|
/**
|
|
27931
|
-
*
|
|
28001
|
+
* 文件
|
|
27932
28002
|
*/
|
|
27933
28003
|
file: {
|
|
27934
28004
|
/**
|
|
@@ -29622,7 +29692,7 @@ class Client$E extends Client$F {
|
|
|
29622
29692
|
}),
|
|
29623
29693
|
},
|
|
29624
29694
|
/**
|
|
29625
|
-
*
|
|
29695
|
+
* 文件
|
|
29626
29696
|
*/
|
|
29627
29697
|
file: {
|
|
29628
29698
|
/**
|
|
@@ -40614,7 +40684,7 @@ class Client$s extends Client$t {
|
|
|
40614
40684
|
}),
|
|
40615
40685
|
},
|
|
40616
40686
|
/**
|
|
40617
|
-
*
|
|
40687
|
+
* 消息 - 消息卡片
|
|
40618
40688
|
*/
|
|
40619
40689
|
message: {
|
|
40620
40690
|
/**
|
|
@@ -42677,7 +42747,7 @@ class Client$s extends Client$t {
|
|
|
42677
42747
|
}),
|
|
42678
42748
|
},
|
|
42679
42749
|
/**
|
|
42680
|
-
*
|
|
42750
|
+
* 消息 - 消息卡片
|
|
42681
42751
|
*/
|
|
42682
42752
|
message: {
|
|
42683
42753
|
/**
|
|
@@ -43493,6 +43563,263 @@ class Client$s extends Client$t {
|
|
|
43493
43563
|
}),
|
|
43494
43564
|
},
|
|
43495
43565
|
},
|
|
43566
|
+
v2: {
|
|
43567
|
+
/**
|
|
43568
|
+
* app_feed_card.batch
|
|
43569
|
+
*/
|
|
43570
|
+
appFeedCardBatch: {
|
|
43571
|
+
/**
|
|
43572
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=app_feed_card.batch&apiName=delete&version=v2 click to debug }
|
|
43573
|
+
*
|
|
43574
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=im&resource=app_feed_card.batch&version=v2 document }
|
|
43575
|
+
*/
|
|
43576
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43577
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43578
|
+
return this.httpInstance
|
|
43579
|
+
.request({
|
|
43580
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/app_feed_card/batch`, path),
|
|
43581
|
+
method: "DELETE",
|
|
43582
|
+
data,
|
|
43583
|
+
params,
|
|
43584
|
+
headers,
|
|
43585
|
+
})
|
|
43586
|
+
.catch((e) => {
|
|
43587
|
+
this.logger.error(formatErrors(e));
|
|
43588
|
+
throw e;
|
|
43589
|
+
});
|
|
43590
|
+
}),
|
|
43591
|
+
/**
|
|
43592
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=app_feed_card.batch&apiName=update&version=v2 click to debug }
|
|
43593
|
+
*
|
|
43594
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=app_feed_card.batch&version=v2 document }
|
|
43595
|
+
*/
|
|
43596
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43597
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43598
|
+
return this.httpInstance
|
|
43599
|
+
.request({
|
|
43600
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/app_feed_card/batch`, path),
|
|
43601
|
+
method: "PUT",
|
|
43602
|
+
data,
|
|
43603
|
+
params,
|
|
43604
|
+
headers,
|
|
43605
|
+
})
|
|
43606
|
+
.catch((e) => {
|
|
43607
|
+
this.logger.error(formatErrors(e));
|
|
43608
|
+
throw e;
|
|
43609
|
+
});
|
|
43610
|
+
}),
|
|
43611
|
+
},
|
|
43612
|
+
/**
|
|
43613
|
+
* app_feed_card
|
|
43614
|
+
*/
|
|
43615
|
+
appFeedCard: {
|
|
43616
|
+
/**
|
|
43617
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=app_feed_card&apiName=create&version=v2 click to debug }
|
|
43618
|
+
*
|
|
43619
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=im&resource=app_feed_card&version=v2 document }
|
|
43620
|
+
*/
|
|
43621
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43622
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43623
|
+
return this.httpInstance
|
|
43624
|
+
.request({
|
|
43625
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/app_feed_card`, path),
|
|
43626
|
+
method: "POST",
|
|
43627
|
+
data,
|
|
43628
|
+
params,
|
|
43629
|
+
headers,
|
|
43630
|
+
})
|
|
43631
|
+
.catch((e) => {
|
|
43632
|
+
this.logger.error(formatErrors(e));
|
|
43633
|
+
throw e;
|
|
43634
|
+
});
|
|
43635
|
+
}),
|
|
43636
|
+
},
|
|
43637
|
+
/**
|
|
43638
|
+
* biz_entity_tag_relation
|
|
43639
|
+
*/
|
|
43640
|
+
bizEntityTagRelation: {
|
|
43641
|
+
/**
|
|
43642
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=biz_entity_tag_relation&apiName=create&version=v2 click to debug }
|
|
43643
|
+
*
|
|
43644
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=im&resource=biz_entity_tag_relation&version=v2 document }
|
|
43645
|
+
*/
|
|
43646
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43647
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43648
|
+
return this.httpInstance
|
|
43649
|
+
.request({
|
|
43650
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`, path),
|
|
43651
|
+
method: "POST",
|
|
43652
|
+
data,
|
|
43653
|
+
params,
|
|
43654
|
+
headers,
|
|
43655
|
+
})
|
|
43656
|
+
.catch((e) => {
|
|
43657
|
+
this.logger.error(formatErrors(e));
|
|
43658
|
+
throw e;
|
|
43659
|
+
});
|
|
43660
|
+
}),
|
|
43661
|
+
/**
|
|
43662
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=biz_entity_tag_relation&apiName=get&version=v2 click to debug }
|
|
43663
|
+
*
|
|
43664
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=im&resource=biz_entity_tag_relation&version=v2 document }
|
|
43665
|
+
*/
|
|
43666
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43667
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43668
|
+
return this.httpInstance
|
|
43669
|
+
.request({
|
|
43670
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`, path),
|
|
43671
|
+
method: "GET",
|
|
43672
|
+
data,
|
|
43673
|
+
params,
|
|
43674
|
+
headers,
|
|
43675
|
+
})
|
|
43676
|
+
.catch((e) => {
|
|
43677
|
+
this.logger.error(formatErrors(e));
|
|
43678
|
+
throw e;
|
|
43679
|
+
});
|
|
43680
|
+
}),
|
|
43681
|
+
/**
|
|
43682
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=biz_entity_tag_relation&apiName=update&version=v2 click to debug }
|
|
43683
|
+
*
|
|
43684
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=biz_entity_tag_relation&version=v2 document }
|
|
43685
|
+
*/
|
|
43686
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43687
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43688
|
+
return this.httpInstance
|
|
43689
|
+
.request({
|
|
43690
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`, path),
|
|
43691
|
+
method: "PUT",
|
|
43692
|
+
data,
|
|
43693
|
+
params,
|
|
43694
|
+
headers,
|
|
43695
|
+
})
|
|
43696
|
+
.catch((e) => {
|
|
43697
|
+
this.logger.error(formatErrors(e));
|
|
43698
|
+
throw e;
|
|
43699
|
+
});
|
|
43700
|
+
}),
|
|
43701
|
+
},
|
|
43702
|
+
/**
|
|
43703
|
+
* chat_button
|
|
43704
|
+
*/
|
|
43705
|
+
chatButton: {
|
|
43706
|
+
/**
|
|
43707
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat_button&apiName=update&version=v2 click to debug }
|
|
43708
|
+
*
|
|
43709
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=im&resource=chat_button&version=v2 document }
|
|
43710
|
+
*/
|
|
43711
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43712
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43713
|
+
return this.httpInstance
|
|
43714
|
+
.request({
|
|
43715
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/chat_button`, path),
|
|
43716
|
+
method: "PUT",
|
|
43717
|
+
data,
|
|
43718
|
+
params,
|
|
43719
|
+
headers,
|
|
43720
|
+
})
|
|
43721
|
+
.catch((e) => {
|
|
43722
|
+
this.logger.error(formatErrors(e));
|
|
43723
|
+
throw e;
|
|
43724
|
+
});
|
|
43725
|
+
}),
|
|
43726
|
+
},
|
|
43727
|
+
/**
|
|
43728
|
+
* feed_card
|
|
43729
|
+
*/
|
|
43730
|
+
feedCard: {
|
|
43731
|
+
/**
|
|
43732
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=feed_card&apiName=patch&version=v2 click to debug }
|
|
43733
|
+
*
|
|
43734
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=im&resource=feed_card&version=v2 document }
|
|
43735
|
+
*/
|
|
43736
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43737
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43738
|
+
return this.httpInstance
|
|
43739
|
+
.request({
|
|
43740
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/feed_cards/:feed_card_id`, path),
|
|
43741
|
+
method: "PATCH",
|
|
43742
|
+
data,
|
|
43743
|
+
params,
|
|
43744
|
+
headers,
|
|
43745
|
+
})
|
|
43746
|
+
.catch((e) => {
|
|
43747
|
+
this.logger.error(formatErrors(e));
|
|
43748
|
+
throw e;
|
|
43749
|
+
});
|
|
43750
|
+
}),
|
|
43751
|
+
},
|
|
43752
|
+
/**
|
|
43753
|
+
* tag
|
|
43754
|
+
*/
|
|
43755
|
+
tag: {
|
|
43756
|
+
/**
|
|
43757
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=tag&apiName=create&version=v2 click to debug }
|
|
43758
|
+
*
|
|
43759
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=im&resource=tag&version=v2 document }
|
|
43760
|
+
*/
|
|
43761
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43762
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43763
|
+
return this.httpInstance
|
|
43764
|
+
.request({
|
|
43765
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/tags`, path),
|
|
43766
|
+
method: "POST",
|
|
43767
|
+
data,
|
|
43768
|
+
params,
|
|
43769
|
+
headers,
|
|
43770
|
+
})
|
|
43771
|
+
.catch((e) => {
|
|
43772
|
+
this.logger.error(formatErrors(e));
|
|
43773
|
+
throw e;
|
|
43774
|
+
});
|
|
43775
|
+
}),
|
|
43776
|
+
/**
|
|
43777
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=tag&apiName=patch&version=v2 click to debug }
|
|
43778
|
+
*
|
|
43779
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=im&resource=tag&version=v2 document }
|
|
43780
|
+
*/
|
|
43781
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43782
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43783
|
+
return this.httpInstance
|
|
43784
|
+
.request({
|
|
43785
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/tags/:tag_id`, path),
|
|
43786
|
+
method: "PATCH",
|
|
43787
|
+
data,
|
|
43788
|
+
params,
|
|
43789
|
+
headers,
|
|
43790
|
+
})
|
|
43791
|
+
.catch((e) => {
|
|
43792
|
+
this.logger.error(formatErrors(e));
|
|
43793
|
+
throw e;
|
|
43794
|
+
});
|
|
43795
|
+
}),
|
|
43796
|
+
},
|
|
43797
|
+
/**
|
|
43798
|
+
* url_preview
|
|
43799
|
+
*/
|
|
43800
|
+
urlPreview: {
|
|
43801
|
+
/**
|
|
43802
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=url_preview&apiName=batch_update&version=v2 click to debug }
|
|
43803
|
+
*
|
|
43804
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=im&resource=url_preview&version=v2 document }
|
|
43805
|
+
*/
|
|
43806
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
43807
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
43808
|
+
return this.httpInstance
|
|
43809
|
+
.request({
|
|
43810
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/url_previews/batch_update`, path),
|
|
43811
|
+
method: "POST",
|
|
43812
|
+
data,
|
|
43813
|
+
params,
|
|
43814
|
+
headers,
|
|
43815
|
+
})
|
|
43816
|
+
.catch((e) => {
|
|
43817
|
+
this.logger.error(formatErrors(e));
|
|
43818
|
+
throw e;
|
|
43819
|
+
});
|
|
43820
|
+
}),
|
|
43821
|
+
},
|
|
43822
|
+
},
|
|
43496
43823
|
};
|
|
43497
43824
|
}
|
|
43498
43825
|
}
|
|
@@ -47304,6 +47631,35 @@ class Client$m extends Client$n {
|
|
|
47304
47631
|
});
|
|
47305
47632
|
}),
|
|
47306
47633
|
},
|
|
47634
|
+
/**
|
|
47635
|
+
* 复盘(灰度租户可见)
|
|
47636
|
+
*/
|
|
47637
|
+
review: {
|
|
47638
|
+
/**
|
|
47639
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=review&apiName=query&version=v1 click to debug }
|
|
47640
|
+
*
|
|
47641
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/review/query document }
|
|
47642
|
+
*
|
|
47643
|
+
* 查询复盘信息
|
|
47644
|
+
*
|
|
47645
|
+
* 根据周期和用户查询复盘信息。
|
|
47646
|
+
*/
|
|
47647
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47648
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47649
|
+
return this.httpInstance
|
|
47650
|
+
.request({
|
|
47651
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/reviews/query`, path),
|
|
47652
|
+
method: "GET",
|
|
47653
|
+
data,
|
|
47654
|
+
params,
|
|
47655
|
+
headers,
|
|
47656
|
+
})
|
|
47657
|
+
.catch((e) => {
|
|
47658
|
+
this.logger.error(formatErrors(e));
|
|
47659
|
+
throw e;
|
|
47660
|
+
});
|
|
47661
|
+
}),
|
|
47662
|
+
},
|
|
47307
47663
|
/**
|
|
47308
47664
|
* 用户OKR
|
|
47309
47665
|
*/
|
|
@@ -47606,6 +47962,35 @@ class Client$m extends Client$n {
|
|
|
47606
47962
|
});
|
|
47607
47963
|
}),
|
|
47608
47964
|
},
|
|
47965
|
+
/**
|
|
47966
|
+
* 复盘(灰度租户可见)
|
|
47967
|
+
*/
|
|
47968
|
+
review: {
|
|
47969
|
+
/**
|
|
47970
|
+
* {@link https://open.feishu.cn/api-explorer?project=okr&resource=review&apiName=query&version=v1 click to debug }
|
|
47971
|
+
*
|
|
47972
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/review/query document }
|
|
47973
|
+
*
|
|
47974
|
+
* 查询复盘信息
|
|
47975
|
+
*
|
|
47976
|
+
* 根据周期和用户查询复盘信息。
|
|
47977
|
+
*/
|
|
47978
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
47979
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
47980
|
+
return this.httpInstance
|
|
47981
|
+
.request({
|
|
47982
|
+
url: fillApiPath(`${this.domain}/open-apis/okr/v1/reviews/query`, path),
|
|
47983
|
+
method: "GET",
|
|
47984
|
+
data,
|
|
47985
|
+
params,
|
|
47986
|
+
headers,
|
|
47987
|
+
})
|
|
47988
|
+
.catch((e) => {
|
|
47989
|
+
this.logger.error(formatErrors(e));
|
|
47990
|
+
throw e;
|
|
47991
|
+
});
|
|
47992
|
+
}),
|
|
47993
|
+
},
|
|
47609
47994
|
/**
|
|
47610
47995
|
* 用户OKR
|
|
47611
47996
|
*/
|
|
@@ -49764,7 +50149,7 @@ class Client$c extends Client$d {
|
|
|
49764
50149
|
}),
|
|
49765
50150
|
},
|
|
49766
50151
|
/**
|
|
49767
|
-
*
|
|
50152
|
+
* 单元格
|
|
49768
50153
|
*/
|
|
49769
50154
|
spreadsheetSheet: {
|
|
49770
50155
|
/**
|
|
@@ -50467,7 +50852,7 @@ class Client$c extends Client$d {
|
|
|
50467
50852
|
}),
|
|
50468
50853
|
},
|
|
50469
50854
|
/**
|
|
50470
|
-
*
|
|
50855
|
+
* 单元格
|
|
50471
50856
|
*/
|
|
50472
50857
|
spreadsheetSheet: {
|
|
50473
50858
|
/**
|
|
@@ -59462,6 +59847,13 @@ class RequestHandle {
|
|
|
59462
59847
|
return Object.assign(Object.assign({ [CEventType]: get__default["default"](targetData, 'event.type') }, event), rest);
|
|
59463
59848
|
}
|
|
59464
59849
|
checkIsCardEventValidated(data) {
|
|
59850
|
+
/**
|
|
59851
|
+
* 1. new message card encrypt ('encrypt' in data)
|
|
59852
|
+
* 2. new message card but not encrypt ('schema' in data)
|
|
59853
|
+
*/
|
|
59854
|
+
if ('encrypt' in data || 'schema' in data) {
|
|
59855
|
+
return this.checkIsEventValidated(data);
|
|
59856
|
+
}
|
|
59465
59857
|
const { 'x-lark-request-timestamp': timestamp, 'x-lark-request-nonce': nonce, 'x-lark-signature': signature, } = data.headers;
|
|
59466
59858
|
if (!this.verificationToken) {
|
|
59467
59859
|
return true;
|