@larksuiteoapi/node-sdk 1.41.0 → 1.43.0-alpha.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.
Files changed (4) hide show
  1. package/es/index.js +1367 -117
  2. package/lib/index.js +1367 -117
  3. package/package.json +1 -1
  4. package/types/index.d.ts +42980 -2158
package/es/index.js CHANGED
@@ -256,7 +256,7 @@ const formatErrors = (e) => {
256
256
  };
257
257
 
258
258
  // auto gen
259
- class Client$10 {
259
+ class Client$11 {
260
260
  constructor() {
261
261
  /**
262
262
  * 智能门禁
@@ -1313,11 +1313,11 @@ class Client$10 {
1313
1313
  }
1314
1314
 
1315
1315
  // auto gen
1316
- class Client$$ extends Client$10 {
1316
+ 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
  /**
@@ -2409,7 +2409,7 @@ class Client$$ extends Client$10 {
2409
2409
  }
2410
2410
 
2411
2411
  // auto gen
2412
- class Client$_ extends Client$$ {
2412
+ class Client$$ extends Client$10 {
2413
2413
  constructor() {
2414
2414
  super(...arguments);
2415
2415
  /**
@@ -3109,7 +3109,7 @@ class Client$_ extends Client$$ {
3109
3109
  }
3110
3110
 
3111
3111
  // auto gen
3112
- class Client$Z extends Client$_ {
3112
+ class Client$_ extends Client$$ {
3113
3113
  constructor() {
3114
3114
  super(...arguments);
3115
3115
  /**
@@ -3492,7 +3492,7 @@ class Client$Z extends Client$_ {
3492
3492
  }),
3493
3493
  },
3494
3494
  /**
3495
- * 应用
3495
+ * 应用管理
3496
3496
  */
3497
3497
  application: {
3498
3498
  /**
@@ -4273,7 +4273,7 @@ class Client$Z extends Client$_ {
4273
4273
  }),
4274
4274
  },
4275
4275
  /**
4276
- * 应用
4276
+ * 应用管理
4277
4277
  */
4278
4278
  application: {
4279
4279
  /**
@@ -4683,7 +4683,7 @@ class Client$Z extends Client$_ {
4683
4683
  }
4684
4684
 
4685
4685
  // auto gen
4686
- class Client$Y extends Client$Z {
4686
+ class Client$Z extends Client$_ {
4687
4687
  constructor() {
4688
4688
  super(...arguments);
4689
4689
  /**
@@ -4691,7 +4691,7 @@ class Client$Y extends Client$Z {
4691
4691
  */
4692
4692
  this.approval = {
4693
4693
  /**
4694
- * 原生审批定义
4694
+ * 事件
4695
4695
  */
4696
4696
  approval: {
4697
4697
  /**
@@ -5488,7 +5488,7 @@ class Client$Y extends Client$Z {
5488
5488
  }),
5489
5489
  },
5490
5490
  /**
5491
- * 审批查询
5491
+ * 原生审批任务
5492
5492
  */
5493
5493
  task: {
5494
5494
  /**
@@ -5694,7 +5694,7 @@ class Client$Y extends Client$Z {
5694
5694
  },
5695
5695
  v4: {
5696
5696
  /**
5697
- * 原生审批定义
5697
+ * 事件
5698
5698
  */
5699
5699
  approval: {
5700
5700
  /**
@@ -6499,7 +6499,7 @@ class Client$Y extends Client$Z {
6499
6499
  }),
6500
6500
  },
6501
6501
  /**
6502
- * 审批查询
6502
+ * 原生审批任务
6503
6503
  */
6504
6504
  task: {
6505
6505
  /**
@@ -6711,7 +6711,7 @@ class Client$Y extends Client$Z {
6711
6711
  }
6712
6712
 
6713
6713
  // auto gen
6714
- class Client$X extends Client$Y {
6714
+ class Client$Y extends Client$Z {
6715
6715
  constructor() {
6716
6716
  super(...arguments);
6717
6717
  /**
@@ -9119,7 +9119,7 @@ class Client$X extends Client$Y {
9119
9119
  }
9120
9120
 
9121
9121
  // auto gen
9122
- class Client$W extends Client$X {
9122
+ class Client$X extends Client$Y {
9123
9123
  constructor() {
9124
9124
  super(...arguments);
9125
9125
  /**
@@ -9373,7 +9373,7 @@ class Client$W extends Client$X {
9373
9373
  }
9374
9374
 
9375
9375
  // auto gen
9376
- class Client$V extends Client$W {
9376
+ class Client$W extends Client$X {
9377
9377
  constructor() {
9378
9378
  super(...arguments);
9379
9379
  /**
@@ -9647,7 +9647,7 @@ class Client$V extends Client$W {
9647
9647
  }
9648
9648
 
9649
9649
  // auto gen
9650
- class Client$U extends Client$V {
9650
+ class Client$V extends Client$W {
9651
9651
  constructor() {
9652
9652
  super(...arguments);
9653
9653
  /**
@@ -9658,7 +9658,7 @@ class Client$U extends Client$V {
9658
9658
  }
9659
9659
 
9660
9660
  // auto gen
9661
- class Client$T extends Client$U {
9661
+ class Client$U extends Client$V {
9662
9662
  constructor() {
9663
9663
  super(...arguments);
9664
9664
  /**
@@ -10736,7 +10736,7 @@ class Client$T extends Client$U {
10736
10736
  }
10737
10737
 
10738
10738
  // auto gen
10739
- class Client$S extends Client$T {
10739
+ class Client$T extends Client$U {
10740
10740
  constructor() {
10741
10741
  super(...arguments);
10742
10742
  /**
@@ -14248,7 +14248,7 @@ class Client$S extends Client$T {
14248
14248
  }
14249
14249
 
14250
14250
  // auto gen
14251
- class Client$R extends Client$S {
14251
+ class Client$S extends Client$T {
14252
14252
  constructor() {
14253
14253
  super(...arguments);
14254
14254
  /**
@@ -14432,7 +14432,7 @@ class Client$R extends Client$S {
14432
14432
  }
14433
14433
 
14434
14434
  // auto gen
14435
- class Client$Q extends Client$R {
14435
+ class Client$R extends Client$S {
14436
14436
  constructor() {
14437
14437
  super(...arguments);
14438
14438
  /**
@@ -14529,7 +14529,7 @@ class Client$Q extends Client$R {
14529
14529
  }
14530
14530
 
14531
14531
  // auto gen
14532
- class Client$P extends Client$Q {
14532
+ class Client$Q extends Client$R {
14533
14533
  constructor() {
14534
14534
  super(...arguments);
14535
14535
  /**
@@ -17268,6 +17268,260 @@ class Client$P extends Client$Q {
17268
17268
  }
17269
17269
  }
17270
17270
 
17271
+ // auto gen
17272
+ class Client$P extends Client$Q {
17273
+ constructor() {
17274
+ super(...arguments);
17275
+ /**
17276
+
17277
+ */
17278
+ this.cardkit = {
17279
+ v1: {
17280
+ /**
17281
+ * card
17282
+ */
17283
+ card: {
17284
+ /**
17285
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=batch_update&version=v1 click to debug }
17286
+ *
17287
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=cardkit&resource=card&version=v1 document }
17288
+ *
17289
+ * 按指定的多个操作批量局部更新卡片,支持更新卡片设置、添加组件、删除组件、更新组件
17290
+ */
17291
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17292
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17293
+ return this.httpInstance
17294
+ .request({
17295
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`, path),
17296
+ method: "POST",
17297
+ data,
17298
+ params,
17299
+ headers,
17300
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17301
+ })
17302
+ .catch((e) => {
17303
+ this.logger.error(formatErrors(e));
17304
+ throw e;
17305
+ });
17306
+ }),
17307
+ /**
17308
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=create&version=v1 click to debug }
17309
+ *
17310
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card&version=v1 document }
17311
+ *
17312
+ * 创建卡片实例,成功后可通过发送消息等接口发送卡片实例
17313
+ */
17314
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17315
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17316
+ return this.httpInstance
17317
+ .request({
17318
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards`, path),
17319
+ method: "POST",
17320
+ data,
17321
+ params,
17322
+ headers,
17323
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17324
+ })
17325
+ .catch((e) => {
17326
+ this.logger.error(formatErrors(e));
17327
+ throw e;
17328
+ });
17329
+ }),
17330
+ /**
17331
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=id_convert&version=v1 click to debug }
17332
+ *
17333
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=id_convert&project=cardkit&resource=card&version=v1 document }
17334
+ *
17335
+ * 获取消息 id 对应的卡片 id
17336
+ */
17337
+ idConvert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17338
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17339
+ return this.httpInstance
17340
+ .request({
17341
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`, path),
17342
+ method: "POST",
17343
+ data,
17344
+ params,
17345
+ headers,
17346
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17347
+ })
17348
+ .catch((e) => {
17349
+ this.logger.error(formatErrors(e));
17350
+ throw e;
17351
+ });
17352
+ }),
17353
+ /**
17354
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=settings&version=v1 click to debug }
17355
+ *
17356
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=settings&project=cardkit&resource=card&version=v1 document }
17357
+ *
17358
+ * 更新指定的卡片设置
17359
+ */
17360
+ settings: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17361
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17362
+ return this.httpInstance
17363
+ .request({
17364
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`, path),
17365
+ method: "PATCH",
17366
+ data,
17367
+ params,
17368
+ headers,
17369
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17370
+ })
17371
+ .catch((e) => {
17372
+ this.logger.error(formatErrors(e));
17373
+ throw e;
17374
+ });
17375
+ }),
17376
+ /**
17377
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=update&version=v1 click to debug }
17378
+ *
17379
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card&version=v1 document }
17380
+ *
17381
+ * 对卡片进行全量更新,即:以全新的卡片内容更新已有卡片
17382
+ */
17383
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17384
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17385
+ return this.httpInstance
17386
+ .request({
17387
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`, path),
17388
+ method: "PUT",
17389
+ data,
17390
+ params,
17391
+ headers,
17392
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17393
+ })
17394
+ .catch((e) => {
17395
+ this.logger.error(formatErrors(e));
17396
+ throw e;
17397
+ });
17398
+ }),
17399
+ },
17400
+ /**
17401
+ * card.element
17402
+ */
17403
+ cardElement: {
17404
+ /**
17405
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=content&version=v1 click to debug }
17406
+ *
17407
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=content&project=cardkit&resource=card.element&version=v1 document }
17408
+ *
17409
+ * 以传入的文本内容覆盖已有卡片组件内容,卡片将自动识别其中的增量变更内容,并以“打字机”效果输出。
17410
+ */
17411
+ content: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17412
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17413
+ return this.httpInstance
17414
+ .request({
17415
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`, path),
17416
+ method: "PUT",
17417
+ data,
17418
+ params,
17419
+ headers,
17420
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17421
+ })
17422
+ .catch((e) => {
17423
+ this.logger.error(formatErrors(e));
17424
+ throw e;
17425
+ });
17426
+ }),
17427
+ /**
17428
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=create&version=v1 click to debug }
17429
+ *
17430
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card.element&version=v1 document }
17431
+ *
17432
+ * 在卡片内指定位置添加组件
17433
+ */
17434
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17435
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17436
+ return this.httpInstance
17437
+ .request({
17438
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`, path),
17439
+ method: "POST",
17440
+ data,
17441
+ params,
17442
+ headers,
17443
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17444
+ })
17445
+ .catch((e) => {
17446
+ this.logger.error(formatErrors(e));
17447
+ throw e;
17448
+ });
17449
+ }),
17450
+ /**
17451
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=delete&version=v1 click to debug }
17452
+ *
17453
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=cardkit&resource=card.element&version=v1 document }
17454
+ *
17455
+ * 删除卡片内的指定组件
17456
+ */
17457
+ delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17458
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17459
+ return this.httpInstance
17460
+ .request({
17461
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
17462
+ method: "DELETE",
17463
+ data,
17464
+ params,
17465
+ headers,
17466
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17467
+ })
17468
+ .catch((e) => {
17469
+ this.logger.error(formatErrors(e));
17470
+ throw e;
17471
+ });
17472
+ }),
17473
+ /**
17474
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=patch&version=v1 click to debug }
17475
+ *
17476
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=cardkit&resource=card.element&version=v1 document }
17477
+ *
17478
+ * 以传入的配置覆盖指定组件的已有配置
17479
+ */
17480
+ patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17481
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17482
+ return this.httpInstance
17483
+ .request({
17484
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
17485
+ method: "PATCH",
17486
+ data,
17487
+ params,
17488
+ headers,
17489
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17490
+ })
17491
+ .catch((e) => {
17492
+ this.logger.error(formatErrors(e));
17493
+ throw e;
17494
+ });
17495
+ }),
17496
+ /**
17497
+ * {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=update&version=v1 click to debug }
17498
+ *
17499
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card.element&version=v1 document }
17500
+ *
17501
+ * 以新组件全量替换更新指定组件
17502
+ */
17503
+ update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
17504
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
17505
+ return this.httpInstance
17506
+ .request({
17507
+ url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
17508
+ method: "PUT",
17509
+ data,
17510
+ params,
17511
+ headers,
17512
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
17513
+ })
17514
+ .catch((e) => {
17515
+ this.logger.error(formatErrors(e));
17516
+ throw e;
17517
+ });
17518
+ }),
17519
+ },
17520
+ },
17521
+ };
17522
+ }
17523
+ }
17524
+
17271
17525
  // auto gen
17272
17526
  class Client$O extends Client$P {
17273
17527
  constructor() {
@@ -29724,6 +29978,79 @@ class Client$J extends Client$K {
29724
29978
  throw e;
29725
29979
  });
29726
29980
  }),
29981
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29982
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
29983
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
29984
+ const res = yield this.httpInstance
29985
+ .request({
29986
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
29987
+ method: "GET",
29988
+ headers: pickBy(innerPayload.headers, identity),
29989
+ params: pickBy(innerPayload.params, identity),
29990
+ data,
29991
+ paramsSerializer: (params) => stringify(params, {
29992
+ arrayFormat: "repeat",
29993
+ }),
29994
+ })
29995
+ .catch((e) => {
29996
+ this.logger.error(formatErrors(e));
29997
+ });
29998
+ return res;
29999
+ });
30000
+ const Iterable = {
30001
+ [Symbol.asyncIterator]() {
30002
+ return __asyncGenerator(this, arguments, function* _a() {
30003
+ let hasMore = true;
30004
+ let pageToken;
30005
+ while (hasMore) {
30006
+ try {
30007
+ const res = yield __await(sendRequest({
30008
+ headers,
30009
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
30010
+ data,
30011
+ }));
30012
+ const _b = get(res, "data") || {}, {
30013
+ // @ts-ignore
30014
+ has_more,
30015
+ // @ts-ignore
30016
+ page_token,
30017
+ // @ts-ignore
30018
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
30019
+ yield yield __await(rest);
30020
+ hasMore = Boolean(has_more);
30021
+ pageToken = page_token || next_page_token;
30022
+ }
30023
+ catch (e) {
30024
+ yield yield __await(null);
30025
+ break;
30026
+ }
30027
+ }
30028
+ });
30029
+ },
30030
+ };
30031
+ return Iterable;
30032
+ }),
30033
+ /**
30034
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=query_recent_change&version=v2 click to debug }
30035
+ *
30036
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=cost_center&version=v2 document }
30037
+ */
30038
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30039
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30040
+ return this.httpInstance
30041
+ .request({
30042
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
30043
+ method: "GET",
30044
+ data,
30045
+ params,
30046
+ headers,
30047
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30048
+ })
30049
+ .catch((e) => {
30050
+ this.logger.error(formatErrors(e));
30051
+ throw e;
30052
+ });
30053
+ }),
29727
30054
  /**
29728
30055
  * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
29729
30056
  *
@@ -29937,6 +30264,81 @@ class Client$J extends Client$K {
29937
30264
  throw e;
29938
30265
  });
29939
30266
  }),
30267
+ queryOperationLogsWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30268
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30269
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
30270
+ const res = yield this.httpInstance
30271
+ .request({
30272
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
30273
+ method: "POST",
30274
+ headers: pickBy(innerPayload.headers, identity),
30275
+ params: pickBy(innerPayload.params, identity),
30276
+ data,
30277
+ paramsSerializer: (params) => stringify(params, {
30278
+ arrayFormat: "repeat",
30279
+ }),
30280
+ })
30281
+ .catch((e) => {
30282
+ this.logger.error(formatErrors(e));
30283
+ });
30284
+ return res;
30285
+ });
30286
+ const Iterable = {
30287
+ [Symbol.asyncIterator]() {
30288
+ return __asyncGenerator(this, arguments, function* _a() {
30289
+ let hasMore = true;
30290
+ let pageToken;
30291
+ while (hasMore) {
30292
+ try {
30293
+ const res = yield __await(sendRequest({
30294
+ headers,
30295
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
30296
+ data,
30297
+ }));
30298
+ const _b = get(res, "data") || {}, {
30299
+ // @ts-ignore
30300
+ has_more,
30301
+ // @ts-ignore
30302
+ page_token,
30303
+ // @ts-ignore
30304
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
30305
+ yield yield __await(rest);
30306
+ hasMore = Boolean(has_more);
30307
+ pageToken = page_token || next_page_token;
30308
+ }
30309
+ catch (e) {
30310
+ yield yield __await(null);
30311
+ break;
30312
+ }
30313
+ }
30314
+ });
30315
+ },
30316
+ };
30317
+ return Iterable;
30318
+ }),
30319
+ /**
30320
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_operation_logs&version=v2 click to debug }
30321
+ *
30322
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_operation_logs&project=corehr&resource=department&version=v2 document }
30323
+ *
30324
+ * 查询操作日志
30325
+ */
30326
+ queryOperationLogs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30327
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30328
+ return this.httpInstance
30329
+ .request({
30330
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
30331
+ method: "POST",
30332
+ data,
30333
+ params,
30334
+ headers,
30335
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30336
+ })
30337
+ .catch((e) => {
30338
+ this.logger.error(formatErrors(e));
30339
+ throw e;
30340
+ });
30341
+ }),
29940
30342
  queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
29941
30343
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
29942
30344
  const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
@@ -30476,6 +30878,34 @@ class Client$J extends Client$K {
30476
30878
  });
30477
30879
  }),
30478
30880
  },
30881
+ /**
30882
+ * enum
30883
+ */
30884
+ enum: {
30885
+ /**
30886
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=enum&apiName=search&version=v2 click to debug }
30887
+ *
30888
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=enum&version=v2 document }
30889
+ *
30890
+ * 通过apiname批量获取枚举信息
30891
+ */
30892
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
30893
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
30894
+ return this.httpInstance
30895
+ .request({
30896
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/enums/search`, path),
30897
+ method: "POST",
30898
+ data,
30899
+ params,
30900
+ headers,
30901
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
30902
+ })
30903
+ .catch((e) => {
30904
+ this.logger.error(formatErrors(e));
30905
+ throw e;
30906
+ });
30907
+ }),
30908
+ },
30479
30909
  /**
30480
30910
  * job
30481
30911
  */
