@larksuiteoapi/node-sdk 1.37.2 → 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.
Files changed (4) hide show
  1. package/es/index.js +1392 -10
  2. package/lib/index.js +1392 -10
  3. package/package.json +1 -1
  4. package/types/index.d.ts +15417 -2816
package/es/index.js CHANGED
@@ -236,7 +236,7 @@ const formatErrors = (e) => {
236
236
  const errors = [filteredErrorInfo];
237
237
  const specificError = get(e, 'response.data');
238
238
  if (specificError) {
239
- errors.push(specificError);
239
+ errors.push(Object.assign(Object.assign({}, specificError), (specificError.error ? specificError.error : {})));
240
240
  }
241
241
  return errors;
242
242
  }
@@ -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
  }
@@ -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
  /**
@@ -23751,6 +24065,48 @@ class Client$I extends Client$J {
23751
24065
  throw e;
23752
24066
  });
23753
24067
  }),
24068
+ /**
24069
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=work_calendar&version=v1 click to debug }
24070
+ *
24071
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=work_calendar&project=corehr&resource=leave&version=v1 document }
24072
+ */
24073
+ workCalendar: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24074
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24075
+ return this.httpInstance
24076
+ .request({
24077
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`, path),
24078
+ method: "POST",
24079
+ data,
24080
+ params,
24081
+ headers,
24082
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
24083
+ })
24084
+ .catch((e) => {
24085
+ this.logger.error(formatErrors(e));
24086
+ throw e;
24087
+ });
24088
+ }),
24089
+ /**
24090
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=work_calendar_date&version=v1 click to debug }
24091
+ *
24092
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=work_calendar_date&project=corehr&resource=leave&version=v1 document }
24093
+ */
24094
+ workCalendarDate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
24095
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
24096
+ return this.httpInstance
24097
+ .request({
24098
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`, path),
24099
+ method: "POST",
24100
+ data,
24101
+ params,
24102
+ headers,
24103
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
24104
+ })
24105
+ .catch((e) => {
24106
+ this.logger.error(formatErrors(e));
24107
+ throw e;
24108
+ });
24109
+ }),
23754
24110
  },
23755
24111
  /**
23756
24112
  * leave_granting_record
@@ -26534,6 +26890,48 @@ class Client$I extends Client$J {
26534
26890
  throw e;
26535
26891
  });
26536
26892
  }),
26893
+ /**
26894
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=work_calendar&version=v1 click to debug }
26895
+ *
26896
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=work_calendar&project=corehr&resource=leave&version=v1 document }
26897
+ */
26898
+ workCalendar: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26899
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26900
+ return this.httpInstance
26901
+ .request({
26902
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`, path),
26903
+ method: "POST",
26904
+ data,
26905
+ params,
26906
+ headers,
26907
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
26908
+ })
26909
+ .catch((e) => {
26910
+ this.logger.error(formatErrors(e));
26911
+ throw e;
26912
+ });
26913
+ }),
26914
+ /**
26915
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=work_calendar_date&version=v1 click to debug }
26916
+ *
26917
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=work_calendar_date&project=corehr&resource=leave&version=v1 document }
26918
+ */
26919
+ workCalendarDate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
26920
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
26921
+ return this.httpInstance
26922
+ .request({
26923
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`, path),
26924
+ method: "POST",
26925
+ data,
26926
+ params,
26927
+ headers,
26928
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
26929
+ })
26930
+ .catch((e) => {
26931
+ this.logger.error(formatErrors(e));
26932
+ throw e;
26933
+ });
26934
+ }),
26537
26935
  },
26538
26936
  /**
26539
26937
  * leave_granting_record
@@ -27578,6 +27976,84 @@ class Client$I extends Client$J {
27578
27976
  },
27579
27977
  },
27580
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
+ },
27581
28057
  /**
27582
28058
  * basic_info.bank
27583
28059
  */
@@ -28124,6 +28600,84 @@ class Client$I extends Client$J {
28124
28600
  });
28125
28601
  }),
28126
28602
  },
