@larksuiteoapi/node-sdk 1.10.0 → 1.11.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 +423 -98
- package/lib/index.js +423 -97
- package/package.json +1 -1
- package/types/index.d.ts +897 -309
package/es/index.js
CHANGED
|
@@ -570,7 +570,7 @@ class Client$1 {
|
|
|
570
570
|
},
|
|
571
571
|
};
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* 管理后台-企业勋章
|
|
574
574
|
*/
|
|
575
575
|
this.admin = {
|
|
576
576
|
/**
|
|
@@ -1438,7 +1438,7 @@ class Client$1 {
|
|
|
1438
1438
|
*/
|
|
1439
1439
|
this.approval = {
|
|
1440
1440
|
/**
|
|
1441
|
-
*
|
|
1441
|
+
* 事件
|
|
1442
1442
|
*/
|
|
1443
1443
|
approval: {
|
|
1444
1444
|
/**
|
|
@@ -1774,7 +1774,7 @@ class Client$1 {
|
|
|
1774
1774
|
}),
|
|
1775
1775
|
},
|
|
1776
1776
|
/**
|
|
1777
|
-
*
|
|
1777
|
+
* 原生审批实例
|
|
1778
1778
|
*/
|
|
1779
1779
|
instance: {
|
|
1780
1780
|
/**
|
|
@@ -3964,6 +3964,85 @@ class Client$1 {
|
|
|
3964
3964
|
* 云文档-多维表格
|
|
3965
3965
|
*/
|
|
3966
3966
|
this.bitable = {
|
|
3967
|
+
/**
|
|
3968
|
+
* 多维表格
|
|
3969
|
+
*/
|
|
3970
|
+
app: {
|
|
3971
|
+
/**
|
|
3972
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=create&version=v1 click to debug }
|
|
3973
|
+
*
|
|
3974
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=bitable&resource=app&version=v1 document }
|
|
3975
|
+
*/
|
|
3976
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3977
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3978
|
+
return httpInstance
|
|
3979
|
+
.request({
|
|
3980
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps`, path),
|
|
3981
|
+
method: "POST",
|
|
3982
|
+
data,
|
|
3983
|
+
params,
|
|
3984
|
+
headers,
|
|
3985
|
+
})
|
|
3986
|
+
.catch((e) => {
|
|
3987
|
+
this.logger.error(formatErrors(e));
|
|
3988
|
+
throw e;
|
|
3989
|
+
});
|
|
3990
|
+
}),
|
|
3991
|
+
/**
|
|
3992
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
3993
|
+
*
|
|
3994
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/get document }
|
|
3995
|
+
*
|
|
3996
|
+
* 获取多维表格元数据
|
|
3997
|
+
*
|
|
3998
|
+
* 获取指定多维表格的元数据信息,包括多维表格名称,多维表格版本号,多维表格是否开启高级权限等。
|
|
3999
|
+
*
|
|
4000
|
+
* 该接口支持调用频率上限为 20 QPS(Query Per Second,每秒请求率)
|
|
4001
|
+
*/
|
|
4002
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4003
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4004
|
+
return httpInstance
|
|
4005
|
+
.request({
|
|
4006
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4007
|
+
method: "GET",
|
|
4008
|
+
data,
|
|
4009
|
+
params,
|
|
4010
|
+
headers,
|
|
4011
|
+
})
|
|
4012
|
+
.catch((e) => {
|
|
4013
|
+
this.logger.error(formatErrors(e));
|
|
4014
|
+
throw e;
|
|
4015
|
+
});
|
|
4016
|
+
}),
|
|
4017
|
+
/**
|
|
4018
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
4019
|
+
*
|
|
4020
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/update document }
|
|
4021
|
+
*
|
|
4022
|
+
* 更新多维表格元数据
|
|
4023
|
+
*
|
|
4024
|
+
* 通过 app_token 更新多维表格元数据
|
|
4025
|
+
*
|
|
4026
|
+
* 该接口支持调用频率上限为 10 QPS
|
|
4027
|
+
*
|
|
4028
|
+
* - 飞书文档、飞书表格、知识库中的多维表格不支持开启高级权限;- 此接口非原子操作,先修改多维表格名字,后开关高级权限。可能存在部分成功的情况
|
|
4029
|
+
*/
|
|
4030
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4031
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4032
|
+
return httpInstance
|
|
4033
|
+
.request({
|
|
4034
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4035
|
+
method: "PUT",
|
|
4036
|
+
data,
|
|
4037
|
+
params,
|
|
4038
|
+
headers,
|
|
4039
|
+
})
|
|
4040
|
+
.catch((e) => {
|
|
4041
|
+
this.logger.error(formatErrors(e));
|
|
4042
|
+
throw e;
|
|
4043
|
+
});
|
|
4044
|
+
}),
|
|
4045
|
+
},
|
|
3967
4046
|
/**
|
|
3968
4047
|
* 仪表盘
|
|
3969
4048
|
*/
|
|
@@ -4067,65 +4146,6 @@ class Client$1 {
|
|
|
4067
4146
|
});
|
|
4068
4147
|
}),
|
|
4069
4148
|
},
|
|
4070
|
-
/**
|
|
4071
|
-
* 多维表格
|
|
4072
|
-
*/
|
|
4073
|
-
app: {
|
|
4074
|
-
/**
|
|
4075
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
4076
|
-
*
|
|
4077
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/get document }
|
|
4078
|
-
*
|
|
4079
|
-
* 获取多维表格元数据
|
|
4080
|
-
*
|
|
4081
|
-
* 获取指定多维表格的元数据信息,包括多维表格名称,多维表格版本号,多维表格是否开启高级权限等。
|
|
4082
|
-
*
|
|
4083
|
-
* 该接口支持调用频率上限为 20 QPS(Query Per Second,每秒请求率)
|
|
4084
|
-
*/
|
|
4085
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4086
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4087
|
-
return httpInstance
|
|
4088
|
-
.request({
|
|
4089
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4090
|
-
method: "GET",
|
|
4091
|
-
data,
|
|
4092
|
-
params,
|
|
4093
|
-
headers,
|
|
4094
|
-
})
|
|
4095
|
-
.catch((e) => {
|
|
4096
|
-
this.logger.error(formatErrors(e));
|
|
4097
|
-
throw e;
|
|
4098
|
-
});
|
|
4099
|
-
}),
|
|
4100
|
-
/**
|
|
4101
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
4102
|
-
*
|
|
4103
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/update document }
|
|
4104
|
-
*
|
|
4105
|
-
* 更新多维表格元数据
|
|
4106
|
-
*
|
|
4107
|
-
* 通过 app_token 更新多维表格元数据
|
|
4108
|
-
*
|
|
4109
|
-
* 该接口支持调用频率上限为 10 QPS
|
|
4110
|
-
*
|
|
4111
|
-
* - 飞书文档、飞书表格、知识库中的多维表格不支持开启高级权限;- 此接口非原子操作,先修改多维表格名字,后开关高级权限。可能存在部分成功的情况
|
|
4112
|
-
*/
|
|
4113
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4114
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4115
|
-
return httpInstance
|
|
4116
|
-
.request({
|
|
4117
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4118
|
-
method: "PUT",
|
|
4119
|
-
data,
|
|
4120
|
-
params,
|
|
4121
|
-
headers,
|
|
4122
|
-
})
|
|
4123
|
-
.catch((e) => {
|
|
4124
|
-
this.logger.error(formatErrors(e));
|
|
4125
|
-
throw e;
|
|
4126
|
-
});
|
|
4127
|
-
}),
|
|
4128
|
-
},
|
|
4129
4149
|
/**
|
|
4130
4150
|
* 自定义角色
|
|
4131
4151
|
*/
|
|
@@ -10378,41 +10398,9 @@ class Client$1 {
|
|
|
10378
10398
|
*/
|
|
10379
10399
|
this.exam = {};
|
|
10380
10400
|
/**
|
|
10381
|
-
|
|
10382
|
-
*/
|
|
10383
|
-
this.face_detection = {
|
|
10384
|
-
/**
|
|
10385
|
-
* 图片
|
|
10401
|
+
|
|
10386
10402
|
*/
|
|
10387
|
-
|
|
10388
|
-
/**
|
|
10389
|
-
* {@link https://open.feishu.cn/api-explorer?project=face_detection&resource=image&apiName=detect_face_attributes&version=v1 click to debug }
|
|
10390
|
-
*
|
|
10391
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/face_detection-v1/image/detect_face_attributes document }
|
|
10392
|
-
*
|
|
10393
|
-
* 人脸检测和属性分析
|
|
10394
|
-
*
|
|
10395
|
-
* 检测图片中的人脸属性和质量等信息
|
|
10396
|
-
*
|
|
10397
|
-
* 注意:返回值为 -1 表示该功能还暂未实现
|
|
10398
|
-
*/
|
|
10399
|
-
detectFaceAttributes: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10400
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10401
|
-
return httpInstance
|
|
10402
|
-
.request({
|
|
10403
|
-
url: fillApiPath(`${this.domain}/open-apis/face_detection/v1/image/detect_face_attributes`, path),
|
|
10404
|
-
method: "POST",
|
|
10405
|
-
data,
|
|
10406
|
-
params,
|
|
10407
|
-
headers,
|
|
10408
|
-
})
|
|
10409
|
-
.catch((e) => {
|
|
10410
|
-
this.logger.error(formatErrors(e));
|
|
10411
|
-
throw e;
|
|
10412
|
-
});
|
|
10413
|
-
}),
|
|
10414
|
-
},
|
|
10415
|
-
};
|
|
10403
|
+
this.face_detection = {};
|
|
10416
10404
|
/**
|
|
10417
10405
|
|
|
10418
10406
|
*/
|
|
@@ -11984,7 +11972,7 @@ class Client$1 {
|
|
|
11984
11972
|
*/
|
|
11985
11973
|
this.hire = {
|
|
11986
11974
|
/**
|
|
11987
|
-
*
|
|
11975
|
+
* 投递
|
|
11988
11976
|
*/
|
|
11989
11977
|
application: {
|
|
11990
11978
|
/**
|
|
@@ -19061,6 +19049,225 @@ class Client$1 {
|
|
|
19061
19049
|
});
|
|
19062
19050
|
}),
|
|
19063
19051
|
},
|
|
19052
|
+
/**
|
|
19053
|
+
* meeting_list
|
|
19054
|
+
*/
|
|
19055
|
+
meetingList: {
|
|
19056
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19057
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19058
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19059
|
+
const res = yield httpInstance
|
|
19060
|
+
.request({
|
|
19061
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/meeting_list`, path),
|
|
19062
|
+
method: "GET",
|
|
19063
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19064
|
+
params: pickBy(innerPayload.params, identity),
|
|
19065
|
+
})
|
|
19066
|
+
.catch((e) => {
|
|
19067
|
+
this.logger.error(formatErrors(e));
|
|
19068
|
+
});
|
|
19069
|
+
return res;
|
|
19070
|
+
});
|
|
19071
|
+
const Iterable = {
|
|
19072
|
+
[Symbol.asyncIterator]() {
|
|
19073
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19074
|
+
let hasMore = true;
|
|
19075
|
+
let pageToken;
|
|
19076
|
+
while (hasMore) {
|
|
19077
|
+
try {
|
|
19078
|
+
const res = yield __await(sendRequest({
|
|
19079
|
+
headers,
|
|
19080
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19081
|
+
data,
|
|
19082
|
+
}));
|
|
19083
|
+
const _b = get(res, "data") || {}, {
|
|
19084
|
+
// @ts-ignore
|
|
19085
|
+
has_more,
|
|
19086
|
+
// @ts-ignore
|
|
19087
|
+
page_token,
|
|
19088
|
+
// @ts-ignore
|
|
19089
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19090
|
+
yield yield __await(rest);
|
|
19091
|
+
hasMore = Boolean(has_more);
|
|
19092
|
+
pageToken = page_token || next_page_token;
|
|
19093
|
+
}
|
|
19094
|
+
catch (e) {
|
|
19095
|
+
yield yield __await(null);
|
|
19096
|
+
break;
|
|
19097
|
+
}
|
|
19098
|
+
}
|
|
19099
|
+
});
|
|
19100
|
+
},
|
|
19101
|
+
};
|
|
19102
|
+
return Iterable;
|
|
19103
|
+
}),
|
|
19104
|
+
/**
|
|
19105
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=meeting_list&apiName=get&version=v1 click to debug }
|
|
19106
|
+
*
|
|
19107
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=meeting_list&version=v1 document }
|
|
19108
|
+
*/
|
|
19109
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19110
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19111
|
+
return httpInstance
|
|
19112
|
+
.request({
|
|
19113
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/meeting_list`, path),
|
|
19114
|
+
method: "GET",
|
|
19115
|
+
data,
|
|
19116
|
+
params,
|
|
19117
|
+
headers,
|
|
19118
|
+
})
|
|
19119
|
+
.catch((e) => {
|
|
19120
|
+
this.logger.error(formatErrors(e));
|
|
19121
|
+
throw e;
|
|
19122
|
+
});
|
|
19123
|
+
}),
|
|
19124
|
+
},
|
|
19125
|
+
/**
|
|
19126
|
+
* participant_list
|
|
19127
|
+
*/
|
|
19128
|
+
participantList: {
|
|
19129
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19130
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19131
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19132
|
+
const res = yield httpInstance
|
|
19133
|
+
.request({
|
|
19134
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_list`, path),
|
|
19135
|
+
method: "GET",
|
|
19136
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19137
|
+
params: pickBy(innerPayload.params, identity),
|
|
19138
|
+
})
|
|
19139
|
+
.catch((e) => {
|
|
19140
|
+
this.logger.error(formatErrors(e));
|
|
19141
|
+
});
|
|
19142
|
+
return res;
|
|
19143
|
+
});
|
|
19144
|
+
const Iterable = {
|
|
19145
|
+
[Symbol.asyncIterator]() {
|
|
19146
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19147
|
+
let hasMore = true;
|
|
19148
|
+
let pageToken;
|
|
19149
|
+
while (hasMore) {
|
|
19150
|
+
try {
|
|
19151
|
+
const res = yield __await(sendRequest({
|
|
19152
|
+
headers,
|
|
19153
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19154
|
+
data,
|
|
19155
|
+
}));
|
|
19156
|
+
const _b = get(res, "data") || {}, {
|
|
19157
|
+
// @ts-ignore
|
|
19158
|
+
has_more,
|
|
19159
|
+
// @ts-ignore
|
|
19160
|
+
page_token,
|
|
19161
|
+
// @ts-ignore
|
|
19162
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19163
|
+
yield yield __await(rest);
|
|
19164
|
+
hasMore = Boolean(has_more);
|
|
19165
|
+
pageToken = page_token || next_page_token;
|
|
19166
|
+
}
|
|
19167
|
+
catch (e) {
|
|
19168
|
+
yield yield __await(null);
|
|
19169
|
+
break;
|
|
19170
|
+
}
|
|
19171
|
+
}
|
|
19172
|
+
});
|
|
19173
|
+
},
|
|
19174
|
+
};
|
|
19175
|
+
return Iterable;
|
|
19176
|
+
}),
|
|
19177
|
+
/**
|
|
19178
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=participant_list&apiName=get&version=v1 click to debug }
|
|
19179
|
+
*
|
|
19180
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=participant_list&version=v1 document }
|
|
19181
|
+
*/
|
|
19182
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19183
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19184
|
+
return httpInstance
|
|
19185
|
+
.request({
|
|
19186
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_list`, path),
|
|
19187
|
+
method: "GET",
|
|
19188
|
+
data,
|
|
19189
|
+
params,
|
|
19190
|
+
headers,
|
|
19191
|
+
})
|
|
19192
|
+
.catch((e) => {
|
|
19193
|
+
this.logger.error(formatErrors(e));
|
|
19194
|
+
throw e;
|
|
19195
|
+
});
|
|
19196
|
+
}),
|
|
19197
|
+
},
|
|
19198
|
+
/**
|
|
19199
|
+
* participant_quality_list
|
|
19200
|
+
*/
|
|
19201
|
+
participantQualityList: {
|
|
19202
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19203
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19204
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19205
|
+
const res = yield httpInstance
|
|
19206
|
+
.request({
|
|
19207
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_quality_list`, path),
|
|
19208
|
+
method: "GET",
|
|
19209
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19210
|
+
params: pickBy(innerPayload.params, identity),
|
|
19211
|
+
})
|
|
19212
|
+
.catch((e) => {
|
|
19213
|
+
this.logger.error(formatErrors(e));
|
|
19214
|
+
});
|
|
19215
|
+
return res;
|
|
19216
|
+
});
|
|
19217
|
+
const Iterable = {
|
|
19218
|
+
[Symbol.asyncIterator]() {
|
|
19219
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19220
|
+
let hasMore = true;
|
|
19221
|
+
let pageToken;
|
|
19222
|
+
while (hasMore) {
|
|
19223
|
+
try {
|
|
19224
|
+
const res = yield __await(sendRequest({
|
|
19225
|
+
headers,
|
|
19226
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19227
|
+
data,
|
|
19228
|
+
}));
|
|
19229
|
+
const _b = get(res, "data") || {}, {
|
|
19230
|
+
// @ts-ignore
|
|
19231
|
+
has_more,
|
|
19232
|
+
// @ts-ignore
|
|
19233
|
+
page_token,
|
|
19234
|
+
// @ts-ignore
|
|
19235
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19236
|
+
yield yield __await(rest);
|
|
19237
|
+
hasMore = Boolean(has_more);
|
|
19238
|
+
pageToken = page_token || next_page_token;
|
|
19239
|
+
}
|
|
19240
|
+
catch (e) {
|
|
19241
|
+
yield yield __await(null);
|
|
19242
|
+
break;
|
|
19243
|
+
}
|
|
19244
|
+
}
|
|
19245
|
+
});
|
|
19246
|
+
},
|
|
19247
|
+
};
|
|
19248
|
+
return Iterable;
|
|
19249
|
+
}),
|
|
19250
|
+
/**
|
|
19251
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=participant_quality_list&apiName=get&version=v1 click to debug }
|
|
19252
|
+
*
|
|
19253
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=participant_quality_list&version=v1 document }
|
|
19254
|
+
*/
|
|
19255
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19256
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19257
|
+
return httpInstance
|
|
19258
|
+
.request({
|
|
19259
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_quality_list`, path),
|
|
19260
|
+
method: "GET",
|
|
19261
|
+
data,
|
|
19262
|
+
params,
|
|
19263
|
+
headers,
|
|
19264
|
+
})
|
|
19265
|
+
.catch((e) => {
|
|
19266
|
+
this.logger.error(formatErrors(e));
|
|
19267
|
+
throw e;
|
|
19268
|
+
});
|
|
19269
|
+
}),
|
|
19270
|
+
},
|
|
19064
19271
|
/**
|
|
19065
19272
|
* 会议报告
|
|
19066
19273
|
*/
|
|
@@ -19253,6 +19460,51 @@ class Client$1 {
|
|
|
19253
19460
|
});
|
|
19254
19461
|
}),
|
|
19255
19462
|
},
|
|
19463
|
+
/**
|
|
19464
|
+
* reserve_config.admin
|
|
19465
|
+
*/
|
|
19466
|
+
reserveConfigAdmin: {
|
|
19467
|
+
/**
|
|
19468
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.admin&apiName=get&version=v1 click to debug }
|
|
19469
|
+
*
|
|
19470
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.admin&version=v1 document }
|
|
19471
|
+
*/
|
|
19472
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19473
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19474
|
+
return httpInstance
|
|
19475
|
+
.request({
|
|
19476
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`, path),
|
|
19477
|
+
method: "GET",
|
|
19478
|
+
data,
|
|
19479
|
+
params,
|
|
19480
|
+
headers,
|
|
19481
|
+
})
|
|
19482
|
+
.catch((e) => {
|
|
19483
|
+
this.logger.error(formatErrors(e));
|
|
19484
|
+
throw e;
|
|
19485
|
+
});
|
|
19486
|
+
}),
|
|
19487
|
+
/**
|
|
19488
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.admin&apiName=patch&version=v1 click to debug }
|
|
19489
|
+
*
|
|
19490
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.admin&version=v1 document }
|
|
19491
|
+
*/
|
|
19492
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19493
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19494
|
+
return httpInstance
|
|
19495
|
+
.request({
|
|
19496
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`, path),
|
|
19497
|
+
method: "PATCH",
|
|
19498
|
+
data,
|
|
19499
|
+
params,
|
|
19500
|
+
headers,
|
|
19501
|
+
})
|
|
19502
|
+
.catch((e) => {
|
|
19503
|
+
this.logger.error(formatErrors(e));
|
|
19504
|
+
throw e;
|
|
19505
|
+
});
|
|
19506
|
+
}),
|
|
19507
|
+
},
|
|
19256
19508
|
/**
|
|
19257
19509
|
* reserve_config
|
|
19258
19510
|
*/
|
|
@@ -19306,6 +19558,79 @@ class Client$1 {
|
|
|
19306
19558
|
});
|
|
19307
19559
|
}),
|
|
19308
19560
|
},
|
|
19561
|
+
/**
|
|
19562
|
+
* resource_reservation_list
|
|
19563
|
+
*/
|
|
19564
|
+
resourceReservationList: {
|
|
19565
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19566
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19567
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19568
|
+
const res = yield httpInstance
|
|
19569
|
+
.request({
|
|
19570
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/resource_reservation_list`, path),
|
|
19571
|
+
method: "GET",
|
|
19572
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
19573
|
+
params: pickBy(innerPayload.params, identity),
|
|
19574
|
+
})
|
|
19575
|
+
.catch((e) => {
|
|
19576
|
+
this.logger.error(formatErrors(e));
|
|
19577
|
+
});
|
|
19578
|
+
return res;
|
|
19579
|
+
});
|
|
19580
|
+
const Iterable = {
|
|
19581
|
+
[Symbol.asyncIterator]() {
|
|
19582
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19583
|
+
let hasMore = true;
|
|
19584
|
+
let pageToken;
|
|
19585
|
+
while (hasMore) {
|
|
19586
|
+
try {
|
|
19587
|
+
const res = yield __await(sendRequest({
|
|
19588
|
+
headers,
|
|
19589
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19590
|
+
data,
|
|
19591
|
+
}));
|
|
19592
|
+
const _b = get(res, "data") || {}, {
|
|
19593
|
+
// @ts-ignore
|
|
19594
|
+
has_more,
|
|
19595
|
+
// @ts-ignore
|
|
19596
|
+
page_token,
|
|
19597
|
+
// @ts-ignore
|
|
19598
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19599
|
+
yield yield __await(rest);
|
|
19600
|
+
hasMore = Boolean(has_more);
|
|
19601
|
+
pageToken = page_token || next_page_token;
|
|
19602
|
+
}
|
|
19603
|
+
catch (e) {
|
|
19604
|
+
yield yield __await(null);
|
|
19605
|
+
break;
|
|
19606
|
+
}
|
|
19607
|
+
}
|
|
19608
|
+
});
|
|
19609
|
+
},
|
|
19610
|
+
};
|
|
19611
|
+
return Iterable;
|
|
19612
|
+
}),
|
|
19613
|
+
/**
|
|
19614
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=resource_reservation_list&apiName=get&version=v1 click to debug }
|
|
19615
|
+
*
|
|
19616
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=resource_reservation_list&version=v1 document }
|
|
19617
|
+
*/
|
|
19618
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19619
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19620
|
+
return httpInstance
|
|
19621
|
+
.request({
|
|
19622
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/resource_reservation_list`, path),
|
|
19623
|
+
method: "GET",
|
|
19624
|
+
data,
|
|
19625
|
+
params,
|
|
19626
|
+
headers,
|
|
19627
|
+
})
|
|
19628
|
+
.catch((e) => {
|
|
19629
|
+
this.logger.error(formatErrors(e));
|
|
19630
|
+
throw e;
|
|
19631
|
+
});
|
|
19632
|
+
}),
|
|
19633
|
+
},
|
|
19309
19634
|
/**
|
|
19310
19635
|
* 会议室
|
|
19311
19636
|
*/
|
|
@@ -21059,4 +21384,4 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
|
|
|
21059
21384
|
yield next();
|
|
21060
21385
|
});
|
|
21061
21386
|
|
|
21062
|
-
export { AESCipher, AppType, CAppTicket, CardActionHandler, Client, Domain, EventDispatcher, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, generateChallenge, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };
|
|
21387
|
+
export { AESCipher, AppType, CAppTicket, CTenantAccessToken, CardActionHandler, Client, Domain, EventDispatcher, LoggerLevel, adaptDefault, adaptExpress, adaptKoa, adaptKoaRouter, generateChallenge, withAll, withHelpDeskCredential, withTenantKey, withTenantToken, withUserAccessToken };
|