Initial import of zappier-edge from zapier monorepo
This commit is contained in:
commit
6ae11f8875
120 changed files with 19867 additions and 0 deletions
24
zapier-app/triggers/new_item.js
Normal file
24
zapier-app/triggers/new_item.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const perform = async (z, bundle) => {
|
||||
const response = await z.request({ url: `${bundle.authData.baseUrl}/v1/storage` });
|
||||
return response.data.items;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
key: 'new_item',
|
||||
noun: 'Stored Item',
|
||||
display: {
|
||||
label: 'New Stored Item',
|
||||
description: 'Triggers when a new item is stored through the Zappier API.',
|
||||
},
|
||||
operation: {
|
||||
type: 'polling',
|
||||
perform,
|
||||
sample: {
|
||||
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
||||
customerId: 'cust_1',
|
||||
metadata: { title: 'example' },
|
||||
attachments: [],
|
||||
createdAt: '2026-07-27T10:00:00.000Z',
|
||||
},
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue