Initial import of verae-activate from zapier monorepo
This commit is contained in:
commit
f6c31fdb72
12 changed files with 1363 additions and 0 deletions
29
creates/echo.js
Normal file
29
creates/echo.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* Echo — returns the input string. Second activate-now action (no backend).
|
||||
* @module creates/echo
|
||||
*/
|
||||
|
||||
const perform = async (_z, bundle) => {
|
||||
const text = String(bundle.inputData.text ?? '');
|
||||
return { text, length: text.length, mode: 'local' };
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
key: 'echo',
|
||||
noun: 'Echo',
|
||||
display: {
|
||||
label: 'Echo Text',
|
||||
description: 'Returns the text you send. No API required.',
|
||||
},
|
||||
operation: {
|
||||
cleanInputData: false,
|
||||
inputFields: [{ key: 'text', label: 'Text', type: 'string', required: true }],
|
||||
perform,
|
||||
sample: { text: 'hello', length: 5, mode: 'local' },
|
||||
outputFields: [
|
||||
{ key: 'text', type: 'string' },
|
||||
{ key: 'length', type: 'integer' },
|
||||
{ key: 'mode', type: 'string' },
|
||||
],
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue