UNPKG

@calljmp/cli

Version:
35 lines 1.09 kB
export type IntegrationProviderType = 'slack'; export type IntegrationStatus = 'active' | 'revoked' | 'expired'; export interface Integration { projectId: number; type: IntegrationProviderType; accessToken: string | null; refreshToken: string | null; expiresAt: Date | null; teamId: string | null; status: IntegrationStatus; meta: {}; createdAt: Date; updatedAt: Date; } interface IntegrationProvider { type: IntegrationProviderType; label: string; description: string; } export declare const IntegrationProviders: Record<IntegrationProviderType, IntegrationProvider>; export declare function jsonToIntegration(data: Record<string, any>): Integration; export declare function integrationToJson(integration: Integration): { projectId: number; type: "slack"; accessToken: string | null; refreshToken: string | null; expiresAt: string | null; teamId: string | null; status: IntegrationStatus; meta: {}; createdAt: string; updatedAt: string; }; export {}; //# sourceMappingURL=integrations.d.ts.map