@larksuiteoapi/node-sdk 1.33.0 → 1.34.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 +829 -138
- package/lib/index.js +829 -138
- package/package.json +1 -1
- package/types/index.d.ts +1381 -297
package/lib/index.js
CHANGED
|
@@ -3297,6 +3297,51 @@ class Client$Y extends Client$Z {
|
|
|
3297
3297
|
});
|
|
3298
3298
|
}),
|
|
3299
3299
|
},
|
|
3300
|
+
/**
|
|
3301
|
+
* scope
|
|
3302
|
+
*/
|
|
3303
|
+
scope: {
|
|
3304
|
+
/**
|
|
3305
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=apply&version=v6 click to debug }
|
|
3306
|
+
*
|
|
3307
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=apply&project=application&resource=scope&version=v6 document }
|
|
3308
|
+
*/
|
|
3309
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3310
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3311
|
+
return this.httpInstance
|
|
3312
|
+
.request({
|
|
3313
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes/apply`, path),
|
|
3314
|
+
method: "POST",
|
|
3315
|
+
data,
|
|
3316
|
+
params,
|
|
3317
|
+
headers,
|
|
3318
|
+
})
|
|
3319
|
+
.catch((e) => {
|
|
3320
|
+
this.logger.error(formatErrors(e));
|
|
3321
|
+
throw e;
|
|
3322
|
+
});
|
|
3323
|
+
}),
|
|
3324
|
+
/**
|
|
3325
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=list&version=v6 click to debug }
|
|
3326
|
+
*
|
|
3327
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=application&resource=scope&version=v6 document }
|
|
3328
|
+
*/
|
|
3329
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3330
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3331
|
+
return this.httpInstance
|
|
3332
|
+
.request({
|
|
3333
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes`, path),
|
|
3334
|
+
method: "GET",
|
|
3335
|
+
data,
|
|
3336
|
+
params,
|
|
3337
|
+
headers,
|
|
3338
|
+
})
|
|
3339
|
+
.catch((e) => {
|
|
3340
|
+
this.logger.error(formatErrors(e));
|
|
3341
|
+
throw e;
|
|
3342
|
+
});
|
|
3343
|
+
}),
|
|
3344
|
+
},
|
|
3300
3345
|
v6: {
|
|
3301
3346
|
/**
|
|
3302
3347
|
* 应用红点
|
|
@@ -3930,6 +3975,51 @@ class Client$Y extends Client$Z {
|
|
|
3930
3975
|
});
|
|
3931
3976
|
}),
|
|
3932
3977
|
},
|
|
3978
|
+
/**
|
|
3979
|
+
* scope
|
|
3980
|
+
*/
|
|
3981
|
+
scope: {
|
|
3982
|
+
/**
|
|
3983
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=apply&version=v6 click to debug }
|
|
3984
|
+
*
|
|
3985
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=apply&project=application&resource=scope&version=v6 document }
|
|
3986
|
+
*/
|
|
3987
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3988
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3989
|
+
return this.httpInstance
|
|
3990
|
+
.request({
|
|
3991
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes/apply`, path),
|
|
3992
|
+
method: "POST",
|
|
3993
|
+
data,
|
|
3994
|
+
params,
|
|
3995
|
+
headers,
|
|
3996
|
+
})
|
|
3997
|
+
.catch((e) => {
|
|
3998
|
+
this.logger.error(formatErrors(e));
|
|
3999
|
+
throw e;
|
|
4000
|
+
});
|
|
4001
|
+
}),
|
|
4002
|
+
/**
|
|
4003
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=list&version=v6 click to debug }
|
|
4004
|
+
*
|
|
4005
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=application&resource=scope&version=v6 document }
|
|
4006
|
+
*/
|
|
4007
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4008
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4009
|
+
return this.httpInstance
|
|
4010
|
+
.request({
|
|
4011
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes`, path),
|
|
4012
|
+
method: "GET",
|
|
4013
|
+
data,
|
|
4014
|
+
params,
|
|
4015
|
+
headers,
|
|
4016
|
+
})
|
|
4017
|
+
.catch((e) => {
|
|
4018
|
+
this.logger.error(formatErrors(e));
|
|
4019
|
+
throw e;
|
|
4020
|
+
});
|
|
4021
|
+
}),
|
|
4022
|
+
},
|
|
3933
4023
|
},
|
|
3934
4024
|
};
|
|
3935
4025
|
}
|
|
@@ -4714,7 +4804,7 @@ class Client$X extends Client$Y {
|
|
|
4714
4804
|
}),
|
|
4715
4805
|
},
|
|
4716
4806
|
/**
|
|
4717
|
-
*
|
|
4807
|
+
* 审批查询
|
|
4718
4808
|
*/
|
|
4719
4809
|
task: {
|
|
4720
4810
|
/**
|
|
@@ -5683,7 +5773,7 @@ class Client$X extends Client$Y {
|
|
|
5683
5773
|
}),
|
|
5684
5774
|
},
|
|
5685
5775
|
/**
|
|
5686
|
-
*
|
|
5776
|
+
* 审批查询
|
|
5687
5777
|
*/
|
|
5688
5778
|
task: {
|
|
5689
5779
|
/**
|
|
@@ -22577,6 +22667,26 @@ class Client$I extends Client$J {
|
|
|
22577
22667
|
* 休假管理
|
|
22578
22668
|
*/
|
|
22579
22669
|
leave: {
|
|
22670
|
+
/**
|
|
22671
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=calendar_by_scope&version=v1 click to debug }
|
|
22672
|
+
*
|
|
22673
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=calendar_by_scope&project=corehr&resource=leave&version=v1 document }
|
|
22674
|
+
*/
|
|
22675
|
+
calendarByScope: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22676
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22677
|
+
return this.httpInstance
|
|
22678
|
+
.request({
|
|
22679
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`, path),
|
|
22680
|
+
method: "GET",
|
|
22681
|
+
data,
|
|
22682
|
+
params,
|
|
22683
|
+
headers,
|
|
22684
|
+
})
|
|
22685
|
+
.catch((e) => {
|
|
22686
|
+
this.logger.error(formatErrors(e));
|
|
22687
|
+
throw e;
|
|
22688
|
+
});
|
|
22689
|
+
}),
|
|
22580
22690
|
/**
|
|
22581
22691
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_balances&version=v1 click to debug }
|
|
22582
22692
|
*
|
|
@@ -25224,6 +25334,26 @@ class Client$I extends Client$J {
|
|
|
25224
25334
|
* 休假管理
|
|
25225
25335
|
*/
|
|
25226
25336
|
leave: {
|
|
25337
|
+
/**
|
|
25338
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=calendar_by_scope&version=v1 click to debug }
|
|
25339
|
+
*
|
|
25340
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=calendar_by_scope&project=corehr&resource=leave&version=v1 document }
|
|
25341
|
+
*/
|
|
25342
|
+
calendarByScope: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25343
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25344
|
+
return this.httpInstance
|
|
25345
|
+
.request({
|
|
25346
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`, path),
|
|
25347
|
+
method: "GET",
|
|
25348
|
+
data,
|
|
25349
|
+
params,
|
|
25350
|
+
headers,
|
|
25351
|
+
})
|
|
25352
|
+
.catch((e) => {
|
|
25353
|
+
this.logger.error(formatErrors(e));
|
|
25354
|
+
throw e;
|
|
25355
|
+
});
|
|
25356
|
+
}),
|
|
25227
25357
|
/**
|
|
25228
25358
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_balances&version=v1 click to debug }
|
|
25229
25359
|
*
|
|
@@ -27277,6 +27407,28 @@ class Client$I extends Client$J {
|
|
|
27277
27407
|
throw e;
|
|
27278
27408
|
});
|
|
27279
27409
|
}),
|
|
27410
|
+
/**
|
|
27411
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=delete&version=v2 click to debug }
|
|
27412
|
+
*
|
|
27413
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=department&version=v2 document }
|
|
27414
|
+
*
|
|
27415
|
+
* 删除部门数据
|
|
27416
|
+
*/
|
|
27417
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27418
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27419
|
+
return this.httpInstance
|
|
27420
|
+
.request({
|
|
27421
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/:department_id`, path),
|
|
27422
|
+
method: "DELETE",
|
|
27423
|
+
data,
|
|
27424
|
+
params,
|
|
27425
|
+
headers,
|
|
27426
|
+
})
|
|
27427
|
+
.catch((e) => {
|
|
27428
|
+
this.logger.error(formatErrors(e));
|
|
27429
|
+
throw e;
|
|
27430
|
+
});
|
|
27431
|
+
}),
|
|
27280
27432
|
/**
|
|
27281
27433
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=parents&version=v2 click to debug }
|
|
27282
27434
|
*
|
|
@@ -27297,6 +27449,28 @@ class Client$I extends Client$J {
|
|
|
27297
27449
|
throw e;
|
|
27298
27450
|
});
|
|
27299
27451
|
}),
|
|
27452
|
+
/**
|
|
27453
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=patch&version=v2 click to debug }
|
|
27454
|
+
*
|
|
27455
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=department&version=v2 document }
|
|
27456
|
+
*
|
|
27457
|
+
* 更新部门数据
|
|
27458
|
+
*/
|
|
27459
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27460
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27461
|
+
return this.httpInstance
|
|
27462
|
+
.request({
|
|
27463
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/:department_id`, path),
|
|
27464
|
+
method: "PATCH",
|
|
27465
|
+
data,
|
|
27466
|
+
params,
|
|
27467
|
+
headers,
|
|
27468
|
+
})
|
|
27469
|
+
.catch((e) => {
|
|
27470
|
+
this.logger.error(formatErrors(e));
|
|
27471
|
+
throw e;
|
|
27472
|
+
});
|
|
27473
|
+
}),
|
|
27300
27474
|
/**
|
|
27301
27475
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_multi_timeline&version=v2 click to debug }
|
|
27302
27476
|
*
|
|
@@ -30202,7 +30376,7 @@ class Client$E extends Client$F {
|
|
|
30202
30376
|
}),
|
|
30203
30377
|
},
|
|
30204
30378
|
/**
|
|
30205
|
-
*
|
|
30379
|
+
* 上传
|
|
30206
30380
|
*/
|
|
30207
30381
|
file: {
|
|
30208
30382
|
/**
|
|
@@ -31921,7 +32095,7 @@ class Client$E extends Client$F {
|
|
|
31921
32095
|
}),
|
|
31922
32096
|
},
|
|
31923
32097
|
/**
|
|
31924
|
-
*
|
|
32098
|
+
* 上传
|
|
31925
32099
|
*/
|
|
31926
32100
|
file: {
|
|
31927
32101
|
/**
|
|
@@ -37064,7 +37238,7 @@ class Client$u extends Client$v {
|
|
|
37064
37238
|
}),
|
|
37065
37239
|
},
|
|
37066
37240
|
/**
|
|
37067
|
-
*
|
|
37241
|
+
* 投递
|
|
37068
37242
|
*/
|
|
37069
37243
|
application: {
|
|
37070
37244
|
/**
|
|
@@ -38927,6 +39101,100 @@ class Client$u extends Client$v {
|
|
|
38927
39101
|
});
|
|
38928
39102
|
}),
|
|
38929
39103
|
},
|
|
39104
|
+
/**
|
|
39105
|
+
* interviewer
|
|
39106
|
+
*/
|
|
39107
|
+
interviewer: {
|
|
39108
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39109
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39110
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
39111
|
+
const res = yield this.httpInstance
|
|
39112
|
+
.request({
|
|
39113
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
39114
|
+
method: "GET",
|
|
39115
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
39116
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
39117
|
+
data,
|
|
39118
|
+
})
|
|
39119
|
+
.catch((e) => {
|
|
39120
|
+
this.logger.error(formatErrors(e));
|
|
39121
|
+
});
|
|
39122
|
+
return res;
|
|
39123
|
+
});
|
|
39124
|
+
const Iterable = {
|
|
39125
|
+
[Symbol.asyncIterator]() {
|
|
39126
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
39127
|
+
let hasMore = true;
|
|
39128
|
+
let pageToken;
|
|
39129
|
+
while (hasMore) {
|
|
39130
|
+
try {
|
|
39131
|
+
const res = yield __await(sendRequest({
|
|
39132
|
+
headers,
|
|
39133
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
39134
|
+
data,
|
|
39135
|
+
}));
|
|
39136
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
39137
|
+
// @ts-ignore
|
|
39138
|
+
has_more,
|
|
39139
|
+
// @ts-ignore
|
|
39140
|
+
page_token,
|
|
39141
|
+
// @ts-ignore
|
|
39142
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
39143
|
+
yield yield __await(rest);
|
|
39144
|
+
hasMore = Boolean(has_more);
|
|
39145
|
+
pageToken = page_token || next_page_token;
|
|
39146
|
+
}
|
|
39147
|
+
catch (e) {
|
|
39148
|
+
yield yield __await(null);
|
|
39149
|
+
break;
|
|
39150
|
+
}
|
|
39151
|
+
}
|
|
39152
|
+
});
|
|
39153
|
+
},
|
|
39154
|
+
};
|
|
39155
|
+
return Iterable;
|
|
39156
|
+
}),
|
|
39157
|
+
/**
|
|
39158
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=list&version=v1 click to debug }
|
|
39159
|
+
*
|
|
39160
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interviewer&version=v1 document }
|
|
39161
|
+
*/
|
|
39162
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39163
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39164
|
+
return this.httpInstance
|
|
39165
|
+
.request({
|
|
39166
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
39167
|
+
method: "GET",
|
|
39168
|
+
data,
|
|
39169
|
+
params,
|
|
39170
|
+
headers,
|
|
39171
|
+
})
|
|
39172
|
+
.catch((e) => {
|
|
39173
|
+
this.logger.error(formatErrors(e));
|
|
39174
|
+
throw e;
|
|
39175
|
+
});
|
|
39176
|
+
}),
|
|
39177
|
+
/**
|
|
39178
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=patch&version=v1 click to debug }
|
|
39179
|
+
*
|
|
39180
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=interviewer&version=v1 document }
|
|
39181
|
+
*/
|
|
39182
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39183
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39184
|
+
return this.httpInstance
|
|
39185
|
+
.request({
|
|
39186
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`, path),
|
|
39187
|
+
method: "PATCH",
|
|
39188
|
+
data,
|
|
39189
|
+
params,
|
|
39190
|
+
headers,
|
|
39191
|
+
})
|
|
39192
|
+
.catch((e) => {
|
|
39193
|
+
this.logger.error(formatErrors(e));
|
|
39194
|
+
throw e;
|
|
39195
|
+
});
|
|
39196
|
+
}),
|
|
39197
|
+
},
|
|
38930
39198
|
/**
|
|
38931
39199
|
* 职位
|
|
38932
39200
|
*/
|
|
@@ -39686,6 +39954,31 @@ class Client$u extends Client$v {
|
|
|
39686
39954
|
});
|
|
39687
39955
|
}),
|
|
39688
39956
|
},
|
|
39957
|
+
/**
|
|
39958
|
+
* minutes
|
|
39959
|
+
*/
|
|
39960
|
+
minutes: {
|
|
39961
|
+
/**
|
|
39962
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=minutes&apiName=get&version=v1 click to debug }
|
|
39963
|
+
*
|
|
39964
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=minutes&version=v1 document }
|
|
39965
|
+
*/
|
|
39966
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39967
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39968
|
+
return this.httpInstance
|
|
39969
|
+
.request({
|
|
39970
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/minutes`, path),
|
|
39971
|
+
method: "GET",
|
|
39972
|
+
data,
|
|
39973
|
+
params,
|
|
39974
|
+
headers,
|
|
39975
|
+
})
|
|
39976
|
+
.catch((e) => {
|
|
39977
|
+
this.logger.error(formatErrors(e));
|
|
39978
|
+
throw e;
|
|
39979
|
+
});
|
|
39980
|
+
}),
|
|
39981
|
+
},
|
|
39689
39982
|
/**
|
|
39690
39983
|
* 备注
|
|
39691
39984
|
*/
|
|
@@ -41419,6 +41712,84 @@ class Client$u extends Client$v {
|
|
|
41419
41712
|
});
|
|
41420
41713
|
}),
|
|
41421
41714
|
},
|
|
41715
|
+
/**
|
|
41716
|
+
* 权限
|
|
41717
|
+
*/
|
|
41718
|
+
userRole: {
|
|
41719
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41720
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41721
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
41722
|
+
const res = yield this.httpInstance
|
|
41723
|
+
.request({
|
|
41724
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
41725
|
+
method: "GET",
|
|
41726
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
41727
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
41728
|
+
data,
|
|
41729
|
+
})
|
|
41730
|
+
.catch((e) => {
|
|
41731
|
+
this.logger.error(formatErrors(e));
|
|
41732
|
+
});
|
|
41733
|
+
return res;
|
|
41734
|
+
});
|
|
41735
|
+
const Iterable = {
|
|
41736
|
+
[Symbol.asyncIterator]() {
|
|
41737
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
41738
|
+
let hasMore = true;
|
|
41739
|
+
let pageToken;
|
|
41740
|
+
while (hasMore) {
|
|
41741
|
+
try {
|
|
41742
|
+
const res = yield __await(sendRequest({
|
|
41743
|
+
headers,
|
|
41744
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
41745
|
+
data,
|
|
41746
|
+
}));
|
|
41747
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
41748
|
+
// @ts-ignore
|
|
41749
|
+
has_more,
|
|
41750
|
+
// @ts-ignore
|
|
41751
|
+
page_token,
|
|
41752
|
+
// @ts-ignore
|
|
41753
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
41754
|
+
yield yield __await(rest);
|
|
41755
|
+
hasMore = Boolean(has_more);
|
|
41756
|
+
pageToken = page_token || next_page_token;
|
|
41757
|
+
}
|
|
41758
|
+
catch (e) {
|
|
41759
|
+
yield yield __await(null);
|
|
41760
|
+
break;
|
|
41761
|
+
}
|
|
41762
|
+
}
|
|
41763
|
+
});
|
|
41764
|
+
},
|
|
41765
|
+
};
|
|
41766
|
+
return Iterable;
|
|
41767
|
+
}),
|
|
41768
|
+
/**
|
|
41769
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=user_role&apiName=list&version=v1 click to debug }
|
|
41770
|
+
*
|
|
41771
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/user_role/list document }
|
|
41772
|
+
*
|
|
41773
|
+
* 获取用户角色列表
|
|
41774
|
+
*
|
|
41775
|
+
* 获取用户角色列表
|
|
41776
|
+
*/
|
|
41777
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41778
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41779
|
+
return this.httpInstance
|
|
41780
|
+
.request({
|
|
41781
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
41782
|
+
method: "GET",
|
|
41783
|
+
data,
|
|
41784
|
+
params,
|
|
41785
|
+
headers,
|
|
41786
|
+
})
|
|
41787
|
+
.catch((e) => {
|
|
41788
|
+
this.logger.error(formatErrors(e));
|
|
41789
|
+
throw e;
|
|
41790
|
+
});
|
|
41791
|
+
}),
|
|
41792
|
+
},
|
|
41422
41793
|
/**
|
|
41423
41794
|
* website.channel
|
|
41424
41795
|
*/
|
|
@@ -42014,7 +42385,7 @@ class Client$u extends Client$v {
|
|
|
42014
42385
|
}),
|
|
42015
42386
|
},
|
|
42016
42387
|
/**
|
|
42017
|
-
*
|
|
42388
|
+
* 投递
|
|
42018
42389
|
*/
|
|
42019
42390
|
application: {
|
|
42020
42391
|
/**
|
|
@@ -43877,6 +44248,100 @@ class Client$u extends Client$v {
|
|
|
43877
44248
|
});
|
|
43878
44249
|
}),
|
|
43879
44250
|
},
|
|
44251
|
+
/**
|
|
44252
|
+
* interviewer
|
|
44253
|
+
*/
|
|
44254
|
+
interviewer: {
|
|
44255
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44256
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44257
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
44258
|
+
const res = yield this.httpInstance
|
|
44259
|
+
.request({
|
|
44260
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
44261
|
+
method: "GET",
|
|
44262
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
44263
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
44264
|
+
data,
|
|
44265
|
+
})
|
|
44266
|
+
.catch((e) => {
|
|
44267
|
+
this.logger.error(formatErrors(e));
|
|
44268
|
+
});
|
|
44269
|
+
return res;
|
|
44270
|
+
});
|
|
44271
|
+
const Iterable = {
|
|
44272
|
+
[Symbol.asyncIterator]() {
|
|
44273
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
44274
|
+
let hasMore = true;
|
|
44275
|
+
let pageToken;
|
|
44276
|
+
while (hasMore) {
|
|
44277
|
+
try {
|
|
44278
|
+
const res = yield __await(sendRequest({
|
|
44279
|
+
headers,
|
|
44280
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44281
|
+
data,
|
|
44282
|
+
}));
|
|
44283
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
44284
|
+
// @ts-ignore
|
|
44285
|
+
has_more,
|
|
44286
|
+
// @ts-ignore
|
|
44287
|
+
page_token,
|
|
44288
|
+
// @ts-ignore
|
|
44289
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44290
|
+
yield yield __await(rest);
|
|
44291
|
+
hasMore = Boolean(has_more);
|
|
44292
|
+
pageToken = page_token || next_page_token;
|
|
44293
|
+
}
|
|
44294
|
+
catch (e) {
|
|
44295
|
+
yield yield __await(null);
|
|
44296
|
+
break;
|
|
44297
|
+
}
|
|
44298
|
+
}
|
|
44299
|
+
});
|
|
44300
|
+
},
|
|
44301
|
+
};
|
|
44302
|
+
return Iterable;
|
|
44303
|
+
}),
|
|
44304
|
+
/**
|
|
44305
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=list&version=v1 click to debug }
|
|
44306
|
+
*
|
|
44307
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interviewer&version=v1 document }
|
|
44308
|
+
*/
|
|
44309
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44310
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44311
|
+
return this.httpInstance
|
|
44312
|
+
.request({
|
|
44313
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
44314
|
+
method: "GET",
|
|
44315
|
+
data,
|
|
44316
|
+
params,
|
|
44317
|
+
headers,
|
|
44318
|
+
})
|
|
44319
|
+
.catch((e) => {
|
|
44320
|
+
this.logger.error(formatErrors(e));
|
|
44321
|
+
throw e;
|
|
44322
|
+
});
|
|
44323
|
+
}),
|
|
44324
|
+
/**
|
|
44325
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=patch&version=v1 click to debug }
|
|
44326
|
+
*
|
|
44327
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=interviewer&version=v1 document }
|
|
44328
|
+
*/
|
|
44329
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44330
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44331
|
+
return this.httpInstance
|
|
44332
|
+
.request({
|
|
44333
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`, path),
|
|
44334
|
+
method: "PATCH",
|
|
44335
|
+
data,
|
|
44336
|
+
params,
|
|
44337
|
+
headers,
|
|
44338
|
+
})
|
|
44339
|
+
.catch((e) => {
|
|
44340
|
+
this.logger.error(formatErrors(e));
|
|
44341
|
+
throw e;
|
|
44342
|
+
});
|
|
44343
|
+
}),
|
|
44344
|
+
},
|
|
43880
44345
|
/**
|
|
43881
44346
|
* 职位
|
|
43882
44347
|
*/
|
|
@@ -44636,6 +45101,31 @@ class Client$u extends Client$v {
|
|
|
44636
45101
|
});
|
|
44637
45102
|
}),
|
|
44638
45103
|
},
|
|
45104
|
+
/**
|
|
45105
|
+
* minutes
|
|
45106
|
+
*/
|
|
45107
|
+
minutes: {
|
|
45108
|
+
/**
|
|
45109
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=minutes&apiName=get&version=v1 click to debug }
|
|
45110
|
+
*
|
|
45111
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=minutes&version=v1 document }
|
|
45112
|
+
*/
|
|
45113
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45114
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45115
|
+
return this.httpInstance
|
|
45116
|
+
.request({
|
|
45117
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/minutes`, path),
|
|
45118
|
+
method: "GET",
|
|
45119
|
+
data,
|
|
45120
|
+
params,
|
|
45121
|
+
headers,
|
|
45122
|
+
})
|
|
45123
|
+
.catch((e) => {
|
|
45124
|
+
this.logger.error(formatErrors(e));
|
|
45125
|
+
throw e;
|
|
45126
|
+
});
|
|
45127
|
+
}),
|
|
45128
|
+
},
|
|
44639
45129
|
/**
|
|
44640
45130
|
* 备注
|
|
44641
45131
|
*/
|
|
@@ -46055,19 +46545,175 @@ class Client$u extends Client$v {
|
|
|
46055
46545
|
return Iterable;
|
|
46056
46546
|
}),
|
|
46057
46547
|
/**
|
|
46058
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=termination_reason&apiName=list&version=v1 click to debug }
|
|
46548
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=termination_reason&apiName=list&version=v1 click to debug }
|
|
46549
|
+
*
|
|
46550
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/termination_reason/list document }
|
|
46551
|
+
*
|
|
46552
|
+
* 获取终止投递原因
|
|
46553
|
+
*
|
|
46554
|
+
* 获取终止投递原因
|
|
46555
|
+
*/
|
|
46556
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46557
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46558
|
+
return this.httpInstance
|
|
46559
|
+
.request({
|
|
46560
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/termination_reasons`, path),
|
|
46561
|
+
method: "GET",
|
|
46562
|
+
data,
|
|
46563
|
+
params,
|
|
46564
|
+
headers,
|
|
46565
|
+
})
|
|
46566
|
+
.catch((e) => {
|
|
46567
|
+
this.logger.error(formatErrors(e));
|
|
46568
|
+
throw e;
|
|
46569
|
+
});
|
|
46570
|
+
}),
|
|
46571
|
+
},
|
|
46572
|
+
/**
|
|
46573
|
+
* test
|
|
46574
|
+
*/
|
|
46575
|
+
test: {
|
|
46576
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46577
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46578
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46579
|
+
const res = yield this.httpInstance
|
|
46580
|
+
.request({
|
|
46581
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tests/search`, path),
|
|
46582
|
+
method: "POST",
|
|
46583
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
46584
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
46585
|
+
data,
|
|
46586
|
+
})
|
|
46587
|
+
.catch((e) => {
|
|
46588
|
+
this.logger.error(formatErrors(e));
|
|
46589
|
+
});
|
|
46590
|
+
return res;
|
|
46591
|
+
});
|
|
46592
|
+
const Iterable = {
|
|
46593
|
+
[Symbol.asyncIterator]() {
|
|
46594
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
46595
|
+
let hasMore = true;
|
|
46596
|
+
let pageToken;
|
|
46597
|
+
while (hasMore) {
|
|
46598
|
+
try {
|
|
46599
|
+
const res = yield __await(sendRequest({
|
|
46600
|
+
headers,
|
|
46601
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46602
|
+
data,
|
|
46603
|
+
}));
|
|
46604
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
46605
|
+
// @ts-ignore
|
|
46606
|
+
has_more,
|
|
46607
|
+
// @ts-ignore
|
|
46608
|
+
page_token,
|
|
46609
|
+
// @ts-ignore
|
|
46610
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46611
|
+
yield yield __await(rest);
|
|
46612
|
+
hasMore = Boolean(has_more);
|
|
46613
|
+
pageToken = page_token || next_page_token;
|
|
46614
|
+
}
|
|
46615
|
+
catch (e) {
|
|
46616
|
+
yield yield __await(null);
|
|
46617
|
+
break;
|
|
46618
|
+
}
|
|
46619
|
+
}
|
|
46620
|
+
});
|
|
46621
|
+
},
|
|
46622
|
+
};
|
|
46623
|
+
return Iterable;
|
|
46624
|
+
}),
|
|
46625
|
+
/**
|
|
46626
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=test&apiName=search&version=v1 click to debug }
|
|
46627
|
+
*
|
|
46628
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/test/search document }
|
|
46629
|
+
*
|
|
46630
|
+
* 获取笔试列表
|
|
46631
|
+
*
|
|
46632
|
+
* 批量获取人才在某投递流程中的笔试信息,如作答状态、笔试得分等。(目前仅支持获取 1w 条数据,若数据量较大,可通过控制 test_start_time 查询条件分批次获取全量数据)
|
|
46633
|
+
*/
|
|
46634
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46635
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46636
|
+
return this.httpInstance
|
|
46637
|
+
.request({
|
|
46638
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tests/search`, path),
|
|
46639
|
+
method: "POST",
|
|
46640
|
+
data,
|
|
46641
|
+
params,
|
|
46642
|
+
headers,
|
|
46643
|
+
})
|
|
46644
|
+
.catch((e) => {
|
|
46645
|
+
this.logger.error(formatErrors(e));
|
|
46646
|
+
throw e;
|
|
46647
|
+
});
|
|
46648
|
+
}),
|
|
46649
|
+
},
|
|
46650
|
+
/**
|
|
46651
|
+
* 待办
|
|
46652
|
+
*/
|
|
46653
|
+
todo: {
|
|
46654
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46655
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46656
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46657
|
+
const res = yield this.httpInstance
|
|
46658
|
+
.request({
|
|
46659
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46660
|
+
method: "GET",
|
|
46661
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
46662
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
46663
|
+
data,
|
|
46664
|
+
})
|
|
46665
|
+
.catch((e) => {
|
|
46666
|
+
this.logger.error(formatErrors(e));
|
|
46667
|
+
});
|
|
46668
|
+
return res;
|
|
46669
|
+
});
|
|
46670
|
+
const Iterable = {
|
|
46671
|
+
[Symbol.asyncIterator]() {
|
|
46672
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
46673
|
+
let hasMore = true;
|
|
46674
|
+
let pageToken;
|
|
46675
|
+
while (hasMore) {
|
|
46676
|
+
try {
|
|
46677
|
+
const res = yield __await(sendRequest({
|
|
46678
|
+
headers,
|
|
46679
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46680
|
+
data,
|
|
46681
|
+
}));
|
|
46682
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
46683
|
+
// @ts-ignore
|
|
46684
|
+
has_more,
|
|
46685
|
+
// @ts-ignore
|
|
46686
|
+
page_token,
|
|
46687
|
+
// @ts-ignore
|
|
46688
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46689
|
+
yield yield __await(rest);
|
|
46690
|
+
hasMore = Boolean(has_more);
|
|
46691
|
+
pageToken = page_token || next_page_token;
|
|
46692
|
+
}
|
|
46693
|
+
catch (e) {
|
|
46694
|
+
yield yield __await(null);
|
|
46695
|
+
break;
|
|
46696
|
+
}
|
|
46697
|
+
}
|
|
46698
|
+
});
|
|
46699
|
+
},
|
|
46700
|
+
};
|
|
46701
|
+
return Iterable;
|
|
46702
|
+
}),
|
|
46703
|
+
/**
|
|
46704
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=todo&apiName=list&version=v1 click to debug }
|
|
46059
46705
|
*
|
|
46060
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/
|
|
46706
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/todo/list document }
|
|
46061
46707
|
*
|
|
46062
|
-
*
|
|
46708
|
+
* 获取待办列表
|
|
46063
46709
|
*
|
|
46064
|
-
*
|
|
46710
|
+
* 获取待办列表
|
|
46065
46711
|
*/
|
|
46066
46712
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46067
46713
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46068
46714
|
return this.httpInstance
|
|
46069
46715
|
.request({
|
|
46070
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46716
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46071
46717
|
method: "GET",
|
|
46072
46718
|
data,
|
|
46073
46719
|
params,
|
|
@@ -46080,73 +46726,40 @@ class Client$u extends Client$v {
|
|
|
46080
46726
|
}),
|
|
46081
46727
|
},
|
|
46082
46728
|
/**
|
|
46083
|
-
*
|
|
46729
|
+
* tripartite_agreement
|
|
46084
46730
|
*/
|
|
46085
|
-
|
|
46086
|
-
|
|
46731
|
+
tripartiteAgreement: {
|
|
46732
|
+
/**
|
|
46733
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=create&version=v1 click to debug }
|
|
46734
|
+
*
|
|
46735
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46736
|
+
*/
|
|
46737
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46087
46738
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46088
|
-
|
|
46089
|
-
|
|
46090
|
-
|
|
46091
|
-
|
|
46092
|
-
|
|
46093
|
-
|
|
46094
|
-
|
|
46095
|
-
|
|
46096
|
-
|
|
46097
|
-
|
|
46098
|
-
|
|
46099
|
-
});
|
|
46100
|
-
return res;
|
|
46739
|
+
return this.httpInstance
|
|
46740
|
+
.request({
|
|
46741
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46742
|
+
method: "POST",
|
|
46743
|
+
data,
|
|
46744
|
+
params,
|
|
46745
|
+
headers,
|
|
46746
|
+
})
|
|
46747
|
+
.catch((e) => {
|
|
46748
|
+
this.logger.error(formatErrors(e));
|
|
46749
|
+
throw e;
|
|
46101
46750
|
});
|
|
46102
|
-
const Iterable = {
|
|
46103
|
-
[Symbol.asyncIterator]() {
|
|
46104
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
46105
|
-
let hasMore = true;
|
|
46106
|
-
let pageToken;
|
|
46107
|
-
while (hasMore) {
|
|
46108
|
-
try {
|
|
46109
|
-
const res = yield __await(sendRequest({
|
|
46110
|
-
headers,
|
|
46111
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46112
|
-
data,
|
|
46113
|
-
}));
|
|
46114
|
-
const _b = get__default["default"](res, "data") || {}, {
|
|
46115
|
-
// @ts-ignore
|
|
46116
|
-
has_more,
|
|
46117
|
-
// @ts-ignore
|
|
46118
|
-
page_token,
|
|
46119
|
-
// @ts-ignore
|
|
46120
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46121
|
-
yield yield __await(rest);
|
|
46122
|
-
hasMore = Boolean(has_more);
|
|
46123
|
-
pageToken = page_token || next_page_token;
|
|
46124
|
-
}
|
|
46125
|
-
catch (e) {
|
|
46126
|
-
yield yield __await(null);
|
|
46127
|
-
break;
|
|
46128
|
-
}
|
|
46129
|
-
}
|
|
46130
|
-
});
|
|
46131
|
-
},
|
|
46132
|
-
};
|
|
46133
|
-
return Iterable;
|
|
46134
46751
|
}),
|
|
46135
46752
|
/**
|
|
46136
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46137
|
-
*
|
|
46138
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/test/search document }
|
|
46139
|
-
*
|
|
46140
|
-
* 获取笔试列表
|
|
46753
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=delete&version=v1 click to debug }
|
|
46141
46754
|
*
|
|
46142
|
-
*
|
|
46755
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46143
46756
|
*/
|
|
46144
|
-
|
|
46757
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46145
46758
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46146
46759
|
return this.httpInstance
|
|
46147
46760
|
.request({
|
|
46148
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46149
|
-
method: "
|
|
46761
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46762
|
+
method: "DELETE",
|
|
46150
46763
|
data,
|
|
46151
46764
|
params,
|
|
46152
46765
|
headers,
|
|
@@ -46156,17 +46769,12 @@ class Client$u extends Client$v {
|
|
|
46156
46769
|
throw e;
|
|
46157
46770
|
});
|
|
46158
46771
|
}),
|
|
46159
|
-
},
|
|
46160
|
-
/**
|
|
46161
|
-
* 待办
|
|
46162
|
-
*/
|
|
46163
|
-
todo: {
|
|
46164
46772
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46165
46773
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46166
46774
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46167
46775
|
const res = yield this.httpInstance
|
|
46168
46776
|
.request({
|
|
46169
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46777
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46170
46778
|
method: "GET",
|
|
46171
46779
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
46172
46780
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -46211,45 +46819,16 @@ class Client$u extends Client$v {
|
|
|
46211
46819
|
return Iterable;
|
|
46212
46820
|
}),
|
|
46213
46821
|
/**
|
|
46214
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46215
|
-
*
|
|
46216
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/todo/list document }
|
|
46217
|
-
*
|
|
46218
|
-
* 获取待办列表
|
|
46822
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=list&version=v1 click to debug }
|
|
46219
46823
|
*
|
|
46220
|
-
*
|
|
46824
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46221
46825
|
*/
|
|
46222
46826
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46223
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46224
|
-
return this.httpInstance
|
|
46225
|
-
.request({
|
|
46226
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46227
|
-
method: "GET",
|
|
46228
|
-
data,
|
|
46229
|
-
params,
|
|
46230
|
-
headers,
|
|
46231
|
-
})
|
|
46232
|
-
.catch((e) => {
|
|
46233
|
-
this.logger.error(formatErrors(e));
|
|
46234
|
-
throw e;
|
|
46235
|
-
});
|
|
46236
|
-
}),
|
|
46237
|
-
},
|
|
46238
|
-
/**
|
|
46239
|
-
* tripartite_agreement
|
|
46240
|
-
*/
|
|
46241
|
-
tripartiteAgreement: {
|
|
46242
|
-
/**
|
|
46243
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=create&version=v1 click to debug }
|
|
46244
|
-
*
|
|
46245
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46246
|
-
*/
|
|
46247
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46248
46827
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46249
46828
|
return this.httpInstance
|
|
46250
46829
|
.request({
|
|
46251
46830
|
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46252
|
-
method: "
|
|
46831
|
+
method: "GET",
|
|
46253
46832
|
data,
|
|
46254
46833
|
params,
|
|
46255
46834
|
headers,
|
|
@@ -46260,16 +46839,16 @@ class Client$u extends Client$v {
|
|
|
46260
46839
|
});
|
|
46261
46840
|
}),
|
|
46262
46841
|
/**
|
|
46263
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=
|
|
46842
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=update&version=v1 click to debug }
|
|
46264
46843
|
*
|
|
46265
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
46844
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46266
46845
|
*/
|
|
46267
|
-
|
|
46846
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46268
46847
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46269
46848
|
return this.httpInstance
|
|
46270
46849
|
.request({
|
|
46271
46850
|
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46272
|
-
method: "
|
|
46851
|
+
method: "PUT",
|
|
46273
46852
|
data,
|
|
46274
46853
|
params,
|
|
46275
46854
|
headers,
|
|
@@ -46279,12 +46858,17 @@ class Client$u extends Client$v {
|
|
|
46279
46858
|
throw e;
|
|
46280
46859
|
});
|
|
46281
46860
|
}),
|
|
46861
|
+
},
|
|
46862
|
+
/**
|
|
46863
|
+
* 权限
|
|
46864
|
+
*/
|
|
46865
|
+
userRole: {
|
|
46282
46866
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46283
46867
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46284
46868
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46285
46869
|
const res = yield this.httpInstance
|
|
46286
46870
|
.request({
|
|
46287
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46871
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
46288
46872
|
method: "GET",
|
|
46289
46873
|
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
46290
46874
|
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
@@ -46329,15 +46913,19 @@ class Client$u extends Client$v {
|
|
|
46329
46913
|
return Iterable;
|
|
46330
46914
|
}),
|
|
46331
46915
|
/**
|
|
46332
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46916
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=user_role&apiName=list&version=v1 click to debug }
|
|
46333
46917
|
*
|
|
46334
|
-
* {@link https://open.feishu.cn/
|
|
46918
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/user_role/list document }
|
|
46919
|
+
*
|
|
46920
|
+
* 获取用户角色列表
|
|
46921
|
+
*
|
|
46922
|
+
* 获取用户角色列表
|
|
46335
46923
|
*/
|
|
46336
46924
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46337
46925
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46338
46926
|
return this.httpInstance
|
|
46339
46927
|
.request({
|
|
46340
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46928
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
46341
46929
|
method: "GET",
|
|
46342
46930
|
data,
|
|
46343
46931
|
params,
|
|
@@ -46348,26 +46936,6 @@ class Client$u extends Client$v {
|
|
|
46348
46936
|
throw e;
|
|
46349
46937
|
});
|
|
46350
46938
|
}),
|
|
46351
|
-
/**
|
|
46352
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=update&version=v1 click to debug }
|
|
46353
|
-
*
|
|
46354
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46355
|
-
*/
|
|
46356
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46357
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46358
|
-
return this.httpInstance
|
|
46359
|
-
.request({
|
|
46360
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46361
|
-
method: "PUT",
|
|
46362
|
-
data,
|
|
46363
|
-
params,
|
|
46364
|
-
headers,
|
|
46365
|
-
})
|
|
46366
|
-
.catch((e) => {
|
|
46367
|
-
this.logger.error(formatErrors(e));
|
|
46368
|
-
throw e;
|
|
46369
|
-
});
|
|
46370
|
-
}),
|
|
46371
46939
|
},
|
|
46372
46940
|
/**
|
|
46373
46941
|
* website.channel
|
|
@@ -51270,6 +51838,26 @@ class Client$s extends Client$t {
|
|
|
51270
51838
|
* feed_card
|
|
51271
51839
|
*/
|
|
51272
51840
|
feedCard: {
|
|
51841
|
+
/**
|
|
51842
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=feed_card&apiName=bot_time_sentive&version=v2 click to debug }
|
|
51843
|
+
*
|
|
51844
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=bot_time_sentive&project=im&resource=feed_card&version=v2 document }
|
|
51845
|
+
*/
|
|
51846
|
+
botTimeSentive: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51847
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51848
|
+
return this.httpInstance
|
|
51849
|
+
.request({
|
|
51850
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/feed_cards/bot_time_sentive`, path),
|
|
51851
|
+
method: "PATCH",
|
|
51852
|
+
data,
|
|
51853
|
+
params,
|
|
51854
|
+
headers,
|
|
51855
|
+
})
|
|
51856
|
+
.catch((e) => {
|
|
51857
|
+
this.logger.error(formatErrors(e));
|
|
51858
|
+
throw e;
|
|
51859
|
+
});
|
|
51860
|
+
}),
|
|
51273
51861
|
/**
|
|
51274
51862
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=feed_card&apiName=patch&version=v2 click to debug }
|
|
51275
51863
|
*
|
|
@@ -53310,6 +53898,31 @@ class Client$q extends Client$r {
|
|
|
53310
53898
|
});
|
|
53311
53899
|
}),
|
|
53312
53900
|
},
|
|
53901
|
+
/**
|
|
53902
|
+
* user_mailbox.message
|
|
53903
|
+
*/
|
|
53904
|
+
userMailboxMessage: {
|
|
53905
|
+
/**
|
|
53906
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=user_mailbox.message&apiName=send&version=v1 click to debug }
|
|
53907
|
+
*
|
|
53908
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=send&project=mail&resource=user_mailbox.message&version=v1 document }
|
|
53909
|
+
*/
|
|
53910
|
+
send: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53911
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53912
|
+
return this.httpInstance
|
|
53913
|
+
.request({
|
|
53914
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`, path),
|
|
53915
|
+
method: "POST",
|
|
53916
|
+
data,
|
|
53917
|
+
params,
|
|
53918
|
+
headers,
|
|
53919
|
+
})
|
|
53920
|
+
.catch((e) => {
|
|
53921
|
+
this.logger.error(formatErrors(e));
|
|
53922
|
+
throw e;
|
|
53923
|
+
});
|
|
53924
|
+
}),
|
|
53925
|
+
},
|
|
53313
53926
|
v1: {
|
|
53314
53927
|
/**
|
|
53315
53928
|
* 邮件组别名
|
|
@@ -54765,6 +55378,31 @@ class Client$q extends Client$r {
|
|
|
54765
55378
|
});
|
|
54766
55379
|
}),
|
|
54767
55380
|
},
|
|
55381
|
+
/**
|
|
55382
|
+
* user_mailbox.message
|
|
55383
|
+
*/
|
|
55384
|
+
userMailboxMessage: {
|
|
55385
|
+
/**
|
|
55386
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=user_mailbox.message&apiName=send&version=v1 click to debug }
|
|
55387
|
+
*
|
|
55388
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=send&project=mail&resource=user_mailbox.message&version=v1 document }
|
|
55389
|
+
*/
|
|
55390
|
+
send: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55391
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55392
|
+
return this.httpInstance
|
|
55393
|
+
.request({
|
|
55394
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`, path),
|
|
55395
|
+
method: "POST",
|
|
55396
|
+
data,
|
|
55397
|
+
params,
|
|
55398
|
+
headers,
|
|
55399
|
+
})
|
|
55400
|
+
.catch((e) => {
|
|
55401
|
+
this.logger.error(formatErrors(e));
|
|
55402
|
+
throw e;
|
|
55403
|
+
});
|
|
55404
|
+
}),
|
|
55405
|
+
},
|
|
54768
55406
|
},
|
|
54769
55407
|
};
|
|
54770
55408
|
}
|
|
@@ -54908,7 +55546,60 @@ class Client$n extends Client$o {
|
|
|
54908
55546
|
/**
|
|
54909
55547
|
|
|
54910
55548
|
*/
|
|
54911
|
-
this.moments = {
|
|
55549
|
+
this.moments = {
|
|
55550
|
+
/**
|
|
55551
|
+
* post
|
|
55552
|
+
*/
|
|
55553
|
+
post: {
|
|
55554
|
+
/**
|
|
55555
|
+
* {@link https://open.feishu.cn/api-explorer?project=moments&resource=post&apiName=get&version=v1 click to debug }
|
|
55556
|
+
*
|
|
55557
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=moments&resource=post&version=v1 document }
|
|
55558
|
+
*/
|
|
55559
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55560
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55561
|
+
return this.httpInstance
|
|
55562
|
+
.request({
|
|
55563
|
+
url: fillApiPath(`${this.domain}/open-apis/moments/v1/posts/:post_id`, path),
|
|
55564
|
+
method: "GET",
|
|
55565
|
+
data,
|
|
55566
|
+
params,
|
|
55567
|
+
headers,
|
|
55568
|
+
})
|
|
55569
|
+
.catch((e) => {
|
|
55570
|
+
this.logger.error(formatErrors(e));
|
|
55571
|
+
throw e;
|
|
55572
|
+
});
|
|
55573
|
+
}),
|
|
55574
|
+
},
|
|
55575
|
+
v1: {
|
|
55576
|
+
/**
|
|
55577
|
+
* post
|
|
55578
|
+
*/
|
|
55579
|
+
post: {
|
|
55580
|
+
/**
|
|
55581
|
+
* {@link https://open.feishu.cn/api-explorer?project=moments&resource=post&apiName=get&version=v1 click to debug }
|
|
55582
|
+
*
|
|
55583
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=moments&resource=post&version=v1 document }
|
|
55584
|
+
*/
|
|
55585
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55586
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55587
|
+
return this.httpInstance
|
|
55588
|
+
.request({
|
|
55589
|
+
url: fillApiPath(`${this.domain}/open-apis/moments/v1/posts/:post_id`, path),
|
|
55590
|
+
method: "GET",
|
|
55591
|
+
data,
|
|
55592
|
+
params,
|
|
55593
|
+
headers,
|
|
55594
|
+
})
|
|
55595
|
+
.catch((e) => {
|
|
55596
|
+
this.logger.error(formatErrors(e));
|
|
55597
|
+
throw e;
|
|
55598
|
+
});
|
|
55599
|
+
}),
|
|
55600
|
+
},
|
|
55601
|
+
},
|
|
55602
|
+
};
|
|
54912
55603
|
}
|
|
54913
55604
|
}
|
|
54914
55605
|
|
|
@@ -67419,7 +68110,7 @@ class UserAccessToken {
|
|
|
67419
68110
|
});
|
|
67420
68111
|
if (refreshAccessInfo.code === 0 && refreshAccessInfo.data) {
|
|
67421
68112
|
yield this.update({
|
|
67422
|
-
key: {
|
|
68113
|
+
[key]: {
|
|
67423
68114
|
token: refreshAccessInfo.data.access_token,
|
|
67424
68115
|
refreshToken: refreshAccessInfo.data.refresh_token,
|
|
67425
68116
|
expiredTime: this.calibrateTime(refreshAccessInfo.data.expires_in)
|
|
@@ -67442,7 +68133,7 @@ class UserAccessToken {
|
|
|
67442
68133
|
});
|
|
67443
68134
|
if (oidcAccessInfo.code === 0 && oidcAccessInfo.data) {
|
|
67444
68135
|
yield this.update({
|
|
67445
|
-
key: {
|
|
68136
|
+
[key]: {
|
|
67446
68137
|
token: oidcAccessInfo.data.access_token,
|
|
67447
68138
|
refreshToken: oidcAccessInfo.data.refresh_token,
|
|
67448
68139
|
expiredTime: this.calibrateTime(oidcAccessInfo.data.expires_in)
|
|
@@ -67529,7 +68220,7 @@ class Client extends Client$1 {
|
|
|
67529
68220
|
}
|
|
67530
68221
|
return {
|
|
67531
68222
|
params: Object.assign(Object.assign({}, get__default["default"](payload, 'params', {})), targetOptions.params),
|
|
67532
|
-
headers: Object.assign(Object.assign({}, get__default["default"](payload, 'headers', {})), targetOptions.headers),
|
|
68223
|
+
headers: Object.assign(Object.assign({ 'User-Agent': 'oapi-node-sdk/1.0.0' }, get__default["default"](payload, 'headers', {})), targetOptions.headers),
|
|
67533
68224
|
data: Object.assign(Object.assign({}, get__default["default"](payload, 'data', {})), targetOptions.data),
|
|
67534
68225
|
path: Object.assign(Object.assign({}, get__default["default"](payload, 'path', {})), targetOptions.path),
|
|
67535
68226
|
};
|