@larksuiteoapi/node-sdk 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -212,7 +212,7 @@ class Client$1 {
212
212
  */
213
213
  this.acs = {
214
214
  /**
215
- * 识别图片
215
+ * access_record.access_photo
216
216
  */
217
217
  accessRecordAccessPhoto: {
218
218
  /**
@@ -220,9 +220,9 @@ class Client$1 {
220
220
  *
221
221
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record-access_photo/get document }
222
222
  *
223
- * 下载人脸识别图片
223
+ * 下载开门时的人脸识别图片
224
224
  *
225
- * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录,对于使用人脸识别方式进行开门的识别记录,还会有抓拍图。;;可以用该接口下载开门时的人脸识别照片
225
+ * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录,对于使用人脸识别方式进行开门的识别记录,还会有抓拍图。;;可以用该接口下载开门时的人脸识别照片。
226
226
  */
227
227
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
228
228
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -314,7 +314,7 @@ class Client$1 {
314
314
  *
315
315
  * 获取门禁记录列表
316
316
  *
317
- * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录。;;该接口返回满足查询参数的识别记录
317
+ * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录。;;该接口返回满足查询参数的识别记录。
318
318
  */
319
319
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
320
320
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -341,9 +341,9 @@ class Client$1 {
341
341
  *
342
342
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/device/list document }
343
343
  *
344
- * 获取设备列表
344
+ * 获取门禁设备列表
345
345
  *
346
- * 使用该接口获取租户内所有设备
346
+ * 使用该接口获取租户内所有门禁设备。
347
347
  */
348
348
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
349
349
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -362,7 +362,7 @@ class Client$1 {
362
362
  }),
363
363
  },
364
364
  /**
365
- * 人脸图片
365
+ * user.face
366
366
  */
367
367
  userFace: {
368
368
  /**
@@ -372,7 +372,7 @@ class Client$1 {
372
372
  *
373
373
  * 下载人脸图片
374
374
  *
375
- * 对于已经录入人脸图片的用户,可以使用该接口下载用户人脸图片
375
+ * 对于已经录入人脸图片的用户,可以使用该接口下载用户人脸图片。
376
376
  */
377
377
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
378
378
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -431,7 +431,7 @@ class Client$1 {
431
431
  }),
432
432
  },
433
433
  /**
434
- * 用户
434
+ * 用户管理
435
435
  */
436
436
  user: {
437
437
  /**
@@ -515,9 +515,9 @@ class Client$1 {
515
515
  *
516
516
  * 获取用户列表
517
517
  *
518
- * 使用该接口获取智能门禁中所有用户信息
518
+ * 使用该接口获取智能门禁中所有用户信息。
519
519
  *
520
- * 只能获取已加入智能门禁权限组的用户
520
+ * 只能获取已加入智能门禁权限组的用户。
521
521
  */
522
522
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
523
523
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -979,7 +979,7 @@ class Client$1 {
979
979
  }),
980
980
  },
981
981
  /**
982
- * 密码
982
+ * 登录密码管理
983
983
  */