@@ -30676,6 +31106,79 @@ class Client$J extends Client$K {
30676
31106
  throw e;
30677
31107
  });
30678
31108
  }),
31109
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31110
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31111
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31112
+ const res = yield this.httpInstance
31113
+ .request({
31114
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
31115
+ method: "GET",
31116
+ headers: pickBy(innerPayload.headers, identity),
31117
+ params: pickBy(innerPayload.params, identity),
31118
+ data,
31119
+ paramsSerializer: (params) => stringify(params, {
31120
+ arrayFormat: "repeat",
31121
+ }),
31122
+ })
31123
+ .catch((e) => {
31124
+ this.logger.error(formatErrors(e));
31125
+ });
31126
+ return res;
31127
+ });
31128
+ const Iterable = {
31129
+ [Symbol.asyncIterator]() {
31130
+ return __asyncGenerator(this, arguments, function* _a() {
31131
+ let hasMore = true;
31132
+ let pageToken;
31133
+ while (hasMore) {
31134
+ try {
31135
+ const res = yield __await(sendRequest({
31136
+ headers,
31137
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
31138
+ data,
31139
+ }));
31140
+ const _b = get(res, "data") || {}, {
31141
+ // @ts-ignore
31142
+ has_more,
31143
+ // @ts-ignore
31144
+ page_token,
31145
+ // @ts-ignore
31146
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
31147
+ yield yield __await(rest);
31148
+ hasMore = Boolean(has_more);
31149
+ pageToken = page_token || next_page_token;
31150
+ }
31151
+ catch (e) {
31152
+ yield yield __await(null);
31153
+ break;
31154
+ }
31155
+ }
31156
+ });
31157
+ },
31158
+ };
31159
+ return Iterable;
31160
+ }),
31161
+ /**
31162
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_recent_change&version=v2 click to debug }
31163
+ *
31164
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_family&version=v2 document }
31165
+ */
31166
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31167
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31168
+ return this.httpInstance
31169
+ .request({
31170
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
31171
+ method: "GET",
31172
+ data,
31173
+ params,
31174
+ headers,
31175
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31176
+ })
31177
+ .catch((e) => {
31178
+ this.logger.error(formatErrors(e));
31179
+ throw e;
31180
+ });
31181
+ }),
30679
31182
  },
