@larksuiteoapi/node-sdk 1.43.0-alpha.0 → 1.43.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
  */
@@ -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
  *
@@ -34646,7 +34838,7 @@ class Client$E extends Client$F {
34646
34838
  constructor() {
34647
34839
  super(...arguments);
34648
34840
  /**
34649
- * 云文档-文档
34841
+ * 云文档-文件管理
34650
34842
  */
34651
34843
  this.drive = {
34652
34844
  /**
@@ -35067,7 +35259,7 @@ class Client$E extends Client$F {
35067
35259
  }),
35068
35260
  },
35069
35261
  /**
35070
- * 文件
35262
+ * 分片上传
35071
35263
  */
35072
35264
  file: {
35073
35265
  /**
@@ -35940,7 +36132,7 @@ class Client$E extends Client$F {
35940
36132
  }),
35941
36133
  },
35942
36134
  /**
35943
- * 素材
36135
+ * 分片上传
35944
36136
  */
35945
36137
  media: {
35946
36138
  /**
@@ -36887,7 +37079,7 @@ class Client$E extends Client$F {
36887
37079
  }),
36888
37080
  },
36889
37081
  /**
36890
- * 文件
37082
+ * 分片上传
36891
37083
  */
36892
37084
  file: {
36893
37085
  /**
@@ -37766,7 +37958,7 @@ class Client$E extends Client$F {
37766
37958
  }),
37767
37959
  },
37768
37960
  /**
37769
- * 素材
37961
+ * 分片上传
37770
37962
  */
37771
37963
  media: {
37772
37964
  /**
@@ -42466,9 +42658,34 @@ class Client$u extends Client$v {
42466
42658
  }),
42467
42659
  },
42468
42660
  /**
42469
- * 投递
42661
+ * 入职
42470
42662
  */
42471
42663
  application: {
42664
+ /**
42665
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=cancel_onboard&version=v1 click to debug }
42666
+ *
42667
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/cancel_onboard document }
42668
+ *
42669
+ * 取消候选人入职
42670
+ *
42671
+ * 操作候选人取消入职
42672
+ */
42673
+ cancelOnboard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
42674
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
42675
+ return this.httpInstance
42676
+ .request({
42677
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`, path),
42678
+ method: "POST",
42679
+ data,
42680
+ params,
42681
+ headers,
42682
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
42683
+ })
42684
+ .catch((e) => {
42685
+ this.logger.error(formatErrors(e));
42686
+ throw e;
42687
+ });
42688
+ }),
42472
42689
  /**
42473
42690
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
42474
42691
  *
@@ -48469,9 +48686,34 @@ class Client$u extends Client$v {
48469
48686
  }),
48470
48687
  },
48471
48688
  /**
48472
- * 投递
48689
+ * 入职
48473
48690
  */
48474
48691
  application: {
48692
+ /**
48693
+ * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=cancel_onboard&version=v1 click to debug }
48694
+ *
48695
+ * {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/application/cancel_onboard document }
48696
+ *
48697
+ * 取消候选人入职
48698
+ *
48699
+ * 操作候选人取消入职
48700
+ */
48701
+ cancelOnboard: (payload, options) => __awaiter(this, void 0, void 0, function* () {
48702
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
48703
+ return this.httpInstance
48704
+ .request({
48705
+ url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`, path),
48706
+ method: "POST",
48707
+ data,
48708
+ params,
48709
+ headers,
48710
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
48711
+ })
48712
+ .catch((e) => {
48713
+ this.logger.error(formatErrors(e));
48714
+ throw e;
48715
+ });
48716
+ }),
48475
48717
  /**
48476
48718
  * {@link https://open.feishu.cn/api-explorer?project=hire&resource=application&apiName=create&version=v1 click to debug }
48477
48719
  *
@@ -55743,7 +55985,7 @@ class Client$s extends Client$t {
55743
55985
  }),
55744
55986
  },
55745
55987
  /**
55746
- * 消息
55988
+ * 消息加急
55747
55989
  */
55748
55990
  message: {
55749
55991
  /**
@@ -57946,7 +58188,7 @@ class Client$s extends Client$t {
57946
58188
  }),
57947
58189
  },
57948
58190
  /**
57949
- * 消息
58191
+ * 消息加急
57950
58192
  */
57951
58193
  message: {
57952
58194
  /**
@@ -65877,7 +66119,7 @@ class Client$c extends Client$d {
65877
66119
  }),
65878
66120
  },
65879
66121
  /**
65880
- * 行列
66122
+ * 工作表
65881
66123
  */
65882
66124
  spreadsheetSheet: {
65883
66125
  /**
@@ -66607,7 +66849,7 @@ class Client$c extends Client$d {
66607
66849
  }),
66608
66850
  },
66609
66851
  /**
66610
- * 行列
66852
+ * 工作表
66611
66853
  */
66612
66854
  spreadsheetSheet: {
66613
66855
  /**