984
984
  password: {
985
985
  /**
@@ -1013,7 +1013,7 @@ class Client$1 {
1013
1013
  */
1014
1014
  this.application = {
1015
1015
  /**
1016
- * 推荐规则
1016
+ * 我的常用推荐规则
1017
1017
  */
1018
1018
  appRecommendRule: {
1019
1019
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
@@ -1131,7 +1131,7 @@ class Client$1 {
1131
1131
  *
1132
1132
  * 获取应用版本信息
1133
1133
  *
1134
- * 根据 app_id,version_id 获取对应应用版本的信息
1134
+ * 根据应用 ID 和应用版本 ID 来获取同租户下的应用版本的信息
1135
1135
  */
1136
1136
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1137
1137
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -2247,7 +2247,7 @@ class Client$1 {
2247
2247
  }),
2248
2248
  },
2249
2249
  /**
2250
- * 审批查询
2250
+ * 原生审批任务
2251
2251
  */
2252
2252
  task: {
2253
2253
  /**
@@ -3879,6 +3879,30 @@ class Client$1 {
3879
3879
  * 仪表盘
3880
3880
  */
3881
3881
  appDashboard: {
3882
+ /**
3883
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=copy&version=v1 click to debug }
3884
+ *
3885
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-dashboard/copy document }
3886
+ *
3887
+ * 复制仪表盘
3888
+ *
3889
+ * 该接口用于根据现有仪表盘复制出新的仪表盘
3890
+ */
3891
+ copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3892
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3893
+ return httpInstance
3894
+ .request({
3895
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`, path),
3896
+ method: "POST",
3897
+ data,
3898
+ params,
3899
+ headers,
3900
+ })
3901
+ .catch((e) => {
3902
+ this.logger.error(formatErrors(e));
3903
+ throw e;
3904
+ });
3905
+ }),
3882
3906
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3883
3907
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
3884
3908
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -5156,6 +5180,30 @@ class Client$1 {
5156
5180
  throw e;
5157
5181
  });
5158
5182
  }),
5183
+ /**
5184
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=get&version=v1 click to debug }
5185
+ *
5186
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-view/get document }
5187
+ *
5188
+ * 检索视图
5189
+ *
5190
+ * 该接口根据 view_id 检索现有视图
5191
+ */
5192
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5193
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5194
+ return httpInstance
5195
+ .request({
5196
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
5197
+ method: "GET",
5198
+ data,
5199
+ params,
5200
+ headers,
5201
+ })
5202
+ .catch((e) => {
5203
+ this.logger.error(formatErrors(e));
5204
+ throw e;
5205
+ });
5206
+ }),
5159
5207
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5160
5208
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
5161
5209
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -5230,6 +5278,30 @@ class Client$1 {
5230
5278
  throw e;
5231
5279
  });
5232
5280
  }),
5281
+ /**
5282
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=patch&version=v1 click to debug }
5283
+ *
5284
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-view/patch document }
5285
+ *
5286
+ * 更新视图
5287
+ *
5288
+ * 该接口用于增量修改视图信息
5289
+ */
5290
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5291
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5292
+ return httpInstance
5293
+ .request({
5294
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
5295
+ method: "PATCH",
5296
+ data,
5297
+ params,
5298
+ headers,
5299
+ })
5300
+ .catch((e) => {
5301
+ this.logger.error(formatErrors(e));
5302
+ throw e;
5303
+ });
5304
+ }),
5233
5305
  },
5234
5306
  };
5235
5307
  /**
@@ -5324,7 +5396,7 @@ class Client$1 {
5324
5396
  */
5325
5397
  this.calendar = {
5326
5398
  /**
5327
- * 用户访问控制
5399
+ * 日历访问控制
5328
5400
  */
5329
5401
  calendarAcl: {
5330
5402
  /**
@@ -5507,7 +5579,7 @@ class Client$1 {
5507
5579
  }),
5508
5580
  },
5509
5581
  /**
5510
- * 日历
5582
+ * 日历管理
5511
5583
  */
5512
5584
  calendar: {
5513
5585
  /**
@@ -5515,7 +5587,7 @@ class Client$1 {
5515
5587
  *
5516
5588
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/create document }
5517
5589
  *
5518
- * 创建日历
5590
+ * 创建共享日历
5519
5591
  *
5520
5592
  * 该接口用于为当前身份(应用 / 用户)创建一个共享日历。;;身份由 Header Authorization 的 Token 类型决定。
5521
5593
  */
@@ -5539,7 +5611,7 @@ class Client$1 {
5539
5611
  *
5540
5612
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/delete document }
5541
5613
  *
5542
- * 删除日历
5614
+ * 删除共享日历
5543
5615
  *
5544
5616
  * 该接口用于以当前身份(应用 / 用户)删除一个共享日历。;;身份由 Header Authorization 的 Token 类型决定。
5545
5617
  *
@@ -5565,7 +5637,7 @@ class Client$1 {
5565
5637
  *
5566
5638
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get document }
5567
5639
  *
5568
- * 获取日历
5640
+ * 查询日历信息
5569
5641
  *
5570
5642
  * 该接口用于以当前身份(应用 / 用户)根据日历 ID 获取日历信息。;;身份由 Header Authorization 的 Token 类型决定。
5571
5643
  *
@@ -5591,7 +5663,7 @@ class Client$1 {
5591
5663
  *
5592
5664
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/list document }
5593
5665
  *
5594
- * 获取日历列表
5666
+ * 查询日历列表
5595
5667
  *
5596
5668
  * 该接口用于分页获得当前身份(应用 / 用户)的日历列表。;;身份由 Header Authorization 的 Token 类型决定。
5597
5669
  *
@@ -5617,7 +5689,7 @@ class Client$1 {
5617
5689
  *
5618
5690
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/patch document }
5619
5691
  *
5620
- * 更新日历
5692
+ * 更新日历信息
5621
5693
  *
5622
5694
  * 该接口用于以当前身份(应用 / 用户)修改日历信息。;;身份由 Header Authorization 的 Token 类型决定。
5623
5695
  *
@@ -5643,7 +5715,7 @@ class Client$1 {
5643
5715
  *
5644
5716
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/primary document }
5645
5717
  *
5646
- * 获取主日历
5718
+ * 查询主日历信息
5647
5719
  *
5648
5720
  * 获取当前身份的主日历信息。
5649
5721
  */
@@ -6390,7 +6462,7 @@ class Client$1 {
6390
6462
  }),
6391
6463
  },
6392
6464
  /**
6393
- * 忙闲
6465
+ * freebusy
6394
6466
  */
6395
6467
  freebusy: {
6396
6468
  /**
@@ -6398,7 +6470,7 @@ class Client$1 {
6398
6470
  *
6399
6471
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/freebusy/list document }
6400
6472
  *
6401
- * 查询忙闲
6473
+ * 查询主日历忙闲信息
6402
6474
  *
6403
6475
  * 查询用户主日历或会议室的忙闲信息。
6404
6476
  */
@@ -6699,9 +6771,9 @@ class Client$1 {
6699
6771
  *
6700
6772
  * 删除部门
6701
6773
  *
6702
- * 该接口用于向通讯录中删除部门。
6774
+ * 该接口用于从通讯录中删除部门。
6703
6775
  *
6704
- * 应用需要同时拥有待删除部门及其父部门的通讯录授权。应用商店应用无权限调用该接口。
6776
+ * 应用需要同时拥有待删除部门及其父部门的通讯录授权。
6705
6777
  */
6706
6778
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6707
6779
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -6893,9 +6965,9 @@ class Client$1 {
6893
6965
  *
6894
6966
  * 修改部门部分信息
6895
6967
  *
6896
- * 该接口用于更新通讯录中部门的信息中的任一个字段。
6968
+ * 该接口用于更新通讯录中部门的信息。
6897
6969
  *
6898
- * 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。应用商店应用无权限调用此接口。
6970
+ * 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。
6899
6971
  */
6900
6972
  patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6901
6973
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7019,7 +7091,7 @@ class Client$1 {
7019
7091
  *
7020
7092
  * 该接口用于更新当前部门所有信息。
7021
7093
  *
7022
- * - 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。应用商店应用无权限调用此接口。;; - 没有填写的字段会被置为空值(order字段除外)。
7094
+ * - 调用该接口需要具有该部门与更新部门信息涉及的通讯录权限。;; - 没有填写的字段会被置为空值(order字段除外)。
7023
7095
  */
7024
7096
  update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7025
7097
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7600,7 +7672,7 @@ class Client$1 {
7600
7672
  *
7601
7673
  * 建立部门与单位的绑定关系
7602
7674
  *
7603
- * 通过该接口建立部门与单位的绑定关系,需更新单位的权限,需对应部门的通讯录权限。由于单位是旗舰版付费功能,企业需开通相关版本,否则会绑定失败
7675
+ * 通过该接口建立部门与单位的绑定关系。由于单位是旗舰版付费功能,企业需开通相关版本,否则会绑定失败,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)
7604
7676
  */
7605
7677
  bindDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7606
7678
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7624,7 +7696,7 @@ class Client$1 {
7624
7696
  *
7625
7697
  * 创建单位
7626
7698
  *
7627
- * 使用该接口创建单位,需要有更新单位的权限。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以创建单位。
7699
+ * 该接口用于创建单位。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以创建单位,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)。
7628
7700
  */
7629
7701
  create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7630
7702
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7672,7 +7744,7 @@ class Client$1 {
7672
7744
  *
7673
7745
  * 获取单位信息
7674
7746
  *
7675
- * 调用该接口获取单位信息,需有获取单位的权限
7747
+ * 该接口用于获取单位信息
7676
7748
  */
7677
7749
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7678
7750
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7849,9 +7921,9 @@ class Client$1 {
7849
7921
  *
7850
7922
  * 删除用户
7851
7923
  *
7852
- * 该接口向通讯录删除一个用户信息,可以理解为员工离职。
7924
+ * 该接口用于从通讯录删除一个用户信息,可以理解为员工离职。
7853
7925
  *
7854
- * - 若用户归属部门A、部门B,应用的通讯录权限范围必须包括部门A和部门B才可以删除用户。;- 应用商店应用无权限调用接口。;- 用户可以在删除员工时设置删除员工数据的接收者,如果不设置则由其leader接收,如果该员工没有leader,则会将该员工的数据删除。
7926
+ * - 若用户归属部门A、部门B,应用的通讯录权限范围必须包括部门A和部门B才可以删除用户。;- 用户可以在删除员工时设置删除员工数据(如文档)的接收者,如果不设置则由其leader接收,如果该员工没有leader,则会将该员工的数据删除。
7855
7927
  */
7856
7928
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7857
7929
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -8067,7 +8139,7 @@ class Client$1 {
8067
8139
  *
8068
8140
  * 该接口用于更新通讯录中用户的字段。
8069
8141
  *
8070
- * 应用需要拥有待更新用户的通讯录授权,如果涉及到用户部门变更,还需要同时拥有所有新部门的通讯录授权。应用商店应用无权限调用此接口。
8142
+ * 应用需要拥有待更新用户的通讯录授权,如果涉及到用户部门变更,还需要同时拥有变更前、后所有新部门的通讯录授权。
8071
8143
  */
8072
8144
  update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8073
8145
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -8095,9 +8167,39 @@ class Client$1 {
8095
8167
  */
8096
8168
  this.contract = {};
8097
8169
  /**
8098
-
8170
+ * CoreHR
8171
+ */
8172
+ this.corehr = {
8173
+ /**
8174
+ * 休假管理
8099
8175
  */
8100
- this.corehr = {};
8176
+ leave: {
8177
+ /**
8178
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_request_history&version=v1 click to debug }
8179
+ *
8180
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history document }
8181
+ *
8182
+ * 批量查询员工请假记录
8183
+ *
8184
+ * 批量获取员工的请假记录数据
8185
+ */
8186
+ leaveRequestHistory: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8187
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8188
+ return httpInstance
8189
+ .request({
8190
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`, path),
8191
+ method: "GET",
8192
+ data,
8193
+ params,
8194
+ headers,
8195
+ })
8196
+ .catch((e) => {
8197
+ this.logger.error(formatErrors(e));
8198
+ throw e;
8199
+ });
8200
+ }),
8201
+ },
8202
+ };
8101
8203
  /**
8102
8204
 
8103
8205
  */