30680
31183
  /**
30681
31184
  * job_grade
@@ -30773,6 +31276,79 @@ class Client$J extends Client$K {
30773
31276
  throw e;
30774
31277
  });
30775
31278
  }),
31279
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31280
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31281
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31282
+ const res = yield this.httpInstance
31283
+ .request({
31284
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
31285
+ method: "GET",
31286
+ headers: pickBy(innerPayload.headers, identity),
31287
+ params: pickBy(innerPayload.params, identity),
31288
+ data,
31289
+ paramsSerializer: (params) => stringify(params, {
31290
+ arrayFormat: "repeat",
31291
+ }),
31292
+ })
31293
+ .catch((e) => {
31294
+ this.logger.error(formatErrors(e));
31295
+ });
31296
+ return res;
31297
+ });
31298
+ const Iterable = {
31299
+ [Symbol.asyncIterator]() {
31300
+ return __asyncGenerator(this, arguments, function* _a() {
31301
+ let hasMore = true;
31302
+ let pageToken;
31303
+ while (hasMore) {
31304
+ try {
31305
+ const res = yield __await(sendRequest({
31306
+ headers,
31307
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
31308
+ data,
31309
+ }));
31310
+ const _b = get(res, "data") || {}, {
31311
+ // @ts-ignore
31312
+ has_more,
31313
+ // @ts-ignore
31314
+ page_token,
31315
+ // @ts-ignore
31316
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
31317
+ yield yield __await(rest);
31318
+ hasMore = Boolean(has_more);
31319
+ pageToken = page_token || next_page_token;
31320
+ }
31321
+ catch (e) {
31322
+ yield yield __await(null);
31323
+ break;
31324
+ }
31325
+ }
31326
+ });
31327
+ },
31328
+ };
31329
+ return Iterable;
31330
+ }),
31331
+ /**
31332
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query_recent_change&version=v2 click to debug }
31333
+ *
31334
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_grade&version=v2 document }
31335
+ */
31336
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31337
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31338
+ return this.httpInstance
31339
+ .request({
31340
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
31341
+ method: "GET",
31342
+ data,
31343
+ params,
31344
+ headers,
31345
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31346
+ })
31347
+ .catch((e) => {
31348
+ this.logger.error(formatErrors(e));
31349
+ throw e;
31350
+ });
31351
+ }),
30776
31352
  },
