@larksuiteoapi/node-sdk 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +936 -14
- package/lib/index.js +936 -14
- package/package.json +1 -1
- package/types/index.d.ts +1164 -55
package/es/index.js
CHANGED
|
@@ -1305,7 +1305,7 @@ class Client$_ extends Client$$ {
|
|
|
1305
1305
|
constructor() {
|
|
1306
1306
|
super(...arguments);
|
|
1307
1307
|
/**
|
|
1308
|
-
*
|
|
1308
|
+
* 管理后台-行为审计
|
|
1309
1309
|
*/
|
|
1310
1310
|
this.admin = {
|
|
1311
1311
|
/**
|
|
@@ -2777,6 +2777,320 @@ class Client$Z extends Client$_ {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
}),
|
|
2779
2779
|
},
|
|
2780
|
+
/**
|
|
2781
|
+
* app.data_asset
|
|
2782
|
+
*/
|
|
2783
|
+
appDataAsset: {
|
|
2784
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2785
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2786
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
2787
|
+
const res = yield this.httpInstance
|
|
2788
|
+
.request({
|
|
2789
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`, path),
|
|
2790
|
+
method: "GET",
|
|
2791
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
2792
|
+
params: pickBy(innerPayload.params, identity),
|
|
2793
|
+
data,
|
|
2794
|
+
paramsSerializer: (params) => stringify(params, {
|
|
2795
|
+
arrayFormat: "repeat",
|
|
2796
|
+
}),
|
|
2797
|
+
})
|
|
2798
|
+
.catch((e) => {
|
|
2799
|
+
this.logger.error(formatErrors(e));
|
|
2800
|
+
});
|
|
2801
|
+
return res;
|
|
2802
|
+
});
|
|
2803
|
+
const Iterable = {
|
|
2804
|
+
[Symbol.asyncIterator]() {
|
|
2805
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
2806
|
+
let hasMore = true;
|
|
2807
|
+
let pageToken;
|
|
2808
|
+
while (hasMore) {
|
|
2809
|
+
try {
|
|
2810
|
+
const res = yield __await(sendRequest({
|
|
2811
|
+
headers,
|
|
2812
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
2813
|
+
data,
|
|
2814
|
+
}));
|
|
2815
|
+
const _b = get(res, "data") || {}, {
|
|
2816
|
+
// @ts-ignore
|
|
2817
|
+
has_more,
|
|
2818
|
+
// @ts-ignore
|
|
2819
|
+
page_token,
|
|
2820
|
+
// @ts-ignore
|
|
2821
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
2822
|
+
yield yield __await(rest);
|
|
2823
|
+
hasMore = Boolean(has_more);
|
|
2824
|
+
pageToken = page_token || next_page_token;
|
|
2825
|
+
}
|
|
2826
|
+
catch (e) {
|
|
2827
|
+
yield yield __await(null);
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2832
|
+
},
|
|
2833
|
+
};
|
|
2834
|
+
return Iterable;
|
|
2835
|
+
}),
|
|
2836
|
+
/**
|
|
2837
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.data_asset&apiName=list&version=v1 click to debug }
|
|
2838
|
+
*
|
|
2839
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=app.data_asset&version=v1 document }
|
|
2840
|
+
*
|
|
2841
|
+
* 获取数据与知识列表
|
|
2842
|
+
*/
|
|
2843
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2844
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2845
|
+
return this.httpInstance
|
|
2846
|
+
.request({
|
|
2847
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`, path),
|
|
2848
|
+
method: "GET",
|
|
2849
|
+
data,
|
|
2850
|
+
params,
|
|
2851
|
+
headers,
|
|
2852
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
2853
|
+
})
|
|
2854
|
+
.catch((e) => {
|
|
2855
|
+
this.logger.error(formatErrors(e));
|
|
2856
|
+
throw e;
|
|
2857
|
+
});
|
|
2858
|
+
}),
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
* app.data_asset_tag
|
|
2862
|
+
*/
|
|
2863
|
+
appDataAssetTag: {
|
|
2864
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2865
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2866
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
2867
|
+
const res = yield this.httpInstance
|
|
2868
|
+
.request({
|
|
2869
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`, path),
|
|
2870
|
+
method: "GET",
|
|
2871
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
2872
|
+
params: pickBy(innerPayload.params, identity),
|
|
2873
|
+
data,
|
|
2874
|
+
paramsSerializer: (params) => stringify(params, {
|
|
2875
|
+
arrayFormat: "repeat",
|
|
2876
|
+
}),
|
|
2877
|
+
})
|
|
2878
|
+
.catch((e) => {
|
|
2879
|
+
this.logger.error(formatErrors(e));
|
|
2880
|
+
});
|
|
2881
|
+
return res;
|
|
2882
|
+
});
|
|
2883
|
+
const Iterable = {
|
|
2884
|
+
[Symbol.asyncIterator]() {
|
|
2885
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
2886
|
+
let hasMore = true;
|
|
2887
|
+
let pageToken;
|
|
2888
|
+
while (hasMore) {
|
|
2889
|
+
try {
|
|
2890
|
+
const res = yield __await(sendRequest({
|
|
2891
|
+
headers,
|
|
2892
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
2893
|
+
data,
|
|
2894
|
+
}));
|
|
2895
|
+
const _b = get(res, "data") || {}, {
|
|
2896
|
+
// @ts-ignore
|
|
2897
|
+
has_more,
|
|
2898
|
+
// @ts-ignore
|
|
2899
|
+
page_token,
|
|
2900
|
+
// @ts-ignore
|
|
2901
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
2902
|
+
yield yield __await(rest);
|
|
2903
|
+
hasMore = Boolean(has_more);
|
|
2904
|
+
pageToken = page_token || next_page_token;
|
|
2905
|
+
}
|
|
2906
|
+
catch (e) {
|
|
2907
|
+
yield yield __await(null);
|
|
2908
|
+
break;
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
});
|
|
2912
|
+
},
|
|
2913
|
+
};
|
|
2914
|
+
return Iterable;
|
|
2915
|
+
}),
|
|
2916
|
+
/**
|
|
2917
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.data_asset_tag&apiName=list&version=v1 click to debug }
|
|
2918
|
+
*
|
|
2919
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=app.data_asset_tag&version=v1 document }
|
|
2920
|
+
*
|
|
2921
|
+
* 获取数据与知识分类列表
|
|
2922
|
+
*/
|
|
2923
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2924
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2925
|
+
return this.httpInstance
|
|
2926
|
+
.request({
|
|
2927
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`, path),
|
|
2928
|
+
method: "GET",
|
|
2929
|
+
data,
|
|
2930
|
+
params,
|
|
2931
|
+
headers,
|
|
2932
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
2933
|
+
})
|
|
2934
|
+
.catch((e) => {
|
|
2935
|
+
this.logger.error(formatErrors(e));
|
|
2936
|
+
throw e;
|
|
2937
|
+
});
|
|
2938
|
+
}),
|
|
2939
|
+
},
|
|
2940
|
+
/**
|
|
2941
|
+
* app.knowledge
|
|
2942
|
+
*/
|
|
2943
|
+
appKnowledge: {
|
|
2944
|
+
/**
|
|
2945
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.knowledge&apiName=ask&version=v1 click to debug }
|
|
2946
|
+
*
|
|
2947
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=ask&project=aily&resource=app.knowledge&version=v1 document }
|
|
2948
|
+
*
|
|
2949
|
+
* 执行一次数据知识问答
|
|
2950
|
+
*/
|
|
2951
|
+
ask: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2952
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2953
|
+
return this.httpInstance
|
|
2954
|
+
.request({
|
|
2955
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/knowledges/ask`, path),
|
|
2956
|
+
method: "POST",
|
|
2957
|
+
data,
|
|
2958
|
+
params,
|
|
2959
|
+
headers,
|
|
2960
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
2961
|
+
})
|
|
2962
|
+
.catch((e) => {
|
|
2963
|
+
this.logger.error(formatErrors(e));
|
|
2964
|
+
throw e;
|
|
2965
|
+
});
|
|
2966
|
+
}),
|
|
2967
|
+
},
|
|
2968
|
+
/**
|
|
2969
|
+
* app.skill
|
|
2970
|
+
*/
|
|
2971
|
+
appSkill: {
|
|
2972
|
+
/**
|
|
2973
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.skill&apiName=get&version=v1 click to debug }
|
|
2974
|
+
*
|
|
2975
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=aily&resource=app.skill&version=v1 document }
|
|
2976
|
+
*
|
|
2977
|
+
* 该 API 用于获取某个飞书智能伙伴应用的技能(Skill)的详细信息。
|
|
2978
|
+
*/
|
|
2979
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2980
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2981
|
+
return this.httpInstance
|
|
2982
|
+
.request({
|
|
2983
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id`, path),
|
|
2984
|
+
method: "GET",
|
|
2985
|
+
data,
|
|
2986
|
+
params,
|
|
2987
|
+
headers,
|
|
2988
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
2989
|
+
})
|
|
2990
|
+
.catch((e) => {
|
|
2991
|
+
this.logger.error(formatErrors(e));
|
|
2992
|
+
throw e;
|
|
2993
|
+
});
|
|
2994
|
+
}),
|
|
2995
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2996
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2997
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
2998
|
+
const res = yield this.httpInstance
|
|
2999
|
+
.request({
|
|
3000
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`, path),
|
|
3001
|
+
method: "GET",
|
|
3002
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
3003
|
+
params: pickBy(innerPayload.params, identity),
|
|
3004
|
+
data,
|
|
3005
|
+
paramsSerializer: (params) => stringify(params, {
|
|
3006
|
+
arrayFormat: "repeat",
|
|
3007
|
+
}),
|
|
3008
|
+
})
|
|
3009
|
+
.catch((e) => {
|
|
3010
|
+
this.logger.error(formatErrors(e));
|
|
3011
|
+
});
|
|
3012
|
+
return res;
|
|
3013
|
+
});
|
|
3014
|
+
const Iterable = {
|
|
3015
|
+
[Symbol.asyncIterator]() {
|
|
3016
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
3017
|
+
let hasMore = true;
|
|
3018
|
+
let pageToken;
|
|
3019
|
+
while (hasMore) {
|
|
3020
|
+
try {
|
|
3021
|
+
const res = yield __await(sendRequest({
|
|
3022
|
+
headers,
|
|
3023
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
3024
|
+
data,
|
|
3025
|
+
}));
|
|
3026
|
+
const _b = get(res, "data") || {}, {
|
|
3027
|
+
// @ts-ignore
|
|
3028
|
+
has_more,
|
|
3029
|
+
// @ts-ignore
|
|
3030
|
+
page_token,
|
|
3031
|
+
// @ts-ignore
|
|
3032
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
3033
|
+
yield yield __await(rest);
|
|
3034
|
+
hasMore = Boolean(has_more);
|
|
3035
|
+
pageToken = page_token || next_page_token;
|
|
3036
|
+
}
|
|
3037
|
+
catch (e) {
|
|
3038
|
+
yield yield __await(null);
|
|
3039
|
+
break;
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
},
|
|
3044
|
+
};
|
|
3045
|
+
return Iterable;
|
|
3046
|
+
}),
|
|
3047
|
+
/**
|
|
3048
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.skill&apiName=list&version=v1 click to debug }
|
|
3049
|
+
*
|
|
3050
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=aily&resource=app.skill&version=v1 document }
|
|
3051
|
+
*
|
|
3052
|
+
* 该 API 用于批量获取飞书智能伙伴应用的技能(Skill)的详细信息
|
|
3053
|
+
*/
|
|
3054
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3055
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3056
|
+
return this.httpInstance
|
|
3057
|
+
.request({
|
|
3058
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`, path),
|
|
3059
|
+
method: "GET",
|
|
3060
|
+
data,
|
|
3061
|
+
params,
|
|
3062
|
+
headers,
|
|
3063
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
3064
|
+
})
|
|
3065
|
+
.catch((e) => {
|
|
3066
|
+
this.logger.error(formatErrors(e));
|
|
3067
|
+
throw e;
|
|
3068
|
+
});
|
|
3069
|
+
}),
|
|
3070
|
+
/**
|
|
3071
|
+
* {@link https://open.feishu.cn/api-explorer?project=aily&resource=app.skill&apiName=start&version=v1 click to debug }
|
|
3072
|
+
*
|
|
3073
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=start&project=aily&resource=app.skill&version=v1 document }
|
|
3074
|
+
*
|
|
3075
|
+
* 该 API 用于执行飞书智能伙伴应用的技能(Skill)获取输出
|
|
3076
|
+
*/
|
|
3077
|
+
start: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3078
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3079
|
+
return this.httpInstance
|
|
3080
|
+
.request({
|
|
3081
|
+
url: fillApiPath(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id/start`, path),
|
|
3082
|
+
method: "POST",
|
|
3083
|
+
data,
|
|
3084
|
+
params,
|
|
3085
|
+
headers,
|
|
3086
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
3087
|
+
})
|
|
3088
|
+
.catch((e) => {
|
|
3089
|
+
this.logger.error(formatErrors(e));
|
|
3090
|
+
throw e;
|
|
3091
|
+
});
|
|
3092
|
+
}),
|
|
3093
|
+
},
|
|
2780
3094
|
},
|
|
2781
3095
|
};
|
|
2782
3096
|
}
|
|
@@ -4213,7 +4527,7 @@ class Client$X extends Client$Y {
|
|
|
4213
4527
|
*/
|
|
4214
4528
|
this.approval = {
|
|
4215
4529
|
/**
|
|
4216
|
-
*
|
|
4530
|
+
* 事件
|
|
4217
4531
|
*/
|
|
4218
4532
|
approval: {
|
|
4219
4533
|
/**
|
|
@@ -4508,7 +4822,7 @@ class Client$X extends Client$Y {
|
|
|
4508
4822
|
}),
|
|
4509
4823
|
},
|
|
4510
4824
|
/**
|
|
4511
|
-
*
|
|
4825
|
+
* 原生审批实例
|
|
4512
4826
|
*/
|
|
4513
4827
|
instance: {
|
|
4514
4828
|
/**
|
|
@@ -5010,7 +5324,7 @@ class Client$X extends Client$Y {
|
|
|
5010
5324
|
}),
|
|
5011
5325
|
},
|
|
5012
5326
|
/**
|
|
5013
|
-
*
|
|
5327
|
+
* 审批查询
|
|
5014
5328
|
*/
|
|
5015
5329
|
task: {
|
|
5016
5330
|
/**
|
|
@@ -5216,7 +5530,7 @@ class Client$X extends Client$Y {
|
|
|
5216
5530
|
},
|
|
5217
5531
|
v4: {
|
|
5218
5532
|
/**
|
|
5219
|
-
*
|
|
5533
|
+
* 事件
|
|
5220
5534
|
*/
|
|
5221
5535
|
approval: {
|
|
5222
5536
|
/**
|
|
@@ -5513,7 +5827,7 @@ class Client$X extends Client$Y {
|
|
|
5513
5827
|
}),
|
|
5514
5828
|
},
|
|
5515
5829
|
/**
|
|
5516
|
-
*
|
|
5830
|
+
* 原生审批实例
|
|
5517
5831
|
*/
|
|
5518
5832
|
instance: {
|
|
5519
5833
|
/**
|
|
@@ -6021,7 +6335,7 @@ class Client$X extends Client$Y {
|
|
|
6021
6335
|
}),
|
|
6022
6336
|
},
|
|
6023
6337
|
/**
|
|
6024
|
-
*
|
|
6338
|
+
* 审批查询
|
|
6025
6339
|
*/
|
|
6026
6340
|
task: {
|
|
6027
6341
|
/**
|
|
@@ -16956,7 +17270,7 @@ class Client$L extends Client$M {
|
|
|
16956
17270
|
constructor() {
|
|
16957
17271
|
super(...arguments);
|
|
16958
17272
|
/**
|
|
16959
|
-
*
|
|
17273
|
+
* 搜索
|
|
16960
17274
|
*/
|
|
16961
17275
|
this.contact = {
|
|
16962
17276
|
/**
|
|
@@ -27662,6 +27976,84 @@ class Client$I extends Client$J {
|
|
|
27662
27976
|
},
|
|
27663
27977
|
},
|
|
27664
27978
|
v2: {
|
|
27979
|
+
/**
|
|
27980
|
+
* approver
|
|
27981
|
+
*/
|
|
27982
|
+
approver: {
|
|
27983
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27984
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27985
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
27986
|
+
const res = yield this.httpInstance
|
|
27987
|
+
.request({
|
|
27988
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
27989
|
+
method: "GET",
|
|
27990
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
27991
|
+
params: pickBy(innerPayload.params, identity),
|
|
27992
|
+
data,
|
|
27993
|
+
paramsSerializer: (params) => stringify(params, {
|
|
27994
|
+
arrayFormat: "repeat",
|
|
27995
|
+
}),
|
|
27996
|
+
})
|
|
27997
|
+
.catch((e) => {
|
|
27998
|
+
this.logger.error(formatErrors(e));
|
|
27999
|
+
});
|
|
28000
|
+
return res;
|
|
28001
|
+
});
|
|
28002
|
+
const Iterable = {
|
|
28003
|
+
[Symbol.asyncIterator]() {
|
|
28004
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
28005
|
+
let hasMore = true;
|
|
28006
|
+
let pageToken;
|
|
28007
|
+
while (hasMore) {
|
|
28008
|
+
try {
|
|
28009
|
+
const res = yield __await(sendRequest({
|
|
28010
|
+
headers,
|
|
28011
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
28012
|
+
data,
|
|
28013
|
+
}));
|
|
28014
|
+
const _b = get(res, "data") || {}, {
|
|
28015
|
+
// @ts-ignore
|
|
28016
|
+
has_more,
|
|
28017
|
+
// @ts-ignore
|
|
28018
|
+
page_token,
|
|
28019
|
+
// @ts-ignore
|
|
28020
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
28021
|
+
yield yield __await(rest);
|
|
28022
|
+
hasMore = Boolean(has_more);
|
|
28023
|
+
pageToken = page_token || next_page_token;
|
|
28024
|
+
}
|
|
28025
|
+
catch (e) {
|
|
28026
|
+
yield yield __await(null);
|
|
28027
|
+
break;
|
|
28028
|
+
}
|
|
28029
|
+
}
|
|
28030
|
+
});
|
|
28031
|
+
},
|
|
28032
|
+
};
|
|
28033
|
+
return Iterable;
|
|
28034
|
+
}),
|
|
28035
|
+
/**
|
|
28036
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=approver&apiName=list&version=v2 click to debug }
|
|
28037
|
+
*
|
|
28038
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=approver&version=v2 document }
|
|
28039
|
+
*/
|
|
28040
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28041
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28042
|
+
return this.httpInstance
|
|
28043
|
+
.request({
|
|
28044
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/approvers`, path),
|
|
28045
|
+
method: "GET",
|
|
28046
|
+
data,
|
|
28047
|
+
params,
|
|
28048
|
+
headers,
|
|
28049
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28050
|
+
})
|
|
28051
|
+
.catch((e) => {
|
|
28052
|
+
this.logger.error(formatErrors(e));
|
|
28053
|
+
throw e;
|
|
28054
|
+
});
|
|
28055
|
+
}),
|
|
28056
|
+
},
|
|
27665
28057
|
/**
|
|
27666
28058
|
* basic_info.bank
|
|
27667
28059
|
*/
|
|
@@ -28547,6 +28939,27 @@ class Client$I extends Client$J {
|
|
|
28547
28939
|
* company
|
|
28548
28940
|
*/
|
|
28549
28941
|
company: {
|
|
28942
|
+
/**
|
|
28943
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=active&version=v2 click to debug }
|
|
28944
|
+
*
|
|
28945
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=company&version=v2 document }
|
|
28946
|
+
*/
|
|
28947
|
+
active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28948
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28949
|
+
return this.httpInstance
|
|
28950
|
+
.request({
|
|
28951
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/companies/active`, path),
|
|
28952
|
+
method: "POST",
|
|
28953
|
+
data,
|
|
28954
|
+
params,
|
|
28955
|
+
headers,
|
|
28956
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
28957
|
+
})
|
|
28958
|
+
.catch((e) => {
|
|
28959
|
+
this.logger.error(formatErrors(e));
|
|
28960
|
+
throw e;
|
|
28961
|
+
});
|
|
28962
|
+
}),
|
|
28550
28963
|
/**
|
|
28551
28964
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=batch_get&version=v2 click to debug }
|
|
28552
28965
|
*
|
|
@@ -28570,6 +28983,79 @@ class Client$I extends Client$J {
|
|
|
28570
28983
|
throw e;
|
|
28571
28984
|
});
|
|
28572
28985
|
}),
|
|
28986
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
28987
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
28988
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
28989
|
+
const res = yield this.httpInstance
|
|
28990
|
+
.request({
|
|
28991
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`, path),
|
|
28992
|
+
method: "GET",
|
|
28993
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
28994
|
+
params: pickBy(innerPayload.params, identity),
|
|
28995
|
+
data,
|
|
28996
|
+
paramsSerializer: (params) => stringify(params, {
|
|
28997
|
+
arrayFormat: "repeat",
|
|
28998
|
+
}),
|
|
28999
|
+
})
|
|
29000
|
+
.catch((e) => {
|
|
29001
|
+
this.logger.error(formatErrors(e));
|
|
29002
|
+
});
|
|
29003
|
+
return res;
|
|
29004
|
+
});
|
|
29005
|
+
const Iterable = {
|
|
29006
|
+
[Symbol.asyncIterator]() {
|
|
29007
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
29008
|
+
let hasMore = true;
|
|
29009
|
+
let pageToken;
|
|
29010
|
+
while (hasMore) {
|
|
29011
|
+
try {
|
|
29012
|
+
const res = yield __await(sendRequest({
|
|
29013
|
+
headers,
|
|
29014
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
29015
|
+
data,
|
|
29016
|
+
}));
|
|
29017
|
+
const _b = get(res, "data") || {}, {
|
|
29018
|
+
// @ts-ignore
|
|
29019
|
+
has_more,
|
|
29020
|
+
// @ts-ignore
|
|
29021
|
+
page_token,
|
|
29022
|
+
// @ts-ignore
|
|
29023
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
29024
|
+
yield yield __await(rest);
|
|
29025
|
+
hasMore = Boolean(has_more);
|
|
29026
|
+
pageToken = page_token || next_page_token;
|
|
29027
|
+
}
|
|
29028
|
+
catch (e) {
|
|
29029
|
+
yield yield __await(null);
|
|
29030
|
+
break;
|
|
29031
|
+
}
|
|
29032
|
+
}
|
|
29033
|
+
});
|
|
29034
|
+
},
|
|
29035
|
+
};
|
|
29036
|
+
return Iterable;
|
|
29037
|
+
}),
|
|
29038
|
+
/**
|
|
29039
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=query_recent_change&version=v2 click to debug }
|
|
29040
|
+
*
|
|
29041
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=company&version=v2 document }
|
|
29042
|
+
*/
|
|
29043
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29044
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29045
|
+
return this.httpInstance
|
|
29046
|
+
.request({
|
|
29047
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`, path),
|
|
29048
|
+
method: "GET",
|
|
29049
|
+
data,
|
|
29050
|
+
params,
|
|
29051
|
+
headers,
|
|
29052
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
29053
|
+
})
|
|
29054
|
+
.catch((e) => {
|
|
29055
|
+
this.logger.error(formatErrors(e));
|
|
29056
|
+
throw e;
|
|
29057
|
+
});
|
|
29058
|
+
}),
|
|
28573
29059
|
},
|
|
28574
29060
|
/**
|
|
28575
29061
|
* contract
|
|
@@ -29613,6 +30099,29 @@ class Client$I extends Client$J {
|
|
|
29613
30099
|
* location
|
|
29614
30100
|
*/
|
|
29615
30101
|
location: {
|
|
30102
|
+
/**
|
|
30103
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=active&version=v2 click to debug }
|
|
30104
|
+
*
|
|
30105
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=active&project=corehr&resource=location&version=v2 document }
|
|
30106
|
+
*
|
|
30107
|
+
* 启停/停用地点
|
|
30108
|
+
*/
|
|
30109
|
+
active: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30111
|
+
return this.httpInstance
|
|
30112
|
+
.request({
|
|
30113
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/active`, path),
|
|
30114
|
+
method: "POST",
|
|
30115
|
+
data,
|
|
30116
|
+
params,
|
|
30117
|
+
headers,
|
|
30118
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30119
|
+
})
|
|
30120
|
+
.catch((e) => {
|
|
30121
|
+
this.logger.error(formatErrors(e));
|
|
30122
|
+
throw e;
|
|
30123
|
+
});
|
|
30124
|
+
}),
|
|
29616
30125
|
/**
|
|
29617
30126
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
|
|
29618
30127
|
*
|
|
@@ -29636,6 +30145,103 @@ class Client$I extends Client$J {
|
|
|
29636
30145
|
throw e;
|
|
29637
30146
|
});
|
|
29638
30147
|
}),
|
|
30148
|
+
/**
|
|
30149
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=patch&version=v2 click to debug }
|
|
30150
|
+
*
|
|
30151
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=location&version=v2 document }
|
|
30152
|
+
*
|
|
30153
|
+
* 更新地点
|
|
30154
|
+
*/
|
|
30155
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30156
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30157
|
+
return this.httpInstance
|
|
30158
|
+
.request({
|
|
30159
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/:location_id`, path),
|
|
30160
|
+
method: "PATCH",
|
|
30161
|
+
data,
|
|
30162
|
+
params,
|
|
30163
|
+
headers,
|
|
30164
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30165
|
+
})
|
|
30166
|
+
.catch((e) => {
|
|
30167
|
+
this.logger.error(formatErrors(e));
|
|
30168
|
+
throw e;
|
|
30169
|
+
});
|
|
30170
|
+
}),
|
|
30171
|
+
},
|
|
30172
|
+
/**
|
|
30173
|
+
* location.address
|
|
30174
|
+
*/
|
|
30175
|
+
locationAddress: {
|
|
30176
|
+
/**
|
|
30177
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location.address&apiName=create&version=v2 click to debug }
|
|
30178
|
+
*
|
|
30179
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=location.address&version=v2 document }
|
|
30180
|
+
*
|
|
30181
|
+
* 添加地点地址
|
|
30182
|
+
*/
|
|
30183
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30184
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30185
|
+
return this.httpInstance
|
|
30186
|
+
.request({
|
|
30187
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses`, path),
|
|
30188
|
+
method: "POST",
|
|
30189
|
+
data,
|
|
30190
|
+
params,
|
|
30191
|
+
headers,
|
|
30192
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30193
|
+
})
|
|
30194
|
+
.catch((e) => {
|
|
30195
|
+
this.logger.error(formatErrors(e));
|
|
30196
|
+
throw e;
|
|
30197
|
+
});
|
|
30198
|
+
}),
|
|
30199
|
+
/**
|
|
30200
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location.address&apiName=delete&version=v2 click to debug }
|
|
30201
|
+
*
|
|
30202
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=location.address&version=v2 document }
|
|
30203
|
+
*
|
|
30204
|
+
* 删除地点地址
|
|
30205
|
+
*/
|
|
30206
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30207
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30208
|
+
return this.httpInstance
|
|
30209
|
+
.request({
|
|
30210
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`, path),
|
|
30211
|
+
method: "DELETE",
|
|
30212
|
+
data,
|
|
30213
|
+
params,
|
|
30214
|
+
headers,
|
|
30215
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30216
|
+
})
|
|
30217
|
+
.catch((e) => {
|
|
30218
|
+
this.logger.error(formatErrors(e));
|
|
30219
|
+
throw e;
|
|
30220
|
+
});
|
|
30221
|
+
}),
|
|
30222
|
+
/**
|
|
30223
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location.address&apiName=patch&version=v2 click to debug }
|
|
30224
|
+
*
|
|
30225
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=location.address&version=v2 document }
|
|
30226
|
+
*
|
|
30227
|
+
* 更新地点地址
|
|
30228
|
+
*/
|
|
30229
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30230
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30231
|
+
return this.httpInstance
|
|
30232
|
+
.request({
|
|
30233
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`, path),
|
|
30234
|
+
method: "PATCH",
|
|
30235
|
+
data,
|
|
30236
|
+
params,
|
|
30237
|
+
headers,
|
|
30238
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30239
|
+
})
|
|
30240
|
+
.catch((e) => {
|
|
30241
|
+
this.logger.error(formatErrors(e));
|
|
30242
|
+
throw e;
|
|
30243
|
+
});
|
|
30244
|
+
}),
|
|
29639
30245
|
},
|
|
29640
30246
|
/**
|
|
29641
30247
|
* person
|
|
@@ -30318,6 +30924,84 @@ class Client$I extends Client$J {
|
|
|
30318
30924
|
});
|
|
30319
30925
|
}),
|
|
30320
30926
|
},
|
|
30927
|
+
/**
|
|
30928
|
+
* workforce_plan
|
|
30929
|
+
*/
|
|
30930
|
+
workforcePlan: {
|
|
30931
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30932
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30933
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30934
|
+
const res = yield this.httpInstance
|
|
30935
|
+
.request({
|
|
30936
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plans`, path),
|
|
30937
|
+
method: "GET",
|
|
30938
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
30939
|
+
params: pickBy(innerPayload.params, identity),
|
|
30940
|
+
data,
|
|
30941
|
+
paramsSerializer: (params) => stringify(params, {
|
|
30942
|
+
arrayFormat: "repeat",
|
|
30943
|
+
}),
|
|
30944
|
+
})
|
|
30945
|
+
.catch((e) => {
|
|
30946
|
+
this.logger.error(formatErrors(e));
|
|
30947
|
+
});
|
|
30948
|
+
return res;
|
|
30949
|
+
});
|
|
30950
|
+
const Iterable = {
|
|
30951
|
+
[Symbol.asyncIterator]() {
|
|
30952
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30953
|
+
let hasMore = true;
|
|
30954
|
+
let pageToken;
|
|
30955
|
+
while (hasMore) {
|
|
30956
|
+
try {
|
|
30957
|
+
const res = yield __await(sendRequest({
|
|
30958
|
+
headers,
|
|
30959
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30960
|
+
data,
|
|
30961
|
+
}));
|
|
30962
|
+
const _b = get(res, "data") || {}, {
|
|
30963
|
+
// @ts-ignore
|
|
30964
|
+
has_more,
|
|
30965
|
+
// @ts-ignore
|
|
30966
|
+
page_token,
|
|
30967
|
+
// @ts-ignore
|
|
30968
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30969
|
+
yield yield __await(rest);
|
|
30970
|
+
hasMore = Boolean(has_more);
|
|
30971
|
+
pageToken = page_token || next_page_token;
|
|
30972
|
+
}
|
|
30973
|
+
catch (e) {
|
|
30974
|
+
yield yield __await(null);
|
|
30975
|
+
break;
|
|
30976
|
+
}
|
|
30977
|
+
}
|
|
30978
|
+
});
|
|
30979
|
+
},
|
|
30980
|
+
};
|
|
30981
|
+
return Iterable;
|
|
30982
|
+
}),
|
|
30983
|
+
/**
|
|
30984
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan&apiName=list&version=v2 click to debug }
|
|
30985
|
+
*
|
|
30986
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=workforce_plan&version=v2 document }
|
|
30987
|
+
*/
|
|
30988
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30989
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30990
|
+
return this.httpInstance
|
|
30991
|
+
.request({
|
|
30992
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plans`, path),
|
|
30993
|
+
method: "GET",
|
|
30994
|
+
data,
|
|
30995
|
+
params,
|
|
30996
|
+
headers,
|
|
30997
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
30998
|
+
})
|
|
30999
|
+
.catch((e) => {
|
|
31000
|
+
this.logger.error(formatErrors(e));
|
|
31001
|
+
throw e;
|
|
31002
|
+
});
|
|
31003
|
+
}),
|
|
31004
|
+
},
|
|
30321
31005
|
/**
|
|
30322
31006
|
* workforce_plan_detail
|
|
30323
31007
|
*/
|
|
@@ -32166,7 +32850,7 @@ class Client$E extends Client$F {
|
|
|
32166
32850
|
}),
|
|
32167
32851
|
},
|
|
32168
32852
|
/**
|
|
32169
|
-
*
|
|
32853
|
+
* 文件夹
|
|
32170
32854
|
*/
|
|
32171
32855
|
file: {
|
|
32172
32856
|
/**
|
|
@@ -33039,7 +33723,7 @@ class Client$E extends Client$F {
|
|
|
33039
33723
|
}),
|
|
33040
33724
|
},
|
|
33041
33725
|
/**
|
|
33042
|
-
*
|
|
33726
|
+
* 素材
|
|
33043
33727
|
*/
|
|
33044
33728
|
media: {
|
|
33045
33729
|
/**
|
|
@@ -33986,7 +34670,7 @@ class Client$E extends Client$F {
|
|
|
33986
34670
|
}),
|
|
33987
34671
|
},
|
|
33988
34672
|
/**
|
|
33989
|
-
*
|
|
34673
|
+
* 文件夹
|
|
33990
34674
|
*/
|
|
33991
34675
|
file: {
|
|
33992
34676
|
/**
|
|
@@ -34865,7 +35549,7 @@ class Client$E extends Client$F {
|
|
|
34865
35549
|
}),
|
|
34866
35550
|
},
|
|
34867
35551
|
/**
|
|
34868
|
-
*
|
|
35552
|
+
* 素材
|
|
34869
35553
|
*/
|
|
34870
35554
|
media: {
|
|
34871
35555
|
/**
|
|
@@ -43381,6 +44065,27 @@ class Client$u extends Client$v {
|
|
|
43381
44065
|
throw e;
|
|
43382
44066
|
});
|
|
43383
44067
|
}),
|
|
44068
|
+
/**
|
|
44069
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
44070
|
+
*
|
|
44071
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=tag&project=hire&resource=talent&version=v1 document }
|
|
44072
|
+
*/
|
|
44073
|
+
tag: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44074
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44075
|
+
return this.httpInstance
|
|
44076
|
+
.request({
|
|
44077
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`, path),
|
|
44078
|
+
method: "POST",
|
|
44079
|
+
data,
|
|
44080
|
+
params,
|
|
44081
|
+
headers,
|
|
44082
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44083
|
+
})
|
|
44084
|
+
.catch((e) => {
|
|
44085
|
+
this.logger.error(formatErrors(e));
|
|
44086
|
+
throw e;
|
|
44087
|
+
});
|
|
44088
|
+
}),
|
|
43384
44089
|
},
|
|
43385
44090
|
/**
|
|
43386
44091
|
* 导入外部系统信息(灰度租户可见)
|
|
@@ -43674,6 +44379,82 @@ class Client$u extends Client$v {
|
|
|
43674
44379
|
});
|
|
43675
44380
|
}),
|
|
43676
44381
|
},
|
|
44382
|
+
/**
|
|
44383
|
+
* talent_tag
|
|
44384
|
+
*/
|
|
44385
|
+
talentTag: {
|
|
44386
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44387
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44388
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
44389
|
+
const res = yield this.httpInstance
|
|
44390
|
+
.request({
|
|
44391
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_tags`, path),
|
|
44392
|
+
method: "GET",
|
|
44393
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
44394
|
+
params: pickBy(innerPayload.params, identity),
|
|
44395
|
+
data,
|
|
44396
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44397
|
+
})
|
|
44398
|
+
.catch((e) => {
|
|
44399
|
+
this.logger.error(formatErrors(e));
|
|
44400
|
+
});
|
|
44401
|
+
return res;
|
|
44402
|
+
});
|
|
44403
|
+
const Iterable = {
|
|
44404
|
+
[Symbol.asyncIterator]() {
|
|
44405
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
44406
|
+
let hasMore = true;
|
|
44407
|
+
let pageToken;
|
|
44408
|
+
while (hasMore) {
|
|
44409
|
+
try {
|
|
44410
|
+
const res = yield __await(sendRequest({
|
|
44411
|
+
headers,
|
|
44412
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44413
|
+
data,
|
|
44414
|
+
}));
|
|
44415
|
+
const _b = get(res, "data") || {}, {
|
|
44416
|
+
// @ts-ignore
|
|
44417
|
+
has_more,
|
|
44418
|
+
// @ts-ignore
|
|
44419
|
+
page_token,
|
|
44420
|
+
// @ts-ignore
|
|
44421
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44422
|
+
yield yield __await(rest);
|
|
44423
|
+
hasMore = Boolean(has_more);
|
|
44424
|
+
pageToken = page_token || next_page_token;
|
|
44425
|
+
}
|
|
44426
|
+
catch (e) {
|
|
44427
|
+
yield yield __await(null);
|
|
44428
|
+
break;
|
|
44429
|
+
}
|
|
44430
|
+
}
|
|
44431
|
+
});
|
|
44432
|
+
},
|
|
44433
|
+
};
|
|
44434
|
+
return Iterable;
|
|
44435
|
+
}),
|
|
44436
|
+
/**
|
|
44437
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_tag&apiName=list&version=v1 click to debug }
|
|
44438
|
+
*
|
|
44439
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=talent_tag&version=v1 document }
|
|
44440
|
+
*/
|
|
44441
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44442
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44443
|
+
return this.httpInstance
|
|
44444
|
+
.request({
|
|
44445
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_tags`, path),
|
|
44446
|
+
method: "GET",
|
|
44447
|
+
data,
|
|
44448
|
+
params,
|
|
44449
|
+
headers,
|
|
44450
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
44451
|
+
})
|
|
44452
|
+
.catch((e) => {
|
|
44453
|
+
this.logger.error(formatErrors(e));
|
|
44454
|
+
throw e;
|
|
44455
|
+
});
|
|
44456
|
+
}),
|
|
44457
|
+
},
|
|
43677
44458
|
/**
|
|
43678
44459
|
* termination_reason
|
|
43679
44460
|
*/
|
|
@@ -48739,6 +49520,27 @@ class Client$u extends Client$v {
|
|
|
48739
49520
|
throw e;
|
|
48740
49521
|
});
|
|
48741
49522
|
}),
|
|
49523
|
+
/**
|
|
49524
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=tag&version=v1 click to debug }
|
|
49525
|
+
*
|
|
49526
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=tag&project=hire&resource=talent&version=v1 document }
|
|
49527
|
+
*/
|
|
49528
|
+
tag: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49529
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49530
|
+
return this.httpInstance
|
|
49531
|
+
.request({
|
|
49532
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`, path),
|
|
49533
|
+
method: "POST",
|
|
49534
|
+
data,
|
|
49535
|
+
params,
|
|
49536
|
+
headers,
|
|
49537
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49538
|
+
})
|
|
49539
|
+
.catch((e) => {
|
|
49540
|
+
this.logger.error(formatErrors(e));
|
|
49541
|
+
throw e;
|
|
49542
|
+
});
|
|
49543
|
+
}),
|
|
48742
49544
|
},
|
|
48743
49545
|
/**
|
|
48744
49546
|
* 导入外部系统信息(灰度租户可见)
|
|
@@ -49036,6 +49838,84 @@ class Client$u extends Client$v {
|
|
|
49036
49838
|
});
|
|
49037
49839
|
}),
|
|
49038
49840
|
},
|
|
49841
|
+
/**
|
|
49842
|
+
* talent_tag
|
|
49843
|
+
*/
|
|
49844
|
+
talentTag: {
|
|
49845
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49846
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49847
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
49848
|
+
const res = yield this.httpInstance
|
|
49849
|
+
.request({
|
|
49850
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_tags`, path),
|
|
49851
|
+
method: "GET",
|
|
49852
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
49853
|
+
params: pickBy(innerPayload.params, identity),
|
|
49854
|
+
data,
|
|
49855
|
+
paramsSerializer: (params) => stringify(params, {
|
|
49856
|
+
arrayFormat: "repeat",
|
|
49857
|
+
}),
|
|
49858
|
+
})
|
|
49859
|
+
.catch((e) => {
|
|
49860
|
+
this.logger.error(formatErrors(e));
|
|
49861
|
+
});
|
|
49862
|
+
return res;
|
|
49863
|
+
});
|
|
49864
|
+
const Iterable = {
|
|
49865
|
+
[Symbol.asyncIterator]() {
|
|
49866
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
49867
|
+
let hasMore = true;
|
|
49868
|
+
let pageToken;
|
|
49869
|
+
while (hasMore) {
|
|
49870
|
+
try {
|
|
49871
|
+
const res = yield __await(sendRequest({
|
|
49872
|
+
headers,
|
|
49873
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
49874
|
+
data,
|
|
49875
|
+
}));
|
|
49876
|
+
const _b = get(res, "data") || {}, {
|
|
49877
|
+
// @ts-ignore
|
|
49878
|
+
has_more,
|
|
49879
|
+
// @ts-ignore
|
|
49880
|
+
page_token,
|
|
49881
|
+
// @ts-ignore
|
|
49882
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
49883
|
+
yield yield __await(rest);
|
|
49884
|
+
hasMore = Boolean(has_more);
|
|
49885
|
+
pageToken = page_token || next_page_token;
|
|
49886
|
+
}
|
|
49887
|
+
catch (e) {
|
|
49888
|
+
yield yield __await(null);
|
|
49889
|
+
break;
|
|
49890
|
+
}
|
|
49891
|
+
}
|
|
49892
|
+
});
|
|
49893
|
+
},
|
|
49894
|
+
};
|
|
49895
|
+
return Iterable;
|
|
49896
|
+
}),
|
|
49897
|
+
/**
|
|
49898
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent_tag&apiName=list&version=v1 click to debug }
|
|
49899
|
+
*
|
|
49900
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=talent_tag&version=v1 document }
|
|
49901
|
+
*/
|
|
49902
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
49903
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
49904
|
+
return this.httpInstance
|
|
49905
|
+
.request({
|
|
49906
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/talent_tags`, path),
|
|
49907
|
+
method: "GET",
|
|
49908
|
+
data,
|
|
49909
|
+
params,
|
|
49910
|
+
headers,
|
|
49911
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
49912
|
+
})
|
|
49913
|
+
.catch((e) => {
|
|
49914
|
+
this.logger.error(formatErrors(e));
|
|
49915
|
+
throw e;
|
|
49916
|
+
});
|
|
49917
|
+
}),
|
|
49918
|
+
},
|
|
49039
49919
|
/**
|
|
49040
49920
|
* termination_reason
|
|
49041
49921
|
*/
|
|
@@ -59379,6 +60259,27 @@ class Client$k extends Client$l {
|
|
|
59379
60259
|
* 登录态
|
|
59380
60260
|
*/
|
|
59381
60261
|
session: {
|
|
60262
|
+
/**
|
|
60263
|
+
* {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=logout&version=v1 click to debug }
|
|
60264
|
+
*
|
|
60265
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=logout&project=passport&resource=session&version=v1 document }
|
|
60266
|
+
*/
|
|
60267
|
+
logout: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
60268
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
60269
|
+
return this.httpInstance
|
|
60270
|
+
.request({
|
|
60271
|
+
url: fillApiPath(`${this.domain}/open-apis/passport/v1/sessions/logout`, path),
|
|
60272
|
+
method: "POST",
|
|
60273
|
+
data,
|
|
60274
|
+
params,
|
|
60275
|
+
headers,
|
|
60276
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
60277
|
+
})
|
|
60278
|
+
.catch((e) => {
|
|
60279
|
+
this.logger.error(formatErrors(e));
|
|
60280
|
+
throw e;
|
|
60281
|
+
});
|
|
60282
|
+
}),
|
|
59382
60283
|
/**
|
|
59383
60284
|
* {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=query&version=v1 click to debug }
|
|
59384
60285
|
*
|
|
@@ -59410,6 +60311,27 @@ class Client$k extends Client$l {
|
|
|
59410
60311
|
* 登录态
|
|
59411
60312
|
*/
|
|
59412
60313
|
session: {
|
|
60314
|
+
/**
|
|
60315
|
+
* {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=logout&version=v1 click to debug }
|
|
60316
|
+
*
|
|
60317
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=logout&project=passport&resource=session&version=v1 document }
|
|
60318
|
+
*/
|
|
60319
|
+
logout: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
60320
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
60321
|
+
return this.httpInstance
|
|
60322
|
+
.request({
|
|
60323
|
+
url: fillApiPath(`${this.domain}/open-apis/passport/v1/sessions/logout`, path),
|
|
60324
|
+
method: "POST",
|
|
60325
|
+
data,
|
|
60326
|
+
params,
|
|
60327
|
+
headers,
|
|
60328
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
60329
|
+
})
|
|
60330
|
+
.catch((e) => {
|
|
60331
|
+
this.logger.error(formatErrors(e));
|
|
60332
|
+
throw e;
|
|
60333
|
+
});
|
|
60334
|
+
}),
|
|
59413
60335
|
/**
|
|
59414
60336
|
* {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=query&version=v1 click to debug }
|
|
59415
60337
|
*
|
|
@@ -61492,7 +62414,7 @@ class Client$c extends Client$d {
|
|
|
61492
62414
|
}),
|
|
61493
62415
|
},
|
|
61494
62416
|
/**
|
|
61495
|
-
*
|
|
62417
|
+
* 工作表
|
|
61496
62418
|
*/
|
|
61497
62419
|
spreadsheetSheet: {
|
|
61498
62420
|
/**
|
|
@@ -62222,7 +63144,7 @@ class Client$c extends Client$d {
|
|
|
62222
63144
|
}),
|
|
62223
63145
|
},
|
|
62224
63146
|
/**
|
|
62225
|
-
*
|
|
63147
|
+
* 工作表
|
|
62226
63148
|
*/
|
|
62227
63149
|
spreadsheetSheet: {
|
|
62228
63150
|
/**
|