Interface ExternalEventSubscription

interface ExternalEventSubscription {
    id: string;
    name?: string;
    userId: string;
    user?: Customer;
    connectionId: string;
    connection?: Connection;
    integrationId: string;
    integration?: Integration;
    uuid: string;
    config?: ExternalEventSubscriptionConfig;
    status?: ExternalEventSubscriptionStatus;
    isRealTime?: boolean;
    requiresPull?: boolean;
    requiresFullSync?: boolean;
    error?: ErrorData;
    createdAt?: string;
    archivedAt?: string;
    stateData?: any;
    nextPullEventsTimestamp?: number;
    pullUpdatesIntervalSeconds?: number;
    fullSyncIntervalSeconds?: number;
    nextRefreshTimestamp?: number;
    globalWebhookKey?: string;
    globalWebhookEventSelector?: string;
}

Properties

id: string
name?: string
userId: string
user?: Customer
connectionId: string
connection?: Connection
integrationId: string
integration?: Integration
uuid: string

Globally unique identifier of the subscription that is hard to guess. Used for webhooks and other cases where we need to identify the subscription.

isRealTime?: boolean
requiresPull?: boolean
requiresFullSync?: boolean
error?: ErrorData
createdAt?: string
archivedAt?: string
stateData?: any

For subscriptions that store state in between pulls/refreshes/runs.

nextPullEventsTimestamp?: number
pullUpdatesIntervalSeconds?: number

For subscriptions that pull updates.

fullSyncIntervalSeconds?: number

For subscriptions that do full sync.

nextRefreshTimestamp?: number

For subscriptions that need refreshing.

globalWebhookKey?: string

For subscriptions that use global webhooks.

globalWebhookEventSelector?: string