30777
31353
  /**
30778
31354
  * job_level
@@ -30801,6 +31377,79 @@ class Client$J extends Client$K {
30801
31377
  throw e;
30802
31378
  });
30803
31379
  }),
31380
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31381
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31382
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31383
+ const res = yield this.httpInstance
31384
+ .request({
31385
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
31386
+ method: "GET",
31387
+ headers: pickBy(innerPayload.headers, identity),
31388
+ params: pickBy(innerPayload.params, identity),
31389
+ data,
31390
+ paramsSerializer: (params) => stringify(params, {
31391
+ arrayFormat: "repeat",
31392
+ }),
31393
+ })
31394
+ .catch((e) => {
31395
+ this.logger.error(formatErrors(e));
31396
+ });
31397
+ return res;
31398
+ });
31399
+ const Iterable = {
31400
+ [Symbol.asyncIterator]() {
31401
+ return __asyncGenerator(this, arguments, function* _a() {
31402
+ let hasMore = true;
31403
+ let pageToken;
31404
+ while (hasMore) {
31405
+ try {
31406
+ const res = yield __await(sendRequest({
31407
+ headers,
31408
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
31409
+ data,
31410
+ }));
31411
+ const _b = get(res, "data") || {}, {
31412
+ // @ts-ignore
31413
+ has_more,
31414
+ // @ts-ignore
31415
+ page_token,
31416
+ // @ts-ignore
31417
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
31418
+ yield yield __await(rest);
31419
+ hasMore = Boolean(has_more);
31420
+ pageToken = page_token || next_page_token;
31421
+ }
31422
+ catch (e) {
31423
+ yield yield __await(null);
31424
+ break;
31425
+ }
31426
+ }
31427
+ });
31428
+ },
31429
+ };
31430
+ return Iterable;
31431
+ }),
31432
+ /**
31433
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=query_recent_change&version=v2 click to debug }
31434
+ *
31435
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_level&version=v2 document }
31436
+ */
31437
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31438
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31439
+ return this.httpInstance
31440
+ .request({
31441
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
31442
+ method: "GET",
31443
+ data,
31444
+ params,
31445
+ headers,
31446
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31447
+ })
31448
+ .catch((e) => {
31449
+ this.logger.error(formatErrors(e));
31450
+ throw e;
31451
+ });
31452
+ }),
30804
31453
  },
