@crowdin/app-project-module
Version:
Module that generates for you all common endpoints for serving standalone Crowdin App
22 lines (21 loc) • 893 B
TypeScript
import { JobClient, JobClientType, JobStoreType, JobType } from './types';
import { Response } from 'express';
import Crowdin from '@crowdin/crowdin-api-client';
import { Config } from '../../../types';
export declare function runAsJob({ integrationId, crowdinId, type, title, payload, res, projectId, client, jobType, jobStoreType, jobCallback, onError, reRunJobId, forcePushTranslations, }: {
integrationId: string;
crowdinId: string;
type: JobType;
title?: string;
payload?: any;
res?: Response;
projectId: number;
client: Crowdin;
jobType: JobClientType;
jobStoreType: JobStoreType;
jobCallback: (arg1: JobClient) => Promise<any>;
onError?: (e: any, job: JobClient) => Promise<void>;
reRunJobId?: string;
forcePushTranslations?: boolean;
}): Promise<void>;
export declare function reRunInProgressJobs(config: Config): Promise<void>;