@larksuiteoapi/node-sdk 1.17.0 → 1.18.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/lib/index.js CHANGED
@@ -2744,6 +2744,56 @@ class Client$1 {
2744
2744
  });
2745
2745
  }),
2746
2746
  },
2747
+ /**
2748
+ * leave_accrual_record
2749
+ */
2750
+ leaveAccrualRecord: {
2751
+ /**
2752
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=leave_accrual_record&apiName=patch&version=v1 click to debug }
2753
+ *
2754
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=attendance&resource=leave_accrual_record&version=v1 document }
2755
+ */
2756
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2757
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2758
+ return this.httpInstance
2759
+ .request({
2760
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`, path),
2761
+ method: "PATCH",
2762
+ data,
2763
+ params,
2764
+ headers,
2765
+ })
2766
+ .catch((e) => {
2767
+ this.logger.error(formatErrors(e));
2768
+ throw e;
2769
+ });
2770
+ }),
2771
+ },
2772
+ /**
2773
+ * leave_employ_expire_record
2774
+ */
2775
+ leaveEmployExpireRecord: {
2776
+ /**
2777
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=leave_employ_expire_record&apiName=get&version=v1 click to debug }
2778
+ *
2779
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=attendance&resource=leave_employ_expire_record&version=v1 document }
2780
+ */
2781
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
2782
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
2783
+ return this.httpInstance
2784
+ .request({
2785
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`, path),
2786
+ method: "GET",
2787
+ data,
2788
+ params,
2789
+ headers,
2790
+ })
2791
+ .catch((e) => {
2792
+ this.logger.error(formatErrors(e));
2793
+ throw e;
2794
+ });
2795
+ }),
2796
+ },
2747
2797
  /**
2748
2798
  * 考勤班次
2749
2799
  */
@@ -9000,24 +9050,24 @@ class Client$1 {
9000
9050
  */
9001
9051
  this.corehr = {
9002
9052
  /**
9003
- * 休假管理
9053
+ * assigned_user
9004
9054
  */
9005
- leave: {
9055
+ assignedUser: {
9006
9056
  /**
9007
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_request_history&version=v1 click to debug }
9057
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=assigned_user&apiName=search&version=v1 click to debug }
9008
9058
  *
9009
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history document }
9059
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search document }
9010
9060
  *
9011
- * 批量查询员工请假记录
9061
+ * 获取组织类角色授权列表
9012
9062
  *
9013
- * 批量获取员工的请假记录数据
9063
+ * 查询组织类角色的授权信息
9014
9064
  */
9015
- leaveRequestHistory: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9065
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9016
9066
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9017
9067
  return this.httpInstance
9018
9068
  .request({
9019
- url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`, path),
9020
- method: "GET",
9069
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/assigned_users/search`, path),
9070
+ method: "POST",
9021
9071
  data,
9022
9072
  params,
9023
9073
  headers,
@@ -9028,38 +9078,25 @@ class Client$1 {
9028
9078
  });
9029
9079
  }),
9030
9080
  },
9031
- };
9032
- /**
9033
-
9034
- */
9035
- this.docs_tool = {};
9036
- /**
9037
- * 云文档-文档
9038
- */
9039
- this.docx = {
9040
9081
  /**
9041
- *
9082
+ * 公司
9042
9083
  */
9043
- documentBlock: {
9084
+ company: {
9044
9085
  /**
9045
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=batch_update&version=v1 click to debug }
9046
- *
9047
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/batch_update document }
9048
- *
9049
- * 批量更新块
9086
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=create&version=v1 click to debug }
9050
9087
  *
9051
- * 批量更新块的富文本内容。
9088
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create document }
9052
9089
  *
9053
- * 频率限制:单个应用调用频率上限为每秒 3 次。
9090
+ * 创建公司
9054
9091
  *
9055
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnMiwAKCiE6oQEkPyhvmmQEe),了解相关规则及约束。
9092
+ * 创建公司
9056
9093
  */
9057
- batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9094
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9058
9095
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9059
9096
  return this.httpInstance
9060
9097
  .request({
9061
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`, path),
9062
- method: "PATCH",
9098
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies`, path),
9099
+ method: "POST",
9063
9100
  data,
9064
9101
  params,
9065
9102
  headers,
@@ -9070,24 +9107,20 @@ class Client$1 {
9070
9107
  });
9071
9108
  }),
9072
9109
  /**
9073
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=get&version=v1 click to debug }
9074
- *
9075
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/get document }
9076
- *
9077
- * 获取块
9110
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=delete&version=v1 click to debug }
9078
9111
  *
9079
- * 获取指定块的富文本内容。
9112
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/delete document }
9080
9113
  *
9081
- * 频率限制:单个应用调用频率上限为每秒 5 次。
9114
+ * 删除公司
9082
9115
  *
9083
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnamKaccZKqIMopnREJCZUMe#doxcnWEMWYAg2YMkEq0SZXHzaih),了解相关规则及约束。
9116
+ * 删除公司
9084
9117
  */
9085
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9118
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9086
9119
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9087
9120
  return this.httpInstance
9088
9121
  .request({
9089
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`, path),
9090
- method: "GET",
9122
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
9123
+ method: "DELETE",
9091
9124
  data,
9092
9125
  params,
9093
9126
  headers,
@@ -9097,72 +9130,20 @@ class Client$1 {
9097
9130
  throw e;
9098
9131
  });
9099
9132
  }),
9100
- listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9101
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
9102
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
9103
- const res = yield this.httpInstance
9104
- .request({
9105
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`, path),
9106
- method: "GET",
9107
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
9108
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
9109
- })
9110
- .catch((e) => {
9111
- this.logger.error(formatErrors(e));
9112
- });
9113
- return res;
9114
- });
9115
- const Iterable = {
9116
- [Symbol.asyncIterator]() {
9117
- return __asyncGenerator(this, arguments, function* _a() {
9118
- let hasMore = true;
9119
- let pageToken;
9120
- while (hasMore) {
9121
- try {
9122
- const res = yield __await(sendRequest({
9123
- headers,
9124
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
9125
- data,
9126
- }));
9127
- const _b = get__default["default"](res, "data") || {}, {
9128
- // @ts-ignore
9129
- has_more,
9130
- // @ts-ignore
9131
- page_token,
9132
- // @ts-ignore
9133
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
9134
- yield yield __await(rest);
9135
- hasMore = Boolean(has_more);
9136
- pageToken = page_token || next_page_token;
9137
- }
9138
- catch (e) {
9139
- yield yield __await(null);
9140
- break;
9141
- }
9142
- }
9143
- });
9144
- },
9145
- };
9146
- return Iterable;
9147
- }),
9148
9133
  /**
9149
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=list&version=v1 click to debug }
9150
- *
9151
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/list document }
9152
- *
9153
- * 获取文档所有块
9134
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=get&version=v1 click to debug }
9154
9135
  *
9155
- * 获取文档所有块的富文本内容并分页返回。
9136
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get document }
9156
9137
  *
9157
- * 频率限制:单个应用调用频率上限为每秒 5 次。
9138
+ * 查询单个公司
9158
9139
  *
9159
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnamKaccZKqIMopnREJCZUMe#doxcn6AkCE2AUUm2WwxID7lS7Xc),了解相关规则及约束。
9140
+ * 根据 ID 查询单个公司
9160
9141
  */
9161
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9142
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9162
9143
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9163
9144
  return this.httpInstance
9164
9145
  .request({
9165
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`, path),
9146
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies/:company_id`, path),
9166
9147
  method: "GET",
9167
9148
  data,
9168
9149
  params,
@@ -9174,24 +9155,20 @@ class Client$1 {
9174
9155
  });
9175
9156
  }),
9176
9157
  /**
9177
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=patch&version=v1 click to debug }
9178
- *
9179
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/patch document }
9180
- *
9181
- * 更新块
9158
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=company&apiName=list&version=v1 click to debug }
9182
9159
  *
9183
- * 更新指定的块。
9160
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list document }
9184
9161
  *
9185
- * 频率限制:单个应用调用频率上限为每秒 3 次。
9162
+ * 批量查询公司
9186
9163
  *
9187
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnEeyS0I8MMqoieIMpK7jm8g),了解相关规则及约束。
9164
+ * 批量查询公司
9188
9165
  */
9189
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9166
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9190
9167
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9191
9168
  return this.httpInstance
9192
9169
  .request({
9193
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`, path),
9194
- method: "PATCH",
9170
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/companies`, path),
9171
+ method: "GET",
9195
9172
  data,
9196
9173
  params,
9197
9174
  headers,
@@ -9203,28 +9180,24 @@ class Client$1 {
9203
9180
  }),
9204
9181
  },
9205
9182
  /**
9206
- * document.block.children
9183
+ * 合同
9207
9184
  */
9208
- documentBlockChildren: {
9185
+ contract: {
9209
9186
  /**
9210
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=batch_delete&version=v1 click to debug }
9211
- *
9212
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/batch_delete document }
9213
- *
9214
- * 删除块
9187
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=contract&apiName=create&version=v1 click to debug }
9215
9188
  *
9216
- * 指定需要操作的块,删除其指定范围的子块。如果操作成功,接口将返回应用删除操作后的文档版本号。
9189
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/create document }
9217
9190
  *
9218
- * 频率限制:单个应用调用频率上限为每秒 3 次。
9191
+ * 创建合同
9219
9192
  *
9220
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcngCsscGk0WacO258mYDgM6b),了解相关规则及约束。
9193
+ * 创建合同
9221
9194
  */
9222
- batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9195
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9223
9196
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9224
9197
  return this.httpInstance
9225
9198
  .request({
9226
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`, path),
9227
- method: "DELETE",
9199
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/contracts`, path),
9200
+ method: "POST",
9228
9201
  data,
9229
9202
  params,
9230
9203
  headers,
@@ -9235,24 +9208,20 @@ class Client$1 {
9235
9208
  });
9236
9209
  }),
9237
9210
  /**
9238
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=create&version=v1 click to debug }
9211
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=contract&apiName=delete&version=v1 click to debug }
9239
9212
  *
9240
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/create document }
9241
- *
9242
- * 创建块
9243
- *
9244
- * 指定需要操作的块,为其创建一批子块,并插入到指定位置。如果操作成功,接口将返回新创建子块的富文本内容。
9213
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/delete document }
9245
9214
  *
9246
- * 频率限制:单个应用调用频率上限为每秒 3 次。
9215
+ * 删除合同
9247
9216
  *
9248
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnm0ooUe0s20GwwVB3a05rtb),了解相关规则及约束。
9217
+ * 删除合同
9249
9218
  */
9250
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9219
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9251
9220
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9252
9221
  return this.httpInstance
9253
9222
  .request({
9254
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
9255
- method: "POST",
9223
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`, path),
9224
+ method: "DELETE",
9256
9225
  data,
9257
9226
  params,
9258
9227
  headers,
@@ -9262,72 +9231,20 @@ class Client$1 {
9262
9231
  throw e;
9263
9232
  });
9264
9233
  }),
9265
- getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9266
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
9267
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
9268
- const res = yield this.httpInstance
9269
- .request({
9270
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
9271
- method: "GET",
9272
- headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
9273
- params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
9274
- })
9275
- .catch((e) => {
9276
- this.logger.error(formatErrors(e));
9277
- });
9278
- return res;
9279
- });
9280
- const Iterable = {
9281
- [Symbol.asyncIterator]() {
9282
- return __asyncGenerator(this, arguments, function* _a() {
9283
- let hasMore = true;
9284
- let pageToken;
9285
- while (hasMore) {
9286
- try {
9287
- const res = yield __await(sendRequest({
9288
- headers,
9289
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
9290
- data,
9291
- }));
9292
- const _b = get__default["default"](res, "data") || {}, {
9293
- // @ts-ignore
9294
- has_more,
9295
- // @ts-ignore
9296
- page_token,
9297
- // @ts-ignore
9298
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
9299
- yield yield __await(rest);
9300
- hasMore = Boolean(has_more);
9301
- pageToken = page_token || next_page_token;
9302
- }
9303
- catch (e) {
9304
- yield yield __await(null);
9305
- break;
9306
- }
9307
- }
9308
- });
9309
- },
9310
- };
9311
- return Iterable;
9312
- }),
9313
9234
  /**
9314
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=get&version=v1 click to debug }
9315
- *
9316
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/get document }
9317
- *
9318
- * 获取所有子块
9235
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=contract&apiName=get&version=v1 click to debug }
9319
9236
  *
9320
- * 给定一个指定版本的文档,并指定需要操作的块,分页遍历其所有子块富文本内容 。如果不指定版本,则会默认查询最新版本。
9237
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/get document }
9321
9238
  *
9322
- * 频率限制:单个应用调用频率上限为每秒 5 次。
9239
+ * 查询单个合同
9323
9240
  *
9324
- * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnE2UK2yY0gEGK8nBMPtB0vd),了解相关规则及约束。
9241
+ * 根据 ID 查询单个合同
9325
9242
  */
9326
9243
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9327
9244
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
9328
9245
  return this.httpInstance
9329
9246
  .request({
9330
- url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
9247
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`, path),
9331
9248
  method: "GET",
9332
9249
  data,
9333
9250
  params,
@@ -9338,21 +9255,2488 @@ class Client$1 {
9338
9255
  throw e;
9339
9256
  });
