@larksuiteoapi/node-sdk 1.43.0-alpha.0 → 1.44.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
@@ -1317,7 +1317,7 @@ class Client$10 extends Client$11 {
1317
1317
  constructor() {
1318
1318
  super(...arguments);
1319
1319
  /**
1320
- * 管理后台-密码
1320
+ * 管理后台-数据报表
1321
1321
  */
1322
1322
  this.admin = {
1323
1323
  /**
@@ -3465,6 +3465,53 @@ class Client$_ extends Client$$ {
3465
3465
  });
3466
3466
  }),
3467
3467
  },
3468
+ /**
3469
+ * application.collaborators
3470
+ */
3471
+ applicationCollaborators: {
3472
+ /**
3473
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.collaborators&apiName=get&version=v6 click to debug }
3474
+ *
3475
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=application&resource=application.collaborators&version=v6 document }
3476
+ */
3477
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3478
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3479
+ return this.httpInstance
3480
+ .request({
3481
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`, path),
3482
+ method: "GET",
3483
+ data,
3484
+ params,
3485
+ headers,
3486
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
3487
+ })
3488
+ .catch((e) => {
3489
+ this.logger.error(formatErrors(e));
3490
+ throw e;
3491
+ });
3492
+ }),
3493
+ /**
3494
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.collaborators&apiName=update&version=v6 click to debug }
3495
+ *
3496
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.collaborators&version=v6 document }
3497
+ */
3498
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3499
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3500
+ return this.httpInstance
3501
+ .request({
3502
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`, path),
3503
+ method: "PUT",
3504
+ data,
3505
+ params,
3506
+ headers,
3507
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
3508
+ })
3509
+ .catch((e) => {
3510
+ this.logger.error(formatErrors(e));
3511
+ throw e;
3512
+ });
3513
+ }),
3514
+ },
3468
3515
  /**
3469
3516
  * application.contacts_range
3470
3517
  */
@@ -3798,6 +3845,32 @@ class Client$_ extends Client$$ {
3798
3845
  });
3799
3846
  }),
3800
3847
  },
3848
+ /**
3849
+ * application.owner
3850
+ */
3851
+ applicationOwner: {
3852
+ /**
3853
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.owner&apiName=update&version=v6 click to debug }
3854
+ *
3855
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.owner&version=v6 document }
3856
+ */
3857
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
3858
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
3859
+ return this.httpInstance
3860
+ .request({
3861
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`, path),
3862
+ method: "PUT",
3863
+ data,
3864
+ params,
3865
+ headers,
3866
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
3867
+ })
3868
+ .catch((e) => {
3869
+ this.logger.error(formatErrors(e));
3870
+ throw e;
3871
+ });
3872
+ }),
3873
+ },
3801
3874
  /**
3802
3875
  * 事件
3803
3876
  */
@@ -4246,6 +4319,53 @@ class Client$_ extends Client$$ {
4246
4319
  });
4247
4320
  }),
4248
4321
  },
4322
+ /**
4323
+ * application.collaborators
4324
+ */
4325
+ applicationCollaborators: {
4326
+ /**
4327
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.collaborators&apiName=get&version=v6 click to debug }
4328
+ *
4329
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=application&resource=application.collaborators&version=v6 document }
4330
+ */
4331
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
4332
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
4333
+ return this.httpInstance
4334
+ .request({
4335
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`, path),
4336
+ method: "GET",
4337
+ data,
4338
+ params,
4339
+ headers,
4340
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
4341
+ })
4342
+ .catch((e) => {
4343
+ this.logger.error(formatErrors(e));
4344
+ throw e;
4345
+ });
4346
+ }),
4347
+ /**
4348
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.collaborators&apiName=update&version=v6 click to debug }
4349
+ *
4350
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.collaborators&version=v6 document }
4351
+ */
4352
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
4353
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
4354
+ return this.httpInstance
4355
+ .request({
4356
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`, path),
4357
+ method: "PUT",
4358
+ data,
4359
+ params,
4360
+ headers,
4361
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
4362
+ })
4363
+ .catch((e) => {
4364
+ this.logger.error(formatErrors(e));
4365
+ throw e;
4366
+ });
4367
+ }),
4368
+ },
4249
4369
  /**
4250
4370
  * application.contacts_range
4251
4371
  */
@@ -4583,6 +4703,32 @@ class Client$_ extends Client$$ {
4583
4703
  });
4584
4704
  }),
4585
4705
  },
4706
+ /**
4707
+ * application.owner
4708
+ */
4709
+ applicationOwner: {
4710
+ /**
4711
+ * {@link https://open.feishu.cn/api-explorer?project=application&resource=application.owner&apiName=update&version=v6 click to debug }
4712
+ *
4713
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=application&resource=application.owner&version=v6 document }
4714
+ */
4715
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
4716
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
4717
+ return this.httpInstance
4718
+ .request({
4719
+ url: fillApiPath(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`, path),
4720
+ method: "PUT",
4721
+ data,
4722
+ params,
4723
+ headers,
4724
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
4725
+ })
4726
+ .catch((e) => {
4727
+ this.logger.error(formatErrors(e));
4728
+ throw e;
4729
+ });
4730
+ }),
4731
+ },
4586
4732
  /**
4587
4733
  * 事件
4588
4734
  */
