Initial import of verae-zapier-app from zapier monorepo

This commit is contained in:
George Lambert 2026-09-11 13:16:09 -04:00
commit 553984c942
16 changed files with 618 additions and 0 deletions

View file

@ -0,0 +1,39 @@
const base = () => process.env.MIDDLEWARE_BASE_URL || 'http://127.0.0.1:3100';
const perform = async (z, bundle) => {
const items = (bundle.inputData.items || '')
.split('\n')
.map((s) => s.trim())
.filter(Boolean)
.map((data) => ({ data }));
const response = await z.request({
method: 'POST',
url: `${base()}/zapier/v1/timestamp/batch`,
body: { items },
});
return response.data;
};
module.exports = {
key: 'batch_timestamp',
noun: 'Timestamp',
display: {
label: 'Create Batch Timestamps',
description: 'Submit multiple data lines for timestamping (paid plans).',
},
operation: {
inputFields: [
{
key: 'items',
label: 'Data Lines',
type: 'text',
required: true,
helpText: 'One payload per line.',
},
],
perform,
sample: { jobIds: ['id-1', 'id-2'] },
outputFields: [{ key: 'jobIds', label: 'Job IDs' }],
},
};