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.
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
const LikeTrigger = require('./triggers/like');
|
|
const authentication = require('./authentication');
|
|
|
|
// We can roll up all our behaviors in an App.
|
|
const App = {
|
|
// This is just shorthand to reference the installed dependencies you have. Zapier will
|
|
// need to know these before we can upload
|
|
version: require('./package.json').version,
|
|
platformVersion: require('zapier-platform-core').version,
|
|
|
|
authentication: authentication.config,
|
|
|
|
// beforeRequest & afterResponse are optional hooks into the provided HTTP client
|
|
beforeRequest: [authentication.includeAccessToken],
|
|
|
|
afterResponse: [],
|
|
|
|
// If you want to define optional resources to simplify creation of triggers, searches, creates - do that here!
|
|
resources: {},
|
|
|
|
// If you want your trigger to show up, you better include it here!
|
|
triggers: {
|
|
[LikeTrigger.key]: LikeTrigger,
|
|
},
|
|
|
|
// If you want your searches to show up, you better include it here!
|
|
searches: {},
|
|
|
|
// If you want your creates to show up, you better include it here!
|
|
creates: {},
|
|
};
|
|
|
|
// Finally, export the app.
|
|
module.exports = App;
|