9340
9257
  }),
9341
- },
9342
- /**
9343
- * 文档
9344
- */
9345
- document: {
9346
9258
  /**
9347
- * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document&apiName=create&version=v1 click to debug }
9348
- *
9349
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document/create document }
9259
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=contract&apiName=list&version=v1 click to debug }
9350
9260
  *
9351
- * 创建文档
9261
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list document }
9352
9262
  *
9353
- * 创建新版文档,文档标题和目录可选。
9263
+ * 批量查询合同
9354
9264
  *
9355
- * 频率限制:单个应用调用频率上限为每秒 3 次。
9265
+ * 批量查询合同
9266
+ */
9267
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9268
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9269
+ return this.httpInstance
9270
+ .request({
9271
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/contracts`, path),
9272
+ method: "GET",
9273
+ data,
9274
+ params,
9275
+ headers,
9276
+ })
9277
+ .catch((e) => {
9278
+ this.logger.error(formatErrors(e));
9279
+ throw e;
9280
+ });
9281
+ }),
9282
+ /**
9283
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=contract&apiName=patch&version=v1 click to debug }
9284
+ *
9285
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/patch document }
9286
+ *
9287
+ * 更新合同
9288
+ *
9289
+ * 更新合同
9290
+ */
9291
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9292
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9293
+ return this.httpInstance
9294
+ .request({
9295
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`, path),
9296
+ method: "PATCH",
9297
+ data,
9298
+ params,
9299
+ headers,
9300
+ })
9301
+ .catch((e) => {
9302
+ this.logger.error(formatErrors(e));
9303
+ throw e;
9304
+ });
9305
+ }),
9306
+ },
9307
+ /**
9308
+ * 地理库信息
9309
+ */
9310
+ countryRegion: {
9311
+ /**
9312
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=country_region&apiName=get&version=v1 click to debug }
9313
+ *
9314
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/get document }
9315
+ *
9316
+ * 查询单条国家/地区信息
9317
+ *
9318
+ * 查询单条国家/地区信息
9319
+ */
9320
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9321
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9322
+ return this.httpInstance
9323
+ .request({
9324
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`, path),
9325
+ method: "GET",
9326
+ data,
9327
+ params,
9328
+ headers,
9329
+ })
9330
+ .catch((e) => {
9331
+ this.logger.error(formatErrors(e));
9332
+ throw e;
9333
+ });
9334
+ }),
9335
+ /**
9336
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=country_region&apiName=list&version=v1 click to debug }
9337
+ *
9338
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/list document }
9339
+ *
9340
+ * 批量查询国家/地区信息
9341
+ *
9342
+ * 批量查询国家/地区信息
9343
+ */
9344
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9345
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9346
+ return this.httpInstance
9347
+ .request({
9348
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/country_regions`, path),
9349
+ method: "GET",
9350
+ data,
9351
+ params,
9352
+ headers,
9353
+ })
9354
+ .catch((e) => {
9355
+ this.logger.error(formatErrors(e));
9356
+ throw e;
9357
+ });
9358
+ }),
9359
+ },
9360
+ /**
9361
+ * 货币信息
9362
+ */
9363
+ currency: {
9364
+ /**
9365
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=currency&apiName=get&version=v1 click to debug }
9366
+ *
9367
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/get document }
9368
+ *
9369
+ * 查询单个货币信息
9370
+ *
9371
+ * 查询单个货币信息
9372
+ */
9373
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9374
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9375
+ return this.httpInstance
9376
+ .request({
9377
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`, path),
9378
+ method: "GET",
9379
+ data,
9380
+ params,
9381
+ headers,
9382
+ })
9383
+ .catch((e) => {
9384
+ this.logger.error(formatErrors(e));
9385
+ throw e;
9386
+ });
9387
+ }),
9388
+ /**
9389
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=currency&apiName=list&version=v1 click to debug }
9390
+ *
9391
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/list document }
9392
+ *
9393
+ * 批量查询货币信息
9394
+ *
9395
+ * 批量查询货币信息
9396
+ */
9397
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9398
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9399
+ return this.httpInstance
9400
+ .request({
9401
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/currencies`, path),
9402
+ method: "GET",
9403
+ data,
9404
+ params,
9405
+ headers,
9406
+ })
9407
+ .catch((e) => {
9408
+ this.logger.error(formatErrors(e));
9409
+ throw e;
9410
+ });
9411
+ }),
9412
+ },
9413
+ /**
9414
+ * 自定义字段
9415
+ */
9416
+ customField: {
9417
+ /**
9418
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=custom_field&apiName=get_by_param&version=v1 click to debug }
9419
+ *
9420
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param document }
9421
+ *
9422
+ * 获取自定义字段详情
9423
+ *
9424
+ * 获取「飞书人事」具体对象下某自定义字段的详细信息
9425
+ */
9426
+ getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9427
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9428
+ return this.httpInstance
9429
+ .request({
9430
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`, path),
9431
+ method: "GET",
9432
+ data,
9433
+ params,
9434
+ headers,
9435
+ })
9436
+ .catch((e) => {
9437
+ this.logger.error(formatErrors(e));
9438
+ throw e;
9439
+ });
9440
+ }),
9441
+ /**
9442
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=custom_field&apiName=list_object_api_name&version=v1 click to debug }
9443
+ *
9444
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/list_object_api_name document }
9445
+ *
9446
+ * 获取飞书人事对象列表
9447
+ *
9448
+ * 获取「飞书人事」中的对象列表,含系统预置对象与自定义对象
9449
+ */
9450
+ listObjectApiName: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9451
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9452
+ return this.httpInstance
9453
+ .request({
9454
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`, path),
9455
+ method: "GET",
9456
+ data,
9457
+ params,
9458
+ headers,
9459
+ })
9460
+ .catch((e) => {
9461
+ this.logger.error(formatErrors(e));
9462
+ throw e;
9463
+ });
9464
+ }),
9465
+ /**
9466
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=custom_field&apiName=query&version=v1 click to debug }
9467
+ *
9468
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/query document }
9469
+ *
9470
+ * 获取自定义字段列表
9471
+ *
9472
+ * 获取「飞书人事」具体对象下的自定义字段列表
9473
+ */
9474
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9475
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9476
+ return this.httpInstance
9477
+ .request({
9478
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/custom_fields/query`, path),
9479
+ method: "GET",
9480
+ data,
9481
+ params,
9482
+ headers,
9483
+ })
9484
+ .catch((e) => {
9485
+ this.logger.error(formatErrors(e));
9486
+ throw e;
9487
+ });
9488
+ }),
9489
+ },
9490
+ /**
9491
+ * 部门
9492
+ */
9493
+ department: {
9494
+ /**
9495
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=create&version=v1 click to debug }
9496
+ *
9497
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/create document }
9498
+ *
9499
+ * 创建部门
9500
+ *
9501
+ * 创建部门
9502
+ */
9503
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9504
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9505
+ return this.httpInstance
9506
+ .request({
9507
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/departments`, path),
9508
+ method: "POST",
9509
+ data,
9510
+ params,
9511
+ headers,
9512
+ })
9513
+ .catch((e) => {
9514
+ this.logger.error(formatErrors(e));
9515
+ throw e;
9516
+ });
9517
+ }),
9518
+ /**
9519
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=delete&version=v1 click to debug }
9520
+ *
9521
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/delete document }
9522
+ *
9523
+ * 删除部门
9524
+ *
9525
+ * 删除部门
9526
+ */
9527
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9528
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9529
+ return this.httpInstance
9530
+ .request({
9531
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/departments/:department_id`, path),
9532
+ method: "DELETE",
9533
+ data,
9534
+ params,
9535
+ headers,
9536
+ })
9537
+ .catch((e) => {
9538
+ this.logger.error(formatErrors(e));
9539
+ throw e;
9540
+ });
9541
+ }),
9542
+ /**
9543
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=get&version=v1 click to debug }
9544
+ *
9545
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get document }
9546
+ *
9547
+ * 查询单个部门
9548
+ *
9549
+ * 根据 ID 查询单个部门
9550
+ */
9551
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9552
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9553
+ return this.httpInstance
9554
+ .request({
9555
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/departments/:department_id`, path),
9556
+ method: "GET",
9557
+ data,
9558
+ params,
9559
+ headers,
9560
+ })
9561
+ .catch((e) => {
9562
+ this.logger.error(formatErrors(e));
9563
+ throw e;
9564
+ });
9565
+ }),
9566
+ /**
9567
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=list&version=v1 click to debug }
9568
+ *
9569
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/list document }
9570
+ *
9571
+ * 批量查询部门
9572
+ *
9573
+ * 批量查询部门
9574
+ */
9575
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9576
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9577
+ return this.httpInstance
9578
+ .request({
9579
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/departments`, path),
9580
+ method: "GET",
9581
+ data,
9582
+ params,
9583
+ headers,
9584
+ })
9585
+ .catch((e) => {
9586
+ this.logger.error(formatErrors(e));
9587
+ throw e;
9588
+ });
9589
+ }),
9590
+ /**
9591
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=patch&version=v1 click to debug }
9592
+ *
9593
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/patch document }
9594
+ *
9595
+ * 更新部门
9596
+ *
9597
+ * 更新部门
9598
+ */
9599
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9600
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9601
+ return this.httpInstance
9602
+ .request({
9603
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/departments/:department_id`, path),
9604
+ method: "PATCH",
9605
+ data,
9606
+ params,
9607
+ headers,
9608
+ })
9609
+ .catch((e) => {
9610
+ this.logger.error(formatErrors(e));
9611
+ throw e;
9612
+ });
9613
+ }),
9614
+ },
9615
+ /**
9616
+ * 人员类型
9617
+ */
9618
+ employeeType: {
9619
+ /**
9620
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employee_type&apiName=create&version=v1 click to debug }
9621
+ *
9622
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/create document }
9623
+ *
9624
+ * 创建人员类型
9625
+ *
9626
+ * 创建人员类型
9627
+ */
9628
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9629
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9630
+ return this.httpInstance
9631
+ .request({
9632
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employee_types`, path),
9633
+ method: "POST",
9634
+ data,
9635
+ params,
9636
+ headers,
9637
+ })
9638
+ .catch((e) => {
9639
+ this.logger.error(formatErrors(e));
9640
+ throw e;
9641
+ });
9642
+ }),
9643
+ /**
9644
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employee_type&apiName=delete&version=v1 click to debug }
9645
+ *
9646
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/delete document }
9647
+ *
9648
+ * 删除人员类型
9649
+ *
9650
+ * 删除人员类型
9651
+ */
9652
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9653
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9654
+ return this.httpInstance
9655
+ .request({
9656
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`, path),
9657
+ method: "DELETE",
9658
+ data,
9659
+ params,
9660
+ headers,
9661
+ })
9662
+ .catch((e) => {
9663
+ this.logger.error(formatErrors(e));
9664
+ throw e;
9665
+ });
9666
+ }),
9667
+ /**
9668
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employee_type&apiName=get&version=v1 click to debug }
9669
+ *
9670
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get document }
9671
+ *
9672
+ * 查询单个人员类型
9673
+ *
9674
+ * 根据 ID 查询单个人员类型
9675
+ */
9676
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9677
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9678
+ return this.httpInstance
9679
+ .request({
9680
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`, path),
9681
+ method: "GET",
9682
+ data,
9683
+ params,
9684
+ headers,
9685
+ })
9686
+ .catch((e) => {
9687
+ this.logger.error(formatErrors(e));
9688
+ throw e;
9689
+ });
9690
+ }),
9691
+ /**
9692
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employee_type&apiName=list&version=v1 click to debug }
9693
+ *
9694
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list document }
9695
+ *
9696
+ * 批量查询人员类型
9697
+ *
9698
+ * 批量查询人员类型
9699
+ */
9700
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9701
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9702
+ return this.httpInstance
9703
+ .request({
9704
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employee_types`, path),
9705
+ method: "GET",
9706
+ data,
9707
+ params,
9708
+ headers,
9709
+ })
9710
+ .catch((e) => {
9711
+ this.logger.error(formatErrors(e));
9712
+ throw e;
9713
+ });
9714
+ }),
9715
+ /**
9716
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employee_type&apiName=patch&version=v1 click to debug }
9717
+ *
9718
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/patch document }
9719
+ *
9720
+ * 更新人员类型数据
9721
+ *
9722
+ * 更新人员类型数据
9723
+ */
9724
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9725
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9726
+ return this.httpInstance
9727
+ .request({
9728
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`, path),
9729
+ method: "PATCH",
9730
+ data,
9731
+ params,
9732
+ headers,
9733
+ })
9734
+ .catch((e) => {
9735
+ this.logger.error(formatErrors(e));
9736
+ throw e;
9737
+ });
9738
+ }),
9739
+ },
9740
+ /**
9741
+ * 雇佣信息
9742
+ */
9743
+ employment: {
9744
+ /**
9745
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employment&apiName=create&version=v1 click to debug }
9746
+ *
9747
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/create document }
9748
+ *
9749
+ * 创建雇佣信息
9750
+ *
9751
+ * 创建人员的雇佣信息
9752
+ */
9753
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9754
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9755
+ return this.httpInstance
9756
+ .request({
9757
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employments`, path),
9758
+ method: "POST",
9759
+ data,
9760
+ params,
9761
+ headers,
9762
+ })
9763
+ .catch((e) => {
9764
+ this.logger.error(formatErrors(e));
9765
+ throw e;
9766
+ });
9767
+ }),
9768
+ /**
9769
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employment&apiName=delete&version=v1 click to debug }
9770
+ *
9771
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/delete document }
9772
+ *
9773
+ * 删除雇佣信息
9774
+ *
9775
+ * 删除人员的雇佣信息
9776
+ */
9777
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9778
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9779
+ return this.httpInstance
9780
+ .request({
9781
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`, path),
9782
+ method: "DELETE",
9783
+ data,
9784
+ params,
9785
+ headers,
9786
+ })
9787
+ .catch((e) => {
9788
+ this.logger.error(formatErrors(e));
9789
+ throw e;
9790
+ });
9791
+ }),
9792
+ /**
9793
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employment&apiName=patch&version=v1 click to debug }
9794
+ *
9795
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/patch document }
9796
+ *
9797
+ * 更新雇佣信息
9798
+ *
9799
+ * 更新雇佣信息
9800
+ */
9801
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9802
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9803
+ return this.httpInstance
9804
+ .request({
9805
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`, path),
9806
+ method: "PATCH",
9807
+ data,
9808
+ params,
9809
+ headers,
9810
+ })
9811
+ .catch((e) => {
9812
+ this.logger.error(formatErrors(e));
9813
+ throw e;
9814
+ });
9815
+ }),
9816
+ },
9817
+ /**
9818
+ * file
9819
+ */
9820
+ file: {
9821
+ /**
9822
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=file&apiName=get&version=v1 click to debug }
9823
+ *
9824
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=corehr&resource=file&version=v1 document }
9825
+ */
9826
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9827
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9828
+ const res = yield this.httpInstance
9829
+ .request({
9830
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/files/:id`, path),
9831
+ method: "GET",
9832
+ headers,
9833
+ data,
9834
+ params,
9835
+ responseType: "stream",
9836
+ })
9837
+ .catch((e) => {
9838
+ this.logger.error(formatErrors(e));
9839
+ throw e;
9840
+ });
9841
+ return {
9842
+ writeFile: (filePath) => __awaiter(this, void 0, void 0, function* () {
9843
+ return new Promise((resolve, reject) => {
9844
+ const writableStream = fs__default["default"].createWriteStream(filePath);
9845
+ writableStream.on("finish", () => {
9846
+ resolve(filePath);
9847
+ });
9848
+ writableStream.on("error", (e) => {
9849
+ reject(e);
9850
+ });
9851
+ res.pipe(writableStream);
9852
+ });
9853
+ }),
9854
+ };
9855
+ }),
9856
+ },
9857
+ /**
9858
+ * 职务
9859
+ */
9860
+ job: {
9861
+ /**
9862
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=create&version=v1 click to debug }
9863
+ *
9864
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/create document }
9865
+ *
9866
+ * 创建职务
9867
+ *
9868
+ * 创建职务
9869
+ */
9870
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9871
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9872
+ return this.httpInstance
9873
+ .request({
9874
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/jobs`, path),
9875
+ method: "POST",
9876
+ data,
9877
+ params,
9878
+ headers,
9879
+ })
9880
+ .catch((e) => {
9881
+ this.logger.error(formatErrors(e));
9882
+ throw e;
9883
+ });
9884
+ }),
9885
+ /**
9886
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=delete&version=v1 click to debug }
9887
+ *
9888
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/delete document }
9889
+ *
9890
+ * 删除职务
9891
+ *
9892
+ * 删除职务
9893
+ */
9894
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9895
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9896
+ return this.httpInstance
9897
+ .request({
9898
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`, path),
9899
+ method: "DELETE",
9900
+ data,
9901
+ params,
9902
+ headers,
9903
+ })
9904
+ .catch((e) => {
9905
+ this.logger.error(formatErrors(e));
9906
+ throw e;
9907
+ });
9908
+ }),
9909
+ /**
9910
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=get&version=v1 click to debug }
9911
+ *
9912
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get document }
9913
+ *
9914
+ * 查询单个职务
9915
+ *
9916
+ * 根据 ID 查询单个职务
9917
+ */
9918
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9919
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9920
+ return this.httpInstance
9921
+ .request({
9922
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`, path),
9923
+ method: "GET",
9924
+ data,
9925
+ params,
9926
+ headers,
9927
+ })
9928
+ .catch((e) => {
9929
+ this.logger.error(formatErrors(e));
9930
+ throw e;
9931
+ });
9932
+ }),
9933
+ /**
9934
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=list&version=v1 click to debug }
9935
+ *
9936
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/list document }
9937
+ *
9938
+ * 批量查询职务
9939
+ *
9940
+ * 批量查询职务
9941
+ */
9942
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9943
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9944
+ return this.httpInstance
9945
+ .request({
9946
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/jobs`, path),
9947
+ method: "GET",
9948
+ data,
9949
+ params,
9950
+ headers,
9951
+ })
9952
+ .catch((e) => {
9953
+ this.logger.error(formatErrors(e));
9954
+ throw e;
9955
+ });
9956
+ }),
9957
+ /**
9958
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job&apiName=patch&version=v1 click to debug }
9959
+ *
9960
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/patch document }
9961
+ *
9962
+ * 更新职务
9963
+ *
9964
+ * 更新职务
9965
+ */
9966
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9967
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9968
+ return this.httpInstance
9969
+ .request({
9970
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`, path),
9971
+ method: "PATCH",
9972
+ data,
9973
+ params,
9974
+ headers,
9975
+ })
9976
+ .catch((e) => {
9977
+ this.logger.error(formatErrors(e));
9978
+ throw e;
9979
+ });
9980
+ }),
9981
+ },
9982
+ /**
9983
+ * 异动信息
9984
+ */
9985
+ jobChange: {
9986
+ /**
9987
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_change&apiName=create&version=v1 click to debug }
9988
+ *
9989
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_change/create document }
9990
+ *
9991
+ * 发起员工异动
9992
+ *
9993
+ * 创建员工异动信息
9994
+ */
9995
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9996
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
9997
+ return this.httpInstance
9998
+ .request({
9999
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_changes`, path),
10000
+ method: "POST",
10001
+ data,
10002
+ params,
10003
+ headers,
10004
+ })
10005
+ .catch((e) => {
10006
+ this.logger.error(formatErrors(e));
10007
+ throw e;
10008
+ });
10009
+ }),
10010
+ },
10011
+ /**
10012
+ * 任职信息
10013
+ */
10014
+ jobData: {
10015
+ /**
10016
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_data&apiName=create&version=v1 click to debug }
10017
+ *
10018
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/create document }
10019
+ *
10020
+ * 创建任职信息
10021
+ *
10022
+ * 在系统中第一次创建员工任职数据,通常在员工入职或者做数据批量导入的时候使用,【任职原因】只支持填写“入职”
10023
+ */
10024
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10025
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10026
+ return this.httpInstance
10027
+ .request({
10028
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_datas`, path),
10029
+ method: "POST",
10030
+ data,
10031
+ params,
10032
+ headers,
10033
+ })
10034
+ .catch((e) => {
10035
+ this.logger.error(formatErrors(e));
10036
+ throw e;
10037
+ });
10038
+ }),
10039
+ /**
10040
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_data&apiName=delete&version=v1 click to debug }
10041
+ *
10042
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/delete document }
10043
+ *
10044
+ * 删除任职信息
10045
+ *
10046
+ * 删除人员的任职信息
10047
+ */
10048
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10049
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10050
+ return this.httpInstance
10051
+ .request({
10052
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`, path),
10053
+ method: "DELETE",
10054
+ data,
10055
+ params,
10056
+ headers,
10057
+ })
10058
+ .catch((e) => {
10059
+ this.logger.error(formatErrors(e));
10060
+ throw e;
10061
+ });
10062
+ }),
10063
+ /**
10064
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_data&apiName=get&version=v1 click to debug }
10065
+ *
10066
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/get document }
10067
+ *
10068
+ * 查询单个任职信息
10069
+ *
10070
+ * 根据 ID 查询单任职信息
10071
+ */
10072
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10073
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10074
+ return this.httpInstance
10075
+ .request({
10076
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`, path),
10077
+ method: "GET",
10078
+ data,
10079
+ params,
10080
+ headers,
10081
+ })
10082
+ .catch((e) => {
10083
+ this.logger.error(formatErrors(e));
10084
+ throw e;
10085
+ });
10086
+ }),
10087
+ /**
10088
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_data&apiName=list&version=v1 click to debug }
10089
+ *
10090
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/list document }
10091
+ *
10092
+ * 批量查询任职信息
10093
+ *
10094
+ * 批量查询人员的任职信息
10095
+ */
10096
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10097
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10098
+ return this.httpInstance
10099
+ .request({
10100
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_datas`, path),
10101
+ method: "GET",
10102
+ data,
10103
+ params,
10104
+ headers,
10105
+ })
10106
+ .catch((e) => {
10107
+ this.logger.error(formatErrors(e));
10108
+ throw e;
10109
+ });
10110
+ }),
10111
+ /**
10112
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_data&apiName=patch&version=v1 click to debug }
10113
+ *
10114
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/patch document }
10115
+ *
10116
+ * 更新任职信息
10117
+ *
10118
+ * 更新任职信息
10119
+ */
10120
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10121
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10122
+ return this.httpInstance
10123
+ .request({
10124
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`, path),
10125
+ method: "PATCH",
10126
+ data,
10127
+ params,
10128
+ headers,
10129
+ })
10130
+ .catch((e) => {
10131
+ this.logger.error(formatErrors(e));
10132
+ throw e;
10133
+ });
10134
+ }),
10135
+ },
10136
+ /**
10137
+ * 职务序列
10138
+ */
10139
+ jobFamily: {
10140
+ /**
10141
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=create&version=v1 click to debug }
10142
+ *
10143
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/create document }
10144
+ *
10145
+ * 创建职务序列
10146
+ *
10147
+ * 创建职务序列
10148
+ */
10149
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10150
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10151
+ return this.httpInstance
10152
+ .request({
10153
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_families`, path),
10154
+ method: "POST",
10155
+ data,
10156
+ params,
10157
+ headers,
10158
+ })
10159
+ .catch((e) => {
10160
+ this.logger.error(formatErrors(e));
10161
+ throw e;
10162
+ });
10163
+ }),
10164
+ /**
10165
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=delete&version=v1 click to debug }
10166
+ *
10167
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/delete document }
10168
+ *
10169
+ * 删除职务序列
10170
+ *
10171
+ * 删除职务序列
10172
+ */
10173
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10174
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10175
+ return this.httpInstance
10176
+ .request({
10177
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`, path),
10178
+ method: "DELETE",
10179
+ data,
10180
+ params,
10181
+ headers,
10182
+ })
10183
+ .catch((e) => {
10184
+ this.logger.error(formatErrors(e));
10185
+ throw e;
10186
+ });
10187
+ }),
10188
+ /**
10189
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=get&version=v1 click to debug }
10190
+ *
10191
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get document }
10192
+ *
10193
+ * 查询单个职务序列
10194
+ *
10195
+ * 根据 ID 查询单个职务序列
10196
+ */
10197
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10198
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10199
+ return this.httpInstance
10200
+ .request({
10201
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`, path),
10202
+ method: "GET",
10203
+ data,
10204
+ params,
10205
+ headers,
10206
+ })
10207
+ .catch((e) => {
10208
+ this.logger.error(formatErrors(e));
10209
+ throw e;
10210
+ });
10211
+ }),
10212
+ /**
10213
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=list&version=v1 click to debug }
10214
+ *
10215
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list document }
10216
+ *
10217
+ * 批量查询职务序列
10218
+ *
10219
+ * 批量查询职务序列
10220
+ */
10221
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10222
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10223
+ return this.httpInstance
10224
+ .request({
10225
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_families`, path),
10226
+ method: "GET",
10227
+ data,
10228
+ params,
10229
+ headers,
10230
+ })
10231
+ .catch((e) => {
10232
+ this.logger.error(formatErrors(e));
10233
+ throw e;
10234
+ });
10235
+ }),
10236
+ /**
10237
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=patch&version=v1 click to debug }
10238
+ *
10239
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/patch document }
10240
+ *
10241
+ * 更新职务序列
10242
+ *
10243
+ * 更新职务序列
10244
+ */
10245
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10246
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10247
+ return this.httpInstance
10248
+ .request({
10249
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`, path),
10250
+ method: "PATCH",
10251
+ data,
10252
+ params,
10253
+ headers,
10254
+ })
10255
+ .catch((e) => {
10256
+ this.logger.error(formatErrors(e));
10257
+ throw e;
10258
+ });
10259
+ }),
10260
+ },
10261
+ /**
10262
+ * 职务级别
10263
+ */
10264
+ jobLevel: {
10265
+ /**
10266
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=create&version=v1 click to debug }
10267
+ *
10268
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/create document }
10269
+ *
10270
+ * 创建职务级别
10271
+ *
10272
+ * 创建职务级别
10273
+ */
10274
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10275
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10276
+ return this.httpInstance
10277
+ .request({
10278
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_levels`, path),
10279
+ method: "POST",
10280
+ data,
10281
+ params,
10282
+ headers,
10283
+ })
10284
+ .catch((e) => {
10285
+ this.logger.error(formatErrors(e));
10286
+ throw e;
10287
+ });
10288
+ }),
10289
+ /**
10290
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=delete&version=v1 click to debug }
10291
+ *
10292
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/delete document }
10293
+ *
10294
+ * 删除职务级别
10295
+ *
10296
+ * 删除职务级别
10297
+ */
10298
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10299
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10300
+ return this.httpInstance
10301
+ .request({
10302
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`, path),
10303
+ method: "DELETE",
10304
+ data,
10305
+ params,
10306
+ headers,
10307
+ })
10308
+ .catch((e) => {
10309
+ this.logger.error(formatErrors(e));
10310
+ throw e;
10311
+ });
10312
+ }),
10313
+ /**
10314
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=get&version=v1 click to debug }
10315
+ *
10316
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get document }
10317
+ *
10318
+ * 查询单个职务级别
10319
+ *
10320
+ * 根据 ID 查询单个职务级别
10321
+ */
10322
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10323
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10324
+ return this.httpInstance
10325
+ .request({
10326
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`, path),
10327
+ method: "GET",
10328
+ data,
10329
+ params,
10330
+ headers,
10331
+ })
10332
+ .catch((e) => {
10333
+ this.logger.error(formatErrors(e));
10334
+ throw e;
10335
+ });
10336
+ }),
10337
+ /**
10338
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=list&version=v1 click to debug }
10339
+ *
10340
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list document }
10341
+ *
10342
+ * 批量查询职务级别
10343
+ *
10344
+ * 批量查询职务级别
10345
+ */
10346
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10347
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10348
+ return this.httpInstance
10349
+ .request({
10350
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_levels`, path),
10351
+ method: "GET",
10352
+ data,
10353
+ params,
10354
+ headers,
10355
+ })
10356
+ .catch((e) => {
10357
+ this.logger.error(formatErrors(e));
10358
+ throw e;
10359
+ });
10360
+ }),
10361
+ /**
10362
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=patch&version=v1 click to debug }
10363
+ *
10364
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/patch document }
10365
+ *
10366
+ * 更新职务级别
10367
+ *
10368
+ * 更新职务级别
10369
+ */
10370
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10371
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10372
+ return this.httpInstance
10373
+ .request({
10374
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`, path),
10375
+ method: "PATCH",
10376
+ data,
10377
+ params,
10378
+ headers,
10379
+ })
10380
+ .catch((e) => {
10381
+ this.logger.error(formatErrors(e));
10382
+ throw e;
10383
+ });
10384
+ }),
10385
+ },
10386
+ /**
10387
+ * 休假管理
10388
+ */
10389
+ leave: {
10390
+ /**
10391
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_balances&version=v1 click to debug }
10392
+ *
10393
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_balances document }
10394
+ *
10395
+ * 批量查询员工假期余额
10396
+ *
10397
+ * 批量获取员工各个假期的余额数据
10398
+ */
10399
+ leaveBalances: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10400
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10401
+ return this.httpInstance
10402
+ .request({
10403
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`, path),
10404
+ method: "GET",
10405
+ data,
10406
+ params,
10407
+ headers,
10408
+ })
10409
+ .catch((e) => {
10410
+ this.logger.error(formatErrors(e));
10411
+ throw e;
10412
+ });
10413
+ }),
10414
+ /**
10415
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_request_history&version=v1 click to debug }
10416
+ *
10417
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history document }
10418
+ *
10419
+ * 批量查询员工请假记录
10420
+ *
10421
+ * 批量获取员工的请假记录数据
10422
+ */
10423
+ leaveRequestHistory: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10424
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10425
+ return this.httpInstance
10426
+ .request({
10427
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`, path),
10428
+ method: "GET",
10429
+ data,
10430
+ params,
10431
+ headers,
10432
+ })
10433
+ .catch((e) => {
10434
+ this.logger.error(formatErrors(e));
10435
+ throw e;
10436
+ });
10437
+ }),
10438
+ /**
10439
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_types&version=v1 click to debug }
10440
+ *
10441
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_types document }
10442
+ *
10443
+ * 获取假期类型列表
10444
+ *
10445
+ * 获取休假设置后台配置的假期类型列表(比如年假、事假、婚假等)
10446
+ */
10447
+ leaveTypes: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10448
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10449
+ return this.httpInstance
10450
+ .request({
10451
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`, path),
10452
+ method: "GET",
10453
+ data,
10454
+ params,
10455
+ headers,
10456
+ })
10457
+ .catch((e) => {
10458
+ this.logger.error(formatErrors(e));
10459
+ throw e;
10460
+ });
10461
+ }),
10462
+ },
10463
+ /**
10464
+ * leave_granting_record
10465
+ */
10466
+ leaveGrantingRecord: {
10467
+ /**
10468
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave_granting_record&apiName=create&version=v1 click to debug }
10469
+ *
10470
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/create document }
10471
+ *
10472
+ * 创建假期授予记录
10473
+ *
10474
+ * 向飞书人事休假系统写入假期授予记录
10475
+ */
10476
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10477
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10478
+ return this.httpInstance
10479
+ .request({
10480
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leave_granting_records`, path),
10481
+ method: "POST",
10482
+ data,
10483
+ params,
10484
+ headers,
10485
+ })
10486
+ .catch((e) => {
10487
+ this.logger.error(formatErrors(e));
10488
+ throw e;
10489
+ });
10490
+ }),
10491
+ /**
10492
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave_granting_record&apiName=delete&version=v1 click to debug }
10493
+ *
10494
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/delete document }
10495
+ *
10496
+ * 删除假期授予记录
10497
+ *
10498
+ * 删除飞书人事休假系统中的假期授予记录(仅支持删除授予来源是「手动授予」或「外部系统授予」的记录)
10499
+ */
10500
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10501
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10502
+ return this.httpInstance
10503
+ .request({
10504
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`, path),
10505
+ method: "DELETE",
10506
+ data,
10507
+ params,
10508
+ headers,
10509
+ })
10510
+ .catch((e) => {
10511
+ this.logger.error(formatErrors(e));
10512
+ throw e;
10513
+ });
10514
+ }),
10515
+ },
10516
+ /**
10517
+ * 地点
10518
+ */
10519
+ location: {
10520
+ /**
10521
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=create&version=v1 click to debug }
10522
+ *
10523
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/create document }
10524
+ *
10525
+ * 创建地点
10526
+ *
10527
+ * 创建地点
10528
+ */
10529
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10530
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10531
+ return this.httpInstance
10532
+ .request({
10533
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/locations`, path),
10534
+ method: "POST",
10535
+ data,
10536
+ params,
10537
+ headers,
10538
+ })
10539
+ .catch((e) => {
10540
+ this.logger.error(formatErrors(e));
10541
+ throw e;
10542
+ });
10543
+ }),
10544
+ /**
10545
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=delete&version=v1 click to debug }
10546
+ *
10547
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/delete document }
10548
+ *
10549
+ * 删除地点
10550
+ *
10551
+ * 删除地点
10552
+ */
10553
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10554
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10555
+ return this.httpInstance
10556
+ .request({
10557
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/locations/:location_id`, path),
10558
+ method: "DELETE",
10559
+ data,
10560
+ params,
10561
+ headers,
10562
+ })
10563
+ .catch((e) => {
10564
+ this.logger.error(formatErrors(e));
10565
+ throw e;
10566
+ });
10567
+ }),
10568
+ /**
10569
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=get&version=v1 click to debug }
10570
+ *
10571
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get document }
10572
+ *
10573
+ * 查询单个地点
10574
+ *
10575
+ * 根据 ID 查询单个地点
10576
+ */
10577
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10578
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10579
+ return this.httpInstance
10580
+ .request({
10581
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/locations/:location_id`, path),
10582
+ method: "GET",
10583
+ data,
10584
+ params,
10585
+ headers,
10586
+ })
10587
+ .catch((e) => {
10588
+ this.logger.error(formatErrors(e));
10589
+ throw e;
10590
+ });
10591
+ }),
10592
+ /**
10593
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=list&version=v1 click to debug }
10594
+ *
10595
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list document }
10596
+ *
10597
+ * 批量查询地点
10598
+ *
10599
+ * 批量查询地点
10600
+ */
10601
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10602
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10603
+ return this.httpInstance
10604
+ .request({
10605
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/locations`, path),
10606
+ method: "GET",
10607
+ data,
10608
+ params,
10609
+ headers,
10610
+ })
10611
+ .catch((e) => {
10612
+ this.logger.error(formatErrors(e));
10613
+ throw e;
10614
+ });
10615
+ }),
10616
+ },
10617
+ /**
10618
+ * 国家证件类型
10619
+ */
10620
+ nationalIdType: {
10621
+ /**
10622
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=national_id_type&apiName=create&version=v1 click to debug }
10623
+ *
10624
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/create document }
10625
+ *
10626
+ * 创建国家证件类型
10627
+ *
10628
+ * 创建国家证件类型
10629
+ */
10630
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10631
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10632
+ return this.httpInstance
10633
+ .request({
10634
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/national_id_types`, path),
10635
+ method: "POST",
10636
+ data,
10637
+ params,
10638
+ headers,
10639
+ })
10640
+ .catch((e) => {
10641
+ this.logger.error(formatErrors(e));
10642
+ throw e;
10643
+ });
10644
+ }),
10645
+ /**
10646
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=national_id_type&apiName=delete&version=v1 click to debug }
10647
+ *
10648
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/delete document }
10649
+ *
10650
+ * 删除国家证件类型
10651
+ *
10652
+ * 删除国家证件类型
10653
+ */
10654
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10655
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10656
+ return this.httpInstance
10657
+ .request({
10658
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`, path),
10659
+ method: "DELETE",
10660
+ data,
10661
+ params,
10662
+ headers,
10663
+ })
10664
+ .catch((e) => {
10665
+ this.logger.error(formatErrors(e));
10666
+ throw e;
10667
+ });
10668
+ }),
10669
+ /**
10670
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=national_id_type&apiName=get&version=v1 click to debug }
10671
+ *
10672
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/get document }
10673
+ *
10674
+ * 查询单个国家证件类型
10675
+ *
10676
+ * 根据 ID 查询单个国家证件类型
10677
+ */
10678
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10679
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10680
+ return this.httpInstance
10681
+ .request({
10682
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`, path),
10683
+ method: "GET",
10684
+ data,
10685
+ params,
10686
+ headers,
10687
+ })
10688
+ .catch((e) => {
10689
+ this.logger.error(formatErrors(e));
10690
+ throw e;
10691
+ });
10692
+ }),
10693
+ /**
10694
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=national_id_type&apiName=list&version=v1 click to debug }
10695
+ *
10696
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/list document }
10697
+ *
10698
+ * 批量查询国家证件类型
10699
+ *
10700
+ * 批量查询国家证件类型
10701
+ */
10702
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10703
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10704
+ return this.httpInstance
10705
+ .request({
10706
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/national_id_types`, path),
10707
+ method: "GET",
10708
+ data,
10709
+ params,
10710
+ headers,
10711
+ })
10712
+ .catch((e) => {
10713
+ this.logger.error(formatErrors(e));
10714
+ throw e;
10715
+ });
10716
+ }),
10717
+ /**
10718
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=national_id_type&apiName=patch&version=v1 click to debug }
10719
+ *
10720
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/patch document }
10721
+ *
10722
+ * 更新国家证件类型
10723
+ *
10724
+ * 更新国家证件类型
10725
+ */
10726
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10727
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10728
+ return this.httpInstance
10729
+ .request({
10730
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`, path),
10731
+ method: "PATCH",
10732
+ data,
10733
+ params,
10734
+ headers,
10735
+ })
10736
+ .catch((e) => {
10737
+ this.logger.error(formatErrors(e));
10738
+ throw e;
10739
+ });
10740
+ }),
10741
+ },
10742
+ /**
10743
+ * 员工离职
10744
+ */
10745
+ offboarding: {
10746
+ /**
10747
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=query&version=v1 click to debug }
10748
+ *
10749
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/query document }
10750
+ *
10751
+ * 查询员工离职原因列表
10752
+ *
10753
+ * 查询「飞书人事」-「离职设置」中的离职原因
10754
+ */
10755
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10756
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10757
+ return this.httpInstance
10758
+ .request({
10759
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/offboardings/query`, path),
10760
+ method: "POST",
10761
+ data,
10762
+ params,
10763
+ headers,
10764
+ })
10765
+ .catch((e) => {
10766
+ this.logger.error(formatErrors(e));
10767
+ throw e;
10768
+ });
10769
+ }),
10770
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10771
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10772
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
10773
+ const res = yield this.httpInstance
10774
+ .request({
10775
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/offboardings/search`, path),
10776
+ method: "POST",
10777
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
10778
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
10779
+ })
10780
+ .catch((e) => {
10781
+ this.logger.error(formatErrors(e));
10782
+ });
10783
+ return res;
10784
+ });
10785
+ const Iterable = {
10786
+ [Symbol.asyncIterator]() {
10787
+ return __asyncGenerator(this, arguments, function* _a() {
10788
+ let hasMore = true;
10789
+ let pageToken;
10790
+ while (hasMore) {
10791
+ try {
10792
+ const res = yield __await(sendRequest({
10793
+ headers,
10794
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
10795
+ data,
10796
+ }));
10797
+ const _b = get__default["default"](res, "data") || {}, {
10798
+ // @ts-ignore
10799
+ has_more,
10800
+ // @ts-ignore
10801
+ page_token,
10802
+ // @ts-ignore
10803
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
10804
+ yield yield __await(rest);
10805
+ hasMore = Boolean(has_more);
10806
+ pageToken = page_token || next_page_token;
10807
+ }
10808
+ catch (e) {
10809
+ yield yield __await(null);
10810
+ break;
10811
+ }
10812
+ }
10813
+ });
10814
+ },
10815
+ };
10816
+ return Iterable;
10817
+ }),
10818
+ /**
10819
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=search&version=v1 click to debug }
10820
+ *
10821
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=offboarding&version=v1 document }
10822
+ *
10823
+ * 根据 雇佣 ID 查询员工离职信息
10824
+ */
10825
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10826
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10827
+ return this.httpInstance
10828
+ .request({
10829
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/offboardings/search`, path),
10830
+ method: "POST",
10831
+ data,
10832
+ params,
10833
+ headers,
10834
+ })
10835
+ .catch((e) => {
10836
+ this.logger.error(formatErrors(e));
10837
+ throw e;
10838
+ });
10839
+ }),
10840
+ /**
10841
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=offboarding&apiName=submit&version=v1 click to debug }
10842
+ *
10843
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/submit document }
10844
+ *
10845
+ * 操作员工离职
10846
+ *
10847
+ * 操作员工直接离职
10848
+ */
10849
+ submit: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10850
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10851
+ return this.httpInstance
10852
+ .request({
10853
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/offboardings/submit`, path),
10854
+ method: "POST",
10855
+ data,
10856
+ params,
10857
+ headers,
10858
+ })
10859
+ .catch((e) => {
10860
+ this.logger.error(formatErrors(e));
10861
+ throw e;
10862
+ });
10863
+ }),
10864
+ },
10865
+ /**
10866
+ * 个人信息
10867
+ */
10868
+ person: {
10869
+ /**
10870
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
10871
+ *
10872
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/delete document }
10873
+ *
10874
+ * 删除个人信息
10875
+ *
10876
+ * 删除人员的个人信息
10877
+ */
10878
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10879
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10880
+ return this.httpInstance
10881
+ .request({
10882
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
10883
+ method: "DELETE",
10884
+ data,
10885
+ params,
10886
+ headers,
10887
+ })
10888
+ .catch((e) => {
10889
+ this.logger.error(formatErrors(e));
10890
+ throw e;
10891
+ });
10892
+ }),
10893
+ /**
10894
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=get&version=v1 click to debug }
10895
+ *
10896
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/get document }
10897
+ *
10898
+ * 查询单个个人信息
10899
+ *
10900
+ * 根据 ID 查询单个人员的个人信息
10901
+ */
10902
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10903
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10904
+ return this.httpInstance
10905
+ .request({
10906
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
10907
+ method: "GET",
10908
+ data,
10909
+ params,
10910
+ headers,
10911
+ })
10912
+ .catch((e) => {
10913
+ this.logger.error(formatErrors(e));
10914
+ throw e;
10915
+ });
10916
+ }),
10917
+ /**
10918
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
10919
+ *
10920
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/upload document }
10921
+ *
10922
+ * 上传文件
10923
+ *
10924
+ * 上传文件
10925
+ */
10926
+ upload: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10927
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10928
+ const res = yield this.httpInstance
10929
+ .request({
10930
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/upload`, path),
10931
+ method: "POST",
10932
+ data,
10933
+ params,
10934
+ headers: Object.assign(Object.assign({}, headers), { "Content-Type": "multipart/form-data" }),
10935
+ })
10936
+ .catch((e) => {
10937
+ this.logger.error(formatErrors(e));
10938
+ throw e;
10939
+ });
10940
+ return get__default["default"](res, "data", null);
10941
+ }),
10942
+ },
10943
+ /**
10944
+ * 待入职
10945
+ */
10946
+ preHire: {
10947
+ /**
10948
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=delete&version=v1 click to debug }
10949
+ *
10950
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/delete document }
10951
+ *
10952
+ * 删除待入职人员
10953
+ *
10954
+ * 删除待入职人员
10955
+ */
10956
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10957
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10958
+ return this.httpInstance
10959
+ .request({
10960
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`, path),
10961
+ method: "DELETE",
10962
+ data,
10963
+ params,
10964
+ headers,
10965
+ })
10966
+ .catch((e) => {
10967
+ this.logger.error(formatErrors(e));
10968
+ throw e;
10969
+ });
10970
+ }),
10971
+ /**
10972
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=get&version=v1 click to debug }
10973
+ *
10974
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/get document }
10975
+ *
10976
+ * 查询单个待入职人员
10977
+ *
10978
+ * 根据 ID 查询单个待入职人员
10979
+ */
10980
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10981
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
10982
+ return this.httpInstance
10983
+ .request({
10984
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`, path),
10985
+ method: "GET",
10986
+ data,
10987
+ params,
10988
+ headers,
10989
+ })
10990
+ .catch((e) => {
10991
+ this.logger.error(formatErrors(e));
10992
+ throw e;
10993
+ });
10994
+ }),
10995
+ /**
10996
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=list&version=v1 click to debug }
10997
+ *
10998
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/list document }
10999
+ *
11000
+ * 批量查询待入职人员
11001
+ *
11002
+ * 批量查询待入职人员
11003
+ */
11004
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11005
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11006
+ return this.httpInstance
11007
+ .request({
11008
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/pre_hires`, path),
11009
+ method: "GET",
11010
+ data,
11011
+ params,
11012
+ headers,
11013
+ })
11014
+ .catch((e) => {
11015
+ this.logger.error(formatErrors(e));
11016
+ throw e;
11017
+ });
11018
+ }),
11019
+ /**
11020
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=patch&version=v1 click to debug }
11021
+ *
11022
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/patch document }
11023
+ *
11024
+ * 更新待入职数据
11025
+ *
11026
+ * 更新待入职数据
11027
+ */
11028
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11029
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11030
+ return this.httpInstance
11031
+ .request({
11032
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`, path),
11033
+ method: "PATCH",
11034
+ data,
11035
+ params,
11036
+ headers,
11037
+ })
11038
+ .catch((e) => {
11039
+ this.logger.error(formatErrors(e));
11040
+ throw e;
11041
+ });
11042
+ }),
11043
+ },
11044
+ /**
11045
+ * 流程管理
11046
+ */
11047
+ processFormVariableData: {
11048
+ /**
11049
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=process.form_variable_data&apiName=get&version=v1 click to debug }
11050
+ *
11051
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/process-form_variable_data/get document }
11052
+ *
11053
+ * 获取流程表单数据
11054
+ *
11055
+ * 获取流程表单数据
11056
+ */
11057
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11058
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11059
+ return this.httpInstance
11060
+ .request({
11061
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`, path),
11062
+ method: "GET",
11063
+ data,
11064
+ params,
11065
+ headers,
11066
+ })
11067
+ .catch((e) => {
11068
+ this.logger.error(formatErrors(e));
11069
+ throw e;
11070
+ });
11071
+ }),
11072
+ },
11073
+ /**
11074
+ * security_group
11075
+ */
11076
+ securityGroup: {
11077
+ /**
11078
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=security_group&apiName=list&version=v1 click to debug }
11079
+ *
11080
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/list document }
11081
+ *
11082
+ * 批量获取角色列表
11083
+ *
11084
+ * 批量查询「飞书人事」-「权限设置」-「角色设置」中的角色列表
11085
+ */
11086
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11087
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11088
+ return this.httpInstance
11089
+ .request({
11090
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/security_groups`, path),
11091
+ method: "GET",
11092
+ data,
11093
+ params,
11094
+ headers,
11095
+ })
11096
+ .catch((e) => {
11097
+ this.logger.error(formatErrors(e));
11098
+ throw e;
11099
+ });
11100
+ }),
11101
+ /**
11102
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=security_group&apiName=query&version=v1 click to debug }
11103
+ *
11104
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/query document }
11105
+ *
11106
+ * HRBP/属地 BP 查询
11107
+ *
11108
+ * 通过部门或工作地点,查询对应的 HRBP/属地 BP
11109
+ */
11110
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11111
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11112
+ return this.httpInstance
11113
+ .request({
11114
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/security_groups/query`, path),
11115
+ method: "POST",
11116
+ data,
11117
+ params,
11118
+ headers,
11119
+ })
11120
+ .catch((e) => {
11121
+ this.logger.error(formatErrors(e));
11122
+ throw e;
11123
+ });
11124
+ }),
11125
+ },
11126
+ /**
11127
+ * 地理库信息
11128
+ */
11129
+ subdivision: {
11130
+ /**
11131
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=subdivision&apiName=get&version=v1 click to debug }
11132
+ *
11133
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/get document }
11134
+ *
11135
+ * 查询单条省份/行政区信息
11136
+ *
11137
+ * 查询单条省份/行政区信息
11138
+ */
11139
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11140
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11141
+ return this.httpInstance
11142
+ .request({
11143
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`, path),
11144
+ method: "GET",
11145
+ data,
11146
+ params,
11147
+ headers,
11148
+ })
11149
+ .catch((e) => {
11150
+ this.logger.error(formatErrors(e));
11151
+ throw e;
11152
+ });
11153
+ }),
11154
+ /**
11155
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=subdivision&apiName=list&version=v1 click to debug }
11156
+ *
11157
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/list document }
11158
+ *
11159
+ * 批量查询省份/行政区信息
11160
+ *
11161
+ * 批量查询省份/行政区信息
11162
+ */
11163
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11164
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11165
+ return this.httpInstance
11166
+ .request({
11167
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/subdivisions`, path),
11168
+ method: "GET",
11169
+ data,
11170
+ params,
11171
+ headers,
11172
+ })
11173
+ .catch((e) => {
11174
+ this.logger.error(formatErrors(e));
11175
+ throw e;
11176
+ });
11177
+ }),
11178
+ },
11179
+ /**
11180
+ * 地理库信息
11181
+ */
11182
+ subregion: {
11183
+ /**
11184
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=subregion&apiName=get&version=v1 click to debug }
11185
+ *
11186
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/get document }
11187
+ *
11188
+ * 查询单条城市/区域信息
11189
+ *
11190
+ * 查询单条城市/区域信息
11191
+ */
11192
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11193
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11194
+ return this.httpInstance
11195
+ .request({
11196
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`, path),
11197
+ method: "GET",
11198
+ data,
11199
+ params,
11200
+ headers,
11201
+ })
11202
+ .catch((e) => {
11203
+ this.logger.error(formatErrors(e));
11204
+ throw e;
11205
+ });
11206
+ }),
11207
+ /**
11208
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=subregion&apiName=list&version=v1 click to debug }
11209
+ *
11210
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/list document }
11211
+ *
11212
+ * 批量查询城市/区域信息
11213
+ *
11214
+ * 批量查询城市/区域信息
11215
+ */
11216
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11217
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11218
+ return this.httpInstance
11219
+ .request({
11220
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/subregions`, path),
11221
+ method: "GET",
11222
+ data,
11223
+ params,
11224
+ headers,
11225
+ })
11226
+ .catch((e) => {
11227
+ this.logger.error(formatErrors(e));
11228
+ throw e;
11229
+ });
11230
+ }),
11231
+ },
11232
+ /**
11233
+ * 异动原因
11234
+ */
11235
+ transferReason: {
11236
+ /**
11237
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=transfer_reason&apiName=query&version=v1 click to debug }
11238
+ *
11239
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_reason/query document }
11240
+ *
11241
+ * 获取异动原因列表
11242
+ *
11243
+ * 获取异动原因列表
11244
+ */
11245
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11246
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11247
+ return this.httpInstance
11248
+ .request({
11249
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`, path),
11250
+ method: "GET",
11251
+ data,
11252
+ params,
11253
+ headers,
11254
+ })
11255
+ .catch((e) => {
11256
+ this.logger.error(formatErrors(e));
11257
+ throw e;
11258
+ });
11259
+ }),
11260
+ },
11261
+ /**
11262
+ * 异动类型
11263
+ */
11264
+ transferType: {
11265
+ /**
11266
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=transfer_type&apiName=query&version=v1 click to debug }
11267
+ *
11268
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_type/query document }
11269
+ *
11270
+ * 获取异动类型列表
11271
+ *
11272
+ * 获取异动类型列表
11273
+ */
11274
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11275
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11276
+ return this.httpInstance
11277
+ .request({
11278
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/transfer_types/query`, path),
11279
+ method: "GET",
11280
+ data,
11281
+ params,
11282
+ headers,
11283
+ })
11284
+ .catch((e) => {
11285
+ this.logger.error(formatErrors(e));
11286
+ throw e;
11287
+ });
11288
+ }),
11289
+ },
11290
+ /**
11291
+ * 工时制度
11292
+ */
11293
+ workingHoursType: {
11294
+ /**
11295
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=working_hours_type&apiName=create&version=v1 click to debug }
11296
+ *
11297
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/create document }
11298
+ *
11299
+ * 创建工时制度
11300
+ *
11301
+ * 创建工时制度
11302
+ */
11303
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11304
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11305
+ return this.httpInstance
11306
+ .request({
11307
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/working_hours_types`, path),
11308
+ method: "POST",
11309
+ data,
11310
+ params,
11311
+ headers,
11312
+ })
11313
+ .catch((e) => {
11314
+ this.logger.error(formatErrors(e));
11315
+ throw e;
11316
+ });
11317
+ }),
11318
+ /**
11319
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=working_hours_type&apiName=delete&version=v1 click to debug }
11320
+ *
11321
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/delete document }
11322
+ *
11323
+ * 删除工时制度
11324
+ *
11325
+ * 删除工时制度
11326
+ */
11327
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11328
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11329
+ return this.httpInstance
11330
+ .request({
11331
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`, path),
11332
+ method: "DELETE",
11333
+ data,
11334
+ params,
11335
+ headers,
11336
+ })
11337
+ .catch((e) => {
11338
+ this.logger.error(formatErrors(e));
11339
+ throw e;
11340
+ });
11341
+ }),
11342
+ /**
11343
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=working_hours_type&apiName=get&version=v1 click to debug }
11344
+ *
11345
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get document }
11346
+ *
11347
+ * 查询单个工时制度
11348
+ *
11349
+ * 根据 ID 查询单个工时制度
11350
+ */
11351
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11352
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11353
+ return this.httpInstance
11354
+ .request({
11355
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`, path),
11356
+ method: "GET",
11357
+ data,
11358
+ params,
11359
+ headers,
11360
+ })
11361
+ .catch((e) => {
11362
+ this.logger.error(formatErrors(e));
11363
+ throw e;
11364
+ });
11365
+ }),
11366
+ /**
11367
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=working_hours_type&apiName=list&version=v1 click to debug }
11368
+ *
11369
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list document }
11370
+ *
11371
+ * 批量查询工时制度
11372
+ *
11373
+ * 批量查询工时制度
11374
+ */
11375
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11376
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11377
+ return this.httpInstance
11378
+ .request({
11379
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/working_hours_types`, path),
11380
+ method: "GET",
11381
+ data,
11382
+ params,
11383
+ headers,
11384
+ })
11385
+ .catch((e) => {
11386
+ this.logger.error(formatErrors(e));
11387
+ throw e;
11388
+ });
11389
+ }),
11390
+ /**
11391
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=working_hours_type&apiName=patch&version=v1 click to debug }
11392
+ *
11393
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/patch document }
11394
+ *
11395
+ * 更新工时制度
11396
+ *
11397
+ * 更新工时制度
11398
+ */
11399
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11400
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11401
+ return this.httpInstance
11402
+ .request({
11403
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`, path),
11404
+ method: "PATCH",
11405
+ data,
11406
+ params,
11407
+ headers,
11408
+ })
11409
+ .catch((e) => {
11410
+ this.logger.error(formatErrors(e));
11411
+ throw e;
11412
+ });
11413
+ }),
11414
+ },
11415
+ };
11416
+ /**
11417
+
11418
+ */
11419
+ this.docs_tool = {};
11420
+ /**
11421
+ * 云文档-文档
11422
+ */
11423
+ this.docx = {
11424
+ /**
11425
+ * 块
11426
+ */
11427
+ documentBlock: {
11428
+ /**
11429
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=batch_update&version=v1 click to debug }
11430
+ *
11431
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/batch_update document }
11432
+ *
11433
+ * 批量更新块
11434
+ *
11435
+ * 批量更新块的富文本内容。
11436
+ *
11437
+ * 频率限制:单个应用调用频率上限为每秒 3 次。
11438
+ *
11439
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnMiwAKCiE6oQEkPyhvmmQEe),了解相关规则及约束。
11440
+ */
11441
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11442
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11443
+ return this.httpInstance
11444
+ .request({
11445
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`, path),
11446
+ method: "PATCH",
11447
+ data,
11448
+ params,
11449
+ headers,
11450
+ })
11451
+ .catch((e) => {
11452
+ this.logger.error(formatErrors(e));
11453
+ throw e;
11454
+ });
11455
+ }),
11456
+ /**
11457
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=get&version=v1 click to debug }
11458
+ *
11459
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/get document }
11460
+ *
11461
+ * 获取块
11462
+ *
11463
+ * 获取指定块的富文本内容。
11464
+ *
11465
+ * 频率限制:单个应用调用频率上限为每秒 5 次。
11466
+ *
11467
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnamKaccZKqIMopnREJCZUMe#doxcnWEMWYAg2YMkEq0SZXHzaih),了解相关规则及约束。
11468
+ */
11469
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11470
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11471
+ return this.httpInstance
11472
+ .request({
11473
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`, path),
11474
+ method: "GET",
11475
+ data,
11476
+ params,
11477
+ headers,
11478
+ })
11479
+ .catch((e) => {
11480
+ this.logger.error(formatErrors(e));
11481
+ throw e;
11482
+ });
11483
+ }),
11484
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11485
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11486
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
11487
+ const res = yield this.httpInstance
11488
+ .request({
11489
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`, path),
11490
+ method: "GET",
11491
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
11492
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
11493
+ })
11494
+ .catch((e) => {
11495
+ this.logger.error(formatErrors(e));
11496
+ });
11497
+ return res;
11498
+ });
11499
+ const Iterable = {
11500
+ [Symbol.asyncIterator]() {
11501
+ return __asyncGenerator(this, arguments, function* _a() {
11502
+ let hasMore = true;
11503
+ let pageToken;
11504
+ while (hasMore) {
11505
+ try {
11506
+ const res = yield __await(sendRequest({
11507
+ headers,
11508
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
11509
+ data,
11510
+ }));
11511
+ const _b = get__default["default"](res, "data") || {}, {
11512
+ // @ts-ignore
11513
+ has_more,
11514
+ // @ts-ignore
11515
+ page_token,
11516
+ // @ts-ignore
11517
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
11518
+ yield yield __await(rest);
11519
+ hasMore = Boolean(has_more);
11520
+ pageToken = page_token || next_page_token;
11521
+ }
11522
+ catch (e) {
11523
+ yield yield __await(null);
11524
+ break;
11525
+ }
11526
+ }
11527
+ });
11528
+ },
11529
+ };
11530
+ return Iterable;
11531
+ }),
11532
+ /**
11533
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=list&version=v1 click to debug }
11534
+ *
11535
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/list document }
11536
+ *
11537
+ * 获取文档所有块
11538
+ *
11539
+ * 获取文档所有块的富文本内容并分页返回。
11540
+ *
11541
+ * 频率限制:单个应用调用频率上限为每秒 5 次。
11542
+ *
11543
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnamKaccZKqIMopnREJCZUMe#doxcn6AkCE2AUUm2WwxID7lS7Xc),了解相关规则及约束。
11544
+ */
11545
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11546
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11547
+ return this.httpInstance
11548
+ .request({
11549
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`, path),
11550
+ method: "GET",
11551
+ data,
11552
+ params,
11553
+ headers,
11554
+ })
11555
+ .catch((e) => {
11556
+ this.logger.error(formatErrors(e));
11557
+ throw e;
11558
+ });
11559
+ }),
11560
+ /**
11561
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block&apiName=patch&version=v1 click to debug }
11562
+ *
11563
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block/patch document }
11564
+ *
11565
+ * 更新块
11566
+ *
11567
+ * 更新指定的块。
11568
+ *
11569
+ * 频率限制:单个应用调用频率上限为每秒 3 次。
11570
+ *
11571
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnEeyS0I8MMqoieIMpK7jm8g),了解相关规则及约束。
11572
+ */
11573
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11574
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11575
+ return this.httpInstance
11576
+ .request({
11577
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`, path),
11578
+ method: "PATCH",
11579
+ data,
11580
+ params,
11581
+ headers,
11582
+ })
11583
+ .catch((e) => {
11584
+ this.logger.error(formatErrors(e));
11585
+ throw e;
11586
+ });
11587
+ }),
11588
+ },
11589
+ /**
11590
+ * document.block.children
11591
+ */
11592
+ documentBlockChildren: {
11593
+ /**
11594
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=batch_delete&version=v1 click to debug }
11595
+ *
11596
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/batch_delete document }
11597
+ *
11598
+ * 删除块
11599
+ *
11600
+ * 指定需要操作的块,删除其指定范围的子块。如果操作成功,接口将返回应用删除操作后的文档版本号。
11601
+ *
11602
+ * 频率限制:单个应用调用频率上限为每秒 3 次。
11603
+ *
11604
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcngCsscGk0WacO258mYDgM6b),了解相关规则及约束。
11605
+ */
11606
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11607
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11608
+ return this.httpInstance
11609
+ .request({
11610
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`, path),
11611
+ method: "DELETE",
11612
+ data,
11613
+ params,
11614
+ headers,
11615
+ })
11616
+ .catch((e) => {
11617
+ this.logger.error(formatErrors(e));
11618
+ throw e;
11619
+ });
11620
+ }),
11621
+ /**
11622
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=create&version=v1 click to debug }
11623
+ *
11624
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/create document }
11625
+ *
11626
+ * 创建块
11627
+ *
11628
+ * 指定需要操作的块,为其创建一批子块,并插入到指定位置。如果操作成功,接口将返回新创建子块的富文本内容。
11629
+ *
11630
+ * 频率限制:单个应用调用频率上限为每秒 3 次。
11631
+ *
11632
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnm0ooUe0s20GwwVB3a05rtb),了解相关规则及约束。
11633
+ */
11634
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11635
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11636
+ return this.httpInstance
11637
+ .request({
11638
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
11639
+ method: "POST",
11640
+ data,
11641
+ params,
11642
+ headers,
11643
+ })
11644
+ .catch((e) => {
11645
+ this.logger.error(formatErrors(e));
11646
+ throw e;
11647
+ });
11648
+ }),
11649
+ getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11650
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11651
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
11652
+ const res = yield this.httpInstance
11653
+ .request({
11654
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
11655
+ method: "GET",
11656
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
11657
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
11658
+ })
11659
+ .catch((e) => {
11660
+ this.logger.error(formatErrors(e));
11661
+ });
11662
+ return res;
11663
+ });
11664
+ const Iterable = {
11665
+ [Symbol.asyncIterator]() {
11666
+ return __asyncGenerator(this, arguments, function* _a() {
11667
+ let hasMore = true;
11668
+ let pageToken;
11669
+ while (hasMore) {
11670
+ try {
11671
+ const res = yield __await(sendRequest({
11672
+ headers,
11673
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
11674
+ data,
11675
+ }));
11676
+ const _b = get__default["default"](res, "data") || {}, {
11677
+ // @ts-ignore
11678
+ has_more,
11679
+ // @ts-ignore
11680
+ page_token,
11681
+ // @ts-ignore
11682
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
11683
+ yield yield __await(rest);
11684
+ hasMore = Boolean(has_more);
11685
+ pageToken = page_token || next_page_token;
11686
+ }
11687
+ catch (e) {
11688
+ yield yield __await(null);
11689
+ break;
11690
+ }
11691
+ }
11692
+ });
11693
+ },
11694
+ };
11695
+ return Iterable;
11696
+ }),
11697
+ /**
11698
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document.block.children&apiName=get&version=v1 click to debug }
11699
+ *
11700
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document-block-children/get document }
11701
+ *
11702
+ * 获取所有子块
11703
+ *
11704
+ * 给定一个指定版本的文档,并指定需要操作的块,分页遍历其所有子块富文本内容 。如果不指定版本,则会默认查询最新版本。
11705
+ *
11706
+ * 频率限制:单个应用调用频率上限为每秒 5 次。
11707
+ *
11708
+ * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnE2UK2yY0gEGK8nBMPtB0vd),了解相关规则及约束。
11709
+ */
11710
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11711
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11712
+ return this.httpInstance
11713
+ .request({
11714
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`, path),
11715
+ method: "GET",
11716
+ data,
11717
+ params,
11718
+ headers,
11719
+ })
11720
+ .catch((e) => {
11721
+ this.logger.error(formatErrors(e));
11722
+ throw e;
11723
+ });
11724
+ }),
11725
+ },
11726
+ /**
11727
+ * 文档
11728
+ */
11729
+ document: {
11730
+ /**
11731
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=document&apiName=create&version=v1 click to debug }
11732
+ *
11733
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document/create document }
11734
+ *
11735
+ * 创建文档
11736
+ *
11737
+ * 创建新版文档,文档标题和目录可选。
11738
+ *
11739
+ * 频率限制:单个应用调用频率上限为每秒 3 次。
9356
11740
  *
9357
11741
  * 在调用此接口前,请仔细阅读[新版文档 OpenAPI 接口校验规则](https://bytedance.feishu.cn/docx/doxcnby5Y0yoACL3PdfZqrJEm6f#doxcnyoyCgwS8ywWwMtQr9yjZ2f),了解相关规则及约束。
9358
11742
  */
@@ -10274,8 +12658,32 @@ class Client$1 {
10274
12658
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10275
12659
  return this.httpInstance
10276
12660
  .request({
10277
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
10278
- method: "POST",
12661
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
12662
+ method: "POST",
12663
+ data,
12664
+ params,
12665
+ headers,
12666
+ })
12667
+ .catch((e) => {
12668
+ this.logger.error(formatErrors(e));
12669
+ throw e;
12670
+ });
12671
+ }),
12672
+ /**
12673
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=delete&version=v1 click to debug }
12674
+ *
12675
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/delete document }
12676
+ *
12677
+ * 删除文档版本
12678
+ *
12679
+ * 删除文档版本。
12680
+ */
12681
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12682
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12683
+ return this.httpInstance
12684
+ .request({
12685
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`, path),
12686
+ method: "DELETE",
10279
12687
  data,
10280
12688
  params,
10281
12689
  headers,
@@ -10286,20 +12694,20 @@ class Client$1 {
10286
12694
  });
10287
12695
  }),
10288
12696
  /**
10289
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=delete&version=v1 click to debug }
12697
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=get&version=v1 click to debug }
10290
12698
  *
10291
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/delete document }
12699
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/get document }
10292
12700
  *
10293
- * 删除文档版本
12701
+ * 获取文档版本
10294
12702
  *
10295
- * 删除文档版本。
12703
+ * 获取文档版本。
10296
12704
  */
10297
- delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12705
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10298
12706
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10299
12707
  return this.httpInstance
10300
12708
  .request({
10301
12709
  url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`, path),
10302
- method: "DELETE",
12710
+ method: "GET",
10303
12711
  data,
10304
12712
  params,
10305
12713
  headers,
@@ -10309,12 +12717,12 @@ class Client$1 {
10309
12717
  throw e;
10310
12718
  });
