UNPKG

n8n-nodes-wechat-work

Version:
38 lines 1.44 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const WechatWorkRequestUtils_1 = __importDefault(require("../../../help/utils/WechatWorkRequestUtils")); const UserGetJoinQrcodeOperate = { name: '获取加入企业二维码', value: 'user:getJoinQrcode', description: '获取实时成员加入二维码', options: [ { displayName: '二维码尺寸类型', name: 'size_type', default: '3', description: 'Qrcode尺寸类型,1: 171 x 171; 2: 399 x 399; 3: 741 x 741; 4: 2052 x 2052', type: 'options', options: [ { name: '171 X 171', value: '1' }, { name: '399 X 399', value: '2' }, { name: '741 X 741', value: '3' }, { name: '2052 X 2052', value: '4' }, ], }, ], async call(index) { const sizeType = this.getNodeParameter('size_type', index); return WechatWorkRequestUtils_1.default.request.call(this, { method: 'GET', url: `/cgi-bin/corp/get_join_qrcode`, qs: { size_type: sizeType, }, }); }, }; exports.default = UserGetJoinQrcodeOperate; //# sourceMappingURL=UserGetJoinQrcodeOperate.js.map