@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/lib/index.js CHANGED
@@ -227,7 +227,7 @@ class Client$1 {
227
227
  */
228
228
  this.acs = {
229
229
  /**
230
- * 识别图片
230
+ * access_record.access_photo
231
231
  */
232
232
  accessRecordAccessPhoto: {
233
233
  /**
@@ -235,9 +235,9 @@ class Client$1 {
235
235
  *
236
236
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record-access_photo/get document }
237
237
  *
238
- * 下载人脸识别图片
238
+ * 下载开门时的人脸识别图片
239
239
  *
240
- * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录,对于使用人脸识别方式进行开门的识别记录,还会有抓拍图。;;可以用该接口下载开门时的人脸识别照片
240
+ * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录,对于使用人脸识别方式进行开门的识别记录,还会有抓拍图。;;可以用该接口下载开门时的人脸识别照片。
241
241
  */
242
242
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
243
243
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -329,7 +329,7 @@ class Client$1 {
329
329
  *
330
330
  * 获取门禁记录列表
331
331
  *
332
- * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录。;;该接口返回满足查询参数的识别记录
332
+ * 用户在门禁考勤机上成功开门或打卡后,智能门禁应用都会生成一条门禁记录。;;该接口返回满足查询参数的识别记录。
333
333
  */
334
334
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
335
335
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -356,9 +356,9 @@ class Client$1 {
356
356
  *
357
357
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/device/list document }
358
358
  *
359
- * 获取设备列表
359
+ * 获取门禁设备列表
360
360
  *
361
- * 使用该接口获取租户内所有设备
361
+ * 使用该接口获取租户内所有门禁设备。
362
362
  */
363
363
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
364
364
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -377,7 +377,7 @@ class Client$1 {
377
377
  }),
378
378
  },
379
379
  /**
380
- * 人脸图片
380
+ * user.face
381
381
  */
382
382
  userFace: {
383
383
  /**
@@ -387,7 +387,7 @@ class Client$1 {
387
387
  *
388
388
  * 下载人脸图片
389
389
  *
390
- * 对于已经录入人脸图片的用户,可以使用该接口下载用户人脸图片
390
+ * 对于已经录入人脸图片的用户,可以使用该接口下载用户人脸图片。
391
391
  */
392
392
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
393
393
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -446,7 +446,7 @@ class Client$1 {
446
446
  }),
447
447
  },
448
448
  /**
449
- * 用户
449
+ * 用户管理
450
450
  */
451
451
  user: {
452
452
  /**
@@ -530,9 +530,9 @@ class Client$1 {
530
530
  *
531
531
  * 获取用户列表
532
532
  *
533
- * 使用该接口获取智能门禁中所有用户信息
533
+ * 使用该接口获取智能门禁中所有用户信息。
534
534
  *
535
- * 只能获取已加入智能门禁权限组的用户
535
+ * 只能获取已加入智能门禁权限组的用户。
536
536
  */
537
537
  list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
538
538
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -994,7 +994,7 @@ class Client$1 {
994
994
  }),
995
995
  },
996
996
  /**
997
- * 密码
997
+ * 登录密码管理
998
998
  */