10311
12719
  }),
10312
- getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12720
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10313
12721
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10314
12722
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
10315
12723
  const res = yield this.httpInstance
10316
12724
  .request({
10317
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`, path),
12725
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
10318
12726
  method: "GET",
10319
12727
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
10320
12728
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -10358,19 +12766,19 @@ class Client$1 {
10358
12766
  return Iterable;
10359
12767
  }),
10360
12768
  /**
10361
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=get&version=v1 click to debug }
12769
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=list&version=v1 click to debug }
10362
12770
  *
10363
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/get document }
12771
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/list document }
10364
12772
  *
10365
- * 获取文档版本
12773
+ * 获取文档版本列表
10366
12774
  *
10367
- * 获取文档版本。
12775
+ * 获取文档所有版本。
10368
12776
  */
10369
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12777
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10370
12778
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10371
12779
  return this.httpInstance
10372
12780
  .request({
10373
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`, path),
12781
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
10374
12782
  method: "GET",
10375
12783
  data,
10376
12784
  params,
@@ -10381,12 +12789,17 @@ class Client$1 {
10381
12789
  throw e;
10382
12790
  });
10383
12791
  }),
12792
+ },
12793
+ /**
12794
+ * file.view_record
12795
+ */
12796
+ fileViewRecord: {
10384
12797
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10385
12798
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10386
12799
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
10387
12800
  const res = yield this.httpInstance
10388
12801
  .request({
10389
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
12802
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`, path),
10390
12803
  method: "GET",
10391
12804
  headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
10392
12805
  params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
@@ -10430,19 +12843,15 @@ class Client$1 {
10430
12843
  return Iterable;
10431
12844
  }),
10432
12845
  /**
10433
- * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.version&apiName=list&version=v1 click to debug }
10434
- *
10435
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/file-version/list document }
10436
- *
10437
- * 获取文档版本列表
12846
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.view_record&apiName=list&version=v1 click to debug }
10438
12847
  *
10439
- * 获取文档所有版本。
12848
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=drive&resource=file.view_record&version=v1 document }
10440
12849
  */
10441
12850
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
10442
12851
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
10443
12852
  return this.httpInstance
10444
12853
  .request({
10445
- url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`, path),
12854
+ url: fillApiPath(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`, path),
10446
12855
  method: "GET",
10447
12856
  data,
10448
12857
  params,
@@ -12781,7 +15190,7 @@ class Client$1 {
12781
15190
  */
12782
15191
  this.hire = {
12783
15192
  /**
12784
- * 入职
15193
+ * 投递
12785
15194
  */
12786
15195
  application: {
12787
15196
  /**
@@ -13218,6 +15627,50 @@ class Client$1 {
13218
15627
  throw e;
13219
15628
  });
13220
15629
  }),
15630
+ /**
15631
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=delete&version=v1 click to debug }
15632
+ *
15633
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=external_application&version=v1 document }
15634
+ *
15635
+ * 删除外部投递
15636
+ */
15637
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15638
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15639
+ return this.httpInstance
15640
+ .request({
15641
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
15642
+ method: "DELETE",
15643
+ data,
15644
+ params,
15645
+ headers,
15646
+ })
15647
+ .catch((e) => {
15648
+ this.logger.error(formatErrors(e));
15649
+ throw e;
15650
+ });
15651
+ }),
15652
+ /**
15653
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_application&apiName=update&version=v1 click to debug }
15654
+ *
15655
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=external_application&version=v1 document }
15656
+ *
15657
+ * 更新外部投递
15658
+ */
15659
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15660
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15661
+ return this.httpInstance
15662
+ .request({
15663
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`, path),
15664
+ method: "PUT",
15665
+ data,
15666
+ params,
15667
+ headers,
15668
+ })
15669
+ .catch((e) => {
15670
+ this.logger.error(formatErrors(e));
15671
+ throw e;
15672
+ });
15673
+ }),
13221
15674
  },
