@larksuiteoapi/node-sdk 1.49.0 → 1.50.1
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 +153 -11
- package/lib/index.js +153 -11
- package/package.json +1 -1
- package/types/index.d.ts +535 -24
package/es/index.js
CHANGED
|
@@ -1317,7 +1317,7 @@ class Client$15 extends Client$16 {
|
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
super(...arguments);
|
|
1319
1319
|
/**
|
|
1320
|
-
*
|
|
1320
|
+
* 管理后台-企业勋章
|
|
1321
1321
|
*/
|
|
1322
1322
|
this.admin = {
|
|
1323
1323
|
/**
|
|
@@ -4613,7 +4613,7 @@ class Client$12 extends Client$13 {
|
|
|
4613
4613
|
}),
|
|
4614
4614
|
},
|
|
4615
4615
|
/**
|
|
4616
|
-
*
|
|
4616
|
+
* 应用管理
|
|
4617
4617
|
*/
|
|
4618
4618
|
application: {
|
|
4619
4619
|
/**
|
|
@@ -5467,7 +5467,7 @@ class Client$12 extends Client$13 {
|
|
|
5467
5467
|
}),
|
|
5468
5468
|
},
|
|
5469
5469
|
/**
|
|
5470
|
-
*
|
|
5470
|
+
* 应用管理
|
|
5471
5471
|
*/
|
|
5472
5472
|
application: {
|
|
5473
5473
|
/**
|
|
@@ -6206,7 +6206,7 @@ class Client$11 extends Client$12 {
|
|
|
6206
6206
|
}),
|
|
6207
6207
|
},
|
|
6208
6208
|
/**
|
|
6209
|
-
*
|
|
6209
|
+
* 审批查询
|
|
6210
6210
|
*/
|
|
6211
6211
|
instance: {
|
|
6212
6212
|
/**
|
|
@@ -7211,7 +7211,7 @@ class Client$11 extends Client$12 {
|
|
|
7211
7211
|
}),
|
|
7212
7212
|
},
|
|
7213
7213
|
/**
|
|
7214
|
-
*
|
|
7214
|
+
* 审批查询
|
|
7215
7215
|
*/
|
|
7216
7216
|
instance: {
|
|
7217
7217
|
/**
|
|
@@ -12146,7 +12146,7 @@ class Client$W extends Client$X {
|
|
|
12146
12146
|
constructor() {
|
|
12147
12147
|
super(...arguments);
|
|
12148
12148
|
/**
|
|
12149
|
-
*
|
|
12149
|
+
* 云文档-电子表格
|
|
12150
12150
|
*/
|
|
12151
12151
|
this.bitable = {
|
|
12152
12152
|
/**
|
|
@@ -32637,6 +32637,147 @@ class Client$M extends Client$N {
|
|
|
32637
32637
|
});
|
|
32638
32638
|
}),
|
|
32639
32639
|
},
|
|
32640
|
+
/**
|
|
32641
|
+
* employees.international_assignment
|
|
32642
|
+
*/
|
|
32643
|
+
employeesInternationalAssignment: {
|
|
32644
|
+
/**
|
|
32645
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=create&version=v2 click to debug }
|
|
32646
|
+
*
|
|
32647
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32648
|
+
*/
|
|
32649
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32650
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32651
|
+
return this.httpInstance
|
|
32652
|
+
.request({
|
|
32653
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32654
|
+
method: "POST",
|
|
32655
|
+
data,
|
|
32656
|
+
params,
|
|
32657
|
+
headers,
|
|
32658
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32659
|
+
})
|
|
32660
|
+
.catch((e) => {
|
|
32661
|
+
this.logger.error(formatErrors(e));
|
|
32662
|
+
throw e;
|
|
32663
|
+
});
|
|
32664
|
+
}),
|
|
32665
|
+
/**
|
|
32666
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=delete&version=v2 click to debug }
|
|
32667
|
+
*
|
|
32668
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32669
|
+
*/
|
|
32670
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32671
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32672
|
+
return this.httpInstance
|
|
32673
|
+
.request({
|
|
32674
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`, path),
|
|
32675
|
+
method: "DELETE",
|
|
32676
|
+
data,
|
|
32677
|
+
params,
|
|
32678
|
+
headers,
|
|
32679
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32680
|
+
})
|
|
32681
|
+
.catch((e) => {
|
|
32682
|
+
this.logger.error(formatErrors(e));
|
|
32683
|
+
throw e;
|
|
32684
|
+
});
|
|
32685
|
+
}),
|
|
32686
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32687
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32688
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
32689
|
+
const res = yield this.httpInstance
|
|
32690
|
+
.request({
|
|
32691
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32692
|
+
method: "GET",
|
|
32693
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
32694
|
+
params: pickBy(innerPayload.params, identity),
|
|
32695
|
+
data,
|
|
32696
|
+
paramsSerializer: (params) => stringify(params, {
|
|
32697
|
+
arrayFormat: "repeat",
|
|
32698
|
+
}),
|
|
32699
|
+
})
|
|
32700
|
+
.catch((e) => {
|
|
32701
|
+
this.logger.error(formatErrors(e));
|
|
32702
|
+
});
|
|
32703
|
+
return res;
|
|
32704
|
+
});
|
|
32705
|
+
const Iterable = {
|
|
32706
|
+
[Symbol.asyncIterator]() {
|
|
32707
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
32708
|
+
let hasMore = true;
|
|
32709
|
+
let pageToken;
|
|
32710
|
+
while (hasMore) {
|
|
32711
|
+
try {
|
|
32712
|
+
const res = yield __await(sendRequest({
|
|
32713
|
+
headers,
|
|
32714
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
32715
|
+
data,
|
|
32716
|
+
}));
|
|
32717
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
32718
|
+
// @ts-ignore
|
|
32719
|
+
has_more,
|
|
32720
|
+
// @ts-ignore
|
|
32721
|
+
page_token,
|
|
32722
|
+
// @ts-ignore
|
|
32723
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
32724
|
+
yield yield __await(rest);
|
|
32725
|
+
hasMore = Boolean(has_more);
|
|
32726
|
+
pageToken = page_token || next_page_token;
|
|
32727
|
+
}
|
|
32728
|
+
catch (e) {
|
|
32729
|
+
yield yield __await(null);
|
|
32730
|
+
break;
|
|
32731
|
+
}
|
|
32732
|
+
}
|
|
32733
|
+
});
|
|
32734
|
+
},
|
|
32735
|
+
};
|
|
32736
|
+
return Iterable;
|
|
32737
|
+
}),
|
|
32738
|
+
/**
|
|
32739
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=list&version=v2 click to debug }
|
|
32740
|
+
*
|
|
32741
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32742
|
+
*/
|
|
32743
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32744
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32745
|
+
return this.httpInstance
|
|
32746
|
+
.request({
|
|
32747
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32748
|
+
method: "GET",
|
|
32749
|
+
data,
|
|
32750
|
+
params,
|
|
32751
|
+
headers,
|
|
32752
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32753
|
+
})
|
|
32754
|
+
.catch((e) => {
|
|
32755
|
+
this.logger.error(formatErrors(e));
|
|
32756
|
+
throw e;
|
|
32757
|
+
});
|
|
32758
|
+
}),
|
|
32759
|
+
/**
|
|
32760
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=patch&version=v2 click to debug }
|
|
32761
|
+
*
|
|
32762
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32763
|
+
*/
|
|
32764
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32765
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32766
|
+
return this.httpInstance
|
|
32767
|
+
.request({
|
|
32768
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`, path),
|
|
32769
|
+
method: "PATCH",
|
|
32770
|
+
data,
|
|
32771
|
+
params,
|
|
32772
|
+
headers,
|
|
32773
|
+
paramsSerializer: (params) => stringify(params, { arrayFormat: "repeat" }),
|
|
32774
|
+
})
|
|
32775
|
+
.catch((e) => {
|
|
32776
|
+
this.logger.error(formatErrors(e));
|
|
32777
|
+
throw e;
|
|
32778
|
+
});
|
|
32779
|
+
}),
|
|
32780
|
+
},
|
|
32640
32781
|
/**
|
|
32641
32782
|
* employees.job_data
|
|
32642
32783
|
*/
|
|
@@ -37687,7 +37828,7 @@ class Client$G extends Client$H {
|
|
|
37687
37828
|
}),
|
|
37688
37829
|
},
|
|
37689
37830
|
/**
|
|
37690
|
-
*
|
|
37831
|
+
* 文件
|
|
37691
37832
|
*/
|
|
37692
37833
|
file: {
|
|
37693
37834
|
/**
|
|
@@ -39507,7 +39648,7 @@ class Client$G extends Client$H {
|
|
|
39507
39648
|
}),
|
|
39508
39649
|
},
|
|
39509
39650
|
/**
|
|
39510
|
-
*
|
|
39651
|
+
* 文件
|
|
39511
39652
|
*/
|
|
39512
39653
|
file: {
|
|
39513
39654
|
/**
|
|
@@ -71157,7 +71298,7 @@ class Client$c extends Client$d {
|
|
|
71157
71298
|
}),
|
|
71158
71299
|
},
|
|
71159
71300
|
/**
|
|
71160
|
-
*
|
|
71301
|
+
* 单元格
|
|
71161
71302
|
*/
|
|
71162
71303
|
spreadsheetSheet: {
|
|
71163
71304
|
/**
|
|
@@ -71887,7 +72028,7 @@ class Client$c extends Client$d {
|
|
|
71887
72028
|
}),
|
|
71888
72029
|
},
|
|
71889
72030
|
/**
|
|
71890
|
-
*
|
|
72031
|
+
* 单元格
|
|
71891
72032
|
*/
|
|
71892
72033
|
spreadsheetSheet: {
|
|
71893
72034
|
/**
|
|
@@ -82775,7 +82916,8 @@ class WSClient {
|
|
|
82775
82916
|
// consumed by gateway
|
|
82776
82917
|
headers: {
|
|
82777
82918
|
"locale": "zh",
|
|
82778
|
-
}
|
|
82919
|
+
},
|
|
82920
|
+
timeout: 15000,
|
|
82779
82921
|
});
|
|
82780
82922
|
if (code !== ErrorCode.ok) {
|
|
82781
82923
|
this.logger.error('[ws]', `code: ${code}, ${code === ErrorCode.system_busy ? msg : 'system busy'}`);
|
package/lib/index.js
CHANGED
|
@@ -1332,7 +1332,7 @@ class Client$15 extends Client$16 {
|
|
|
1332
1332
|
constructor() {
|
|
1333
1333
|
super(...arguments);
|
|
1334
1334
|
/**
|
|
1335
|
-
*
|
|
1335
|
+
* 管理后台-企业勋章
|
|
1336
1336
|
*/
|
|
1337
1337
|
this.admin = {
|
|
1338
1338
|
/**
|
|
@@ -4628,7 +4628,7 @@ class Client$12 extends Client$13 {
|
|
|
4628
4628
|
}),
|
|
4629
4629
|
},
|
|
4630
4630
|
/**
|
|
4631
|
-
*
|
|
4631
|
+
* 应用管理
|
|
4632
4632
|
*/
|
|
4633
4633
|
application: {
|
|
4634
4634
|
/**
|
|
@@ -5482,7 +5482,7 @@ class Client$12 extends Client$13 {
|
|
|
5482
5482
|
}),
|
|
5483
5483
|
},
|
|
5484
5484
|
/**
|
|
5485
|
-
*
|
|
5485
|
+
* 应用管理
|
|
5486
5486
|
*/
|
|
5487
5487
|
application: {
|
|
5488
5488
|
/**
|
|
@@ -6221,7 +6221,7 @@ class Client$11 extends Client$12 {
|
|
|
6221
6221
|
}),
|
|
6222
6222
|
},
|
|
6223
6223
|
/**
|
|
6224
|
-
*
|
|
6224
|
+
* 审批查询
|
|
6225
6225
|
*/
|
|
6226
6226
|
instance: {
|
|
6227
6227
|
/**
|
|
@@ -7226,7 +7226,7 @@ class Client$11 extends Client$12 {
|
|
|
7226
7226
|
}),
|
|
7227
7227
|
},
|
|
7228
7228
|
/**
|
|
7229
|
-
*
|
|
7229
|
+
* 审批查询
|
|
7230
7230
|
*/
|
|
7231
7231
|
instance: {
|
|
7232
7232
|
/**
|
|
@@ -12161,7 +12161,7 @@ class Client$W extends Client$X {
|
|
|
12161
12161
|
constructor() {
|
|
12162
12162
|
super(...arguments);
|
|
12163
12163
|
/**
|
|
12164
|
-
*
|
|
12164
|
+
* 云文档-电子表格
|
|
12165
12165
|
*/
|
|
12166
12166
|
this.bitable = {
|
|
12167
12167
|
/**
|
|
@@ -32652,6 +32652,147 @@ class Client$M extends Client$N {
|
|
|
32652
32652
|
});
|
|
32653
32653
|
}),
|
|
32654
32654
|
},
|
|
32655
|
+
/**
|
|
32656
|
+
* employees.international_assignment
|
|
32657
|
+
*/
|
|
32658
|
+
employeesInternationalAssignment: {
|
|
32659
|
+
/**
|
|
32660
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=create&version=v2 click to debug }
|
|
32661
|
+
*
|
|
32662
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32663
|
+
*/
|
|
32664
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32665
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32666
|
+
return this.httpInstance
|
|
32667
|
+
.request({
|
|
32668
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32669
|
+
method: "POST",
|
|
32670
|
+
data,
|
|
32671
|
+
params,
|
|
32672
|
+
headers,
|
|
32673
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32674
|
+
})
|
|
32675
|
+
.catch((e) => {
|
|
32676
|
+
this.logger.error(formatErrors(e));
|
|
32677
|
+
throw e;
|
|
32678
|
+
});
|
|
32679
|
+
}),
|
|
32680
|
+
/**
|
|
32681
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=delete&version=v2 click to debug }
|
|
32682
|
+
*
|
|
32683
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32684
|
+
*/
|
|
32685
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32686
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32687
|
+
return this.httpInstance
|
|
32688
|
+
.request({
|
|
32689
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`, path),
|
|
32690
|
+
method: "DELETE",
|
|
32691
|
+
data,
|
|
32692
|
+
params,
|
|
32693
|
+
headers,
|
|
32694
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32695
|
+
})
|
|
32696
|
+
.catch((e) => {
|
|
32697
|
+
this.logger.error(formatErrors(e));
|
|
32698
|
+
throw e;
|
|
32699
|
+
});
|
|
32700
|
+
}),
|
|
32701
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32702
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32703
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
32704
|
+
const res = yield this.httpInstance
|
|
32705
|
+
.request({
|
|
32706
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32707
|
+
method: "GET",
|
|
32708
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
32709
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
32710
|
+
data,
|
|
32711
|
+
paramsSerializer: (params) => qs.stringify(params, {
|
|
32712
|
+
arrayFormat: "repeat",
|
|
32713
|
+
}),
|
|
32714
|
+
})
|
|
32715
|
+
.catch((e) => {
|
|
32716
|
+
this.logger.error(formatErrors(e));
|
|
32717
|
+
});
|
|
32718
|
+
return res;
|
|
32719
|
+
});
|
|
32720
|
+
const Iterable = {
|
|
32721
|
+
[Symbol.asyncIterator]() {
|
|
32722
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
32723
|
+
let hasMore = true;
|
|
32724
|
+
let pageToken;
|
|
32725
|
+
while (hasMore) {
|
|
32726
|
+
try {
|
|
32727
|
+
const res = yield __await(sendRequest({
|
|
32728
|
+
headers,
|
|
32729
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
32730
|
+
data,
|
|
32731
|
+
}));
|
|
32732
|
+
const _b = (res === null || res === void 0 ? void 0 : res.data) || {}, {
|
|
32733
|
+
// @ts-ignore
|
|
32734
|
+
has_more,
|
|
32735
|
+
// @ts-ignore
|
|
32736
|
+
page_token,
|
|
32737
|
+
// @ts-ignore
|
|
32738
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
32739
|
+
yield yield __await(rest);
|
|
32740
|
+
hasMore = Boolean(has_more);
|
|
32741
|
+
pageToken = page_token || next_page_token;
|
|
32742
|
+
}
|
|
32743
|
+
catch (e) {
|
|
32744
|
+
yield yield __await(null);
|
|
32745
|
+
break;
|
|
32746
|
+
}
|
|
32747
|
+
}
|
|
32748
|
+
});
|
|
32749
|
+
},
|
|
32750
|
+
};
|
|
32751
|
+
return Iterable;
|
|
32752
|
+
}),
|
|
32753
|
+
/**
|
|
32754
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=list&version=v2 click to debug }
|
|
32755
|
+
*
|
|
32756
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32757
|
+
*/
|
|
32758
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32759
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32760
|
+
return this.httpInstance
|
|
32761
|
+
.request({
|
|
32762
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`, path),
|
|
32763
|
+
method: "GET",
|
|
32764
|
+
data,
|
|
32765
|
+
params,
|
|
32766
|
+
headers,
|
|
32767
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32768
|
+
})
|
|
32769
|
+
.catch((e) => {
|
|
32770
|
+
this.logger.error(formatErrors(e));
|
|
32771
|
+
throw e;
|
|
32772
|
+
});
|
|
32773
|
+
}),
|
|
32774
|
+
/**
|
|
32775
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=patch&version=v2 click to debug }
|
|
32776
|
+
*
|
|
32777
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
32778
|
+
*/
|
|
32779
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
32780
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
32781
|
+
return this.httpInstance
|
|
32782
|
+
.request({
|
|
32783
|
+
url: fillApiPath(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`, path),
|
|
32784
|
+
method: "PATCH",
|
|
32785
|
+
data,
|
|
32786
|
+
params,
|
|
32787
|
+
headers,
|
|
32788
|
+
paramsSerializer: (params) => qs.stringify(params, { arrayFormat: "repeat" }),
|
|
32789
|
+
})
|
|
32790
|
+
.catch((e) => {
|
|
32791
|
+
this.logger.error(formatErrors(e));
|
|
32792
|
+
throw e;
|
|
32793
|
+
});
|
|
32794
|
+
}),
|
|
32795
|
+
},
|
|
32655
32796
|
/**
|
|
32656
32797
|
* employees.job_data
|
|
32657
32798
|
*/
|
|
@@ -37702,7 +37843,7 @@ class Client$G extends Client$H {
|
|
|
37702
37843
|
}),
|
|
37703
37844
|
},
|
|
37704
37845
|
/**
|
|
37705
|
-
*
|
|
37846
|
+
* 文件
|
|
37706
37847
|
*/
|
|
37707
37848
|
file: {
|
|
37708
37849
|
/**
|
|
@@ -39522,7 +39663,7 @@ class Client$G extends Client$H {
|
|
|
39522
39663
|
}),
|
|
39523
39664
|
},
|
|
39524
39665
|
/**
|
|
39525
|
-
*
|
|
39666
|
+
* 文件
|
|
39526
39667
|
*/
|
|
39527
39668
|
file: {
|
|
39528
39669
|
/**
|
|
@@ -71172,7 +71313,7 @@ class Client$c extends Client$d {
|
|
|
71172
71313
|
}),
|
|
71173
71314
|
},
|
|
71174
71315
|
/**
|
|
71175
|
-
*
|
|
71316
|
+
* 单元格
|
|
71176
71317
|
*/
|
|
71177
71318
|
spreadsheetSheet: {
|
|
71178
71319
|
/**
|
|
@@ -71902,7 +72043,7 @@ class Client$c extends Client$d {
|
|
|
71902
72043
|
}),
|
|
71903
72044
|
},
|
|
71904
72045
|
/**
|
|
71905
|
-
*
|
|
72046
|
+
* 单元格
|
|
71906
72047
|
*/
|
|
71907
72048
|
spreadsheetSheet: {
|
|
71908
72049
|
/**
|
|
@@ -82790,7 +82931,8 @@ class WSClient {
|
|
|
82790
82931
|
// consumed by gateway
|
|
82791
82932
|
headers: {
|
|
82792
82933
|
"locale": "zh",
|
|
82793
|
-
}
|
|
82934
|
+
},
|
|
82935
|
+
timeout: 15000,
|
|
82794
82936
|
});
|
|
82795
82937
|
if (code !== ErrorCode.ok) {
|
|
82796
82938
|
this.logger.error('[ws]', `code: ${code}, ${code === ErrorCode.system_busy ? msg : 'system busy'}`);
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ interface HttpRequestOptions<D> {
|
|
|
83
83
|
data?: D;
|
|
84
84
|
responseType?: ResponseType;
|
|
85
85
|
paramsSerializer?: (params: Record<string, any>) => string;
|
|
86
|
+
timeout?: number;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
interface IRequestOptions {
|
|
@@ -1074,7 +1075,7 @@ declare abstract class Client$15 extends Client$16 {
|
|
|
1074
1075
|
httpInstance: HttpInstance;
|
|
1075
1076
|
abstract formatPayload(payload?: IPayload, options?: IRequestOptions$1): Promise<Required<IPayload>>;
|
|
1076
1077
|
/**
|
|
1077
|
-
*
|
|
1078
|
+
* 管理后台-企业勋章
|
|
1078
1079
|
*/
|
|
1079
1080
|
admin: {
|
|
1080
1081
|
/**
|
|
@@ -6420,7 +6421,7 @@ declare abstract class Client$12 extends Client$13 {
|
|
|
6420
6421
|
}>;
|
|
6421
6422
|
};
|
|
6422
6423
|
/**
|
|
6423
|
-
*
|
|
6424
|
+
* 应用管理
|
|
6424
6425
|
*/
|
|
6425
6426
|
application: {
|
|
6426
6427
|
/**
|
|
@@ -7941,7 +7942,7 @@ declare abstract class Client$12 extends Client$13 {
|
|
|
7941
7942
|
}>;
|
|
7942
7943
|
};
|
|
7943
7944
|
/**
|
|
7944
|
-
*
|
|
7945
|
+
* 应用管理
|
|
7945
7946
|
*/
|
|
7946
7947
|
application: {
|
|
7947
7948
|
/**
|
|
@@ -9236,7 +9237,7 @@ declare abstract class Client$11 extends Client$12 {
|
|
|
9236
9237
|
}>;
|
|
9237
9238
|
};
|
|
9238
9239
|
/**
|
|
9239
|
-
*
|
|
9240
|
+
* 审批查询
|
|
9240
9241
|
*/
|
|
9241
9242
|
instance: {
|
|
9242
9243
|
/**
|
|
@@ -10774,7 +10775,7 @@ declare abstract class Client$11 extends Client$12 {
|
|
|
10774
10775
|
}>;
|
|
10775
10776
|
};
|
|
10776
10777
|
/**
|
|
10777
|
-
*
|
|
10778
|
+
* 审批查询
|
|
10778
10779
|
*/
|
|
10779
10780
|
instance: {
|
|
10780
10781
|
/**
|
|
@@ -19898,7 +19899,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
19898
19899
|
conditions?: Array<{
|
|
19899
19900
|
field_name: string;
|
|
19900
19901
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
19901
|
-
|
|
19902
|
+
value?: Array<string>;
|
|
19902
19903
|
}>;
|
|
19903
19904
|
conjunction?: "and" | "or";
|
|
19904
19905
|
other_perm?: number;
|
|
@@ -19907,7 +19908,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
19907
19908
|
conditions?: Array<{
|
|
19908
19909
|
field_name: string;
|
|
19909
19910
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
19910
|
-
|
|
19911
|
+
value?: Array<string>;
|
|
19911
19912
|
}>;
|
|
19912
19913
|
conjunction?: "and" | "or";
|
|
19913
19914
|
};
|
|
@@ -19941,7 +19942,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
19941
19942
|
conditions?: Array<{
|
|
19942
19943
|
field_name: string;
|
|
19943
19944
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
19944
|
-
|
|
19945
|
+
value?: Array<string>;
|
|
19945
19946
|
field_type?: number;
|
|
19946
19947
|
}>;
|
|
19947
19948
|
conjunction?: "and" | "or";
|
|
@@ -19952,7 +19953,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
19952
19953
|
conditions?: Array<{
|
|
19953
19954
|
field_name: string;
|
|
19954
19955
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
19955
|
-
|
|
19956
|
+
value?: Array<string>;
|
|
19956
19957
|
field_type?: number;
|
|
19957
19958
|
}>;
|
|
19958
19959
|
conjunction?: "and" | "or";
|
|
@@ -19995,7 +19996,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
19995
19996
|
conditions?: Array<{
|
|
19996
19997
|
field_name: string;
|
|
19997
19998
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
19998
|
-
|
|
19999
|
+
value?: Array<string>;
|
|
19999
20000
|
field_type?: number;
|
|
20000
20001
|
}>;
|
|
20001
20002
|
conjunction?: "and" | "or";
|
|
@@ -20006,7 +20007,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20006
20007
|
conditions?: Array<{
|
|
20007
20008
|
field_name: string;
|
|
20008
20009
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20009
|
-
|
|
20010
|
+
value?: Array<string>;
|
|
20010
20011
|
field_type?: number;
|
|
20011
20012
|
}>;
|
|
20012
20013
|
conjunction?: "and" | "or";
|
|
@@ -20059,7 +20060,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20059
20060
|
conditions?: Array<{
|
|
20060
20061
|
field_name: string;
|
|
20061
20062
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20062
|
-
|
|
20063
|
+
value?: Array<string>;
|
|
20063
20064
|
field_type?: number;
|
|
20064
20065
|
}>;
|
|
20065
20066
|
conjunction?: "and" | "or";
|
|
@@ -20070,7 +20071,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20070
20071
|
conditions?: Array<{
|
|
20071
20072
|
field_name: string;
|
|
20072
20073
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20073
|
-
|
|
20074
|
+
value?: Array<string>;
|
|
20074
20075
|
field_type?: number;
|
|
20075
20076
|
}>;
|
|
20076
20077
|
conjunction?: "and" | "or";
|
|
@@ -20114,7 +20115,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20114
20115
|
conditions?: Array<{
|
|
20115
20116
|
field_name: string;
|
|
20116
20117
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20117
|
-
|
|
20118
|
+
value?: Array<string>;
|
|
20118
20119
|
}>;
|
|
20119
20120
|
conjunction?: "and" | "or";
|
|
20120
20121
|
other_perm?: number;
|
|
@@ -20123,7 +20124,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20123
20124
|
conditions?: Array<{
|
|
20124
20125
|
field_name: string;
|
|
20125
20126
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20126
|
-
|
|
20127
|
+
value?: Array<string>;
|
|
20127
20128
|
}>;
|
|
20128
20129
|
conjunction?: "and" | "or";
|
|
20129
20130
|
};
|
|
@@ -20158,7 +20159,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20158
20159
|
conditions?: Array<{
|
|
20159
20160
|
field_name: string;
|
|
20160
20161
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20161
|
-
|
|
20162
|
+
value?: Array<string>;
|
|
20162
20163
|
field_type?: number;
|
|
20163
20164
|
}>;
|
|
20164
20165
|
conjunction?: "and" | "or";
|
|
@@ -20169,7 +20170,7 @@ declare abstract class Client$X extends Client$Y {
|
|
|
20169
20170
|
conditions?: Array<{
|
|
20170
20171
|
field_name: string;
|
|
20171
20172
|
operator?: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
|
|
20172
|
-
|
|
20173
|
+
value?: Array<string>;
|
|
20173
20174
|
field_type?: number;
|
|
20174
20175
|
}>;
|
|
20175
20176
|
conjunction?: "and" | "or";
|
|
@@ -20204,7 +20205,7 @@ declare abstract class Client$W extends Client$X {
|
|
|
20204
20205
|
httpInstance: HttpInstance;
|
|
20205
20206
|
abstract formatPayload(payload?: IPayload, options?: IRequestOptions$1): Promise<Required<IPayload>>;
|
|
20206
20207
|
/**
|
|
20207
|
-
*
|
|
20208
|
+
* 云文档-电子表格
|
|
20208
20209
|
*/
|
|
20209
20210
|
bitable: {
|
|
20210
20211
|
/**
|
|
@@ -65359,6 +65360,418 @@ declare abstract class Client$M extends Client$N {
|
|
|
65359
65360
|
} | undefined;
|
|
65360
65361
|
}>;
|
|
65361
65362
|
};
|
|
65363
|
+
/**
|
|
65364
|
+
* employees.international_assignment
|
|
65365
|
+
*/
|
|
65366
|
+
employeesInternationalAssignment: {
|
|
65367
|
+
/**
|
|
65368
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=create&version=v2 click to debug }
|
|
65369
|
+
*
|
|
65370
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
65371
|
+
*/
|
|
65372
|
+
create: (payload?: {
|
|
65373
|
+
data: {
|
|
65374
|
+
work_location_id: string;
|
|
65375
|
+
service_company?: string;
|
|
65376
|
+
work_shift?: string;
|
|
65377
|
+
weekly_working_hours_v2?: number;
|
|
65378
|
+
working_hours_type_id?: string;
|
|
65379
|
+
employee_type_id?: string;
|
|
65380
|
+
department_id?: string;
|
|
65381
|
+
job_id?: string;
|
|
65382
|
+
job_family_id?: string;
|
|
65383
|
+
job_level_id?: string;
|
|
65384
|
+
job_grade_id?: string;
|
|
65385
|
+
compensation_type?: string;
|
|
65386
|
+
direct_manager_id?: string;
|
|
65387
|
+
dotted_line_manager_id?: string;
|
|
65388
|
+
work_calendar_id?: string;
|
|
65389
|
+
position_id?: string;
|
|
65390
|
+
employment_id: string;
|
|
65391
|
+
custom_fields?: Array<{
|
|
65392
|
+
field_name: string;
|
|
65393
|
+
value: string;
|
|
65394
|
+
}>;
|
|
65395
|
+
international_assignment_reason?: string;
|
|
65396
|
+
description?: string;
|
|
65397
|
+
international_assignment_expected_end_date?: string;
|
|
65398
|
+
international_assignment_type: string;
|
|
65399
|
+
effective_time: string;
|
|
65400
|
+
expiration_time?: string;
|
|
65401
|
+
};
|
|
65402
|
+
params?: {
|
|
65403
|
+
client_token?: string;
|
|
65404
|
+
user_id_type?: "user_id" | "union_id" | "open_id" | "people_corehr_id";
|
|
65405
|
+
department_id_type?: "open_department_id" | "department_id" | "people_corehr_department_id";
|
|
65406
|
+
};
|
|
65407
|
+
}, options?: IRequestOptions$1) => Promise<{
|
|
65408
|
+
code?: number | undefined;
|
|
65409
|
+
msg?: string | undefined;
|
|
65410
|
+
data?: {
|
|
65411
|
+
international_assignment?: {
|
|
65412
|
+
work_location_id?: string | undefined;
|
|
65413
|
+
service_company?: string | undefined;
|
|
65414
|
+
work_shift?: {
|
|
65415
|
+
enum_name: string;
|
|
65416
|
+
display?: {
|
|
65417
|
+
lang: string;
|
|
65418
|
+
value: string;
|
|
65419
|
+
}[] | undefined;
|
|
65420
|
+
} | undefined;
|
|
65421
|
+
working_hours_type_id?: string | undefined;
|
|
65422
|
+
employee_type_id?: string | undefined;
|
|
65423
|
+
weekly_working_hours_v2?: number | undefined;
|
|
65424
|
+
department_id?: string | undefined;
|
|
65425
|
+
job_id?: string | undefined;
|
|
65426
|
+
job_family_id?: string | undefined;
|
|
65427
|
+
job_level_id?: string | undefined;
|
|
65428
|
+
job_grade_id?: string | undefined;
|
|
65429
|
+
compensation_type?: {
|
|
65430
|
+
enum_name: string;
|
|
65431
|
+
display?: {
|
|
65432
|
+
lang: string;
|
|
65433
|
+
value: string;
|
|
65434
|
+
}[] | undefined;
|
|
65435
|
+
} | undefined;
|
|
65436
|
+
direct_manager_id?: string | undefined;
|
|
65437
|
+
dotted_line_manager_id?: string | undefined;
|
|
65438
|
+
work_calendar_id?: string | undefined;
|
|
65439
|
+
position_id?: string | undefined;
|
|
65440
|
+
employment_id?: string | undefined;
|
|
65441
|
+
custom_fields?: {
|
|
65442
|
+
field_name: string;
|
|
65443
|
+
value: string;
|
|
65444
|
+
}[] | undefined;
|
|
65445
|
+
international_assignment_reason?: string | undefined;
|
|
65446
|
+
description?: string | undefined;
|
|
65447
|
+
international_assignment_expected_end_date?: string | undefined;
|
|
65448
|
+
international_assignment_status?: {
|
|
65449
|
+
enum_name: string;
|
|
65450
|
+
display?: {
|
|
65451
|
+
lang: string;
|
|
65452
|
+
value: string;
|
|
65453
|
+
}[] | undefined;
|
|
65454
|
+
} | undefined;
|
|
65455
|
+
international_assignment_type?: {
|
|
65456
|
+
enum_name: string;
|
|
65457
|
+
display?: {
|
|
65458
|
+
lang: string;
|
|
65459
|
+
value: string;
|
|
65460
|
+
}[] | undefined;
|
|
65461
|
+
} | undefined;
|
|
65462
|
+
effective_time?: string | undefined;
|
|
65463
|
+
expiration_time?: string | undefined;
|
|
65464
|
+
id?: string | undefined;
|
|
65465
|
+
} | undefined;
|
|
65466
|
+
} | undefined;
|
|
65467
|
+
}>;
|
|
65468
|
+
/**
|
|
65469
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=delete&version=v2 click to debug }
|
|
65470
|
+
*
|
|
65471
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
65472
|
+
*/
|
|
65473
|
+
delete: (payload?: {
|
|
65474
|
+
path: {
|
|
65475
|
+
international_assignment_id: string;
|
|
65476
|
+
};
|
|
65477
|
+
}, options?: IRequestOptions$1) => Promise<{
|
|
65478
|
+
code?: number | undefined;
|
|
65479
|
+
msg?: string | undefined;
|
|
65480
|
+
data?: {} | undefined;
|
|
65481
|
+
}>;
|
|
65482
|
+
listWithIterator: (payload?: {
|
|
65483
|
+
params?: {
|
|
65484
|
+
user_id_type?: "user_id" | "union_id" | "open_id" | "people_corehr_id";
|
|
65485
|
+
department_id_type?: "open_department_id" | "department_id" | "people_corehr_department_id";
|
|
65486
|
+
page_size?: number;
|
|
65487
|
+
page_token?: string;
|
|
65488
|
+
employment_ids?: Array<string>;
|
|
65489
|
+
international_assignment_ids?: Array<string>;
|
|
65490
|
+
effective_time?: string;
|
|
65491
|
+
expiration_time?: string;
|
|
65492
|
+
employment_status_list?: Array<string>;
|
|
65493
|
+
work_location_id_list?: Array<string>;
|
|
65494
|
+
department_id_list?: Array<string>;
|
|
65495
|
+
direct_manager_id_list?: Array<string>;
|
|
65496
|
+
dotted_line_manager_id_list?: Array<string>;
|
|
65497
|
+
position_id_list?: Array<string>;
|
|
65498
|
+
job_id_list?: Array<string>;
|
|
65499
|
+
job_family_id_list?: Array<string>;
|
|
65500
|
+
job_level_id_list?: Array<string>;
|
|
65501
|
+
job_grade_id_list?: Array<string>;
|
|
65502
|
+
working_hours_type_id_list?: Array<string>;
|
|
65503
|
+
service_company_list?: Array<string>;
|
|
65504
|
+
weekly_working_hours_v2?: number;
|
|
65505
|
+
work_shift_list?: Array<string>;
|
|
65506
|
+
compensation_type_list?: Array<string>;
|
|
65507
|
+
international_assignment_expected_end_date?: string;
|
|
65508
|
+
international_assignment_status_list?: Array<string>;
|
|
65509
|
+
international_assignment_type_list?: Array<string>;
|
|
65510
|
+
work_calendar_id_list?: Array<string>;
|
|
65511
|
+
};
|
|
65512
|
+
}, options?: IRequestOptions$1) => Promise<{
|
|
65513
|
+
[Symbol.asyncIterator](): AsyncGenerator<{
|
|
65514
|
+
items?: {
|
|
65515
|
+
work_location_id?: string | undefined;
|
|
65516
|
+
service_company?: string | undefined;
|
|
65517
|
+
work_shift?: {
|
|
65518
|
+
enum_name: string;
|
|
65519
|
+
display?: {
|
|
65520
|
+
lang: string;
|
|
65521
|
+
value: string;
|
|
65522
|
+
}[] | undefined;
|
|
65523
|
+
} | undefined;
|
|
65524
|
+
working_hours_type_id?: string | undefined;
|
|
65525
|
+
employee_type_id?: string | undefined;
|
|
65526
|
+
weekly_working_hours_v2?: number | undefined;
|
|
65527
|
+
department_id?: string | undefined;
|
|
65528
|
+
job_id?: string | undefined;
|
|
65529
|
+
job_family_id?: string | undefined;
|
|
65530
|
+
job_level_id?: string | undefined;
|
|
65531
|
+
job_grade_id?: string | undefined;
|
|
65532
|
+
compensation_type?: {
|
|
65533
|
+
enum_name: string;
|
|
65534
|
+
display?: {
|
|
65535
|
+
lang: string;
|
|
65536
|
+
value: string;
|
|
65537
|
+
}[] | undefined;
|
|
65538
|
+
} | undefined;
|
|
65539
|
+
direct_manager_id?: string | undefined;
|
|
65540
|
+
dotted_line_manager_id?: string | undefined;
|
|
65541
|
+
work_calendar_id?: string | undefined;
|
|
65542
|
+
position_id?: string | undefined;
|
|
65543
|
+
employment_id?: string | undefined;
|
|
65544
|
+
custom_fields?: {
|
|
65545
|
+
field_name: string;
|
|
65546
|
+
value: string;
|
|
65547
|
+
}[] | undefined;
|
|
65548
|
+
international_assignment_reason?: string | undefined;
|
|
65549
|
+
description?: string | undefined;
|
|
65550
|
+
international_assignment_expected_end_date?: string | undefined;
|
|
65551
|
+
international_assignment_status?: {
|
|
65552
|
+
enum_name: string;
|
|
65553
|
+
display?: {
|
|
65554
|
+
lang: string;
|
|
65555
|
+
value: string;
|
|
65556
|
+
}[] | undefined;
|
|
65557
|
+
} | undefined;
|
|
65558
|
+
international_assignment_type?: {
|
|
65559
|
+
enum_name: string;
|
|
65560
|
+
display?: {
|
|
65561
|
+
lang: string;
|
|
65562
|
+
value: string;
|
|
65563
|
+
}[] | undefined;
|
|
65564
|
+
} | undefined;
|
|
65565
|
+
effective_time?: string | undefined;
|
|
65566
|
+
expiration_time?: string | undefined;
|
|
65567
|
+
id?: string | undefined;
|
|
65568
|
+
}[] | undefined;
|
|
65569
|
+
no_authority_ids?: string[] | undefined;
|
|
65570
|
+
} | null, void, unknown>;
|
|
65571
|
+
}>;
|
|
65572
|
+
/**
|
|
65573
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=list&version=v2 click to debug }
|
|
65574
|
+
*
|
|
65575
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
65576
|
+
*/
|
|
65577
|
+
list: (payload?: {
|
|
65578
|
+
params?: {
|
|
65579
|
+
user_id_type?: "user_id" | "union_id" | "open_id" | "people_corehr_id";
|
|
65580
|
+
department_id_type?: "open_department_id" | "department_id" | "people_corehr_department_id";
|
|
65581
|
+
page_size?: number;
|
|
65582
|
+
page_token?: string;
|
|
65583
|
+
employment_ids?: Array<string>;
|
|
65584
|
+
international_assignment_ids?: Array<string>;
|
|
65585
|
+
effective_time?: string;
|
|
65586
|
+
expiration_time?: string;
|
|
65587
|
+
employment_status_list?: Array<string>;
|
|
65588
|
+
work_location_id_list?: Array<string>;
|
|
65589
|
+
department_id_list?: Array<string>;
|
|
65590
|
+
direct_manager_id_list?: Array<string>;
|
|
65591
|
+
dotted_line_manager_id_list?: Array<string>;
|
|
65592
|
+
position_id_list?: Array<string>;
|
|
65593
|
+
job_id_list?: Array<string>;
|
|
65594
|
+
job_family_id_list?: Array<string>;
|
|
65595
|
+
job_level_id_list?: Array<string>;
|
|
65596
|
+
job_grade_id_list?: Array<string>;
|
|
65597
|
+
working_hours_type_id_list?: Array<string>;
|
|
65598
|
+
service_company_list?: Array<string>;
|
|
65599
|
+
weekly_working_hours_v2?: number;
|
|
65600
|
+
work_shift_list?: Array<string>;
|
|
65601
|
+
compensation_type_list?: Array<string>;
|
|
65602
|
+
international_assignment_expected_end_date?: string;
|
|
65603
|
+
international_assignment_status_list?: Array<string>;
|
|
65604
|
+
international_assignment_type_list?: Array<string>;
|
|
65605
|
+
work_calendar_id_list?: Array<string>;
|
|
65606
|
+
};
|
|
65607
|
+
}, options?: IRequestOptions$1) => Promise<{
|
|
65608
|
+
code?: number | undefined;
|
|
65609
|
+
msg?: string | undefined;
|
|
65610
|
+
data?: {
|
|
65611
|
+
items?: {
|
|
65612
|
+
work_location_id?: string | undefined;
|
|
65613
|
+
service_company?: string | undefined;
|
|
65614
|
+
work_shift?: {
|
|
65615
|
+
enum_name: string;
|
|
65616
|
+
display?: {
|
|
65617
|
+
lang: string;
|
|
65618
|
+
value: string;
|
|
65619
|
+
}[] | undefined;
|
|
65620
|
+
} | undefined;
|
|
65621
|
+
working_hours_type_id?: string | undefined;
|
|
65622
|
+
employee_type_id?: string | undefined;
|
|
65623
|
+
weekly_working_hours_v2?: number | undefined;
|
|
65624
|
+
department_id?: string | undefined;
|
|
65625
|
+
job_id?: string | undefined;
|
|
65626
|
+
job_family_id?: string | undefined;
|
|
65627
|
+
job_level_id?: string | undefined;
|
|
65628
|
+
job_grade_id?: string | undefined;
|
|
65629
|
+
compensation_type?: {
|
|
65630
|
+
enum_name: string;
|
|
65631
|
+
display?: {
|
|
65632
|
+
lang: string;
|
|
65633
|
+
value: string;
|
|
65634
|
+
}[] | undefined;
|
|
65635
|
+
} | undefined;
|
|
65636
|
+
direct_manager_id?: string | undefined;
|
|
65637
|
+
dotted_line_manager_id?: string | undefined;
|
|
65638
|
+
work_calendar_id?: string | undefined;
|
|
65639
|
+
position_id?: string | undefined;
|
|
65640
|
+
employment_id?: string | undefined;
|
|
65641
|
+
custom_fields?: {
|
|
65642
|
+
field_name: string;
|
|
65643
|
+
value: string;
|
|
65644
|
+
}[] | undefined;
|
|
65645
|
+
international_assignment_reason?: string | undefined;
|
|
65646
|
+
description?: string | undefined;
|
|
65647
|
+
international_assignment_expected_end_date?: string | undefined;
|
|
65648
|
+
international_assignment_status?: {
|
|
65649
|
+
enum_name: string;
|
|
65650
|
+
display?: {
|
|
65651
|
+
lang: string;
|
|
65652
|
+
value: string;
|
|
65653
|
+
}[] | undefined;
|
|
65654
|
+
} | undefined;
|
|
65655
|
+
international_assignment_type?: {
|
|
65656
|
+
enum_name: string;
|
|
65657
|
+
display?: {
|
|
65658
|
+
lang: string;
|
|
65659
|
+
value: string;
|
|
65660
|
+
}[] | undefined;
|
|
65661
|
+
} | undefined;
|
|
65662
|
+
effective_time?: string | undefined;
|
|
65663
|
+
expiration_time?: string | undefined;
|
|
65664
|
+
id?: string | undefined;
|
|
65665
|
+
}[] | undefined;
|
|
65666
|
+
no_authority_ids?: string[] | undefined;
|
|
65667
|
+
page_token?: string | undefined;
|
|
65668
|
+
has_more?: boolean | undefined;
|
|
65669
|
+
} | undefined;
|
|
65670
|
+
}>;
|
|
65671
|
+
/**
|
|
65672
|
+
* {@link https://open.feishu.cn/api-explorer?project=corehr&resource=employees.international_assignment&apiName=patch&version=v2 click to debug }
|
|
65673
|
+
*
|
|
65674
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=corehr&resource=employees.international_assignment&version=v2 document }
|
|
65675
|
+
*/
|
|
65676
|
+
patch: (payload?: {
|
|
65677
|
+
data?: {
|
|
65678
|
+
work_location_id?: string;
|
|
65679
|
+
service_company?: string;
|
|
65680
|
+
work_shift?: string;
|
|
65681
|
+
weekly_working_hours_v2?: number;
|
|
65682
|
+
working_hours_type_id?: string;
|
|
65683
|
+
employee_type_id?: string;
|
|
65684
|
+
department_id?: string;
|
|
65685
|
+
job_id?: string;
|
|
65686
|
+
job_family_id?: string;
|
|
65687
|
+
job_level_id?: string;
|
|
65688
|
+
job_grade_id?: string;
|
|
65689
|
+
compensation_type?: string;
|
|
65690
|
+
direct_manager_id?: string;
|
|
65691
|
+
dotted_line_manager_id?: string;
|
|
65692
|
+
work_calendar_id?: string;
|
|
65693
|
+
position_id?: string;
|
|
65694
|
+
custom_fields?: Array<{
|
|
65695
|
+
field_name: string;
|
|
65696
|
+
value: string;
|
|
65697
|
+
}>;
|
|
65698
|
+
international_assignment_reason?: string;
|
|
65699
|
+
description?: string;
|
|
65700
|
+
international_assignment_expected_end_date?: string;
|
|
65701
|
+
international_assignment_type?: string;
|
|
65702
|
+
effective_time?: string;
|
|
65703
|
+
expiration_time?: string;
|
|
65704
|
+
};
|
|
65705
|
+
params?: {
|
|
65706
|
+
client_token?: string;
|
|
65707
|
+
user_id_type?: "user_id" | "union_id" | "open_id" | "people_corehr_id";
|
|
65708
|
+
department_id_type?: "open_department_id" | "department_id" | "people_corehr_department_id";
|
|
65709
|
+
};
|
|
65710
|
+
path: {
|
|
65711
|
+
international_assignment_id: string;
|
|
65712
|
+
};
|
|
65713
|
+
}, options?: IRequestOptions$1) => Promise<{
|
|
65714
|
+
code?: number | undefined;
|
|
65715
|
+
msg?: string | undefined;
|
|
65716
|
+
data?: {
|
|
65717
|
+
international_assignment?: {
|
|
65718
|
+
work_location_id?: string | undefined;
|
|
65719
|
+
service_company?: string | undefined;
|
|
65720
|
+
work_shift?: {
|
|
65721
|
+
enum_name: string;
|
|
65722
|
+
display?: {
|
|
65723
|
+
lang: string;
|
|
65724
|
+
value: string;
|
|
65725
|
+
}[] | undefined;
|
|
65726
|
+
} | undefined;
|
|
65727
|
+
working_hours_type_id?: string | undefined;
|
|
65728
|
+
employee_type_id?: string | undefined;
|
|
65729
|
+
weekly_working_hours_v2?: number | undefined;
|
|
65730
|
+
department_id?: string | undefined;
|
|
65731
|
+
job_id?: string | undefined;
|
|
65732
|
+
job_family_id?: string | undefined;
|
|
65733
|
+
job_level_id?: string | undefined;
|
|
65734
|
+
job_grade_id?: string | undefined;
|
|
65735
|
+
compensation_type?: {
|
|
65736
|
+
enum_name: string;
|
|
65737
|
+
display?: {
|
|
65738
|
+
lang: string;
|
|
65739
|
+
value: string;
|
|
65740
|
+
}[] | undefined;
|
|
65741
|
+
} | undefined;
|
|
65742
|
+
direct_manager_id?: string | undefined;
|
|
65743
|
+
dotted_line_manager_id?: string | undefined;
|
|
65744
|
+
work_calendar_id?: string | undefined;
|
|
65745
|
+
position_id?: string | undefined;
|
|
65746
|
+
employment_id?: string | undefined;
|
|
65747
|
+
custom_fields?: {
|
|
65748
|
+
field_name: string;
|
|
65749
|
+
value: string;
|
|
65750
|
+
}[] | undefined;
|
|
65751
|
+
international_assignment_reason?: string | undefined;
|
|
65752
|
+
description?: string | undefined;
|
|
65753
|
+
international_assignment_expected_end_date?: string | undefined;
|
|
65754
|
+
international_assignment_status?: {
|
|
65755
|
+
enum_name: string;
|
|
65756
|
+
display?: {
|
|
65757
|
+
lang: string;
|
|
65758
|
+
value: string;
|
|
65759
|
+
}[] | undefined;
|
|
65760
|
+
} | undefined;
|
|
65761
|
+
international_assignment_type?: {
|
|
65762
|
+
enum_name: string;
|
|
65763
|
+
display?: {
|
|
65764
|
+
lang: string;
|
|
65765
|
+
value: string;
|
|
65766
|
+
}[] | undefined;
|
|
65767
|
+
} | undefined;
|
|
65768
|
+
effective_time?: string | undefined;
|
|
65769
|
+
expiration_time?: string | undefined;
|
|
65770
|
+
id?: string | undefined;
|
|
65771
|
+
} | undefined;
|
|
65772
|
+
} | undefined;
|
|
65773
|
+
}>;
|
|
65774
|
+
};
|
|
65362
65775
|
/**
|
|
65363
65776
|
* employees.job_data
|
|
65364
65777
|
*/
|
|
@@ -71332,6 +71745,7 @@ declare abstract class Client$M extends Client$N {
|
|
|
71332
71745
|
onboarding_info?: {
|
|
71333
71746
|
offer_id?: string | undefined;
|
|
71334
71747
|
offer_hr_id?: string | undefined;
|
|
71748
|
+
offer_hr_id_v2?: string | undefined;
|
|
71335
71749
|
entry_mode?: string | undefined;
|
|
71336
71750
|
onboarding_date?: string | undefined;
|
|
71337
71751
|
ats_application_id?: string | undefined;
|
|
@@ -72515,6 +72929,7 @@ declare abstract class Client$M extends Client$N {
|
|
|
72515
72929
|
onboarding_info?: {
|
|
72516
72930
|
offer_id?: string | undefined;
|
|
72517
72931
|
offer_hr_id?: string | undefined;
|
|
72932
|
+
offer_hr_id_v2?: string | undefined;
|
|
72518
72933
|
entry_mode?: string | undefined;
|
|
72519
72934
|
onboarding_date?: string | undefined;
|
|
72520
72935
|
ats_application_id?: string | undefined;
|
|
@@ -73724,6 +74139,7 @@ declare abstract class Client$M extends Client$N {
|
|
|
73724
74139
|
onboarding_info?: {
|
|
73725
74140
|
offer_id?: string | undefined;
|
|
73726
74141
|
offer_hr_id?: string | undefined;
|
|
74142
|
+
offer_hr_id_v2?: string | undefined;
|
|
73727
74143
|
entry_mode?: string | undefined;
|
|
73728
74144
|
onboarding_date?: string | undefined;
|
|
73729
74145
|
ats_application_id?: string | undefined;
|
|
@@ -74923,6 +75339,7 @@ declare abstract class Client$M extends Client$N {
|
|
|
74923
75339
|
onboarding_info?: {
|
|
74924
75340
|
offer_id?: string | undefined;
|
|
74925
75341
|
offer_hr_id?: string | undefined;
|
|
75342
|
+
offer_hr_id_v2?: string | undefined;
|
|
74926
75343
|
entry_mode?: string | undefined;
|
|
74927
75344
|
onboarding_date?: string | undefined;
|
|
74928
75345
|
ats_application_id?: string | undefined;
|
|
@@ -186898,7 +187315,7 @@ declare abstract class Client$G extends Client$H {
|
|
|
186898
187315
|
}>;
|
|
186899
187316
|
};
|
|
186900
187317
|
/**
|
|
186901
|
-
*
|
|
187318
|
+
* 文件
|
|
186902
187319
|
*/
|
|
186903
187320
|
file: {
|
|
186904
187321
|
/**
|
|
@@ -188859,7 +189276,7 @@ declare abstract class Client$G extends Client$H {
|
|
|
188859
189276
|
}>;
|
|
188860
189277
|
};
|
|
188861
189278
|
/**
|
|
188862
|
-
*
|
|
189279
|
+
* 文件
|
|
188863
189280
|
*/
|
|
188864
189281
|
file: {
|
|
188865
189282
|
/**
|
|
@@ -195718,6 +196135,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
195718
196135
|
user_id?: string;
|
|
195719
196136
|
resume_source_id?: string;
|
|
195720
196137
|
application_preferred_city_code_list?: Array<string>;
|
|
196138
|
+
delivery_type?: number;
|
|
195721
196139
|
};
|
|
195722
196140
|
params?: {
|
|
195723
196141
|
user_id_type?: "user_id" | "union_id" | "open_id";
|
|
@@ -203931,7 +204349,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
203931
204349
|
job_id?: string | undefined;
|
|
203932
204350
|
job_name?: string | undefined;
|
|
203933
204351
|
} | undefined;
|
|
203934
|
-
create_time?:
|
|
204352
|
+
create_time?: number | undefined;
|
|
203935
204353
|
offer_status?: number | undefined;
|
|
203936
204354
|
offer_type?: number | undefined;
|
|
203937
204355
|
employee_type?: {
|
|
@@ -204136,6 +204554,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
204136
204554
|
need_approve?: boolean | undefined;
|
|
204137
204555
|
is_sensitive?: boolean | undefined;
|
|
204138
204556
|
object_type?: number | undefined;
|
|
204557
|
+
object_type_v2?: number | undefined;
|
|
204139
204558
|
config?: {
|
|
204140
204559
|
options?: {
|
|
204141
204560
|
id?: string | undefined;
|
|
@@ -209647,6 +210066,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
209647
210066
|
user_id?: string;
|
|
209648
210067
|
resume_source_id?: string;
|
|
209649
210068
|
application_preferred_city_code_list?: Array<string>;
|
|
210069
|
+
delivery_type?: number;
|
|
209650
210070
|
};
|
|
209651
210071
|
params?: {
|
|
209652
210072
|
user_id_type?: "user_id" | "union_id" | "open_id";
|
|
@@ -217860,7 +218280,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
217860
218280
|
job_id?: string | undefined;
|
|
217861
218281
|
job_name?: string | undefined;
|
|
217862
218282
|
} | undefined;
|
|
217863
|
-
create_time?:
|
|
218283
|
+
create_time?: number | undefined;
|
|
217864
218284
|
offer_status?: number | undefined;
|
|
217865
218285
|
offer_type?: number | undefined;
|
|
217866
218286
|
employee_type?: {
|
|
@@ -218065,6 +218485,7 @@ declare abstract class Client$x extends Client$y {
|
|
|
218065
218485
|
need_approve?: boolean | undefined;
|
|
218066
218486
|
is_sensitive?: boolean | undefined;
|
|
218067
218487
|
object_type?: number | undefined;
|
|
218488
|
+
object_type_v2?: number | undefined;
|
|
218068
218489
|
config?: {
|
|
218069
218490
|
options?: {
|
|
218070
218491
|
id?: string | undefined;
|
|
@@ -239029,6 +239450,94 @@ declare abstract class Client$i extends Client$j {
|
|
|
239029
239450
|
} | undefined;
|
|
239030
239451
|
} | undefined;
|
|
239031
239452
|
}[] | undefined;
|
|
239453
|
+
user_roles?: {
|
|
239454
|
+
role_id?: string | undefined;
|
|
239455
|
+
name?: {
|
|
239456
|
+
zh_cn?: string | undefined;
|
|
239457
|
+
en_us?: string | undefined;
|
|
239458
|
+
} | undefined;
|
|
239459
|
+
}[] | undefined;
|
|
239460
|
+
underling_roles?: {
|
|
239461
|
+
role_id?: string | undefined;
|
|
239462
|
+
name?: {
|
|
239463
|
+
zh_cn?: string | undefined;
|
|
239464
|
+
en_us?: string | undefined;
|
|
239465
|
+
} | undefined;
|
|
239466
|
+
}[] | undefined;
|
|
239467
|
+
}[] | undefined;
|
|
239468
|
+
review_depend_projects?: {
|
|
239469
|
+
id?: string | undefined;
|
|
239470
|
+
name?: {
|
|
239471
|
+
zh_cn?: string | undefined;
|
|
239472
|
+
en_us?: string | undefined;
|
|
239473
|
+
} | undefined;
|
|
239474
|
+
roles?: {
|
|
239475
|
+
reviewer_role?: {
|
|
239476
|
+
role_id?: string | undefined;
|
|
239477
|
+
name?: {
|
|
239478
|
+
zh_cn?: string | undefined;
|
|
239479
|
+
en_us?: string | undefined;
|
|
239480
|
+
} | undefined;
|
|
239481
|
+
} | undefined;
|
|
239482
|
+
reviewee_role?: {
|
|
239483
|
+
role_id?: string | undefined;
|
|
239484
|
+
name?: {
|
|
239485
|
+
zh_cn?: string | undefined;
|
|
239486
|
+
en_us?: string | undefined;
|
|
239487
|
+
} | undefined;
|
|
239488
|
+
} | undefined;
|
|
239489
|
+
}[] | undefined;
|
|
239490
|
+
user_roles?: {
|
|
239491
|
+
role_id?: string | undefined;
|
|
239492
|
+
name?: {
|
|
239493
|
+
zh_cn?: string | undefined;
|
|
239494
|
+
en_us?: string | undefined;
|
|
239495
|
+
} | undefined;
|
|
239496
|
+
}[] | undefined;
|
|
239497
|
+
underling_roles?: {
|
|
239498
|
+
role_id?: string | undefined;
|
|
239499
|
+
name?: {
|
|
239500
|
+
zh_cn?: string | undefined;
|
|
239501
|
+
en_us?: string | undefined;
|
|
239502
|
+
} | undefined;
|
|
239503
|
+
}[] | undefined;
|
|
239504
|
+
}[] | undefined;
|
|
239505
|
+
participated_projects?: {
|
|
239506
|
+
id?: string | undefined;
|
|
239507
|
+
name?: {
|
|
239508
|
+
zh_cn?: string | undefined;
|
|
239509
|
+
en_us?: string | undefined;
|
|
239510
|
+
} | undefined;
|
|
239511
|
+
roles?: {
|
|
239512
|
+
reviewer_role?: {
|
|
239513
|
+
role_id?: string | undefined;
|
|
239514
|
+
name?: {
|
|
239515
|
+
zh_cn?: string | undefined;
|
|
239516
|
+
en_us?: string | undefined;
|
|
239517
|
+
} | undefined;
|
|
239518
|
+
} | undefined;
|
|
239519
|
+
reviewee_role?: {
|
|
239520
|
+
role_id?: string | undefined;
|
|
239521
|
+
name?: {
|
|
239522
|
+
zh_cn?: string | undefined;
|
|
239523
|
+
en_us?: string | undefined;
|
|
239524
|
+
} | undefined;
|
|
239525
|
+
} | undefined;
|
|
239526
|
+
}[] | undefined;
|
|
239527
|
+
user_roles?: {
|
|
239528
|
+
role_id?: string | undefined;
|
|
239529
|
+
name?: {
|
|
239530
|
+
zh_cn?: string | undefined;
|
|
239531
|
+
en_us?: string | undefined;
|
|
239532
|
+
} | undefined;
|
|
239533
|
+
}[] | undefined;
|
|
239534
|
+
underling_roles?: {
|
|
239535
|
+
role_id?: string | undefined;
|
|
239536
|
+
name?: {
|
|
239537
|
+
zh_cn?: string | undefined;
|
|
239538
|
+
en_us?: string | undefined;
|
|
239539
|
+
} | undefined;
|
|
239540
|
+
}[] | undefined;
|
|
239032
239541
|
}[] | undefined;
|
|
239033
239542
|
} | undefined;
|
|
239034
239543
|
record_id?: string | undefined;
|
|
@@ -239086,6 +239595,7 @@ declare abstract class Client$i extends Client$j {
|
|
|
239086
239595
|
en_us?: string | undefined;
|
|
239087
239596
|
} | undefined;
|
|
239088
239597
|
parent_field_id?: string | undefined;
|
|
239598
|
+
kpi_template_id?: string | undefined;
|
|
239089
239599
|
}[] | undefined;
|
|
239090
239600
|
}[] | undefined;
|
|
239091
239601
|
review_template_id?: string | undefined;
|
|
@@ -239153,6 +239663,7 @@ declare abstract class Client$i extends Client$j {
|
|
|
239153
239663
|
en_us?: string | undefined;
|
|
239154
239664
|
} | undefined;
|
|
239155
239665
|
parent_field_id?: string | undefined;
|
|
239666
|
+
kpi_template_id?: string | undefined;
|
|
239156
239667
|
}[] | undefined;
|
|
239157
239668
|
}[] | undefined;
|
|
239158
239669
|
review_template_id?: string | undefined;
|
|
@@ -242441,7 +242952,7 @@ declare abstract class Client$c extends Client$d {
|
|
|
242441
242952
|
}>;
|
|
242442
242953
|
};
|
|
242443
242954
|
/**
|
|
242444
|
-
*
|
|
242955
|
+
* 单元格
|
|
242445
242956
|
*/
|
|
242446
242957
|
spreadsheetSheet: {
|
|
242447
242958
|
/**
|
|
@@ -243282,7 +243793,7 @@ declare abstract class Client$c extends Client$d {
|
|
|
243282
243793
|
}>;
|
|
243283
243794
|
};
|
|
243284
243795
|
/**
|
|
243285
|
-
*
|
|
243796
|
+
* 单元格
|
|
243286
243797
|
*/
|
|
243287
243798
|
spreadsheetSheet: {
|
|
243288
243799
|
/**
|