@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.
- package/es/index.js +1367 -117
- package/lib/index.js +1367 -117
- package/package.json +1 -1
- package/types/index.d.ts +42980 -2158
package/lib/index.js
CHANGED
|
@@ -272,7 +272,7 @@ const formatErrors = (e) => {
|
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
// auto gen
|
|
275
|
-
class Client$
|
|
275
|
+
class Client$11 {
|
|
276
276
|
constructor() {
|
|
277
277
|
/**
|
|
278
278
|
* 智能门禁
|
|
@@ -1329,11 +1329,11 @@ class Client$10 {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
// auto gen
|
|
1332
|
-
class Client
|
|
1332
|
+
class Client$10 extends Client$11 {
|
|
1333
1333
|
constructor() {
|
|
1334
1334
|
super(...arguments);
|
|
1335
1335
|
/**
|
|
1336
|
-
*
|
|
1336
|
+
* 管理后台-密码
|
|
1337
1337
|
*/
|
|
1338
1338
|
this.admin = {
|
|
1339
1339
|
/**
|
|
@@ -2425,7 +2425,7 @@ class Client$$ extends Client$10 {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
// auto gen
|
|
2428
|
-
class Client
|
|
2428
|
+
class Client$$ extends Client$10 {
|
|
2429
2429
|
constructor() {
|
|
2430
2430
|
super(...arguments);
|
|
2431
2431
|
/**
|
|
@@ -3125,7 +3125,7 @@ class Client$_ extends Client$$ {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
|
|
3127
3127
|
// auto gen
|
|
3128
|
-
class Client$
|
|
3128
|
+
class Client$_ extends Client$$ {
|
|
3129
3129
|
constructor() {
|
|
3130
3130
|
super(...arguments);
|
|
3131
3131
|
/**
|
|
@@ -3508,7 +3508,7 @@ class Client$Z extends Client$_ {
|
|
|
3508
3508
|
}),
|
|
3509
3509
|
},
|
|
3510
3510
|
/**
|
|
3511
|
-
*
|
|
3511
|
+
* 应用管理
|
|
3512
3512
|
*/
|
|
3513
3513
|
application: {
|
|
3514
3514
|
/**
|
|
@@ -4289,7 +4289,7 @@ class Client$Z extends Client$_ {
|
|
|
4289
4289
|
}),
|
|
4290
4290
|
},
|
|
4291
4291
|
/**
|
|
4292
|
-
*
|
|
4292
|
+
* 应用管理
|
|
4293
4293
|
*/
|
|
4294
4294
|
application: {
|
|
4295
4295
|
/**
|
|
@@ -4699,7 +4699,7 @@ class Client$Z extends Client$_ {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
|
|
4701
4701
|
// auto gen
|
|
4702
|
-
class Client$
|
|
4702
|
+
class Client$Z extends Client$_ {
|
|
4703
4703
|
constructor() {
|
|
4704
4704
|
super(...arguments);
|
|
4705
4705
|
/**
|
|
@@ -4707,7 +4707,7 @@ class Client$Y extends Client$Z {
|
|
|
4707
4707
|
*/
|
|
4708
4708
|
this.approval = {
|
|
4709
4709
|
/**
|
|
4710
|
-
*
|
|
4710
|
+
* 事件
|
|
4711
4711
|
*/
|
|
4712
4712
|
approval: {
|
|
4713
4713
|
/**
|
|
@@ -5504,7 +5504,7 @@ class Client$Y extends Client$Z {
|
|
|
5504
5504
|
}),
|
|
5505
5505
|
},
|
|
5506
5506
|
/**
|
|
5507
|
-
*
|
|
5507
|
+
* 原生审批任务
|
|
5508
5508
|
*/
|
|
5509
5509
|
task: {
|
|
5510
5510
|
/**
|
|
@@ -5710,7 +5710,7 @@ class Client$Y extends Client$Z {
|
|
|
5710
5710
|
},
|
|
5711
5711
|
v4: {
|
|
5712
5712
|
/**
|
|
5713
|
-
*
|
|
5713
|
+
* 事件
|
|
5714
5714
|
*/
|
|
5715
5715
|
approval: {
|
|
5716
5716
|
/**
|
|
@@ -6515,7 +6515,7 @@ class Client$Y extends Client$Z {
|
|
|
6515
6515
|
}),
|
|
6516
6516
|
},
|
|
6517
6517
|
/**
|
|
6518
|
-
*
|
|
6518
|
+
* 原生审批任务
|
|
6519
6519
|
*/
|
|
6520
6520
|
task: {
|
|
6521
6521
|
/**
|
|
@@ -6727,7 +6727,7 @@ class Client$Y extends Client$Z {
|
|
|
6727
6727
|
}
|
|
6728
6728
|
|
|
6729
6729
|
// auto gen
|
|
6730
|
-
class Client$
|
|
6730
|
+
class Client$Y extends Client$Z {
|
|
6731
6731
|
constructor() {
|
|
6732
6732
|
super(...arguments);
|
|
6733
6733
|
/**
|
|
@@ -9135,7 +9135,7 @@ class Client$X extends Client$Y {
|
|
|
9135
9135
|
}
|
|
9136
9136
|
|
|
9137
9137
|
// auto gen
|
|
9138
|
-
class Client$
|
|
9138
|
+
class Client$X extends Client$Y {
|
|
9139
9139
|
constructor() {
|
|
9140
9140
|
super(...arguments);
|
|
9141
9141
|
/**
|
|
@@ -9389,7 +9389,7 @@ class Client$W extends Client$X {
|
|
|
9389
9389
|
}
|
|
9390
9390
|
|
|
9391
9391
|
// auto gen
|
|
9392
|
-
class Client$
|
|
9392
|
+
class Client$W extends Client$X {
|
|
9393
9393
|
constructor() {
|
|
9394
9394
|
super(...arguments);
|
|
9395
9395
|
/**
|
|
@@ -9663,7 +9663,7 @@ class Client$V extends Client$W {
|
|
|
9663
9663
|
}
|
|
9664
9664
|
|
|
9665
9665
|
// auto gen
|
|
9666
|
-
class Client$
|
|
9666
|
+
class Client$V extends Client$W {
|
|
9667
9667
|
constructor() {
|
|
9668
9668
|
super(...arguments);
|
|
9669
9669
|
/**
|
|
@@ -9674,7 +9674,7 @@ class Client$U extends Client$V {
|
|
|
9674
9674
|
}
|
|
9675
9675
|
|
|
9676
9676
|
// auto gen
|
|
9677
|
-
class Client$
|
|
9677
|
+
class Client$U extends Client$V {
|
|
9678
9678
|
constructor() {
|
|
9679
9679
|
super(...arguments);
|
|
9680
9680
|
/**
|
|
@@ -10752,7 +10752,7 @@ class Client$T extends Client$U {
|
|
|
10752
10752
|
}
|
|
10753
10753
|
|
|
10754
10754
|
// auto gen
|
|
10755
|
-
class Client$
|
|
10755
|
+
class Client$T extends Client$U {
|
|
10756
10756
|
constructor() {
|
|
10757
10757
|
super(...arguments);
|
|
10758
10758
|
/**
|
|
@@ -14264,7 +14264,7 @@ class Client$S extends Client$T {
|
|
|
14264
14264
|
}
|
|
14265
14265
|
|
|
14266
14266
|
// auto gen
|
|
14267
|
-
class Client$
|
|
14267
|
+
class Client$S extends Client$T {
|
|
14268
14268
|
constructor() {
|
|
14269
14269
|
super(...arguments);
|
|
14270
14270
|
/**
|
|
@@ -14448,7 +14448,7 @@ class Client$R extends Client$S {
|
|
|
14448
14448
|
}
|
|
14449
14449
|
|
|
14450
14450
|
// auto gen
|
|
14451
|
-
class Client$
|
|
14451
|
+
class Client$R extends Client$S {
|
|
14452
14452
|
constructor() {
|
|
14453
14453
|
super(...arguments);
|
|
14454
14454
|
/**
|
|
@@ -14545,7 +14545,7 @@ class Client$Q extends Client$R {
|
|
|
14545
14545
|
}
|
|
14546
14546
|
|
|
14547
14547
|
// auto gen
|
|
14548
|
-
class Client$
|
|
14548
|
+
class Client$Q extends Client$R {
|
|
14549
14549
|
constructor() {
|
|
14550
14550
|
super(...arguments);
|
|
14551
14551
|
/**
|
|
@@ -17284,6 +17284,260 @@ class Client$P extends Client$Q {
|
|
|
17284
17284
|
}
|
|
17285
17285
|
}
|
|
17286
17286
|
|
|
17287
|
+
// auto gen
|
|
17288
|
+
class Client$P extends Client$Q {
|
|
17289
|
+
constructor() {
|
|
17290
|
+
super(...arguments);
|
|
17291
|
+
/**
|
|
17292
|
+
|
|
17293
|
+
*/
|
|
17294
|
+
this.cardkit = {
|
|
17295
|
+
v1: {
|
|
17296
|
+
/**
|
|
17297
|
+
* card
|
|
17298
|
+
*/
|
|
17299
|
+
card: {
|
|
17300
|
+
/**
|
|
17301
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=batch_update&version=v1 click to debug }
|
|
17302
|
+
*
|
|
17303
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=cardkit&resource=card&version=v1 document }
|
|
17304
|
+
*
|
|
17305
|
+
* 按指定的多个操作批量局部更新卡片,支持更新卡片设置、添加组件、删除组件、更新组件
|
|
17306
|
+
*/
|
|
17307
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17308
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17309
|
+
return this.httpInstance
|
|
17310
|
+
.request({
|
|
17311
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`, path),
|
|
17312
|
+
method: "POST",
|
|
17313
|
+
data,
|
|
17314
|
+
params,
|
|
17315
|
+
headers,
|
|
17316
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17317
|
+
})
|
|
17318
|
+
.catch((e) => {
|
|
17319
|
+
this.logger.error(formatErrors(e));
|
|
17320
|
+
throw e;
|
|
17321
|
+
});
|
|
17322
|
+
}),
|
|
17323
|
+
/**
|
|
17324
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=create&version=v1 click to debug }
|
|
17325
|
+
*
|
|
17326
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card&version=v1 document }
|
|
17327
|
+
*
|
|
17328
|
+
* 创建卡片实例,成功后可通过发送消息等接口发送卡片实例
|
|
17329
|
+
*/
|
|
17330
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17331
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17332
|
+
return this.httpInstance
|
|
17333
|
+
.request({
|
|
17334
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards`, path),
|
|
17335
|
+
method: "POST",
|
|
17336
|
+
data,
|
|
17337
|
+
params,
|
|
17338
|
+
headers,
|
|
17339
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17340
|
+
})
|
|
17341
|
+
.catch((e) => {
|
|
17342
|
+
this.logger.error(formatErrors(e));
|
|
17343
|
+
throw e;
|
|
17344
|
+
});
|
|
17345
|
+
}),
|
|
17346
|
+
/**
|
|
17347
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=id_convert&version=v1 click to debug }
|
|
17348
|
+
*
|
|
17349
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=id_convert&project=cardkit&resource=card&version=v1 document }
|
|
17350
|
+
*
|
|
17351
|
+
* 获取消息 id 对应的卡片 id
|
|
17352
|
+
*/
|
|
17353
|
+
idConvert: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17354
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17355
|
+
return this.httpInstance
|
|
17356
|
+
.request({
|
|
17357
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`, path),
|
|
17358
|
+
method: "POST",
|
|
17359
|
+
data,
|
|
17360
|
+
params,
|
|
17361
|
+
headers,
|
|
17362
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17363
|
+
})
|
|
17364
|
+
.catch((e) => {
|
|
17365
|
+
this.logger.error(formatErrors(e));
|
|
17366
|
+
throw e;
|
|
17367
|
+
});
|
|
17368
|
+
}),
|
|
17369
|
+
/**
|
|
17370
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=settings&version=v1 click to debug }
|
|
17371
|
+
*
|
|
17372
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=settings&project=cardkit&resource=card&version=v1 document }
|
|
17373
|
+
*
|
|
17374
|
+
* 更新指定的卡片设置
|
|
17375
|
+
*/
|
|
17376
|
+
settings: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17377
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17378
|
+
return this.httpInstance
|
|
17379
|
+
.request({
|
|
17380
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`, path),
|
|
17381
|
+
method: "PATCH",
|
|
17382
|
+
data,
|
|
17383
|
+
params,
|
|
17384
|
+
headers,
|
|
17385
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17386
|
+
})
|
|
17387
|
+
.catch((e) => {
|
|
17388
|
+
this.logger.error(formatErrors(e));
|
|
17389
|
+
throw e;
|
|
17390
|
+
});
|
|
17391
|
+
}),
|
|
17392
|
+
/**
|
|
17393
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card&apiName=update&version=v1 click to debug }
|
|
17394
|
+
*
|
|
17395
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card&version=v1 document }
|
|
17396
|
+
*
|
|
17397
|
+
* 对卡片进行全量更新,即:以全新的卡片内容更新已有卡片
|
|
17398
|
+
*/
|
|
17399
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17400
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17401
|
+
return this.httpInstance
|
|
17402
|
+
.request({
|
|
17403
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`, path),
|
|
17404
|
+
method: "PUT",
|
|
17405
|
+
data,
|
|
17406
|
+
params,
|
|
17407
|
+
headers,
|
|
17408
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17409
|
+
})
|
|
17410
|
+
.catch((e) => {
|
|
17411
|
+
this.logger.error(formatErrors(e));
|
|
17412
|
+
throw e;
|
|
17413
|
+
});
|
|
17414
|
+
}),
|
|
17415
|
+
},
|
|
17416
|
+
/**
|
|
17417
|
+
* card.element
|
|
17418
|
+
*/
|
|
17419
|
+
cardElement: {
|
|
17420
|
+
/**
|
|
17421
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=content&version=v1 click to debug }
|
|
17422
|
+
*
|
|
17423
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=content&project=cardkit&resource=card.element&version=v1 document }
|
|
17424
|
+
*
|
|
17425
|
+
* 以传入的文本内容覆盖已有卡片组件内容,卡片将自动识别其中的增量变更内容,并以“打字机”效果输出。
|
|
17426
|
+
*/
|
|
17427
|
+
content: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17428
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17429
|
+
return this.httpInstance
|
|
17430
|
+
.request({
|
|
17431
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`, path),
|
|
17432
|
+
method: "PUT",
|
|
17433
|
+
data,
|
|
17434
|
+
params,
|
|
17435
|
+
headers,
|
|
17436
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17437
|
+
})
|
|
17438
|
+
.catch((e) => {
|
|
17439
|
+
this.logger.error(formatErrors(e));
|
|
17440
|
+
throw e;
|
|
17441
|
+
});
|
|
17442
|
+
}),
|
|
17443
|
+
/**
|
|
17444
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=create&version=v1 click to debug }
|
|
17445
|
+
*
|
|
17446
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=cardkit&resource=card.element&version=v1 document }
|
|
17447
|
+
*
|
|
17448
|
+
* 在卡片内指定位置添加组件
|
|
17449
|
+
*/
|
|
17450
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17451
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17452
|
+
return this.httpInstance
|
|
17453
|
+
.request({
|
|
17454
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`, path),
|
|
17455
|
+
method: "POST",
|
|
17456
|
+
data,
|
|
17457
|
+
params,
|
|
17458
|
+
headers,
|
|
17459
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17460
|
+
})
|
|
17461
|
+
.catch((e) => {
|
|
17462
|
+
this.logger.error(formatErrors(e));
|
|
17463
|
+
throw e;
|
|
17464
|
+
});
|
|
17465
|
+
}),
|
|
17466
|
+
/**
|
|
17467
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=delete&version=v1 click to debug }
|
|
17468
|
+
*
|
|
17469
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=cardkit&resource=card.element&version=v1 document }
|
|
17470
|
+
*
|
|
17471
|
+
* 删除卡片内的指定组件
|
|
17472
|
+
*/
|
|
17473
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17474
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17475
|
+
return this.httpInstance
|
|
17476
|
+
.request({
|
|
17477
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17478
|
+
method: "DELETE",
|
|
17479
|
+
data,
|
|
17480
|
+
params,
|
|
17481
|
+
headers,
|
|
17482
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17483
|
+
})
|
|
17484
|
+
.catch((e) => {
|
|
17485
|
+
this.logger.error(formatErrors(e));
|
|
17486
|
+
throw e;
|
|
17487
|
+
});
|
|
17488
|
+
}),
|
|
17489
|
+
/**
|
|
17490
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=patch&version=v1 click to debug }
|
|
17491
|
+
*
|
|
17492
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=cardkit&resource=card.element&version=v1 document }
|
|
17493
|
+
*
|
|
17494
|
+
* 以传入的配置覆盖指定组件的已有配置
|
|
17495
|
+
*/
|
|
17496
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17497
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17498
|
+
return this.httpInstance
|
|
17499
|
+
.request({
|
|
17500
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17501
|
+
method: "PATCH",
|
|
17502
|
+
data,
|
|
17503
|
+
params,
|
|
17504
|
+
headers,
|
|
17505
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17506
|
+
})
|
|
17507
|
+
.catch((e) => {
|
|
17508
|
+
this.logger.error(formatErrors(e));
|
|
17509
|
+
throw e;
|
|
17510
|
+
});
|
|
17511
|
+
}),
|
|
17512
|
+
/**
|
|
17513
|
+
* {@link https://open.feishu.cn/api-explorer?project=cardkit&resource=card.element&apiName=update&version=v1 click to debug }
|
|
17514
|
+
*
|
|
17515
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=cardkit&resource=card.element&version=v1 document }
|
|
17516
|
+
*
|
|
17517
|
+
* 以新组件全量替换更新指定组件
|
|
17518
|
+
*/
|
|
17519
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
17520
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
17521
|
+
return this.httpInstance
|
|
17522
|
+
.request({
|
|
17523
|
+
url: fillApiPath(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`, path),
|
|
17524
|
+
method: "PUT",
|
|
17525
|
+
data,
|
|
17526
|
+
params,
|
|
17527
|
+
headers,
|
|
17528
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
17529
|
+
})
|
|
17530
|
+
.catch((e) => {
|
|
17531
|
+
this.logger.error(formatErrors(e));
|
|
17532
|
+
throw e;
|
|
17533
|
+
});
|
|
17534
|
+
}),
|
|
17535
|
+
},
|
|
17536
|
+
},
|
|
17537
|
+
};
|
|
17538
|
+
}
|
|
17539
|
+
}
|
|
17540
|
+
|
|
17287
17541
|
// auto gen
|
|
17288
17542
|
class Client$O extends Client$P {
|
|
17289
17543
|
constructor() {
|
|
@@ -29740,6 +29994,79 @@ class Client$J extends Client$K {
|
|
|
29740
29994
|
throw e;
|
|
29741
29995
|
});
|
|
29742
29996
|
}),
|
|
29997
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29998
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29999
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30000
|
+
const res = yield this.httpInstance
|
|
30001
|
+
.request({
|
|
30002
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
30003
|
+
method: "GET",
|
|
30004
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
30005
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
30006
|
+
data,
|
|
30007
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
30008
|
+
arrayFormat: "repeat",
|
|
30009
|
+
}),
|
|
30010
|
+
})
|
|
30011
|
+
.catch((e) => {
|
|
30012
|
+
this.logger.error(formatErrors(e));
|
|
30013
|
+
});
|
|
30014
|
+
return res;
|
|
30015
|
+
});
|
|
30016
|
+
const Iterable = {
|
|
30017
|
+
[Symbol.asyncIterator]() {
|
|
30018
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30019
|
+
let hasMore = true;
|
|
30020
|
+
let pageToken;
|
|
30021
|
+
while (hasMore) {
|
|
30022
|
+
try {
|
|
30023
|
+
const res = yield __await(sendRequest({
|
|
30024
|
+
headers,
|
|
30025
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30026
|
+
data,
|
|
30027
|
+
}));
|
|
30028
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
30029
|
+
// @ts-ignore
|
|
30030
|
+
has_more,
|
|
30031
|
+
// @ts-ignore
|
|
30032
|
+
page_token,
|
|
30033
|
+
// @ts-ignore
|
|
30034
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30035
|
+
yield yield __await(rest);
|
|
30036
|
+
hasMore = Boolean(has_more);
|
|
30037
|
+
pageToken = page_token || next_page_token;
|
|
30038
|
+
}
|
|
30039
|
+
catch (e) {
|
|
30040
|
+
yield yield __await(null);
|
|
30041
|
+
break;
|
|
30042
|
+
}
|
|
30043
|
+
}
|
|
30044
|
+
});
|
|
30045
|
+
},
|
|
30046
|
+
};
|
|
30047
|
+
return Iterable;
|
|
30048
|
+
}),
|
|
30049
|
+
/**
|
|
30050
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=query_recent_change&version=v2 click to debug }
|
|
30051
|
+
*
|
|
30052
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=cost_center&version=v2 document }
|
|
30053
|
+
*/
|
|
30054
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30055
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30056
|
+
return this.httpInstance
|
|
30057
|
+
.request({
|
|
30058
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`, path),
|
|
30059
|
+
method: "GET",
|
|
30060
|
+
data,
|
|
30061
|
+
params,
|
|
30062
|
+
headers,
|
|
30063
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30064
|
+
})
|
|
30065
|
+
.catch((e) => {
|
|
30066
|
+
this.logger.error(formatErrors(e));
|
|
30067
|
+
throw e;
|
|
30068
|
+
});
|
|
30069
|
+
}),
|
|
29743
30070
|
/**
|
|
29744
30071
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=cost_center&apiName=search&version=v2 click to debug }
|
|
29745
30072
|
*
|
|
@@ -29953,6 +30280,81 @@ class Client$J extends Client$K {
|
|
|
29953
30280
|
throw e;
|
|
29954
30281
|
});
|
|
29955
30282
|
}),
|
|
30283
|
+
queryOperationLogsWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30284
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30285
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
30286
|
+
const res = yield this.httpInstance
|
|
30287
|
+
.request({
|
|
30288
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30289
|
+
method: "POST",
|
|
30290
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
30291
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
30292
|
+
data,
|
|
30293
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
30294
|
+
arrayFormat: "repeat",
|
|
30295
|
+
}),
|
|
30296
|
+
})
|
|
30297
|
+
.catch((e) => {
|
|
30298
|
+
this.logger.error(formatErrors(e));
|
|
30299
|
+
});
|
|
30300
|
+
return res;
|
|
30301
|
+
});
|
|
30302
|
+
const Iterable = {
|
|
30303
|
+
[Symbol.asyncIterator]() {
|
|
30304
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
30305
|
+
let hasMore = true;
|
|
30306
|
+
let pageToken;
|
|
30307
|
+
while (hasMore) {
|
|
30308
|
+
try {
|
|
30309
|
+
const res = yield __await(sendRequest({
|
|
30310
|
+
headers,
|
|
30311
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
30312
|
+
data,
|
|
30313
|
+
}));
|
|
30314
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
30315
|
+
// @ts-ignore
|
|
30316
|
+
has_more,
|
|
30317
|
+
// @ts-ignore
|
|
30318
|
+
page_token,
|
|
30319
|
+
// @ts-ignore
|
|
30320
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
30321
|
+
yield yield __await(rest);
|
|
30322
|
+
hasMore = Boolean(has_more);
|
|
30323
|
+
pageToken = page_token || next_page_token;
|
|
30324
|
+
}
|
|
30325
|
+
catch (e) {
|
|
30326
|
+
yield yield __await(null);
|
|
30327
|
+
break;
|
|
30328
|
+
}
|
|
30329
|
+
}
|
|
30330
|
+
});
|
|
30331
|
+
},
|
|
30332
|
+
};
|
|
30333
|
+
return Iterable;
|
|
30334
|
+
}),
|
|
30335
|
+
/**
|
|
30336
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_operation_logs&version=v2 click to debug }
|
|
30337
|
+
*
|
|
30338
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_operation_logs&project=corehr&resource=department&version=v2 document }
|
|
30339
|
+
*
|
|
30340
|
+
* 查询操作日志
|
|
30341
|
+
*/
|
|
30342
|
+
queryOperationLogs: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30343
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30344
|
+
return this.httpInstance
|
|
30345
|
+
.request({
|
|
30346
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`, path),
|
|
30347
|
+
method: "POST",
|
|
30348
|
+
data,
|
|
30349
|
+
params,
|
|
30350
|
+
headers,
|
|
30351
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30352
|
+
})
|
|
30353
|
+
.catch((e) => {
|
|
30354
|
+
this.logger.error(formatErrors(e));
|
|
30355
|
+
throw e;
|
|
30356
|
+
});
|
|
30357
|
+
}),
|
|
29956
30358
|
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
29957
30359
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
29958
30360
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30492,6 +30894,34 @@ class Client$J extends Client$K {
|
|
|
30492
30894
|
});
|
|
30493
30895
|
}),
|
|
30494
30896
|
},
|
|
30897
|
+
/**
|
|
30898
|
+
* enum
|
|
30899
|
+
*/
|
|
30900
|
+
enum: {
|
|
30901
|
+
/**
|
|
30902
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=enum&apiName=search&version=v2 click to debug }
|
|
30903
|
+
*
|
|
30904
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=enum&version=v2 document }
|
|
30905
|
+
*
|
|
30906
|
+
* 通过apiname批量获取枚举信息
|
|
30907
|
+
*/
|
|
30908
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
30909
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
30910
|
+
return this.httpInstance
|
|
30911
|
+
.request({
|
|
30912
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/enums/search`, path),
|
|
30913
|
+
method: "POST",
|
|
30914
|
+
data,
|
|
30915
|
+
params,
|
|
30916
|
+
headers,
|
|
30917
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
30918
|
+
})
|
|
30919
|
+
.catch((e) => {
|
|
30920
|
+
this.logger.error(formatErrors(e));
|
|
30921
|
+
throw e;
|
|
30922
|
+
});
|
|
30923
|
+
}),
|
|
30924
|
+
},
|
|
30495
30925
|
/**
|
|
30496
30926
|
* job
|
|
30497
30927
|
*/
|
|
@@ -30692,6 +31122,79 @@ class Client$J extends Client$K {
|
|
|
30692
31122
|
throw e;
|
|
30693
31123
|
});
|
|
30694
31124
|
}),
|
|
31125
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31126
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31127
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31128
|
+
const res = yield this.httpInstance
|
|
31129
|
+
.request({
|
|
31130
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31131
|
+
method: "GET",
|
|
31132
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31133
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31134
|
+
data,
|
|
31135
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31136
|
+
arrayFormat: "repeat",
|
|
31137
|
+
}),
|
|
31138
|
+
})
|
|
31139
|
+
.catch((e) => {
|
|
31140
|
+
this.logger.error(formatErrors(e));
|
|
31141
|
+
});
|
|
31142
|
+
return res;
|
|
31143
|
+
});
|
|
31144
|
+
const Iterable = {
|
|
31145
|
+
[Symbol.asyncIterator]() {
|
|
31146
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31147
|
+
let hasMore = true;
|
|
31148
|
+
let pageToken;
|
|
31149
|
+
while (hasMore) {
|
|
31150
|
+
try {
|
|
31151
|
+
const res = yield __await(sendRequest({
|
|
31152
|
+
headers,
|
|
31153
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31154
|
+
data,
|
|
31155
|
+
}));
|
|
31156
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31157
|
+
// @ts-ignore
|
|
31158
|
+
has_more,
|
|
31159
|
+
// @ts-ignore
|
|
31160
|
+
page_token,
|
|
31161
|
+
// @ts-ignore
|
|
31162
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31163
|
+
yield yield __await(rest);
|
|
31164
|
+
hasMore = Boolean(has_more);
|
|
31165
|
+
pageToken = page_token || next_page_token;
|
|
31166
|
+
}
|
|
31167
|
+
catch (e) {
|
|
31168
|
+
yield yield __await(null);
|
|
31169
|
+
break;
|
|
31170
|
+
}
|
|
31171
|
+
}
|
|
31172
|
+
});
|
|
31173
|
+
},
|
|
31174
|
+
};
|
|
31175
|
+
return Iterable;
|
|
31176
|
+
}),
|
|
31177
|
+
/**
|
|
31178
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_family&apiName=query_recent_change&version=v2 click to debug }
|
|
31179
|
+
*
|
|
31180
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_family&version=v2 document }
|
|
31181
|
+
*/
|
|
31182
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31183
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31184
|
+
return this.httpInstance
|
|
31185
|
+
.request({
|
|
31186
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`, path),
|
|
31187
|
+
method: "GET",
|
|
31188
|
+
data,
|
|
31189
|
+
params,
|
|
31190
|
+
headers,
|
|
31191
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31192
|
+
})
|
|
31193
|
+
.catch((e) => {
|
|
31194
|
+
this.logger.error(formatErrors(e));
|
|
31195
|
+
throw e;
|
|
31196
|
+
});
|
|
31197
|
+
}),
|
|
30695
31198
|
},
|
|
30696
31199
|
/**
|
|
30697
31200
|
* job_grade
|
|
@@ -30789,6 +31292,79 @@ class Client$J extends Client$K {
|
|
|
30789
31292
|
throw e;
|
|
30790
31293
|
});
|
|
30791
31294
|
}),
|
|
31295
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31296
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31297
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31298
|
+
const res = yield this.httpInstance
|
|
31299
|
+
.request({
|
|
31300
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31301
|
+
method: "GET",
|
|
31302
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31303
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31304
|
+
data,
|
|
31305
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31306
|
+
arrayFormat: "repeat",
|
|
31307
|
+
}),
|
|
31308
|
+
})
|
|
31309
|
+
.catch((e) => {
|
|
31310
|
+
this.logger.error(formatErrors(e));
|
|
31311
|
+
});
|
|
31312
|
+
return res;
|
|
31313
|
+
});
|
|
31314
|
+
const Iterable = {
|
|
31315
|
+
[Symbol.asyncIterator]() {
|
|
31316
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31317
|
+
let hasMore = true;
|
|
31318
|
+
let pageToken;
|
|
31319
|
+
while (hasMore) {
|
|
31320
|
+
try {
|
|
31321
|
+
const res = yield __await(sendRequest({
|
|
31322
|
+
headers,
|
|
31323
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31324
|
+
data,
|
|
31325
|
+
}));
|
|
31326
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31327
|
+
// @ts-ignore
|
|
31328
|
+
has_more,
|
|
31329
|
+
// @ts-ignore
|
|
31330
|
+
page_token,
|
|
31331
|
+
// @ts-ignore
|
|
31332
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31333
|
+
yield yield __await(rest);
|
|
31334
|
+
hasMore = Boolean(has_more);
|
|
31335
|
+
pageToken = page_token || next_page_token;
|
|
31336
|
+
}
|
|
31337
|
+
catch (e) {
|
|
31338
|
+
yield yield __await(null);
|
|
31339
|
+
break;
|
|
31340
|
+
}
|
|
31341
|
+
}
|
|
31342
|
+
});
|
|
31343
|
+
},
|
|
31344
|
+
};
|
|
31345
|
+
return Iterable;
|
|
31346
|
+
}),
|
|
31347
|
+
/**
|
|
31348
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query_recent_change&version=v2 click to debug }
|
|
31349
|
+
*
|
|
31350
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_grade&version=v2 document }
|
|
31351
|
+
*/
|
|
31352
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31353
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31354
|
+
return this.httpInstance
|
|
31355
|
+
.request({
|
|
31356
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`, path),
|
|
31357
|
+
method: "GET",
|
|
31358
|
+
data,
|
|
31359
|
+
params,
|
|
31360
|
+
headers,
|
|
31361
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31362
|
+
})
|
|
31363
|
+
.catch((e) => {
|
|
31364
|
+
this.logger.error(formatErrors(e));
|
|
31365
|
+
throw e;
|
|
31366
|
+
});
|
|
31367
|
+
}),
|
|
30792
31368
|
},
|
|
30793
31369
|
/**
|
|
30794
31370
|
* job_level
|
|
@@ -30817,6 +31393,79 @@ class Client$J extends Client$K {
|
|
|
30817
31393
|
throw e;
|
|
30818
31394
|
});
|
|
30819
31395
|
}),
|
|
31396
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31397
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31398
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31399
|
+
const res = yield this.httpInstance
|
|
31400
|
+
.request({
|
|
31401
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31402
|
+
method: "GET",
|
|
31403
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31404
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31405
|
+
data,
|
|
31406
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31407
|
+
arrayFormat: "repeat",
|
|
31408
|
+
}),
|
|
31409
|
+
})
|
|
31410
|
+
.catch((e) => {
|
|
31411
|
+
this.logger.error(formatErrors(e));
|
|
31412
|
+
});
|
|
31413
|
+
return res;
|
|
31414
|
+
});
|
|
31415
|
+
const Iterable = {
|
|
31416
|
+
[Symbol.asyncIterator]() {
|
|
31417
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31418
|
+
let hasMore = true;
|
|
31419
|
+
let pageToken;
|
|
31420
|
+
while (hasMore) {
|
|
31421
|
+
try {
|
|
31422
|
+
const res = yield __await(sendRequest({
|
|
31423
|
+
headers,
|
|
31424
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31425
|
+
data,
|
|
31426
|
+
}));
|
|
31427
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31428
|
+
// @ts-ignore
|
|
31429
|
+
has_more,
|
|
31430
|
+
// @ts-ignore
|
|
31431
|
+
page_token,
|
|
31432
|
+
// @ts-ignore
|
|
31433
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31434
|
+
yield yield __await(rest);
|
|
31435
|
+
hasMore = Boolean(has_more);
|
|
31436
|
+
pageToken = page_token || next_page_token;
|
|
31437
|
+
}
|
|
31438
|
+
catch (e) {
|
|
31439
|
+
yield yield __await(null);
|
|
31440
|
+
break;
|
|
31441
|
+
}
|
|
31442
|
+
}
|
|
31443
|
+
});
|
|
31444
|
+
},
|
|
31445
|
+
};
|
|
31446
|
+
return Iterable;
|
|
31447
|
+
}),
|
|
31448
|
+
/**
|
|
31449
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_level&apiName=query_recent_change&version=v2 click to debug }
|
|
31450
|
+
*
|
|
31451
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=job_level&version=v2 document }
|
|
31452
|
+
*/
|
|
31453
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31454
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31455
|
+
return this.httpInstance
|
|
31456
|
+
.request({
|
|
31457
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`, path),
|
|
31458
|
+
method: "GET",
|
|
31459
|
+
data,
|
|
31460
|
+
params,
|
|
31461
|
+
headers,
|
|
31462
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31463
|
+
})
|
|
31464
|
+
.catch((e) => {
|
|
31465
|
+
this.logger.error(formatErrors(e));
|
|
31466
|
+
throw e;
|
|
31467
|
+
});
|
|
31468
|
+
}),
|
|
30820
31469
|
},
|
|
30821
31470
|
/**
|
|
30822
31471
|
* location
|
|
@@ -30891,6 +31540,79 @@ class Client$J extends Client$K {
|
|
|
30891
31540
|
throw e;
|
|
30892
31541
|
});
|
|
30893
31542
|
}),
|
|
31543
|
+
queryRecentChangeWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31544
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31545
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31546
|
+
const res = yield this.httpInstance
|
|
31547
|
+
.request({
|
|
31548
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31549
|
+
method: "GET",
|
|
31550
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31551
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31552
|
+
data,
|
|
31553
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
31554
|
+
arrayFormat: "repeat",
|
|
31555
|
+
}),
|
|
31556
|
+
})
|
|
31557
|
+
.catch((e) => {
|
|
31558
|
+
this.logger.error(formatErrors(e));
|
|
31559
|
+
});
|
|
31560
|
+
return res;
|
|
31561
|
+
});
|
|
31562
|
+
const Iterable = {
|
|
31563
|
+
[Symbol.asyncIterator]() {
|
|
31564
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
31565
|
+
let hasMore = true;
|
|
31566
|
+
let pageToken;
|
|
31567
|
+
while (hasMore) {
|
|
31568
|
+
try {
|
|
31569
|
+
const res = yield __await(sendRequest({
|
|
31570
|
+
headers,
|
|
31571
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31572
|
+
data,
|
|
31573
|
+
}));
|
|
31574
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
31575
|
+
// @ts-ignore
|
|
31576
|
+
has_more,
|
|
31577
|
+
// @ts-ignore
|
|
31578
|
+
page_token,
|
|
31579
|
+
// @ts-ignore
|
|
31580
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31581
|
+
yield yield __await(rest);
|
|
31582
|
+
hasMore = Boolean(has_more);
|
|
31583
|
+
pageToken = page_token || next_page_token;
|
|
31584
|
+
}
|
|
31585
|
+
catch (e) {
|
|
31586
|
+
yield yield __await(null);
|
|
31587
|
+
break;
|
|
31588
|
+
}
|
|
31589
|
+
}
|
|
31590
|
+
});
|
|
31591
|
+
},
|
|
31592
|
+
};
|
|
31593
|
+
return Iterable;
|
|
31594
|
+
}),
|
|
31595
|
+
/**
|
|
31596
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=location&apiName=query_recent_change&version=v2 click to debug }
|
|
31597
|
+
*
|
|
31598
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_recent_change&project=corehr&resource=location&version=v2 document }
|
|
31599
|
+
*/
|
|
31600
|
+
queryRecentChange: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31601
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31602
|
+
return this.httpInstance
|
|
31603
|
+
.request({
|
|
31604
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`, path),
|
|
31605
|
+
method: "GET",
|
|
31606
|
+
data,
|
|
31607
|
+
params,
|
|
31608
|
+
headers,
|
|
31609
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31610
|
+
})
|
|
31611
|
+
.catch((e) => {
|
|
31612
|
+
this.logger.error(formatErrors(e));
|
|
31613
|
+
throw e;
|
|
31614
|
+
});
|
|
31615
|
+
}),
|
|
30894
31616
|
},
|
|
30895
31617
|
/**
|
|
30896
31618
|
* location.address
|
|
@@ -31238,17 +31960,113 @@ class Client$J extends Client$K {
|
|
|
31238
31960
|
return Iterable;
|
|
31239
31961
|
}),
|
|
31240
31962
|
/**
|
|
31241
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=query&version=v2 click to debug }
|
|
31963
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=query&version=v2 click to debug }
|
|
31964
|
+
*
|
|
31965
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=pre_hire&version=v2 document }
|
|
31966
|
+
*
|
|
31967
|
+
* 批量查询待入职数据
|
|
31968
|
+
*/
|
|
31969
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31970
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31971
|
+
return this.httpInstance
|
|
31972
|
+
.request({
|
|
31973
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/query`, path),
|
|
31974
|
+
method: "POST",
|
|
31975
|
+
data,
|
|
31976
|
+
params,
|
|
31977
|
+
headers,
|
|
31978
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
31979
|
+
})
|
|
31980
|
+
.catch((e) => {
|
|
31981
|
+
this.logger.error(formatErrors(e));
|
|
31982
|
+
throw e;
|
|
31983
|
+
});
|
|
31984
|
+
}),
|
|
31985
|
+
/**
|
|
31986
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=restore_flow_instance&version=v2 click to debug }
|
|
31987
|
+
*
|
|
31988
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=restore_flow_instance&project=corehr&resource=pre_hire&version=v2 document }
|
|
31989
|
+
*/
|
|
31990
|
+
restoreFlowInstance: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31991
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31992
|
+
return this.httpInstance
|
|
31993
|
+
.request({
|
|
31994
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`, path),
|
|
31995
|
+
method: "POST",
|
|
31996
|
+
data,
|
|
31997
|
+
params,
|
|
31998
|
+
headers,
|
|
31999
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32000
|
+
})
|
|
32001
|
+
.catch((e) => {
|
|
32002
|
+
this.logger.error(formatErrors(e));
|
|
32003
|
+
throw e;
|
|
32004
|
+
});
|
|
32005
|
+
}),
|
|
32006
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32007
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32008
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
32009
|
+
const res = yield this.httpInstance
|
|
32010
|
+
.request({
|
|
32011
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
|
|
32012
|
+
method: "POST",
|
|
32013
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
32014
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
32015
|
+
data,
|
|
32016
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
32017
|
+
arrayFormat: "repeat",
|
|
32018
|
+
}),
|
|
32019
|
+
})
|
|
32020
|
+
.catch((e) => {
|
|
32021
|
+
this.logger.error(formatErrors(e));
|
|
32022
|
+
});
|
|
32023
|
+
return res;
|
|
32024
|
+
});
|
|
32025
|
+
const Iterable = {
|
|
32026
|
+
[Symbol.asyncIterator]() {
|
|
32027
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
32028
|
+
let hasMore = true;
|
|
32029
|
+
let pageToken;
|
|
32030
|
+
while (hasMore) {
|
|
32031
|
+
try {
|
|
32032
|
+
const res = yield __await(sendRequest({
|
|
32033
|
+
headers,
|
|
32034
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
32035
|
+
data,
|
|
32036
|
+
}));
|
|
32037
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
32038
|
+
// @ts-ignore
|
|
32039
|
+
has_more,
|
|
32040
|
+
// @ts-ignore
|
|
32041
|
+
page_token,
|
|
32042
|
+
// @ts-ignore
|
|
32043
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
32044
|
+
yield yield __await(rest);
|
|
32045
|
+
hasMore = Boolean(has_more);
|
|
32046
|
+
pageToken = page_token || next_page_token;
|
|
32047
|
+
}
|
|
32048
|
+
catch (e) {
|
|
32049
|
+
yield yield __await(null);
|
|
32050
|
+
break;
|
|
32051
|
+
}
|
|
32052
|
+
}
|
|
32053
|
+
});
|
|
32054
|
+
},
|
|
32055
|
+
};
|
|
32056
|
+
return Iterable;
|
|
32057
|
+
}),
|
|
32058
|
+
/**
|
|
32059
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=search&version=v2 click to debug }
|
|
31242
32060
|
*
|
|
31243
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
32061
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=search&project=corehr&resource=pre_hire&version=v2 document }
|
|
31244
32062
|
*
|
|
31245
|
-
*
|
|
32063
|
+
* 根据部门 ID,上级部门查询部门列表
|
|
31246
32064
|
*/
|
|
31247
|
-
|
|
32065
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31248
32066
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31249
32067
|
return this.httpInstance
|
|
31250
32068
|
.request({
|
|
31251
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/
|
|
32069
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
|
|
31252
32070
|
method: "POST",
|
|
31253
32071
|
data,
|
|
31254
32072
|
params,
|
|
@@ -31260,70 +32078,18 @@ class Client$J extends Client$K {
|
|
|
31260
32078
|
throw e;
|
|
31261
32079
|
});
|
|
31262
32080
|
}),
|
|
31263
|
-
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31264
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31265
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
31266
|
-
const res = yield this.httpInstance
|
|
31267
|
-
.request({
|
|
31268
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/search`, path),
|
|
31269
|
-
method: "POST",
|
|
31270
|
-
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
31271
|
-
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
31272
|
-
data,
|
|
31273
|
-
paramsSerializer: (params) => qs.stringify(params, {
|
|
31274
|
-
arrayFormat: "repeat",
|
|
31275
|
-
}),
|
|
31276
|
-
})
|
|
31277
|
-
.catch((e) => {
|
|
31278
|
-
this.logger.error(formatErrors(e));
|
|
31279
|
-
});
|
|
31280
|
-
return res;
|
|
31281
|
-
});
|
|
31282
|
-
const Iterable = {
|
|
31283
|
-
[Symbol.asyncIterator]() {
|
|
31284
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
31285
|
-
let hasMore = true;
|
|
31286
|
-
let pageToken;
|
|
31287
|
-
while (hasMore) {
|
|
31288
|
-
try {
|
|
31289
|
-
const res = yield __await(sendRequest({
|
|
31290
|
-
headers,
|
|
31291
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
31292
|
-
data,
|
|
31293
|
-
}));
|
|
31294
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
31295
|
-
// @ts-ignore
|
|
31296
|
-
has_more,
|
|
31297
|
-
// @ts-ignore
|
|
31298
|
-
page_token,
|
|
31299
|
-
// @ts-ignore
|
|
31300
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
31301
|
-
yield yield __await(rest);
|
|
31302
|
-
hasMore = Boolean(has_more);
|
|
31303
|
-
pageToken = page_token || next_page_token;
|
|
31304
|
-
}
|
|
31305
|
-
catch (e) {
|
|
31306
|
-
yield yield __await(null);
|
|
31307
|
-
break;
|
|
31308
|
-
}
|
|
31309
|
-
}
|
|
31310
|
-
});
|
|
31311
|
-
},
|
|
31312
|
-
};
|
|
31313
|
-
return Iterable;
|
|
31314
|
-
}),
|
|
31315
32081
|
/**
|
|
31316
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=
|
|
32082
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=transit_task&version=v2 click to debug }
|
|
31317
32083
|
*
|
|
31318
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
32084
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=transit_task&project=corehr&resource=pre_hire&version=v2 document }
|
|
31319
32085
|
*
|
|
31320
|
-
*
|
|
32086
|
+
* 任务流转
|
|
31321
32087
|
*/
|
|
31322
|
-
|
|
32088
|
+
transitTask: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31323
32089
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31324
32090
|
return this.httpInstance
|
|
31325
32091
|
.request({
|
|
31326
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/
|
|
32092
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`, path),
|
|
31327
32093
|
method: "POST",
|
|
31328
32094
|
data,
|
|
31329
32095
|
params,
|
|
@@ -31336,17 +32102,15 @@ class Client$J extends Client$K {
|
|
|
31336
32102
|
});
|
|
31337
32103
|
}),
|
|
31338
32104
|
/**
|
|
31339
|
-
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=
|
|
31340
|
-
*
|
|
31341
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=transit_task&project=corehr&resource=pre_hire&version=v2 document }
|
|
32105
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=pre_hire&apiName=withdraw_onboarding&version=v2 click to debug }
|
|
31342
32106
|
*
|
|
31343
|
-
*
|
|
32107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=withdraw_onboarding&project=corehr&resource=pre_hire&version=v2 document }
|
|
31344
32108
|
*/
|
|
31345
|
-
|
|
32109
|
+
withdrawOnboarding: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
31346
32110
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
31347
32111
|
return this.httpInstance
|
|
31348
32112
|
.request({
|
|
31349
|
-
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires
|
|
32113
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`, path),
|
|
31350
32114
|
method: "POST",
|
|
31351
32115
|
data,
|
|
31352
32116
|
params,
|
|
@@ -32595,6 +33359,218 @@ class Client$F extends Client$G {
|
|
|
32595
33359
|
* 云文档-文档
|
|
32596
33360
|
*/
|
|
32597
33361
|
this.docx = {
|
|
33362
|
+
/**
|
|
33363
|
+
* chat.announcement.block
|
|
33364
|
+
*/
|
|
33365
|
+
chatAnnouncementBlock: {
|
|
33366
|
+
/**
|
|
33367
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
33368
|
+
*
|
|
33369
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33370
|
+
*/
|
|
33371
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33372
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33373
|
+
return this.httpInstance
|
|
33374
|
+
.request({
|
|
33375
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
33376
|
+
method: "PATCH",
|
|
33377
|
+
data,
|
|
33378
|
+
params,
|
|
33379
|
+
headers,
|
|
33380
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33381
|
+
})
|
|
33382
|
+
.catch((e) => {
|
|
33383
|
+
this.logger.error(formatErrors(e));
|
|
33384
|
+
throw e;
|
|
33385
|
+
});
|
|
33386
|
+
}),
|
|
33387
|
+
/**
|
|
33388
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
33389
|
+
*
|
|
33390
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33391
|
+
*/
|
|
33392
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33393
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33394
|
+
return this.httpInstance
|
|
33395
|
+
.request({
|
|
33396
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
33397
|
+
method: "GET",
|
|
33398
|
+
data,
|
|
33399
|
+
params,
|
|
33400
|
+
headers,
|
|
33401
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33402
|
+
})
|
|
33403
|
+
.catch((e) => {
|
|
33404
|
+
this.logger.error(formatErrors(e));
|
|
33405
|
+
throw e;
|
|
33406
|
+
});
|
|
33407
|
+
}),
|
|
33408
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33409
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33410
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
33411
|
+
const res = yield this.httpInstance
|
|
33412
|
+
.request({
|
|
33413
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33414
|
+
method: "GET",
|
|
33415
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
33416
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
33417
|
+
data,
|
|
33418
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33419
|
+
})
|
|
33420
|
+
.catch((e) => {
|
|
33421
|
+
this.logger.error(formatErrors(e));
|
|
33422
|
+
});
|
|
33423
|
+
return res;
|
|
33424
|
+
});
|
|
33425
|
+
const Iterable = {
|
|
33426
|
+
[Symbol.asyncIterator]() {
|
|
33427
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
33428
|
+
let hasMore = true;
|
|
33429
|
+
let pageToken;
|
|
33430
|
+
while (hasMore) {
|
|
33431
|
+
try {
|
|
33432
|
+
const res = yield __await(sendRequest({
|
|
33433
|
+
headers,
|
|
33434
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
33435
|
+
data,
|
|
33436
|
+
}));
|
|
33437
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
33438
|
+
// @ts-ignore
|
|
33439
|
+
has_more,
|
|
33440
|
+
// @ts-ignore
|
|
33441
|
+
page_token,
|
|
33442
|
+
// @ts-ignore
|
|
33443
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
33444
|
+
yield yield __await(rest);
|
|
33445
|
+
hasMore = Boolean(has_more);
|
|
33446
|
+
pageToken = page_token || next_page_token;
|
|
33447
|
+
}
|
|
33448
|
+
catch (e) {
|
|
33449
|
+
yield yield __await(null);
|
|
33450
|
+
break;
|
|
33451
|
+
}
|
|
33452
|
+
}
|
|
33453
|
+
});
|
|
33454
|
+
},
|
|
33455
|
+
};
|
|
33456
|
+
return Iterable;
|
|
33457
|
+
}),
|
|
33458
|
+
/**
|
|
33459
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
33460
|
+
*
|
|
33461
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
33462
|
+
*/
|
|
33463
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33465
|
+
return this.httpInstance
|
|
33466
|
+
.request({
|
|
33467
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
33468
|
+
method: "GET",
|
|
33469
|
+
data,
|
|
33470
|
+
params,
|
|
33471
|
+
headers,
|
|
33472
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33473
|
+
})
|
|
33474
|
+
.catch((e) => {
|
|
33475
|
+
this.logger.error(formatErrors(e));
|
|
33476
|
+
throw e;
|
|
33477
|
+
});
|
|
33478
|
+
}),
|
|
33479
|
+
},
|
|
33480
|
+
/**
|
|
33481
|
+
* chat.announcement.block.children
|
|
33482
|
+
*/
|
|
33483
|
+
chatAnnouncementBlockChildren: {
|
|
33484
|
+
/**
|
|
33485
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
33486
|
+
*
|
|
33487
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33488
|
+
*/
|
|
33489
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33490
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33491
|
+
return this.httpInstance
|
|
33492
|
+
.request({
|
|
33493
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
33494
|
+
method: "DELETE",
|
|
33495
|
+
data,
|
|
33496
|
+
params,
|
|
33497
|
+
headers,
|
|
33498
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33499
|
+
})
|
|
33500
|
+
.catch((e) => {
|
|
33501
|
+
this.logger.error(formatErrors(e));
|
|
33502
|
+
throw e;
|
|
33503
|
+
});
|
|
33504
|
+
}),
|
|
33505
|
+
/**
|
|
33506
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
33507
|
+
*
|
|
33508
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33509
|
+
*/
|
|
33510
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33511
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33512
|
+
return this.httpInstance
|
|
33513
|
+
.request({
|
|
33514
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33515
|
+
method: "POST",
|
|
33516
|
+
data,
|
|
33517
|
+
params,
|
|
33518
|
+
headers,
|
|
33519
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33520
|
+
})
|
|
33521
|
+
.catch((e) => {
|
|
33522
|
+
this.logger.error(formatErrors(e));
|
|
33523
|
+
throw e;
|
|
33524
|
+
});
|
|
33525
|
+
}),
|
|
33526
|
+
/**
|
|
33527
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
33528
|
+
*
|
|
33529
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
33530
|
+
*/
|
|
33531
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33532
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33533
|
+
return this.httpInstance
|
|
33534
|
+
.request({
|
|
33535
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
33536
|
+
method: "GET",
|
|
33537
|
+
data,
|
|
33538
|
+
params,
|
|
33539
|
+
headers,
|
|
33540
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33541
|
+
})
|
|
33542
|
+
.catch((e) => {
|
|
33543
|
+
this.logger.error(formatErrors(e));
|
|
33544
|
+
throw e;
|
|
33545
|
+
});
|
|
33546
|
+
}),
|
|
33547
|
+
},
|
|
33548
|
+
/**
|
|
33549
|
+
* chat.announcement
|
|
33550
|
+
*/
|
|
33551
|
+
chatAnnouncement: {
|
|
33552
|
+
/**
|
|
33553
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
33554
|
+
*
|
|
33555
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
33556
|
+
*/
|
|
33557
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
33558
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
33559
|
+
return this.httpInstance
|
|
33560
|
+
.request({
|
|
33561
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
33562
|
+
method: "GET",
|
|
33563
|
+
data,
|
|
33564
|
+
params,
|
|
33565
|
+
headers,
|
|
33566
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
33567
|
+
})
|
|
33568
|
+
.catch((e) => {
|
|
33569
|
+
this.logger.error(formatErrors(e));
|
|
33570
|
+
throw e;
|
|
33571
|
+
});
|
|
33572
|
+
}),
|
|
33573
|
+
},
|
|
32598
33574
|
/**
|
|
32599
33575
|
* 块
|
|
32600
33576
|
*/
|
|
@@ -33027,6 +34003,220 @@ class Client$F extends Client$G {
|
|
|
33027
34003
|
}),
|
|
33028
34004
|
},
|
|
33029
34005
|
v1: {
|
|
34006
|
+
/**
|
|
34007
|
+
* chat.announcement.block
|
|
34008
|
+
*/
|
|
34009
|
+
chatAnnouncementBlock: {
|
|
34010
|
+
/**
|
|
34011
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=batch_update&version=v1 click to debug }
|
|
34012
|
+
*
|
|
34013
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_update&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34014
|
+
*/
|
|
34015
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34016
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34017
|
+
return this.httpInstance
|
|
34018
|
+
.request({
|
|
34019
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`, path),
|
|
34020
|
+
method: "PATCH",
|
|
34021
|
+
data,
|
|
34022
|
+
params,
|
|
34023
|
+
headers,
|
|
34024
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34025
|
+
})
|
|
34026
|
+
.catch((e) => {
|
|
34027
|
+
this.logger.error(formatErrors(e));
|
|
34028
|
+
throw e;
|
|
34029
|
+
});
|
|
34030
|
+
}),
|
|
34031
|
+
/**
|
|
34032
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=get&version=v1 click to debug }
|
|
34033
|
+
*
|
|
34034
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34035
|
+
*/
|
|
34036
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34037
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34038
|
+
return this.httpInstance
|
|
34039
|
+
.request({
|
|
34040
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`, path),
|
|
34041
|
+
method: "GET",
|
|
34042
|
+
data,
|
|
34043
|
+
params,
|
|
34044
|
+
headers,
|
|
34045
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34046
|
+
})
|
|
34047
|
+
.catch((e) => {
|
|
34048
|
+
this.logger.error(formatErrors(e));
|
|
34049
|
+
throw e;
|
|
34050
|
+
});
|
|
34051
|
+
}),
|
|
34052
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34053
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34054
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
34055
|
+
const res = yield this.httpInstance
|
|
34056
|
+
.request({
|
|
34057
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34058
|
+
method: "GET",
|
|
34059
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
34060
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
34061
|
+
data,
|
|
34062
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
34063
|
+
arrayFormat: "repeat",
|
|
34064
|
+
}),
|
|
34065
|
+
})
|
|
34066
|
+
.catch((e) => {
|
|
34067
|
+
this.logger.error(formatErrors(e));
|
|
34068
|
+
});
|
|
34069
|
+
return res;
|
|
34070
|
+
});
|
|
34071
|
+
const Iterable = {
|
|
34072
|
+
[Symbol.asyncIterator]() {
|
|
34073
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
34074
|
+
let hasMore = true;
|
|
34075
|
+
let pageToken;
|
|
34076
|
+
while (hasMore) {
|
|
34077
|
+
try {
|
|
34078
|
+
const res = yield __await(sendRequest({
|
|
34079
|
+
headers,
|
|
34080
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
34081
|
+
data,
|
|
34082
|
+
}));
|
|
34083
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
34084
|
+
// @ts-ignore
|
|
34085
|
+
has_more,
|
|
34086
|
+
// @ts-ignore
|
|
34087
|
+
page_token,
|
|
34088
|
+
// @ts-ignore
|
|
34089
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
34090
|
+
yield yield __await(rest);
|
|
34091
|
+
hasMore = Boolean(has_more);
|
|
34092
|
+
pageToken = page_token || next_page_token;
|
|
34093
|
+
}
|
|
34094
|
+
catch (e) {
|
|
34095
|
+
yield yield __await(null);
|
|
34096
|
+
break;
|
|
34097
|
+
}
|
|
34098
|
+
}
|
|
34099
|
+
});
|
|
34100
|
+
},
|
|
34101
|
+
};
|
|
34102
|
+
return Iterable;
|
|
34103
|
+
}),
|
|
34104
|
+
/**
|
|
34105
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block&apiName=list&version=v1 click to debug }
|
|
34106
|
+
*
|
|
34107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=docx&resource=chat.announcement.block&version=v1 document }
|
|
34108
|
+
*/
|
|
34109
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34111
|
+
return this.httpInstance
|
|
34112
|
+
.request({
|
|
34113
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`, path),
|
|
34114
|
+
method: "GET",
|
|
34115
|
+
data,
|
|
34116
|
+
params,
|
|
34117
|
+
headers,
|
|
34118
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34119
|
+
})
|
|
34120
|
+
.catch((e) => {
|
|
34121
|
+
this.logger.error(formatErrors(e));
|
|
34122
|
+
throw e;
|
|
34123
|
+
});
|
|
34124
|
+
}),
|
|
34125
|
+
},
|
|
34126
|
+
/**
|
|
34127
|
+
* chat.announcement.block.children
|
|
34128
|
+
*/
|
|
34129
|
+
chatAnnouncementBlockChildren: {
|
|
34130
|
+
/**
|
|
34131
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=batch_delete&version=v1 click to debug }
|
|
34132
|
+
*
|
|
34133
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=batch_delete&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34134
|
+
*/
|
|
34135
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34136
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34137
|
+
return this.httpInstance
|
|
34138
|
+
.request({
|
|
34139
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`, path),
|
|
34140
|
+
method: "DELETE",
|
|
34141
|
+
data,
|
|
34142
|
+
params,
|
|
34143
|
+
headers,
|
|
34144
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34145
|
+
})
|
|
34146
|
+
.catch((e) => {
|
|
34147
|
+
this.logger.error(formatErrors(e));
|
|
34148
|
+
throw e;
|
|
34149
|
+
});
|
|
34150
|
+
}),
|
|
34151
|
+
/**
|
|
34152
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=create&version=v1 click to debug }
|
|
34153
|
+
*
|
|
34154
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34155
|
+
*/
|
|
34156
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34157
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34158
|
+
return this.httpInstance
|
|
34159
|
+
.request({
|
|
34160
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34161
|
+
method: "POST",
|
|
34162
|
+
data,
|
|
34163
|
+
params,
|
|
34164
|
+
headers,
|
|
34165
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34166
|
+
})
|
|
34167
|
+
.catch((e) => {
|
|
34168
|
+
this.logger.error(formatErrors(e));
|
|
34169
|
+
throw e;
|
|
34170
|
+
});
|
|
34171
|
+
}),
|
|
34172
|
+
/**
|
|
34173
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement.block.children&apiName=get&version=v1 click to debug }
|
|
34174
|
+
*
|
|
34175
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement.block.children&version=v1 document }
|
|
34176
|
+
*/
|
|
34177
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34178
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34179
|
+
return this.httpInstance
|
|
34180
|
+
.request({
|
|
34181
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`, path),
|
|
34182
|
+
method: "GET",
|
|
34183
|
+
data,
|
|
34184
|
+
params,
|
|
34185
|
+
headers,
|
|
34186
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34187
|
+
})
|
|
34188
|
+
.catch((e) => {
|
|
34189
|
+
this.logger.error(formatErrors(e));
|
|
34190
|
+
throw e;
|
|
34191
|
+
});
|
|
34192
|
+
}),
|
|
34193
|
+
},
|
|
34194
|
+
/**
|
|
34195
|
+
* chat.announcement
|
|
34196
|
+
*/
|
|
34197
|
+
chatAnnouncement: {
|
|
34198
|
+
/**
|
|
34199
|
+
* {@link https://open.feishu.cn/api-explorer?project=docx&resource=chat.announcement&apiName=get&version=v1 click to debug }
|
|
34200
|
+
*
|
|
34201
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=docx&resource=chat.announcement&version=v1 document }
|
|
34202
|
+
*/
|
|
34203
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
34204
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
34205
|
+
return this.httpInstance
|
|
34206
|
+
.request({
|
|
34207
|
+
url: fillApiPath(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`, path),
|
|
34208
|
+
method: "GET",
|
|
34209
|
+
data,
|
|
34210
|
+
params,
|
|
34211
|
+
headers,
|
|
34212
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
34213
|
+
})
|
|
34214
|
+
.catch((e) => {
|
|
34215
|
+
this.logger.error(formatErrors(e));
|
|
34216
|
+
throw e;
|
|
34217
|
+
});
|
|
34218
|
+
}),
|
|
34219
|
+
},
|
|
33030
34220
|
/**
|
|
33031
34221
|
* 块
|
|
33032
34222
|
*/
|
|
@@ -34766,7 +35956,7 @@ class Client$E extends Client$F {
|
|
|
34766
35956
|
}),
|
|
34767
35957
|
},
|
|
34768
35958
|
/**
|
|
34769
|
-
*
|
|
35959
|
+
* 素材
|
|
34770
35960
|
*/
|
|
34771
35961
|
media: {
|
|
34772
35962
|
/**
|
|
@@ -36592,7 +37782,7 @@ class Client$E extends Client$F {
|
|
|
36592
37782
|
}),
|
|
36593
37783
|
},
|
|
36594
37784
|
/**
|
|
36595
|
-
*
|
|
37785
|
+
* 素材
|
|
36596
37786
|
*/
|
|
36597
37787
|
media: {
|
|
36598
37788
|
/**
|
|
@@ -37118,6 +38308,86 @@ class Client$E extends Client$F {
|
|
|
37118
38308
|
},
|
|
37119
38309
|
},
|
|
37120
38310
|
v2: {
|
|
38311
|
+
/**
|
|
38312
|
+
* file.like
|
|
38313
|
+
*/
|
|
38314
|
+
fileLike: {
|
|
38315
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38316
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38317
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
38318
|
+
const res = yield this.httpInstance
|
|
38319
|
+
.request({
|
|
38320
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38321
|
+
method: "GET",
|
|
38322
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
38323
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
38324
|
+
data,
|
|
38325
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
38326
|
+
arrayFormat: "repeat",
|
|
38327
|
+
}),
|
|
38328
|
+
})
|
|
38329
|
+
.catch((e) => {
|
|
38330
|
+
this.logger.error(formatErrors(e));
|
|
38331
|
+
});
|
|
38332
|
+
return res;
|
|
38333
|
+
});
|
|
38334
|
+
const Iterable = {
|
|
38335
|
+
[Symbol.asyncIterator]() {
|
|
38336
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
38337
|
+
let hasMore = true;
|
|
38338
|
+
let pageToken;
|
|
38339
|
+
while (hasMore) {
|
|
38340
|
+
try {
|
|
38341
|
+
const res = yield __await(sendRequest({
|
|
38342
|
+
headers,
|
|
38343
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
38344
|
+
data,
|
|
38345
|
+
}));
|
|
38346
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
38347
|
+
// @ts-ignore
|
|
38348
|
+
has_more,
|
|
38349
|
+
// @ts-ignore
|
|
38350
|
+
page_token,
|
|
38351
|
+
// @ts-ignore
|
|
38352
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
38353
|
+
yield yield __await(rest);
|
|
38354
|
+
hasMore = Boolean(has_more);
|
|
38355
|
+
pageToken = page_token || next_page_token;
|
|
38356
|
+
}
|
|
38357
|
+
catch (e) {
|
|
38358
|
+
yield yield __await(null);
|
|
38359
|
+
break;
|
|
38360
|
+
}
|
|
38361
|
+
}
|
|
38362
|
+
});
|
|
38363
|
+
},
|
|
38364
|
+
};
|
|
38365
|
+
return Iterable;
|
|
38366
|
+
}),
|
|
38367
|
+
/**
|
|
38368
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=file.like&apiName=list&version=v2 click to debug }
|
|
38369
|
+
*
|
|
38370
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=drive&resource=file.like&version=v2 document }
|
|
38371
|
+
*
|
|
38372
|
+
* 获取指定文件的点赞者列表并分页返回。
|
|
38373
|
+
*/
|
|
38374
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38375
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38376
|
+
return this.httpInstance
|
|
38377
|
+
.request({
|
|
38378
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`, path),
|
|
38379
|
+
method: "GET",
|
|
38380
|
+
data,
|
|
38381
|
+
params,
|
|
38382
|
+
headers,
|
|
38383
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
38384
|
+
})
|
|
38385
|
+
.catch((e) => {
|
|
38386
|
+
this.logger.error(formatErrors(e));
|
|
38387
|
+
throw e;
|
|
38388
|
+
});
|
|
38389
|
+
}),
|
|
38390
|
+
},
|
|
37121
38391
|
/**
|
|
37122
38392
|
* permission.public
|
|
37123
38393
|
*/
|
|
@@ -54489,7 +55759,7 @@ class Client$s extends Client$t {
|
|
|
54489
55759
|
}),
|
|
54490
55760
|
},
|
|
54491
55761
|
/**
|
|
54492
|
-
* 消息
|
|
55762
|
+
* 消息
|
|
54493
55763
|
*/
|
|
54494
55764
|
message: {
|
|
54495
55765
|
/**
|
|
@@ -56692,7 +57962,7 @@ class Client$s extends Client$t {
|
|
|
56692
57962
|
}),
|
|
56693
57963
|
},
|
|
56694
57964
|
/**
|
|
56695
|
-
* 消息
|
|
57965
|
+
* 消息
|
|
56696
57966
|
*/
|
|
56697
57967
|
message: {
|
|
56698
57968
|
/**
|
|
@@ -75158,11 +76428,7 @@ const adaptDefault = (path, dispatcher, options) => (req, res) => __awaiter(void
|
|
|
75158
76428
|
}
|
|
75159
76429
|
}
|
|
75160
76430
|
const value = yield dispatcher.invoke(data);
|
|
75161
|
-
|
|
75162
|
-
if (dispatcher instanceof CardActionHandler) {
|
|
75163
|
-
res.end(JSON.stringify(value));
|
|
75164
|
-
}
|
|
75165
|
-
res.end('');
|
|
76431
|
+
res.end(JSON.stringify(value));
|
|
75166
76432
|
});
|
|
75167
76433
|
|
|
75168
76434
|
const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -75193,11 +76459,7 @@ const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, vo
|
|
|
75193
76459
|
}
|
|
75194
76460
|
}
|
|
75195
76461
|
const value = yield dispatcher.invoke(data);
|
|
75196
|
-
|
|
75197
|
-
if (dispatcher instanceof CardActionHandler) {
|
|
75198
|
-
res.json(value);
|
|
75199
|
-
}
|
|
75200
|
-
res.end('');
|
|
76462
|
+
res.json(value);
|
|
75201
76463
|
});
|
|
75202
76464
|
|
|
75203
76465
|
const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -75231,13 +76493,7 @@ const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0,
|
|
|
75231
76493
|
}
|
|
75232
76494
|
}
|
|
75233
76495
|
const value = yield dispatcher.invoke(data);
|
|
75234
|
-
|
|
75235
|
-
if (dispatcher instanceof CardActionHandler) {
|
|
75236
|
-
ctx.body = JSON.stringify(value);
|
|
75237
|
-
}
|
|
75238
|
-
else {
|
|
75239
|
-
ctx.body = '';
|
|
75240
|
-
}
|
|
76496
|
+
ctx.body = JSON.stringify(value);
|
|
75241
76497
|
}
|
|
75242
76498
|
yield next();
|
|
75243
76499
|
});
|
|
@@ -75272,13 +76528,7 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
|
|
|
75272
76528
|
}
|
|
75273
76529
|
}
|
|
75274
76530
|
const value = yield dispatcher.invoke(data);
|
|
75275
|
-
|
|
75276
|
-
if (dispatcher instanceof CardActionHandler) {
|
|
75277
|
-
ctx.body = JSON.stringify(value);
|
|
75278
|
-
}
|
|
75279
|
-
else {
|
|
75280
|
-
ctx.body = '';
|
|
75281
|
-
}
|
|
76531
|
+
ctx.body = JSON.stringify(value);
|
|
75282
76532
|
yield next();
|
|
75283
76533
|
});
|
|
75284
76534
|
|