30805
31454
  /**
30806
31455
  * location
@@ -30875,6 +31524,79 @@ class Client$J extends Client$K {
30875
31524
  throw e;
30876
31525
  });
30877
31526
  }),
31527
+ queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31528
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31529
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31530
+ const res = yield this.httpInstance
31531
+ .request({
31532
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
31533
+ method: "GET",
31534
+ headers: pickBy(innerPayload.headers, identity),
31535
+ params: pickBy(innerPayload.params, identity),
31536
+ data,
31537
+ paramsSerializer: (params) => stringify(params, {
31538
+ arrayFormat: "repeat",
31539
+ }),
31540
+ })
31541
+ .catch((e) => {
31542
+ this.logger.error(formatErrors(e));
31543
+ });
31544
+ return res;
31545
+ });
31546
+ const Iterable = {
31547
+ [Symbol.asyncIterator]() {
31548
+ return __asyncGenerator(this, arguments, function* _a() {
31549
+ let hasMore = true;
31550
+ let pageToken;
31551
+ while (hasMore) {
31552
+ try {
31553
+ const res = yield __await(sendRequest({
31554
+ headers,
31555
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
31556
+ data,
31557
+ }));
31558
+ const _b = get(res, "data") || {}, {
31559
+ // @ts-ignore
31560
+ has_more,
31561
+ // @ts-ignore
31562
+ page_token,
31563
+ // @ts-ignore
31564
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
31565
+ yield yield __await(rest);
31566
+ hasMore = Boolean(has_more);
31567
+ pageToken = page_token || next_page_token;
31568
+ }
31569
+ catch (e) {
31570
+ yield yield __await(null);
31571
+ break;
31572
+ }
31573
+ }
31574
+ });
31575
+ },
31576
+ };
31577
+ return Iterable;
31578
+ }),
31579
+ /**
31580
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=query_recent_change&version=v2 click to debug }
31581
+ *
31582
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=location&version=v2 document }
31583
+ */
31584
+ queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31585
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31586
+ return this.httpInstance
31587
+ .request({
31588
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
31589
+ method: "GET",
31590
+ data,
31591
+ params,
31592
+ headers,
31593
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31594
+ })
31595
+ .catch((e) => {
31596
+ this.logger.error(formatErrors(e));
31597
+ throw e;
31598
+ });
31599
+ }),
30878
31600
  },
30879
31601
  /**
30880
31602
  * location.address
@@ -31222,17 +31944,113 @@ class Client$J extends Client$K {
31222
31944
  return Iterable;
31223
31945
  }),
31224
31946
  /**
31225
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=query&version=v2 click to debug }
31947
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=query&version=v2 click to debug }
31948
+ *
31949
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=pre_hire&version=v2 document }
31950
+ *
31951
+ * 批量查询待入职数据
31952
+ */
31953
+ query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31954
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31955
+ return this.httpInstance
31956
+ .request({
31957
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/query`, path),
31958
+ method: "POST",
31959
+ data,
31960
+ params,
31961
+ headers,
31962
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31963
+ })
31964
+ .catch((e) => {
31965
+ this.logger.error(formatErrors(e));
31966
+ throw e;
31967
+ });
31968
+ }),
31969
+ /**
31970
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=restore_flow_instance&version=v2 click to debug }
31971
+ *
31972
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=restore_flow_instance&project=corehr&resource=pre_hire&version=v2 document }
31973
+ */
31974
+ restoreFlowInstance: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31975
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31976
+ return this.httpInstance
31977
+ .request({
31978
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`, path),
31979
+ method: "POST",
31980
+ data,
31981
+ params,
31982
+ headers,
31983
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
31984
+ })
31985
+ .catch((e) => {
31986
+ this.logger.error(formatErrors(e));
31987
+ throw e;
31988
+ });
31989
+ }),
31990
+ searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31991
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
31992
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31993
+ const res = yield this.httpInstance
31994
+ .request({
31995
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
31996
+ method: "POST",
31997
+ headers: pickBy(innerPayload.headers, identity),
31998
+ params: pickBy(innerPayload.params, identity),
31999
+ data,
32000
+ paramsSerializer: (params) => stringify(params, {
32001
+ arrayFormat: "repeat",
32002
+ }),
32003
+ })
32004
+ .catch((e) => {
32005
+ this.logger.error(formatErrors(e));
32006
+ });
32007
+ return res;
32008
+ });
32009
+ const Iterable = {
32010
+ [Symbol.asyncIterator]() {
32011
+ return __asyncGenerator(this, arguments, function* _a() {
32012
+ let hasMore = true;
32013
+ let pageToken;
32014
+ while (hasMore) {
32015
+ try {
32016
+ const res = yield __await(sendRequest({
32017
+ headers,
32018
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
32019
+ data,
32020
+ }));
32021
+ const _b = get(res, "data") || {}, {
32022
+ // @ts-ignore
32023
+ has_more,
32024
+ // @ts-ignore
32025
+ page_token,
32026
+ // @ts-ignore
32027
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
32028
+ yield yield __await(rest);
32029
+ hasMore = Boolean(has_more);
32030
+ pageToken = page_token || next_page_token;
32031
+ }
32032
+ catch (e) {
32033
+ yield yield __await(null);
32034
+ break;
32035
+ }
32036
+ }
32037
+ });
32038
+ },
32039
+ };
32040
+ return Iterable;
32041
+ }),
32042
+ /**
32043
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=search&version=v2 click to debug }
31226
32044
  *
31227
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=pre_hire&version=v2 document }
32045
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=pre_hire&version=v2 document }
31228
32046
  *
31229
- * 批量查询待入职数据
32047
+ * 根据部门 ID,上级部门查询部门列表
31230
32048
  */
31231
- query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32049
+ search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31232
32050
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
31233
32051
  return this.httpInstance
