@larksuiteoapi/node-sdk 1.0.2 → 1.0.3
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/README.md +0 -2
- package/README.zh.md +0 -2
- package/es/index.js +521 -363
- package/lib/index.js +521 -363
- package/package.json +1 -1
- package/types/index.d.ts +1555 -1223
package/es/index.js
CHANGED
|
@@ -73,12 +73,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const httpInstance = axios.create();
|
|
76
|
-
httpInstance.interceptors.response.use((resp) =>
|
|
77
|
-
const request = Object.create({
|
|
78
|
-
request: resp.request,
|
|
79
|
-
});
|
|
80
|
-
return Object.assign(request, resp.data);
|
|
81
|
-
});
|
|
76
|
+
httpInstance.interceptors.response.use((resp) => resp.data);
|
|
82
77
|
|
|
83
78
|
var AppType;
|
|
84
79
|
(function (AppType) {
|
|
@@ -1843,24 +1838,6 @@ class Client$1 {
|
|
|
1843
1838
|
throw e;
|
|
1844
1839
|
});
|
|
1845
1840
|
}),
|
|
1846
|
-
/**
|
|
1847
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=get&version=v1 click to debug }
|
|
1848
|
-
*/
|
|
1849
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1850
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1851
|
-
return httpInstance
|
|
1852
|
-
.request({
|
|
1853
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id`, path),
|
|
1854
|
-
method: "GET",
|
|
1855
|
-
data,
|
|
1856
|
-
params,
|
|
1857
|
-
headers,
|
|
1858
|
-
})
|
|
1859
|
-
.catch((e) => {
|
|
1860
|
-
this.logger.error(formatErrors(e));
|
|
1861
|
-
throw e;
|
|
1862
|
-
});
|
|
1863
|
-
}),
|
|
1864
1841
|
/**
|
|
1865
1842
|
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=create&version=v1 click to debug }
|
|
1866
1843
|
*/
|
|
@@ -1879,17 +1856,15 @@ class Client$1 {
|
|
|
1879
1856
|
throw e;
|
|
1880
1857
|
});
|
|
1881
1858
|
}),
|
|
1882
|
-
},
|
|
1883
|
-
userStatsData: {
|
|
1884
1859
|
/**
|
|
1885
|
-
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=
|
|
1860
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=group&apiName=get&version=v1 click to debug }
|
|
1886
1861
|
*/
|
|
1887
|
-
|
|
1862
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
1888
1863
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
1889
1864
|
return httpInstance
|
|
1890
1865
|
.request({
|
|
1891
|
-
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/
|
|
1892
|
-
method: "
|
|
1866
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/groups/:group_id`, path),
|
|
1867
|
+
method: "GET",
|
|
1893
1868
|
data,
|
|
1894
1869
|
params,
|
|
1895
1870
|
headers,
|
|
@@ -2177,6 +2152,26 @@ class Client$1 {
|
|
|
2177
2152
|
});
|
|
2178
2153
|
}),
|
|
2179
2154
|
},
|
|
2155
|
+
userStatsData: {
|
|
2156
|
+
/**
|
|
2157
|
+
* {@link https://open.feishu.cn/api-explorer?project=attendance&resource=user_stats_data&apiName=query&version=v1 click to debug }
|
|
2158
|
+
*/
|
|
2159
|
+
query: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
2160
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
2161
|
+
return httpInstance
|
|
2162
|
+
.request({
|
|
2163
|
+
url: fillApiPath(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`, path),
|
|
2164
|
+
method: "POST",
|
|
2165
|
+
data,
|
|
2166
|
+
params,
|
|
2167
|
+
headers,
|
|
2168
|
+
})
|
|
2169
|
+
.catch((e) => {
|
|
2170
|
+
this.logger.error(formatErrors(e));
|
|
2171
|
+
throw e;
|
|
2172
|
+
});
|
|
2173
|
+
}),
|
|
2174
|
+
},
|
|
2180
2175
|
};
|
|
2181
2176
|
this.aweme_ecosystem = {};
|
|
2182
2177
|
this.baike = {
|
|
@@ -5538,44 +5533,6 @@ class Client$1 {
|
|
|
5538
5533
|
});
|
|
5539
5534
|
}),
|
|
5540
5535
|
},
|
|
5541
|
-
permissionPublic: {
|
|
5542
|
-
/**
|
|
5543
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v1 click to debug }
|
|
5544
|
-
*/
|
|
5545
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5546
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5547
|
-
return httpInstance
|
|
5548
|
-
.request({
|
|
5549
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
|
|
5550
|
-
method: "GET",
|
|
5551
|
-
data,
|
|
5552
|
-
params,
|
|
5553
|
-
headers,
|
|
5554
|
-
})
|
|
5555
|
-
.catch((e) => {
|
|
5556
|
-
this.logger.error(formatErrors(e));
|
|
5557
|
-
throw e;
|
|
5558
|
-
});
|
|
5559
|
-
}),
|
|
5560
|
-
/**
|
|
5561
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v1 click to debug }
|
|
5562
|
-
*/
|
|
5563
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5564
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5565
|
-
return httpInstance
|
|
5566
|
-
.request({
|
|
5567
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
|
|
5568
|
-
method: "PATCH",
|
|
5569
|
-
data,
|
|
5570
|
-
params,
|
|
5571
|
-
headers,
|
|
5572
|
-
})
|
|
5573
|
-
.catch((e) => {
|
|
5574
|
-
this.logger.error(formatErrors(e));
|
|
5575
|
-
throw e;
|
|
5576
|
-
});
|
|
5577
|
-
}),
|
|
5578
|
-
},
|
|
5579
5536
|
exportTask: {
|
|
5580
5537
|
/**
|
|
5581
5538
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=export_task&apiName=create&version=v1 click to debug }
|
|
@@ -5801,16 +5758,34 @@ class Client$1 {
|
|
|
5801
5758
|
});
|
|
5802
5759
|
}),
|
|
5803
5760
|
},
|
|
5804
|
-
|
|
5761
|
+
permissionPublic: {
|
|
5805
5762
|
/**
|
|
5806
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=
|
|
5763
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=patch&version=v1 click to debug }
|
|
5807
5764
|
*/
|
|
5808
|
-
|
|
5765
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5809
5766
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5810
5767
|
return httpInstance
|
|
5811
5768
|
.request({
|
|
5812
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/
|
|
5813
|
-
method: "
|
|
5769
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
|
|
5770
|
+
method: "PATCH",
|
|
5771
|
+
data,
|
|
5772
|
+
params,
|
|
5773
|
+
headers,
|
|
5774
|
+
})
|
|
5775
|
+
.catch((e) => {
|
|
5776
|
+
this.logger.error(formatErrors(e));
|
|
5777
|
+
throw e;
|
|
5778
|
+
});
|
|
5779
|
+
}),
|
|
5780
|
+
/**
|
|
5781
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.public&apiName=get&version=v1 click to debug }
|
|
5782
|
+
*/
|
|
5783
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5784
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5785
|
+
return httpInstance
|
|
5786
|
+
.request({
|
|
5787
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/public`, path),
|
|
5788
|
+
method: "GET",
|
|
5814
5789
|
data,
|
|
5815
5790
|
params,
|
|
5816
5791
|
headers,
|
|
@@ -5822,6 +5797,24 @@ class Client$1 {
|
|
|
5822
5797
|
}),
|
|
5823
5798
|
},
|
|
5824
5799
|
permissionMember: {
|
|
5800
|
+
/**
|
|
5801
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.member&apiName=delete&version=v1 click to debug }
|
|
5802
|
+
*/
|
|
5803
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5804
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5805
|
+
return httpInstance
|
|
5806
|
+
.request({
|
|
5807
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`, path),
|
|
5808
|
+
method: "DELETE",
|
|
5809
|
+
data,
|
|
5810
|
+
params,
|
|
5811
|
+
headers,
|
|
5812
|
+
})
|
|
5813
|
+
.catch((e) => {
|
|
5814
|
+
this.logger.error(formatErrors(e));
|
|
5815
|
+
throw e;
|
|
5816
|
+
});
|
|
5817
|
+
}),
|
|
5825
5818
|
/**
|
|
5826
5819
|
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=permission.member&apiName=update&version=v1 click to debug }
|
|
5827
5820
|
*/
|
|
@@ -5858,15 +5851,17 @@ class Client$1 {
|
|
|
5858
5851
|
throw e;
|
|
5859
5852
|
});
|
|
5860
5853
|
}),
|
|
5854
|
+
},
|
|
5855
|
+
meta: {
|
|
5861
5856
|
/**
|
|
5862
|
-
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=
|
|
5857
|
+
* {@link https://open.feishu.cn/api-explorer?project=drive&resource=meta&apiName=batch_query&version=v1 click to debug }
|
|
5863
5858
|
*/
|
|
5864
|
-
|
|
5859
|
+
batchQuery: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
5865
5860
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
5866
5861
|
return httpInstance
|
|
5867
5862
|
.request({
|
|
5868
|
-
url: fillApiPath(`${this.domain}/open-apis/drive/v1/
|
|
5869
|
-
method: "
|
|
5863
|
+
url: fillApiPath(`${this.domain}/open-apis/drive/v1/metas/batch_query`, path),
|
|
5864
|
+
method: "POST",
|
|
5870
5865
|
data,
|
|
5871
5866
|
params,
|
|
5872
5867
|
headers,
|
|
@@ -7208,77 +7203,6 @@ class Client$1 {
|
|
|
7208
7203
|
});
|
|
7209
7204
|
}),
|
|
7210
7205
|
},
|
|
7211
|
-
resumeSource: {
|
|
7212
|
-
/**
|
|
7213
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
|
|
7214
|
-
*/
|
|
7215
|
-
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7216
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7217
|
-
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
7218
|
-
const res = yield httpInstance
|
|
7219
|
-
.request({
|
|
7220
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
|
|
7221
|
-
method: "GET",
|
|
7222
|
-
headers: pickBy(innerPayload.headers, identity),
|
|
7223
|
-
params: pickBy(innerPayload.params, identity),
|
|
7224
|
-
})
|
|
7225
|
-
.catch((e) => {
|
|
7226
|
-
this.logger.error(formatErrors(e));
|
|
7227
|
-
});
|
|
7228
|
-
return res;
|
|
7229
|
-
});
|
|
7230
|
-
const Iterable = {
|
|
7231
|
-
[Symbol.asyncIterator]() {
|
|
7232
|
-
return __asyncGenerator(this, arguments, function* _a() {
|
|
7233
|
-
let hasMore = true;
|
|
7234
|
-
let pageToken;
|
|
7235
|
-
while (hasMore) {
|
|
7236
|
-
try {
|
|
7237
|
-
const res = yield __await(sendRequest({
|
|
7238
|
-
headers,
|
|
7239
|
-
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
7240
|
-
data,
|
|
7241
|
-
}));
|
|
7242
|
-
const _b = get(res, "data") || {}, {
|
|
7243
|
-
// @ts-ignore
|
|
7244
|
-
has_more,
|
|
7245
|
-
// @ts-ignore
|
|
7246
|
-
page_token,
|
|
7247
|
-
// @ts-ignore
|
|
7248
|
-
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
7249
|
-
yield yield __await(rest);
|
|
7250
|
-
hasMore = Boolean(has_more);
|
|
7251
|
-
pageToken = page_token || next_page_token;
|
|
7252
|
-
}
|
|
7253
|
-
catch (e) {
|
|
7254
|
-
yield yield __await(null);
|
|
7255
|
-
break;
|
|
7256
|
-
}
|
|
7257
|
-
}
|
|
7258
|
-
});
|
|
7259
|
-
},
|
|
7260
|
-
};
|
|
7261
|
-
return Iterable;
|
|
7262
|
-
}),
|
|
7263
|
-
/**
|
|
7264
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
|
|
7265
|
-
*/
|
|
7266
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7267
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7268
|
-
return httpInstance
|
|
7269
|
-
.request({
|
|
7270
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
|
|
7271
|
-
method: "GET",
|
|
7272
|
-
data,
|
|
7273
|
-
params,
|
|
7274
|
-
headers,
|
|
7275
|
-
})
|
|
7276
|
-
.catch((e) => {
|
|
7277
|
-
this.logger.error(formatErrors(e));
|
|
7278
|
-
throw e;
|
|
7279
|
-
});
|
|
7280
|
-
}),
|
|
7281
|
-
},
|
|
7282
7206
|
jobProcess: {
|
|
7283
7207
|
/**
|
|
7284
7208
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=job_process&apiName=list&version=v1 click to debug }
|
|
@@ -7619,26 +7543,6 @@ class Client$1 {
|
|
|
7619
7543
|
});
|
|
7620
7544
|
}),
|
|
7621
7545
|
},
|
|
7622
|
-
applicationInterview: {
|
|
7623
|
-
/**
|
|
7624
|
-
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
|
|
7625
|
-
*/
|
|
7626
|
-
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7627
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7628
|
-
return httpInstance
|
|
7629
|
-
.request({
|
|
7630
|
-
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`, path),
|
|
7631
|
-
method: "GET",
|
|
7632
|
-
data,
|
|
7633
|
-
params,
|
|
7634
|
-
headers,
|
|
7635
|
-
})
|
|
7636
|
-
.catch((e) => {
|
|
7637
|
-
this.logger.error(formatErrors(e));
|
|
7638
|
-
throw e;
|
|
7639
|
-
});
|
|
7640
|
-
}),
|
|
7641
|
-
},
|
|
7642
7546
|
talent: {
|
|
7643
7547
|
/**
|
|
7644
7548
|
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=talent&apiName=get&version=v1 click to debug }
|
|
@@ -7659,27 +7563,118 @@ class Client$1 {
|
|
|
7659
7563
|
});
|
|
7660
7564
|
}),
|
|
7661
7565
|
},
|
|
7662
|
-
|
|
7663
|
-
this.human_authentication = {
|
|
7664
|
-
identity: {
|
|
7566
|
+
resumeSource: {
|
|
7665
7567
|
/**
|
|
7666
|
-
* {@link https://open.feishu.cn/api-explorer?project=
|
|
7568
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
|
|
7667
7569
|
*/
|
|
7668
|
-
|
|
7570
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7669
7571
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7572
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
7573
|
+
const res = yield httpInstance
|
|
7574
|
+
.request({
|
|
7575
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
|
|
7576
|
+
method: "GET",
|
|
7577
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
7578
|
+
params: pickBy(innerPayload.params, identity),
|
|
7579
|
+
})
|
|
7580
|
+
.catch((e) => {
|
|
7581
|
+
this.logger.error(formatErrors(e));
|
|
7582
|
+
});
|
|
7583
|
+
return res;
|
|
7584
|
+
});
|
|
7585
|
+
const Iterable = {
|
|
7586
|
+
[Symbol.asyncIterator]() {
|
|
7587
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
7588
|
+
let hasMore = true;
|
|
7589
|
+
let pageToken;
|
|
7590
|
+
while (hasMore) {
|
|
7591
|
+
try {
|
|
7592
|
+
const res = yield __await(sendRequest({
|
|
7593
|
+
headers,
|
|
7594
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
7595
|
+
data,
|
|
7596
|
+
}));
|
|
7597
|
+
const _b = get(res, "data") || {}, {
|
|
7598
|
+
// @ts-ignore
|
|
7599
|
+
has_more,
|
|
7600
|
+
// @ts-ignore
|
|
7601
|
+
page_token,
|
|
7602
|
+
// @ts-ignore
|
|
7603
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
7604
|
+
yield yield __await(rest);
|
|
7605
|
+
hasMore = Boolean(has_more);
|
|
7606
|
+
pageToken = page_token || next_page_token;
|
|
7607
|
+
}
|
|
7608
|
+
catch (e) {
|
|
7609
|
+
yield yield __await(null);
|
|
7610
|
+
break;
|
|
7611
|
+
}
|
|
7612
|
+
}
|
|
7613
|
+
});
|
|
7614
|
+
},
|
|
7615
|
+
};
|
|
7616
|
+
return Iterable;
|
|
7617
|
+
}),
|
|
7618
|
+
/**
|
|
7619
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=resume_source&apiName=list&version=v1 click to debug }
|
|
7620
|
+
*/
|
|
7621
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7622
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7623
|
+
return httpInstance
|
|
7624
|
+
.request({
|
|
7625
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/resume_sources`, path),
|
|
7626
|
+
method: "GET",
|
|
7627
|
+
data,
|
|
7628
|
+
params,
|
|
7629
|
+
headers,
|
|
7630
|
+
})
|
|
7631
|
+
.catch((e) => {
|
|
7632
|
+
this.logger.error(formatErrors(e));
|
|
7633
|
+
throw e;
|
|
7634
|
+
});
|
|
7635
|
+
}),
|
|
7636
|
+
},
|
|
7637
|
+
applicationInterview: {
|
|
7638
|
+
/**
|
|
7639
|
+
* {@link https://open.feishu.cn/api-explorer?project=hire&resource=application.interview&apiName=list&version=v1 click to debug }
|
|
7640
|
+
*/
|
|
7641
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7642
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7643
|
+
return httpInstance
|
|
7644
|
+
.request({
|
|
7645
|
+
url: fillApiPath(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`, path),
|
|
7646
|
+
method: "GET",
|
|
7647
|
+
data,
|
|
7648
|
+
params,
|
|
7649
|
+
headers,
|
|
7650
|
+
})
|
|
7651
|
+
.catch((e) => {
|
|
7652
|
+
this.logger.error(formatErrors(e));
|
|
7653
|
+
throw e;
|
|
7654
|
+
});
|
|
7655
|
+
}),
|
|
7656
|
+
},
|
|
7657
|
+
};
|
|
7658
|
+
this.human_authentication = {
|
|
7659
|
+
identity: {
|
|
7660
|
+
/**
|
|
7661
|
+
* {@link https://open.feishu.cn/api-explorer?project=human_authentication&resource=identity&apiName=create&version=v1 click to debug }
|
|
7662
|
+
*/
|
|
7663
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
7664
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
7665
|
+
return httpInstance
|
|
7666
|
+
.request({
|
|
7667
|
+
url: fillApiPath(`${this.domain}/open-apis/human_authentication/v1/identities`, path),
|
|
7668
|
+
method: "POST",
|
|
7669
|
+
data,
|
|
7670
|
+
params,
|
|
7671
|
+
headers,
|
|
7672
|
+
})
|
|
7673
|
+
.catch((e) => {
|
|
7674
|
+
this.logger.error(formatErrors(e));
|
|
7675
|
+
throw e;
|
|
7676
|
+
});
|
|
7677
|
+
}),
|
|
7683
7678
|
},
|
|
7684
7679
|
};
|
|
7685
7680
|
this.im = {
|
|
@@ -8175,14 +8170,14 @@ class Client$1 {
|
|
|
8175
8170
|
});
|
|
8176
8171
|
}),
|
|
8177
8172
|
/**
|
|
8178
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=
|
|
8173
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=get&version=v1 click to debug }
|
|
8179
8174
|
*/
|
|
8180
|
-
|
|
8175
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8181
8176
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8182
8177
|
return httpInstance
|
|
8183
8178
|
.request({
|
|
8184
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/chats`, path),
|
|
8185
|
-
method: "
|
|
8179
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/chats/:chat_id`, path),
|
|
8180
|
+
method: "GET",
|
|
8186
8181
|
data,
|
|
8187
8182
|
params,
|
|
8188
8183
|
headers,
|
|
@@ -8193,14 +8188,14 @@ class Client$1 {
|
|
|
8193
8188
|
});
|
|
8194
8189
|
}),
|
|
8195
8190
|
/**
|
|
8196
|
-
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=
|
|
8191
|
+
* {@link https://open.feishu.cn/api-explorer?project=im&resource=chat&apiName=create&version=v1 click to debug }
|
|
8197
8192
|
*/
|
|
8198
|
-
|
|
8193
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
8199
8194
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
8200
8195
|
return httpInstance
|
|
8201
8196
|
.request({
|
|
8202
|
-
url: fillApiPath(`${this.domain}/open-apis/im/v1/chats
|
|
8203
|
-
method: "
|
|
8197
|
+
url: fillApiPath(`${this.domain}/open-apis/im/v1/chats`, path),
|
|
8198
|
+
method: "POST",
|
|
8204
8199
|
data,
|
|
8205
8200
|
params,
|
|
8206
8201
|
headers,
|
|
@@ -11925,6 +11920,98 @@ class Client$1 {
|
|
|
11925
11920
|
});
|
|
11926
11921
|
}),
|
|
11927
11922
|
},
|
|
11923
|
+
export: {
|
|
11924
|
+
/**
|
|
11925
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=meeting_list&version=v1 click to debug }
|
|
11926
|
+
*/
|
|
11927
|
+
meetingList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11928
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11929
|
+
return httpInstance
|
|
11930
|
+
.request({
|
|
11931
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/meeting_list`, path),
|
|
11932
|
+
method: "POST",
|
|
11933
|
+
data,
|
|
11934
|
+
params,
|
|
11935
|
+
headers,
|
|
11936
|
+
})
|
|
11937
|
+
.catch((e) => {
|
|
11938
|
+
this.logger.error(formatErrors(e));
|
|
11939
|
+
throw e;
|
|
11940
|
+
});
|
|
11941
|
+
}),
|
|
11942
|
+
/**
|
|
11943
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=get&version=v1 click to debug }
|
|
11944
|
+
*/
|
|
11945
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11946
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11947
|
+
return httpInstance
|
|
11948
|
+
.request({
|
|
11949
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/:task_id`, path),
|
|
11950
|
+
method: "GET",
|
|
11951
|
+
data,
|
|
11952
|
+
params,
|
|
11953
|
+
headers,
|
|
11954
|
+
})
|
|
11955
|
+
.catch((e) => {
|
|
11956
|
+
this.logger.error(formatErrors(e));
|
|
11957
|
+
throw e;
|
|
11958
|
+
});
|
|
11959
|
+
}),
|
|
11960
|
+
/**
|
|
11961
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_quality_list&version=v1 click to debug }
|
|
11962
|
+
*/
|
|
11963
|
+
participantQualityList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11964
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11965
|
+
return httpInstance
|
|
11966
|
+
.request({
|
|
11967
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`, path),
|
|
11968
|
+
method: "POST",
|
|
11969
|
+
data,
|
|
11970
|
+
params,
|
|
11971
|
+
headers,
|
|
11972
|
+
})
|
|
11973
|
+
.catch((e) => {
|
|
11974
|
+
this.logger.error(formatErrors(e));
|
|
11975
|
+
throw e;
|
|
11976
|
+
});
|
|
11977
|
+
}),
|
|
11978
|
+
/**
|
|
11979
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=resource_reservation_list&version=v1 click to debug }
|
|
11980
|
+
*/
|
|
11981
|
+
resourceReservationList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
11982
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
11983
|
+
return httpInstance
|
|
11984
|
+
.request({
|
|
11985
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`, path),
|
|
11986
|
+
method: "POST",
|
|
11987
|
+
data,
|
|
11988
|
+
params,
|
|
11989
|
+
headers,
|
|
11990
|
+
})
|
|
11991
|
+
.catch((e) => {
|
|
11992
|
+
this.logger.error(formatErrors(e));
|
|
11993
|
+
throw e;
|
|
11994
|
+
});
|
|
11995
|
+
}),
|
|
11996
|
+
/**
|
|
11997
|
+
* {@link https://open.feishu.cn/api-explorer?project=vc&resource=export&apiName=participant_list&version=v1 click to debug }
|
|
11998
|
+
*/
|
|
11999
|
+
participantList: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12000
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12001
|
+
return httpInstance
|
|
12002
|
+
.request({
|
|
12003
|
+
url: fillApiPath(`${this.domain}/open-apis/vc/v1/exports/participant_list`, path),
|
|
12004
|
+
method: "POST",
|
|
12005
|
+
data,
|
|
12006
|
+
params,
|
|
12007
|
+
headers,
|
|
12008
|
+
})
|
|
12009
|
+
.catch((e) => {
|
|
12010
|
+
this.logger.error(formatErrors(e));
|
|
12011
|
+
throw e;
|
|
12012
|
+
});
|
|
12013
|
+
}),
|
|
12014
|
+
},
|
|
11928
12015
|
};
|
|
11929
12016
|
this.wiki = {
|
|
11930
12017
|
space: {
|
|
@@ -12419,15 +12506,33 @@ class Client$1 {
|
|
|
12419
12506
|
});
|
|
12420
12507
|
}),
|
|
12421
12508
|
},
|
|
12422
|
-
|
|
12509
|
+
appTable: {
|
|
12423
12510
|
/**
|
|
12424
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table
|
|
12511
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_delete&version=v1 click to debug }
|
|
12512
|
+
*/
|
|
12513
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12514
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12515
|
+
return httpInstance
|
|
12516
|
+
.request({
|
|
12517
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`, path),
|
|
12518
|
+
method: "POST",
|
|
12519
|
+
data,
|
|
12520
|
+
params,
|
|
12521
|
+
headers,
|
|
12522
|
+
})
|
|
12523
|
+
.catch((e) => {
|
|
12524
|
+
this.logger.error(formatErrors(e));
|
|
12525
|
+
throw e;
|
|
12526
|
+
});
|
|
12527
|
+
}),
|
|
12528
|
+
/**
|
|
12529
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=delete&version=v1 click to debug }
|
|
12425
12530
|
*/
|
|
12426
12531
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12427
12532
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12428
12533
|
return httpInstance
|
|
12429
12534
|
.request({
|
|
12430
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id
|
|
12535
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`, path),
|
|
12431
12536
|
method: "DELETE",
|
|
12432
12537
|
data,
|
|
12433
12538
|
params,
|
|
@@ -12439,14 +12544,14 @@ class Client$1 {
|
|
|
12439
12544
|
});
|
|
12440
12545
|
}),
|
|
12441
12546
|
/**
|
|
12442
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table
|
|
12547
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
12443
12548
|
*/
|
|
12444
12549
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12445
12550
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12446
12551
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12447
12552
|
const res = yield httpInstance
|
|
12448
12553
|
.request({
|
|
12449
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables
|
|
12554
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
12450
12555
|
method: "GET",
|
|
12451
12556
|
headers: pickBy(innerPayload.headers, identity),
|
|
12452
12557
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12490,13 +12595,13 @@ class Client$1 {
|
|
|
12490
12595
|
return Iterable;
|
|
12491
12596
|
}),
|
|
12492
12597
|
/**
|
|
12493
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table
|
|
12598
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=list&version=v1 click to debug }
|
|
12494
12599
|
*/
|
|
12495
12600
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12496
12601
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12497
12602
|
return httpInstance
|
|
12498
12603
|
.request({
|
|
12499
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables
|
|
12604
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
12500
12605
|
method: "GET",
|
|
12501
12606
|
data,
|
|
12502
12607
|
params,
|
|
@@ -12508,14 +12613,14 @@ class Client$1 {
|
|
|
12508
12613
|
});
|
|
12509
12614
|
}),
|
|
12510
12615
|
/**
|
|
12511
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table
|
|
12616
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=batch_create&version=v1 click to debug }
|
|
12512
12617
|
*/
|
|
12513
|
-
|
|
12618
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12514
12619
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12515
12620
|
return httpInstance
|
|
12516
12621
|
.request({
|
|
12517
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables
|
|
12518
|
-
method: "
|
|
12622
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`, path),
|
|
12623
|
+
method: "POST",
|
|
12519
12624
|
data,
|
|
12520
12625
|
params,
|
|
12521
12626
|
headers,
|
|
@@ -12526,14 +12631,14 @@ class Client$1 {
|
|
|
12526
12631
|
});
|
|
12527
12632
|
}),
|
|
12528
12633
|
/**
|
|
12529
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table
|
|
12634
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table&apiName=create&version=v1 click to debug }
|
|
12530
12635
|
*/
|
|
12531
|
-
|
|
12636
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12532
12637
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12533
12638
|
return httpInstance
|
|
12534
12639
|
.request({
|
|
12535
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables
|
|
12536
|
-
method: "
|
|
12640
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`, path),
|
|
12641
|
+
method: "POST",
|
|
12537
12642
|
data,
|
|
12538
12643
|
params,
|
|
12539
12644
|
headers,
|
|
@@ -12543,15 +12648,68 @@ class Client$1 {
|
|
|
12543
12648
|
throw e;
|
|
12544
12649
|
});
|
|
12545
12650
|
}),
|
|
12651
|
+
},
|
|
12652
|
+
appTableView: {
|
|
12546
12653
|
/**
|
|
12547
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
12654
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
12548
12655
|
*/
|
|
12549
|
-
|
|
12656
|
+
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12550
12657
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12658
|
+
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12659
|
+
const res = yield httpInstance
|
|
12660
|
+
.request({
|
|
12661
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
12662
|
+
method: "GET",
|
|
12663
|
+
headers: pickBy(innerPayload.headers, identity),
|
|
12664
|
+
params: pickBy(innerPayload.params, identity),
|
|
12665
|
+
})
|
|
12666
|
+
.catch((e) => {
|
|
12667
|
+
this.logger.error(formatErrors(e));
|
|
12668
|
+
});
|
|
12669
|
+
return res;
|
|
12670
|
+
});
|
|
12671
|
+
const Iterable = {
|
|
12672
|
+
[Symbol.asyncIterator]() {
|
|
12673
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
12674
|
+
let hasMore = true;
|
|
12675
|
+
let pageToken;
|
|
12676
|
+
while (hasMore) {
|
|
12677
|
+
try {
|
|
12678
|
+
const res = yield __await(sendRequest({
|
|
12679
|
+
headers,
|
|
12680
|
+
params: Object.assign(Object.assign({}, params), { page_token: pageToken }),
|
|
12681
|
+
data,
|
|
12682
|
+
}));
|
|
12683
|
+
const _b = get(res, "data") || {}, {
|
|
12684
|
+
// @ts-ignore
|
|
12685
|
+
has_more,
|
|
12686
|
+
// @ts-ignore
|
|
12687
|
+
page_token,
|
|
12688
|
+
// @ts-ignore
|
|
12689
|
+
next_page_token } = _b, rest = __rest(_b, ["has_more", "page_token", "next_page_token"]);
|
|
12690
|
+
yield yield __await(rest);
|
|
12691
|
+
hasMore = Boolean(has_more);
|
|
12692
|
+
pageToken = page_token || next_page_token;
|
|
12693
|
+
}
|
|
12694
|
+
catch (e) {
|
|
12695
|
+
yield yield __await(null);
|
|
12696
|
+
break;
|
|
12697
|
+
}
|
|
12698
|
+
}
|
|
12699
|
+
});
|
|
12700
|
+
},
|
|
12701
|
+
};
|
|
12702
|
+
return Iterable;
|
|
12703
|
+
}),
|
|
12704
|
+
/**
|
|
12705
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=list&version=v1 click to debug }
|
|
12706
|
+
*/
|
|
12707
|
+
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12708
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12709
|
+
return httpInstance
|
|
12710
|
+
.request({
|
|
12711
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
12712
|
+
method: "GET",
|
|
12555
12713
|
data,
|
|
12556
12714
|
params,
|
|
12557
12715
|
headers,
|
|
@@ -12562,14 +12720,14 @@ class Client$1 {
|
|
|
12562
12720
|
});
|
|
12563
12721
|
}),
|
|
12564
12722
|
/**
|
|
12565
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
12723
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=delete&version=v1 click to debug }
|
|
12566
12724
|
*/
|
|
12567
|
-
|
|
12725
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12568
12726
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12569
12727
|
return httpInstance
|
|
12570
12728
|
.request({
|
|
12571
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
12572
|
-
method: "
|
|
12729
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`, path),
|
|
12730
|
+
method: "DELETE",
|
|
12573
12731
|
data,
|
|
12574
12732
|
params,
|
|
12575
12733
|
headers,
|
|
@@ -12580,13 +12738,13 @@ class Client$1 {
|
|
|
12580
12738
|
});
|
|
12581
12739
|
}),
|
|
12582
12740
|
/**
|
|
12583
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
12741
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.view&apiName=create&version=v1 click to debug }
|
|
12584
12742
|
*/
|
|
12585
|
-
|
|
12743
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12586
12744
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12587
12745
|
return httpInstance
|
|
12588
12746
|
.request({
|
|
12589
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
12747
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`, path),
|
|
12590
12748
|
method: "POST",
|
|
12591
12749
|
data,
|
|
12592
12750
|
params,
|
|
@@ -12597,15 +12755,17 @@ class Client$1 {
|
|
|
12597
12755
|
throw e;
|
|
12598
12756
|
});
|
|
12599
12757
|
}),
|
|
12758
|
+
},
|
|
12759
|
+
app: {
|
|
12600
12760
|
/**
|
|
12601
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app
|
|
12761
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
12602
12762
|
*/
|
|
12603
|
-
|
|
12763
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12604
12764
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12605
12765
|
return httpInstance
|
|
12606
12766
|
.request({
|
|
12607
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token
|
|
12608
|
-
method: "
|
|
12767
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12768
|
+
method: "GET",
|
|
12609
12769
|
data,
|
|
12610
12770
|
params,
|
|
12611
12771
|
headers,
|
|
@@ -12615,17 +12775,15 @@ class Client$1 {
|
|
|
12615
12775
|
throw e;
|
|
12616
12776
|
});
|
|
12617
12777
|
}),
|
|
12618
|
-
},
|
|
12619
|
-
appTable: {
|
|
12620
12778
|
/**
|
|
12621
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app
|
|
12779
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=update&version=v1 click to debug }
|
|
12622
12780
|
*/
|
|
12623
|
-
|
|
12781
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12624
12782
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12625
12783
|
return httpInstance
|
|
12626
12784
|
.request({
|
|
12627
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token
|
|
12628
|
-
method: "
|
|
12785
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12786
|
+
method: "PUT",
|
|
12629
12787
|
data,
|
|
12630
12788
|
params,
|
|
12631
12789
|
headers,
|
|
@@ -12635,14 +12793,16 @@ class Client$1 {
|
|
|
12635
12793
|
throw e;
|
|
12636
12794
|
});
|
|
12637
12795
|
}),
|
|
12796
|
+
},
|
|
12797
|
+
appRole: {
|
|
12638
12798
|
/**
|
|
12639
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12799
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=delete&version=v1 click to debug }
|
|
12640
12800
|
*/
|
|
12641
12801
|
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12642
12802
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12643
12803
|
return httpInstance
|
|
12644
12804
|
.request({
|
|
12645
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12805
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
12646
12806
|
method: "DELETE",
|
|
12647
12807
|
data,
|
|
12648
12808
|
params,
|
|
@@ -12654,14 +12814,14 @@ class Client$1 {
|
|
|
12654
12814
|
});
|
|
12655
12815
|
}),
|
|
12656
12816
|
/**
|
|
12657
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12817
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12658
12818
|
*/
|
|
12659
12819
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12660
12820
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12661
12821
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12662
12822
|
const res = yield httpInstance
|
|
12663
12823
|
.request({
|
|
12664
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12824
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12665
12825
|
method: "GET",
|
|
12666
12826
|
headers: pickBy(innerPayload.headers, identity),
|
|
12667
12827
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12705,13 +12865,13 @@ class Client$1 {
|
|
|
12705
12865
|
return Iterable;
|
|
12706
12866
|
}),
|
|
12707
12867
|
/**
|
|
12708
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12868
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=list&version=v1 click to debug }
|
|
12709
12869
|
*/
|
|
12710
12870
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12711
12871
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12712
12872
|
return httpInstance
|
|
12713
12873
|
.request({
|
|
12714
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12874
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12715
12875
|
method: "GET",
|
|
12716
12876
|
data,
|
|
12717
12877
|
params,
|
|
@@ -12723,14 +12883,14 @@ class Client$1 {
|
|
|
12723
12883
|
});
|
|
12724
12884
|
}),
|
|
12725
12885
|
/**
|
|
12726
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12886
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=update&version=v1 click to debug }
|
|
12727
12887
|
*/
|
|
12728
|
-
|
|
12888
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12729
12889
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12730
12890
|
return httpInstance
|
|
12731
12891
|
.request({
|
|
12732
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12733
|
-
method: "
|
|
12892
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`, path),
|
|
12893
|
+
method: "PUT",
|
|
12734
12894
|
data,
|
|
12735
12895
|
params,
|
|
12736
12896
|
headers,
|
|
@@ -12741,13 +12901,13 @@ class Client$1 {
|
|
|
12741
12901
|
});
|
|
12742
12902
|
}),
|
|
12743
12903
|
/**
|
|
12744
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12904
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role&apiName=create&version=v1 click to debug }
|
|
12745
12905
|
*/
|
|
12746
12906
|
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12747
12907
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12748
12908
|
return httpInstance
|
|
12749
12909
|
.request({
|
|
12750
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12910
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`, path),
|
|
12751
12911
|
method: "POST",
|
|
12752
12912
|
data,
|
|
12753
12913
|
params,
|
|
@@ -12759,16 +12919,52 @@ class Client$1 {
|
|
|
12759
12919
|
});
|
|
12760
12920
|
}),
|
|
12761
12921
|
},
|
|
12762
|
-
|
|
12922
|
+
appRoleMember: {
|
|
12763
12923
|
/**
|
|
12764
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
12924
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=delete&version=v1 click to debug }
|
|
12925
|
+
*/
|
|
12926
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12927
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12928
|
+
return httpInstance
|
|
12929
|
+
.request({
|
|
12930
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`, path),
|
|
12931
|
+
method: "DELETE",
|
|
12932
|
+
data,
|
|
12933
|
+
params,
|
|
12934
|
+
headers,
|
|
12935
|
+
})
|
|
12936
|
+
.catch((e) => {
|
|
12937
|
+
this.logger.error(formatErrors(e));
|
|
12938
|
+
throw e;
|
|
12939
|
+
});
|
|
12940
|
+
}),
|
|
12941
|
+
/**
|
|
12942
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=create&version=v1 click to debug }
|
|
12943
|
+
*/
|
|
12944
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12945
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12946
|
+
return httpInstance
|
|
12947
|
+
.request({
|
|
12948
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12949
|
+
method: "POST",
|
|
12950
|
+
data,
|
|
12951
|
+
params,
|
|
12952
|
+
headers,
|
|
12953
|
+
})
|
|
12954
|
+
.catch((e) => {
|
|
12955
|
+
this.logger.error(formatErrors(e));
|
|
12956
|
+
throw e;
|
|
12957
|
+
});
|
|
12958
|
+
}),
|
|
12959
|
+
/**
|
|
12960
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12765
12961
|
*/
|
|
12766
12962
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12767
12963
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12768
12964
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12769
12965
|
const res = yield httpInstance
|
|
12770
12966
|
.request({
|
|
12771
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12967
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12772
12968
|
method: "GET",
|
|
12773
12969
|
headers: pickBy(innerPayload.headers, identity),
|
|
12774
12970
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12812,13 +13008,13 @@ class Client$1 {
|
|
|
12812
13008
|
return Iterable;
|
|
12813
13009
|
}),
|
|
12814
13010
|
/**
|
|
12815
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13011
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=list&version=v1 click to debug }
|
|
12816
13012
|
*/
|
|
12817
13013
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12818
13014
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12819
13015
|
return httpInstance
|
|
12820
13016
|
.request({
|
|
12821
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13017
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`, path),
|
|
12822
13018
|
method: "GET",
|
|
12823
13019
|
data,
|
|
12824
13020
|
params,
|
|
@@ -12830,14 +13026,14 @@ class Client$1 {
|
|
|
12830
13026
|
});
|
|
12831
13027
|
}),
|
|
12832
13028
|
/**
|
|
12833
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13029
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_create&version=v1 click to debug }
|
|
12834
13030
|
*/
|
|
12835
|
-
|
|
13031
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12836
13032
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12837
13033
|
return httpInstance
|
|
12838
13034
|
.request({
|
|
12839
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12840
|
-
method: "
|
|
13035
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`, path),
|
|
13036
|
+
method: "POST",
|
|
12841
13037
|
data,
|
|
12842
13038
|
params,
|
|
12843
13039
|
headers,
|
|
@@ -12848,13 +13044,13 @@ class Client$1 {
|
|
|
12848
13044
|
});
|
|
12849
13045
|
}),
|
|
12850
13046
|
/**
|
|
12851
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13047
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.role.member&apiName=batch_delete&version=v1 click to debug }
|
|
12852
13048
|
*/
|
|
12853
|
-
|
|
13049
|
+
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12854
13050
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12855
13051
|
return httpInstance
|
|
12856
13052
|
.request({
|
|
12857
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13053
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`, path),
|
|
12858
13054
|
method: "POST",
|
|
12859
13055
|
data,
|
|
12860
13056
|
params,
|
|
@@ -12866,34 +13062,16 @@ class Client$1 {
|
|
|
12866
13062
|
});
|
|
12867
13063
|
}),
|
|
12868
13064
|
},
|
|
12869
|
-
|
|
12870
|
-
/**
|
|
12871
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=get&version=v1 click to debug }
|
|
12872
|
-
*/
|
|
12873
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12874
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12875
|
-
return httpInstance
|
|
12876
|
-
.request({
|
|
12877
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12878
|
-
method: "GET",
|
|
12879
|
-
data,
|
|
12880
|
-
params,
|
|
12881
|
-
headers,
|
|
12882
|
-
})
|
|
12883
|
-
.catch((e) => {
|
|
12884
|
-
this.logger.error(formatErrors(e));
|
|
12885
|
-
throw e;
|
|
12886
|
-
});
|
|
12887
|
-
}),
|
|
13065
|
+
appTableFormField: {
|
|
12888
13066
|
/**
|
|
12889
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app&apiName=
|
|
13067
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=patch&version=v1 click to debug }
|
|
12890
13068
|
*/
|
|
12891
|
-
|
|
13069
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12892
13070
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12893
13071
|
return httpInstance
|
|
12894
13072
|
.request({
|
|
12895
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token`, path),
|
|
12896
|
-
method: "
|
|
13073
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`, path),
|
|
13074
|
+
method: "PATCH",
|
|
12897
13075
|
data,
|
|
12898
13076
|
params,
|
|
12899
13077
|
headers,
|
|
@@ -12903,17 +13081,15 @@ class Client$1 {
|
|
|
12903
13081
|
throw e;
|
|
12904
13082
|
});
|
|
12905
13083
|
}),
|
|
12906
|
-
},
|
|
12907
|
-
appRole: {
|
|
12908
13084
|
/**
|
|
12909
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13085
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
12910
13086
|
*/
|
|
12911
13087
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12912
13088
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12913
13089
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
12914
13090
|
const res = yield httpInstance
|
|
12915
13091
|
.request({
|
|
12916
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13092
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
12917
13093
|
method: "GET",
|
|
12918
13094
|
headers: pickBy(innerPayload.headers, identity),
|
|
12919
13095
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -12957,13 +13133,13 @@ class Client$1 {
|
|
|
12957
13133
|
return Iterable;
|
|
12958
13134
|
}),
|
|
12959
13135
|
/**
|
|
12960
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13136
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form.field&apiName=list&version=v1 click to debug }
|
|
12961
13137
|
*/
|
|
12962
13138
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12963
13139
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12964
13140
|
return httpInstance
|
|
12965
13141
|
.request({
|
|
12966
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13142
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`, path),
|
|
12967
13143
|
method: "GET",
|
|
12968
13144
|
data,
|
|
12969
13145
|
params,
|
|
@@ -12974,15 +13150,17 @@ class Client$1 {
|
|
|
12974
13150
|
throw e;
|
|
12975
13151
|
});
|
|
12976
13152
|
}),
|
|
13153
|
+
},
|
|
13154
|
+
appTableForm: {
|
|
12977
13155
|
/**
|
|
12978
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13156
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
|
|
12979
13157
|
*/
|
|
12980
|
-
|
|
13158
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12981
13159
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
12982
13160
|
return httpInstance
|
|
12983
13161
|
.request({
|
|
12984
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
12985
|
-
method: "
|
|
13162
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
13163
|
+
method: "GET",
|
|
12986
13164
|
data,
|
|
12987
13165
|
params,
|
|
12988
13166
|
headers,
|
|
@@ -12993,14 +13171,14 @@ class Client$1 {
|
|
|
12993
13171
|
});
|
|
12994
13172
|
}),
|
|
12995
13173
|
/**
|
|
12996
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13174
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
|
|
12997
13175
|
*/
|
|
12998
|
-
|
|
13176
|
+
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
12999
13177
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13000
13178
|
return httpInstance
|
|
13001
13179
|
.request({
|
|
13002
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13003
|
-
method: "
|
|
13180
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
13181
|
+
method: "PATCH",
|
|
13004
13182
|
data,
|
|
13005
13183
|
params,
|
|
13006
13184
|
headers,
|
|
@@ -13010,15 +13188,17 @@ class Client$1 {
|
|
|
13010
13188
|
throw e;
|
|
13011
13189
|
});
|
|
13012
13190
|
}),
|
|
13191
|
+
},
|
|
13192
|
+
appTableRecord: {
|
|
13013
13193
|
/**
|
|
13014
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13194
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=get&version=v1 click to debug }
|
|
13015
13195
|
*/
|
|
13016
|
-
|
|
13196
|
+
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13017
13197
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13018
13198
|
return httpInstance
|
|
13019
13199
|
.request({
|
|
13020
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13021
|
-
method: "
|
|
13200
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13201
|
+
method: "GET",
|
|
13022
13202
|
data,
|
|
13023
13203
|
params,
|
|
13024
13204
|
headers,
|
|
@@ -13028,17 +13208,15 @@ class Client$1 {
|
|
|
13028
13208
|
throw e;
|
|
13029
13209
|
});
|
|
13030
13210
|
}),
|
|
13031
|
-
},
|
|
13032
|
-
appRoleMember: {
|
|
13033
13211
|
/**
|
|
13034
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13212
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=update&version=v1 click to debug }
|
|
13035
13213
|
*/
|
|
13036
|
-
|
|
13214
|
+
update: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13037
13215
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13038
13216
|
return httpInstance
|
|
13039
13217
|
.request({
|
|
13040
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13041
|
-
method: "
|
|
13218
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13219
|
+
method: "PUT",
|
|
13042
13220
|
data,
|
|
13043
13221
|
params,
|
|
13044
13222
|
headers,
|
|
@@ -13049,13 +13227,13 @@ class Client$1 {
|
|
|
13049
13227
|
});
|
|
13050
13228
|
}),
|
|
13051
13229
|
/**
|
|
13052
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13230
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_update&version=v1 click to debug }
|
|
13053
13231
|
*/
|
|
13054
|
-
|
|
13232
|
+
batchUpdate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13055
13233
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13056
13234
|
return httpInstance
|
|
13057
13235
|
.request({
|
|
13058
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13236
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`, path),
|
|
13059
13237
|
method: "POST",
|
|
13060
13238
|
data,
|
|
13061
13239
|
params,
|
|
@@ -13067,14 +13245,14 @@ class Client$1 {
|
|
|
13067
13245
|
});
|
|
13068
13246
|
}),
|
|
13069
13247
|
/**
|
|
13070
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13248
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
13071
13249
|
*/
|
|
13072
13250
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13073
13251
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13074
13252
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13075
13253
|
const res = yield httpInstance
|
|
13076
13254
|
.request({
|
|
13077
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13255
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13078
13256
|
method: "GET",
|
|
13079
13257
|
headers: pickBy(innerPayload.headers, identity),
|
|
13080
13258
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -13118,13 +13296,13 @@ class Client$1 {
|
|
|
13118
13296
|
return Iterable;
|
|
13119
13297
|
}),
|
|
13120
13298
|
/**
|
|
13121
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13299
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=list&version=v1 click to debug }
|
|
13122
13300
|
*/
|
|
13123
13301
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13124
13302
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13125
13303
|
return httpInstance
|
|
13126
13304
|
.request({
|
|
13127
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13305
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13128
13306
|
method: "GET",
|
|
13129
13307
|
data,
|
|
13130
13308
|
params,
|
|
@@ -13136,13 +13314,31 @@ class Client$1 {
|
|
|
13136
13314
|
});
|
|
13137
13315
|
}),
|
|
13138
13316
|
/**
|
|
13139
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13317
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=delete&version=v1 click to debug }
|
|
13140
13318
|
*/
|
|
13141
|
-
|
|
13319
|
+
delete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13142
13320
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13143
13321
|
return httpInstance
|
|
13144
13322
|
.request({
|
|
13145
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13323
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`, path),
|
|
13324
|
+
method: "DELETE",
|
|
13325
|
+
data,
|
|
13326
|
+
params,
|
|
13327
|
+
headers,
|
|
13328
|
+
})
|
|
13329
|
+
.catch((e) => {
|
|
13330
|
+
this.logger.error(formatErrors(e));
|
|
13331
|
+
throw e;
|
|
13332
|
+
});
|
|
13333
|
+
}),
|
|
13334
|
+
/**
|
|
13335
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=create&version=v1 click to debug }
|
|
13336
|
+
*/
|
|
13337
|
+
create: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13338
|
+
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13339
|
+
return httpInstance
|
|
13340
|
+
.request({
|
|
13341
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`, path),
|
|
13146
13342
|
method: "POST",
|
|
13147
13343
|
data,
|
|
13148
13344
|
params,
|
|
@@ -13154,13 +13350,13 @@ class Client$1 {
|
|
|
13154
13350
|
});
|
|
13155
13351
|
}),
|
|
13156
13352
|
/**
|
|
13157
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13353
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_delete&version=v1 click to debug }
|
|
13158
13354
|
*/
|
|
13159
13355
|
batchDelete: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13160
13356
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13161
13357
|
return httpInstance
|
|
13162
13358
|
.request({
|
|
13163
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13359
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`, path),
|
|
13164
13360
|
method: "POST",
|
|
13165
13361
|
data,
|
|
13166
13362
|
params,
|
|
@@ -13171,17 +13367,15 @@ class Client$1 {
|
|
|
13171
13367
|
throw e;
|
|
13172
13368
|
});
|
|
13173
13369
|
}),
|
|
13174
|
-
},
|
|
13175
|
-
appTableFormField: {
|
|
13176
13370
|
/**
|
|
13177
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.
|
|
13371
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.record&apiName=batch_create&version=v1 click to debug }
|
|
13178
13372
|
*/
|
|
13179
|
-
|
|
13373
|
+
batchCreate: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13180
13374
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13181
13375
|
return httpInstance
|
|
13182
13376
|
.request({
|
|
13183
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/
|
|
13184
|
-
method: "
|
|
13377
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`, path),
|
|
13378
|
+
method: "POST",
|
|
13185
13379
|
data,
|
|
13186
13380
|
params,
|
|
13187
13381
|
headers,
|
|
@@ -13191,15 +13385,17 @@ class Client$1 {
|
|
|
13191
13385
|
throw e;
|
|
13192
13386
|
});
|
|
13193
13387
|
}),
|
|
13388
|
+
},
|
|
13389
|
+
appDashboard: {
|
|
13194
13390
|
/**
|
|
13195
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13391
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=list&version=v1 click to debug }
|
|
13196
13392
|
*/
|
|
13197
13393
|
listWithIterator: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13198
13394
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13199
13395
|
const sendRequest = (innerPayload) => __awaiter(this, void 0, void 0, function* () {
|
|
13200
13396
|
const res = yield httpInstance
|
|
13201
13397
|
.request({
|
|
13202
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13398
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`, path),
|
|
13203
13399
|
method: "GET",
|
|
13204
13400
|
headers: pickBy(innerPayload.headers, identity),
|
|
13205
13401
|
params: pickBy(innerPayload.params, identity),
|
|
@@ -13243,13 +13439,13 @@ class Client$1 {
|
|
|
13243
13439
|
return Iterable;
|
|
13244
13440
|
}),
|
|
13245
13441
|
/**
|
|
13246
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.
|
|
13442
|
+
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.dashboard&apiName=list&version=v1 click to debug }
|
|
13247
13443
|
*/
|
|
13248
13444
|
list: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13249
13445
|
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13250
13446
|
return httpInstance
|
|
13251
13447
|
.request({
|
|
13252
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/
|
|
13448
|
+
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`, path),
|
|
13253
13449
|
method: "GET",
|
|
13254
13450
|
data,
|
|
13255
13451
|
params,
|
|
@@ -13261,44 +13457,6 @@ class Client$1 {
|
|
|
13261
13457
|
});
|
|
13262
13458
|
}),
|
|
13263
13459
|
},
|
|
13264
|
-
appTableForm: {
|
|
13265
|
-
/**
|
|
13266
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=get&version=v1 click to debug }
|
|
13267
|
-
*/
|
|
13268
|
-
get: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13269
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13270
|
-
return httpInstance
|
|
13271
|
-
.request({
|
|
13272
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
13273
|
-
method: "GET",
|
|
13274
|
-
data,
|
|
13275
|
-
params,
|
|
13276
|
-
headers,
|
|
13277
|
-
})
|
|
13278
|
-
.catch((e) => {
|
|
13279
|
-
this.logger.error(formatErrors(e));
|
|
13280
|
-
throw e;
|
|
13281
|
-
});
|
|
13282
|
-
}),
|
|
13283
|
-
/**
|
|
13284
|
-
* {@link https://open.feishu.cn/api-explorer?project=bitable&resource=app.table.form&apiName=patch&version=v1 click to debug }
|
|
13285
|
-
*/
|
|
13286
|
-
patch: (payload, options) => __awaiter(this, void 0, void 0, function* () {
|
|
13287
|
-
const { headers, params, data, path } = yield this.formatPayload(payload, options);
|
|
13288
|
-
return httpInstance
|
|
13289
|
-
.request({
|
|
13290
|
-
url: fillApiPath(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`, path),
|
|
13291
|
-
method: "PATCH",
|
|
13292
|
-
data,
|
|
13293
|
-
params,
|
|
13294
|
-
headers,
|
|
13295
|
-
})
|
|
13296
|
-
.catch((e) => {
|
|
13297
|
-
this.logger.error(formatErrors(e));
|
|
13298
|
-
throw e;
|
|
13299
|
-
});
|
|
13300
|
-
}),
|
|
13301
|
-
},
|
|
13302
13460
|
};
|
|
13303
13461
|
}
|
|
13304
13462
|
}
|