13222
15675
  /**
13223
15676
  * 导入外部系统信息(灰度租户可见)
@@ -13280,22 +15733,205 @@ class Client$1 {
13280
15733
  /**
13281
15734
  * 导入外部系统信息(灰度租户可见)
13282
15735
  */
13283
- externalInterviewAssessment: {
15736
+ externalInterviewAssessment: {
15737
+ /**
15738
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
15739
+ *
15740
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
15741
+ *
15742
+ * 创建外部面评
15743
+ *
15744
+ * 导入来自其他系统的面评信息,创建为外部面评
15745
+ */
15746
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15747
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15748
+ return this.httpInstance
15749
+ .request({
15750
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
15751
+ method: "POST",
15752
+ data,
15753
+ params,
15754
+ headers,
15755
+ })
15756
+ .catch((e) => {
15757
+ this.logger.error(formatErrors(e));
15758
+ throw e;
15759
+ });
15760
+ }),
15761
+ },
15762
+ /**
15763
+ * 面试
15764
+ */
15765
+ interview: {
15766
+ /**
15767
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=interview&apiName=list&version=v1 click to debug }
15768
+ *
15769
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/interview/list document }
15770
+ *
15771
+ * 获取面试信息
15772
+ *
15773
+ * 根据投递 ID 或面试时间获取面试信息
15774
+ */
15775
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15776
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15777
+ return this.httpInstance
15778
+ .request({
15779
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviews`, path),
15780
+ method: "GET",
15781
+ data,
15782
+ params,
15783
+ headers,
15784
+ })
15785
+ .catch((e) => {
15786
+ this.logger.error(formatErrors(e));
15787
+ throw e;
15788
+ });
15789
+ }),
15790
+ },
15791
+ /**
15792
+ * 职位
15793
+ */
15794
+ job: {
15795
+ /**
15796
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_create&version=v1 click to debug }
15797
+ *
15798
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_create document }
15799
+ *
15800
+ * 新建职位
15801
+ *
15802
+ * 新建职位,字段的是否必填,以系统中的「职位字段管理」中的设置为准。
15803
+ */
15804
+ combinedCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15805
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15806
+ return this.httpInstance
15807
+ .request({
15808
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/combined_create`, path),
15809
+ method: "POST",
15810
+ data,
15811
+ params,
15812
+ headers,
15813
+ })
15814
+ .catch((e) => {
15815
+ this.logger.error(formatErrors(e));
15816
+ throw e;
15817
+ });
15818
+ }),
15819
+ /**
15820
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_update&version=v1 click to debug }
15821
+ *
15822
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_update document }
15823
+ *
15824
+ * 更新职位
15825
+ *
15826
+ * 更新职位信息,该接口为全量更新,若字段没有返回值,则原有值将会被清空。字段的是否必填,将以系统中的「职位字段管理」中的设置为准。
15827
+ */
15828
+ combinedUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15829
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15830
+ return this.httpInstance
15831
+ .request({
15832
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`, path),
15833
+ method: "POST",
15834
+ data,
15835
+ params,
15836
+ headers,
15837
+ })
15838
+ .catch((e) => {
15839
+ this.logger.error(formatErrors(e));
15840
+ throw e;
15841
+ });
15842
+ }),
15843
+ /**
15844
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=config&version=v1 click to debug }
15845
+ *
15846
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/config document }
15847
+ *
15848
+ * 获取职位设置
15849
+ *
15850
+ * 获取职位设置
15851
+ */
15852
+ config: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15853
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15854
+ return this.httpInstance
15855
+ .request({
15856
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`, path),
15857
+ method: "GET",
15858
+ data,
15859
+ params,
15860
+ headers,
15861
+ })
15862
+ .catch((e) => {
15863
+ this.logger.error(formatErrors(e));
15864
+ throw e;
15865
+ });
15866
+ }),
15867
+ /**
15868
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
15869
+ *
15870
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get document }
15871
+ *
15872
+ * 获取职位信息
15873
+ *
15874
+ * 根据职位 ID 获取职位信息
15875
+ */
15876
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15877
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15878
+ return this.httpInstance
15879
+ .request({
15880
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id`, path),
15881
+ method: "GET",
15882
+ data,
15883
+ params,
15884
+ headers,
15885
+ })
15886
+ .catch((e) => {
15887
+ this.logger.error(formatErrors(e));
15888
+ throw e;
15889
+ });
15890
+ }),
15891
+ /**
15892
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
15893
+ *
15894
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/update_config document }
15895
+ *
15896
+ * 更新职位设置
15897
+ *
15898
+ * 更新职位设置,包括面试评价表、Offer 申请表等。接口将按照所选择的「更新选项」进行设置参数校验和更新。
15899
+ */
15900
+ updateConfig: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15901
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
15902
+ return this.httpInstance
15903
+ .request({
15904
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`, path),
15905
+ method: "POST",
15906
+ data,
15907
+ params,
15908
+ headers,
15909
+ })
15910
+ .catch((e) => {
15911
+ this.logger.error(formatErrors(e));
15912
+ throw e;
15913
+ });
15914
+ }),
15915
+ },
15916
+ /**
15917
+ * job.manager
15918
+ */
15919
+ jobManager: {
13284
15920
  /**
13285
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=external_interview_assessment&apiName=create&version=v1 click to debug }
15921
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job.manager&apiName=get&version=v1 click to debug }
13286
15922
  *
13287
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/external_interview_assessment/create document }
15923
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job-manager/get document }
13288
15924
  *
13289
- * 创建外部面评
15925
+ * 获取职位上的招聘人员信息
13290
15926
  *
13291
- * 导入来自其他系统的面评信息,创建为外部面评
15927
+ * 根据职位 ID 获取职位上的招聘人员信息,如招聘负责人、用人经理
13292
15928
  */
13293
- create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15929
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13294
15930
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13295
15931
  return this.httpInstance
13296
15932
  .request({
13297
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/external_interview_assessments`, path),
13298
- method: "POST",
15933
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`, path),
15934
+ method: "GET",
13299
15935
  data,
13300
15936
  params,
13301
15937
  headers,
@@ -13307,24 +15943,24 @@ class Client$1 {
13307
15943
  }),
13308
15944
  },