31234
32052
  .request({
31235
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/query`, path),
32053
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
31236
32054
  method: "POST",
31237
32055
  data,
31238
32056
  params,
@@ -31244,70 +32062,18 @@ class Client$J extends Client$K {
31244
32062
  throw e;
31245
32063
  });
31246
32064
  }),
31247
- searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31248
- const { headers, params, data, path } = yield this.formatPayload(payload, options);
31249
- const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
31250
- const res = yield this.httpInstance
31251
- .request({
31252
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
31253
- method: "POST",
31254
- headers: pickBy(innerPayload.headers, identity),
31255
- params: pickBy(innerPayload.params, identity),
31256
- data,
31257
- paramsSerializer: (params) => stringify(params, {
31258
- arrayFormat: "repeat",
31259
- }),
31260
- })
31261
- .catch((e) => {
31262
- this.logger.error(formatErrors(e));
31263
- });
31264
- return res;
31265
- });
31266
- const Iterable = {
31267
- [Symbol.asyncIterator]() {
31268
- return __asyncGenerator(this, arguments, function* _a() {
31269
- let hasMore = true;
31270
- let pageToken;
31271
- while (hasMore) {
31272
- try {
31273
- const res = yield __await(sendRequest({
31274
- headers,
31275
- params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
31276
- data,
31277
- }));
31278
- const _b = get(res, "data") || {}, {
31279
- // @ts-ignore
31280
- has_more,
31281
- // @ts-ignore
31282
- page_token,
31283
- // @ts-ignore
31284
- next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
31285
- yield yield __await(rest);
31286
- hasMore = Boolean(has_more);
31287
- pageToken = page_token || next_page_token;
31288
- }
31289
- catch (e) {
31290
- yield yield __await(null);
31291
- break;
31292
- }
31293
- }
31294
- });
31295
- },
31296
- };
31297
- return Iterable;
31298
- }),
31299
32065
  /**
31300
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=search&version=v2 click to debug }
32066
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=transit_task&version=v2 click to debug }
31301
32067
  *
31302
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=pre_hire&version=v2 document }
32068
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=transit_task&project=corehr&resource=pre_hire&version=v2 document }
31303
32069
  *
31304
- * 根据部门 ID,上级部门查询部门列表
32070
+ * 任务流转
31305
32071
  */
31306
- search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32072
+ transitTask: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31307
32073
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
31308
32074
  return this.httpInstance
31309
32075
  .request({
31310
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
32076
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`, path),
31311
32077
  method: "POST",
31312
32078
  data,
31313
32079
  params,
@@ -31320,17 +32086,15 @@ class Client$J extends Client$K {
31320
32086
  });
31321
32087
  }),
31322
32088
  /**
31323
- * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=transit_task&version=v2 click to debug }
31324
- *
31325
- * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=transit_task&project=corehr&resource=pre_hire&version=v2 document }
32089
+ * {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=withdraw_onboarding&version=v2 click to debug }
31326
32090
  *
31327
- * 任务流转
32091
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=withdraw_onboarding&project=corehr&resource=pre_hire&version=v2 document }
31328
32092
  */
31329
- transitTask: (payload, options) => __awaiter(this, void 0, void 0, function* () {
32093
+ withdrawOnboarding: (payload, options) => __awaiter(this, void 0, void 0, function* () {
31330
32094
  const { headers, params, data, path } = yield this.formatPayload(payload, options);
31331
32095
  return this.httpInstance
31332
32096
  .request({
31333
- url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`, path),
32097
+ url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`, path),
31334
32098
  method: "POST",
31335
32099
  data,
31336
32100
  params,
@@ -32579,6 +33343,218 @@ class Client$F extends Client$G {
32579
33343
  * 云文档-文档
32580
33344
  */
32581
33345
  this.docx = {
33346
+ /**
33347
+ * chat.announcement.block
33348
+ */
33349
+ chatAnnouncementBlock: {
33350
+ /**
33351
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
33352
+ *
33353
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
33354
+ */
33355
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33356
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33357
+ return this.httpInstance
33358
+ .request({
33359
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
33360
+ method: "PATCH",
33361
+ data,
33362
+ params,
33363
+ headers,
33364
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33365
+ })
33366
+ .catch((e) => {
33367
+ this.logger.error(formatErrors(e));
33368
+ throw e;
33369
+ });
33370
+ }),
33371
+ /**
33372
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
33373
+ *
33374
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
33375
+ */
33376
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33377
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33378
+ return this.httpInstance
33379
+ .request({
33380
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
33381
+ method: "GET",
33382
+ data,
33383
+ params,
33384
+ headers,
33385
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33386
+ })
33387
+ .catch((e) => {
33388
+ this.logger.error(formatErrors(e));
33389
+ throw e;
33390
+ });
33391
+ }),
33392
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33393
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33394
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
33395
+ const res = yield this.httpInstance
33396
+ .request({
33397
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
33398
+ method: "GET",
33399
+ headers: pickBy(innerPayload.headers, identity),
33400
+ params: pickBy(innerPayload.params, identity),
33401
+ data,
33402
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33403
+ })
33404
+ .catch((e) => {
33405
+ this.logger.error(formatErrors(e));
33406
+ });
33407
+ return res;
33408
+ });
33409
+ const Iterable = {
33410
+ [Symbol.asyncIterator]() {
33411
+ return __asyncGenerator(this, arguments, function* _a() {
33412
+ let hasMore = true;
33413
+ let pageToken;
33414
+ while (hasMore) {
33415
+ try {
33416
+ const res = yield __await(sendRequest({
33417
+ headers,
33418
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
33419
+ data,
33420
+ }));
33421
+ const _b = get(res, "data") || {}, {
33422
+ // @ts-ignore
33423
+ has_more,
33424
+ // @ts-ignore
33425
+ page_token,
33426
+ // @ts-ignore
33427
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
33428
+ yield yield __await(rest);
33429
+ hasMore = Boolean(has_more);
33430
+ pageToken = page_token || next_page_token;
33431
+ }
33432
+ catch (e) {
33433
+ yield yield __await(null);
33434
+ break;
33435
+ }
33436
+ }
33437
+ });
33438
+ },
33439
+ };
33440
+ return Iterable;
33441
+ }),
33442
+ /**
33443
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
33444
+ *
33445
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
33446
+ */
33447
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33448
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33449
+ return this.httpInstance
33450
+ .request({
33451
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
33452
+ method: "GET",
33453
+ data,
33454
+ params,
33455
+ headers,
33456
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33457
+ })
33458
+ .catch((e) => {
33459
+ this.logger.error(formatErrors(e));
33460
+ throw e;
33461
+ });
33462
+ }),
33463
+ },
33464
+ /**
33465
+ * chat.announcement.block.children
33466
+ */
33467
+ chatAnnouncementBlockChildren: {
33468
+ /**
33469
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
33470
+ *
33471
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
33472
+ */
33473
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33474
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33475
+ return this.httpInstance
33476
+ .request({
33477
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
33478
+ method: "DELETE",
33479
+ data,
33480
+ params,
33481
+ headers,
33482
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33483
+ })
33484
+ .catch((e) => {
33485
+ this.logger.error(formatErrors(e));
33486
+ throw e;
33487
+ });
33488
+ }),
33489
+ /**
33490
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
33491
+ *
33492
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
33493
+ */
33494
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33495
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33496
+ return this.httpInstance
33497
+ .request({
33498
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
33499
+ method: "POST",
33500
+ data,
33501
+ params,
33502
+ headers,
33503
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33504
+ })
33505
+ .catch((e) => {
33506
+ this.logger.error(formatErrors(e));
33507
+ throw e;
33508
+ });
33509
+ }),
33510
+ /**
33511
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
33512
+ *
33513
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
33514
+ */
33515
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33516
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33517
+ return this.httpInstance
33518
+ .request({
33519
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
33520
+ method: "GET",
33521
+ data,
33522
+ params,
33523
+ headers,
33524
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33525
+ })
33526
+ .catch((e) => {
33527
+ this.logger.error(formatErrors(e));
33528
+ throw e;
33529
+ });
33530
+ }),
33531
+ },
33532
+ /**
33533
+ * chat.announcement
33534
+ */
33535
+ chatAnnouncement: {
33536
+ /**
33537
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
33538
+ *
33539
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
33540
+ */
33541
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
33542
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
33543
+ return this.httpInstance
33544
+ .request({
33545
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
33546
+ method: "GET",
33547
+ data,
33548
+ params,
33549
+ headers,
33550
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
33551
+ })
33552
+ .catch((e) => {
33553
+ this.logger.error(formatErrors(e));
33554
+ throw e;
33555
+ });
33556
+ }),
33557
+ },
32582
33558
  /**
32583
33559
  * 块
32584
33560
  */
