master-zapier-plan-draft/vendor/zapier-platform/example-apps/search-or-create/searches/recipe.js
George Lambert b4150c8250 Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
2026-09-09 02:37:36 -04:00

35 lines
598 B
JavaScript

const perform = async (z, bundle) => {
const response = await z.request({
url: 'https://auth-json-server.zapier-staging.com/recipes',
params: {
name: bundle.inputData.name,
},
});
return response.data;
};
module.exports = {
key: 'recipe',
noun: 'Recipe',
display: {
label: 'Find Recipe',
description: 'Finds a recipe.',
},
operation: {
inputFields: [
{
key: 'name',
required: true,
helpText: 'Find the Recipe with this name.',
},
],
perform,
sample: {
id: 1,
name: 'Test',
},
},
};