13309
15945
  /**
13310
- * 职位
15946
+ * 流程
13311
15947
  */
13312
- job: {
15948
+ jobProcess: {
13313
15949
  /**
13314
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_create&version=v1 click to debug }
15950
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
13315
15951
  *
13316
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_create document }
15952
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_process/list document }
13317
15953
  *
13318
- * 新建职位
15954
+ * 获取招聘流程信息
13319
15955
  *
13320
- * 新建职位,字段的是否必填,以系统中的「职位字段管理」中的设置为准。
15956
+ * 获取全部招聘流程信息
13321
15957
  */
13322
- combinedCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15958
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13323
15959
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13324
15960
  return this.httpInstance
13325
15961
  .request({
13326
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/combined_create`, path),
13327
- method: "POST",
15962
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_processes`, path),
15963
+ method: "GET",
13328
15964
  data,
13329
15965
  params,
13330
15966
  headers,
@@ -13334,20 +15970,25 @@ class Client$1 {
13334
15970
  throw e;
13335
15971
  });
13336
15972
  }),
15973
+ },
15974
+ /**
15975
+ * 招聘需求(灰度租户可见)
15976
+ */
15977
+ jobRequirement: {
13337
15978
  /**
13338
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_update&version=v1 click to debug }
15979
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement&apiName=create&version=v1 click to debug }
13339
15980
  *
13340
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_update document }
15981
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_requirement/create document }
13341
15982
  *
13342
- * 更新职位
15983
+ * 创建招聘需求
13343
15984
  *
13344
- * 更新职位信息,该接口为全量更新,若字段没有返回值,则原有值将会被清空。字段的是否必填,将以系统中的「职位字段管理」中的设置为准。
15985
+ * 创建招聘需求,除招聘需求编号为必填外,其他字段是否必填与飞书招聘「招聘需求字段管理」内设置一致
13345
15986
  */
13346
- combinedUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15987
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13347
15988
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13348
15989
  return this.httpInstance
13349
15990
  .request({
13350
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`, path),
15991
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirements`, path),
13351
15992
  method: "POST",
13352
15993
  data,
13353
15994
  params,
@@ -13359,20 +16000,20 @@ class Client$1 {
13359
16000
  });
13360
16001
  }),
