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.
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import zapier, { defineApp } from 'zapier-platform-core';
|
|
|
|
import packageJson from '../package.json' with { type: 'json' };
|
|
|
|
import authentication from './authentication.js';
|
|
import { befores, afters } from './middleware.js';
|
|
import timestamp from './creates/timestamp.js';
|
|
import timestampWait from './creates/timestamp_wait.js';
|
|
import batchTimestamp from './creates/batch_timestamp.js';
|
|
import verifyCertificate from './creates/verify.js';
|
|
import jobStatus from './searches/job_status.js';
|
|
import jobVerification from './searches/job_verification.js';
|
|
import timestampCompleted from './triggers/timestamp_completed.js';
|
|
|
|
export default defineApp({
|
|
version: packageJson.version,
|
|
platformVersion: zapier.version,
|
|
|
|
authentication,
|
|
beforeRequest: [...befores],
|
|
afterResponse: [...afters],
|
|
|
|
triggers: {
|
|
[timestampCompleted.key]: timestampCompleted,
|
|
},
|
|
creates: {
|
|
[timestamp.key]: timestamp,
|
|
[timestampWait.key]: timestampWait,
|
|
[batchTimestamp.key]: batchTimestamp,
|
|
[verifyCertificate.key]: verifyCertificate,
|
|
},
|
|
searches: {
|
|
[jobStatus.key]: jobStatus,
|
|
[jobVerification.key]: jobVerification,
|
|
},
|
|
});
|