@unito/integration-debugger
Version:
The Unito Integration Debugger
24 lines (23 loc) • 1.71 kB
TypeScript
import { ImmutableObject } from '@hookstate/core';
import * as IntegrationsPlatform from '@unito/integrations-platform-client';
import { Environment } from '../resources/configuration';
export type User = IntegrationsPlatform.User;
export type Credential = IntegrationsPlatform.Credential;
export type Integration = IntegrationsPlatform.Integration;
export type IntegrationSummary = IntegrationsPlatform.IntegrationSummary;
export declare function setEnvironment(environment: Environment): void;
export declare function getApiKey(): string | undefined;
export declare function setApiKey(apiKey: string | undefined): void;
export declare function getProfile(): Promise<User>;
export declare function getIntegration(integrationId: number): Promise<Integration>;
export declare function getIntegrations(): Promise<IntegrationSummary[]>;
export declare function getCredential(credentialId: number): Promise<Credential>;
export declare function getCredentials(integrationId: number): Promise<Credential[]>;
export declare function getPlatformAlive(environment: Environment): Promise<boolean>;
export declare function getApiKeyAlive(environment: Environment): Promise<boolean>;
export declare function getIntegrationAlive(integration: ImmutableObject<Integration> | null, credential: ImmutableObject<Credential> | null): Promise<boolean>;
export declare function getNoneIntegrationAlive(integrationUrl: string | undefined): Promise<boolean>;
export declare function getCredentialAlive(credential: ImmutableObject<Credential> | null): Promise<boolean>;
export declare function getNoneCredentialAlive(integrationUrl: string | undefined, credentialPayload: {
[key: string]: unknown;
} | undefined): Promise<boolean>;