13361
16002
  /**
13362
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=config&version=v1 click to debug }
16003
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement&apiName=delete&version=v1 click to debug }
13363
16004
  *
13364
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/config document }
16005
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_requirement/delete document }
13365
16006
  *
13366
- * 获取职位设置
16007
+ * 删除招聘需求
13367
16008
  *
13368
- * 获取职位设置
16009
+ * 删除招聘需求
13369
16010
  */
13370
- config: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16011
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13371
16012
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13372
16013
  return this.httpInstance
13373
16014
  .request({
13374
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`, path),
13375
- method: "GET",
16015
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`, path),
16016
+ method: "DELETE",
13376
16017
  data,
13377
16018
  params,
13378
16019
  headers,
@@ -13383,19 +16024,19 @@ class Client$1 {
13383
16024
  });
13384
16025
  }),
13385
16026
  /**
13386
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
16027
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement&apiName=list&version=v1 click to debug }
13387
16028
  *
13388
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/get document }
16029
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_requirement/list document }
13389
16030
  *
13390
- * 获取职位信息
16031
+ * 获取招聘需求列表
13391
16032
  *
13392
- * 根据职位 ID 获取职位信息
16033
+ * 获取招聘需求列表
13393
16034
  */
13394
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16035
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13395
16036
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13396
16037
  return this.httpInstance
13397
16038
  .request({
13398
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id`, path),
16039
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirements`, path),
13399
16040
  method: "GET",
13400
16041
  data,
13401
16042
  params,
@@ -13407,19 +16048,17 @@ class Client$1 {
13407
16048
  });
13408
16049
  }),
13409
16050
  /**
13410
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
13411
- *
13412
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/update_config document }
16051
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement&apiName=list_by_id&version=v1 click to debug }
13413
16052
  *
13414
- * 更新职位设置
16053
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list_by_id&project=hire&resource=job_requirement&version=v1 document }
13415
16054
  *
13416
- * 更新职位设置,包括面试评价表、Offer 申请表等。接口将按照所选择的「更新选项」进行设置参数校验和更新。
16055
+ * 获取招聘需求信息
13417
16056
  */
13418
- updateConfig: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16057
+ listById: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13419
16058
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13420
16059
  return this.httpInstance
13421
16060
  .request({
13422
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`, path),
16061
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirements/search`, path),
13423
16062
  method: "POST",
13424
16063
  data,
13425
16064
  params,
@@ -13430,26 +16069,21 @@ class Client$1 {
13430
16069
  throw e;
13431
16070
  });
13432
16071
  }),
13433
- },
13434
- /**
13435
- * job.manager
13436
- */
13437
- jobManager: {
13438
16072
  /**
13439
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job.manager&apiName=get&version=v1 click to debug }
16073
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement&apiName=update&version=v1 click to debug }
13440
16074
  *
13441
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job-manager/get document }
16075
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_requirement/update document }
13442
16076
  *
13443
- * 获取职位上的招聘人员信息
16077
+ * 更新招聘需求
13444
16078
  *
13445
- * 根据职位 ID 获取职位上的招聘人员信息,如招聘负责人、用人经理
16079
+ * 更新招聘需求
13446
16080
  */
13447
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
16081
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13448
16082
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13449
16083
  return this.httpInstance
13450
16084
  .request({
13451
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`, path),
13452
- method: "GET",
16085
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`, path),
16086
+ method: "PUT",
13453
16087
  data,
13454
16088
  params,
13455
16089
  headers,
@@ -13461,23 +16095,23 @@ class Client$1 {
13461
16095
  }),
13462
16096
  },