@@ -33011,6 +33987,220 @@ class Client$F extends Client$G {
33011
33987
  }),
33012
33988
  },
33013
33989
  v1: {
33990
+ /**
33991
+ * chat.announcement.block
33992
+ */
33993
+ chatAnnouncementBlock: {
33994
+ /**
33995
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
33996
+ *
33997
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
33998
+ */
33999
+ batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34000
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34001
+ return this.httpInstance
34002
+ .request({
34003
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
34004
+ method: "PATCH",
34005
+ data,
34006
+ params,
34007
+ headers,
34008
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34009
+ })
34010
+ .catch((e) => {
34011
+ this.logger.error(formatErrors(e));
34012
+ throw e;
34013
+ });
34014
+ }),
34015
+ /**
34016
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
34017
+ *
34018
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
34019
+ */
34020
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34021
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34022
+ return this.httpInstance
34023
+ .request({
34024
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
34025
+ method: "GET",
34026
+ data,
34027
+ params,
34028
+ headers,
34029
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34030
+ })
34031
+ .catch((e) => {
34032
+ this.logger.error(formatErrors(e));
34033
+ throw e;
34034
+ });
34035
+ }),
34036
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34037
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34038
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
34039
+ const res = yield this.httpInstance
34040
+ .request({
34041
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
34042
+ method: "GET",
34043
+ headers: pickBy(innerPayload.headers, identity),
34044
+ params: pickBy(innerPayload.params, identity),
34045
+ data,
34046
+ paramsSerializer: (params) => stringify(params, {
34047
+ arrayFormat: "repeat",
34048
+ }),
34049
+ })
34050
+ .catch((e) => {
34051
+ this.logger.error(formatErrors(e));
34052
+ });
34053
+ return res;
34054
+ });
34055
+ const Iterable = {
34056
+ [Symbol.asyncIterator]() {
34057
+ return __asyncGenerator(this, arguments, function* _a() {
34058
+ let hasMore = true;
34059
+ let pageToken;
34060
+ while (hasMore) {
34061
+ try {
34062
+ const res = yield __await(sendRequest({
34063
+ headers,
34064
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
34065
+ data,
34066
+ }));
34067
+ const _b = get(res, "data") || {}, {
34068
+ // @ts-ignore
34069
+ has_more,
34070
+ // @ts-ignore
34071
+ page_token,
34072
+ // @ts-ignore
34073
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
34074
+ yield yield __await(rest);
34075
+ hasMore = Boolean(has_more);
34076
+ pageToken = page_token || next_page_token;
34077
+ }
34078
+ catch (e) {
34079
+ yield yield __await(null);
34080
+ break;
34081
+ }
34082
+ }
34083
+ });
34084
+ },
34085
+ };
34086
+ return Iterable;
34087
+ }),
34088
+ /**
34089
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
34090
+ *
34091
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
34092
+ */
34093
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34094
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34095
+ return this.httpInstance
34096
+ .request({
34097
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
34098
+ method: "GET",
34099
+ data,
34100
+ params,
34101
+ headers,
34102
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34103
+ })
34104
+ .catch((e) => {
34105
+ this.logger.error(formatErrors(e));
34106
+ throw e;
34107
+ });
34108
+ }),
34109
+ },
34110
+ /**
34111
+ * chat.announcement.block.children
34112
+ */
34113
+ chatAnnouncementBlockChildren: {
34114
+ /**
34115
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
34116
+ *
34117
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
34118
+ */
34119
+ batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34120
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34121
+ return this.httpInstance
34122
+ .request({
34123
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
34124
+ method: "DELETE",
34125
+ data,
34126
+ params,
34127
+ headers,
34128
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34129
+ })
34130
+ .catch((e) => {
34131
+ this.logger.error(formatErrors(e));
34132
+ throw e;
34133
+ });
34134
+ }),
34135
+ /**
34136
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
34137
+ *
34138
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
34139
+ */
34140
+ create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34141
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34142
+ return this.httpInstance
34143
+ .request({
34144
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
34145
+ method: "POST",
34146
+ data,
34147
+ params,
34148
+ headers,
34149
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34150
+ })
34151
+ .catch((e) => {
34152
+ this.logger.error(formatErrors(e));
34153
+ throw e;
34154
+ });
34155
+ }),
34156
+ /**
34157
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
34158
+ *
34159
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
34160
+ */
34161
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34162
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34163
+ return this.httpInstance
34164
+ .request({
34165
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
34166
+ method: "GET",
34167
+ data,
34168
+ params,
34169
+ headers,
34170
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34171
+ })
34172
+ .catch((e) => {
34173
+ this.logger.error(formatErrors(e));
34174
+ throw e;
34175
+ });
34176
+ }),
34177
+ },
34178
+ /**
34179
+ * chat.announcement
34180
+ */
34181
+ chatAnnouncement: {
34182
+ /**
34183
+ * {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
34184
+ *
34185
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
34186
+ */
34187
+ get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
34188
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
34189
+ return this.httpInstance
34190
+ .request({
34191
+ url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
34192
+ method: "GET",
34193
+ data,
34194
+ params,
34195
+ headers,
34196
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
34197
+ })
34198
+ .catch((e) => {
34199
+ this.logger.error(formatErrors(e));
34200
+ throw e;
34201
+ });
34202
+ }),
34203
+ },
33014
34204
  /**
33015
34205
  * 块
33016
34206
  */