28603
+ /**
28604
+ * basic_info.language
28605
+ */
28606
+ basicInfoLanguage: {
28607
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28608
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28609
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28610
+ const res = yield this.httpInstance
28611
+ .request({
28612
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`, path),
28613
+ method: "POST",
28614
+ headers: pickBy(innerPayload.headers, identity),
28615
+ params: pickBy(innerPayload.params, identity),
28616
+ data,
28617
+ paramsSerializer: (params) => stringify(params, {
28618
+ arrayFormat: "repeat",
28619
+ }),
28620
+ })
28621
+ .catch((e) => {
28622
+ this.logger.error(formatErrors(e));
28623
+ });
28624
+ return res;
28625
+ });
28626
+ const Iterable = {
28627
+ [Symbol.asyncIterator]() {
28628
+ return __asyncGenerator(this, arguments, function* _a() {
28629
+ let hasMore = true;
28630
+ let pageToken;
28631
+ while (hasMore) {
28632
+ try {
28633
+ const res = yield __await(sendRequest({
28634
+ headers,
28635
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28636
+ data,
28637
+ }));
28638
+ const _b = get(res, "data") || {}, {
28639
+ // @ts-ignore
28640
+ has_more,
28641
+ // @ts-ignore
28642
+ page_token,
28643
+ // @ts-ignore
28644
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28645
+ yield yield __await(rest);
28646
+ hasMore = Boolean(has_more);
28647
+ pageToken = page_token || next_page_token;
28648
+ }
28649
+ catch (e) {
28650
+ yield yield __await(null);
28651
+ break;
28652
+ }
28653
+ }
28654
+ });
28655
+ },
28656
+ };
28657
+ return Iterable;
28658
+ }),
28659
+ /**
28660
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.language&apiName=search&version=v2 click to debug }
28661
+ *
28662
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.language&version=v2 document }
28663
+ */
28664
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28665
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28666
+ return this.httpInstance
28667
+ .request({
28668
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`, path),
28669
+ method: "POST",
28670
+ data,
28671
+ params,
28672
+ headers,
28673
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
28674
+ })
28675
+ .catch((e) => {
28676
+ this.logger.error(formatErrors(e));
28677
+ throw e;
28678
+ });
28679
+ }),
28680
+ },
28127
28681
  /**
28128
28682
  * basic_info.nationality
28129
28683
  */
@@ -28202,6 +28756,84 @@ class Client$I extends Client$J {
28202
28756
  });
28203
28757
  }),
28204
28758
  },
28759
+ /**
28760
+ * basic_info.time_zone
28761
+ */
28762
+ basicInfoTimeZone: {
28763
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28764
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28765
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
28766
+ const res = yield this.httpInstance
28767
+ .request({
28768
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`, path),
28769
+ method: "POST",
28770
+ headers: pickBy(innerPayload.headers, identity),
28771
+ params: pickBy(innerPayload.params, identity),
28772
+ data,
28773
+ paramsSerializer: (params) => stringify(params, {
28774
+ arrayFormat: "repeat",
28775
+ }),
28776
+ })
28777
+ .catch((e) => {
28778
+ this.logger.error(formatErrors(e));
28779
+ });
28780
+ return res;
28781
+ });
28782
+ const Iterable = {
28783
+ [Symbol.asyncIterator]() {
28784
+ return __asyncGenerator(this, arguments, function* _a() {
28785
+ let hasMore = true;
28786
+ let pageToken;
28787
+ while (hasMore) {
28788
+ try {
28789
+ const res = yield __await(sendRequest({
28790
+ headers,
28791
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
28792
+ data,
28793
+ }));
28794
+ const _b = get(res, "data") || {}, {
28795
+ // @ts-ignore
28796
+ has_more,
28797
+ // @ts-ignore
28798
+ page_token,
28799
+ // @ts-ignore
28800
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
28801
+ yield yield __await(rest);
28802
+ hasMore = Boolean(has_more);
28803
+ pageToken = page_token || next_page_token;
28804
+ }
28805
+ catch (e) {
28806
+ yield yield __await(null);
28807
+ break;
28808
+ }
28809
+ }
28810
+ });
28811
+ },
28812
+ };
28813
+ return Iterable;
28814
+ }),
28815
+ /**
28816
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=basic_info.time_zone&apiName=search&version=v2 click to debug }
28817
+ *
28818
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=basic_info.time_zone&version=v2 document }
28819
+ */
28820
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
28821
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
28822
+ return this.httpInstance
28823
+ .request({
28824
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`, path),
28825
+ method: "POST",
28826
+ data,
28827
+ params,
28828
+ headers,
28829
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
28830
+ })
28831
+ .catch((e) => {
28832
+ this.logger.error(formatErrors(e));
28833
+ throw e;
28834
+ });
28835
+ }),
28836
+ },
28205
28837
  /**
28206
28838
  * bp
28207
28839
  */
