d25d482dc2
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
87 lines
2.2 KiB
TypeScript
87 lines
2.2 KiB
TypeScript
import { NotionIcon } from '@/components/icons'
|
|
import type { ConnectorMeta } from '@/connectors/types'
|
|
|
|
export const notionConnectorMeta: ConnectorMeta = {
|
|
id: 'notion',
|
|
name: 'Notion',
|
|
description: 'Sync pages from a Notion workspace',
|
|
version: '1.0.0',
|
|
icon: NotionIcon,
|
|
|
|
auth: { mode: 'oauth', provider: 'notion', requiredScopes: [] },
|
|
|
|
configFields: [
|
|
{
|
|
id: 'scope',
|
|
title: 'Sync Scope',
|
|
type: 'dropdown',
|
|
required: false,
|
|
options: [
|
|
{ label: 'Entire workspace', id: 'workspace' },
|
|
{ label: 'Specific database', id: 'database' },
|
|
{ label: 'Specific page (and children)', id: 'page' },
|
|
],
|
|
},
|
|
{
|
|
id: 'databaseSelector',
|
|
title: 'Databases',
|
|
type: 'selector',
|
|
selectorKey: 'notion.databases',
|
|
canonicalParamId: 'databaseId',
|
|
mode: 'basic',
|
|
multi: true,
|
|
placeholder: 'Select one or more databases',
|
|
required: false,
|
|
},
|
|
{
|
|
id: 'databaseId',
|
|
title: 'Database IDs',
|
|
type: 'short-input',
|
|
canonicalParamId: 'databaseId',
|
|
mode: 'advanced',
|
|
multi: true,
|
|
required: false,
|
|
placeholder: 'e.g. 8a3b5f6e-..., 9c4d6e7f-... (comma-separated for multiple)',
|
|
},
|
|
{
|
|
id: 'rootPageSelector',
|
|
title: 'Page',
|
|
type: 'selector',
|
|
selectorKey: 'notion.pages',
|
|
canonicalParamId: 'rootPageId',
|
|
mode: 'basic',
|
|
placeholder: 'Select a page',
|
|
required: false,
|
|
},
|
|
{
|
|
id: 'rootPageId',
|
|
title: 'Page ID',
|
|
type: 'short-input',
|
|
canonicalParamId: 'rootPageId',
|
|
mode: 'advanced',
|
|
required: false,
|
|
placeholder: 'e.g. 8a3b5f6e-1234-5678-abcd-ef0123456789',
|
|
},
|
|
{
|
|
id: 'searchQuery',
|
|
title: 'Search Filter',
|
|
type: 'short-input',
|
|
required: false,
|
|
placeholder: 'e.g. meeting notes, project plan',
|
|
},
|
|
{
|
|
id: 'maxPages',
|
|
title: 'Max Pages',
|
|
type: 'short-input',
|
|
required: false,
|
|
placeholder: 'e.g. 500 (default: unlimited)',
|
|
},
|
|
],
|
|
|
|
tagDefinitions: [
|
|
{ id: 'tags', displayName: 'Tags', fieldType: 'text' },
|
|
{ id: 'lastModified', displayName: 'Last Modified', fieldType: 'date' },
|
|
{ id: 'created', displayName: 'Created', fieldType: 'date' },
|
|
],
|
|
}
|