ll-callmobile-backend
Version:
VoIP Mobile Communications Backend with Supabase, Drizzle ORM, and Dynamic Querying - Deployable as Cloudflare Worker
48 lines • 1.3 kB
TypeScript
import type { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
export interface CreateTestCaseRequest {
description: string;
code: 'CVT' | 'CVT2' | 'GPP';
client: {
acsIdentityId: string;
name: string;
acsToken: string;
};
vendor: {
acsIdentityId: string;
name: string;
acsToken: string;
};
}
export interface CreateTestCaseResponse {
testCaseId: number;
client: {
acsIdentityId: string;
acsToken: string;
};
vendor: {
acsIdentityId: string;
acsToken: string;
};
}
type DB = PostgresJsDatabase<any>;
export declare class TestCaseService {
/**
* Creates a new test case with associated client, vendor, and job
*/
static createTestCase(db: DB, request: CreateTestCaseRequest): Promise<CreateTestCaseResponse>;
/**
* Retrieves a test case by ID
*/
static getTestCaseById(db: DB, id: number): Promise<{
id: number;
description: string;
code: "CVT" | "CVT2" | "GPP";
createdOn: Date;
}>;
/**
* Retrieves a client's ACS token by TestCase ID
*/
static getClientACSTokenByTestCaseId(db: DB, testCaseId: number): Promise<string>;
}
export {};
//# sourceMappingURL=testCaseService.d.ts.map