zapier-platform-cli
Version:
The CLI for managing integrations in Zapier Developer Platform.
31 lines (22 loc) • 805 B
JavaScript
<% if (hasAuth) { %>
const authentication = require('./authentication');
const { befores = [], afters = [] } = require('./middleware');
<% } %>
module.exports = {
// 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('<%= corePackageName %>').version,
<% if (hasAuth) { %>
authentication,
beforeRequest: [...befores],
afterResponse: [...afters],
<% } %>
// If you want your trigger to show up, you better include it here!
triggers: {},
// 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: {},
resources: {},
};