@@ -28307,6 +28939,27 @@ class Client$I extends Client$J {
28307
28939
  * company
28308
28940
  */
28309
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
+ }),
28310
28963
  /**
28311
28964
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=batch_get&version=v2 click to debug }
28312
28965
  *
@@ -28330,6 +28983,79 @@ class Client$I extends Client$J {
28330
28983
  throw e;
28331
28984
  });
28332
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
+ }),
28333
29059
  },
28334
29060
  /**
28335
29061
  * contract
@@ -28695,6 +29421,79 @@ class Client$I extends Client$J {
28695
29421
  throw e;
28696
29422
  });
28697
29423
  }),
29424
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29425
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29426
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
29427
+ const res = yield this.httpInstance
29428
+ .request({
29429
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`, path),
29430
+ method: "GET",
29431
+ headers: pickBy(innerPayload.headers, identity),
29432
+ params: pickBy(innerPayload.params, identity),
29433
+ data,
29434
+ paramsSerializer: (params) => stringify(params, {
29435
+ arrayFormat: "repeat",
29436
+ }),
29437
+ })
29438
+ .catch((e) => {
29439
+ this.logger.error(formatErrors(e));
29440
+ });
29441
+ return res;
29442
+ });
29443
+ const Iterable = {
29444
+ [Symbol.asyncIterator]() {
29445
+ return __asyncGenerator(this, arguments, function* _a() {
29446
+ let hasMore = true;
29447
+ let pageToken;
29448
+ while (hasMore) {
29449
+ try {
29450
+ const res = yield __await(sendRequest({
29451
+ headers,
29452
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
29453
+ data,
29454
+ }));
29455
+ const _b = get(res, "data") || {}, {
29456
+ // @ts-ignore
29457
+ has_more,
29458
+ // @ts-ignore
29459
+ page_token,
29460
+ // @ts-ignore
29461
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
29462
+ yield yield __await(rest);
29463
+ hasMore = Boolean(has_more);
29464
+ pageToken = page_token || next_page_token;
29465
+ }
29466
+ catch (e) {
29467
+ yield yield __await(null);
29468
+ break;
29469
+ }
29470
+ }
29471
+ });
29472
+ },
29473
+ };
29474
+ return Iterable;
29475
+ }),
29476
+ /**
29477
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_recent_change&version=v2 click to debug }
29478
+ *
29479
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=department&version=v2 document }
29480
+ */
29481
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29482
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29483
+ return this.httpInstance
29484
+ .request({
29485
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`, path),
29486
+ method: "GET",
29487
+ data,
29488
+ params,
29489
+ headers,
29490
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
29491
+ })
29492
+ .catch((e) => {
29493
+ this.logger.error(formatErrors(e));
29494
+ throw e;
29495
+ });
29496
+ }),
28698
29497
  /**
28699
29498
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
28700
29499
  *
@@ -29175,6 +29974,75 @@ class Client$I extends Client$J {
29175
29974
  * job_grade
29176
29975
  */
29177
29976
  jobGrade: {
29977
+ /**
29978
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=create&version=v2 click to debug }
29979
+ *
29980
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=job_grade&version=v2 document }
29981
+ *
29982
+ * 创建职等数据
29983
+ */
29984
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29985
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29986
+ return this.httpInstance
29987
+ .request({
29988
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades`, path),
29989
+ method: "POST",
29990
+ data,
29991
+ params,
29992
+ headers,
29993
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
29994
+ })
29995
+ .catch((e) => {
29996
+ this.logger.error(formatErrors(e));
29997
+ throw e;
29998
+ });
29999
+ }),
30000
+ /**
30001
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=delete&version=v2 click to debug }
30002
+ *
30003
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=job_grade&version=v2 document }
30004
+ *
30005
+ * 删除职等信息
30006
+ */
30007
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30008
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30009
+ return this.httpInstance
30010
+ .request({
30011
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`, path),
30012
+ method: "DELETE",
30013
+ data,
30014
+ params,
30015
+ headers,
30016
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30017
+ })
30018
+ .catch((e) => {
30019
+ this.logger.error(formatErrors(e));
30020
+ throw e;
30021
+ });
30022
+ }),
30023
+ /**
30024
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=patch&version=v2 click to debug }
30025
+ *
30026
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=job_grade&version=v2 document }
30027
+ *
30028
+ * 更新职等信息
30029
+ */
30030
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30031
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30032
+ return this.httpInstance
30033
+ .request({
30034
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`, path),
30035
+ method: "PATCH",
30036
+ data,
30037
+ params,
30038
+ headers,
30039
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30040
+ })
30041
+ .catch((e) => {
30042
+ this.logger.error(formatErrors(e));
30043
+ throw e;
30044
+ });
30045
+ }),
29178
30046
  /**
29179
30047
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query&version=v2 click to debug }
29180
30048
  *
@@ -29231,6 +30099,29 @@ class Client$I extends Client$J {
29231
30099
  * location
29232
30100
  */
