n8n-nodes-cos-uploadfile
Version:
A custom n8n node to upload files to Tencent Cloud Object Storage (COS).
32 lines (31 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TencentCosApi = void 0;
class TencentCosApi {
constructor() {
this.name = 'tencentCosApi';
this.displayName = '腾讯云 COS API';
this.properties = [
{
displayName: 'SecretId',
name: 'secretId',
type: 'string', // 'type' 属性现在是 INodeProperties 的一部分
default: '',
placeholder: 'Your Tencent Cloud SecretId',
description: '您的腾讯云 SecretId',
},
{
displayName: 'SecretKey',
name: 'secretKey',
type: 'string', // 'type' 属性现在是 INodeProperties 的一部分
typeOptions: {
password: true, // 密码类型,输入时隐藏
},
default: '',
placeholder: 'Your Tencent Cloud SecretKey',
description: '您的腾讯云 SecretKey',
},
];
}
}
exports.TencentCosApi = TencentCosApi;