13463
16097
  /**
13464
- * 流程
16098
+ * job_requirement_schema
13465
16099
  */
13466
- jobProcess: {
16100
+ jobRequirementSchema: {
13467
16101
  /**
13468
- * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
16102
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_requirement_schema&apiName=list&version=v1 click to debug }
13469
16103
  *
13470
- * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_process/list document }
16104
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job_requirement_schema/list document }
13471
16105
  *
13472
- * 获取招聘流程信息
16106
+ * 获取招聘需求模板
13473
16107
  *
13474
- * 获取全部招聘流程信息
16108
+ * 获取招聘需求模板
13475
16109
  */
13476
16110
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
13477
16111
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
13478
16112
  return this.httpInstance
13479
16113
  .request({
13480
- url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_processes`, path),
16114
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`, path),
13481
16115
  method: "GET",
13482
16116
  data,
13483
16117
  params,
@@ -15337,7 +17971,7 @@ class Client$1 {
15337
17971
  }),
15338
17972
  },
15339
17973
  /**
15340
- * 消息
17974
+ * 消息 - 消息卡片
15341
17975
  */
15342
17976
  message: {
15343
17977
  /**
@@ -17879,6 +20513,214 @@ class Client$1 {
17879
20513
 
17880
20514
  */
17881
20515
  this.people_bytedance = {};
20516
+ /**
20517
+ * 个人设置
20518
+ */
20519
+ this.personal_settings = {
20520
+ /**
20521
+ * 系统状态
20522
+ */
20523
+ systemStatus: {
20524
+ /**
20525
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=batch_close&version=v1 click to debug }
20526
+ *
20527
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_close document }
20528
+ *
20529
+ * 批量关闭系统状态
20530
+ *
20531
+ * 批量关闭用户系统状态可用
20532
+ */
20533
+ batchClose: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20534
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20535
+ return this.httpInstance
20536
+ .request({
20537
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`, path),
20538
+ method: "POST",
20539
+ data,
20540
+ params,
20541
+ headers,
20542
+ })
20543
+ .catch((e) => {
20544
+ this.logger.error(formatErrors(e));
20545
+ throw e;
20546
+ });
20547
+ }),
20548
+ /**
20549
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=batch_open&version=v1 click to debug }
20550
+ *
20551
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_open document }
20552
+ *
20553
+ * 批量开启系统状态
20554
+ *
20555
+ * 批量开启用户系统状态可用
20556
+ */
20557
+ batchOpen: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20558
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20559
+ return this.httpInstance
20560
+ .request({
20561
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`, path),
20562
+ method: "POST",
20563
+ data,
20564
+ params,
20565
+ headers,
20566
+ })
20567
+ .catch((e) => {
20568
+ this.logger.error(formatErrors(e));
20569
+ throw e;
20570
+ });
20571
+ }),
20572
+ /**
20573
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=create&version=v1 click to debug }
20574
+ *
20575
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/create document }
20576
+ *
20577
+ * 创建系统状态
20578
+ *
20579
+ * 创建租户维度的系统状态。
20580
+ *
20581
+ * 注意事项:;- 操作的数据为租户维度数据,请小心操作。;- 每个租户最多创建10个系统状态。
20582
+ */
20583
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20584
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20585
+ return this.httpInstance
20586
+ .request({
20587
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses`, path),
20588
+ method: "POST",
20589
+ data,
20590
+ params,
20591
+ headers,
20592
+ })
20593
+ .catch((e) => {
20594
+ this.logger.error(formatErrors(e));
20595
+ throw e;
20596
+ });
20597
+ }),
20598
+ /**
20599
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=delete&version=v1 click to debug }
20600
+ *
20601
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/delete document }
20602
+ *
20603
+ * 删除系统状态
20604
+ *
20605
+ * 删除租户维度的系统状态。
20606
+ *
20607
+ * 注意事项:;- 操作的数据为租户维度数据,请小心操作。 ;- 删除系统状态后,并不影响正在使用该状态用户下系统状态的客户端展示。
20608
+ */
20609
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20610
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20611
+ return this.httpInstance
20612
+ .request({
20613
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`, path),
20614
+ method: "DELETE",
20615
+ data,
20616
+ params,
20617
+ headers,
20618
+ })
20619
+ .catch((e) => {
20620
+ this.logger.error(formatErrors(e));
20621
+ throw e;
20622
+ });
20623
+ }),
20624
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20625
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20626
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
20627
+ const res = yield this.httpInstance
20628
+ .request({
20629
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses`, path),
20630
+ method: "GET",
20631
+ headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
20632
+ params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
20633
+ })
20634
+ .catch((e) => {
20635
+ this.logger.error(formatErrors(e));
20636
+ });
20637
+ return res;
20638
+ });
20639
+ const Iterable = {
20640
+ [Symbol.asyncIterator]() {
20641
+ return __asyncGenerator(this, arguments, function* _a() {
20642
+ let hasMore = true;
20643
+ let pageToken;
20644
+ while (hasMore) {
20645
+ try {
20646
+ const res = yield __await(sendRequest({
20647
+ headers,
20648
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
20649
+ data,
20650
+ }));
20651
+ const _b = get__default["default"](res, "data") || {}, {
20652
+ // @ts-ignore
20653
+ has_more,
20654
+ // @ts-ignore
20655
+ page_token,
20656
+ // @ts-ignore
20657
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
20658
+ yield yield __await(rest);
20659
+ hasMore = Boolean(has_more);
20660
+ pageToken = page_token || next_page_token;
20661
+ }
20662
+ catch (e) {
20663
+ yield yield __await(null);
20664
+ break;
20665
+ }
20666
+ }
20667
+ });
20668
+ },
20669
+ };
20670
+ return Iterable;
20671
+ }),
20672
+ /**
20673
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=list&version=v1 click to debug }
20674
+ *
20675
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list document }
20676
+ *
20677
+ * 获取系统状态
20678
+ *
20679
+ * 获取租户下所有系统状态
20680
+ */
20681
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20682
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20683
+ return this.httpInstance
20684
+ .request({
20685
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses`, path),
20686
+ method: "GET",
20687
+ data,
20688
+ params,
20689
+ headers,
20690
+ })
20691
+ .catch((e) => {
20692
+ this.logger.error(formatErrors(e));
20693
+ throw e;
20694
+ });
20695
+ }),
20696
+ /**
20697
+ * {@link https://open.feishu.cn/api-explorer?project=personal_settings&resource=system_status&apiName=patch&version=v1 click to debug }
20698
+ *
20699
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/patch document }
20700
+ *
20701
+ * 修改系统状态
20702
+ *
20703
+ * 修改租户维度系统状态。
20704
+ *
20705
+ * 注意事项:;- 操作的数据为租户维度数据,请小心操作。 ;- 修改系统状态后,并不影响正在使用的用户。该用户的系统状态可用时间到期后,再次被开启可用的时候,用户客户端才会同步到更新后的系统状态。
20706
+ */
20707
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
20708
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
20709
+ return this.httpInstance
20710
+ .request({
20711
+ url: fillApiPath(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`, path),
20712
+ method: "PATCH",
20713
+ data,
20714
+ params,
20715
+ headers,
20716
+ })
20717
+ .catch((e) => {
20718
+ this.logger.error(formatErrors(e));
20719
+ throw e;
20720
+ });
20721
+ }),
20722
+ },
20723
+ };
17882
20724
  /**
17883
20725
 
17884
20726
  */
@@ -18746,7 +21588,7 @@ class Client$1 {
18746
21588
  }),
18747
21589
  },
18748
21590
  /**
18749
- * 单元格
21591
+ * 行列
18750
21592
  */
18751
21593
  spreadsheetSheet: {
18752
21594
  /**