@@ -8797,7 +8899,7 @@ class Client$1 {
8797
8899
  }),
8798
8900
  },
8799
8901
  /**
8800
- * 事件
8902
+ * 下载
8801
8903
  */
8802
8904
  file: {
8803
8905
  /**
@@ -9024,7 +9126,7 @@ class Client$1 {
9024
9126
  *
9025
9127
  * 订阅云文档事件
9026
9128
  *
9027
- * 该接口仅支持**文档拥有者**订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
9129
+ * 该接口仅支持**文档拥有者**订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a)(暂不支持单独订阅文档维度的某类事件),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
9028
9130
  */
9029
9131
  subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9030
9132
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -9336,7 +9438,7 @@ class Client$1 {
9336
9438
  }),
9337
9439
  },
9338
9440
  /**
9339
- * 素材
9441
+ * 分片上传
9340
9442
  */
9341
9443
  media: {
9342
9444
  /**
@@ -9714,7 +9816,7 @@ class Client$1 {
9714
9816
  */
9715
9817
  this.ehr = {
9716
9818
  /**
9717
- * 附件
9819
+ * 飞书人事(标准版)
9718
9820
  */
9719
9821
  attachment: {
9720
9822
  /**
@@ -9760,7 +9862,7 @@ class Client$1 {
9760
9862
  }),
9761
9863
  },
9762
9864
  /**
9763
- * 员工
9865
+ * 飞书人事(标准版)
9764
9866
  */
9765
9867
  employee: {
9766
9868
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
@@ -11762,6 +11864,35 @@ class Client$1 {
11762
11864
  });
11763
11865
  }),
11764
11866
  },
