@larksuiteoapi/node-sdk 1.33.1 → 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 +827 -136
- package/lib/index.js +827 -136
- package/package.json +1 -1
- package/types/index.d.ts +1381 -297
package/es/index.js
CHANGED
|
@@ -3280,6 +3280,51 @@ class Client$Y extends Client$Z {
|
|
|
3280
3280
|
});
|
|
3281
3281
|
}),
|
|
3282
3282
|
},
|
|
3283
|
+
/**
|
|
3284
|
+
* scope
|
|
3285
|
+
*/
|
|
3286
|
+
scope: {
|
|
3287
|
+
/**
|
|
3288
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=apply&version=v6 click to debug }
|
|
3289
|
+
*
|
|
3290
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=apply&project=application&resource=scope&version=v6 document }
|
|
3291
|
+
*/
|
|
3292
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3293
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3294
|
+
return this.httpInstance
|
|
3295
|
+
.request({
|
|
3296
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes/apply`, path),
|
|
3297
|
+
method: "POST",
|
|
3298
|
+
data,
|
|
3299
|
+
params,
|
|
3300
|
+
headers,
|
|
3301
|
+
})
|
|
3302
|
+
.catch((e) => {
|
|
3303
|
+
this.logger.error(formatErrors(e));
|
|
3304
|
+
throw e;
|
|
3305
|
+
});
|
|
3306
|
+
}),
|
|
3307
|
+
/**
|
|
3308
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=list&version=v6 click to debug }
|
|
3309
|
+
*
|
|
3310
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=application&resource=scope&version=v6 document }
|
|
3311
|
+
*/
|
|
3312
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3313
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3314
|
+
return this.httpInstance
|
|
3315
|
+
.request({
|
|
3316
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes`, path),
|
|
3317
|
+
method: "GET",
|
|
3318
|
+
data,
|
|
3319
|
+
params,
|
|
3320
|
+
headers,
|
|
3321
|
+
})
|
|
3322
|
+
.catch((e) => {
|
|
3323
|
+
this.logger.error(formatErrors(e));
|
|
3324
|
+
throw e;
|
|
3325
|
+
});
|
|
3326
|
+
}),
|
|
3327
|
+
},
|
|
3283
3328
|
v6: {
|
|
3284
3329
|
/**
|
|
3285
3330
|
* 应用红点
|
|
@@ -3913,6 +3958,51 @@ class Client$Y extends Client$Z {
|
|
|
3913
3958
|
});
|
|
3914
3959
|
}),
|
|
3915
3960
|
},
|
|
3961
|
+
/**
|
|
3962
|
+
* scope
|
|
3963
|
+
*/
|
|
3964
|
+
scope: {
|
|
3965
|
+
/**
|
|
3966
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=apply&version=v6 click to debug }
|
|
3967
|
+
*
|
|
3968
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=apply&project=application&resource=scope&version=v6 document }
|
|
3969
|
+
*/
|
|
3970
|
+
apply: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3971
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3972
|
+
return this.httpInstance
|
|
3973
|
+
.request({
|
|
3974
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes/apply`, path),
|
|
3975
|
+
method: "POST",
|
|
3976
|
+
data,
|
|
3977
|
+
params,
|
|
3978
|
+
headers,
|
|
3979
|
+
})
|
|
3980
|
+
.catch((e) => {
|
|
3981
|
+
this.logger.error(formatErrors(e));
|
|
3982
|
+
throw e;
|
|
3983
|
+
});
|
|
3984
|
+
}),
|
|
3985
|
+
/**
|
|
3986
|
+
* {@link https://open.feishu.cn/api-explorer?project=application&resource=scope&apiName=list&version=v6 click to debug }
|
|
3987
|
+
*
|
|
3988
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=application&resource=scope&version=v6 document }
|
|
3989
|
+
*/
|
|
3990
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3991
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3992
|
+
return this.httpInstance
|
|
3993
|
+
.request({
|
|
3994
|
+
url: fillApiPath(`${this.domain}/open-apis/application/v6/scopes`, path),
|
|
3995
|
+
method: "GET",
|
|
3996
|
+
data,
|
|
3997
|
+
params,
|
|
3998
|
+
headers,
|
|
3999
|
+
})
|
|
4000
|
+
.catch((e) => {
|
|
4001
|
+
this.logger.error(formatErrors(e));
|
|
4002
|
+
throw e;
|
|
4003
|
+
});
|
|
4004
|
+
}),
|
|
4005
|
+
},
|
|
3916
4006
|
},
|
|
3917
4007
|
};
|
|
3918
4008
|
}
|
|
@@ -4697,7 +4787,7 @@ class Client$X extends Client$Y {
|
|
|
4697
4787
|
}),
|
|
4698
4788
|
},
|
|
4699
4789
|
/**
|
|
4700
|
-
*
|
|
4790
|
+
* 审批查询
|
|
4701
4791
|
*/
|
|
4702
4792
|
task: {
|
|
4703
4793
|
/**
|
|
@@ -5666,7 +5756,7 @@ class Client$X extends Client$Y {
|
|
|
5666
5756
|
}),
|
|
5667
5757
|
},
|
|
5668
5758
|
/**
|
|
5669
|
-
*
|
|
5759
|
+
* 审批查询
|
|
5670
5760
|
*/
|
|
5671
5761
|
task: {
|
|
5672
5762
|
/**
|
|
@@ -22560,6 +22650,26 @@ class Client$I extends Client$J {
|
|
|
22560
22650
|
* 休假管理
|
|
22561
22651
|
*/
|
|
22562
22652
|
leave: {
|
|
22653
|
+
/**
|
|
22654
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=calendar_by_scope&version=v1 click to debug }
|
|
22655
|
+
*
|
|
22656
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=calendar_by_scope&project=corehr&resource=leave&version=v1 document }
|
|
22657
|
+
*/
|
|
22658
|
+
calendarByScope: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
22659
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
22660
|
+
return this.httpInstance
|
|
22661
|
+
.request({
|
|
22662
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`, path),
|
|
22663
|
+
method: "GET",
|
|
22664
|
+
data,
|
|
22665
|
+
params,
|
|
22666
|
+
headers,
|
|
22667
|
+
})
|
|
22668
|
+
.catch((e) => {
|
|
22669
|
+
this.logger.error(formatErrors(e));
|
|
22670
|
+
throw e;
|
|
22671
|
+
});
|
|
22672
|
+
}),
|
|
22563
22673
|
/**
|
|
22564
22674
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_balances&version=v1 click to debug }
|
|
22565
22675
|
*
|
|
@@ -25207,6 +25317,26 @@ class Client$I extends Client$J {
|
|
|
25207
25317
|
* 休假管理
|
|
25208
25318
|
*/
|
|
25209
25319
|
leave: {
|
|
25320
|
+
/**
|
|
25321
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=calendar_by_scope&version=v1 click to debug }
|
|
25322
|
+
*
|
|
25323
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=calendar_by_scope&project=corehr&resource=leave&version=v1 document }
|
|
25324
|
+
*/
|
|
25325
|
+
calendarByScope: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
25326
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
25327
|
+
return this.httpInstance
|
|
25328
|
+
.request({
|
|
25329
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`, path),
|
|
25330
|
+
method: "GET",
|
|
25331
|
+
data,
|
|
25332
|
+
params,
|
|
25333
|
+
headers,
|
|
25334
|
+
})
|
|
25335
|
+
.catch((e) => {
|
|
25336
|
+
this.logger.error(formatErrors(e));
|
|
25337
|
+
throw e;
|
|
25338
|
+
});
|
|
25339
|
+
}),
|
|
25210
25340
|
/**
|
|
25211
25341
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=leave&apiName=leave_balances&version=v1 click to debug }
|
|
25212
25342
|
*
|
|
@@ -27260,6 +27390,28 @@ class Client$I extends Client$J {
|
|
|
27260
27390
|
throw e;
|
|
27261
27391
|
});
|
|
27262
27392
|
}),
|
|
27393
|
+
/**
|
|
27394
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=delete&version=v2 click to debug }
|
|
27395
|
+
*
|
|
27396
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=department&version=v2 document }
|
|
27397
|
+
*
|
|
27398
|
+
* 删除部门数据
|
|
27399
|
+
*/
|
|
27400
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27401
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27402
|
+
return this.httpInstance
|
|
27403
|
+
.request({
|
|
27404
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/:department_id`, path),
|
|
27405
|
+
method: "DELETE",
|
|
27406
|
+
data,
|
|
27407
|
+
params,
|
|
27408
|
+
headers,
|
|
27409
|
+
})
|
|
27410
|
+
.catch((e) => {
|
|
27411
|
+
this.logger.error(formatErrors(e));
|
|
27412
|
+
throw e;
|
|
27413
|
+
});
|
|
27414
|
+
}),
|
|
27263
27415
|
/**
|
|
27264
27416
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=parents&version=v2 click to debug }
|
|
27265
27417
|
*
|
|
@@ -27280,6 +27432,28 @@ class Client$I extends Client$J {
|
|
|
27280
27432
|
throw e;
|
|
27281
27433
|
});
|
|
27282
27434
|
}),
|
|
27435
|
+
/**
|
|
27436
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=patch&version=v2 click to debug }
|
|
27437
|
+
*
|
|
27438
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=department&version=v2 document }
|
|
27439
|
+
*
|
|
27440
|
+
* 更新部门数据
|
|
27441
|
+
*/
|
|
27442
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
27443
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
27444
|
+
return this.httpInstance
|
|
27445
|
+
.request({
|
|
27446
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/departments/:department_id`, path),
|
|
27447
|
+
method: "PATCH",
|
|
27448
|
+
data,
|
|
27449
|
+
params,
|
|
27450
|
+
headers,
|
|
27451
|
+
})
|
|
27452
|
+
.catch((e) => {
|
|
27453
|
+
this.logger.error(formatErrors(e));
|
|
27454
|
+
throw e;
|
|
27455
|
+
});
|
|
27456
|
+
}),
|
|
27283
27457
|
/**
|
|
27284
27458
|
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=department&apiName=query_multi_timeline&version=v2 click to debug }
|
|
27285
27459
|
*
|
|
@@ -30185,7 +30359,7 @@ class Client$E extends Client$F {
|
|
|
30185
30359
|
}),
|
|
30186
30360
|
},
|
|
30187
30361
|
/**
|
|
30188
|
-
*
|
|
30362
|
+
* 上传
|
|
30189
30363
|
*/
|
|
30190
30364
|
file: {
|
|
30191
30365
|
/**
|
|
@@ -31904,7 +32078,7 @@ class Client$E extends Client$F {
|
|
|
31904
32078
|
}),
|
|
31905
32079
|
},
|
|
31906
32080
|
/**
|
|
31907
|
-
*
|
|
32081
|
+
* 上传
|
|
31908
32082
|
*/
|
|
31909
32083
|
file: {
|
|
31910
32084
|
/**
|
|
@@ -37047,7 +37221,7 @@ class Client$u extends Client$v {
|
|
|
37047
37221
|
}),
|
|
37048
37222
|
},
|
|
37049
37223
|
/**
|
|
37050
|
-
*
|
|
37224
|
+
* 投递
|
|
37051
37225
|
*/
|
|
37052
37226
|
application: {
|
|
37053
37227
|
/**
|
|
@@ -38910,6 +39084,100 @@ class Client$u extends Client$v {
|
|
|
38910
39084
|
});
|
|
38911
39085
|
}),
|
|
38912
39086
|
},
|
|
39087
|
+
/**
|
|
39088
|
+
* interviewer
|
|
39089
|
+
*/
|
|
39090
|
+
interviewer: {
|
|
39091
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39092
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39093
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
39094
|
+
const res = yield this.httpInstance
|
|
39095
|
+
.request({
|
|
39096
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
39097
|
+
method: "GET",
|
|
39098
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
39099
|
+
params: pickBy(innerPayload.params, identity),
|
|
39100
|
+
data,
|
|
39101
|
+
})
|
|
39102
|
+
.catch((e) => {
|
|
39103
|
+
this.logger.error(formatErrors(e));
|
|
39104
|
+
});
|
|
39105
|
+
return res;
|
|
39106
|
+
});
|
|
39107
|
+
const Iterable = {
|
|
39108
|
+
[Symbol.asyncIterator]() {
|
|
39109
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
39110
|
+
let hasMore = true;
|
|
39111
|
+
let pageToken;
|
|
39112
|
+
while (hasMore) {
|
|
39113
|
+
try {
|
|
39114
|
+
const res = yield __await(sendRequest({
|
|
39115
|
+
headers,
|
|
39116
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
39117
|
+
data,
|
|
39118
|
+
}));
|
|
39119
|
+
const _b = get(res, "data") || {}, {
|
|
39120
|
+
// @ts-ignore
|
|
39121
|
+
has_more,
|
|
39122
|
+
// @ts-ignore
|
|
39123
|
+
page_token,
|
|
39124
|
+
// @ts-ignore
|
|
39125
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
39126
|
+
yield yield __await(rest);
|
|
39127
|
+
hasMore = Boolean(has_more);
|
|
39128
|
+
pageToken = page_token || next_page_token;
|
|
39129
|
+
}
|
|
39130
|
+
catch (e) {
|
|
39131
|
+
yield yield __await(null);
|
|
39132
|
+
break;
|
|
39133
|
+
}
|
|
39134
|
+
}
|
|
39135
|
+
});
|
|
39136
|
+
},
|
|
39137
|
+
};
|
|
39138
|
+
return Iterable;
|
|
39139
|
+
}),
|
|
39140
|
+
/**
|
|
39141
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=list&version=v1 click to debug }
|
|
39142
|
+
*
|
|
39143
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interviewer&version=v1 document }
|
|
39144
|
+
*/
|
|
39145
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39146
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39147
|
+
return this.httpInstance
|
|
39148
|
+
.request({
|
|
39149
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
39150
|
+
method: "GET",
|
|
39151
|
+
data,
|
|
39152
|
+
params,
|
|
39153
|
+
headers,
|
|
39154
|
+
})
|
|
39155
|
+
.catch((e) => {
|
|
39156
|
+
this.logger.error(formatErrors(e));
|
|
39157
|
+
throw e;
|
|
39158
|
+
});
|
|
39159
|
+
}),
|
|
39160
|
+
/**
|
|
39161
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=patch&version=v1 click to debug }
|
|
39162
|
+
*
|
|
39163
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=interviewer&version=v1 document }
|
|
39164
|
+
*/
|
|
39165
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39166
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39167
|
+
return this.httpInstance
|
|
39168
|
+
.request({
|
|
39169
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`, path),
|
|
39170
|
+
method: "PATCH",
|
|
39171
|
+
data,
|
|
39172
|
+
params,
|
|
39173
|
+
headers,
|
|
39174
|
+
})
|
|
39175
|
+
.catch((e) => {
|
|
39176
|
+
this.logger.error(formatErrors(e));
|
|
39177
|
+
throw e;
|
|
39178
|
+
});
|
|
39179
|
+
}),
|
|
39180
|
+
},
|
|
38913
39181
|
/**
|
|
38914
39182
|
* 职位
|
|
38915
39183
|
*/
|
|
@@ -39669,6 +39937,31 @@ class Client$u extends Client$v {
|
|
|
39669
39937
|
});
|
|
39670
39938
|
}),
|
|
39671
39939
|
},
|
|
39940
|
+
/**
|
|
39941
|
+
* minutes
|
|
39942
|
+
*/
|
|
39943
|
+
minutes: {
|
|
39944
|
+
/**
|
|
39945
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=minutes&apiName=get&version=v1 click to debug }
|
|
39946
|
+
*
|
|
39947
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=minutes&version=v1 document }
|
|
39948
|
+
*/
|
|
39949
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
39950
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
39951
|
+
return this.httpInstance
|
|
39952
|
+
.request({
|
|
39953
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/minutes`, path),
|
|
39954
|
+
method: "GET",
|
|
39955
|
+
data,
|
|
39956
|
+
params,
|
|
39957
|
+
headers,
|
|
39958
|
+
})
|
|
39959
|
+
.catch((e) => {
|
|
39960
|
+
this.logger.error(formatErrors(e));
|
|
39961
|
+
throw e;
|
|
39962
|
+
});
|
|
39963
|
+
}),
|
|
39964
|
+
},
|
|
39672
39965
|
/**
|
|
39673
39966
|
* 备注
|
|
39674
39967
|
*/
|
|
@@ -41402,6 +41695,84 @@ class Client$u extends Client$v {
|
|
|
41402
41695
|
});
|
|
41403
41696
|
}),
|
|
41404
41697
|
},
|
|
41698
|
+
/**
|
|
41699
|
+
* 权限
|
|
41700
|
+
*/
|
|
41701
|
+
userRole: {
|
|
41702
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41703
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41704
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
41705
|
+
const res = yield this.httpInstance
|
|
41706
|
+
.request({
|
|
41707
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
41708
|
+
method: "GET",
|
|
41709
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
41710
|
+
params: pickBy(innerPayload.params, identity),
|
|
41711
|
+
data,
|
|
41712
|
+
})
|
|
41713
|
+
.catch((e) => {
|
|
41714
|
+
this.logger.error(formatErrors(e));
|
|
41715
|
+
});
|
|
41716
|
+
return res;
|
|
41717
|
+
});
|
|
41718
|
+
const Iterable = {
|
|
41719
|
+
[Symbol.asyncIterator]() {
|
|
41720
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
41721
|
+
let hasMore = true;
|
|
41722
|
+
let pageToken;
|
|
41723
|
+
while (hasMore) {
|
|
41724
|
+
try {
|
|
41725
|
+
const res = yield __await(sendRequest({
|
|
41726
|
+
headers,
|
|
41727
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
41728
|
+
data,
|
|
41729
|
+
}));
|
|
41730
|
+
const _b = get(res, "data") || {}, {
|
|
41731
|
+
// @ts-ignore
|
|
41732
|
+
has_more,
|
|
41733
|
+
// @ts-ignore
|
|
41734
|
+
page_token,
|
|
41735
|
+
// @ts-ignore
|
|
41736
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
41737
|
+
yield yield __await(rest);
|
|
41738
|
+
hasMore = Boolean(has_more);
|
|
41739
|
+
pageToken = page_token || next_page_token;
|
|
41740
|
+
}
|
|
41741
|
+
catch (e) {
|
|
41742
|
+
yield yield __await(null);
|
|
41743
|
+
break;
|
|
41744
|
+
}
|
|
41745
|
+
}
|
|
41746
|
+
});
|
|
41747
|
+
},
|
|
41748
|
+
};
|
|
41749
|
+
return Iterable;
|
|
41750
|
+
}),
|
|
41751
|
+
/**
|
|
41752
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=user_role&apiName=list&version=v1 click to debug }
|
|
41753
|
+
*
|
|
41754
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/user_role/list document }
|
|
41755
|
+
*
|
|
41756
|
+
* 获取用户角色列表
|
|
41757
|
+
*
|
|
41758
|
+
* 获取用户角色列表
|
|
41759
|
+
*/
|
|
41760
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
41761
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
41762
|
+
return this.httpInstance
|
|
41763
|
+
.request({
|
|
41764
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
41765
|
+
method: "GET",
|
|
41766
|
+
data,
|
|
41767
|
+
params,
|
|
41768
|
+
headers,
|
|
41769
|
+
})
|
|
41770
|
+
.catch((e) => {
|
|
41771
|
+
this.logger.error(formatErrors(e));
|
|
41772
|
+
throw e;
|
|
41773
|
+
});
|
|
41774
|
+
}),
|
|
41775
|
+
},
|
|
41405
41776
|
/**
|
|
41406
41777
|
* website.channel
|
|
41407
41778
|
*/
|
|
@@ -41997,7 +42368,7 @@ class Client$u extends Client$v {
|
|
|
41997
42368
|
}),
|
|
41998
42369
|
},
|
|
41999
42370
|
/**
|
|
42000
|
-
*
|
|
42371
|
+
* 投递
|
|
42001
42372
|
*/
|
|
42002
42373
|
application: {
|
|
42003
42374
|
/**
|
|
@@ -43860,6 +44231,100 @@ class Client$u extends Client$v {
|
|
|
43860
44231
|
});
|
|
43861
44232
|
}),
|
|
43862
44233
|
},
|
|
44234
|
+
/**
|
|
44235
|
+
* interviewer
|
|
44236
|
+
*/
|
|
44237
|
+
interviewer: {
|
|
44238
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44239
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44240
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
44241
|
+
const res = yield this.httpInstance
|
|
44242
|
+
.request({
|
|
44243
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
44244
|
+
method: "GET",
|
|
44245
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
44246
|
+
params: pickBy(innerPayload.params, identity),
|
|
44247
|
+
data,
|
|
44248
|
+
})
|
|
44249
|
+
.catch((e) => {
|
|
44250
|
+
this.logger.error(formatErrors(e));
|
|
44251
|
+
});
|
|
44252
|
+
return res;
|
|
44253
|
+
});
|
|
44254
|
+
const Iterable = {
|
|
44255
|
+
[Symbol.asyncIterator]() {
|
|
44256
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
44257
|
+
let hasMore = true;
|
|
44258
|
+
let pageToken;
|
|
44259
|
+
while (hasMore) {
|
|
44260
|
+
try {
|
|
44261
|
+
const res = yield __await(sendRequest({
|
|
44262
|
+
headers,
|
|
44263
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
44264
|
+
data,
|
|
44265
|
+
}));
|
|
44266
|
+
const _b = get(res, "data") || {}, {
|
|
44267
|
+
// @ts-ignore
|
|
44268
|
+
has_more,
|
|
44269
|
+
// @ts-ignore
|
|
44270
|
+
page_token,
|
|
44271
|
+
// @ts-ignore
|
|
44272
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
44273
|
+
yield yield __await(rest);
|
|
44274
|
+
hasMore = Boolean(has_more);
|
|
44275
|
+
pageToken = page_token || next_page_token;
|
|
44276
|
+
}
|
|
44277
|
+
catch (e) {
|
|
44278
|
+
yield yield __await(null);
|
|
44279
|
+
break;
|
|
44280
|
+
}
|
|
44281
|
+
}
|
|
44282
|
+
});
|
|
44283
|
+
},
|
|
44284
|
+
};
|
|
44285
|
+
return Iterable;
|
|
44286
|
+
}),
|
|
44287
|
+
/**
|
|
44288
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=list&version=v1 click to debug }
|
|
44289
|
+
*
|
|
44290
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=interviewer&version=v1 document }
|
|
44291
|
+
*/
|
|
44292
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44293
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44294
|
+
return this.httpInstance
|
|
44295
|
+
.request({
|
|
44296
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers`, path),
|
|
44297
|
+
method: "GET",
|
|
44298
|
+
data,
|
|
44299
|
+
params,
|
|
44300
|
+
headers,
|
|
44301
|
+
})
|
|
44302
|
+
.catch((e) => {
|
|
44303
|
+
this.logger.error(formatErrors(e));
|
|
44304
|
+
throw e;
|
|
44305
|
+
});
|
|
44306
|
+
}),
|
|
44307
|
+
/**
|
|
44308
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=interviewer&apiName=patch&version=v1 click to debug }
|
|
44309
|
+
*
|
|
44310
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=hire&resource=interviewer&version=v1 document }
|
|
44311
|
+
*/
|
|
44312
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
44313
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
44314
|
+
return this.httpInstance
|
|
44315
|
+
.request({
|
|
44316
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`, path),
|
|
44317
|
+
method: "PATCH",
|
|
44318
|
+
data,
|
|
44319
|
+
params,
|
|
44320
|
+
headers,
|
|
44321
|
+
})
|
|
44322
|
+
.catch((e) => {
|
|
44323
|
+
this.logger.error(formatErrors(e));
|
|
44324
|
+
throw e;
|
|
44325
|
+
});
|
|
44326
|
+
}),
|
|
44327
|
+
},
|
|
43863
44328
|
/**
|
|
43864
44329
|
* 职位
|
|
43865
44330
|
*/
|
|
@@ -44619,6 +45084,31 @@ class Client$u extends Client$v {
|
|
|
44619
45084
|
});
|
|
44620
45085
|
}),
|
|
44621
45086
|
},
|
|
45087
|
+
/**
|
|
45088
|
+
* minutes
|
|
45089
|
+
*/
|
|
45090
|
+
minutes: {
|
|
45091
|
+
/**
|
|
45092
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=minutes&apiName=get&version=v1 click to debug }
|
|
45093
|
+
*
|
|
45094
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=hire&resource=minutes&version=v1 document }
|
|
45095
|
+
*/
|
|
45096
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
45097
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
45098
|
+
return this.httpInstance
|
|
45099
|
+
.request({
|
|
45100
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/minutes`, path),
|
|
45101
|
+
method: "GET",
|
|
45102
|
+
data,
|
|
45103
|
+
params,
|
|
45104
|
+
headers,
|
|
45105
|
+
})
|
|
45106
|
+
.catch((e) => {
|
|
45107
|
+
this.logger.error(formatErrors(e));
|
|
45108
|
+
throw e;
|
|
45109
|
+
});
|
|
45110
|
+
}),
|
|
45111
|
+
},
|
|
44622
45112
|
/**
|
|
44623
45113
|
* 备注
|
|
44624
45114
|
*/
|
|
@@ -46038,19 +46528,175 @@ class Client$u extends Client$v {
|
|
|
46038
46528
|
return Iterable;
|
|
46039
46529
|
}),
|
|
46040
46530
|
/**
|
|
46041
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=termination_reason&apiName=list&version=v1 click to debug }
|
|
46531
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=termination_reason&apiName=list&version=v1 click to debug }
|
|
46532
|
+
*
|
|
46533
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/termination_reason/list document }
|
|
46534
|
+
*
|
|
46535
|
+
* 获取终止投递原因
|
|
46536
|
+
*
|
|
46537
|
+
* 获取终止投递原因
|
|
46538
|
+
*/
|
|
46539
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46540
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46541
|
+
return this.httpInstance
|
|
46542
|
+
.request({
|
|
46543
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/termination_reasons`, path),
|
|
46544
|
+
method: "GET",
|
|
46545
|
+
data,
|
|
46546
|
+
params,
|
|
46547
|
+
headers,
|
|
46548
|
+
})
|
|
46549
|
+
.catch((e) => {
|
|
46550
|
+
this.logger.error(formatErrors(e));
|
|
46551
|
+
throw e;
|
|
46552
|
+
});
|
|
46553
|
+
}),
|
|
46554
|
+
},
|
|
46555
|
+
/**
|
|
46556
|
+
* test
|
|
46557
|
+
*/
|
|
46558
|
+
test: {
|
|
46559
|
+
searchWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46560
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46561
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46562
|
+
const res = yield this.httpInstance
|
|
46563
|
+
.request({
|
|
46564
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tests/search`, path),
|
|
46565
|
+
method: "POST",
|
|
46566
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
46567
|
+
params: pickBy(innerPayload.params, identity),
|
|
46568
|
+
data,
|
|
46569
|
+
})
|
|
46570
|
+
.catch((e) => {
|
|
46571
|
+
this.logger.error(formatErrors(e));
|
|
46572
|
+
});
|
|
46573
|
+
return res;
|
|
46574
|
+
});
|
|
46575
|
+
const Iterable = {
|
|
46576
|
+
[Symbol.asyncIterator]() {
|
|
46577
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
46578
|
+
let hasMore = true;
|
|
46579
|
+
let pageToken;
|
|
46580
|
+
while (hasMore) {
|
|
46581
|
+
try {
|
|
46582
|
+
const res = yield __await(sendRequest({
|
|
46583
|
+
headers,
|
|
46584
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46585
|
+
data,
|
|
46586
|
+
}));
|
|
46587
|
+
const _b = get(res, "data") || {}, {
|
|
46588
|
+
// @ts-ignore
|
|
46589
|
+
has_more,
|
|
46590
|
+
// @ts-ignore
|
|
46591
|
+
page_token,
|
|
46592
|
+
// @ts-ignore
|
|
46593
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46594
|
+
yield yield __await(rest);
|
|
46595
|
+
hasMore = Boolean(has_more);
|
|
46596
|
+
pageToken = page_token || next_page_token;
|
|
46597
|
+
}
|
|
46598
|
+
catch (e) {
|
|
46599
|
+
yield yield __await(null);
|
|
46600
|
+
break;
|
|
46601
|
+
}
|
|
46602
|
+
}
|
|
46603
|
+
});
|
|
46604
|
+
},
|
|
46605
|
+
};
|
|
46606
|
+
return Iterable;
|
|
46607
|
+
}),
|
|
46608
|
+
/**
|
|
46609
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=test&apiName=search&version=v1 click to debug }
|
|
46610
|
+
*
|
|
46611
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/test/search document }
|
|
46612
|
+
*
|
|
46613
|
+
* 获取笔试列表
|
|
46614
|
+
*
|
|
46615
|
+
* 批量获取人才在某投递流程中的笔试信息,如作答状态、笔试得分等。(目前仅支持获取 1w 条数据,若数据量较大,可通过控制 test_start_time 查询条件分批次获取全量数据)
|
|
46616
|
+
*/
|
|
46617
|
+
search: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46618
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46619
|
+
return this.httpInstance
|
|
46620
|
+
.request({
|
|
46621
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tests/search`, path),
|
|
46622
|
+
method: "POST",
|
|
46623
|
+
data,
|
|
46624
|
+
params,
|
|
46625
|
+
headers,
|
|
46626
|
+
})
|
|
46627
|
+
.catch((e) => {
|
|
46628
|
+
this.logger.error(formatErrors(e));
|
|
46629
|
+
throw e;
|
|
46630
|
+
});
|
|
46631
|
+
}),
|
|
46632
|
+
},
|
|
46633
|
+
/**
|
|
46634
|
+
* 待办
|
|
46635
|
+
*/
|
|
46636
|
+
todo: {
|
|
46637
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46638
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46639
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46640
|
+
const res = yield this.httpInstance
|
|
46641
|
+
.request({
|
|
46642
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46643
|
+
method: "GET",
|
|
46644
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
46645
|
+
params: pickBy(innerPayload.params, identity),
|
|
46646
|
+
data,
|
|
46647
|
+
})
|
|
46648
|
+
.catch((e) => {
|
|
46649
|
+
this.logger.error(formatErrors(e));
|
|
46650
|
+
});
|
|
46651
|
+
return res;
|
|
46652
|
+
});
|
|
46653
|
+
const Iterable = {
|
|
46654
|
+
[Symbol.asyncIterator]() {
|
|
46655
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
46656
|
+
let hasMore = true;
|
|
46657
|
+
let pageToken;
|
|
46658
|
+
while (hasMore) {
|
|
46659
|
+
try {
|
|
46660
|
+
const res = yield __await(sendRequest({
|
|
46661
|
+
headers,
|
|
46662
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46663
|
+
data,
|
|
46664
|
+
}));
|
|
46665
|
+
const _b = get(res, "data") || {}, {
|
|
46666
|
+
// @ts-ignore
|
|
46667
|
+
has_more,
|
|
46668
|
+
// @ts-ignore
|
|
46669
|
+
page_token,
|
|
46670
|
+
// @ts-ignore
|
|
46671
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46672
|
+
yield yield __await(rest);
|
|
46673
|
+
hasMore = Boolean(has_more);
|
|
46674
|
+
pageToken = page_token || next_page_token;
|
|
46675
|
+
}
|
|
46676
|
+
catch (e) {
|
|
46677
|
+
yield yield __await(null);
|
|
46678
|
+
break;
|
|
46679
|
+
}
|
|
46680
|
+
}
|
|
46681
|
+
});
|
|
46682
|
+
},
|
|
46683
|
+
};
|
|
46684
|
+
return Iterable;
|
|
46685
|
+
}),
|
|
46686
|
+
/**
|
|
46687
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=todo&apiName=list&version=v1 click to debug }
|
|
46042
46688
|
*
|
|
46043
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/
|
|
46689
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/todo/list document }
|
|
46044
46690
|
*
|
|
46045
|
-
*
|
|
46691
|
+
* 获取待办列表
|
|
46046
46692
|
*
|
|
46047
|
-
*
|
|
46693
|
+
* 获取待办列表
|
|
46048
46694
|
*/
|
|
46049
46695
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46050
46696
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46051
46697
|
return this.httpInstance
|
|
46052
46698
|
.request({
|
|
46053
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46699
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46054
46700
|
method: "GET",
|
|
46055
46701
|
data,
|
|
46056
46702
|
params,
|
|
@@ -46063,73 +46709,40 @@ class Client$u extends Client$v {
|
|
|
46063
46709
|
}),
|
|
46064
46710
|
},
|
|
46065
46711
|
/**
|
|
46066
|
-
*
|
|
46712
|
+
* tripartite_agreement
|
|
46067
46713
|
*/
|
|
46068
|
-
|
|
46069
|
-
|
|
46714
|
+
tripartiteAgreement: {
|
|
46715
|
+
/**
|
|
46716
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=create&version=v1 click to debug }
|
|
46717
|
+
*
|
|
46718
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46719
|
+
*/
|
|
46720
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46070
46721
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46071
|
-
|
|
46072
|
-
|
|
46073
|
-
|
|
46074
|
-
|
|
46075
|
-
|
|
46076
|
-
|
|
46077
|
-
|
|
46078
|
-
|
|
46079
|
-
|
|
46080
|
-
|
|
46081
|
-
|
|
46082
|
-
});
|
|
46083
|
-
return res;
|
|
46722
|
+
return this.httpInstance
|
|
46723
|
+
.request({
|
|
46724
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46725
|
+
method: "POST",
|
|
46726
|
+
data,
|
|
46727
|
+
params,
|
|
46728
|
+
headers,
|
|
46729
|
+
})
|
|
46730
|
+
.catch((e) => {
|
|
46731
|
+
this.logger.error(formatErrors(e));
|
|
46732
|
+
throw e;
|
|
46084
46733
|
});
|
|
46085
|
-
const Iterable = {
|
|
46086
|
-
[Symbol.asyncIterator]() {
|
|
46087
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
46088
|
-
let hasMore = true;
|
|
46089
|
-
let pageToken;
|
|
46090
|
-
while (hasMore) {
|
|
46091
|
-
try {
|
|
46092
|
-
const res = yield __await(sendRequest({
|
|
46093
|
-
headers,
|
|
46094
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
46095
|
-
data,
|
|
46096
|
-
}));
|
|
46097
|
-
const _b = get(res, "data") || {}, {
|
|
46098
|
-
// @ts-ignore
|
|
46099
|
-
has_more,
|
|
46100
|
-
// @ts-ignore
|
|
46101
|
-
page_token,
|
|
46102
|
-
// @ts-ignore
|
|
46103
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
46104
|
-
yield yield __await(rest);
|
|
46105
|
-
hasMore = Boolean(has_more);
|
|
46106
|
-
pageToken = page_token || next_page_token;
|
|
46107
|
-
}
|
|
46108
|
-
catch (e) {
|
|
46109
|
-
yield yield __await(null);
|
|
46110
|
-
break;
|
|
46111
|
-
}
|
|
46112
|
-
}
|
|
46113
|
-
});
|
|
46114
|
-
},
|
|
46115
|
-
};
|
|
46116
|
-
return Iterable;
|
|
46117
46734
|
}),
|
|
46118
46735
|
/**
|
|
46119
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46120
|
-
*
|
|
46121
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/test/search document }
|
|
46122
|
-
*
|
|
46123
|
-
* 获取笔试列表
|
|
46736
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=delete&version=v1 click to debug }
|
|
46124
46737
|
*
|
|
46125
|
-
*
|
|
46738
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46126
46739
|
*/
|
|
46127
|
-
|
|
46740
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46128
46741
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46129
46742
|
return this.httpInstance
|
|
46130
46743
|
.request({
|
|
46131
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46132
|
-
method: "
|
|
46744
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46745
|
+
method: "DELETE",
|
|
46133
46746
|
data,
|
|
46134
46747
|
params,
|
|
46135
46748
|
headers,
|
|
@@ -46139,17 +46752,12 @@ class Client$u extends Client$v {
|
|
|
46139
46752
|
throw e;
|
|
46140
46753
|
});
|
|
46141
46754
|
}),
|
|
46142
|
-
},
|
|
46143
|
-
/**
|
|
46144
|
-
* 待办
|
|
46145
|
-
*/
|
|
46146
|
-
todo: {
|
|
46147
46755
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46148
46756
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46149
46757
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46150
46758
|
const res = yield this.httpInstance
|
|
46151
46759
|
.request({
|
|
46152
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46760
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46153
46761
|
method: "GET",
|
|
46154
46762
|
headers: pickBy(innerPayload.headers, identity),
|
|
46155
46763
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -46194,45 +46802,16 @@ class Client$u extends Client$v {
|
|
|
46194
46802
|
return Iterable;
|
|
46195
46803
|
}),
|
|
46196
46804
|
/**
|
|
46197
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46198
|
-
*
|
|
46199
|
-
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/todo/list document }
|
|
46200
|
-
*
|
|
46201
|
-
* 获取待办列表
|
|
46805
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=list&version=v1 click to debug }
|
|
46202
46806
|
*
|
|
46203
|
-
*
|
|
46807
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46204
46808
|
*/
|
|
46205
46809
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46206
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46207
|
-
return this.httpInstance
|
|
46208
|
-
.request({
|
|
46209
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/todos`, path),
|
|
46210
|
-
method: "GET",
|
|
46211
|
-
data,
|
|
46212
|
-
params,
|
|
46213
|
-
headers,
|
|
46214
|
-
})
|
|
46215
|
-
.catch((e) => {
|
|
46216
|
-
this.logger.error(formatErrors(e));
|
|
46217
|
-
throw e;
|
|
46218
|
-
});
|
|
46219
|
-
}),
|
|
46220
|
-
},
|
|
46221
|
-
/**
|
|
46222
|
-
* tripartite_agreement
|
|
46223
|
-
*/
|
|
46224
|
-
tripartiteAgreement: {
|
|
46225
|
-
/**
|
|
46226
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=create&version=v1 click to debug }
|
|
46227
|
-
*
|
|
46228
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46229
|
-
*/
|
|
46230
|
-
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46231
46810
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46232
46811
|
return this.httpInstance
|
|
46233
46812
|
.request({
|
|
46234
46813
|
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements`, path),
|
|
46235
|
-
method: "
|
|
46814
|
+
method: "GET",
|
|
46236
46815
|
data,
|
|
46237
46816
|
params,
|
|
46238
46817
|
headers,
|
|
@@ -46243,16 +46822,16 @@ class Client$u extends Client$v {
|
|
|
46243
46822
|
});
|
|
46244
46823
|
}),
|
|
46245
46824
|
/**
|
|
46246
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=
|
|
46825
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=update&version=v1 click to debug }
|
|
46247
46826
|
*
|
|
46248
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=
|
|
46827
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46249
46828
|
*/
|
|
46250
|
-
|
|
46829
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46251
46830
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46252
46831
|
return this.httpInstance
|
|
46253
46832
|
.request({
|
|
46254
46833
|
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46255
|
-
method: "
|
|
46834
|
+
method: "PUT",
|
|
46256
46835
|
data,
|
|
46257
46836
|
params,
|
|
46258
46837
|
headers,
|
|
@@ -46262,12 +46841,17 @@ class Client$u extends Client$v {
|
|
|
46262
46841
|
throw e;
|
|
46263
46842
|
});
|
|
46264
46843
|
}),
|
|
46844
|
+
},
|
|
46845
|
+
/**
|
|
46846
|
+
* 权限
|
|
46847
|
+
*/
|
|
46848
|
+
userRole: {
|
|
46265
46849
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46266
46850
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46267
46851
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
46268
46852
|
const res = yield this.httpInstance
|
|
46269
46853
|
.request({
|
|
46270
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46854
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
46271
46855
|
method: "GET",
|
|
46272
46856
|
headers: pickBy(innerPayload.headers, identity),
|
|
46273
46857
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -46312,15 +46896,19 @@ class Client$u extends Client$v {
|
|
|
46312
46896
|
return Iterable;
|
|
46313
46897
|
}),
|
|
46314
46898
|
/**
|
|
46315
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=
|
|
46899
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=user_role&apiName=list&version=v1 click to debug }
|
|
46316
46900
|
*
|
|
46317
|
-
* {@link https://open.feishu.cn/
|
|
46901
|
+
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/user_role/list document }
|
|
46902
|
+
*
|
|
46903
|
+
* 获取用户角色列表
|
|
46904
|
+
*
|
|
46905
|
+
* 获取用户角色列表
|
|
46318
46906
|
*/
|
|
46319
46907
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46320
46908
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46321
46909
|
return this.httpInstance
|
|
46322
46910
|
.request({
|
|
46323
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/
|
|
46911
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/user_roles`, path),
|
|
46324
46912
|
method: "GET",
|
|
46325
46913
|
data,
|
|
46326
46914
|
params,
|
|
@@ -46331,26 +46919,6 @@ class Client$u extends Client$v {
|
|
|
46331
46919
|
throw e;
|
|
46332
46920
|
});
|
|
46333
46921
|
}),
|
|
46334
|
-
/**
|
|
46335
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=tripartite_agreement&apiName=update&version=v1 click to debug }
|
|
46336
|
-
*
|
|
46337
|
-
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=update&project=hire&resource=tripartite_agreement&version=v1 document }
|
|
46338
|
-
*/
|
|
46339
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
46340
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
46341
|
-
return this.httpInstance
|
|
46342
|
-
.request({
|
|
46343
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`, path),
|
|
46344
|
-
method: "PUT",
|
|
46345
|
-
data,
|
|
46346
|
-
params,
|
|
46347
|
-
headers,
|
|
46348
|
-
})
|
|
46349
|
-
.catch((e) => {
|
|
46350
|
-
this.logger.error(formatErrors(e));
|
|
46351
|
-
throw e;
|
|
46352
|
-
});
|
|
46353
|
-
}),
|
|
46354
46922
|
},
|
|
46355
46923
|
/**
|
|
46356
46924
|
* website.channel
|
|
@@ -51253,6 +51821,26 @@ class Client$s extends Client$t {
|
|
|
51253
51821
|
* feed_card
|
|
51254
51822
|
*/
|
|
51255
51823
|
feedCard: {
|
|
51824
|
+
/**
|
|
51825
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=feed_card&apiName=bot_time_sentive&version=v2 click to debug }
|
|
51826
|
+
*
|
|
51827
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=bot_time_sentive&project=im&resource=feed_card&version=v2 document }
|
|
51828
|
+
*/
|
|
51829
|
+
botTimeSentive: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
51830
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
51831
|
+
return this.httpInstance
|
|
51832
|
+
.request({
|
|
51833
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v2/feed_cards/bot_time_sentive`, path),
|
|
51834
|
+
method: "PATCH",
|
|
51835
|
+
data,
|
|
51836
|
+
params,
|
|
51837
|
+
headers,
|
|
51838
|
+
})
|
|
51839
|
+
.catch((e) => {
|
|
51840
|
+
this.logger.error(formatErrors(e));
|
|
51841
|
+
throw e;
|
|
51842
|
+
});
|
|
51843
|
+
}),
|
|
51256
51844
|
/**
|
|
51257
51845
|
* {@link https://open.feishu.cn/api-explorer?project=im&resource=feed_card&apiName=patch&version=v2 click to debug }
|
|
51258
51846
|
*
|
|
@@ -53293,6 +53881,31 @@ class Client$q extends Client$r {
|
|
|
53293
53881
|
});
|
|
53294
53882
|
}),
|
|
53295
53883
|
},
|
|
53884
|
+
/**
|
|
53885
|
+
* user_mailbox.message
|
|
53886
|
+
*/
|
|
53887
|
+
userMailboxMessage: {
|
|
53888
|
+
/**
|
|
53889
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=user_mailbox.message&apiName=send&version=v1 click to debug }
|
|
53890
|
+
*
|
|
53891
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=send&project=mail&resource=user_mailbox.message&version=v1 document }
|
|
53892
|
+
*/
|
|
53893
|
+
send: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
53894
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
53895
|
+
return this.httpInstance
|
|
53896
|
+
.request({
|
|
53897
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`, path),
|
|
53898
|
+
method: "POST",
|
|
53899
|
+
data,
|
|
53900
|
+
params,
|
|
53901
|
+
headers,
|
|
53902
|
+
})
|
|
53903
|
+
.catch((e) => {
|
|
53904
|
+
this.logger.error(formatErrors(e));
|
|
53905
|
+
throw e;
|
|
53906
|
+
});
|
|
53907
|
+
}),
|
|
53908
|
+
},
|
|
53296
53909
|
v1: {
|
|
53297
53910
|
/**
|
|
53298
53911
|
* 邮件组别名
|
|
@@ -54748,6 +55361,31 @@ class Client$q extends Client$r {
|
|
|
54748
55361
|
});
|
|
54749
55362
|
}),
|
|
54750
55363
|
},
|
|
55364
|
+
/**
|
|
55365
|
+
* user_mailbox.message
|
|
55366
|
+
*/
|
|
55367
|
+
userMailboxMessage: {
|
|
55368
|
+
/**
|
|
55369
|
+
* {@link https://open.feishu.cn/api-explorer?project=mail&resource=user_mailbox.message&apiName=send&version=v1 click to debug }
|
|
55370
|
+
*
|
|
55371
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=send&project=mail&resource=user_mailbox.message&version=v1 document }
|
|
55372
|
+
*/
|
|
55373
|
+
send: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55374
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55375
|
+
return this.httpInstance
|
|
55376
|
+
.request({
|
|
55377
|
+
url: fillApiPath(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`, path),
|
|
55378
|
+
method: "POST",
|
|
55379
|
+
data,
|
|
55380
|
+
params,
|
|
55381
|
+
headers,
|
|
55382
|
+
})
|
|
55383
|
+
.catch((e) => {
|
|
55384
|
+
this.logger.error(formatErrors(e));
|
|
55385
|
+
throw e;
|
|
55386
|
+
});
|
|
55387
|
+
}),
|
|
55388
|
+
},
|
|
54751
55389
|
},
|
|
54752
55390
|
};
|
|
54753
55391
|
}
|
|
@@ -54891,7 +55529,60 @@ class Client$n extends Client$o {
|
|
|
54891
55529
|
/**
|
|
54892
55530
|
|
|
54893
55531
|
*/
|
|
54894
|
-
this.moments = {
|
|
55532
|
+
this.moments = {
|
|
55533
|
+
/**
|
|
55534
|
+
* post
|
|
55535
|
+
*/
|
|
55536
|
+
post: {
|
|
55537
|
+
/**
|
|
55538
|
+
* {@link https://open.feishu.cn/api-explorer?project=moments&resource=post&apiName=get&version=v1 click to debug }
|
|
55539
|
+
*
|
|
55540
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=moments&resource=post&version=v1 document }
|
|
55541
|
+
*/
|
|
55542
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55543
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55544
|
+
return this.httpInstance
|
|
55545
|
+
.request({
|
|
55546
|
+
url: fillApiPath(`${this.domain}/open-apis/moments/v1/posts/:post_id`, path),
|
|
55547
|
+
method: "GET",
|
|
55548
|
+
data,
|
|
55549
|
+
params,
|
|
55550
|
+
headers,
|
|
55551
|
+
})
|
|
55552
|
+
.catch((e) => {
|
|
55553
|
+
this.logger.error(formatErrors(e));
|
|
55554
|
+
throw e;
|
|
55555
|
+
});
|
|
55556
|
+
}),
|
|
55557
|
+
},
|
|
55558
|
+
v1: {
|
|
55559
|
+
/**
|
|
55560
|
+
* post
|
|
55561
|
+
*/
|
|
55562
|
+
post: {
|
|
55563
|
+
/**
|
|
55564
|
+
* {@link https://open.feishu.cn/api-explorer?project=moments&resource=post&apiName=get&version=v1 click to debug }
|
|
55565
|
+
*
|
|
55566
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=moments&resource=post&version=v1 document }
|
|
55567
|
+
*/
|
|
55568
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
55569
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
55570
|
+
return this.httpInstance
|
|
55571
|
+
.request({
|
|
55572
|
+
url: fillApiPath(`${this.domain}/open-apis/moments/v1/posts/:post_id`, path),
|
|
55573
|
+
method: "GET",
|
|
55574
|
+
data,
|
|
55575
|
+
params,
|
|
55576
|
+
headers,
|
|
55577
|
+
})
|
|
55578
|
+
.catch((e) => {
|
|
55579
|
+
this.logger.error(formatErrors(e));
|
|
55580
|
+
throw e;
|
|
55581
|
+
});
|
|
55582
|
+
}),
|
|
55583
|
+
},
|
|
55584
|
+
},
|
|
55585
|
+
};
|
|
54895
55586
|
}
|
|
54896
55587
|
}
|
|
54897
55588
|
|
|
@@ -67512,7 +68203,7 @@ class Client extends Client$1 {
|
|
|
67512
68203
|
}
|
|
67513
68204
|
return {
|
|
67514
68205
|
params: Object.assign(Object.assign({}, get(payload, 'params', {})), targetOptions.params),
|
|
67515
|
-
headers: Object.assign(Object.assign({}, get(payload, 'headers', {})), targetOptions.headers),
|
|
68206
|
+
headers: Object.assign(Object.assign({ 'User-Agent': 'oapi-node-sdk/1.0.0' }, get(payload, 'headers', {})), targetOptions.headers),
|
|
67516
68207
|
data: Object.assign(Object.assign({}, get(payload, 'data', {})), targetOptions.data),
|
|
67517
68208
|
path: Object.assign(Object.assign({}, get(payload, 'path', {})), targetOptions.path),
|
|
67518
68209
|
};
|