@@ -5488,7 +5634,7 @@ class Client$Z extends Client$_ {
5488
5634
  }),
5489
5635
  },
5490
5636
  /**
5491
- * 原生审批任务
5637
+ * 审批查询
5492
5638
  */
5493
5639
  task: {
5494
5640
  /**
@@ -6499,7 +6645,7 @@ class Client$Z extends Client$_ {
6499
6645
  }),
6500
6646
  },
6501
6647
  /**
6502
- * 原生审批任务
6648
+ * 审批查询
6503
6649
  */
6504
6650
  task: {
6505
6651
  /**
@@ -7577,6 +7723,29 @@ class Client$Y extends Client$Z {
7577
7723
  throw e;
7578
7724
  });
7579
7725
  }),
7726
+ /**
7727
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=batch_del&version=v1 click to debug }
7728
+ *
7729
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_del&project=attendance&resource=user_flow&version=v1 document }
7730
+ *
7731
+ * 批量删除流水
7732
+ */
7733
+ batchDel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
7734
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
7735
+ return this.httpInstance
7736
+ .request({
7737
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`, path),
7738
+ method: "POST",
7739
+ data,
7740
+ params,
7741
+ headers,
7742
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
7743
+ })
7744
+ .catch((e) => {
7745
+ this.logger.error(formatErrors(e));
7746
+ throw e;
7747
+ });
7748
+ }),
7580
7749
  /**
7581
7750
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=get&version=v1 click to debug }
7582
7751
  *
@@ -8778,6 +8947,29 @@ class Client$Y extends Client$Z {
8778
8947
  throw e;
8779
8948
  });
8780
8949
  }),
8950
+ /**
8951
+ * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=batch_del&version=v1 click to debug }
8952
+ *
8953
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_del&project=attendance&resource=user_flow&version=v1 document }
8954
+ *
8955
+ * 批量删除流水
8956
+ */
8957
+ batchDel: (payload, options) => __awaiter(this, void 0, void 0, function* () {
8958
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
8959
+ return this.httpInstance
8960
+ .request({
8961
+ url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`, path),
8962
+ method: "POST",
8963
+ data,
8964
+ params,
8965
+ headers,
8966
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
8967
+ })
8968
+ .catch((e) => {
8969
+ this.logger.error(formatErrors(e));
8970
+ throw e;
8971
+ });
8972
+ }),
8781
8973
  /**
8782
8974
  * {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_flow&apiName=get&version=v1 click to debug }
8783
8975
  *
@@ -32725,6 +32917,27 @@ class Client$J extends Client$K {
32725
32917
  throw e;
32726
32918
  });
32727
32919
  }),
32920
+ /**
32921
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=workforce_plan_detail&apiName=batch_v2&version=v2 click to debug }
32922
+ *
32923
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_v2&project=corehr&resource=workforce_plan_detail&version=v2 document }
32924
+ */
32925
+ batchV2: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32926
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
32927
+ return this.httpInstance
32928
+ .request({
32929
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch_v2`, path),
32930
+ method: "POST",
32931
+ data,
32932
+ params,
32933
+ headers,
32934
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
32935
+ })
32936
+ .catch((e) => {
32937
+ this.logger.error(formatErrors(e));
32938
+ throw e;
32939
+ });
32940
+ }),
32728
32941
  },
32729
32942
  /**
32730
32943
  * workforce_plan_detail_row
@@ -34646,7 +34859,7 @@ class Client$E extends Client$F {
34646
34859
  constructor() {
34647
34860
  super(...arguments);
34648
34861
  /**
34649
- * 云文档-文档
34862
+ * 云文档-文件管理
34650
34863
  */
34651
34864
  this.drive = {
34652
34865
  /**
@@ -35067,7 +35280,7 @@ class Client$E extends Client$F {
35067
35280
  }),
35068
35281
  },
35069
35282
  /**
35070
- * 文件
35283
+ * 上传
35071
35284
  */
35072
35285
  file: {
35073
35286
  /**
@@ -35940,7 +36153,7 @@ class Client$E extends Client$F {
35940
36153
  }),
35941
36154
  },
35942
36155
  /**
35943
- * 素材
36156
+ * 分片上传
35944
36157
  */
35945
36158
  media: {
35946
36159
  /**
@@ -36887,7 +37100,7 @@ class Client$E extends Client$F {
36887
37100
  }),
36888
37101
  },
36889
37102
  /**
36890
- * 文件
37103
+ * 上传
36891
37104
  */
36892
37105
  file: {
36893
37106
  /**
@@ -37766,7 +37979,7 @@ class Client$E extends Client$F {
37766
37979
  }),
37767
37980
  },
37768
37981
  /**
37769
- * 素材
37982
+ * 分片上传
37770
37983
  */
37771
37984
  media: {
37772
37985
  /**
@@ -42466,9 +42679,34 @@ class Client$u extends Client$v {
42466
42679
  }),
42467
42680
  },
42468
42681
  /**
42469
- * 投递
42682
+ * 入职
42470
42683
  */
42471
42684
  application: {
42685
+ /**
42686
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=cancel_onboard&version=v1 click to debug }
42687
+ *
42688
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/cancel_onboard document }
42689
+ *
42690
+ * 取消候选人入职
42691
+ *
42692
+ * 操作候选人取消入职
42693
+ */
42694
+ cancelOnboard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42695
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42696
+ return this.httpInstance
42697
+ .request({
42698
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`, path),
42699
+ method: "POST",
42700
+ data,
42701
+ params,
42702
+ headers,
42703
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
42704
+ })
42705
+ .catch((e) => {
42706
+ this.logger.error(formatErrors(e));
42707
+ throw e;
42708
+ });
42709
+ }),
42472
42710
  /**
42473
42711
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
42474
42712
  *
@@ -48469,9 +48707,34 @@ class Client$u extends Client$v {
48469
48707
  }),
48470
48708
  },
48471
48709
  /**
48472
- * 投递
48710
+ * 入职
48473
48711
  */
