tencentcloud-sdk-nodejs-lowcode 4.0.284

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.
@@ -0,0 +1,359 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * 数据源授权信息
20
+ */
21
+ export interface TicketAuthInfo {
22
+ /**
23
+ * 授权用户
24
+ */
25
+ AuthUser: string
26
+ }
27
+
28
+ /**
29
+ * DescribeDataSourceList请求参数结构体
30
+ */
31
+ export interface DescribeDataSourceListRequest {
32
+ /**
33
+ * 每页条数
34
+ */
35
+ PageSize: number
36
+
37
+ /**
38
+ * 页码
39
+ */
40
+ PageIndex: number
41
+
42
+ /**
43
+ * 环境 id
44
+ */
45
+ EnvId: string
46
+
47
+ /**
48
+ * 应用id数组
49
+ */
50
+ Appids?: Array<string>
51
+
52
+ /**
53
+ * 数据源id数组
54
+ */
55
+ DataSourceIds?: Array<string>
56
+
57
+ /**
58
+ * 数据源名称数组
59
+ */
60
+ DataSourceNames?: Array<string>
61
+
62
+ /**
63
+ * 数据源类型 database-自建数据源;cloud-integration-自定义数据源
64
+ */
65
+ DataSourceType?: string
66
+
67
+ /**
68
+ * 数据源模糊查询参数
69
+ */
70
+ QueryOption?: DataSourceQueryOption
71
+
72
+ /**
73
+ * 数据源视图Id数组
74
+ */
75
+ ViewIds?: Array<string>
76
+
77
+ /**
78
+ * 查询未关联应用的数据源,0:未关联,该参数配合 AppIds 参数一块使用
79
+ */
80
+ AppLinkStatus?: number
81
+
82
+ /**
83
+ * 查询应用绑定数据源: 0: 否,1: 是
84
+ */
85
+ QueryBindToApp?: number
86
+
87
+ /**
88
+ * 查询连接器 0 数据模型 1 连接器 2 自定义连接器
89
+ */
90
+ QueryConnector?: number
91
+
92
+ /**
93
+ * 查询数据源黑名单机制,比如不想要系统数据源["system"]
94
+ */
95
+ NotQuerySubTypeList?: Array<string>
96
+ }
97
+
98
+ /**
99
+ * 数据源模糊查询参数
100
+ */
101
+ export interface DataSourceQueryOption {
102
+ /**
103
+ * 数据源标识模糊匹配
104
+ */
105
+ LikeName?: string
106
+
107
+ /**
108
+ * 数据源名称模糊匹配
109
+ */
110
+ LikeTitle?: string
111
+ }
112
+
113
+ /**
114
+ * 数据源关联App信息
115
+ */
116
+ export interface DataSourceLinkApp {
117
+ /**
118
+ * 应用Id
119
+ */
120
+ Id: string
121
+
122
+ /**
123
+ * 应用名称
124
+ 注意:此字段可能返回 null,表示取不到有效值。
125
+ */
126
+ Title: string
127
+
128
+ /**
129
+ * 是否编辑状态使用
130
+ 注意:此字段可能返回 null,表示取不到有效值。
131
+ */
132
+ EditStatusUse: number
133
+
134
+ /**
135
+ * 是否预览状态使用
136
+ 注意:此字段可能返回 null,表示取不到有效值。
137
+ */
138
+ PreviewStatusUse: number
139
+
140
+ /**
141
+ * 是否正式状态使用
142
+ 注意:此字段可能返回 null,表示取不到有效值。
143
+ */
144
+ OnlineStatusUse: number
145
+ }
146
+
147
+ /**
148
+ * 数据源详情列表
149
+ */
150
+ export interface DataSourceDetail {
151
+ /**
152
+ * 数据源 ID
153
+ */
154
+ Id: string
155
+
156
+ /**
157
+ * 数据源名称
158
+ */
159
+ Title: string
160
+
161
+ /**
162
+ * 数据源标识
163
+ */
164
+ Name: string
165
+
166
+ /**
167
+ * 数据源类型
168
+ */
169
+ Type: string
170
+
171
+ /**
172
+ * 数据源描述
173
+ */
174
+ Description: string
175
+
176
+ /**
177
+ * 数据源配置
178
+ */
179
+ Schema: string
180
+
181
+ /**
182
+ * cms 项目状态, 0: 重新获取详情信息,1: 不需要重新获取详情信息
183
+ */
184
+ CmsProject: string
185
+
186
+ /**
187
+ * 当前为环境 id
188
+ 注意:此字段可能返回 null,表示取不到有效值。
189
+ */
190
+ PkgId: string
191
+
192
+ /**
193
+ * schema 版本信息
194
+ 注意:此字段可能返回 null,表示取不到有效值。
195
+ */
196
+ SchemaVersion: string
197
+
198
+ /**
199
+ * 创建者用户 ID
200
+ 注意:此字段可能返回 null,表示取不到有效值。
201
+ */
202
+ CreatorId: string
203
+
204
+ /**
205
+ * 创建时间
206
+ 注意:此字段可能返回 null,表示取不到有效值。
207
+ */
208
+ CreatedAt: string
209
+
210
+ /**
211
+ * 更新时间
212
+ 注意:此字段可能返回 null,表示取不到有效值。
213
+ */
214
+ UpdatedAt: string
215
+
216
+ /**
217
+ * 环境 id
218
+ 注意:此字段可能返回 null,表示取不到有效值。
219
+ */
220
+ EnvId: string
221
+
222
+ /**
223
+ * 版本
224
+ 注意:此字段可能返回 null,表示取不到有效值。
225
+ */
226
+ DataSourceVersion: string
227
+
228
+ /**
229
+ * 所属应用数组
230
+ 注意:此字段可能返回 null,表示取不到有效值。
231
+ */
232
+ AppUsageList: Array<DataSourceLinkApp>
233
+
234
+ /**
235
+ * 发布时间
236
+ 注意:此字段可能返回 null,表示取不到有效值。
237
+ */
238
+ PublishedAt: string
239
+
240
+ /**
241
+ * 子数据源ids
242
+ 注意:此字段可能返回 null,表示取不到有效值。
243
+ */
244
+ ChildDataSourceIds: Array<string>
245
+
246
+ /**
247
+ * 数据源发布信息
248
+ 注意:此字段可能返回 null,表示取不到有效值。
249
+ */
250
+ Fun: string
251
+
252
+ /**
253
+ * 云函数状态 1 Active 2 Creating 3 Updating 4 Deleting 9 Deleted 11 CreatFailed 12 UpdateFailed 13 DeleteFailed 21 UpdateTimeOut
254
+ 注意:此字段可能返回 null,表示取不到有效值。
255
+ */
256
+ ScfStatus: number
257
+
258
+ /**
259
+ * 自定义方法
260
+ 注意:此字段可能返回 null,表示取不到有效值。
261
+ */
262
+ Methods: string
263
+
264
+ /**
265
+ * 子数据源名数组
266
+ 注意:此字段可能返回 null,表示取不到有效值。
267
+ */
268
+ ChildDataSourceNames: Array<string>
269
+
270
+ /**
271
+ * 是否旧数据源 1 新 0 旧
272
+ 注意:此字段可能返回 null,表示取不到有效值。
273
+ */
274
+ IsNewDataSource: number
275
+
276
+ /**
277
+ * 数据源视图id
278
+ 注意:此字段可能返回 null,表示取不到有效值。
279
+ */
280
+ ViewId: string
281
+
282
+ /**
283
+ * 数据源属性配置
284
+ 注意:此字段可能返回 null,表示取不到有效值。
285
+ */
286
+ Configuration: string
287
+
288
+ /**
289
+ * 外部数据源模板code
290
+ 注意:此字段可能返回 null,表示取不到有效值。
291
+ */
292
+ TemplateCode: string
293
+
294
+ /**
295
+ * 外部数据源模板来源 0 空模板 1 腾讯文档 2 腾讯会议 3 企业微信 4 微信电商
296
+ 注意:此字段可能返回 null,表示取不到有效值。
297
+ */
298
+ Source: number
299
+
300
+ /**
301
+ * 发布版本
302
+ 注意:此字段可能返回 null,表示取不到有效值。
303
+ */
304
+ PublishVersion: string
305
+
306
+ /**
307
+ * 发布视图id
308
+ 注意:此字段可能返回 null,表示取不到有效值。
309
+ */
310
+ PublishViewId: string
311
+
312
+ /**
313
+ * 数据源子类型 "database" 标准模型 "custom-database" 自定义模型 "system" 系统模型 "connector" 连接器 "custom-connector" 自定义连接器 "hidden" 隐藏数据源
314
+ 注意:此字段可能返回 null,表示取不到有效值。
315
+ */
316
+ SubType: string
317
+
318
+ /**
319
+ * 授权状态 0 授权无效 1 授权有效
320
+ 注意:此字段可能返回 null,表示取不到有效值。
321
+ */
322
+ AuthStatus: number
323
+
324
+ /**
325
+ * 数据源授权信息
326
+ 注意:此字段可能返回 null,表示取不到有效值。
327
+ */
328
+ AuthInfo: TicketAuthInfo
329
+ }
330
+
331
+ /**
332
+ * 数据详情列表
333
+ */
334
+ export interface DataSourceDetailItems {
335
+ /**
336
+ * 数据详情列表
337
+ */
338
+ Rows: Array<DataSourceDetail>
339
+
340
+ /**
341
+ * 数据源列表总个数
342
+ */
343
+ Count: number
344
+ }
345
+
346
+ /**
347
+ * DescribeDataSourceList返回参数结构体
348
+ */
349
+ export interface DescribeDataSourceListResponse {
350
+ /**
351
+ * data 数据
352
+ */
353
+ Data: DataSourceDetailItems
354
+
355
+ /**
356
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
357
+ */
358
+ RequestId?: string
359
+ }
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1 @@
1
+ export { lowcode } from "./lowcode";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var lowcode_1 = require("./lowcode");
4
+ Object.defineProperty(exports, "lowcode", { enumerable: true, get: function () { return lowcode_1.lowcode; } });
@@ -0,0 +1,6 @@
1
+ export declare const lowcode: {
2
+ v20210108: {
3
+ Client: typeof import("./v20210108/lowcode_client").Client;
4
+ Models: typeof import("./v20210108/lowcode_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lowcode = void 0;
4
+ const v20210108_1 = require("./v20210108");
5
+ exports.lowcode = {
6
+ v20210108: v20210108_1.v20210108,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./lowcode_models";
2
+ import { Client } from "./lowcode_client";
3
+ export declare const v20210108: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20210108 = void 0;
4
+ const Models = require("./lowcode_models");
5
+ const lowcode_client_1 = require("./lowcode_client");
6
+ exports.v20210108 = {
7
+ Client: lowcode_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1,13 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { DescribeDataSourceListRequest, DescribeDataSourceListResponse } from "./lowcode_models";
3
+ /**
4
+ * lowcode client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 获取数据源详情列表
11
+ */
12
+ DescribeDataSourceList(req: DescribeDataSourceListRequest, cb?: (error: string, rep: DescribeDataSourceListResponse) => void): Promise<DescribeDataSourceListResponse>;
13
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * lowcode client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("lowcode.tencentcloudapi.com", "2021-01-08", clientConfig);
29
+ }
30
+ /**
31
+ * 获取数据源详情列表
32
+ */
33
+ async DescribeDataSourceList(req, cb) {
34
+ return this.request("DescribeDataSourceList", req, cb);
35
+ }
36
+ }
37
+ exports.Client = Client;