@larksuiteoapi/node-sdk 1.29.0 → 1.30.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 +723 -21
- package/lib/index.js +723 -21
- package/package.json +1 -1
- package/types/index.d.ts +6177 -690
package/lib/index.js
CHANGED
|
@@ -238,7 +238,7 @@ const formatErrors = (e) => {
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
// auto gen
|
|
241
|
-
class Client
|
|
241
|
+
class Client$$ {
|
|
242
242
|
constructor() {
|
|
243
243
|
/**
|
|
244
244
|
* 智能门禁
|
|
@@ -1211,7 +1211,7 @@ class Client$_ {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
1213
|
// auto gen
|
|
1214
|
-
class Client$
|
|
1214
|
+
class Client$_ extends Client$$ {
|
|
1215
1215
|
constructor() {
|
|
1216
1216
|
super(...arguments);
|
|
1217
1217
|
/**
|
|
@@ -2267,7 +2267,7 @@ class Client$Z extends Client$_ {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
|
|
2269
2269
|
// auto gen
|
|
2270
|
-
class Client$
|
|
2270
|
+
class Client$Z extends Client$_ {
|
|
2271
2271
|
constructor() {
|
|
2272
2272
|
super(...arguments);
|
|
2273
2273
|
/**
|
|
@@ -2636,7 +2636,7 @@ class Client$Y extends Client$Z {
|
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
2638
|
// auto gen
|
|
2639
|
-
class Client$
|
|
2639
|
+
class Client$Y extends Client$Z {
|
|
2640
2640
|
constructor() {
|
|
2641
2641
|
super(...arguments);
|
|
2642
2642
|
/**
|
|
@@ -3862,7 +3862,7 @@ class Client$X extends Client$Y {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
|
|
3864
3864
|
// auto gen
|
|
3865
|
-
class Client$
|
|
3865
|
+
class Client$X extends Client$Y {
|
|
3866
3866
|
constructor() {
|
|
3867
3867
|
super(...arguments);
|
|
3868
3868
|
/**
|
|
@@ -4155,7 +4155,7 @@ class Client$W extends Client$X {
|
|
|
4155
4155
|
}),
|
|
4156
4156
|
},
|
|
4157
4157
|
/**
|
|
4158
|
-
*
|
|
4158
|
+
* 审批查询
|
|
4159
4159
|
*/
|
|
4160
4160
|
instance: {
|
|
4161
4161
|
/**
|
|
@@ -5124,7 +5124,7 @@ class Client$W extends Client$X {
|
|
|
5124
5124
|
}),
|
|
5125
5125
|
},
|
|
5126
5126
|
/**
|
|
5127
|
-
*
|
|
5127
|
+
* 审批查询
|
|
5128
5128
|
*/
|
|
5129
5129
|
instance: {
|
|
5130
5130
|
/**
|
|
@@ -5812,7 +5812,7 @@ class Client$W extends Client$X {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
|
|
5814
5814
|
// auto gen
|
|
5815
|
-
class Client$
|
|
5815
|
+
class Client$W extends Client$X {
|
|
5816
5816
|
constructor() {
|
|
5817
5817
|
super(...arguments);
|
|
5818
5818
|
/**
|
|
@@ -7760,7 +7760,7 @@ class Client$V extends Client$W {
|
|
|
7760
7760
|
}
|
|
7761
7761
|
|
|
7762
7762
|
// auto gen
|
|
7763
|
-
class Client$
|
|
7763
|
+
class Client$V extends Client$W {
|
|
7764
7764
|
constructor() {
|
|
7765
7765
|
super(...arguments);
|
|
7766
7766
|
/**
|
|
@@ -8004,7 +8004,7 @@ class Client$U extends Client$V {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
|
|
8006
8006
|
// auto gen
|
|
8007
|
-
class Client$
|
|
8007
|
+
class Client$U extends Client$V {
|
|
8008
8008
|
constructor() {
|
|
8009
8009
|
super(...arguments);
|
|
8010
8010
|
/**
|
|
@@ -8268,7 +8268,7 @@ class Client$T extends Client$U {
|
|
|
8268
8268
|
}
|
|
8269
8269
|
|
|
8270
8270
|
// auto gen
|
|
8271
|
-
class Client$
|
|
8271
|
+
class Client$T extends Client$U {
|
|
8272
8272
|
constructor() {
|
|
8273
8273
|
super(...arguments);
|
|
8274
8274
|
/**
|
|
@@ -8279,7 +8279,7 @@ class Client$S extends Client$T {
|
|
|
8279
8279
|
}
|
|
8280
8280
|
|
|
8281
8281
|
// auto gen
|
|
8282
|
-
class Client$
|
|
8282
|
+
class Client$S extends Client$T {
|
|
8283
8283
|
constructor() {
|
|
8284
8284
|
super(...arguments);
|
|
8285
8285
|
/**
|
|
@@ -9295,7 +9295,7 @@ class Client$R extends Client$S {
|
|
|
9295
9295
|
}
|
|
9296
9296
|
|
|
9297
9297
|
// auto gen
|
|
9298
|
-
class Client$
|
|
9298
|
+
class Client$R extends Client$S {
|
|
9299
9299
|
constructor() {
|
|
9300
9300
|
super(...arguments);
|
|
9301
9301
|
/**
|
|
@@ -12443,7 +12443,7 @@ class Client$Q extends Client$R {
|
|
|
12443
12443
|
}
|
|
12444
12444
|
|
|
12445
12445
|
// auto gen
|
|
12446
|
-
class Client$
|
|
12446
|
+
class Client$Q extends Client$R {
|
|
12447
12447
|
constructor() {
|
|
12448
12448
|
super(...arguments);
|
|
12449
12449
|
/**
|
|
@@ -12621,7 +12621,7 @@ class Client$P extends Client$Q {
|
|
|
12621
12621
|
}
|
|
12622
12622
|
|
|
12623
12623
|
// auto gen
|
|
12624
|
-
class Client$
|
|
12624
|
+
class Client$P extends Client$Q {
|
|
12625
12625
|
constructor() {
|
|
12626
12626
|
super(...arguments);
|
|
12627
12627
|
/**
|
|
@@ -12662,7 +12662,7 @@ class Client$O extends Client$P {
|
|
|
12662
12662
|
}
|
|
12663
12663
|
|
|
12664
12664
|
// auto gen
|
|
12665
|
-
class Client$
|
|
12665
|
+
class Client$O extends Client$P {
|
|
12666
12666
|
constructor() {
|
|
12667
12667
|
super(...arguments);
|
|
12668
12668
|
/**
|
|
@@ -15250,7 +15250,7 @@ class Client$N extends Client$O {
|
|
|
15250
15250
|
}
|
|
15251
15251
|
|
|
15252
15252
|
// auto gen
|
|
15253
|
-
class Client$
|
|
15253
|
+
class Client$N extends Client$O {
|
|
15254
15254
|
constructor() {
|
|
15255
15255
|
super(...arguments);
|
|
15256
15256
|
/**
|
|
@@ -15260,6 +15260,415 @@ class Client$M extends Client$N {
|
|
|
15260
15260
|
}
|
|
15261
15261
|
}
|
|
15262
15262
|
|
|
15263
|
+
// auto gen
|
|
15264
|
+
class Client$M extends Client$N {
|
|
15265
|
+
constructor() {
|
|
15266
|
+
super(...arguments);
|
|
15267
|
+
/**
|
|
15268
|
+
|
|
15269
|
+
*/
|
|
15270
|
+
this.compensation = {
|
|
15271
|
+
v1: {
|
|
15272
|
+
/**
|
|
15273
|
+
* archive
|
|
15274
|
+
*/
|
|
15275
|
+
archive: {
|
|
15276
|
+
/**
|
|
15277
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=archive&apiName=query&version=v1 click to debug }
|
|
15278
|
+
*
|
|
15279
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=archive&version=v1 document }
|
|
15280
|
+
*/
|
|
15281
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15282
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15283
|
+
return this.httpInstance
|
|
15284
|
+
.request({
|
|
15285
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/archives/query`, path),
|
|
15286
|
+
method: "POST",
|
|
15287
|
+
data,
|
|
15288
|
+
params,
|
|
15289
|
+
headers,
|
|
15290
|
+
})
|
|
15291
|
+
.catch((e) => {
|
|
15292
|
+
this.logger.error(formatErrors(e));
|
|
15293
|
+
throw e;
|
|
15294
|
+
});
|
|
15295
|
+
}),
|
|
15296
|
+
},
|
|
15297
|
+
/**
|
|
15298
|
+
* change_reason
|
|
15299
|
+
*/
|
|
15300
|
+
changeReason: {
|
|
15301
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15302
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15303
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15304
|
+
const res = yield this.httpInstance
|
|
15305
|
+
.request({
|
|
15306
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
|
|
15307
|
+
method: "GET",
|
|
15308
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
15309
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
15310
|
+
data,
|
|
15311
|
+
})
|
|
15312
|
+
.catch((e) => {
|
|
15313
|
+
this.logger.error(formatErrors(e));
|
|
15314
|
+
});
|
|
15315
|
+
return res;
|
|
15316
|
+
});
|
|
15317
|
+
const Iterable = {
|
|
15318
|
+
[Symbol.asyncIterator]() {
|
|
15319
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15320
|
+
let hasMore = true;
|
|
15321
|
+
let pageToken;
|
|
15322
|
+
while (hasMore) {
|
|
15323
|
+
try {
|
|
15324
|
+
const res = yield __await(sendRequest({
|
|
15325
|
+
headers,
|
|
15326
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15327
|
+
data,
|
|
15328
|
+
}));
|
|
15329
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
15330
|
+
// @ts-ignore
|
|
15331
|
+
has_more,
|
|
15332
|
+
// @ts-ignore
|
|
15333
|
+
page_token,
|
|
15334
|
+
// @ts-ignore
|
|
15335
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15336
|
+
yield yield __await(rest);
|
|
15337
|
+
hasMore = Boolean(has_more);
|
|
15338
|
+
pageToken = page_token || next_page_token;
|
|
15339
|
+
}
|
|
15340
|
+
catch (e) {
|
|
15341
|
+
yield yield __await(null);
|
|
15342
|
+
break;
|
|
15343
|
+
}
|
|
15344
|
+
}
|
|
15345
|
+
});
|
|
15346
|
+
},
|
|
15347
|
+
};
|
|
15348
|
+
return Iterable;
|
|
15349
|
+
}),
|
|
15350
|
+
/**
|
|
15351
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=change_reason&apiName=list&version=v1 click to debug }
|
|
15352
|
+
*
|
|
15353
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=change_reason&version=v1 document }
|
|
15354
|
+
*/
|
|
15355
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15356
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15357
|
+
return this.httpInstance
|
|
15358
|
+
.request({
|
|
15359
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
|
|
15360
|
+
method: "GET",
|
|
15361
|
+
data,
|
|
15362
|
+
params,
|
|
15363
|
+
headers,
|
|
15364
|
+
})
|
|
15365
|
+
.catch((e) => {
|
|
15366
|
+
this.logger.error(formatErrors(e));
|
|
15367
|
+
throw e;
|
|
15368
|
+
});
|
|
15369
|
+
}),
|
|
15370
|
+
},
|
|
15371
|
+
/**
|
|
15372
|
+
* indicator
|
|
15373
|
+
*/
|
|
15374
|
+
indicator: {
|
|
15375
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15376
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15377
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15378
|
+
const res = yield this.httpInstance
|
|
15379
|
+
.request({
|
|
15380
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
|
|
15381
|
+
method: "GET",
|
|
15382
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
15383
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
15384
|
+
data,
|
|
15385
|
+
})
|
|
15386
|
+
.catch((e) => {
|
|
15387
|
+
this.logger.error(formatErrors(e));
|
|
15388
|
+
});
|
|
15389
|
+
return res;
|
|
15390
|
+
});
|
|
15391
|
+
const Iterable = {
|
|
15392
|
+
[Symbol.asyncIterator]() {
|
|
15393
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15394
|
+
let hasMore = true;
|
|
15395
|
+
let pageToken;
|
|
15396
|
+
while (hasMore) {
|
|
15397
|
+
try {
|
|
15398
|
+
const res = yield __await(sendRequest({
|
|
15399
|
+
headers,
|
|
15400
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15401
|
+
data,
|
|
15402
|
+
}));
|
|
15403
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
15404
|
+
// @ts-ignore
|
|
15405
|
+
has_more,
|
|
15406
|
+
// @ts-ignore
|
|
15407
|
+
page_token,
|
|
15408
|
+
// @ts-ignore
|
|
15409
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15410
|
+
yield yield __await(rest);
|
|
15411
|
+
hasMore = Boolean(has_more);
|
|
15412
|
+
pageToken = page_token || next_page_token;
|
|
15413
|
+
}
|
|
15414
|
+
catch (e) {
|
|
15415
|
+
yield yield __await(null);
|
|
15416
|
+
break;
|
|
15417
|
+
}
|
|
15418
|
+
}
|
|
15419
|
+
});
|
|
15420
|
+
},
|
|
15421
|
+
};
|
|
15422
|
+
return Iterable;
|
|
15423
|
+
}),
|
|
15424
|
+
/**
|
|
15425
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=indicator&apiName=list&version=v1 click to debug }
|
|
15426
|
+
*
|
|
15427
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=indicator&version=v1 document }
|
|
15428
|
+
*/
|
|
15429
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15430
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15431
|
+
return this.httpInstance
|
|
15432
|
+
.request({
|
|
15433
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
|
|
15434
|
+
method: "GET",
|
|
15435
|
+
data,
|
|
15436
|
+
params,
|
|
15437
|
+
headers,
|
|
15438
|
+
})
|
|
15439
|
+
.catch((e) => {
|
|
15440
|
+
this.logger.error(formatErrors(e));
|
|
15441
|
+
throw e;
|
|
15442
|
+
});
|
|
15443
|
+
}),
|
|
15444
|
+
},
|
|
15445
|
+
/**
|
|
15446
|
+
* item
|
|
15447
|
+
*/
|
|
15448
|
+
item: {
|
|
15449
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15450
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15451
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15452
|
+
const res = yield this.httpInstance
|
|
15453
|
+
.request({
|
|
15454
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
|
|
15455
|
+
method: "GET",
|
|
15456
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
15457
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
15458
|
+
data,
|
|
15459
|
+
})
|
|
15460
|
+
.catch((e) => {
|
|
15461
|
+
this.logger.error(formatErrors(e));
|
|
15462
|
+
});
|
|
15463
|
+
return res;
|
|
15464
|
+
});
|
|
15465
|
+
const Iterable = {
|
|
15466
|
+
[Symbol.asyncIterator]() {
|
|
15467
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15468
|
+
let hasMore = true;
|
|
15469
|
+
let pageToken;
|
|
15470
|
+
while (hasMore) {
|
|
15471
|
+
try {
|
|
15472
|
+
const res = yield __await(sendRequest({
|
|
15473
|
+
headers,
|
|
15474
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15475
|
+
data,
|
|
15476
|
+
}));
|
|
15477
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
15478
|
+
// @ts-ignore
|
|
15479
|
+
has_more,
|
|
15480
|
+
// @ts-ignore
|
|
15481
|
+
page_token,
|
|
15482
|
+
// @ts-ignore
|
|
15483
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15484
|
+
yield yield __await(rest);
|
|
15485
|
+
hasMore = Boolean(has_more);
|
|
15486
|
+
pageToken = page_token || next_page_token;
|
|
15487
|
+
}
|
|
15488
|
+
catch (e) {
|
|
15489
|
+
yield yield __await(null);
|
|
15490
|
+
break;
|
|
15491
|
+
}
|
|
15492
|
+
}
|
|
15493
|
+
});
|
|
15494
|
+
},
|
|
15495
|
+
};
|
|
15496
|
+
return Iterable;
|
|
15497
|
+
}),
|
|
15498
|
+
/**
|
|
15499
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item&apiName=list&version=v1 click to debug }
|
|
15500
|
+
*
|
|
15501
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item&version=v1 document }
|
|
15502
|
+
*/
|
|
15503
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15504
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15505
|
+
return this.httpInstance
|
|
15506
|
+
.request({
|
|
15507
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
|
|
15508
|
+
method: "GET",
|
|
15509
|
+
data,
|
|
15510
|
+
params,
|
|
15511
|
+
headers,
|
|
15512
|
+
})
|
|
15513
|
+
.catch((e) => {
|
|
15514
|
+
this.logger.error(formatErrors(e));
|
|
15515
|
+
throw e;
|
|
15516
|
+
});
|
|
15517
|
+
}),
|
|
15518
|
+
},
|
|
15519
|
+
/**
|
|
15520
|
+
* item_category
|
|
15521
|
+
*/
|
|
15522
|
+
itemCategory: {
|
|
15523
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15524
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15525
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15526
|
+
const res = yield this.httpInstance
|
|
15527
|
+
.request({
|
|
15528
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
|
|
15529
|
+
method: "GET",
|
|
15530
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
15531
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
15532
|
+
data,
|
|
15533
|
+
})
|
|
15534
|
+
.catch((e) => {
|
|
15535
|
+
this.logger.error(formatErrors(e));
|
|
15536
|
+
});
|
|
15537
|
+
return res;
|
|
15538
|
+
});
|
|
15539
|
+
const Iterable = {
|
|
15540
|
+
[Symbol.asyncIterator]() {
|
|
15541
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15542
|
+
let hasMore = true;
|
|
15543
|
+
let pageToken;
|
|
15544
|
+
while (hasMore) {
|
|
15545
|
+
try {
|
|
15546
|
+
const res = yield __await(sendRequest({
|
|
15547
|
+
headers,
|
|
15548
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15549
|
+
data,
|
|
15550
|
+
}));
|
|
15551
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
15552
|
+
// @ts-ignore
|
|
15553
|
+
has_more,
|
|
15554
|
+
// @ts-ignore
|
|
15555
|
+
page_token,
|
|
15556
|
+
// @ts-ignore
|
|
15557
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15558
|
+
yield yield __await(rest);
|
|
15559
|
+
hasMore = Boolean(has_more);
|
|
15560
|
+
pageToken = page_token || next_page_token;
|
|
15561
|
+
}
|
|
15562
|
+
catch (e) {
|
|
15563
|
+
yield yield __await(null);
|
|
15564
|
+
break;
|
|
15565
|
+
}
|
|
15566
|
+
}
|
|
15567
|
+
});
|
|
15568
|
+
},
|
|
15569
|
+
};
|
|
15570
|
+
return Iterable;
|
|
15571
|
+
}),
|
|
15572
|
+
/**
|
|
15573
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item_category&apiName=list&version=v1 click to debug }
|
|
15574
|
+
*
|
|
15575
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item_category&version=v1 document }
|
|
15576
|
+
*/
|
|
15577
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15578
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15579
|
+
return this.httpInstance
|
|
15580
|
+
.request({
|
|
15581
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
|
|
15582
|
+
method: "GET",
|
|
15583
|
+
data,
|
|
15584
|
+
params,
|
|
15585
|
+
headers,
|
|
15586
|
+
})
|
|
15587
|
+
.catch((e) => {
|
|
15588
|
+
this.logger.error(formatErrors(e));
|
|
15589
|
+
throw e;
|
|
15590
|
+
});
|
|
15591
|
+
}),
|
|
15592
|
+
},
|
|
15593
|
+
/**
|
|
15594
|
+
* plan
|
|
15595
|
+
*/
|
|
15596
|
+
plan: {
|
|
15597
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15598
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15599
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15600
|
+
const res = yield this.httpInstance
|
|
15601
|
+
.request({
|
|
15602
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
|
|
15603
|
+
method: "GET",
|
|
15604
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
15605
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
15606
|
+
data,
|
|
15607
|
+
})
|
|
15608
|
+
.catch((e) => {
|
|
15609
|
+
this.logger.error(formatErrors(e));
|
|
15610
|
+
});
|
|
15611
|
+
return res;
|
|
15612
|
+
});
|
|
15613
|
+
const Iterable = {
|
|
15614
|
+
[Symbol.asyncIterator]() {
|
|
15615
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15616
|
+
let hasMore = true;
|
|
15617
|
+
let pageToken;
|
|
15618
|
+
while (hasMore) {
|
|
15619
|
+
try {
|
|
15620
|
+
const res = yield __await(sendRequest({
|
|
15621
|
+
headers,
|
|
15622
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15623
|
+
data,
|
|
15624
|
+
}));
|
|
15625
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
15626
|
+
// @ts-ignore
|
|
15627
|
+
has_more,
|
|
15628
|
+
// @ts-ignore
|
|
15629
|
+
page_token,
|
|
15630
|
+
// @ts-ignore
|
|
15631
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15632
|
+
yield yield __await(rest);
|
|
15633
|
+
hasMore = Boolean(has_more);
|
|
15634
|
+
pageToken = page_token || next_page_token;
|
|
15635
|
+
}
|
|
15636
|
+
catch (e) {
|
|
15637
|
+
yield yield __await(null);
|
|
15638
|
+
break;
|
|
15639
|
+
}
|
|
15640
|
+
}
|
|
15641
|
+
});
|
|
15642
|
+
},
|
|
15643
|
+
};
|
|
15644
|
+
return Iterable;
|
|
15645
|
+
}),
|
|
15646
|
+
/**
|
|
15647
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=plan&apiName=list&version=v1 click to debug }
|
|
15648
|
+
*
|
|
15649
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=plan&version=v1 document }
|
|
15650
|
+
*/
|
|
15651
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15652
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15653
|
+
return this.httpInstance
|
|
15654
|
+
.request({
|
|
15655
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
|
|
15656
|
+
method: "GET",
|
|
15657
|
+
data,
|
|
15658
|
+
params,
|
|
15659
|
+
headers,
|
|
15660
|
+
})
|
|
15661
|
+
.catch((e) => {
|
|
15662
|
+
this.logger.error(formatErrors(e));
|
|
15663
|
+
throw e;
|
|
15664
|
+
});
|
|
15665
|
+
}),
|
|
15666
|
+
},
|
|
15667
|
+
},
|
|
15668
|
+
};
|
|
15669
|
+
}
|
|
15670
|
+
}
|
|
15671
|
+
|
|
15263
15672
|
// auto gen
|
|
15264
15673
|
class Client$L extends Client$M {
|
|
15265
15674
|
constructor() {
|
|
@@ -20147,6 +20556,55 @@ class Client$I extends Client$J {
|
|
|
20147
20556
|
});
|
|
20148
20557
|
}),
|
|
20149
20558
|
},
|
|
20559
|
+
/**
|
|
20560
|
+
* authorization
|
|
20561
|
+
*/
|
|
20562
|
+
authorization: {
|
|
20563
|
+
/**
|
|
20564
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
|
|
20565
|
+
*
|
|
20566
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
|
|
20567
|
+
*
|
|
20568
|
+
* 根据ID查询单个用户授权
|
|
20569
|
+
*/
|
|
20570
|
+
getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20571
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20572
|
+
return this.httpInstance
|
|
20573
|
+
.request({
|
|
20574
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
|
|
20575
|
+
method: "GET",
|
|
20576
|
+
data,
|
|
20577
|
+
params,
|
|
20578
|
+
headers,
|
|
20579
|
+
})
|
|
20580
|
+
.catch((e) => {
|
|
20581
|
+
this.logger.error(formatErrors(e));
|
|
20582
|
+
throw e;
|
|
20583
|
+
});
|
|
20584
|
+
}),
|
|
20585
|
+
/**
|
|
20586
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
|
|
20587
|
+
*
|
|
20588
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
|
|
20589
|
+
*
|
|
20590
|
+
* 批量查询用户授权
|
|
20591
|
+
*/
|
|
20592
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20593
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20594
|
+
return this.httpInstance
|
|
20595
|
+
.request({
|
|
20596
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
|
|
20597
|
+
method: "GET",
|
|
20598
|
+
data,
|
|
20599
|
+
params,
|
|
20600
|
+
headers,
|
|
20601
|
+
})
|
|
20602
|
+
.catch((e) => {
|
|
20603
|
+
this.logger.error(formatErrors(e));
|
|
20604
|
+
throw e;
|
|
20605
|
+
});
|
|
20606
|
+
}),
|
|
20607
|
+
},
|
|
20150
20608
|
/**
|
|
20151
20609
|
* common_data.id
|
|
20152
20610
|
*/
|
|
@@ -22010,6 +22468,30 @@ class Client$I extends Client$J {
|
|
|
22010
22468
|
* 个人信息
|
|
22011
22469
|
*/
|
|
22012
22470
|
person: {
|
|
22471
|
+
/**
|
|
22472
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
|
|
22473
|
+
*
|
|
22474
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
|
|
22475
|
+
*
|
|
22476
|
+
* 创建个人信息
|
|
22477
|
+
*
|
|
22478
|
+
* 创建人员的个人信息
|
|
22479
|
+
*/
|
|
22480
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22481
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22482
|
+
return this.httpInstance
|
|
22483
|
+
.request({
|
|
22484
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
|
|
22485
|
+
method: "POST",
|
|
22486
|
+
data,
|
|
22487
|
+
params,
|
|
22488
|
+
headers,
|
|
22489
|
+
})
|
|
22490
|
+
.catch((e) => {
|
|
22491
|
+
this.logger.error(formatErrors(e));
|
|
22492
|
+
throw e;
|
|
22493
|
+
});
|
|
22494
|
+
}),
|
|
22013
22495
|
/**
|
|
22014
22496
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
|
|
22015
22497
|
*
|
|
@@ -22058,6 +22540,30 @@ class Client$I extends Client$J {
|
|
|
22058
22540
|
throw e;
|
|
22059
22541
|
});
|
|
22060
22542
|
}),
|
|
22543
|
+
/**
|
|
22544
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
|
|
22545
|
+
*
|
|
22546
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
|
|
22547
|
+
*
|
|
22548
|
+
* 更新个人信息
|
|
22549
|
+
*
|
|
22550
|
+
* 更新个人信息
|
|
22551
|
+
*/
|
|
22552
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22553
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22554
|
+
return this.httpInstance
|
|
22555
|
+
.request({
|
|
22556
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
|
|
22557
|
+
method: "PATCH",
|
|
22558
|
+
data,
|
|
22559
|
+
params,
|
|
22560
|
+
headers,
|
|
22561
|
+
})
|
|
22562
|
+
.catch((e) => {
|
|
22563
|
+
this.logger.error(formatErrors(e));
|
|
22564
|
+
throw e;
|
|
22565
|
+
});
|
|
22566
|
+
}),
|
|
22061
22567
|
/**
|
|
22062
22568
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
|
|
22063
22569
|
*
|
|
@@ -22586,6 +23092,55 @@ class Client$I extends Client$J {
|
|
|
22586
23092
|
});
|
|
22587
23093
|
}),
|
|
22588
23094
|
},
|
|
23095
|
+
/**
|
|
23096
|
+
* authorization
|
|
23097
|
+
*/
|
|
23098
|
+
authorization: {
|
|
23099
|
+
/**
|
|
23100
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
|
|
23101
|
+
*
|
|
23102
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
|
|
23103
|
+
*
|
|
23104
|
+
* 根据ID查询单个用户授权
|
|
23105
|
+
*/
|
|
23106
|
+
getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23107
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23108
|
+
return this.httpInstance
|
|
23109
|
+
.request({
|
|
23110
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
|
|
23111
|
+
method: "GET",
|
|
23112
|
+
data,
|
|
23113
|
+
params,
|
|
23114
|
+
headers,
|
|
23115
|
+
})
|
|
23116
|
+
.catch((e) => {
|
|
23117
|
+
this.logger.error(formatErrors(e));
|
|
23118
|
+
throw e;
|
|
23119
|
+
});
|
|
23120
|
+
}),
|
|
23121
|
+
/**
|
|
23122
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
|
|
23123
|
+
*
|
|
23124
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
|
|
23125
|
+
*
|
|
23126
|
+
* 批量查询用户授权
|
|
23127
|
+
*/
|
|
23128
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23129
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23130
|
+
return this.httpInstance
|
|
23131
|
+
.request({
|
|
23132
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
|
|
23133
|
+
method: "GET",
|
|
23134
|
+
data,
|
|
23135
|
+
params,
|
|
23136
|
+
headers,
|
|
23137
|
+
})
|
|
23138
|
+
.catch((e) => {
|
|
23139
|
+
this.logger.error(formatErrors(e));
|
|
23140
|
+
throw e;
|
|
23141
|
+
});
|
|
23142
|
+
}),
|
|
23143
|
+
},
|
|
22589
23144
|
/**
|
|
22590
23145
|
* common_data.id
|
|
22591
23146
|
*/
|
|
@@ -24449,6 +25004,30 @@ class Client$I extends Client$J {
|
|
|
24449
25004
|
* 个人信息
|
|
24450
25005
|
*/
|
|
24451
25006
|
person: {
|
|
25007
|
+
/**
|
|
25008
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
|
|
25009
|
+
*
|
|
25010
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
|
|
25011
|
+
*
|
|
25012
|
+
* 创建个人信息
|
|
25013
|
+
*
|
|
25014
|
+
* 创建人员的个人信息
|
|
25015
|
+
*/
|
|
25016
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25017
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25018
|
+
return this.httpInstance
|
|
25019
|
+
.request({
|
|
25020
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
|
|
25021
|
+
method: "POST",
|
|
25022
|
+
data,
|
|
25023
|
+
params,
|
|
25024
|
+
headers,
|
|
25025
|
+
})
|
|
25026
|
+
.catch((e) => {
|
|
25027
|
+
this.logger.error(formatErrors(e));
|
|
25028
|
+
throw e;
|
|
25029
|
+
});
|
|
25030
|
+
}),
|
|
24452
25031
|
/**
|
|
24453
25032
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
|
|
24454
25033
|
*
|
|
@@ -24497,6 +25076,30 @@ class Client$I extends Client$J {
|
|
|
24497
25076
|
throw e;
|
|
24498
25077
|
});
|
|
24499
25078
|
}),
|
|
25079
|
+
/**
|
|
25080
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
|
|
25081
|
+
*
|
|
25082
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
|
|
25083
|
+
*
|
|
25084
|
+
* 更新个人信息
|
|
25085
|
+
*
|
|
25086
|
+
* 更新个人信息
|
|
25087
|
+
*/
|
|
25088
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25089
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25090
|
+
return this.httpInstance
|
|
25091
|
+
.request({
|
|
25092
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
|
|
25093
|
+
method: "PATCH",
|
|
25094
|
+
data,
|
|
25095
|
+
params,
|
|
25096
|
+
headers,
|
|
25097
|
+
})
|
|
25098
|
+
.catch((e) => {
|
|
25099
|
+
this.logger.error(formatErrors(e));
|
|
25100
|
+
throw e;
|
|
25101
|
+
});
|
|
25102
|
+
}),
|
|
24500
25103
|
/**
|
|
24501
25104
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
|
|
24502
25105
|
*
|
|
@@ -25994,6 +26597,28 @@ class Client$I extends Client$J {
|
|
|
25994
26597
|
throw e;
|
|
25995
26598
|
});
|
|
25996
26599
|
}),
|
|
26600
|
+
/**
|
|
26601
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_multi_timeline&version=v2 click to debug }
|
|
26602
|
+
*
|
|
26603
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=department&version=v2 document }
|
|
26604
|
+
*
|
|
26605
|
+
* 查询任意日期部门信息
|
|
26606
|
+
*/
|
|
26607
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26608
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26609
|
+
return this.httpInstance
|
|
26610
|
+
.request({
|
|
26611
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`, path),
|
|
26612
|
+
method: "POST",
|
|
26613
|
+
data,
|
|
26614
|
+
params,
|
|
26615
|
+
headers,
|
|
26616
|
+
})
|
|
26617
|
+
.catch((e) => {
|
|
26618
|
+
this.logger.error(formatErrors(e));
|
|
26619
|
+
throw e;
|
|
26620
|
+
});
|
|
26621
|
+
}),
|
|
25997
26622
|
/**
|
|
25998
26623
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
|
|
25999
26624
|
*
|
|
@@ -26408,6 +27033,33 @@ class Client$I extends Client$J {
|
|
|
26408
27033
|
});
|
|
26409
27034
|
}),
|
|
26410
27035
|
},
|
|
27036
|
+
/**
|
|
27037
|
+
* job_grade
|
|
27038
|
+
*/
|
|
27039
|
+
jobGrade: {
|
|
27040
|
+
/**
|
|
27041
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query&version=v2 click to debug }
|
|
27042
|
+
*
|
|
27043
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=job_grade&version=v2 document }
|
|
27044
|
+
*
|
|
27045
|
+
* 查询职等信息
|
|
27046
|
+
*/
|
|
27047
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27048
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27049
|
+
return this.httpInstance
|
|
27050
|
+
.request({
|
|
27051
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query`, path),
|
|
27052
|
+
method: "POST",
|
|
27053
|
+
data,
|
|
27054
|
+
params,
|
|
27055
|
+
headers,
|
|
27056
|
+
})
|
|
27057
|
+
.catch((e) => {
|
|
27058
|
+
this.logger.error(formatErrors(e));
|
|
27059
|
+
throw e;
|
|
27060
|
+
});
|
|
27061
|
+
}),
|
|
27062
|
+
},
|
|
26411
27063
|
/**
|
|
26412
27064
|
* job_level
|
|
26413
27065
|
*/
|
|
@@ -28630,7 +29282,7 @@ class Client$E extends Client$F {
|
|
|
28630
29282
|
}),
|
|
28631
29283
|
},
|
|
28632
29284
|
/**
|
|
28633
|
-
*
|
|
29285
|
+
* 异步任务状态
|
|
28634
29286
|
*/
|
|
28635
29287
|
file: {
|
|
28636
29288
|
/**
|
|
@@ -30329,7 +30981,7 @@ class Client$E extends Client$F {
|
|
|
30329
30981
|
}),
|
|
30330
30982
|
},
|
|
30331
30983
|
/**
|
|
30332
|
-
*
|
|
30984
|
+
* 异步任务状态
|
|
30333
30985
|
*/
|
|
30334
30986
|
file: {
|
|
30335
30987
|
/**
|
|
@@ -37460,6 +38112,31 @@ class Client$u extends Client$v {
|
|
|
37460
38112
|
});
|
|
37461
38113
|
}),
|
|
37462
38114
|
},
|
|
38115
|
+
/**
|
|
38116
|
+
* role
|
|
38117
|
+
*/
|
|
38118
|
+
role: {
|
|
38119
|
+
/**
|
|
38120
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
|
|
38121
|
+
*
|
|
38122
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
|
|
38123
|
+
*/
|
|
38124
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38125
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38126
|
+
return this.httpInstance
|
|
38127
|
+
.request({
|
|
38128
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
|
|
38129
|
+
method: "GET",
|
|
38130
|
+
data,
|
|
38131
|
+
params,
|
|
38132
|
+
headers,
|
|
38133
|
+
})
|
|
38134
|
+
.catch((e) => {
|
|
38135
|
+
this.logger.error(formatErrors(e));
|
|
38136
|
+
throw e;
|
|
38137
|
+
});
|
|
38138
|
+
}),
|
|
38139
|
+
},
|
|
37463
38140
|
/**
|
|
37464
38141
|
* 人才
|
|
37465
38142
|
*/
|
|
@@ -39804,6 +40481,31 @@ class Client$u extends Client$v {
|
|
|
39804
40481
|
});
|
|
39805
40482
|
}),
|
|
39806
40483
|
},
|
|
40484
|
+
/**
|
|
40485
|
+
* role
|
|
40486
|
+
*/
|
|
40487
|
+
role: {
|
|
40488
|
+
/**
|
|
40489
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
|
|
40490
|
+
*
|
|
40491
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
|
|
40492
|
+
*/
|
|
40493
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
40494
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
40495
|
+
return this.httpInstance
|
|
40496
|
+
.request({
|
|
40497
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
|
|
40498
|
+
method: "GET",
|
|
40499
|
+
data,
|
|
40500
|
+
params,
|
|
40501
|
+
headers,
|
|
40502
|
+
})
|
|
40503
|
+
.catch((e) => {
|
|
40504
|
+
this.logger.error(formatErrors(e));
|
|
40505
|
+
throw e;
|
|
40506
|
+
});
|
|
40507
|
+
}),
|
|
40508
|
+
},
|
|
39807
40509
|
/**
|
|
39808
40510
|
* 人才
|
|
39809
40511
|
*/
|
|
@@ -41352,7 +42054,7 @@ class Client$s extends Client$t {
|
|
|
41352
42054
|
}),
|
|
41353
42055
|
},
|
|
41354
42056
|
/**
|
|
41355
|
-
*
|
|
42057
|
+
* 消息
|
|
41356
42058
|
*/
|
|
41357
42059
|
message: {
|
|
41358
42060
|
/**
|
|
@@ -43422,7 +44124,7 @@ class Client$s extends Client$t {
|
|
|
43422
44124
|
}),
|
|
43423
44125
|
},
|
|
43424
44126
|
/**
|
|
43425
|
-
*
|
|
44127
|
+
* 消息
|
|
43426
44128
|
*/
|
|
43427
44129
|
message: {
|
|
43428
44130
|
/**
|