48474
48712
  application: {
48713
+ /**
48714
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=cancel_onboard&version=v1 click to debug }
48715
+ *
48716
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/cancel_onboard document }
48717
+ *
48718
+ * 取消候选人入职
48719
+ *
48720
+ * 操作候选人取消入职
48721
+ */
48722
+ cancelOnboard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48723
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48724
+ return this.httpInstance
48725
+ .request({
48726
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`, path),
48727
+ method: "POST",
48728
+ data,
48729
+ params,
48730
+ headers,
48731
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
48732
+ })
48733
+ .catch((e) => {
48734
+ this.logger.error(formatErrors(e));
48735
+ throw e;
48736
+ });
48737
+ }),
48475
48738
  /**
48476
48739
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
48477
48740
  *
@@ -55743,7 +56006,7 @@ class Client$s extends Client$t {
55743
56006
  }),
55744
56007
  },
55745
56008
  /**
55746
- * 消息
56009
+ * 消息加急
55747
56010
  */
55748
56011
  message: {
55749
56012
  /**
@@ -57946,7 +58209,7 @@ class Client$s extends Client$t {
57946
58209
  }),
57947
58210
  },
57948
58211
  /**
57949
- * 消息
58212
+ * 消息加急
57950
58213
  */
57951
58214
  message: {
57952
58215
  /**
@@ -65877,7 +66140,7 @@ class Client$c extends Client$d {
65877
66140
  }),
65878
66141
  },
65879
66142
  /**
65880
- * 行列
66143
+ * 工作表
65881
66144
  */
65882
66145
  spreadsheetSheet: {
65883
66146
  /**
@@ -66607,7 +66870,7 @@ class Client$c extends Client$d {
66607
66870
  }),
66608
66871
  },
66609
66872
  /**
66610
- * 行列
66873
+ * 工作表
66611
66874
  */
66612
66875
  spreadsheetSheet: {
66613
66876
  /**