11867
+ /**
11868
+ * 导入 e-HR
11869
+ */
11870
+ ehrImportTask: {
11871
+ /**
11872
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=ehr_import_task&apiName=patch&version=v1 click to debug }
11873
+ *
11874
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/ehr_import_task/patch document }
11875
+ *
11876
+ * 更新 e-HR 导入任务结果
11877
+ *
11878
+ * 在处理完导入 e-HR 事件后,可调用该接口,更新 e-HR 导入任务结果
11879
+ */
11880
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11881
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11882
+ return httpInstance
11883
+ .request({
11884
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`, path),
11885
+ method: "PATCH",
11886
+ data,
11887
+ params,
11888
+ headers,
11889
+ })
11890
+ .catch((e) => {
11891
+ this.logger.error(formatErrors(e));
11892
+ throw e;
11893
+ });
11894
+ }),
11895
+ },
11765
11896
  /**
11766
11897
  * 入职
11767
11898
  */
@@ -11843,6 +11974,54 @@ class Client$1 {
11843
11974
  * 职位
11844
11975
  */
11845
11976
  job: {
11977
+ /**
11978
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_create&version=v1 click to debug }
11979
+ *
11980
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_create document }
11981
+ *
11982
+ * 新建职位
11983
+ *
11984
+ * 新建职位,字段的是否必填,以系统中的「职位字段管理」中的设置为准。
11985
+ */
11986
+ combinedCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11987
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11988
+ return httpInstance
11989
+ .request({
11990
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/combined_create`, path),
11991
+ method: "POST",
11992
+ data,
11993
+ params,
11994
+ headers,
11995
+ })
11996
+ .catch((e) => {
11997
+ this.logger.error(formatErrors(e));
11998
+ throw e;
11999
+ });
12000
+ }),
12001
+ /**
12002
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=config&version=v1 click to debug }
12003
+ *
12004
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/config document }
12005
+ *
12006
+ * 获取职位设置
12007
+ *
12008
+ * 获取职位设置
12009
+ */
12010
+ config: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12011
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12012
+ return httpInstance
12013
+ .request({
12014
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`, path),
12015
+ method: "GET",
12016
+ data,
12017
+ params,
12018
+ headers,
12019
+ })
12020
+ .catch((e) => {
12021
+ this.logger.error(formatErrors(e));
12022
+ throw e;
12023
+ });
12024
+ }),
11846
12025
  /**
11847
12026
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
11848
12027
  *
@@ -11867,6 +12046,30 @@ class Client$1 {
11867
12046
  throw e;
11868
12047
  });
11869
12048
  }),
12049
+ /**
12050
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
12051
+ *
12052
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/update_config document }
12053
+ *
12054
+ * 更新职位设置
12055
+ *
12056
+ * 更新职位设置,包括面试评价表、Offer 申请表等。接口将按照所选择的「更新选项」进行设置参数校验和更新。
12057
+ */
12058
+ updateConfig: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12059
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12060
+ return httpInstance
12061
+ .request({
12062
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`, path),
12063
+ method: "POST",
12064
+ data,
12065
+ params,
12066
+ headers,
12067
+ })
12068
+ .catch((e) => {
12069
+ this.logger.error(formatErrors(e));
12070
+ throw e;
12071
+ });
12072
+ }),
11870
12073
  },