29233
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
+ }),
29234
30125
  /**
29235
30126
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=batch_get&version=v2 click to debug }
29236
30127
  *
@@ -29254,6 +30145,103 @@ class Client$I extends Client$J {
29254
30145
  throw e;
29255
30146
  });
29256
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
+ }),
29257
30245
  },
29258
30246
  /**
29259
30247
  * person
@@ -29915,15 +30903,93 @@ class Client$I extends Client$J {
29915
30903
  return Iterable;
29916
30904
  }),
29917
30905
  /**
29918
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
30906
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process&apiName=list&version=v2 click to debug }
30907
+ *
30908
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
30909
+ */
30910
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30911
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30912
+ return this.httpInstance
30913
+ .request({
30914
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
30915
+ method: "GET",
30916
+ data,
30917
+ params,
30918
+ headers,
30919
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30920
+ })
30921
+ .catch((e) => {
30922
+ this.logger.error(formatErrors(e));
30923
+ throw e;
30924
+ });
30925
+ }),
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 }
29919
30985
  *
29920
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=process&version=v2 document }
30986
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=workforce_plan&version=v2 document }
29921
30987
  */
29922
30988
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29923
30989
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
29924
30990
  return this.httpInstance
29925
30991
  .request({
29926
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/processes`, path),
30992
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plans`, path),
29927
30993
  method: "GET",
29928
30994
  data,
29929
30995
  params,
@@ -29936,6 +31002,32 @@ class Client$I extends Client$J {
29936
31002
  });
29937
31003
  }),
29938
31004
  },
31005
+ /**
31006
+ * workforce_plan_detail
31007
+ */
31008
+ workforcePlanDetail: {
31009
+ /**
31010
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail&apiName=batch&version=v2 click to debug }
31011
+ *
31012
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch&project=corehr&resource=workforce_plan_detail&version=v2 document }
31013
+ */
31014
+ batch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31015
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31016
+ return this.httpInstance
31017
+ .request({
31018
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch`, path),
31019
+ method: "POST",
31020
+ data,
31021
+ params,
31022
+ headers,
31023
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31024
+ })
31025
+ .catch((e) => {
31026
+ this.logger.error(formatErrors(e));
31027
+ throw e;
31028
+ });
31029
+ }),
31030
+ },
29939
31031
  },
29940
31032
  };
29941
31033
  }
@@ -30773,6 +31865,32 @@ class Client$F extends Client$G {
30773
31865
  });
30774
31866
  }),
30775
31867
  },
31868
+ /**
31869
+ * document.block.descendant
31870
+ */
31871
+ documentBlockDescendant: {
31872
+ /**
31873
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.descendant&apiName=create&version=v1 click to debug }
31874
+ *
31875
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=document.block.descendant&version=v1 document }
31876
+ */
31877
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31878
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31879
+ return this.httpInstance
31880
+ .request({
31881
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`, path),
31882
+ method: "POST",
31883
+ data,
31884
+ params,
31885
+ headers,
31886
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31887
+ })
31888
+ .catch((e) => {
31889
+ this.logger.error(formatErrors(e));
31890
+ throw e;
31891
+ });
31892
+ }),
31893
+ },
30776
31894
  /**
30777
31895
  * 文档
30778
31896
  */
