feat(notion): add auth and new DB items trigger
This commit is contained in:
24
packages/backend/src/apps/notion/index.ts
Normal file
24
packages/backend/src/apps/notion/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import defineApp from '../../helpers/define-app';
|
||||
import addAuthHeader from './common/add-auth-header';
|
||||
import addNotionVersionHeader from './common/add-notion-version-header';
|
||||
import auth from './auth';
|
||||
import triggers from './triggers';
|
||||
import dynamicData from './dynamic-data';
|
||||
|
||||
export default defineApp({
|
||||
name: 'Notion',
|
||||
key: 'notion',
|
||||
baseUrl: 'https://notion.com',
|
||||
apiBaseUrl: 'https://api.notion.com',
|
||||
iconUrl: '{BASE_URL}/apps/notion/assets/favicon.svg',
|
||||
authDocUrl: 'https://automatisch.io/docs/apps/notion/connection',
|
||||
primaryColor: '000000',
|
||||
supportsConnections: true,
|
||||
beforeRequest: [
|
||||
addAuthHeader,
|
||||
addNotionVersionHeader,
|
||||
],
|
||||
auth,
|
||||
triggers,
|
||||
dynamicData,
|
||||
});
|
Reference in New Issue
Block a user