UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

23 lines (22 loc) 795 B
import Crowdin from '@crowdin/crowdin-api-client'; import { Response } from 'express'; import { IntegrationRequest } from '../modules/integration/types'; import { CrowdinClientRequest } from '../types'; interface OwnerInfo { name: string; id: number; } export declare function getIntegrationManagedBy({ ownerIds, crowdinApiClient, clientId, }: { ownerIds: number[]; crowdinApiClient: Crowdin; clientId: string; }): Promise<OwnerInfo[]>; export declare function renderIntegrationAccessDenied({ req, res, isApiCall, owners, debugLabel, allowLogout, }: { req: IntegrationRequest | CrowdinClientRequest; res: Response; isApiCall?: boolean; owners: OwnerInfo[]; debugLabel: string; allowLogout?: boolean; }): Response<any, Record<string, any>>; export {};