999
999
  password: {
1000
1000
  /**
@@ -1028,7 +1028,7 @@ class Client$1 {
1028
1028
  */
1029
1029
  this.application = {
1030
1030
  /**
1031
- * 推荐规则
1031
+ * 我的常用推荐规则
1032
1032
  */
1033
1033
  appRecommendRule: {
1034
1034
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
@@ -1146,7 +1146,7 @@ class Client$1 {
1146
1146
  *
1147
1147
  * 获取应用版本信息
1148
1148
  *
1149
- * 根据 app_id,version_id 获取对应应用版本的信息
1149
+ * 根据应用 ID 和应用版本 ID 来获取同租户下的应用版本的信息
1150
1150
  */
1151
1151
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
1152
1152
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -2262,7 +2262,7 @@ class Client$1 {
2262
2262
  }),
2263
2263
  },
2264
2264
  /**
2265
- * 审批查询
2265
+ * 原生审批任务
2266
2266
  */
2267
2267
  task: {
2268
2268
  /**
@@ -3894,6 +3894,30 @@ class Client$1 {
3894
3894
  * 仪表盘
3895
3895
  */
3896
3896
  appDashboard: {
3897
+ /**
3898
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=copy&version=v1 click to debug }
3899
+ *
3900
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-dashboard/copy document }
3901
+ *
3902
+ * 复制仪表盘
3903
+ *
3904
+ * 该接口用于根据现有仪表盘复制出新的仪表盘
3905
+ */
3906
+ copy: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3907
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3908
+ return httpInstance
3909
+ .request({
3910
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`, path),
3911
+ method: "POST",
3912
+ data,
3913
+ params,
3914
+ headers,
3915
+ })
3916
+ .catch((e) => {
3917
+ this.logger.error(formatErrors(e));
3918
+ throw e;
3919
+ });
3920
+ }),
3897
3921
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3898
3922
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
3899
3923
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -5171,6 +5195,30 @@ class Client$1 {
5171
5195
  throw e;
5172
5196
  });
5173
5197
  }),
5198
+ /**
5199
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=get&version=v1 click to debug }
5200
+ *
5201
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-view/get document }
5202
+ *
5203
+ * 检索视图
5204
+ *
5205
+ * 该接口根据 view_id 检索现有视图
5206
+ */
5207
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5208
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5209
+ return httpInstance
5210
+ .request({
5211
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
5212
+ method: "GET",
5213
+ data,
5214
+ params,
5215
+ headers,
5216
+ })
5217
+ .catch((e) => {
5218
+ this.logger.error(formatErrors(e));
5219
+ throw e;
5220
+ });
5221
+ }),
5174
5222
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5175
5223
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
5176
5224
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -5245,6 +5293,30 @@ class Client$1 {
5245
5293
  throw e;
5246
5294
  });
5247
5295
  }),
5296
+ /**
5297
+ * {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=patch&version=v1 click to debug }
5298
+ *
5299
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-view/patch document }
5300
+ *
5301
+ * 更新视图
5302
+ *
5303
+ * 该接口用于增量修改视图信息
5304
+ */
5305
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
5306
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
5307
+ return httpInstance
5308
+ .request({
5309
+ url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
5310
+ method: "PATCH",
5311
+ data,
5312
+ params,
5313
+ headers,
5314
+ })
5315
+ .catch((e) => {
5316
+ this.logger.error(formatErrors(e));
5317
+ throw e;
5318
+ });
5319
+ }),
5248
5320
  },
5249
5321
  };
5250
5322
  /**
@@ -5339,7 +5411,7 @@ class Client$1 {
5339
5411
  */
5340
5412
  this.calendar = {
5341
5413
  /**
5342
- * 用户访问控制
5414
+ * 日历访问控制
5343
5415
  */
5344
5416
  calendarAcl: {
5345
5417
  /**
@@ -5522,7 +5594,7 @@ class Client$1 {
5522
5594
  }),
5523
5595
  },
5524
5596
  /**
5525
- * 日历
5597
+ * 日历管理
5526
5598
  */
5527
5599
  calendar: {
5528
5600
  /**
@@ -5530,7 +5602,7 @@ class Client$1 {
5530
5602
  *
5531
5603
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/create document }
5532
5604
  *
5533
- * 创建日历
5605
+ * 创建共享日历
5534
5606
  *
5535
5607
  * 该接口用于为当前身份(应用 / 用户)创建一个共享日历。;;身份由 Header Authorization 的 Token 类型决定。
5536
5608
  */
@@ -5554,7 +5626,7 @@ class Client$1 {
5554
5626
  *
5555
5627
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/delete document }
5556
5628
  *
5557
- * 删除日历
5629
+ * 删除共享日历
5558
5630
  *
5559
5631
  * 该接口用于以当前身份(应用 / 用户)删除一个共享日历。;;身份由 Header Authorization 的 Token 类型决定。
5560
5632
  *
@@ -5580,7 +5652,7 @@ class Client$1 {
5580
5652
  *
5581
5653
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get document }
5582
5654
  *
5583
- * 获取日历
5655
+ * 查询日历信息
5584
5656
  *
5585
5657
  * 该接口用于以当前身份(应用 / 用户)根据日历 ID 获取日历信息。;;身份由 Header Authorization 的 Token 类型决定。
5586
5658
  *
@@ -5606,7 +5678,7 @@ class Client$1 {
5606
5678
  *
5607
5679
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/list document }
5608
5680
  *
5609
- * 获取日历列表
5681
+ * 查询日历列表
5610
5682
  *
5611
5683
  * 该接口用于分页获得当前身份(应用 / 用户)的日历列表。;;身份由 Header Authorization 的 Token 类型决定。
5612
5684
  *
@@ -5632,7 +5704,7 @@ class Client$1 {
5632
5704
  *
5633
5705
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/patch document }
5634
5706
  *
5635
- * 更新日历
5707
+ * 更新日历信息
5636
5708
  *
5637
5709
  * 该接口用于以当前身份(应用 / 用户)修改日历信息。;;身份由 Header Authorization 的 Token 类型决定。
5638
5710
  *
@@ -5658,7 +5730,7 @@ class Client$1 {
5658
5730
  *
5659
5731
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/primary document }
5660
5732
  *
5661
- * 获取主日历
5733
+ * 查询主日历信息
5662
5734
  *
5663
5735
  * 获取当前身份的主日历信息。
5664
5736
  */
@@ -6405,7 +6477,7 @@ class Client$1 {
6405
6477
  }),
6406
6478
  },
6407
6479
  /**
6408
- * 忙闲
6480
+ * freebusy
6409
6481
  */
6410
6482
  freebusy: {
6411
6483
  /**
@@ -6413,7 +6485,7 @@ class Client$1 {
6413
6485
  *
6414
6486
  * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/freebusy/list document }
6415
6487
  *
6416
- * 查询忙闲
6488
+ * 查询主日历忙闲信息
6417
6489
  *
6418
6490
  * 查询用户主日历或会议室的忙闲信息。
6419
6491
  */
@@ -6714,9 +6786,9 @@ class Client$1 {
6714
6786
  *
6715
6787
  * 删除部门
6716
6788
  *
6717
- * 该接口用于向通讯录中删除部门。
6789
+ * 该接口用于从通讯录中删除部门。
6718
6790
  *
6719
- * 应用需要同时拥有待删除部门及其父部门的通讯录授权。应用商店应用无权限调用该接口。
6791
+ * 应用需要同时拥有待删除部门及其父部门的通讯录授权。
6720
6792
  */
6721
6793
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6722
6794
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -6908,9 +6980,9 @@ class Client$1 {
6908
6980
  *
6909
6981
  * 修改部门部分信息
6910
6982
  *
6911
- * 该接口用于更新通讯录中部门的信息中的任一个字段。
6983
+ * 该接口用于更新通讯录中部门的信息。
6912
6984
  *
6913
- * 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。应用商店应用无权限调用此接口。
6985
+ * 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。
6914
6986
  */
6915
6987
  patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
6916
6988
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7034,7 +7106,7 @@ class Client$1 {
7034
7106
  *
7035
7107
  * 该接口用于更新当前部门所有信息。
7036
7108
  *
7037
- * - 调用该接口需要具有该部门以及更新操作涉及的部门的通讯录权限。应用商店应用无权限调用此接口。;; - 没有填写的字段会被置为空值(order字段除外)。
7109
+ * - 调用该接口需要具有该部门与更新部门信息涉及的通讯录权限。;; - 没有填写的字段会被置为空值(order字段除外)。
7038
7110
  */
7039
7111
  update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7040
7112
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7615,7 +7687,7 @@ class Client$1 {
7615
7687
  *
7616
7688
  * 建立部门与单位的绑定关系
7617
7689
  *
7618
- * 通过该接口建立部门与单位的绑定关系,需更新单位的权限,需对应部门的通讯录权限。由于单位是旗舰版付费功能,企业需开通相关版本,否则会绑定失败
7690
+ * 通过该接口建立部门与单位的绑定关系。由于单位是旗舰版付费功能,企业需开通相关版本,否则会绑定失败,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)
7619
7691
  */
7620
7692
  bindDepartment: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7621
7693
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7639,7 +7711,7 @@ class Client$1 {
7639
7711
  *
7640
7712
  * 创建单位
7641
7713
  *
7642
- * 使用该接口创建单位,需要有更新单位的权限。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以创建单位。
7714
+ * 该接口用于创建单位。注意:单位功能属于旗舰版付费功能,企业需开通对应版本才可以创建单位,不同版本请参考[飞书版本对比](https://www.feishu.cn/service)。
7643
7715
  */
7644
7716
  create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7645
7717
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7687,7 +7759,7 @@ class Client$1 {
7687
7759
  *
7688
7760
  * 获取单位信息
7689
7761
  *
7690
- * 调用该接口获取单位信息,需有获取单位的权限
7762
+ * 该接口用于获取单位信息
7691
7763
  */
7692
7764
  get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7693
7765
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -7864,9 +7936,9 @@ class Client$1 {
7864
7936
  *
7865
7937
  * 删除用户
7866
7938
  *
7867
- * 该接口向通讯录删除一个用户信息,可以理解为员工离职。
7939
+ * 该接口用于从通讯录删除一个用户信息,可以理解为员工离职。
7868
7940
  *
7869
- * - 若用户归属部门A、部门B,应用的通讯录权限范围必须包括部门A和部门B才可以删除用户。;- 应用商店应用无权限调用接口。;- 用户可以在删除员工时设置删除员工数据的接收者,如果不设置则由其leader接收,如果该员工没有leader,则会将该员工的数据删除。
7941
+ * - 若用户归属部门A、部门B,应用的通讯录权限范围必须包括部门A和部门B才可以删除用户。;- 用户可以在删除员工时设置删除员工数据(如文档)的接收者,如果不设置则由其leader接收,如果该员工没有leader,则会将该员工的数据删除。
7870
7942
  */
7871
7943
  delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7872
7944
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -8082,7 +8154,7 @@ class Client$1 {
8082
8154
  *
8083
8155
  * 该接口用于更新通讯录中用户的字段。
8084
8156
  *
8085
- * 应用需要拥有待更新用户的通讯录授权,如果涉及到用户部门变更,还需要同时拥有所有新部门的通讯录授权。应用商店应用无权限调用此接口。
8157
+ * 应用需要拥有待更新用户的通讯录授权,如果涉及到用户部门变更,还需要同时拥有变更前、后所有新部门的通讯录授权。
8086
8158
  */
8087
8159
  update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8088
8160
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -8110,9 +8182,39 @@ class Client$1 {
8110
8182
  */
8111
8183
  this.contract = {};
8112
8184
  /**
8113
-
8185
+ * CoreHR
8186
+ */
8187
+ this.corehr = {
8188
+ /**
8189
+ * 休假管理
8114
8190
  */
8115
- this.corehr = {};
8191
+ leave: {
8192
+ /**
8193
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_request_history&version=v1 click to debug }
8194
+ *
8195
+ * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history document }
8196
+ *
8197
+ * 批量查询员工请假记录
8198
+ *
8199
+ * 批量获取员工的请假记录数据
8200
+ */
8201
+ leaveRequestHistory: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8202
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8203
+ return httpInstance
8204
+ .request({
8205
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`, path),
8206
+ method: "GET",
8207
+ data,
8208
+ params,
8209
+ headers,
8210
+ })
8211
+ .catch((e) => {
8212
+ this.logger.error(formatErrors(e));
8213
+ throw e;
8214
+ });
8215
+ }),
8216
+ },
8217
+ };
8116
8218
  /**
8117
8219
 
8118
8220
  */
