UNPKG

@alphabin/trx

Version:

TRX reporter for Playwright tests with Azure Blob Storage upload support

58 lines (57 loc) 1.33 kB
/** * Azure Blob Storage related types */ export interface SasTokenRequest { } export interface SasTokenResponse { success: boolean; message: string; data: { tokenId: string; sasToken: string; containerUrl: string; blobPath: string; uniqueId: string; expiresAt: string; maxSize: number; permissions: string[]; uploadInstructions: { baseUrl: string; pathPrefix: string; allowedFileTypes: string[]; maxFileSize: number; exampleUpload: { method: string; url: string; headers: { 'x-ms-blob-type': string; 'Content-Type': string; }; }; }; }; } export interface UploadOptions { filePath: string; fileName: string; contentType: string; sasToken: string; containerUrl: string; blobPath: string; } export interface UploadResult { success: boolean; fileName: string; url?: string; error?: string; } export interface AzureUploadStatus { status: 'uploaded' | 'failed' | 'disabled' | 'not-found'; url?: string; } export interface FileInfo { name: string; path: string; contentType: string; size: number; }