11871
12074
  /**
11872
12075
  * job.manager
@@ -12162,6 +12365,30 @@ class Client$1 {
12162
12365
  * 人才
12163
12366
  */
12164
12367
  talent: {
12368
+ /**
12369
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=batch_get_id&version=v1 click to debug }
12370
+ *
12371
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/batch_get_id document }
12372
+ *
12373
+ * 通过人才信息获取人才 ID
12374
+ *
12375
+ * 通过人才信息获取人才 ID
12376
+ */
12377
+ batchGetId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12378
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12379
+ return httpInstance
12380
+ .request({
12381
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`, path),
12382
+ method: "POST",
12383
+ data,
12384
+ params,
12385
+ headers,
12386
+ })
12387
+ .catch((e) => {
12388
+ this.logger.error(formatErrors(e));
12389
+ throw e;
12390
+ });
12391
+ }),
12165
12392
  /**
12166
12393
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
12167
12394
  *
@@ -12193,7 +12420,7 @@ class Client$1 {
12193
12420
  */
12194
12421
  this.human_authentication = {
12195
12422
  /**
12196
- * 身份
12423
+ * 实名认证
12197
12424
  */
12198
12425
  identity: {
12199
12426
  /**
@@ -12225,7 +12452,7 @@ class Client$1 {
12225
12452
  },
12226
12453
  };
12227
12454
  /**
12228
- * 消息卡片
12455
+ * 消息与群组
12229
12456
  */
12230
12457
  this.im = {
12231
12458
  /**
@@ -12459,7 +12686,7 @@ class Client$1 {
12459
12686
  *
12460
12687
  * 获取指定群的分享链接。
12461
12688
  *
12462
- * 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
12689
+ * 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability); - access_token所对应的 **机器人** 或 **授权用户** 必须在`chat_id`参数指定的群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
12463
12690
  */
12464
12691
  link: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12465
12692
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -13335,7 +13562,7 @@ class Client$1 {
13335
13562
  }),
13336
13563
  },
13337
13564
  /**
13338
- * 消息加急
13565
+ * 消息
13339
13566
  */
13340
13567
  message: {
13341
13568
  /**
@@ -15217,165 +15444,6 @@ class Client$1 {
15217
15444
  return get(res, "data", {});
15218
15445
  }),
15219
15446
  },
15220
- /**
15221
- * 指标库
15222
- */
15223
- metricSource: {
15224
- /**
15225
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source&apiName=list&version=v1 click to debug }
15226
- *
15227
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source/list document }
15228
- *
15229
- * 获取指标库
15230
- *
15231
- * 获取租户下全部 OKR 指标库(仅限 OKR 企业版使用)
15232
- */
15233
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15234
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15235
- return httpInstance
15236
- .request({
15237
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources`, path),
15238
- method: "GET",
15239
- data,
15240
- params,
15241
- headers,
15242
- })
15243
- .catch((e) => {
15244
- this.logger.error(formatErrors(e));
15245
- throw e;
15246
- });
15247
- }),
15248
- },
15249
- /**
15250
- * 指标项
15251
- */
15252
- metricSourceTableItem: {
15253
- /**
15254
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=batch_update&version=v1 click to debug }
15255
- *
15256
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/batch_update document }
15257
- *
15258
- * 批量更新指标项
15259
- *
15260
- * - 该接口用于批量更新多项指标,单次调用最多更新 100 条记录。接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
15261
- */
15262
- batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15263
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15264
- return httpInstance
15265
- .request({
15266
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/batch_update`, path),
15267
- method: "PATCH",
15268
- data,
15269
- params,
15270
- headers,
15271
- })
15272
- .catch((e) => {
15273
- this.logger.error(formatErrors(e));
15274
- throw e;
15275
- });
15276
- }),
15277
- /**
15278
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=get&version=v1 click to debug }
15279
- *
15280
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/get document }
15281
- *
15282
- * 获取指标项详情
15283
- *
15284
- * 获取某项指标的具体内容(仅限 OKR 企业版使用)
15285
- */
15286
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15287
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15288
- return httpInstance
15289
- .request({
15290
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/:metric_item_id`, path),
15291
- method: "GET",
15292
- data,
15293
- params,
15294
- headers,
15295
- })
15296
- .catch((e) => {
15297
- this.logger.error(formatErrors(e));
15298
- throw e;
15299
- });
15300
- }),
15301
- /**
15302
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=list&version=v1 click to debug }
15303
- *
15304
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/list document }
15305
- *
15306
- * 获取指标项
15307
- *
15308
- * 获取指定指标表下的所有指标项(仅限 OKR 企业版使用)
15309
- */
15310
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15311
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15312
- return httpInstance
15313
- .request({
15314
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items`, path),
15315
- method: "GET",
15316
- data,
15317
- params,
15318
- headers,
15319
- })
15320
- .catch((e) => {
15321
- this.logger.error(formatErrors(e));
15322
- throw e;
15323
- });
15324
- }),
15325
- /**
15326
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=patch&version=v1 click to debug }
15327
- *
15328
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/patch document }
15329
- *
15330
- * 更新指标项
15331
- *
15332
- * - 该接口用于更新某项指标,接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
15333
- */
15334
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15335
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15336
- return httpInstance
15337
- .request({
15338
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/:metric_item_id`, path),
15339
- method: "PATCH",
15340
- data,
15341
- params,
15342
- headers,
15343
- })
15344
- .catch((e) => {
15345
- this.logger.error(formatErrors(e));
15346
- throw e;
15347
- });
15348
- }),
15349
- },
15350
- /**
15351
- * 指标表
15352
- */
15353
- metricSourceTable: {
15354
- /**
15355
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table&apiName=list&version=v1 click to debug }
15356
- *
15357
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table/list document }
15358
- *
15359
- * 获取指标表
15360
- *
15361
- * 获取指定指标库下有哪些指标表(仅限 OKR 企业版使用)
15362
- */
15363
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15364
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15365
- return httpInstance
15366
- .request({
15367
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables`, path),
15368
- method: "GET",
15369
- data,
15370
- params,
15371
- headers,
15372
- })
15373
- .catch((e) => {
15374
- this.logger.error(formatErrors(e));
15375
- throw e;
15376
- });
15377
- }),
15378
- },
15379
15447
  /**
15380
15448
  * OKR
15381
15449
  */
@@ -15539,35 +15607,6 @@ class Client$1 {
15539
15607
  });
15540
15608
  }),
15541
15609
  },
15542
- /**
15543
- * 复盘(灰度租户可见)
15544
- */
15545
- review: {
15546
- /**
15547
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=review&apiName=query&version=v1 click to debug }
15548
- *
15549
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/review/query document }
15550
- *
15551
- * 查询复盘信息
15552
- *
15553
- * 根据周期和用户查询复盘信息。
15554
- */
15555
- query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15556
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15557
- return httpInstance
15558
- .request({
15559
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/reviews/query`, path),
15560
- method: "GET",
15561
- data,
15562
- params,
15563
- headers,
15564
- })
15565
- .catch((e) => {
15566
- this.logger.error(formatErrors(e));
15567
- throw e;
15568
- });
15569
- }),
15570
- },
15571
15610
  /**
15572
15611
  * 用户OKR
15573
15612
  */
