tencentcloud-sdk-nodejs-lowcode 4.0.1050 → 4.1.2

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 CHANGED
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
52
52
 
53
53
  ## 通过源码包安装
54
54
 
55
- 1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
56
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
57
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
58
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
55
+ 1. clone 代码到本地:
56
+ ```
57
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
58
+ # 或者
59
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
60
+ ```
61
+ 2. 在项目根目录执行以下命令完成构建:
62
+ ```
63
+ npm install && npm run build
64
+ ```
65
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
66
+ ```
67
+ npm pack
68
+ ```
69
+ 4. 安装包到你的项目里:
70
+ ```
71
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
72
+ ```
59
73
 
60
74
  # 示例
61
75
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1 @@
1
+ export { lowcode } from "./lowcode";
@@ -0,0 +1,4 @@
1
+ import { v20210108 } from "./v20210108";
2
+ export const lowcode = {
3
+ v20210108: v20210108,
4
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./lowcode_models";
2
+ import { Client } from "./lowcode_client";
3
+ export const v20210108 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,36 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("lowcode.tencentcloudapi.com", "2021-01-08", clientConfig);
5
+ }
6
+ async CreateKnowledgeSet(req, cb) {
7
+ return this.request("CreateKnowledgeSet", req, cb);
8
+ }
9
+ async UpdateKnowledgeSet(req, cb) {
10
+ return this.request("UpdateKnowledgeSet", req, cb);
11
+ }
12
+ async SearchDocList(req, cb) {
13
+ return this.request("SearchDocList", req, cb);
14
+ }
15
+ async DescribeKnowledgeSetList(req, cb) {
16
+ return this.request("DescribeKnowledgeSetList", req, cb);
17
+ }
18
+ async DescribeDataSourceList(req, cb) {
19
+ return this.request("DescribeDataSourceList", req, cb);
20
+ }
21
+ async DeleteKnowledgeDocumentSet(req, cb) {
22
+ return this.request("DeleteKnowledgeDocumentSet", req, cb);
23
+ }
24
+ async DescribeKnowledgeDocumentSetDetail(req, cb) {
25
+ return this.request("DescribeKnowledgeDocumentSetDetail", req, cb);
26
+ }
27
+ async UploadKnowledgeDocumentSet(req, cb) {
28
+ return this.request("UploadKnowledgeDocumentSet", req, cb);
29
+ }
30
+ async DescribeKnowledgeDocumentSetList(req, cb) {
31
+ return this.request("DescribeKnowledgeDocumentSetList", req, cb);
32
+ }
33
+ async DeleteKnowledgeSet(req, cb) {
34
+ return this.request("DeleteKnowledgeSet", req, cb);
35
+ }
36
+ }
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-lowcode",
3
- "version": "4.0.1050",
3
+ "version": "4.1.2",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
5
+ "main": "./tencentcloud/index.js",
6
+ "module": "./es/index.js",
7
+ "types": "./tencentcloud/index.d.ts",
6
8
  "scripts": {
7
9
  "test": "mocha -t 10000",
8
- "build": "tsc",
9
- "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
10
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
+ "build:cjs": "tsc -p tsconfig.json",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
+ "clean": "rimraf tencentcloud es"
10
15
  },
11
16
  "engines": {
12
17
  "node": ">=10"
13
18
  },
19
+ "files": [
20
+ "tencentcloud",
21
+ "es"
22
+ ],
14
23
  "keywords": [
15
24
  "tencentcloudapi",
16
25
  "tencentcloud",
@@ -43,10 +52,12 @@
43
52
  "@typescript-eslint/parser": "^2.34.0",
44
53
  "babel-eslint": "^10.0.2",
45
54
  "chai": "^4.2.0",
55
+ "concurrently": "^6.5.1",
46
56
  "eslint": "^6.8.0",
47
57
  "eslint-plugin-react": "^7.17.0",
48
- "mocha": "^8.1.1",
58
+ "mocha": "^8.4.0",
49
59
  "prettier": "^2.3.0",
60
+ "rimraf": "^5.0.10",
50
61
  "ts-node": "^8.10.2",
51
62
  "typescript": "^3.9.7"
52
63
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20210108 = void 0;
4
- const Models = require("./lowcode_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./lowcode_models"));
5
6
  const lowcode_client_1 = require("./lowcode_client");