@@ -31183,6 +32301,32 @@ class Client$F extends Client$G {
31183
32301
  });
31184
32302
  }),
31185
32303
  },
32304
+ /**
32305
+ * document.block.descendant
32306
+ */
32307
+ documentBlockDescendant: {
32308
+ /**
32309
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.descendant&apiName=create&version=v1 click to debug }
32310
+ *
32311
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=document.block.descendant&version=v1 document }
32312
+ */
32313
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32314
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
32315
+ return this.httpInstance
32316
+ .request({
32317
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`, path),
32318
+ method: "POST",
32319
+ data,
32320
+ params,
32321
+ headers,
32322
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
32323
+ })
32324
+ .catch((e) => {
32325
+ this.logger.error(formatErrors(e));
32326
+ throw e;
32327
+ });
32328
+ }),
32329
+ },
31186
32330
  /**
31187
32331
  * 文档
31188
32332
  */
@@ -31706,7 +32850,7 @@ class Client$E extends Client$F {
31706
32850
  }),
31707
32851
  },
31708
32852
  /**
31709
- * 上传
32853
+ * 文件夹
31710
32854
  */
31711
32855
  file: {
31712
32856
  /**
@@ -33526,7 +34670,7 @@ class Client$E extends Client$F {
33526
34670
  }),
33527
34671
  },
33528
34672
  /**
33529
- * 上传
34673
+ * 文件夹
33530
34674
  */
33531
34675
  file: {
33532
34676
  /**
@@ -42921,6 +44065,27 @@ class Client$u extends Client$v {
42921
44065
  throw e;
42922
44066
  });
42923
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
+ }),
42924
44089
  },
42925
44090
  /**
42926
44091
  * 导入外部系统信息(灰度租户可见)
@@ -43214,6 +44379,82 @@ class Client$u extends Client$v {
43214
44379
  });
43215
44380
  }),
43216
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
+ },
43217
44458
  /**
43218
44459
  * termination_reason
43219
44460
  */
@@ -48279,6 +49520,27 @@ class Client$u extends Client$v {
48279
49520
  throw e;
48280
49521
  });
48281
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
+ }),
48282
49544
  },
48283
49545
  /**
48284
49546
  * 导入外部系统信息(灰度租户可见)
@@ -48576,6 +49838,84 @@ class Client$u extends Client$v {
48576
49838
  });
48577
49839
  }),
48578
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
+ },
48579
49919
  /**
48580
49920
  * termination_reason
48581
49921
  */
@@ -58919,6 +60259,27 @@ class Client$k extends Client$l {
58919
60259
  * 登录态
58920
60260
  */
58921
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
+ }),
58922
60283
  /**
58923
60284
  * {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=query&version=v1 click to debug }
58924
60285
  *
@@ -58950,6 +60311,27 @@ class Client$k extends Client$l {
58950
60311
  * 登录态
58951
60312
  */
58952
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
+ }),
58953
60335
  /**
58954
60336
  * {@link https://open.feishu.cn/api-explorer?project=passport&resource=session&apiName=query&version=v1 click to debug }
58955
60337
  *
@@ -61032,7 +62414,7 @@ class Client$c extends Client$d {
61032
62414
  }),
61033
62415
  },
61034
62416
  /**
61035
- * 单元格
62417
+ * 工作表
61036
62418
  */
61037
62419
  spreadsheetSheet: {
61038
62420
  /**
@@ -61762,7 +63144,7 @@ class Client$c extends Client$d {
61762
63144
  }),
61763
63145
  },
61764
63146
  /**
61765
- * 单元格
63147
+ * 工作表
61766
63148
  */
61767
63149
  spreadsheetSheet: {
61768
63150
  /**