@@ -34750,7 +35940,7 @@ class Client$E extends Client$F {
34750
35940
  }),
34751
35941
  },
34752
35942
  /**
34753
- * 分片上传
35943
+ * 素材
34754
35944
  */
34755
35945
  media: {
34756
35946
  /**
@@ -36576,7 +37766,7 @@ class Client$E extends Client$F {
36576
37766
  }),
36577
37767
  },
36578
37768
  /**
36579
- * 分片上传
37769
+ * 素材
36580
37770
  */
36581
37771
  media: {
36582
37772
  /**
@@ -37102,6 +38292,86 @@ class Client$E extends Client$F {
37102
38292
  },
37103
38293
  },
37104
38294
  v2: {
38295
+ /**
38296
+ * file.like
38297
+ */
38298
+ fileLike: {
38299
+ listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38300
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38301
+ const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
38302
+ const res = yield this.httpInstance
38303
+ .request({
38304
+ url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
38305
+ method: "GET",
38306
+ headers: pickBy(innerPayload.headers, identity),
38307
+ params: pickBy(innerPayload.params, identity),
38308
+ data,
38309
+ paramsSerializer: (params) => stringify(params, {
38310
+ arrayFormat: "repeat",
38311
+ }),
38312
+ })
38313
+ .catch((e) => {
38314
+ this.logger.error(formatErrors(e));
38315
+ });
38316
+ return res;
38317
+ });
38318
+ const Iterable = {
38319
+ [Symbol.asyncIterator]() {
38320
+ return __asyncGenerator(this, arguments, function* _a() {
38321
+ let hasMore = true;
38322
+ let pageToken;
38323
+ while (hasMore) {
38324
+ try {
38325
+ const res = yield __await(sendRequest({
38326
+ headers,
38327
+ params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
38328
+ data,
38329
+ }));
38330
+ const _b = get(res, "data") || {}, {
38331
+ // @ts-ignore
38332
+ has_more,
38333
+ // @ts-ignore
38334
+ page_token,
38335
+ // @ts-ignore
38336
+ next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
38337
+ yield yield __await(rest);
38338
+ hasMore = Boolean(has_more);
38339
+ pageToken = page_token || next_page_token;
38340
+ }
38341
+ catch (e) {
38342
+ yield yield __await(null);
38343
+ break;
38344
+ }
38345
+ }
38346
+ });
38347
+ },
38348
+ };
38349
+ return Iterable;
38350
+ }),
38351
+ /**
38352
+ * {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.like&apiName=list&version=v2 click to debug }
38353
+ *
38354
+ * {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=drive&resource=file.like&version=v2 document }
38355
+ *
38356
+ * 获取指定文件的点赞者列表并分页返回。
38357
+ */
38358
+ list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
38359
+ const { headers, params, data, path } = yield this.formatPayload(payload, options);
38360
+ return this.httpInstance
38361
+ .request({
38362
+ url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
38363
+ method: "GET",
38364
+ data,
38365
+ params,
38366
+ headers,
38367
+ paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
38368
+ })
38369
+ .catch((e) => {
38370
+ this.logger.error(formatErrors(e));
38371
+ throw e;
38372
+ });
38373
+ }),
38374
+ },
37105
38375
  /**
37106
38376
  * permission.public
37107
38377
  */
@@ -54473,7 +55743,7 @@ class Client$s extends Client$t {
54473
55743
  }),
54474
55744
  },
54475
55745
  /**
54476
- * 消息 - 消息卡片
55746
+ * 消息
54477
55747
  */
54478
55748
  message: {
54479
55749
  /**
@@ -56676,7 +57946,7 @@ class Client$s extends Client$t {
56676
57946
  }),
56677
57947
  },
56678
57948
  /**
56679
- * 消息 - 消息卡片
57949
+ * 消息
56680
57950
  */
56681
57951
  message: {
56682
57952
  /**
@@ -75142,11 +76412,7 @@ const adaptDefault = (path, dispatcher, options) => (req, res) => __awaiter(void
75142
76412
  }
75143
76413
  }
75144
76414
  const value = yield dispatcher.invoke(data);
75145
- // event don't need response
75146
- if (dispatcher instanceof CardActionHandler) {
75147
- res.end(JSON.stringify(value));
75148
- }
75149
- res.end('');
76415
+ res.end(JSON.stringify(value));
75150
76416
  });
75151
76417
 
75152
76418
  const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, void 0, void 0, function* () {
@@ -75177,11 +76443,7 @@ const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, vo
75177
76443
  }
75178
76444
  }
75179
76445
  const value = yield dispatcher.invoke(data);
75180
- // event don't need response
75181
- if (dispatcher instanceof CardActionHandler) {
75182
- res.json(value);
75183
- }
75184
- res.end('');
76446
+ res.json(value);
75185
76447
  });
75186
76448
 
75187
76449
  const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () {
@@ -75215,13 +76477,7 @@ const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0,
75215
76477
  }
75216
76478
  }
75217
76479
  const value = yield dispatcher.invoke(data);
75218
- // event don't need response
75219
- if (dispatcher instanceof CardActionHandler) {
75220
- ctx.body = JSON.stringify(value);
75221
- }
75222
- else {
75223
- ctx.body = '';
75224
- }
76480
+ ctx.body = JSON.stringify(value);
75225
76481
  }
75226
76482
  yield next();
75227
76483
  });
@@ -75256,13 +76512,7 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
75256
76512
  }
75257
76513
  }
75258
76514
  const value = yield dispatcher.invoke(data);
75259
- // event don't need response
75260
- if (dispatcher instanceof CardActionHandler) {
75261
- ctx.body = JSON.stringify(value);
75262
- }
75263
- else {
75264
- ctx.body = '';
75265
- }
76515
+ ctx.body = JSON.stringify(value);
75266
76516
  yield next();
75267
76517
  });
75268
76518