@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/es/index.js
CHANGED
|
@@ -221,7 +221,7 @@ const formatErrors = (e) => {
|
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
// auto gen
|
|
224
|
-
class Client
|
|
224
|
+
class Client$$ {
|
|
225
225
|
constructor() {
|
|
226
226
|
/**
|
|
227
227
|
* 智能门禁
|
|
@@ -1194,7 +1194,7 @@ class Client$_ {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
// auto gen
|
|
1197
|
-
class Client$
|
|
1197
|
+
class Client$_ extends Client$$ {
|
|
1198
1198
|
constructor() {
|
|
1199
1199
|
super(...arguments);
|
|
1200
1200
|
/**
|
|
@@ -2250,7 +2250,7 @@ class Client$Z extends Client$_ {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
|
|
2252
2252
|
// auto gen
|
|
2253
|
-
class Client$
|
|
2253
|
+
class Client$Z extends Client$_ {
|
|
2254
2254
|
constructor() {
|
|
2255
2255
|
super(...arguments);
|
|
2256
2256
|
/**
|
|
@@ -2619,7 +2619,7 @@ class Client$Y extends Client$Z {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
2621
|
// auto gen
|
|
2622
|
-
class Client$
|
|
2622
|
+
class Client$Y extends Client$Z {
|
|
2623
2623
|
constructor() {
|
|
2624
2624
|
super(...arguments);
|
|
2625
2625
|
/**
|
|
@@ -3845,7 +3845,7 @@ class Client$X extends Client$Y {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
|
|
3847
3847
|
// auto gen
|
|
3848
|
-
class Client$
|
|
3848
|
+
class Client$X extends Client$Y {
|
|
3849
3849
|
constructor() {
|
|
3850
3850
|
super(...arguments);
|
|
3851
3851
|
/**
|
|
@@ -4138,7 +4138,7 @@ class Client$W extends Client$X {
|
|
|
4138
4138
|
}),
|
|
4139
4139
|
},
|
|
4140
4140
|
/**
|
|
4141
|
-
*
|
|
4141
|
+
* 审批查询
|
|
4142
4142
|
*/
|
|
4143
4143
|
instance: {
|
|
4144
4144
|
/**
|
|
@@ -5107,7 +5107,7 @@ class Client$W extends Client$X {
|
|
|
5107
5107
|
}),
|
|
5108
5108
|
},
|
|
5109
5109
|
/**
|
|
5110
|
-
*
|
|
5110
|
+
* 审批查询
|
|
5111
5111
|
*/
|
|
5112
5112
|
instance: {
|
|
5113
5113
|
/**
|
|
@@ -5795,7 +5795,7 @@ class Client$W extends Client$X {
|
|
|
5795
5795
|
}
|
|
5796
5796
|
|
|
5797
5797
|
// auto gen
|
|
5798
|
-
class Client$
|
|
5798
|
+
class Client$W extends Client$X {
|
|
5799
5799
|
constructor() {
|
|
5800
5800
|
super(...arguments);
|
|
5801
5801
|
/**
|
|
@@ -7743,7 +7743,7 @@ class Client$V extends Client$W {
|
|
|
7743
7743
|
}
|
|
7744
7744
|
|
|
7745
7745
|
// auto gen
|
|
7746
|
-
class Client$
|
|
7746
|
+
class Client$V extends Client$W {
|
|
7747
7747
|
constructor() {
|
|
7748
7748
|
super(...arguments);
|
|
7749
7749
|
/**
|
|
@@ -7987,7 +7987,7 @@ class Client$U extends Client$V {
|
|
|
7987
7987
|
}
|
|
7988
7988
|
|
|
7989
7989
|
// auto gen
|
|
7990
|
-
class Client$
|
|
7990
|
+
class Client$U extends Client$V {
|
|
7991
7991
|
constructor() {
|
|
7992
7992
|
super(...arguments);
|
|
7993
7993
|
/**
|
|
@@ -8251,7 +8251,7 @@ class Client$T extends Client$U {
|
|
|
8251
8251
|
}
|
|
8252
8252
|
|
|
8253
8253
|
// auto gen
|
|
8254
|
-
class Client$
|
|
8254
|
+
class Client$T extends Client$U {
|
|
8255
8255
|
constructor() {
|
|
8256
8256
|
super(...arguments);
|
|
8257
8257
|
/**
|
|
@@ -8262,7 +8262,7 @@ class Client$S extends Client$T {
|
|
|
8262
8262
|
}
|
|
8263
8263
|
|
|
8264
8264
|
// auto gen
|
|
8265
|
-
class Client$
|
|
8265
|
+
class Client$S extends Client$T {
|
|
8266
8266
|
constructor() {
|
|
8267
8267
|
super(...arguments);
|
|
8268
8268
|
/**
|
|
@@ -9278,7 +9278,7 @@ class Client$R extends Client$S {
|
|
|
9278
9278
|
}
|
|
9279
9279
|
|
|
9280
9280
|
// auto gen
|
|
9281
|
-
class Client$
|
|
9281
|
+
class Client$R extends Client$S {
|
|
9282
9282
|
constructor() {
|
|
9283
9283
|
super(...arguments);
|
|
9284
9284
|
/**
|
|
@@ -12426,7 +12426,7 @@ class Client$Q extends Client$R {
|
|
|
12426
12426
|
}
|
|
12427
12427
|
|
|
12428
12428
|
// auto gen
|
|
12429
|
-
class Client$
|
|
12429
|
+
class Client$Q extends Client$R {
|
|
12430
12430
|
constructor() {
|
|
12431
12431
|
super(...arguments);
|
|
12432
12432
|
/**
|
|
@@ -12604,7 +12604,7 @@ class Client$P extends Client$Q {
|
|
|
12604
12604
|
}
|
|
12605
12605
|
|
|
12606
12606
|
// auto gen
|
|
12607
|
-
class Client$
|
|
12607
|
+
class Client$P extends Client$Q {
|
|
12608
12608
|
constructor() {
|
|
12609
12609
|
super(...arguments);
|
|
12610
12610
|
/**
|
|
@@ -12645,7 +12645,7 @@ class Client$O extends Client$P {
|
|
|
12645
12645
|
}
|
|
12646
12646
|
|
|
12647
12647
|
// auto gen
|
|
12648
|
-
class Client$
|
|
12648
|
+
class Client$O extends Client$P {
|
|
12649
12649
|
constructor() {
|
|
12650
12650
|
super(...arguments);
|
|
12651
12651
|
/**
|
|
@@ -15233,7 +15233,7 @@ class Client$N extends Client$O {
|
|
|
15233
15233
|
}
|
|
15234
15234
|
|
|
15235
15235
|
// auto gen
|
|
15236
|
-
class Client$
|
|
15236
|
+
class Client$N extends Client$O {
|
|
15237
15237
|
constructor() {
|
|
15238
15238
|
super(...arguments);
|
|
15239
15239
|
/**
|
|
@@ -15243,6 +15243,415 @@ class Client$M extends Client$N {
|
|
|
15243
15243
|
}
|
|
15244
15244
|
}
|
|
15245
15245
|
|
|
15246
|
+
// auto gen
|
|
15247
|
+
class Client$M extends Client$N {
|
|
15248
|
+
constructor() {
|
|
15249
|
+
super(...arguments);
|
|
15250
|
+
/**
|
|
15251
|
+
|
|
15252
|
+
*/
|
|
15253
|
+
this.compensation = {
|
|
15254
|
+
v1: {
|
|
15255
|
+
/**
|
|
15256
|
+
* archive
|
|
15257
|
+
*/
|
|
15258
|
+
archive: {
|
|
15259
|
+
/**
|
|
15260
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=archive&apiName=query&version=v1 click to debug }
|
|
15261
|
+
*
|
|
15262
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=compensation&resource=archive&version=v1 document }
|
|
15263
|
+
*/
|
|
15264
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15265
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15266
|
+
return this.httpInstance
|
|
15267
|
+
.request({
|
|
15268
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/archives/query`, path),
|
|
15269
|
+
method: "POST",
|
|
15270
|
+
data,
|
|
15271
|
+
params,
|
|
15272
|
+
headers,
|
|
15273
|
+
})
|
|
15274
|
+
.catch((e) => {
|
|
15275
|
+
this.logger.error(formatErrors(e));
|
|
15276
|
+
throw e;
|
|
15277
|
+
});
|
|
15278
|
+
}),
|
|
15279
|
+
},
|
|
15280
|
+
/**
|
|
15281
|
+
* change_reason
|
|
15282
|
+
*/
|
|
15283
|
+
changeReason: {
|
|
15284
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15285
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15286
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15287
|
+
const res = yield this.httpInstance
|
|
15288
|
+
.request({
|
|
15289
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
|
|
15290
|
+
method: "GET",
|
|
15291
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
15292
|
+
params: pickBy(innerPayload.params, identity),
|
|
15293
|
+
data,
|
|
15294
|
+
})
|
|
15295
|
+
.catch((e) => {
|
|
15296
|
+
this.logger.error(formatErrors(e));
|
|
15297
|
+
});
|
|
15298
|
+
return res;
|
|
15299
|
+
});
|
|
15300
|
+
const Iterable = {
|
|
15301
|
+
[Symbol.asyncIterator]() {
|
|
15302
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15303
|
+
let hasMore = true;
|
|
15304
|
+
let pageToken;
|
|
15305
|
+
while (hasMore) {
|
|
15306
|
+
try {
|
|
15307
|
+
const res = yield __await(sendRequest({
|
|
15308
|
+
headers,
|
|
15309
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15310
|
+
data,
|
|
15311
|
+
}));
|
|
15312
|
+
const _b = get(res, "data") || {}, {
|
|
15313
|
+
// @ts-ignore
|
|
15314
|
+
has_more,
|
|
15315
|
+
// @ts-ignore
|
|
15316
|
+
page_token,
|
|
15317
|
+
// @ts-ignore
|
|
15318
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15319
|
+
yield yield __await(rest);
|
|
15320
|
+
hasMore = Boolean(has_more);
|
|
15321
|
+
pageToken = page_token || next_page_token;
|
|
15322
|
+
}
|
|
15323
|
+
catch (e) {
|
|
15324
|
+
yield yield __await(null);
|
|
15325
|
+
break;
|
|
15326
|
+
}
|
|
15327
|
+
}
|
|
15328
|
+
});
|
|
15329
|
+
},
|
|
15330
|
+
};
|
|
15331
|
+
return Iterable;
|
|
15332
|
+
}),
|
|
15333
|
+
/**
|
|
15334
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=change_reason&apiName=list&version=v1 click to debug }
|
|
15335
|
+
*
|
|
15336
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=change_reason&version=v1 document }
|
|
15337
|
+
*/
|
|
15338
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15339
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15340
|
+
return this.httpInstance
|
|
15341
|
+
.request({
|
|
15342
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/change_reasons`, path),
|
|
15343
|
+
method: "GET",
|
|
15344
|
+
data,
|
|
15345
|
+
params,
|
|
15346
|
+
headers,
|
|
15347
|
+
})
|
|
15348
|
+
.catch((e) => {
|
|
15349
|
+
this.logger.error(formatErrors(e));
|
|
15350
|
+
throw e;
|
|
15351
|
+
});
|
|
15352
|
+
}),
|
|
15353
|
+
},
|
|
15354
|
+
/**
|
|
15355
|
+
* indicator
|
|
15356
|
+
*/
|
|
15357
|
+
indicator: {
|
|
15358
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15359
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15360
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15361
|
+
const res = yield this.httpInstance
|
|
15362
|
+
.request({
|
|
15363
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
|
|
15364
|
+
method: "GET",
|
|
15365
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
15366
|
+
params: pickBy(innerPayload.params, identity),
|
|
15367
|
+
data,
|
|
15368
|
+
})
|
|
15369
|
+
.catch((e) => {
|
|
15370
|
+
this.logger.error(formatErrors(e));
|
|
15371
|
+
});
|
|
15372
|
+
return res;
|
|
15373
|
+
});
|
|
15374
|
+
const Iterable = {
|
|
15375
|
+
[Symbol.asyncIterator]() {
|
|
15376
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15377
|
+
let hasMore = true;
|
|
15378
|
+
let pageToken;
|
|
15379
|
+
while (hasMore) {
|
|
15380
|
+
try {
|
|
15381
|
+
const res = yield __await(sendRequest({
|
|
15382
|
+
headers,
|
|
15383
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15384
|
+
data,
|
|
15385
|
+
}));
|
|
15386
|
+
const _b = get(res, "data") || {}, {
|
|
15387
|
+
// @ts-ignore
|
|
15388
|
+
has_more,
|
|
15389
|
+
// @ts-ignore
|
|
15390
|
+
page_token,
|
|
15391
|
+
// @ts-ignore
|
|
15392
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15393
|
+
yield yield __await(rest);
|
|
15394
|
+
hasMore = Boolean(has_more);
|
|
15395
|
+
pageToken = page_token || next_page_token;
|
|
15396
|
+
}
|
|
15397
|
+
catch (e) {
|
|
15398
|
+
yield yield __await(null);
|
|
15399
|
+
break;
|
|
15400
|
+
}
|
|
15401
|
+
}
|
|
15402
|
+
});
|
|
15403
|
+
},
|
|
15404
|
+
};
|
|
15405
|
+
return Iterable;
|
|
15406
|
+
}),
|
|
15407
|
+
/**
|
|
15408
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=indicator&apiName=list&version=v1 click to debug }
|
|
15409
|
+
*
|
|
15410
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=indicator&version=v1 document }
|
|
15411
|
+
*/
|
|
15412
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15413
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15414
|
+
return this.httpInstance
|
|
15415
|
+
.request({
|
|
15416
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/indicators`, path),
|
|
15417
|
+
method: "GET",
|
|
15418
|
+
data,
|
|
15419
|
+
params,
|
|
15420
|
+
headers,
|
|
15421
|
+
})
|
|
15422
|
+
.catch((e) => {
|
|
15423
|
+
this.logger.error(formatErrors(e));
|
|
15424
|
+
throw e;
|
|
15425
|
+
});
|
|
15426
|
+
}),
|
|
15427
|
+
},
|
|
15428
|
+
/**
|
|
15429
|
+
* item
|
|
15430
|
+
*/
|
|
15431
|
+
item: {
|
|
15432
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15433
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15434
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15435
|
+
const res = yield this.httpInstance
|
|
15436
|
+
.request({
|
|
15437
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
|
|
15438
|
+
method: "GET",
|
|
15439
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
15440
|
+
params: pickBy(innerPayload.params, identity),
|
|
15441
|
+
data,
|
|
15442
|
+
})
|
|
15443
|
+
.catch((e) => {
|
|
15444
|
+
this.logger.error(formatErrors(e));
|
|
15445
|
+
});
|
|
15446
|
+
return res;
|
|
15447
|
+
});
|
|
15448
|
+
const Iterable = {
|
|
15449
|
+
[Symbol.asyncIterator]() {
|
|
15450
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15451
|
+
let hasMore = true;
|
|
15452
|
+
let pageToken;
|
|
15453
|
+
while (hasMore) {
|
|
15454
|
+
try {
|
|
15455
|
+
const res = yield __await(sendRequest({
|
|
15456
|
+
headers,
|
|
15457
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15458
|
+
data,
|
|
15459
|
+
}));
|
|
15460
|
+
const _b = get(res, "data") || {}, {
|
|
15461
|
+
// @ts-ignore
|
|
15462
|
+
has_more,
|
|
15463
|
+
// @ts-ignore
|
|
15464
|
+
page_token,
|
|
15465
|
+
// @ts-ignore
|
|
15466
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15467
|
+
yield yield __await(rest);
|
|
15468
|
+
hasMore = Boolean(has_more);
|
|
15469
|
+
pageToken = page_token || next_page_token;
|
|
15470
|
+
}
|
|
15471
|
+
catch (e) {
|
|
15472
|
+
yield yield __await(null);
|
|
15473
|
+
break;
|
|
15474
|
+
}
|
|
15475
|
+
}
|
|
15476
|
+
});
|
|
15477
|
+
},
|
|
15478
|
+
};
|
|
15479
|
+
return Iterable;
|
|
15480
|
+
}),
|
|
15481
|
+
/**
|
|
15482
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item&apiName=list&version=v1 click to debug }
|
|
15483
|
+
*
|
|
15484
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item&version=v1 document }
|
|
15485
|
+
*/
|
|
15486
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15487
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15488
|
+
return this.httpInstance
|
|
15489
|
+
.request({
|
|
15490
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/items`, path),
|
|
15491
|
+
method: "GET",
|
|
15492
|
+
data,
|
|
15493
|
+
params,
|
|
15494
|
+
headers,
|
|
15495
|
+
})
|
|
15496
|
+
.catch((e) => {
|
|
15497
|
+
this.logger.error(formatErrors(e));
|
|
15498
|
+
throw e;
|
|
15499
|
+
});
|
|
15500
|
+
}),
|
|
15501
|
+
},
|
|
15502
|
+
/**
|
|
15503
|
+
* item_category
|
|
15504
|
+
*/
|
|
15505
|
+
itemCategory: {
|
|
15506
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15507
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15508
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15509
|
+
const res = yield this.httpInstance
|
|
15510
|
+
.request({
|
|
15511
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
|
|
15512
|
+
method: "GET",
|
|
15513
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
15514
|
+
params: pickBy(innerPayload.params, identity),
|
|
15515
|
+
data,
|
|
15516
|
+
})
|
|
15517
|
+
.catch((e) => {
|
|
15518
|
+
this.logger.error(formatErrors(e));
|
|
15519
|
+
});
|
|
15520
|
+
return res;
|
|
15521
|
+
});
|
|
15522
|
+
const Iterable = {
|
|
15523
|
+
[Symbol.asyncIterator]() {
|
|
15524
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15525
|
+
let hasMore = true;
|
|
15526
|
+
let pageToken;
|
|
15527
|
+
while (hasMore) {
|
|
15528
|
+
try {
|
|
15529
|
+
const res = yield __await(sendRequest({
|
|
15530
|
+
headers,
|
|
15531
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15532
|
+
data,
|
|
15533
|
+
}));
|
|
15534
|
+
const _b = get(res, "data") || {}, {
|
|
15535
|
+
// @ts-ignore
|
|
15536
|
+
has_more,
|
|
15537
|
+
// @ts-ignore
|
|
15538
|
+
page_token,
|
|
15539
|
+
// @ts-ignore
|
|
15540
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15541
|
+
yield yield __await(rest);
|
|
15542
|
+
hasMore = Boolean(has_more);
|
|
15543
|
+
pageToken = page_token || next_page_token;
|
|
15544
|
+
}
|
|
15545
|
+
catch (e) {
|
|
15546
|
+
yield yield __await(null);
|
|
15547
|
+
break;
|
|
15548
|
+
}
|
|
15549
|
+
}
|
|
15550
|
+
});
|
|
15551
|
+
},
|
|
15552
|
+
};
|
|
15553
|
+
return Iterable;
|
|
15554
|
+
}),
|
|
15555
|
+
/**
|
|
15556
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=item_category&apiName=list&version=v1 click to debug }
|
|
15557
|
+
*
|
|
15558
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=item_category&version=v1 document }
|
|
15559
|
+
*/
|
|
15560
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15561
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15562
|
+
return this.httpInstance
|
|
15563
|
+
.request({
|
|
15564
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/item_categories`, path),
|
|
15565
|
+
method: "GET",
|
|
15566
|
+
data,
|
|
15567
|
+
params,
|
|
15568
|
+
headers,
|
|
15569
|
+
})
|
|
15570
|
+
.catch((e) => {
|
|
15571
|
+
this.logger.error(formatErrors(e));
|
|
15572
|
+
throw e;
|
|
15573
|
+
});
|
|
15574
|
+
}),
|
|
15575
|
+
},
|
|
15576
|
+
/**
|
|
15577
|
+
* plan
|
|
15578
|
+
*/
|
|
15579
|
+
plan: {
|
|
15580
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15581
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15582
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
15583
|
+
const res = yield this.httpInstance
|
|
15584
|
+
.request({
|
|
15585
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
|
|
15586
|
+
method: "GET",
|
|
15587
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
15588
|
+
params: pickBy(innerPayload.params, identity),
|
|
15589
|
+
data,
|
|
15590
|
+
})
|
|
15591
|
+
.catch((e) => {
|
|
15592
|
+
this.logger.error(formatErrors(e));
|
|
15593
|
+
});
|
|
15594
|
+
return res;
|
|
15595
|
+
});
|
|
15596
|
+
const Iterable = {
|
|
15597
|
+
[Symbol.asyncIterator]() {
|
|
15598
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
15599
|
+
let hasMore = true;
|
|
15600
|
+
let pageToken;
|
|
15601
|
+
while (hasMore) {
|
|
15602
|
+
try {
|
|
15603
|
+
const res = yield __await(sendRequest({
|
|
15604
|
+
headers,
|
|
15605
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
15606
|
+
data,
|
|
15607
|
+
}));
|
|
15608
|
+
const _b = get(res, "data") || {}, {
|
|
15609
|
+
// @ts-ignore
|
|
15610
|
+
has_more,
|
|
15611
|
+
// @ts-ignore
|
|
15612
|
+
page_token,
|
|
15613
|
+
// @ts-ignore
|
|
15614
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
15615
|
+
yield yield __await(rest);
|
|
15616
|
+
hasMore = Boolean(has_more);
|
|
15617
|
+
pageToken = page_token || next_page_token;
|
|
15618
|
+
}
|
|
15619
|
+
catch (e) {
|
|
15620
|
+
yield yield __await(null);
|
|
15621
|
+
break;
|
|
15622
|
+
}
|
|
15623
|
+
}
|
|
15624
|
+
});
|
|
15625
|
+
},
|
|
15626
|
+
};
|
|
15627
|
+
return Iterable;
|
|
15628
|
+
}),
|
|
15629
|
+
/**
|
|
15630
|
+
* {@link https://open.feishu.cn/api-explorer?project=compensation&resource=plan&apiName=list&version=v1 click to debug }
|
|
15631
|
+
*
|
|
15632
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=compensation&resource=plan&version=v1 document }
|
|
15633
|
+
*/
|
|
15634
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
15635
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
15636
|
+
return this.httpInstance
|
|
15637
|
+
.request({
|
|
15638
|
+
url: fillApiPath(`${this.domain}/open-apis/compensation/v1/plans`, path),
|
|
15639
|
+
method: "GET",
|
|
15640
|
+
data,
|
|
15641
|
+
params,
|
|
15642
|
+
headers,
|
|
15643
|
+
})
|
|
15644
|
+
.catch((e) => {
|
|
15645
|
+
this.logger.error(formatErrors(e));
|
|
15646
|
+
throw e;
|
|
15647
|
+
});
|
|
15648
|
+
}),
|
|
15649
|
+
},
|
|
15650
|
+
},
|
|
15651
|
+
};
|
|
15652
|
+
}
|
|
15653
|
+
}
|
|
15654
|
+
|
|
15246
15655
|
// auto gen
|
|
15247
15656
|
class Client$L extends Client$M {
|
|
15248
15657
|
constructor() {
|
|
@@ -20130,6 +20539,55 @@ class Client$I extends Client$J {
|
|
|
20130
20539
|
});
|
|
20131
20540
|
}),
|
|
20132
20541
|
},
|
|
20542
|
+
/**
|
|
20543
|
+
* authorization
|
|
20544
|
+
*/
|
|
20545
|
+
authorization: {
|
|
20546
|
+
/**
|
|
20547
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
|
|
20548
|
+
*
|
|
20549
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
|
|
20550
|
+
*
|
|
20551
|
+
* 根据ID查询单个用户授权
|
|
20552
|
+
*/
|
|
20553
|
+
getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20554
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20555
|
+
return this.httpInstance
|
|
20556
|
+
.request({
|
|
20557
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
|
|
20558
|
+
method: "GET",
|
|
20559
|
+
data,
|
|
20560
|
+
params,
|
|
20561
|
+
headers,
|
|
20562
|
+
})
|
|
20563
|
+
.catch((e) => {
|
|
20564
|
+
this.logger.error(formatErrors(e));
|
|
20565
|
+
throw e;
|
|
20566
|
+
});
|
|
20567
|
+
}),
|
|
20568
|
+
/**
|
|
20569
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
|
|
20570
|
+
*
|
|
20571
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
|
|
20572
|
+
*
|
|
20573
|
+
* 批量查询用户授权
|
|
20574
|
+
*/
|
|
20575
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
20576
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
20577
|
+
return this.httpInstance
|
|
20578
|
+
.request({
|
|
20579
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
|
|
20580
|
+
method: "GET",
|
|
20581
|
+
data,
|
|
20582
|
+
params,
|
|
20583
|
+
headers,
|
|
20584
|
+
})
|
|
20585
|
+
.catch((e) => {
|
|
20586
|
+
this.logger.error(formatErrors(e));
|
|
20587
|
+
throw e;
|
|
20588
|
+
});
|
|
20589
|
+
}),
|
|
20590
|
+
},
|
|
20133
20591
|
/**
|
|
20134
20592
|
* common_data.id
|
|
20135
20593
|
*/
|
|
@@ -21993,6 +22451,30 @@ class Client$I extends Client$J {
|
|
|
21993
22451
|
* 个人信息
|
|
21994
22452
|
*/
|
|
21995
22453
|
person: {
|
|
22454
|
+
/**
|
|
22455
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
|
|
22456
|
+
*
|
|
22457
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
|
|
22458
|
+
*
|
|
22459
|
+
* 创建个人信息
|
|
22460
|
+
*
|
|
22461
|
+
* 创建人员的个人信息
|
|
22462
|
+
*/
|
|
22463
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22464
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22465
|
+
return this.httpInstance
|
|
22466
|
+
.request({
|
|
22467
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
|
|
22468
|
+
method: "POST",
|
|
22469
|
+
data,
|
|
22470
|
+
params,
|
|
22471
|
+
headers,
|
|
22472
|
+
})
|
|
22473
|
+
.catch((e) => {
|
|
22474
|
+
this.logger.error(formatErrors(e));
|
|
22475
|
+
throw e;
|
|
22476
|
+
});
|
|
22477
|
+
}),
|
|
21996
22478
|
/**
|
|
21997
22479
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
|
|
21998
22480
|
*
|
|
@@ -22041,6 +22523,30 @@ class Client$I extends Client$J {
|
|
|
22041
22523
|
throw e;
|
|
22042
22524
|
});
|
|
22043
22525
|
}),
|
|
22526
|
+
/**
|
|
22527
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
|
|
22528
|
+
*
|
|
22529
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
|
|
22530
|
+
*
|
|
22531
|
+
* 更新个人信息
|
|
22532
|
+
*
|
|
22533
|
+
* 更新个人信息
|
|
22534
|
+
*/
|
|
22535
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22536
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22537
|
+
return this.httpInstance
|
|
22538
|
+
.request({
|
|
22539
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
|
|
22540
|
+
method: "PATCH",
|
|
22541
|
+
data,
|
|
22542
|
+
params,
|
|
22543
|
+
headers,
|
|
22544
|
+
})
|
|
22545
|
+
.catch((e) => {
|
|
22546
|
+
this.logger.error(formatErrors(e));
|
|
22547
|
+
throw e;
|
|
22548
|
+
});
|
|
22549
|
+
}),
|
|
22044
22550
|
/**
|
|
22045
22551
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
|
|
22046
22552
|
*
|
|
@@ -22569,6 +23075,55 @@ class Client$I extends Client$J {
|
|
|
22569
23075
|
});
|
|
22570
23076
|
}),
|
|
22571
23077
|
},
|
|
23078
|
+
/**
|
|
23079
|
+
* authorization
|
|
23080
|
+
*/
|
|
23081
|
+
authorization: {
|
|
23082
|
+
/**
|
|
23083
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=get_by_param&version=v1 click to debug }
|
|
23084
|
+
*
|
|
23085
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get_by_param&project=corehr&resource=authorization&version=v1 document }
|
|
23086
|
+
*
|
|
23087
|
+
* 根据ID查询单个用户授权
|
|
23088
|
+
*/
|
|
23089
|
+
getByParam: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23090
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23091
|
+
return this.httpInstance
|
|
23092
|
+
.request({
|
|
23093
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`, path),
|
|
23094
|
+
method: "GET",
|
|
23095
|
+
data,
|
|
23096
|
+
params,
|
|
23097
|
+
headers,
|
|
23098
|
+
})
|
|
23099
|
+
.catch((e) => {
|
|
23100
|
+
this.logger.error(formatErrors(e));
|
|
23101
|
+
throw e;
|
|
23102
|
+
});
|
|
23103
|
+
}),
|
|
23104
|
+
/**
|
|
23105
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=authorization&apiName=query&version=v1 click to debug }
|
|
23106
|
+
*
|
|
23107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=authorization&version=v1 document }
|
|
23108
|
+
*
|
|
23109
|
+
* 批量查询用户授权
|
|
23110
|
+
*/
|
|
23111
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
23112
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
23113
|
+
return this.httpInstance
|
|
23114
|
+
.request({
|
|
23115
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/authorizations/query`, path),
|
|
23116
|
+
method: "GET",
|
|
23117
|
+
data,
|
|
23118
|
+
params,
|
|
23119
|
+
headers,
|
|
23120
|
+
})
|
|
23121
|
+
.catch((e) => {
|
|
23122
|
+
this.logger.error(formatErrors(e));
|
|
23123
|
+
throw e;
|
|
23124
|
+
});
|
|
23125
|
+
}),
|
|
23126
|
+
},
|
|
22572
23127
|
/**
|
|
22573
23128
|
* common_data.id
|
|
22574
23129
|
*/
|
|
@@ -24432,6 +24987,30 @@ class Client$I extends Client$J {
|
|
|
24432
24987
|
* 个人信息
|
|
24433
24988
|
*/
|
|
24434
24989
|
person: {
|
|
24990
|
+
/**
|
|
24991
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=create&version=v1 click to debug }
|
|
24992
|
+
*
|
|
24993
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create document }
|
|
24994
|
+
*
|
|
24995
|
+
* 创建个人信息
|
|
24996
|
+
*
|
|
24997
|
+
* 创建人员的个人信息
|
|
24998
|
+
*/
|
|
24999
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25000
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25001
|
+
return this.httpInstance
|
|
25002
|
+
.request({
|
|
25003
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons`, path),
|
|
25004
|
+
method: "POST",
|
|
25005
|
+
data,
|
|
25006
|
+
params,
|
|
25007
|
+
headers,
|
|
25008
|
+
})
|
|
25009
|
+
.catch((e) => {
|
|
25010
|
+
this.logger.error(formatErrors(e));
|
|
25011
|
+
throw e;
|
|
25012
|
+
});
|
|
25013
|
+
}),
|
|
24435
25014
|
/**
|
|
24436
25015
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=delete&version=v1 click to debug }
|
|
24437
25016
|
*
|
|
@@ -24480,6 +25059,30 @@ class Client$I extends Client$J {
|
|
|
24480
25059
|
throw e;
|
|
24481
25060
|
});
|
|
24482
25061
|
}),
|
|
25062
|
+
/**
|
|
25063
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=patch&version=v1 click to debug }
|
|
25064
|
+
*
|
|
25065
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch document }
|
|
25066
|
+
*
|
|
25067
|
+
* 更新个人信息
|
|
25068
|
+
*
|
|
25069
|
+
* 更新个人信息
|
|
25070
|
+
*/
|
|
25071
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25072
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25073
|
+
return this.httpInstance
|
|
25074
|
+
.request({
|
|
25075
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/persons/:person_id`, path),
|
|
25076
|
+
method: "PATCH",
|
|
25077
|
+
data,
|
|
25078
|
+
params,
|
|
25079
|
+
headers,
|
|
25080
|
+
})
|
|
25081
|
+
.catch((e) => {
|
|
25082
|
+
this.logger.error(formatErrors(e));
|
|
25083
|
+
throw e;
|
|
25084
|
+
});
|
|
25085
|
+
}),
|
|
24483
25086
|
/**
|
|
24484
25087
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=person&apiName=upload&version=v1 click to debug }
|
|
24485
25088
|
*
|
|
@@ -25977,6 +26580,28 @@ class Client$I extends Client$J {
|
|
|
25977
26580
|
throw e;
|
|
25978
26581
|
});
|
|
25979
26582
|
}),
|
|
26583
|
+
/**
|
|
26584
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_multi_timeline&version=v2 click to debug }
|
|
26585
|
+
*
|
|
26586
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query_multi_timeline&project=corehr&resource=department&version=v2 document }
|
|
26587
|
+
*
|
|
26588
|
+
* 查询任意日期部门信息
|
|
26589
|
+
*/
|
|
26590
|
+
queryMultiTimeline: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
26591
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
26592
|
+
return this.httpInstance
|
|
26593
|
+
.request({
|
|
26594
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`, path),
|
|
26595
|
+
method: "POST",
|
|
26596
|
+
data,
|
|
26597
|
+
params,
|
|
26598
|
+
headers,
|
|
26599
|
+
})
|
|
26600
|
+
.catch((e) => {
|
|
26601
|
+
this.logger.error(formatErrors(e));
|
|
26602
|
+
throw e;
|
|
26603
|
+
});
|
|
26604
|
+
}),
|
|
25980
26605
|
/**
|
|
25981
26606
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_timeline&version=v2 click to debug }
|
|
25982
26607
|
*
|
|
@@ -26391,6 +27016,33 @@ class Client$I extends Client$J {
|
|
|
26391
27016
|
});
|
|
26392
27017
|
}),
|
|
26393
27018
|
},
|
|
27019
|
+
/**
|
|
27020
|
+
* job_grade
|
|
27021
|
+
*/
|
|
27022
|
+
jobGrade: {
|
|
27023
|
+
/**
|
|
27024
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=job_grade&apiName=query&version=v2 click to debug }
|
|
27025
|
+
*
|
|
27026
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=query&project=corehr&resource=job_grade&version=v2 document }
|
|
27027
|
+
*
|
|
27028
|
+
* 查询职等信息
|
|
27029
|
+
*/
|
|
27030
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27031
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27032
|
+
return this.httpInstance
|
|
27033
|
+
.request({
|
|
27034
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/job_grades/query`, path),
|
|
27035
|
+
method: "POST",
|
|
27036
|
+
data,
|
|
27037
|
+
params,
|
|
27038
|
+
headers,
|
|
27039
|
+
})
|
|
27040
|
+
.catch((e) => {
|
|
27041
|
+
this.logger.error(formatErrors(e));
|
|
27042
|
+
throw e;
|
|
27043
|
+
});
|
|
27044
|
+
}),
|
|
27045
|
+
},
|
|
26394
27046
|
/**
|
|
26395
27047
|
* job_level
|
|
26396
27048
|
*/
|
|
@@ -28613,7 +29265,7 @@ class Client$E extends Client$F {
|
|
|
28613
29265
|
}),
|
|
28614
29266
|
},
|
|
28615
29267
|
/**
|
|
28616
|
-
*
|
|
29268
|
+
* 异步任务状态
|
|
28617
29269
|
*/
|
|
28618
29270
|
file: {
|
|
28619
29271
|
/**
|
|
@@ -30312,7 +30964,7 @@ class Client$E extends Client$F {
|
|
|
30312
30964
|
}),
|
|
30313
30965
|
},
|
|
30314
30966
|
/**
|
|
30315
|
-
*
|
|
30967
|
+
* 异步任务状态
|
|
30316
30968
|
*/
|
|
30317
30969
|
file: {
|
|
30318
30970
|
/**
|
|
@@ -37443,6 +38095,31 @@ class Client$u extends Client$v {
|
|
|
37443
38095
|
});
|
|
37444
38096
|
}),
|
|
37445
38097
|
},
|
|
38098
|
+
/**
|
|
38099
|
+
* role
|
|
38100
|
+
*/
|
|
38101
|
+
role: {
|
|
38102
|
+
/**
|
|
38103
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
|
|
38104
|
+
*
|
|
38105
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
|
|
38106
|
+
*/
|
|
38107
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
38108
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
38109
|
+
return this.httpInstance
|
|
38110
|
+
.request({
|
|
38111
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
|
|
38112
|
+
method: "GET",
|
|
38113
|
+
data,
|
|
38114
|
+
params,
|
|
38115
|
+
headers,
|
|
38116
|
+
})
|
|
38117
|
+
.catch((e) => {
|
|
38118
|
+
this.logger.error(formatErrors(e));
|
|
38119
|
+
throw e;
|
|
38120
|
+
});
|
|
38121
|
+
}),
|
|
38122
|
+
},
|
|
37446
38123
|
/**
|
|
37447
38124
|
* 人才
|
|
37448
38125
|
*/
|
|
@@ -39787,6 +40464,31 @@ class Client$u extends Client$v {
|
|
|
39787
40464
|
});
|
|
39788
40465
|
}),
|
|
39789
40466
|
},
|
|
40467
|
+
/**
|
|
40468
|
+
* role
|
|
40469
|
+
*/
|
|
40470
|
+
role: {
|
|
40471
|
+
/**
|
|
40472
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=role&apiName=get&version=v1 click to debug }
|
|
40473
|
+
*
|
|
40474
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=role&version=v1 document }
|
|
40475
|
+
*/
|
|
40476
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
40477
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
40478
|
+
return this.httpInstance
|
|
40479
|
+
.request({
|
|
40480
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/roles/:role_id`, path),
|
|
40481
|
+
method: "GET",
|
|
40482
|
+
data,
|
|
40483
|
+
params,
|
|
40484
|
+
headers,
|
|
40485
|
+
})
|
|
40486
|
+
.catch((e) => {
|
|
40487
|
+
this.logger.error(formatErrors(e));
|
|
40488
|
+
throw e;
|
|
40489
|
+
});
|
|
40490
|
+
}),
|
|
40491
|
+
},
|
|
39790
40492
|
/**
|
|
39791
40493
|
* 人才
|
|
39792
40494
|
*/
|
|
@@ -41335,7 +42037,7 @@ class Client$s extends Client$t {
|
|
|
41335
42037
|
}),
|
|
41336
42038
|
},
|
|
41337
42039
|
/**
|
|
41338
|
-
*
|
|
42040
|
+
* 消息
|
|
41339
42041
|
*/
|
|
41340
42042
|
message: {
|
|
41341
42043
|
/**
|
|
@@ -43405,7 +44107,7 @@ class Client$s extends Client$t {
|
|
|
43405
44107
|
}),
|
|
43406
44108
|
},
|
|
43407
44109
|
/**
|
|
43408
|
-
*
|
|
44110
|
+
* 消息
|
|
43409
44111
|
*/
|
|
43410
44112
|
message: {
|
|
43411
44113
|
/**
|