6
7
  exports.v20210108 = {
7
8
  Client: lowcode_client_1.Client,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * lowcode client
24
25
  * @class
@@ -790,7 +790,6 @@ export interface QureyKnowledgeDocumentSet {
790
790
  export interface DescribeKnowledgeSetListResponse {
791
791
  /**
792
792
  * 知识库列表
793
- 注意:此字段可能返回 null,表示取不到有效值。
794
793
  */
795
794
  Data?: KnowledgeSetRsp;
796
795
  /**
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as tencentcloud from './tencentcloud';
2
- export default tencentcloud;
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
- Object.defineProperty(exports, '__esModule', { value: true })
3
- const tslib_1 = require('tslib')
4
- const tencentcloud = tslib_1.__importStar(require('./tencentcloud'))
5
- exports.default = tencentcloud
6
- //# sourceMappingURL=index.js.map
@@ -1,38 +0,0 @@
1
- // prettier.config.js
2
- module.exports = {
3
- // 一行最多 100 字符
4
- printWidth: 100,
5
- // 使用 4 个空格缩进
6
- tabWidth: 2,
7
- // 不使用缩进符,而使用空格
8
- useTabs: false,
9
- // 行尾需要有分号
10
- semi: false,
11
- // 使用单引号
12
- singleQuote: false,
13
- // 对象的 key 仅在必要时用引号
14
- quoteProps: "as-needed",
15
- // jsx 不使用单引号,而使用双引号
16
- jsxSingleQuote: false,
17
- // 末尾不需要逗号
18
- trailingComma: "es5",
19
- // 大括号内的首尾需要空格
20
- bracketSpacing: true,
21
- // jsx 标签的反尖括号需要换行
22
- jsxBracketSameLine: false,
23
- // 箭头函数,只有一个参数的时候,也需要括号
24
- arrowParens: "always",
25
- // 每个文件格式化的范围是文件的全部内容
26
- rangeStart: 0,
27
- rangeEnd: Infinity,
28
- // 不需要写文件开头的 @prettier
29
- requirePragma: false,
30
- // 不需要自动在文件开头插入 @prettier
31
- insertPragma: false,
32
- // 使用默认的折行标准
33
- proseWrap: "preserve",
34
- // 根据显示样式决定 html 要不要折行
35
- htmlWhitespaceSensitivity: "css",
36
- // 换行符使用 lf
37
- endOfLine: "lf",
38
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./services"
@@ -1 +0,0 @@
1
- export { lowcode } from "./lowcode"
@@ -1,5 +0,0 @@
1
- import { v20210108 } from "./v20210108"
2
-
3
- export const lowcode = {
4
- v20210108: v20210108,
5
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./lowcode_models"
2
- import { Client } from "./lowcode_client"
3
- export const v20210108 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1,171 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- DescribeKnowledgeSetListRequest,
21
- KnowledgeDocumentSetInfo,
22
- DeleteKnowledgeDocumentSetRsp,
23
- UploadKnowledgeDocumentSetRequest,
24
- UpdateKnowledgeSetResponse,
25
- SearchDocListRequest,
26
- DescribeKnowledgeDocumentSetListResponse,
27
- UploadKnowledgeDocumentSetRsp,
28
- DataSourceQueryOption,
29
- PageQuery,
30
- SearchDocListResponse,
31
- DeleteKnowledgeSetResponse,
32
- DocumentQuery,
33
- UpdateKnowledgeSetRequest,
34
- SearchDocInfo,
35
- DataSourceDetail,
36
- KnowledgeSet,
37
- KnowledgeSplitterPreprocess,
38
- DescribeKnowledgeDocumentSetDetailRequest,
39
- CreateKnowledgeSetResponse,
40
- DeleteKnowledgeSetRequest,
41
- RelationField,
42
- DescribeKnowledgeDocumentSetListRequest,
43
- DescribeDataSourceListRequest,
44
- DeleteKnowledgeDocumentSetRequest,
45
- QureyKnowledgeDocumentSet,
46
- DescribeKnowledgeSetListResponse,
47
- DescribeDataSourceListResponse,
48
- UploadKnowledgeDocumentSetResponse,
49
- DeleteKnowledgeDocumentSetResponse,
50
- TicketAuthInfo,
51
- CreateKnowledgeSetRequest,
52
- DescribeKnowledgeDocumentSetDetailRsp,
53
- QureyKnowledgeDocumentSetInfo,
54
- DescribeKnowledgeDocumentSetListRsp,
55
- KnowledgeDocumentSet,
56
- DescribeKnowledgeDocumentSetDetailResponse,
57
- DataSourceLinkApp,
58
- SearchDocRsp,
59
- KnowledgeSetRsp,
60
- DataSourceDetailItems,
61
- } from "./lowcode_models"
62
-
63
- /**
64
- * lowcode client
65
- * @class
66
- */
67
- export class Client extends TencentCloudCommon.AbstractClient {
68
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
69
- super("lowcode.tencentcloudapi.com", "2021-01-08", clientConfig)
70
- }
71
-
72
- /**
73
- * 创建知识库
74
- */
75
- async CreateKnowledgeSet(
76
- req: CreateKnowledgeSetRequest,
77
- cb?: (error: string, rep: CreateKnowledgeSetResponse) => void
78
- ): Promise<CreateKnowledgeSetResponse> {
79
- return this.request("CreateKnowledgeSet", req, cb)
80
- }
81
-
82
- /**
83
- * 更新知识库
84
- */
85
- async UpdateKnowledgeSet(
86
- req: UpdateKnowledgeSetRequest,
87
- cb?: (error: string, rep: UpdateKnowledgeSetResponse) => void
88
- ): Promise<UpdateKnowledgeSetResponse> {
89
- return this.request("UpdateKnowledgeSet", req, cb)
90
- }
91
-
92
- /**
93
- * 知识库文档搜索接口
94
- */
95
- async SearchDocList(
96
- req: SearchDocListRequest,
97
- cb?: (error: string, rep: SearchDocListResponse) => void
98
- ): Promise<SearchDocListResponse> {
99
- return this.request("SearchDocList", req, cb)
100
- }
101
-
102
- /**
103
- * 查询知识库
104
- */
105
- async DescribeKnowledgeSetList(
106
- req: DescribeKnowledgeSetListRequest,
107
- cb?: (error: string, rep: DescribeKnowledgeSetListResponse) => void
108
- ): Promise<DescribeKnowledgeSetListResponse> {
109
- return this.request("DescribeKnowledgeSetList", req, cb)
110
- }
111
-
112
- /**
113
- * 获取数据源详情列表
114
- */
115
- async DescribeDataSourceList(
116
- req: DescribeDataSourceListRequest,
117
- cb?: (error: string, rep: DescribeDataSourceListResponse) => void
118
- ): Promise<DescribeDataSourceListResponse> {
119
- return this.request("DescribeDataSourceList", req, cb)
120
- }
121
-
122
- /**
123
- * 删除知识库下文档
124
- */
125
- async DeleteKnowledgeDocumentSet(
126
- req: DeleteKnowledgeDocumentSetRequest,
127
- cb?: (error: string, rep: DeleteKnowledgeDocumentSetResponse) => void
128
- ): Promise<DeleteKnowledgeDocumentSetResponse> {
129
- return this.request("DeleteKnowledgeDocumentSet", req, cb)
130
- }
131
-
132
- /**
133
- * 获取知识库下文档详情
134
- */
135
- async DescribeKnowledgeDocumentSetDetail(
136
- req: DescribeKnowledgeDocumentSetDetailRequest,
137
- cb?: (error: string, rep: DescribeKnowledgeDocumentSetDetailResponse) => void
138
- ): Promise<DescribeKnowledgeDocumentSetDetailResponse> {
139
- return this.request("DescribeKnowledgeDocumentSetDetail", req, cb)
140
- }
141
-
142
- /**
143
- * 更新知识库
144
- */
145
- async UploadKnowledgeDocumentSet(
146
- req: UploadKnowledgeDocumentSetRequest,
147
- cb?: (error: string, rep: UploadKnowledgeDocumentSetResponse) => void
148
- ): Promise<UploadKnowledgeDocumentSetResponse> {
149
- return this.request("UploadKnowledgeDocumentSet", req, cb)
150
- }
151
-
152
- /**
153
- * 查询知识库下文件集合
154
- */
155
- async DescribeKnowledgeDocumentSetList(
156
- req: DescribeKnowledgeDocumentSetListRequest,
157
- cb?: (error: string, rep: DescribeKnowledgeDocumentSetListResponse) => void
158
- ): Promise<DescribeKnowledgeDocumentSetListResponse> {
159
- return this.request("DescribeKnowledgeDocumentSetList", req, cb)
160
- }
161
-
162
- /**
163
- * 删除知识库
164
- */
165
- async DeleteKnowledgeSet(
166
- req: DeleteKnowledgeSetRequest,
167
- cb?: (error: string, rep: DeleteKnowledgeSetResponse) => void
168
- ): Promise<DeleteKnowledgeSetResponse> {
169
- return this.request("DeleteKnowledgeSet", req, cb)
170
- }
171
- }