@@ -8812,7 +8914,7 @@ class Client$1 {
8812
8914
  }),
8813
8915
  },
8814
8916
  /**
8815
- * 事件
8917
+ * 下载
8816
8918
  */
8817
8919
  file: {
8818
8920
  /**
@@ -9039,7 +9141,7 @@ class Client$1 {
9039
9141
  *
9040
9142
  * 订阅云文档事件
9041
9143
  *
9042
- * 该接口仅支持**文档拥有者**订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
9144
+ * 该接口仅支持**文档拥有者**订阅自己文档的通知事件,可订阅的文档类型为**旧版文档**、**新版文档**、**电子表格**和**多维表格**。在调用该接口之前请确保正确[配置事件回调网址和订阅事件类型](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM#2eb3504a)(暂不支持单独订阅文档维度的某类事件),事件类型参考[事件列表](https://open.feishu.cn/document/ukTMukTMukTM/uYDNxYjL2QTM24iN0EjN/event-list)。
9043
9145
  */
9044
9146
  subscribe: (payload, options) => __awaiter(this, void 0, void 0, function* () {
9045
9147
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -9351,7 +9453,7 @@ class Client$1 {
9351
9453
  }),
9352
9454
  },
9353
9455
  /**
9354
- * 素材
9456
+ * 分片上传
9355
9457
  */
9356
9458
  media: {
9357
9459
  /**
@@ -9729,7 +9831,7 @@ class Client$1 {
9729
9831
  */
9730
9832
  this.ehr = {
9731
9833
  /**
9732
- * 附件
9834
+ * 飞书人事(标准版)
9733
9835
  */
9734
9836
  attachment: {
9735
9837
  /**
@@ -9775,7 +9877,7 @@ class Client$1 {
9775
9877
  }),
9776
9878
  },
9777
9879
  /**
9778
- * 员工
9880
+ * 飞书人事(标准版)
9779
9881
  */
9780
9882
  employee: {
9781
9883
  listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
@@ -11777,6 +11879,35 @@ class Client$1 {
11777
11879
  });
11778
11880
  }),
11779
11881
  },
11882
+ /**
11883
+ * 导入 e-HR
11884
+ */
11885
+ ehrImportTask: {
11886
+ /**
11887
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=ehr_import_task&apiName=patch&version=v1 click to debug }
11888
+ *
11889
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/ehr_import_task/patch document }
11890
+ *
11891
+ * 更新 e-HR 导入任务结果
11892
+ *
11893
+ * 在处理完导入 e-HR 事件后,可调用该接口,更新 e-HR 导入任务结果
11894
+ */
11895
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
11896
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
11897
+ return httpInstance
11898
+ .request({
11899
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`, path),
11900
+ method: "PATCH",
11901
+ data,
11902
+ params,
11903
+ headers,
11904
+ })
11905
+ .catch((e) => {
11906
+ this.logger.error(formatErrors(e));
11907
+ throw e;
11908
+ });
11909
+ }),
11910
+ },
11780
11911
  /**
11781
11912
  * 入职
11782
11913
  */
@@ -11858,6 +11989,54 @@ class Client$1 {
11858
11989
  * 职位
11859
11990
  */
11860
11991
  job: {
11992
+ /**
11993
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=combined_create&version=v1 click to debug }
11994
+ *
11995
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/combined_create document }
11996
+ *
11997
+ * 新建职位
11998
+ *
11999
+ * 新建职位,字段的是否必填,以系统中的「职位字段管理」中的设置为准。
12000
+ */
12001
+ combinedCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12002
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12003
+ return httpInstance
12004
+ .request({
12005
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/combined_create`, path),
12006
+ method: "POST",
12007
+ data,
12008
+ params,
12009
+ headers,
12010
+ })
12011
+ .catch((e) => {
12012
+ this.logger.error(formatErrors(e));
12013
+ throw e;
12014
+ });
12015
+ }),
12016
+ /**
12017
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=config&version=v1 click to debug }
12018
+ *
12019
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/config document }
12020
+ *
12021
+ * 获取职位设置
12022
+ *
12023
+ * 获取职位设置
12024
+ */
12025
+ config: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12026
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12027
+ return httpInstance
12028
+ .request({
12029
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`, path),
12030
+ method: "GET",
12031
+ data,
12032
+ params,
12033
+ headers,
12034
+ })
12035
+ .catch((e) => {
12036
+ this.logger.error(formatErrors(e));
12037
+ throw e;
12038
+ });
12039
+ }),
11861
12040
  /**
11862
12041
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=get&version=v1 click to debug }
11863
12042
  *
@@ -11882,6 +12061,30 @@ class Client$1 {
11882
12061
  throw e;
11883
12062
  });
11884
12063
  }),
12064
+ /**
12065
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=job&apiName=update_config&version=v1 click to debug }
12066
+ *
12067
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/job/update_config document }
12068
+ *
12069
+ * 更新职位设置
12070
+ *
12071
+ * 更新职位设置,包括面试评价表、Offer 申请表等。接口将按照所选择的「更新选项」进行设置参数校验和更新。
12072
+ */
12073
+ updateConfig: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12074
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12075
+ return httpInstance
12076
+ .request({
12077
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`, path),
12078
+ method: "POST",
12079
+ data,
12080
+ params,
12081
+ headers,
12082
+ })
12083
+ .catch((e) => {
12084
+ this.logger.error(formatErrors(e));
12085
+ throw e;
12086
+ });
12087
+ }),
11885
12088
  },
