@larksuiteoapi/node-sdk 1.10.0 → 1.11.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 +422 -97
- package/lib/index.js +422 -97
- package/package.json +1 -1
- package/types/index.d.ts +895 -308
package/lib/index.js
CHANGED
|
@@ -585,7 +585,7 @@ class Client$1 {
|
|
|
585
585
|
},
|
|
586
586
|
};
|
|
587
587
|
/**
|
|
588
|
-
*
|
|
588
|
+
* 管理后台-企业勋章
|
|
589
589
|
*/
|
|
590
590
|
this.admin = {
|
|
591
591
|
/**
|
|
@@ -1453,7 +1453,7 @@ class Client$1 {
|
|
|
1453
1453
|
*/
|
|
1454
1454
|
this.approval = {
|
|
1455
1455
|
/**
|
|
1456
|
-
*
|
|
1456
|
+
* 事件
|
|
1457
1457
|
*/
|
|
1458
1458
|
approval: {
|
|
1459
1459
|
/**
|
|
@@ -1789,7 +1789,7 @@ class Client$1 {
|
|
|
1789
1789
|
}),
|
|
1790
1790
|
},
|
|
1791
1791
|
/**
|
|
1792
|
-
*
|
|
1792
|
+
* 原生审批实例
|
|
1793
1793
|
*/
|
|
1794
1794
|
instance: {
|
|
1795
1795
|
/**
|
|
@@ -3979,6 +3979,85 @@ class Client$1 {
|
|
|
3979
3979
|
* 云文档-多维表格
|
|
3980
3980
|
*/
|
|
3981
3981
|
this.bitable = {
|
|
3982
|
+
/**
|
|
3983
|
+
* 多维表格
|
|
3984
|
+
*/
|
|
3985
|
+
app: {
|
|
3986
|
+
/**
|
|
3987
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=create&version=v1 click to debug }
|
|
3988
|
+
*
|
|
3989
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=bitable&resource=app&version=v1 document }
|
|
3990
|
+
*/
|
|
3991
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
3992
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
3993
|
+
return httpInstance
|
|
3994
|
+
.request({
|
|
3995
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps`, path),
|
|
3996
|
+
method: "POST",
|
|
3997
|
+
data,
|
|
3998
|
+
params,
|
|
3999
|
+
headers,
|
|
4000
|
+
})
|
|
4001
|
+
.catch((e) => {
|
|
4002
|
+
this.logger.error(formatErrors(e));
|
|
4003
|
+
throw e;
|
|
4004
|
+
});
|
|
4005
|
+
}),
|
|
4006
|
+
/**
|
|
4007
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
4008
|
+
*
|
|
4009
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/get document }
|
|
4010
|
+
*
|
|
4011
|
+
* 获取多维表格元数据
|
|
4012
|
+
*
|
|
4013
|
+
* 获取指定多维表格的元数据信息,包括多维表格名称,多维表格版本号,多维表格是否开启高级权限等。
|
|
4014
|
+
*
|
|
4015
|
+
* 该接口支持调用频率上限为 20 QPS(Query Per Second,每秒请求率)
|
|
4016
|
+
*/
|
|
4017
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4018
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4019
|
+
return httpInstance
|
|
4020
|
+
.request({
|
|
4021
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4022
|
+
method: "GET",
|
|
4023
|
+
data,
|
|
4024
|
+
params,
|
|
4025
|
+
headers,
|
|
4026
|
+
})
|
|
4027
|
+
.catch((e) => {
|
|
4028
|
+
this.logger.error(formatErrors(e));
|
|
4029
|
+
throw e;
|
|
4030
|
+
});
|
|
4031
|
+
}),
|
|
4032
|
+
/**
|
|
4033
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
4034
|
+
*
|
|
4035
|
+
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/update document }
|
|
4036
|
+
*
|
|
4037
|
+
* 更新多维表格元数据
|
|
4038
|
+
*
|
|
4039
|
+
* 通过 app_token 更新多维表格元数据
|
|
4040
|
+
*
|
|
4041
|
+
* 该接口支持调用频率上限为 10 QPS
|
|
4042
|
+
*
|
|
4043
|
+
* - 飞书文档、飞书表格、知识库中的多维表格不支持开启高级权限;- 此接口非原子操作,先修改多维表格名字,后开关高级权限。可能存在部分成功的情况
|
|
4044
|
+
*/
|
|
4045
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4046
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4047
|
+
return httpInstance
|
|
4048
|
+
.request({
|
|
4049
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4050
|
+
method: "PUT",
|
|
4051
|
+
data,
|
|
4052
|
+
params,
|
|
4053
|
+
headers,
|
|
4054
|
+
})
|
|
4055
|
+
.catch((e) => {
|
|
4056
|
+
this.logger.error(formatErrors(e));
|
|
4057
|
+
throw e;
|
|
4058
|
+
});
|
|
4059
|
+
}),
|
|
4060
|
+
},
|
|
3982
4061
|
/**
|
|
3983
4062
|
* 仪表盘
|
|
3984
4063
|
*/
|
|
@@ -4082,65 +4161,6 @@ class Client$1 {
|
|
|
4082
4161
|
});
|
|
4083
4162
|
}),
|
|
4084
4163
|
},
|
|
4085
|
-
/**
|
|
4086
|
-
* 多维表格
|
|
4087
|
-
*/
|
|
4088
|
-
app: {
|
|
4089
|
-
/**
|
|
4090
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
4091
|
-
*
|
|
4092
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/get document }
|
|
4093
|
-
*
|
|
4094
|
-
* 获取多维表格元数据
|
|
4095
|
-
*
|
|
4096
|
-
* 获取指定多维表格的元数据信息,包括多维表格名称,多维表格版本号,多维表格是否开启高级权限等。
|
|
4097
|
-
*
|
|
4098
|
-
* 该接口支持调用频率上限为 20 QPS(Query Per Second,每秒请求率)
|
|
4099
|
-
*/
|
|
4100
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4101
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4102
|
-
return httpInstance
|
|
4103
|
-
.request({
|
|
4104
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4105
|
-
method: "GET",
|
|
4106
|
-
data,
|
|
4107
|
-
params,
|
|
4108
|
-
headers,
|
|
4109
|
-
})
|
|
4110
|
-
.catch((e) => {
|
|
4111
|
-
this.logger.error(formatErrors(e));
|
|
4112
|
-
throw e;
|
|
4113
|
-
});
|
|
4114
|
-
}),
|
|
4115
|
-
/**
|
|
4116
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
4117
|
-
*
|
|
4118
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/update document }
|
|
4119
|
-
*
|
|
4120
|
-
* 更新多维表格元数据
|
|
4121
|
-
*
|
|
4122
|
-
* 通过 app_token 更新多维表格元数据
|
|
4123
|
-
*
|
|
4124
|
-
* 该接口支持调用频率上限为 10 QPS
|
|
4125
|
-
*
|
|
4126
|
-
* - 飞书文档、飞书表格、知识库中的多维表格不支持开启高级权限;- 此接口非原子操作,先修改多维表格名字,后开关高级权限。可能存在部分成功的情况
|
|
4127
|
-
*/
|
|
4128
|
-
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
4129
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
4130
|
-
return httpInstance
|
|
4131
|
-
.request({
|
|
4132
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
4133
|
-
method: "PUT",
|
|
4134
|
-
data,
|
|
4135
|
-
params,
|
|
4136
|
-
headers,
|
|
4137
|
-
})
|
|
4138
|
-
.catch((e) => {
|
|
4139
|
-
this.logger.error(formatErrors(e));
|
|
4140
|
-
throw e;
|
|
4141
|
-
});
|
|
4142
|
-
}),
|
|
4143
|
-
},
|
|
4144
4164
|
/**
|
|
4145
4165
|
* 自定义角色
|
|
4146
4166
|
*/
|
|
@@ -10393,41 +10413,9 @@ class Client$1 {
|
|
|
10393
10413
|
*/
|
|
10394
10414
|
this.exam = {};
|
|
10395
10415
|
/**
|
|
10396
|
-
|
|
10397
|
-
*/
|
|
10398
|
-
this.face_detection = {
|
|
10399
|
-
/**
|
|
10400
|
-
* 图片
|
|
10416
|
+
|
|
10401
10417
|
*/
|
|
10402
|
-
|
|
10403
|
-
/**
|
|
10404
|
-
* {@link https://open.feishu.cn/api-explorer?project=face_detection&resource=image&apiName=detect_face_attributes&version=v1 click to debug }
|
|
10405
|
-
*
|
|
10406
|
-
* {@link https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/ai/face_detection-v1/image/detect_face_attributes document }
|
|
10407
|
-
*
|
|
10408
|
-
* 人脸检测和属性分析
|
|
10409
|
-
*
|
|
10410
|
-
* 检测图片中的人脸属性和质量等信息
|
|
10411
|
-
*
|
|
10412
|
-
* 注意:返回值为 -1 表示该功能还暂未实现
|
|
10413
|
-
*/
|
|
10414
|
-
detectFaceAttributes: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
10415
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
10416
|
-
return httpInstance
|
|
10417
|
-
.request({
|
|
10418
|
-
url: fillApiPath(`${this.domain}/open-apis/face_detection/v1/image/detect_face_attributes`, path),
|
|
10419
|
-
method: "POST",
|
|
10420
|
-
data,
|
|
10421
|
-
params,
|
|
10422
|
-
headers,
|
|
10423
|
-
})
|
|
10424
|
-
.catch((e) => {
|
|
10425
|
-
this.logger.error(formatErrors(e));
|
|
10426
|
-
throw e;
|
|
10427
|
-
});
|
|
10428
|
-
}),
|
|
10429
|
-
},
|
|
10430
|
-
};
|
|
10418
|
+
this.face_detection = {};
|
|
10431
10419
|
/**
|
|
10432
10420
|
|
|
10433
10421
|
*/
|
|
@@ -11999,7 +11987,7 @@ class Client$1 {
|
|
|
11999
11987
|
*/
|
|
12000
11988
|
this.hire = {
|
|
12001
11989
|
/**
|
|
12002
|
-
*
|
|
11990
|
+
* 投递
|
|
12003
11991
|
*/
|
|
12004
11992
|
application: {
|
|
12005
11993
|
/**
|
|
@@ -19076,6 +19064,225 @@ class Client$1 {
|
|
|
19076
19064
|
});
|
|
19077
19065
|
}),
|
|
19078
19066
|
},
|
|
19067
|
+
/**
|
|
19068
|
+
* meeting_list
|
|
19069
|
+
*/
|
|
19070
|
+
meetingList: {
|
|
19071
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19072
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19073
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19074
|
+
const res = yield httpInstance
|
|
19075
|
+
.request({
|
|
19076
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/meeting_list`, path),
|
|
19077
|
+
method: "GET",
|
|
19078
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19079
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19080
|
+
})
|
|
19081
|
+
.catch((e) => {
|
|
19082
|
+
this.logger.error(formatErrors(e));
|
|
19083
|
+
});
|
|
19084
|
+
return res;
|
|
19085
|
+
});
|
|
19086
|
+
const Iterable = {
|
|
19087
|
+
[Symbol.asyncIterator]() {
|
|
19088
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19089
|
+
let hasMore = true;
|
|
19090
|
+
let pageToken;
|
|
19091
|
+
while (hasMore) {
|
|
19092
|
+
try {
|
|
19093
|
+
const res = yield __await(sendRequest({
|
|
19094
|
+
headers,
|
|
19095
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19096
|
+
data,
|
|
19097
|
+
}));
|
|
19098
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19099
|
+
// @ts-ignore
|
|
19100
|
+
has_more,
|
|
19101
|
+
// @ts-ignore
|
|
19102
|
+
page_token,
|
|
19103
|
+
// @ts-ignore
|
|
19104
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19105
|
+
yield yield __await(rest);
|
|
19106
|
+
hasMore = Boolean(has_more);
|
|
19107
|
+
pageToken = page_token || next_page_token;
|
|
19108
|
+
}
|
|
19109
|
+
catch (e) {
|
|
19110
|
+
yield yield __await(null);
|
|
19111
|
+
break;
|
|
19112
|
+
}
|
|
19113
|
+
}
|
|
19114
|
+
});
|
|
19115
|
+
},
|
|
19116
|
+
};
|
|
19117
|
+
return Iterable;
|
|
19118
|
+
}),
|
|
19119
|
+
/**
|
|
19120
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=meeting_list&apiName=get&version=v1 click to debug }
|
|
19121
|
+
*
|
|
19122
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=meeting_list&version=v1 document }
|
|
19123
|
+
*/
|
|
19124
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19125
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19126
|
+
return httpInstance
|
|
19127
|
+
.request({
|
|
19128
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/meeting_list`, path),
|
|
19129
|
+
method: "GET",
|
|
19130
|
+
data,
|
|
19131
|
+
params,
|
|
19132
|
+
headers,
|
|
19133
|
+
})
|
|
19134
|
+
.catch((e) => {
|
|
19135
|
+
this.logger.error(formatErrors(e));
|
|
19136
|
+
throw e;
|
|
19137
|
+
});
|
|
19138
|
+
}),
|
|
19139
|
+
},
|
|
19140
|
+
/**
|
|
19141
|
+
* participant_list
|
|
19142
|
+
*/
|
|
19143
|
+
participantList: {
|
|
19144
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19145
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19146
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19147
|
+
const res = yield httpInstance
|
|
19148
|
+
.request({
|
|
19149
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_list`, path),
|
|
19150
|
+
method: "GET",
|
|
19151
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19152
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19153
|
+
})
|
|
19154
|
+
.catch((e) => {
|
|
19155
|
+
this.logger.error(formatErrors(e));
|
|
19156
|
+
});
|
|
19157
|
+
return res;
|
|
19158
|
+
});
|
|
19159
|
+
const Iterable = {
|
|
19160
|
+
[Symbol.asyncIterator]() {
|
|
19161
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19162
|
+
let hasMore = true;
|
|
19163
|
+
let pageToken;
|
|
19164
|
+
while (hasMore) {
|
|
19165
|
+
try {
|
|
19166
|
+
const res = yield __await(sendRequest({
|
|
19167
|
+
headers,
|
|
19168
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19169
|
+
data,
|
|
19170
|
+
}));
|
|
19171
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19172
|
+
// @ts-ignore
|
|
19173
|
+
has_more,
|
|
19174
|
+
// @ts-ignore
|
|
19175
|
+
page_token,
|
|
19176
|
+
// @ts-ignore
|
|
19177
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19178
|
+
yield yield __await(rest);
|
|
19179
|
+
hasMore = Boolean(has_more);
|
|
19180
|
+
pageToken = page_token || next_page_token;
|
|
19181
|
+
}
|
|
19182
|
+
catch (e) {
|
|
19183
|
+
yield yield __await(null);
|
|
19184
|
+
break;
|
|
19185
|
+
}
|
|
19186
|
+
}
|
|
19187
|
+
});
|
|
19188
|
+
},
|
|
19189
|
+
};
|
|
19190
|
+
return Iterable;
|
|
19191
|
+
}),
|
|
19192
|
+
/**
|
|
19193
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=participant_list&apiName=get&version=v1 click to debug }
|
|
19194
|
+
*
|
|
19195
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=participant_list&version=v1 document }
|
|
19196
|
+
*/
|
|
19197
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19198
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19199
|
+
return httpInstance
|
|
19200
|
+
.request({
|
|
19201
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_list`, path),
|
|
19202
|
+
method: "GET",
|
|
19203
|
+
data,
|
|
19204
|
+
params,
|
|
19205
|
+
headers,
|
|
19206
|
+
})
|
|
19207
|
+
.catch((e) => {
|
|
19208
|
+
this.logger.error(formatErrors(e));
|
|
19209
|
+
throw e;
|
|
19210
|
+
});
|
|
19211
|
+
}),
|
|
19212
|
+
},
|
|
19213
|
+
/**
|
|
19214
|
+
* participant_quality_list
|
|
19215
|
+
*/
|
|
19216
|
+
participantQualityList: {
|
|
19217
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19218
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19219
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19220
|
+
const res = yield httpInstance
|
|
19221
|
+
.request({
|
|
19222
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_quality_list`, path),
|
|
19223
|
+
method: "GET",
|
|
19224
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19225
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19226
|
+
})
|
|
19227
|
+
.catch((e) => {
|
|
19228
|
+
this.logger.error(formatErrors(e));
|
|
19229
|
+
});
|
|
19230
|
+
return res;
|
|
19231
|
+
});
|
|
19232
|
+
const Iterable = {
|
|
19233
|
+
[Symbol.asyncIterator]() {
|
|
19234
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19235
|
+
let hasMore = true;
|
|
19236
|
+
let pageToken;
|
|
19237
|
+
while (hasMore) {
|
|
19238
|
+
try {
|
|
19239
|
+
const res = yield __await(sendRequest({
|
|
19240
|
+
headers,
|
|
19241
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19242
|
+
data,
|
|
19243
|
+
}));
|
|
19244
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19245
|
+
// @ts-ignore
|
|
19246
|
+
has_more,
|
|
19247
|
+
// @ts-ignore
|
|
19248
|
+
page_token,
|
|
19249
|
+
// @ts-ignore
|
|
19250
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19251
|
+
yield yield __await(rest);
|
|
19252
|
+
hasMore = Boolean(has_more);
|
|
19253
|
+
pageToken = page_token || next_page_token;
|
|
19254
|
+
}
|
|
19255
|
+
catch (e) {
|
|
19256
|
+
yield yield __await(null);
|
|
19257
|
+
break;
|
|
19258
|
+
}
|
|
19259
|
+
}
|
|
19260
|
+
});
|
|
19261
|
+
},
|
|
19262
|
+
};
|
|
19263
|
+
return Iterable;
|
|
19264
|
+
}),
|
|
19265
|
+
/**
|
|
19266
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=participant_quality_list&apiName=get&version=v1 click to debug }
|
|
19267
|
+
*
|
|
19268
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=participant_quality_list&version=v1 document }
|
|
19269
|
+
*/
|
|
19270
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19271
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19272
|
+
return httpInstance
|
|
19273
|
+
.request({
|
|
19274
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/participant_quality_list`, path),
|
|
19275
|
+
method: "GET",
|
|
19276
|
+
data,
|
|
19277
|
+
params,
|
|
19278
|
+
headers,
|
|
19279
|
+
})
|
|
19280
|
+
.catch((e) => {
|
|
19281
|
+
this.logger.error(formatErrors(e));
|
|
19282
|
+
throw e;
|
|
19283
|
+
});
|
|
19284
|
+
}),
|
|
19285
|
+
},
|
|
19079
19286
|
/**
|
|
19080
19287
|
* 会议报告
|
|
19081
19288
|
*/
|
|
@@ -19268,6 +19475,51 @@ class Client$1 {
|
|
|
19268
19475
|
});
|
|
19269
19476
|
}),
|
|
19270
19477
|
},
|
|
19478
|
+
/**
|
|
19479
|
+
* reserve_config.admin
|
|
19480
|
+
*/
|
|
19481
|
+
reserveConfigAdmin: {
|
|
19482
|
+
/**
|
|
19483
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.admin&apiName=get&version=v1 click to debug }
|
|
19484
|
+
*
|
|
19485
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=reserve_config.admin&version=v1 document }
|
|
19486
|
+
*/
|
|
19487
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19488
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19489
|
+
return httpInstance
|
|
19490
|
+
.request({
|
|
19491
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`, path),
|
|
19492
|
+
method: "GET",
|
|
19493
|
+
data,
|
|
19494
|
+
params,
|
|
19495
|
+
headers,
|
|
19496
|
+
})
|
|
19497
|
+
.catch((e) => {
|
|
19498
|
+
this.logger.error(formatErrors(e));
|
|
19499
|
+
throw e;
|
|
19500
|
+
});
|
|
19501
|
+
}),
|
|
19502
|
+
/**
|
|
19503
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=reserve_config.admin&apiName=patch&version=v1 click to debug }
|
|
19504
|
+
*
|
|
19505
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=vc&resource=reserve_config.admin&version=v1 document }
|
|
19506
|
+
*/
|
|
19507
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19508
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19509
|
+
return httpInstance
|
|
19510
|
+
.request({
|
|
19511
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`, path),
|
|
19512
|
+
method: "PATCH",
|
|
19513
|
+
data,
|
|
19514
|
+
params,
|
|
19515
|
+
headers,
|
|
19516
|
+
})
|
|
19517
|
+
.catch((e) => {
|
|
19518
|
+
this.logger.error(formatErrors(e));
|
|
19519
|
+
throw e;
|
|
19520
|
+
});
|
|
19521
|
+
}),
|
|
19522
|
+
},
|
|
19271
19523
|
/**
|
|
19272
19524
|
* reserve_config
|
|
19273
19525
|
*/
|
|
@@ -19321,6 +19573,79 @@ class Client$1 {
|
|
|
19321
19573
|
});
|
|
19322
19574
|
}),
|
|
19323
19575
|
},
|
|
19576
|
+
/**
|
|
19577
|
+
* resource_reservation_list
|
|
19578
|
+
*/
|
|
19579
|
+
resourceReservationList: {
|
|
19580
|
+
getWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19581
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19582
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
19583
|
+
const res = yield httpInstance
|
|
19584
|
+
.request({
|
|
19585
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/resource_reservation_list`, path),
|
|
19586
|
+
method: "GET",
|
|
19587
|
+
headers: pickBy__default["default"](innerPayload.headers, identity__default["default"]),
|
|
19588
|
+
params: pickBy__default["default"](innerPayload.params, identity__default["default"]),
|
|
19589
|
+
})
|
|
19590
|
+
.catch((e) => {
|
|
19591
|
+
this.logger.error(formatErrors(e));
|
|
19592
|
+
});
|
|
19593
|
+
return res;
|
|
19594
|
+
});
|
|
19595
|
+
const Iterable = {
|
|
19596
|
+
[Symbol.asyncIterator]() {
|
|
19597
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
19598
|
+
let hasMore = true;
|
|
19599
|
+
let pageToken;
|
|
19600
|
+
while (hasMore) {
|
|
19601
|
+
try {
|
|
19602
|
+
const res = yield __await(sendRequest({
|
|
19603
|
+
headers,
|
|
19604
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
19605
|
+
data,
|
|
19606
|
+
}));
|
|
19607
|
+
const _b = get__default["default"](res, "data") || {}, {
|
|
19608
|
+
// @ts-ignore
|
|
19609
|
+
has_more,
|
|
19610
|
+
// @ts-ignore
|
|
19611
|
+
page_token,
|
|
19612
|
+
// @ts-ignore
|
|
19613
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
19614
|
+
yield yield __await(rest);
|
|
19615
|
+
hasMore = Boolean(has_more);
|
|
19616
|
+
pageToken = page_token || next_page_token;
|
|
19617
|
+
}
|
|
19618
|
+
catch (e) {
|
|
19619
|
+
yield yield __await(null);
|
|
19620
|
+
break;
|
|
19621
|
+
}
|
|
19622
|
+
}
|
|
19623
|
+
});
|
|
19624
|
+
},
|
|
19625
|
+
};
|
|
19626
|
+
return Iterable;
|
|
19627
|
+
}),
|
|
19628
|
+
/**
|
|
19629
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=resource_reservation_list&apiName=get&version=v1 click to debug }
|
|
19630
|
+
*
|
|
19631
|
+
* {@link https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=vc&resource=resource_reservation_list&version=v1 document }
|
|
19632
|
+
*/
|
|
19633
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
19634
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
19635
|
+
return httpInstance
|
|
19636
|
+
.request({
|
|
19637
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/resource_reservation_list`, path),
|
|
19638
|
+
method: "GET",
|
|
19639
|
+
data,
|
|
19640
|
+
params,
|
|
19641
|
+
headers,
|
|
19642
|
+
})
|
|
19643
|
+
.catch((e) => {
|
|
19644
|
+
this.logger.error(formatErrors(e));
|
|
19645
|
+
throw e;
|
|
19646
|
+
});
|
|
19647
|
+
}),
|
|
19648
|
+
},
|
|
19324
19649
|
/**
|
|
19325
19650
|
* 会议室
|
|
19326
19651
|
*/
|