@@ -15955,7 +15994,7 @@ class Client$1 {
15955
15994
  *
15956
15995
  * 创建数据范式
15957
15996
  *
15958
- * 创建一个数据源
15997
+ * 创建一个数据范式
15959
15998
  */
15960
15999
  create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15961
16000
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -16499,7 +16538,7 @@ class Client$1 {
16499
16538
  }),
16500
16539
  },
16501
16540
  /**
16502
- * 行列
16541
+ * 单元格
16503
16542
  */
16504
16543
  spreadsheetSheet: {
16505
16544
  /**
@@ -17654,7 +17693,7 @@ class Client$1 {
17654
17693
  */
17655
17694
  this.tenant = {
17656
17695
  /**
17657
- * 企业
17696
+ * 企业信息
17658
17697
  */
17659
17698
  tenant: {
17660
17699
  /**
@@ -19447,7 +19486,7 @@ class Client$1 {
19447
19486
  *
19448
19487
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move document }
19449
19488
  *
19450
- * 移动节点
19489
+ * 移动知识空间节点
19451
19490
  *
19452
19491
  * 此方法用于在Wiki内移动节点,支持跨知识空间移动。如果有子节点,会携带子节点一起移动。
19453
19492
  *
@@ -19501,7 +19540,7 @@ class Client$1 {
19501
19540
  *
19502
19541
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/update_title document }
19503
19542
  *
19504
- * 更新标题
19543
+ * 更新知识空间节点标题
19505
19544
  *
19506
19545
  * 此接口用于更新节点标题
19507
19546
  *