11886
12089
  /**
11887
12090
  * job.manager
@@ -12177,6 +12380,30 @@ class Client$1 {
12177
12380
  * 人才
12178
12381
  */
12179
12382
  talent: {
12383
+ /**
12384
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=batch_get_id&version=v1 click to debug }
12385
+ *
12386
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/talent/batch_get_id document }
12387
+ *
12388
+ * 通过人才信息获取人才 ID
12389
+ *
12390
+ * 通过人才信息获取人才 ID
12391
+ */
12392
+ batchGetId: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12393
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
12394
+ return httpInstance
12395
+ .request({
12396
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`, path),
12397
+ method: "POST",
12398
+ data,
12399
+ params,
12400
+ headers,
12401
+ })
12402
+ .catch((e) => {
12403
+ this.logger.error(formatErrors(e));
12404
+ throw e;
12405
+ });
12406
+ }),
12180
12407
  /**
12181
12408
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
12182
12409
  *
@@ -12208,7 +12435,7 @@ class Client$1 {
12208
12435
  */
12209
12436
  this.human_authentication = {
12210
12437
  /**
12211
- * 身份
12438
+ * 实名认证
12212
12439
  */
12213
12440
  identity: {
12214
12441
  /**
@@ -12240,7 +12467,7 @@ class Client$1 {
12240
12467
  },
12241
12468
  };
12242
12469
  /**
12243
- * 消息卡片
12470
+ * 消息与群组
12244
12471
  */
12245
12472
  this.im = {
12246
12473
  /**
@@ -12474,7 +12701,7 @@ class Client$1 {
12474
12701
  *
12475
12702
  * 获取指定群的分享链接。
12476
12703
  *
12477
- * 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability); - 机器人或授权用户必须在群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
12704
+ * 注意事项:;- 应用需要开启[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability); - access_token所对应的 **机器人** 或 **授权用户** 必须在`chat_id`参数指定的群组中;- 单聊、密聊、团队群不支持分享群链接;- 当Bot被停用或Bot退出群组时,Bot生成的群链接也将停用;- 当群聊开启了 ==仅群主和群管理员可添加群成员/分享群== 设置时,仅**群主**和**群管理员**可以获取群分享链接;- 获取内部群分享链接时,操作者须与群组在同一租户下
12478
12705
  */
12479
12706
  link: (payload, options) => __awaiter(this, void 0, void 0, function* () {
12480
12707
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -13350,7 +13577,7 @@ class Client$1 {
13350
13577
  }),
13351
13578
  },
13352
13579
  /**
13353
- * 消息加急
13580
+ * 消息
13354
13581
  */
13355
13582
  message: {
13356
13583
  /**
@@ -15232,165 +15459,6 @@ class Client$1 {
15232
15459
  return get__default["default"](res, "data", {});
15233
15460
  }),
15234
15461
  },
15235
- /**
15236
- * 指标库
15237
- */
15238
- metricSource: {
15239
- /**
15240
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source&apiName=list&version=v1 click to debug }
15241
- *
15242
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source/list document }
15243
- *
15244
- * 获取指标库
15245
- *
15246
- * 获取租户下全部 OKR 指标库(仅限 OKR 企业版使用)
15247
- */
15248
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15249
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15250
- return httpInstance
15251
- .request({
15252
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources`, path),
15253
- method: "GET",
15254
- data,
15255
- params,
15256
- headers,
15257
- })
15258
- .catch((e) => {
15259
- this.logger.error(formatErrors(e));
15260
- throw e;
15261
- });
15262
- }),
15263
- },
15264
- /**
15265
- * 指标项
15266
- */
15267
- metricSourceTableItem: {
15268
- /**
15269
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=batch_update&version=v1 click to debug }
15270
- *
15271
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/batch_update document }
15272
- *
15273
- * 批量更新指标项
15274
- *
15275
- * - 该接口用于批量更新多项指标,单次调用最多更新 100 条记录。接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
15276
- */
15277
- batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15278
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15279
- return httpInstance
15280
- .request({
15281
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/batch_update`, path),
15282
- method: "PATCH",
15283
- data,
15284
- params,
15285
- headers,
15286
- })
15287
- .catch((e) => {
15288
- this.logger.error(formatErrors(e));
15289
- throw e;
15290
- });
15291
- }),
15292
- /**
15293
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=get&version=v1 click to debug }
15294
- *
15295
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/get document }
15296
- *
15297
- * 获取指标项详情
15298
- *
15299
- * 获取某项指标的具体内容(仅限 OKR 企业版使用)
15300
- */
15301
- get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15302
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15303
- return httpInstance
15304
- .request({
15305
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/:metric_item_id`, path),
15306
- method: "GET",
15307
- data,
15308
- params,
15309
- headers,
15310
- })
15311
- .catch((e) => {
15312
- this.logger.error(formatErrors(e));
15313
- throw e;
15314
- });
15315
- }),
15316
- /**
15317
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=list&version=v1 click to debug }
15318
- *
15319
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/list document }
15320
- *
15321
- * 获取指标项
15322
- *
15323
- * 获取指定指标表下的所有指标项(仅限 OKR 企业版使用)
15324
- */
15325
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15326
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15327
- return httpInstance
15328
- .request({
15329
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items`, path),
15330
- method: "GET",
15331
- data,
15332
- params,
15333
- headers,
15334
- })
15335
- .catch((e) => {
15336
- this.logger.error(formatErrors(e));
15337
- throw e;
15338
- });
15339
- }),
15340
- /**
15341
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table.item&apiName=patch&version=v1 click to debug }
15342
- *
15343
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table-item/patch document }
15344
- *
15345
- * 更新指标项
15346
- *
15347
- * - 该接口用于更新某项指标,接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
15348
- */
15349
- patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15350
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15351
- return httpInstance
15352
- .request({
15353
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables/:metric_table_id/items/:metric_item_id`, path),
15354
- method: "PATCH",
15355
- data,
15356
- params,
15357
- headers,
15358
- })
15359
- .catch((e) => {
15360
- this.logger.error(formatErrors(e));
15361
- throw e;
15362
- });
15363
- }),
15364
- },
15365
- /**
15366
- * 指标表
15367
- */
15368
- metricSourceTable: {
15369
- /**
15370
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=metric_source.table&apiName=list&version=v1 click to debug }
15371
- *
15372
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/metric_source-table/list document }
15373
- *
15374
- * 获取指标表
15375
- *
15376
- * 获取指定指标库下有哪些指标表(仅限 OKR 企业版使用)
15377
- */
15378
- list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15379
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15380
- return httpInstance
15381
- .request({
15382
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/metric_sources/:metric_source_id/tables`, path),
15383
- method: "GET",
15384
- data,
15385
- params,
15386
- headers,
15387
- })
15388
- .catch((e) => {
15389
- this.logger.error(formatErrors(e));
15390
- throw e;
15391
- });
15392
- }),
15393
- },
15394
15462
  /**
15395
15463
  * OKR
15396
15464
  */
@@ -15554,35 +15622,6 @@ class Client$1 {
15554
15622
  });
15555
15623
  }),
15556
15624
  },
15557
- /**
15558
- * 复盘(灰度租户可见)
15559
- */
15560
- review: {
15561
- /**
15562
- * {@link https://open.feishu.cn/api-explorer?project=okr&resource=review&apiName=query&version=v1 click to debug }
15563
- *
15564
- * {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/okr-v1/review/query document }
15565
- *
15566
- * 查询复盘信息
15567
- *
15568
- * 根据周期和用户查询复盘信息。
15569
- */
15570
- query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15571
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
15572
- return httpInstance
15573
- .request({
15574
- url: fillApiPath(`${this.domain}/open-apis/okr/v1/reviews/query`, path),
15575
- method: "GET",
15576
- data,
15577
- params,
15578
- headers,
15579
- })
15580
- .catch((e) => {
15581
- this.logger.error(formatErrors(e));
15582
- throw e;
15583
- });
15584
- }),
15585
- },
15586
15625
  /**
15587
15626
  * 用户OKR
15588
15627
  */
@@ -15970,7 +16009,7 @@ class Client$1 {
15970
16009
  *
15971
16010
  * 创建数据范式
15972
16011
  *
15973
- * 创建一个数据源
16012
+ * 创建一个数据范式
15974
16013
  */
15975
16014
  create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
15976
16015
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
@@ -16514,7 +16553,7 @@ class Client$1 {
16514
16553
  }),
16515
16554
  },
16516
16555
  /**
16517
- * 行列
16556
+ * 单元格
16518
16557
  */
16519
16558
  spreadsheetSheet: {
16520
16559
  /**
@@ -17669,7 +17708,7 @@ class Client$1 {
17669
17708
  */
17670
17709
  this.tenant = {
17671
17710
  /**
17672
- * 企业
17711
+ * 企业信息
17673
17712
  */
17674
17713
  tenant: {
17675
17714
  /**
@@ -19462,7 +19501,7 @@ class Client$1 {
19462
19501
  *
19463
19502
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/move document }
19464
19503
  *
19465
- * 移动节点
19504
+ * 移动知识空间节点
19466
19505
  *
19467
19506
  * 此方法用于在Wiki内移动节点,支持跨知识空间移动。如果有子节点,会携带子节点一起移动。
19468
19507
  *
@@ -19516,7 +19555,7 @@ class Client$1 {
19516
19555
  *
19517
19556
  * {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/update_title document }
19518
19557
  *
19519
- * 更新标题
19558
+ * 更新知识空间节点标题
19520
19559
  *
19521
19560
  * 此接口用于更新节点标题
19522
19561
  *